Autor Tema: Tiled parser library with Cardiac Runner as example  (Leído 16597 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1137
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Tiled parser library with Cardiac Runner as example
« en: Enero 30, 2013, 06:35:38 am »


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.

Conectado FreeYourMind

  • Hero Member
  • *****
  • Mensajes: 5548
  • Karma: 125
  • Sexo: Masculino
    • Ver Perfil
    • GECA soft
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #1 en: Enero 30, 2013, 06:53:34 am »
do you want a handheld port ?

Conectado panreyes

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 2022
  • Karma: 64
  • Sexo: Masculino
    • Ver Perfil
    • panreyes.com
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #2 en: Enero 30, 2013, 06:55:11 am »
It's open source but some rights reserved, am I right?

Conectado FreeYourMind

  • Hero Member
  • *****
  • Mensajes: 5548
  • Karma: 125
  • Sexo: Masculino
    • Ver Perfil
    • GECA soft
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #3 en: Enero 30, 2013, 06:56:24 am »
BennuGD .Net Tools also support this format when you edit maps

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1137
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #4 en: Enero 30, 2013, 06:57:49 am »
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.

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1137
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #5 en: Enero 30, 2013, 06:58:42 am »
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.
« última modificación: Enero 30, 2013, 07:04:30 am por JaViS »
Working on Anarkade. A couch multiplayer 2D shooter.

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1137
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #6 en: Enero 30, 2013, 06:59:22 am »
BennuGD .Net Tools also support this format when you edit maps


cool :)
Working on Anarkade. A couch multiplayer 2D shooter.

Conectado l1nk3rn3l

  • Hero Member
  • *****
  • Mensajes: 1935
  • Karma: 252
  • Sexo: Masculino
    • Ver Perfil
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #7 en: Enero 30, 2013, 12:02:26 pm »
 APORTE GRANDE


SERA INCLUIDO EN EL BENNUPACK

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #8 en: Enero 30, 2013, 12:15:01 pm »
This is IMPRESSIVE, thanks a lot for sharing!

Desconectado handsource-dyko

  • Hero Member
  • *****
  • Mensajes: 568
  • Karma: 32
  • Sexo: Masculino
  • I'm the eye in the sky.
    • Ver Perfil
    • dyko designs
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #9 en: Enero 31, 2013, 07:36:46 am »
Pretty nice! Good use of regex, I can learn something from that.   ;)

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #10 en: Febrero 01, 2013, 01:56:21 pm »
Will this be ported to the dreamcast?
werg

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1137
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #11 en: Febrero 01, 2013, 04:22:33 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.

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #12 en: Febrero 02, 2013, 09:34:35 am »
I copied the entire libraries folder into the directory of my game. Then I added
Código: [Seleccionar]
include "libraries/tiledmap/tiledmap.lib";to it. However I am getting the error:
werg

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12474
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #13 en: Febrero 02, 2013, 10:07:11 am »
javis... the lib must include the imports that it need.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re:Tiled parser library with Cardiac Runner as example
« Respuesta #14 en: Febrero 02, 2013, 11:27:42 am »
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