Game engines by Ruby

2025-01-21 ruby

Looking for the next step of Scratch.

** DragonRuby ** - Not available for free. (need to buy licence first)

** reight ** - Not available for Linux.

** Ruby2D ** Simple and easy!

sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
gem install ruby2d
require 'ruby2d'

set title: "Hello Triangle"

Triangle.new(
  x1: 320, y1:  50,
  x2: 540, y2: 430,
  x3: 100, y3: 430,
  color: ['red', 'green', 'blue']
)

show

rbtris