r/ruby • u/Redaro97 • Aug 02 '26
Alternate game frameworks?
I have been messing around with Ruby for around a week and made a few utilities and terminal games and I have been liking it. I want to make a game with a GUI but the ecosystem for game libraries in Ruby feels quite lacking. I have only heard of 3 game libaries, Gosu, Ruby2D and DragonRuby. I am on Linux and Gosu and Ruby2D have problems with not being able to properly link OpenGL and stuff, and DragonRuby is paid and kind of sucks that you can't export games since I wanted to show people my game and some were interested in it.
So, do you know of any other game frameworks for Ruby, or are these the only ones (more commonly DragonRuby) people use, or is Ruby not built for making games?
24
u/Ok_Spring_2384 Aug 02 '26
The main reason why DragonRuby is closed source and paid for is because it can export to all consoles, what do you mean you can’t export games? You can use the engine to demo out whatever you are working on in web format(it exports to web, hence a lot of demos on itch)
You are not going to find anything in the Ruby ecosystem that is as thought out and polished/powerful as DragonRuby tbh
4
u/Ceigey Aug 02 '26 edited Aug 02 '26
From what I can tell roughly once a year DragonRuby (the first paid tier) goes on either a pretty severe discount or for free for a game jam (eg KIFASS #4 most recently).
(It also shows up in some itch bundles on the odd occasion)
I found it quite satisfying; but otherwise for a solid basis, any bindings to SDL or Raylib would enable you to start to make your own ad hoc DragonRuby equivalent (the actual framework has a lot of conveniences and export features especially for the paid subscription version which would not be trivial to implement, eg console export)
4
u/caiubi Aug 02 '26
I’ve been working on dama-rb for a while. It is still in the early phase and not production-ready, but consider giving it a try.
I had to slow down developing it due to my job, but I should come back to it soon
3
u/DerekB52 Aug 02 '26
Try one of the raylib ports.
That being said, I love Ruby, but am not a big fan of it's gamedev ecosystem. Look at Godot with GDScript, or pick a different language for something like Raylib. I also like LibGDX with Kotlin.
3
u/azimux Aug 02 '26
I used Taylor to build a multiplayer 2d space hockey game called Trianko recently. For my game, the binaries it generates work great in both Linux and WASM though not yet windows nor macOS (I need to file a github issue about that.)
Taylor is here: https://taylormadetech.dev/
It uses raylib.
I had an absolute blast building a game using Ruby soooooo fun! I also enjoyed playing around with DragonRuby.
If you try out Taylor and want to pair on it or want help or whatever feel free to hit me up! I love pairing on stuff!
The game I made is a 2d space hockey game and you can play it here: https://trianko.com
Works in the browser via WASM or if you're on linux you can download it, too.
Cheers!
2
u/beyondludus Aug 02 '26
If you want to learn game development with web exports, I recommend Godot or Phaser. If you are trying to learn Ruby for some other reason, then one of the CRuby libraries is the best fit.
10
u/dvarrui Aug 02 '26
Hacen falta más programadores de ruby en el mundo de los videojuegos
We need more ruby devs in game World.
1
u/DogsBarf Aug 02 '26
DragonRuby is absolutely fantastic. You should really try it. The DragonRuby community is BRILLIANT and tbh is VERY helpful.
You should try it.
1
u/AJ-54321 Aug 08 '26
Ruby2D just released a major update (version 1.0 literally released today). I would recommend checking it out again. https://www.ruby2d.com
1
u/kquizz Aug 02 '26
Dragonruby is amazinggg
2
u/headius JRuby guy Aug 02 '26
There's a number of graphics libraries for JRuby, and they generally work across platforms with no external dependencies. Not sure if frameworks built around them have been maintained but they could probably be updated.
1
u/marc__e Aug 03 '26
I wrote a post about cross-platform Ruby libraries a couple of months ago, including a section on game engines: https://fascination.works/ruby/2026/05/13/ruby-everywhere-crossplatform-libraries/#game-engines
1
u/[deleted] Aug 03 '26
[removed] — view removed comment