Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to create a tile map based level system for Corona SDK that loads files created with Tiled [1]. It also needs to support user touch scrolling and zooming.

I've searched the Corona forums for possible solutions but the ones they talk about don't convince me. They basically have a matrix of Sprite objects which have an image loaded and a given position. That makes scrolling and zooming a bit hard.

Any better ideas?

[1] http://www.mapeditor.org/

share|improve this question

1 Answer

up vote 3 down vote accepted

First off, I assume you've already seen Lime but don't want to buy it, since its entire purpose is to incorporate Tiled maps in Corona:

http://www.justaddli.me/

In your searches of the Corona forums, did you find these threads?

http://developer.anscamobile.com/forum/2011/01/29/object-culling-render-process-when-not-content-area

http://developer.anscamobile.com/forum/2011/02/03/screen-culling

http://developer.anscamobile.com/forum/2011/03/24/tilemap-using-spritesheet-very-slow-device-any-help

A while ago someone had asked about developing efficient tile map performance/culling and I provided an example of one simple approach using quadrants to organize the tiles for efficiency. Then p120ph37 showed up with an even more efficient technique that changes the frame of the sprite objects without actually showing/hiding sprites.


What a coinciendence: just yesterday I saw this preview of the improved tiling performance in Corona's latest build.

http://www.youtube.com/watch?v=nzdjNDcn2gE

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.