This week's book giveaway is in the Servlets forum. We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line! See this thread for details.

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..........

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

posted

0

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....

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

posted

0

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?