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.

Skin database https://ddnet.org/skins

Now work in progress.

Prerequisites


  1. Windows OS
  2. 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


KeyFunction
Up,Space, J, KJump
Left, A, HLeft
Right, D, LRight
RRestart
QQuit, Esc

Tutorial sources


Part1Part2Part3
(Showing item)
Part4Part5
(Moving item)
Part6Part7Part8
(Almost completed)
Part9
part1-

SDL librarys


https://github.com/libsdl-org/SDL/releases

Other SDL game tutorial platfromer project


ald

LanguageProject
NimCompilerNim-Platformer / sdl3_nim
LuaJITScriptLuaJIT-Platformer
NeluaCompilerNeLua-Platformer
ZigCompilerZig-Platformer
C3CompilerC3-Platformer WIP
RubyScriptRuby-Platformer WIP

Other project


LanguageProject
NimCompilerImGuin, Nimgl_test, Nim_implot
LuaScriptLuaJITImGui
Zig, C lang.CompilerDear_Bindings_Build
ZigCompilerImGuinZ
NeLuaCompilerNeLuaImGui
PythonScriptDearPyGui for 32bit WindowsOS Binary
RubyScriptIgRuby-Examples