Tiled parser library with Cardiac Runner as example

Started by JaViS, January 30, 2013, 02:35:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JaViS



Hi All,


Here I'm sharing the library we've been working for a while in Pixelatom.
This library allows you to load .tmx files created with Tiled (http://www.mapeditor.org/), which is an amazing open-source multi-platfom tile map editor, and render them as BennuGD scrolls.


Features


* Object Placement support
* Multiple layers
* Support unlimited sized maps
* Tileset loading
* Scroll rendering already done
* Excellent performance


The library stills in development and there are some considerations:


* We can render up to 10 layers (Bennu only have 10 scrolls)
* By now, we can load up to 256 object layers with 256 objects each as much (it'll be fixed in the future)
* Custom properties are not supported yet.


We haven't found any bug yet, but I'm pretty sure there could be some, mostly because we play a lot with dynamic memory allocation, so, please, if you find something let us know.


About the package


The game coming as example was made during a GameJam in 48 hours, so don't pay attention to the mess, but it shows pretty well how to use the library. You'll find there how to use the scroll with your processes and how to use a hardness layer to place your character. The game is not open source, it's licensed under creative common, to see what you can do with it read here: http://creativecommons.org/licenses/by-nc-nd/3.0/


The library itself is placed under the "libraries" folder, and it's licenced under MIT license. So you can do pretty much whatever you want to with that code.


Download the library with the game here:
http://dl.dropbox.com/u/73385/cardiac%20runner%20source%20code.tar.bz2



Working on Anarkade. A couch multiplayer 2D shooter.

FreeYourMind


panreyes

It's open source but some rights reserved, am I right?

FreeYourMind

BennuGD .Net Tools also support this format when you edit maps

JaViS

Quote from: FreeYourMind on January 30, 2013, 02:53:34 PM
do you want a handheld port ?


I'll once I made some edits, I'll let you know, thanks for the offering.
Working on Anarkade. A couch multiplayer 2D shooter.

JaViS

#5
Quote from: PiXeL on January 30, 2013, 02:55:11 PM
It's open source but some rights reserved, am I right?


the library is "open source", you can use it as you want.


the game is copyrighted, I'm only allowing you to see the source, and distribute it as I gave it to you. You can't use it for anything else.
Working on Anarkade. A couch multiplayer 2D shooter.

JaViS

Working on Anarkade. A couch multiplayer 2D shooter.

l1nk3rn3l


josebita


handsource-dyko

Pretty nice! Good use of regex, I can learn something from that.   ;)

MisterN

werg

JaViS

Quote from: DoctorN on February 01, 2013, 09:56:21 PM
Will this be ported to the dreamcast?


That would be very interesting, but I've never worked with the dreamcast port. I hope somebody else with experience could take that chance
Working on Anarkade. A couch multiplayer 2D shooter.

MisterN

I copied the entire libraries folder into the directory of my game. Then I added
include "libraries/tiledmap/tiledmap.lib";
to it. However I am getting the error:
werg

SplinterGU

javis... the lib must include the imports that it need.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

is that the issue? because I can compile and run his game but when I copied the libraries folder into my game and included that file. It says I was missing that, so I ctl+f'd every file in the directory of his game and found that variable in that one file. So I have been confused ever since.
werg