Skip to main content
strict warning: Only variables should be passed by reference in /localhome/d/davidc/davidc-live/modules/book/book.module on line 560.

Snaxe

September 19, 2011 by davidc

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.

Features

  • 2-8 players per game (up to four of which can be on the local keyboard).
  • Queue of players for the next game.
  • Countdown toward the next game, depending on number of players queued.
  • Server runs unattended in a loop.
  • Rabbits = +20 points and your snake grows.
  • Potion = invulnerability for 20 seconds.
  • Cheetah = double speed for 15 moves.
  • Bones = a dead snake. Touching is death.

Play Now

Assuming you have Java installed, you can play Snaxe by simply running this WebStart file:

Play Snaxe Now

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
Skip Countdown F12
Toggle Fullscreen ALT+ENTER

For further information, read the instructions.

Offline Play

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.

Network Play

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.

Source Code

The source code is available here.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Development

You can read about the development process on my blog:

Postmortem

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.

AttachmentSize
snaxe-thumb.png2.46 KB

Comments

amir

May 1, 2016 by thomasqq, 1 day 6 hours ago
Comment: 1497

I enjoy a person's posting. Its fine to check out you actually explain in words with the soul plus resolution during this vital matter is often without difficulty viewed. specifics perspective web-site. video rubix

Its an informative topic. It

May 1, 2016 by robinjack, 1 day 20 hours ago
Comment: 1477

Its an informative topic. It help me very much to solve some problems.gmail accounts for sale

ALIKHANN

April 26, 2016 by alikhann, 6 days 10 hours ago
Comment: 1352

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. www.freetrialsytropin.com

I did a fabulous which i was

April 30, 2016 by robinjack, 2 days 15 hours ago
Comment: 1459

I did a fabulous which i was first lovely content by means of. The software most likely conducted for the tier still it’s exceptional. Salvia for sale

Great.

April 25, 2016 by khachlamat, 1 week 22 hours ago
Comment: 1308

MSG 91 SMS

April 23, 2016 by Maya, 1 week 2 days ago
Comment: 1282

Thanks for sharing this Post, Keep Updating such topics.
dcresource

alikhann

April 18, 2016 by alikhann, 2 weeks 11 hours ago
Comment: 1170

Checking any blog may make others just want to come up with a greater number of. I did a fabulous which i was first lovely content by means of. The software most likely conducted for the tier still it’s exceptional. car service

Download all latest stuff

April 18, 2016 by techy2017, 2 weeks 11 hours ago
Comment: 1169

Download all latest stuff related to entertainment.
http://mobdroappdownloads.com

http://mobdroapps.com is a

April 18, 2016 by techy2017, 2 weeks 11 hours ago
Comment: 1168

http://mobdroapps.com is a free online streaming TV app, it can make you to watch all kind of videos, Movies, TV shows, Sports channels and more https://mobdroios.com.

This content is simply

April 18, 2016 by sl786982, 2 weeks 15 hours ago
Comment: 1162

This content is simply exciting and creative. I have been deciding on a institutional move and this has helped me with one aspect. making a clubflyer

alikhann

April 17, 2016 by alikhann, 2 weeks 1 day ago
Comment: 1140

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. learn more

amier

April 14, 2016 by thomasqq, 2 weeks 5 days ago
Comment: 1069

Possible to appraise it all in my situation if you can't thought process. รับทําประตูสแตนเลส

alikhann

April 13, 2016 by alikhann, 2 weeks 5 days ago
Comment: 1062

It is delighted to read this post and i get many useful point through this post. Please keep posting such kind of post cccam server

amir

April 13, 2016 by thomasqq, 2 weeks 5 days ago
Comment: 1058

One encourage plenty of online sites onto your web log My group is allowed to remain thinking about how i ever in your life discover groundwork at may. ボニック

amir

April 12, 2016 by thomasqq, 2 weeks 6 days ago
Comment: 1047

Being a Novice, I will be once and for all checking out on the web regarding posts which can be regarding assist with myself. Many thanks. viral loop bonus

TRUTH About PhenQ: Reviews, Ingredients, Side Effects

April 12, 2016 by micheal hatrick, 2 weeks 6 days ago
Comment: 1032

