When I have prepared retina-resolution tile sets, It appeared that the whole map was drawn on wrong position - just like it started drawing one tile to the right (first column of tiles was empty). It worked fine in standard resolution though (iPhone 3gs sim and device), but when switched to retina one it showed that behavior (iPhone 4 sim, iPad and both devices).
the quick and dirty fix is to change in file lime-tile in method Tile:create
-- Place this tile in the right X position
self.sprite.x = ( ( self.column - 1 ) \* self.map.tilewidth ) + self.sprite.width \* 0.5
to:
-- Place this tile in the right X position
self.sprite.x = ( ( self.column - (1 / display.contentScaleX)) \* self.map.tilewidth ) + self.sprite.width \* 0.5
I am not sure it is the best solution, because I have done it really fast, and I have a “warning sign” blinking in my mind - I really didn’t read through that code close to be sure. Perhaps it just fixes the bug, and doesn’t remove the cause… [import]uid: 10881 topic_id: 6855 reply_id: 306855[/import]