izissise / PFA

Tek3 End of Year's Project
GNU General Public License v3.0
0 stars 0 forks source link

The camera have coordinate system in chunks #19

Open izissise opened 9 years ago

izissise commented 9 years ago

Each time the camera move to the next chunk coordinate get 1 unit, how can I get a coordinate system where a title is the unit ?

Tastyep commented 9 years ago

you have the player's chunk id and the player's cordinate in the chunk (1,1), Do something like (chunkId + pos) * {Chunk::width, Chunk::height}

izissise commented 9 years ago

Yep, but I don't like depending on the chunk in the draw stage, I'll find a way, thank you