Getting the first field to be drawn
Members - Reputation: 122
Posted 21 December 1999 - 03:09 AM
Moderators - Reputation: 1152
Posted 21 December 1999 - 01:47 AM
so, you have a screenspace with the anchor on (0,0), and this anchor corresponds to some point in tilespace, right? and you want to know how to test for partially visible tiles.
if this is the problem, you only need to test for the corners. you translate the screenspace coordinates into tilespace coordinates, then translate the tilespace coordinates into tilemap coordinates using a mousemap.