April 2013
Beginner
750 pages
20h 21m
English
We put this game world into an array. Each number in the array rows and columns represents a tile number in our game world. So, a 0 would paint the first tile in the tile sheet (the blue wall), a 1 would be gray road tile, and so on.
world.map=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,1,2,1,1,1,1,1,1,1,1,1,1,1,0],[0,1,0,1,0,0,1,0,1,0,0,1,0,1,0],[0,1,0,1,0,0,1,0,1,0,0,1,0,1,0],[0,1,0,1,0,0,1,1,1,0,0,1,0,1,0],[0,2,1,1,1,1,0,0,0,1,1,1,1,1,0],[0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],[0,1,1,1,2,1,0,0,0,1,1,1,1,1,0],[0,0,0,0,0,1,1,1,1,1,0,0,0,0,0],[0,1,1,1,1,1,0,0,0,1,1,1,1,1,0],[0,1,0,1,0,0,1,1,1,0,0,1,0,1,0],[0,1,0,1,0,0,2,0,0,0,0,1,0,1,0],[0,1,0,1,0,0,1,0,1,0,0,1,0,1,0],[0,1,1,1,1,1,1,2,1,1,1,1,1,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
Read now
Unlock full access