While drawing graphics in 2D, how can I handle the depth of a picture in the frame? For example the ground would be depth -1 and the player depth 0?
And another question how do I achieve this kind of looking ground? When I say achieve, I mean just the theoretical way of doing it not actual source code, but source code could help.
My game is Tile based already and it is ready to be drawn in isometric. I have x y and z coordinates in the engine part of the game. I read that you need to translate it into only x and y for drawing in isometric but I'm not sure how or why would i do that.
Here is a picture of my game right now. The coin is the player, and the squares are the Tiles.
One last thing my Tiles are stored in an array, i.e Tile[] tileList. Is that an efficient way of storing it? Because I want the best performance I can get out of my game.
Thank you very much.
x + y == row
(in 1 possible representation); so the 3rd row (row == 2
) would have tiles(2,0)
,(1,1)
and(0,2)
. – Torious