Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, xplat, tiny, hot loaded. · By DragonRuby

Questions about Dragon Ruby Game Toolkit

A topic by HeadClot created Apr 29, 2019 Views: 607 Replies: 3
Viewing posts 1 to 3
(+1)

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?

Developer (1 edit) (+1)

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?

Developer

Probably, but I haven't tried this specific piece of code to confirm.