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