Live code a game on the browser with Opal and Vue.js
summary
Live codes a Tetris‑like game that compiles Ruby to JavaScript with Opal and reuses the same engine for a terminal and browser UI, implemented with vanilla DOM, jQuery and a tiny Vue.js wrapper of a few lines. Shows concrete code: a table-based renderer, setInterval tick at 600ms, score update via an h3, and use of native to touch window/document. Claims production use, ~80 lines for the demo, and Opal passes ~16,000 RubySpec examples in under 15s.
AI-written summary · about
chapters (7)
related talks
35mBuilding web-based board games only with Ruby
35mWriting web application in Ruby
40mRUBY: WRITE ONCE, RUN ANYWHERE
30mOpal: The Journey From JavaScript to Ruby
34mReimagining 2D graphics and game development with Ruby
48mCoding LiveView
31mThe Tricks of Game Programming in a Pure Functional Language
51mWriting Games with Ruby
