README.md
June 7, 2025 ยท View on GitHub
Ruby-Platformer
Tutorial: Writing a 2D Platform Game in Ruby language with SDL3 / SDL_ttf.
This repository has been inherited from
Nim-Platformer
, LuaJIT-Platformer
, Nelua-Platformer
and Zig-Platformer project.
- Document
English: https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/
Japanese: https://postd.cc/writing-a-2d-platform-game-in-nim-with-sdl2/
Skin database https://ddnet.org/skins
Now work in progress.
Prerequisites
- Windows OS
- Ruby3.x
Install SDL3 gem
gem install sdl3-bindings
Run tutorials
git clone https://github.com/dinau/ruby-platformer
cd ruby-platformer/tutorial
ruby part8.rb # It can specify from part1.rb to part8.rb
or double click part8.rbw with file explorer.
My tools version
- Windows11
- Ruby 3.4.4
Key operation
| Key | Function |
|---|---|
| Up,Space, J, K | Jump |
| Left, A, H | Left |
| Right, D, L | Right |
| R | Restart |
| Q | Quit, Esc |
Tutorial sources
| Part1 | Part2 | Part3 (Showing item) | Part4 | Part5 (Moving item) | Part6 | Part7 | Part8 (Almost completed) | Part9 |
|---|---|---|---|---|---|---|---|---|
| part1 | - |
SDL librarys
https://github.com/libsdl-org/SDL/releases
Other SDL game tutorial platfromer project

| Language | Project | |
|---|---|---|
| Nim | Compiler | Nim-Platformer / sdl3_nim |
| LuaJIT | Script | LuaJIT-Platformer |
| Nelua | Compiler | NeLua-Platformer |
| Zig | Compiler | Zig-Platformer |
| C3 | Compiler | C3-Platformer WIP |
| Ruby | Script | Ruby-Platformer WIP |
Other project
| Language | Project | |
|---|---|---|
| Nim | Compiler | ImGuin, Nimgl_test, Nim_implot |
| Lua | Script | LuaJITImGui |
| Zig, C lang. | Compiler | Dear_Bindings_Build |
| Zig | Compiler | ImGuinZ |
| NeLua | Compiler | NeLuaImGui |
| Python | Script | DearPyGui for 32bit WindowsOS Binary |
| Ruby | Script | IgRuby-Examples |