DXOpal (github) is a RubyGem to make browser games with Ruby. API is similar to DXRuby.
$ gem install dxopal
$ mkdir game1
$ cd game1
$ dxopal init
$ dxopal server
Open http://localhost:7521/index.html in browser.
Then edit main.rb and reload browser.
If you have Git command, clone yhara/dxopal-starter-kit. Otherwise, download latest zip from releases.
Then open index.html with Firefox. (Note: you cannot use Google Chrome because it doesn't allow Ajax access to file://
.)
Then edit main.rb and reload the browser tab.
Because it contains the whole opal processor, so that you will not be bothered by how to compile your game files into JS.
Technically you can reduce the file size by commenting out
require "opal-parser"
in opal/dxopal.rb and
building your own .js (including your game).