1
\$\begingroup\$

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/

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

First off, have you already seen Lime but don't want to incorporate that framework, since its entire purpose is to incorporate Tiled maps in Corona:

http://lime.outlawgametools.com/

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

\$\endgroup\$
2
  • \$\begingroup\$ 1st link is dead. \$\endgroup\$ Commented Sep 29, 2013 at 15:44
  • \$\begingroup\$ thanks, I updated the link. it appears to have gone open-source \$\endgroup\$ Commented Sep 29, 2013 at 16:24
0
\$\begingroup\$

check this out running @ 60fps : http://forums.coronalabs.com/topic/33119-million-tile-engine-beta-release/

and should only get better when Corona Graphics 2.0 gets released.

\$\endgroup\$
3
  • \$\begingroup\$ You should add more to your answer instead of just posting a link. \$\endgroup\$ Commented Aug 12, 2013 at 18:52
  • \$\begingroup\$ As far as I can see, this really isn't relevant to the question - the question asks for better ways of doing it, whilst you've just linked to a video showing it can be done. On top of that, this question was posted over a year ago, so it's likely no longer relevant (new versions come out, etc.) Finally, welcome to GD.SE! \$\endgroup\$ Commented Aug 12, 2013 at 20:58
  • \$\begingroup\$ The link was meant to use "Million Tite Engine" which is a very good map engine for CoronaSDK, even better than "Lime" mentioned in the first answer (even in Lime website, it says MTE should be a better solution as a map engine). \$\endgroup\$ Commented Dec 24, 2014 at 2:54

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.