aspose file tools*
The moose likes Game Development and the fly likes Isometric Tile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Isometric Tile" Watch "Isometric Tile" New topic
Author

Isometric Tile

Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 29
I´m reading the book killer game programming in java in the page 357 of this book has an information about evenRow and oddRow and the values of coordinate x,y of the evenRow it´s 12 8 and oddRow 40 23......I want to know why the book it´s given to me this coordinate this is the steps in pixel of the player... I don´t know?!?!1?1? thanks..........

Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3647
    
  16

Hi Fernando,

Not all or even most of us have the book. It's hard to say anything about it without knowing more about the problem.
Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 29
So....look these images:



so look in the row tile or the y-axis......right.....I have to know what´s the even row or odd row this is I know but I get the even and odd why I use the coordinate above in the first question for the even tile and odd tile this is my question....

I don´t know if I was clear,
thanks......
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3647
    
  16

Well, if the program is to draw graphics to the correct part of the screen, it has to translate column/row indices to real coordinates. As you can see, the coordinates of every row are half the height of a tile downwards from the row above it. The odd rows are half the width of a tile to the right from the even rows.
Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 29
This part I understood.......... let me explain: I want to know why the even row begin with 12 x-axis and 8 y-axis and odd row begin with x-axis 40 and y-axis 23 and the number of tiles is 16 tiles in the x-axis and 23 tiles of y-axis why in the odd row 40 in x-axis if the number of tile is 16?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Isometric Tile