I have a map that is 90 tiles wide and 60 tiles tall
This is using a 32x32 tile size. It works wonderfully IF you use Lime sparingly.
Basically this is what I did, a birds eye if you will…
Use lime to create the borders of the map and physical bodies (isGround, bodyType static etc) on on the left,right,top,bottom.
Save the map.
Now, using whatever tile set (doesn’t matter) draw out loosely where you want things.
Then I go to corona and map out the coordinates.
Then load the file and see if what you coded matches what you place things in tiled, once they match remove the objects from tiled.
Rinse and repeat for all the platforms.
Since the default of any display object is the center reference point of an object I calculate (this isn’t precision science, just what I do lol) I count how many tiles over on X the object is and how many tiles down on Y the object is, then I map that to an X and Y coordinate.
Then I code that into my main.lua file (or if you are fancy pants and have modularized code, then put it there)
That’s one way to do it.
The other way is to go online and make your own graph paper. I made mine 90x60 and I can free hand draw stuff and then use that to code into corona and NOT use lime at all. This way is a longer way.
Seems like for me doing things in tiled, using lime to call the borders of the map and SOME objects and then code natively in Corona (and also using PhysicsEd) seems to give me the best performance
Gives me large maps, good performance and a moderate build speed. Keep in mind this is for straight up mario type maps. If you want things like Bezier curves and weird things like that, then you have to get SVG Level builder in the mix which will make life SO much easier.
*Keep in mind that on SVG level builder, you CAN draw free hand curves, but each pixel becomes a physics body and that becomes 100’s of bodies for a simple line. Instead use the bezier curve thing.
I will say that if you use the graph paper method and just purely go Corona sdk all the way, it will run REALLY fast. Just takes a while and you have to get your camera to follow your character and you need to put a background that has reference points on it so you know where you are at vs using tiled where you can just SEE. I guess it’s whatever trade off you want.
that’s my 2.5 cents on that lol.
Basically Lime (sparingly) + Svg level builder (Sparingly) + Physics Ed (sparingly) + Corona (80%) = love
Basically the moral of my story is Rather than try to get around your limitations, embrace those limitations and make it work. Works for me.
-Nick G [import]uid: 61600 topic_id: 11671 reply_id: 47714[/import]