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

How to require or install gems?

A topic by jrpolidario created 15 days ago Views: 72 Replies: 2
Viewing posts 1 to 2
(1 edit)

I searched for all instances of `require` keyword across all samples/* files, and none seem to have examples or documentation on how to require gems; in particular I want to require [mruby's `ostruct`] (https://github.com/ksss/mruby-ostruct). I read from a post here that `bundler` is planned to be supported in the future, but at the moment how do I install gems? I'm coming from "mri-ruby" background of either using `gem install ...` or including in `Gemfile`, to install gems. Any help would be appreciated. Thanks :)

Developer(+1)

requiring gems is currently not supported (we are working on it though). 

DragonRuby comes with an open struct implementation (sort of) called OpenEntity

If you want to use a gem, you have to put all the source of the gem into the app directory. 

Thank you! :)