Hey,
I have a few questions about the Dragon Ruby Game Toolkit.
1. Are there any plans to support files from Tiled Map editor? .TMX and .JSON
2. Is there any form of networking API I can expand on?
An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By
No support of .TMX as of yet.
Network support is definitely on the road map (HTTP/GET and HTTP/POST).
With regards to .JSON, Ruby dictionary objects are essentially JSON (just save the file with a .rb extension . Here is an example:
# Dictionary object format one SOME_COOL_DATA = { item_1: 'value 1', item_2: 'value 2' } puts SOME_COOL_DATA[:item_1] # Dictionary object format two SOME_OTHER_COOL_DATA { "item_1" => "value 1", "item_2" => "value 2" } puts SOME_OTHER_COOL_DATA["item_1"]
Would using $dragon.require with a pure Ruby implementation of a JSON parser work?
Hi there,
Just wanted to add that there is a .tmx parser for Ruby. Click here for more information.