# raylib-jamstack A stack for building **raylib gamejam games in Ruby**. Three core parts: | Part | Role | In Ruby | |------|------|---------| | **[raylib](https://github.com/raysan5/raylib)** | graphics / audio / input | `Rl::` | | **[mruby](https://github.com/mruby/mruby)** | the embedded Ruby that runs your game | — | | **[RmlUi](https://github.com/mikke89/RmlUi)** | HTML/CSS UI with data binding | `Rml::` | Write your game in Ruby; it compiles to a native desktop binary **and** to WebAssembly for the browser, from one codebase. ```ruby Rl.init_window(800, 450, "my game") Rl.target_fps = 60 ui = Rml::Context.new("main") model = ui.data_model("hud") do |m| m.bind(:score) { $score } # Ruby state -> {{score}} in the RML m.event(:reset) { $score = 0 } #