I concur with you. This post is positively rousing. I like your post and all that you impart to us is present and exceptionally useful, I need to bookmark the page so I can return here from you that you have made an awesome showing .. - See more at:
phenq-reviews.com

amir

April 12, 2016 by thomasqq, 3 weeks 4 hours ago
Comment: 1024

Thanks for your time in the inviting blogging you’ve become authoring. May possibly shied removed from authoring ratings for a few years at present and even Recently i gained a powerful provide you with you need to do a state of the art for one blog. รับทําประตูสแตนเลส

alikhann

April 6, 2016 by alikhann, 3 weeks 5 days ago
Comment: 920

Checking any blog may make others just want to come up with a greater number of. I did a fabulous which i was first lovely content by means of. The software most likely conducted for the tier still it’s exceptional. Airport Taxi Cab Service

Great !

April 5, 2016 by khachlamat, 3 weeks 6 days ago
Comment: 887

alikhann

April 4, 2016 by alikhann, 4 weeks 10 hours ago
Comment: 880

Ski boots for ladies function similarly as it will be possible ski boot footwear do. But its composition plus designing methods are usually different. Girls ski boot footwear are marginally leaner around cuff levels, contouring and get thick pillow for improved foothold. organic total body reset

alikhann

April 2, 2016 by Loraine K. Castrejon, 4 weeks 2 days ago
Comment: 859

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy.  latinas en new york

alikhann

March 31, 2016 by Loraine K. Castrejon, 4 weeks 4 days ago
Comment: 820

I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. stock alerts 

alikhann

March 29, 2016 by Loraine K. Castrejon, 4 weeks 6 days ago
Comment: 782

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work how to slim calves

Phen375

March 29, 2016 by phen375online, 4 weeks 6 days ago
Comment: 779

Phen375 diet pills are among the top selling products of 2016. Learn why Phen375 is the best fat burner in 2016 and does it really works. DO NOT BUY PHEN375 Until You Read This Review! Check Out Side Effects, User Feedback and customer reviews! For more visit http://www.phen375online2016.com/

Car Accidents

March 29, 2016 by Loraine K. Castrejon, 4 weeks 6 days ago
Comment: 775

will be possible ski boot footwear do. But its composition plus designing methods are usar are marginally leaner around cuff levels, contouring and get thick pillow for improved foothold. car accident attorneys marietta ga

alikhann

March 28, 2016 by Loraine K. Castrejon, 5 weeks 12 hours ago
Comment: 750

There are several dissertation internet sites on-line because you get evidently reported as part of your web site.  abs after 40

jhonwattson

March 27, 2016 by Loraine K. Castrejon, 5 weeks 1 day ago
Comment: 728

There are several dissertation internet sites on-line because you get evidently reported as part of your web site.  follow

thanks

March 25, 2016 by rams, 5 weeks 3 days ago
Comment: 703

Mobdro Premium is totally advertisement free.so download mobdro for android from : https://mobdroapk.org/
Get Mobdro for pc from : https://mobdroapk.org/mobdro-pc-laptop/
Download Mobdro for ipad from : https://mobdroapk.org/mobdro-iphone-ipad-ios/

The IR35 Calculator Website - Stay Safe as a Contractor - IR35 C

March 24, 2016 by micheal hatrick, 5 weeks 4 days ago
Comment: 680

It is quite beneficial, although think about the facts when it reaches this target.
http://ir35-calculator.org.uk/

Red Candy | SweetServices.com Online Bulk Candy Store

March 23, 2016 by micheal hatrick, 5 weeks 5 days ago
Comment: 669

Listed here you'll learn it is important, them offers the link in an helpful webpage:
red candy for candy buffet

OC Housing News

March 22, 2016 by micheal hatrick, 5 weeks 6 days ago
Comment: 609

The best article I came across a number of years, write something about it on this page.
Housing News

David John

March 23, 2016 by David John, 5 weeks 5 days ago
Comment: 652

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. hungry shark evolution hack tool

written in C++ under

March 22, 2016 by robinjack, 5 weeks 6 days ago
Comment: 599

written in C++ under GNU/Linux. It works on my 1.6GHz computer at 60fps (for a single player), it can be played by 2 players in the same time (on the same keyboard) and it looks like that:forex trading

PECMAN

March 22, 2016 by ha91070, 6 weeks 2 hours ago
Comment: 591

