Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

Questions about Dragon Ruby Game Toolkit

A topic by Squarepeg makes Games created Apr 29, 2019 Views: 2,804 Replies: 6
Viewing posts 1 to 6
(+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.

(1 edit)

Hi, Is there something new about network? I need to call API endpoints to enable online multiplayer

(+1)

Hi there,

Just wanted to add that there is a .tmx parser for Ruby. Click here for more information.

But the TMX parser for Ruby has a dependency on nokogiri which is not plain Ruby AFAIK so it should not be supported by dragon Ruby.