Cooperative, peer to peer tile-matching browser game.
JavaScript CoffeeScript Go CSS Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coffee Don't set the next piece when losing Nov 2, 2013
html
less
lib Load and use the asset manifest Oct 27, 2013
server Fix backwards browser checking Nov 2, 2013
static
.gitignore
LICENSE
Makefile Specify bash for make Jul 1, 2014
README.md
main.go Start getting ready for production Oct 27, 2013
manifest.sh
package.json Start getting ready for production Oct 27, 2013

README.md

tetrus

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

Developing

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 assets compile minified, fingerprinted versions of the CSS and JS
  • make dev-assets compile unminified versions of the CSS and JS
  • make dev-watch-assets compiles the unminified CSS and JS on every change

Then, start up the server with one of these tasks:

  • make server compile the server
  • make dev-server compile and run the server in debug mode
  • make dev-watch-server compiles and runs the server on every change