README.md This project is a HTML5 Port of XMoto using CoffeeScript, 2D Canvas and Box2DWeb. This is the first part of a 2-parts project: XMoto.io will be built on top of XMoto.js, using Ruby on Rails, and both the projects will co-evolve and interact in some parts. More about the project development on http://xmoto.io Master branch is frequently deployed here: http://js.xmoto.io Click on the “debug mode” button and have fun with the simulation parameters. You can copy-paste the generated URL to keep the custom physics. Examples: Tractor, Don’t forget to restart the coffee command if you create new COFFEE files. Improve XML levels compatibility!
Demo
Rodeo,
Ugly Mode,
Big Head,
Moon,
FuriousUsage
$.xmoto('l1.lvl')
or $.xmoto('l1.lvl', options)
where “l1.lvl” is the name of the level and the options are:{
canvas: '#xmoto' # canvas selector
loading: '#loading' # loading selector
chrono: '#chrono' # chrono selector
}
Developpment
Installation
brew install nodejs
: install NodeJS (on MacOS)sudo npm install -g coffee-script
: install CoffeeScriptnpm install express
: install ExpressWorking environnement
coffee -j bin/xmoto.js -wc src/*.coffee src/*/*.coffee
to compile to JavaScript in real-time.node server.js
to launch HTTP Server (http://localhost:3000).TODO
Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/_SzzKadxZZM/xmoto.js