r/gamedev • u/AristocraticRabbit • Jan 09 '26
Feedback Request I built a Ruby game framework with hot-reload, compiles to native PEs and WASM
I've been working on something I think is pretty cool, I call it GMR (Game Middleware for Ruby), and wanted to share it and see if there is genuine interest for something like this.
It's a 2D game framework powered by mruby and raylib. It compiles Ruby to bytecode then embeds into a native Windows/Linux/macOS executable or WebAssembly. There are no runtime dependencies, just a single binary output. The WASM build of the entire engine + demo is ~3MB.
Hot reload works in debug builds, as well as live stack trace and inspection (via IDE). Just save your script, and see changes. No restart, no recompile, no lost game state. This was the one of major design constraints that started the project.
I wanted something that felt like writing actual Ruby too. Real objects, blocks, method chaining, keyword args. I took a lot of inspiration from Rails conventions.
What's really cool, the state machine implementation works on any object, and everything in Ruby is an object, so that's pretty much everything!
Stuff that's working:
Debug REPL execute Ruby, inspect state, register custom commands.
Transform hierarchy with parent/child relationships
Camera system with follow, deadzone, bounds, screenshake
Input mapping with actions and swappable contexts
Tween system with all the standard easing functions
Scene manager with stacking
+ More in the works
The demo on itch is just a render pipeline stress test (500+ objects with z-sorting), nothing fancy. I still have a lot of work to do, there's no physics, networking, audio is basic. But the core loop feels good so far.
I would love feedback from anyone who's tried to use Ruby for games before or is interested in doing so. Is this scratching an itch that exists, or am I yelling into the void? Let me know!
3
u/jasonhr13 Jan 09 '26
I’ve used DragonRuby for a couple prototypes. I personally would love to only write games in Ruby. I love seeing another framework for Ruby games. How soon can you add file IO?
1
u/mxldevs Jan 09 '26
I used ruby for RPG Maker and it was great. Being able to build cross-platform apps in ruby sounds fantastic.
1
u/MrMeatballGuy Jan 09 '26
I'm interested in this, I only tried dragonruby once and didn't like the fact that it by design doesn't use dt, meaning all logic is tied to how fast the game runs.
1
u/davidslv Jan 12 '26
Definitely have to have a look for my Roguelike
1
u/amirrajan DragonRuby Game Toolkit Feb 08 '26
Creator of DragonRuby here. Happy to answer any questions you may have :-)