Tiled Map Engine

Hi Caleb - just stuck at the moment pondering how to use Ceramic with approach I’m looking for.  What would you recommend?  (not I put a doco request in the issue tracker re how to use the production with dynamic scaling)

What I’m looking for is how to setup Ceramic so it takes into account:

a) Dynamic Content Scaling - http://www.coronalabs.com/blog/2010/11/20/content-scaling-made-easy/

b) Different size number tiles for each level - i.e. levels may have different overall lengths both in horizontal and vertical direction - so the Tiler map file itself will effectively specify this

c) Want to set the number of pixcels (or Tiles) to align with a devices screen height and scale to this for each device, then the game level runs off to the right as it’s a horizontal scroller.  This way I can build a level that is one screen’s worth high by building with the same number of Tiles high.  Or if I want it to have a height of twice the screen height, then build that level with twice the number of tiles deep.

Do I need to do this scaling myself outside Ceramic, or is this something you could build into Ceramic?  (ability to tell Ceramic how many tiles should fit into one vertical screen’s worth)

The updates sound great, any idea when a new release will be available for testing?

Possibly later today… possibly. No guarantees, but all I have to do is fix up the GitHub repository and do pull requests and such.

I must admit, though, it would help if GitHub would make an easy-to-use app or something - I’m more of a coder, not a terminal user :slight_smile:

  • C

Ugh, you’re using GitHub without the apps? That’s hard core…

Go here for Mac http://mac.github.com/

or here for Windows… http://windows.github.com/

Yeah, I never touch the command line. Are you added in as a contributor?

:smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:

I never even knew about the app!

Wow… Thank you ever so much for the link. I was just slogging through the terminal :smiley:

I actually sent a pull request a few minutes ago… Finally.

(the funny thing is it took me about 2 minutes to do it with the app, while I overwrote my files several times and never completed my push with the terminal - good thing Sublime Text 2 lets you keep files open and save them and they’ll re-create themselves, or I don’t know what I would have done  :()

  • C

Can’t wait for the update

Thanks a lot guys for doing this for the community

I downloaded pull request and ran the main.lua (hoping to see a tutorial sortof program)

But the sample mazes dont work?

Whew… I just edited it. What was happening is that when I overwrote my files, I lost the Jumper module and my player image. And then just before I published it I only tried out the samples that worked, coincidentally. So there wasn’t any Jumper module or player image, and it was attempting to find them, so a seg fault was happening. It should be fixed now :slight_smile:

  • C

hi everybody

i have seen corona tiled a and looks great, and i want first thank you the developer for doing this and make life easier for others like me that are not really good coders 

I have seen Mte too, and i have proposed there and want to do it here too, to create a basic template with the funcionalities of platform games, so all here can cooperate coding some parts and add as part of documentation if the authors agreed with this idea and want to do it.

I have done a basic project, a level with some dynamic of the platforms genre, as moving blocks,pick up coins, spikes,etc…

Here a picture of the level

 

 

The project has a tileset with some art(ugly and basic) ans some spritesheets of 2 enemies(bird and mouse) and a player with his frames(specially ugly this one)

If this advance and all collaborate i promise to upload better sprites but for the moment i think is enougth for educational purposes.

 

At the moment i have tried to load the map but doesn´t show anything, remains processing layer 1 and do nothing.

 

things to do


 

-jumpthrougth platforms and moving platforms

kill the enemy when the player jumps over and get killed when not

checkpoints and goal

easing movement of the enemies ,path follows,…

rotating objects,…

 

anything from a platform game  :slight_smile:

 

 

i use gogle drive  that is free and easy to host the files, so you can use the same or any you want to upload the modifications to the template so the others can download and contribute.

 

If in any moment you want to add some functionality, let´s say a rotating platform and you need the sprite of a box or anything just ask it here so i will draw and upload or anyone can do too.

 

Here the link to the project

 

https://docs.google.com/file/d/0B0HrY9qsf9wEaW45Y21seFZJeXM/edit?usp=sharing(just file , download)

 

And that is all for the moment, hope we can do a nice template and any idea is welcome

 

 

Best regards

 

Txarly

The simple  platformer isnt working…it says the open function (line57 cermaic.lua?)string expected got nil.

I get the same thing

When i load the map and shift its x by -288 i get only part of the map.The rest is black space

And i see in the rar file you have tiled.lua

Maybe update to ceramic?

And… Yet another update. That bug was caused by a map name change (from “mario_1.json” to “platformer.json”)

Now hold your breath, download it again, and check if it works ;D

[EDIT]: Great idea, Txarly!

  • C

i am a bit confussed now, are there two versions?

The newer is Ceramic?where can i download it?

thanks

edit: Sorry i found it finally  :slight_smile:

CoronaTiled -> Newer Version -> Ceramic Tile Engine

  • C :slight_smile:

hi everybody,

i have added movement to the player, now can move all the map, double jump and physic properties for different elements.

problems

-the orientation must be landscape and it doesn´t

-The physic world has strange and abrupt behaviour, like the gravity,etc…

-Any idea how to add parallax layers?

here is the template:

https://docs.google.com/file/d/0B0HrY9qsf9wESFNLQk5yUnd6M1E/edit?usp=sharing

Anybody can help on these so we can advance ?

thank you to you all

Txarly

@greg886:

 Yes.

As for using objects for physics, it’s fine to do that on small maps, but objects aren’t culled, so it can get “dangerous”; i.e. many objects = much memory. Object culling should come sometime in the future, but in the meantime, keep your object count relatively low.

Apologies - I didn’t see your other two questions. Here goes:

a. I find somewhere between 32 and 64 px tiles to be best. I’d actually advice either 32 or 64, because 32 and 64 are nice round numbers and can be compatible with most maps.

b. Hm… You could still use tiles in the same map, but beware of culling speed possibly slowing down.

@txarly:

The parallax issue should be fixed now - you can download the fix (it’s just a patch, so I’m waiting for more updates before adding to the superqix repo) at my CoronaTiled page (GymbylCoding/CoronaTIled) on GitHub.

  • C

thanks caleb P, works great now.

Just another question,

I use for mi application third party tools as textcandy for corona.Is it posible to use with ceramic?what is the best way to do that?(let´s think that i want to create an effect with candy text every time a coin is picked)

thanks

TextCandy (I don’t have it, but it would appear this should work) should be able to be added simply by adding any text objects you create into a layer in Ceramic, just as you do with other extra objects.

  • C

@txarly did you figure out how to do the enemies? i got a map and a player, it works great, but the enemies move with the camera and i dont know how to unbound them from the camera, so they have their own movement.

what happens is that when the camera moves focusing on the player, the enemies are dragged with the camera, if the camera is not moving, the enemies move as expected… any idea how to unbound them so the camera doesnt drag them?

great work with ceramic btw!! its easy to use and i like it a LOT!

@kornjjuan:

Make sure you have the enemies inserted into (preferably) the same layer as the player, and you should have no problem with odd movement.

Glad you like Ceramic!

  • C

@Caleb P thanks!! just added the enemy to the same layer and worked perfectly!