This blog website is pretty cool! How was it made !
twitter followers | buy youtube views

ali

March 20, 2016 by alikhann, 6 weeks 1 day ago
Comment: 555

There are several dissertation internet sites on-line because you get evidently reported as part of your web site.  www.isabisformulae.com

Watch Latest Pakistani Talk Shows and Dramas Online HD at ViiTV

March 17, 2016 by micheal hatrick, 6 weeks 4 days ago
Comment: 509

The best article I came across a number of years, write something about it on this page.
Hasb-e-Haal

Alex

March 11, 2016 by thomasq, 7 weeks 3 days ago
Comment: 461

The job you need to do is extremely very easily shown inside your blogs; you're a genuine expert. I'd like to include an additional website towards the suggested types a person discussed a week ago. Request your own visitors to look at world wide web. Run a webinar review

nice article. go ahead

March 10, 2016 by paul33, 7 weeks 4 days ago
Comment: 454

nice article. go ahead
كلاش اوف كلانس

Crazy Bulk Reviews - Legal Anabolic Steroids For SALE

March 10, 2016 by micheal hatrick, 7 weeks 4 days ago
Comment: 445

I use only high quality materials - you can see them at:
Crazy bulk Reviews

ammir

March 9, 2016 by thomasqq, 7 weeks 5 days ago
Comment: 422

We notion it really is a good idea to publish could anyone was initially having issues searching for however , My organization is a bit of dubious just have always been allowed to insert leaders together with contact regarding at this point. permanent make up berlin

mobdro for pc windwos

March 9, 2016 by jelona, 7 weeks 5 days ago
Comment: 426

Download Mobdro TV for iOS,

March 9, 2016 by jelona, 7 weeks 5 days ago
Comment: 427

Download Mobdro TV for iOS, PC, Windows Devices: http://tvappsforpc.net/mobdro-pc-windows-ios-ipad-iphone/
Watch Mobdro shows, movies for free: http://tvappsforpc.com/mobdro-pc-iphone-ipad-ios-mac-windows/
Watch movie streaming on your windows PC using: http://mobdropcdownload.com/mobdro-for-pc-working-windows-mac/. Really it is an amazing movie app to get enjoyment

Four Seasons Wildlife Removal

March 6, 2016 by micheal hatrick, 8 weeks 1 day ago
Comment: 387

Can nicely write on similar topics! Welcome to Wildlife Removal Service in Markham here you'll find out how it should look.

DFW Taxi Cabs

March 2, 2016 by micheal hatrick, 8 weeks 5 days ago
Comment: 344

For true fans of this thread I will address shuttle service Orlando is a free online!

I really like this website

February 27, 2016 by tasneen, 9 weeks 2 days ago
Comment: 314

I really like this website davidc and i look forward for more latest updates. buy mobile phones online in India

David

February 25, 2016 by thomasq, 9 weeks 4 days ago
Comment: 307

This is the amazing content, Granted much information within it, These kind of sort of content continues your consumers desire for your website, along with go on expressing additional... all the best . salesenvy review

My partner and i astonished

February 21, 2016 by LucaKhloe, 10 weeks 1 day ago
Comment: 280

My partner and i astonished with all the examination an individual built to get this distinct distribute extraordinary. Great action!
ClubFlyer

If you butt these two agency

January 13, 2016 by scalett, 15 weeks 5 days ago
Comment: 209

If you butt these two agency http://papalote-sf.com/pages/chanel.php to appraise a assertive Chanel handbag, congratulations! You are constant to accretion the a lot of sutable one just in a in actuality simple way.Now it can be apparent that the abounding of the baby companies are address arrangement duke accoutrements like that of http://www.hopebags.net at about one alternating the age-old chanel handbags price

thanks for the amazing post.

January 29, 2016 by Amit JD, 13 weeks 3 days ago
Comment: 230

Vidmate app is very usefull app to download youtube videos on your mobile and PC.
http://vid-mate.net/
Vidmate APP APK
vidmate for pc windows 10

match attax tins - Trading

December 16, 2015 by jamessmith123, 19 weeks 5 days ago
Comment: 186

match attax tins - Trading cards available at Chaos Cards. Many collectable trading cards to be bought online, complete your collection of trading cards now.