← Graph

Writing a Game in Ruby on Rails Lightning Talk

talk 6 connections

Pavo's wroclove.rb 2023 lightning talk showing how to implement a game in Ruby on Rails. The world state is computed entirely on the backend (no JavaScript) via a continuous game loop process that iterates the board state. Live-demo game: a knight avoiding dragons and collecting the Beloved Ruby (score 1), then a second version where the world moves forward in real time. Uses Pavo's own 'raise_permanent_job' gem, itself a wrapper around server-engine by Masahiro Nakagawa (presented at RubyKaigi 2014). Server-engine supports workers as processes/workers/threads, soft restart and reconfiguration, and a supervisor mechanic that restarts failing workers on memory/network issues. The rake task resets boards, enqueues the game loop job, and sleeps 0.3s between iterations. QR code lets the audience join and control the knight.

type
lightning-talk
talk Writing a Game in Ruby on Rails Lightning Talk
about
Demonstrates game development in Rails
talk Writing a Game in Ruby on Rails Lightning Talk
about
Showcases the gem as the game-loop driver
talk Writing a Game in Ruby on Rails Lightning Talk
about
Credits server-engine as the underlying framework
person Pavo
authored
Writing a Game in Ruby on Rails Lightning Talk talk
Speaker of the opening game lightning talk
talk Writing a Game in Ruby on Rails Lightning Talk
presented_at
Opening lightning talk of the session
related_to
Writing a Game in Ruby on Rails Lightning Talk talk
Explicitly prepared as a response to Pavo's opening talk

Provenance

Created in
wroclove.rb 2023 Lightning Talks 2026-04-17 22:11
Read by
3 extractions