DXOpal

English | 日本語

DXOpal (github) is a game development framework for Opal.

Overview

DXOpal (github) is a RubyGem to make browser games with Ruby. API is similar to DXRuby.

Examples

Getting Started

If you have Ruby installed:

$ 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 don't want to install Ruby:

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.

Resources

FAQ

Why is dxopal.js so big?

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).