Archived

This topic is now archived and is closed to further replies.

ReDair

diamond

Recommended Posts

hi pplez, my map is shaped like a diamond(each tile 52 by 16), when i reaches a point whereby sum part of the screen will not be tiled lik those ''x'' areas below, how do i determine which map coordinate xy shld i start drawing 1st ? i make the top corner of the map 0,0.my sprite man is always at the center of the screen. my drawin method is frm left to right and den go down den left to right again. is this corect ? x = blank areas xxxx/\xxxx xxx/\/\xxx xx/\/\/\xx x/ map \x /\/\/\/\/\ \/\/\/\/\/ x\/\/\/\/x xx\/\/\/xx xxx\/\/xxx xxxx\/xxxx thanx alot..

Share this post


Link to post
Share on other sites
Well, you could use whatever method you already use and if the tile is out of bounds (negative coords, for example), just move over to the next position and increment your counters. You pretty much just pretend you''re drawing tiles like normal, but you skip the ones that are invalid.

Share this post


Link to post
Share on other sites