Thursday, June 7, 2012

Isometric 3d Game part 4


Tiles and tile placing




Ground Tiles






  Object Tiles





All of these are isometric tiles in 128 128. Following image describes how the real tile image is placed inside the 128x128 image.


 When placing tiles we must calculate the tile positions in proper way. Then it will appears as a 3d grid.
Suppose we placed a tile with the coordinates a,a for top left corner of the tile, the next tile must be placed down in (a+64,a-32) and up in (a+64,a+32). All the tiles will be represented as a 2d array.

 In the 5th post you will find the code for main game class which includes the algorithm for placing tiles.




No comments:

Post a Comment