• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Isometric Tile

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..........

 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic