Tile map collision detection

Posted by hero on Stack Overflow See other posts from Stack Overflow or by hero
Published on 2010-04-05T00:24:28Z Indexed on 2010/04/05 0:33 UTC
Read the original article Hit count: 301

Filed under:

There are many topics like this, but none with concrete answers. I am drawing a tile-map in the traditional way (two for loops) and keeping my player centered except when the edges of the map is reached. How would I create collision detection? I need to know how to translate tile location in the array to screen coordinates I think.

© Stack Overflow or respective owner

Related posts about tiles