Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yet another 2D, canvas-based, JS game engine.
JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
public/javascripts
src
.gitignore
.js_deps.yml
NOTES.md
README.md
VERSION
assets.development.yml
assets.production.yml
rxr-0.1.js
rxr.full-0.1.js
rxr.full.min-0.1.js
rxr.min-0.1.js
rxr.nojquery-0.1.js
rxr.nojquery.min-0.1.js
rxr.thor

README.md

RXR

RXR (pronounced roxor or [r-x-r]) is yet another 2D game engine in JavaScript. It's canvas-based only.

Installation & usage

Include either rxr.min-v0.1.js or rxr.full.min-v0.1.js in your page, and you're good to go. The former version has some external dependencies which are bundled within the latter:

So, use the .full version if you don't want to bother picking all of those libraries by yourself.

Check the example to get started, it's kind of a tutorial with many inline comments.

Local development

I'm using a tmuxinator project to automate all of the following tasks while hacking on the .coffee sources:

Compiling .sass files

cd example && compass watch public/stylesheets/*.sass`

Compiling the .coffee files

coffee -w -o public/javascripts src/
cd example && coffee -w -o public/javascripts public/javascripts/src

Serving the example project through HTTP

Requires a file server. annyong is a great one, use whatever you want (Thin, Python's native server…)

cd example && annyong

Rebuilding the project when necessary

Requires Ruby 1.9.2+, thor, node.js and the assets-packager to be installed.

thor rxr:build

One may force external deps refetch (for instance, for version bumps in .js_deps.yml):

thor rxr:build -r
Something went wrong with that request. Please try again.