From Start to Published, Create a game with Ruby!
summary
Builds a playable Snake clone with the DragonRuby GameToolkit and publishes it to itch.io using dragonruby.publish (Butler under the hood). Code uses args.state and args.outputs (labels, solids, lines), a grid size 20 grid, movement on a timed jump (speed = 10, tick 60 fps), collision detection with walls and body, collectible spawns, score increments, collect.wav sound, body growth logic, game over state and reset via Escape, and produces HTML5, macOS, Windows, Linux and Raspberry Pi builds.
AI-written summary · about
chapters (17)
- 0:00Workshop introduction
- 1:47Dragon Ruby Game Toolkit
- 6:10Setting up Dragon Ruby
- 9:15Creating itch.io page
- 11:55Game metadata setup
- 15:41Publishing to itch.io
- 19:40Game loop basics
- 22:55Drawing grid and snake
- 28:50Snake movement
- 35:23Boundary collision
- 46:12Collectibles and scoring
- 55:49Adding sound effects
- 1:03:58Snake body growth
- 1:11:38Body collision and game over
- 1:15:34Resetting game
- 1:16:39Final publishing demo
- 1:19:09Further learning resources
related talks
01h 42mSoup to Nuts: Build a video game using Ruby!
44mGame Development - The Ruby way
51mWriting Games with Ruby
45mAttention Rubyists: you can write video games
33mMake a Massively Multiplayer Ruby Game with Dragon Ruby
33mWriting Games with Ruby
51mWriting Games with Ruby
40mWriting 2D games for the OSX platform in Ruby
