Building on the work in canabalt-html5, this is a version of canabalt that can run inside an arcade machine, running on a RaspberryPi, and accept coins.
-
Install node package manager (npm). On OSX, this is most easily accomplished with brew:
brew install npm
-
Install bower, grunt, and any other missing dependencies using npm:
npm install
sudo npm install bower -g
npm install grunt -g
sudo npm install -g grunt-cli
-
Configure bower to download the needed JS libraries
bower update
To play run (in the directory of the repository):
grunt serve
and open up your browser at:
open localhost:9000
jump is mapped to the Space
key
insert coin is mapped to the Shift
key
start game is mapped to the Enter
key