tetrus is a cooperative, peer to peer tile-matching browser game.
It uses:
- batman.js for managing application and view state
- WebRTC for initiating the p2p data connection
- WebGL for rendering
- WebSockets for client session control
- Go for the server-side
play it at tetrus.frustra.org
First, make sure you have Go and node.js installed. Then, grab the code by running go get github.com/frustra/tetrus, which will place the repository into your $GOPATH.
To compile the assets, switch to the tetrus directory, run npm install, then run one of these tasks:
make assetscompile minified, fingerprinted versions of the CSS and JSmake dev-assetscompile unminified versions of the CSS and JSmake dev-watch-assetscompiles the unminified CSS and JS on every change
Then, start up the server with one of these tasks:
make servercompile the servermake dev-servercompile and run the server in debug modemake dev-watch-servercompiles and runs the server on every change