Online multiplayer Snake where the winner of a game is allowed to execute Javascript in the browser of other players.
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.
build
client
server
shared
test
www
.gitignore
.jshintrc
.travis.yml
gruntfile.js
license
package.json
readme.md

readme.md

XSSnake

Online multiplayer Snake where the winner of a game is allowed to execute JavaScript in the browser of other players.

Build Status

XSSnake is currently in development. The beta release is planned around 2020.

XSSnake

Technical

XSSnake is written using HTML5 and JavaScript. It works in all browsers that support Canvas and Websocket. XSSnake uses Node.js and ws for the server and Google Closure Compiler to compile to minified and optimized code.

The font used in the game can be downloaded here.

Initial Setup

Production

XSSnake is not production-ready yet.

Developing and Testing

  • Run the game server: npm start
  • Access the game by opening client/debug.html in your browser

Running unit tests:

  • Client: grunt karma
  • Server: grunt server_test
  • Both: npm test or grunt test

If you add client JavaScript files, or add/modify levels or audio, you need to rebuild files by running grunt source.

Levels

Documented in shared/data/readme.md.