This is a simple multiplayer version of the classic Snake game, developed in 16 hours for the Überall video game party. It features network play, with mobile phone or laptop controllers, for 2-8 players per game. It can also be played with up to 4 players on the local keyboard, or with a combination of both network and local players.
Assuming you have Java installed, you can play Snaxe by simply running this WebStart file:
The game will warn you that it is unable to connect to the swarm server, but you can play in local-only mode using the following keys:
|Function||Player 1||Player 2||Player 3||Player 4|
|Join Queue||Q||U||DEL||NumPad 7|
|Leave Queue||Q||O||END||NumPad 9|
|Move Up||W||I||Arrow Up||NumPad 8|
|Move Left||A||J||Arrow Left||NumPad 4|
|Move Down||S||K||Arrow Down||NumPad 5|
|Move Right||D||L||Arrow Right||NumPad 6|
For further information, read the instructions.
To play without WebStart, download the jars from the Snaxe directory. Extract the appropriate natives jar (e.g. unzip natives-win32.jar), then run java -jar snaxe.jar.
To play with multiple controllers over a network, you'll need the swarm server running. You can download this from GitHub. You will also need to install Python and the Python packages Distribute, Tornado and TornadIO. All of these will work fine on Windows as well as Linux.
Once everything is installed, change into the snaxe directory and run python swarmserver.py. Clients can now point their web browser to your IP address on port 8001.
If you want to change the web port from the default of 8001, you will need to change it in both swarmserver.py (down the bottom, socket_io_port) and in the client (static/controller/input.js, at the top of the startSocket method). Restart the server if you do this.
The source code is available here.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
You can read about the development process on my blog:
The development went very smoothly, though I would have liked more time to add more features to make the game rather more unique.
Unfortunately, at the party, I was given a low power handheld DLP projector, so it was pretty near impossible to see the game. And those people that did try it on my laptop complained of a lack of responsiveness in the mobile phone controller interface.
Still, it wasn't an entirely wasted experience; I've refreshed my knowledge of Slick and built a few more useful library classes.