This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Isometric Tile

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • 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: 12132
258
  • Mark post as helpful
  • send pies
  • 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
  • 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: 12132
258
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
crispy bacon. crispy tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic