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 27, 2016 by thomasqq, 2 hours 30 min ago
Comment: 2194

Fantastic blog page with all the terrific good items not to mention I’m absolutely sure this will be vastly advantageous. live leap review

I also love the design, its

May 26, 2016 by robinjack, 1 day 7 hours ago
Comment: 2097

I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site. Buy Salvia Extract

Latest Celebrity News

May 25, 2016 by jone, 1 day 21 hours ago
Comment: 2078

Celebrities have always been fascinating to the general population. We follow their careers and we are interested in their love-lives, their choice of fashions and what they get up to when they are not on stage or the silver screen Latest Celebrity News

jackman10

May 25, 2016 by jackman10, 1 day 22 hours ago
Comment: 2067

folks merely need to create a lot more. I did so a wonderful that i was wonderful articles through. The application almost certainly performed for your rate nonetheless it’s excellent. My partner and i usually dispatch an individual.attract females

Egigglers

May 25, 2016 by jone, 1 day 22 hours ago
Comment: 2070

Egigglers Site Where you People Can All type of Data about Fun, Entertainment, Knowledge and World news.One Stop Shope Where you Can anything what you Want. Egigglers

Nice to be visiting your blog

May 25, 2016 by jackman10, 2 days 10 hours ago
Comment: 2041

Nice to be visiting your blog once more. it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty. and it has same topic together with your article KingSuplemen.com

LifeStyle Blogs

May 25, 2016 by jone, 1 day 22 hours ago
Comment: 2071

If you've been blogging for any length of time you've been here - hunched over your keyboard searching your brain for any idea you can think of for your next blog post. But nothing works. Nothing sounds good.  LifeStyle Blogs

jhonwattson

May 24, 2016 by alikhann, 3 days 2 hours ago
Comment: 2028

Examining virtually any website will make other folks merely need to create a lot more. I did so a wonderful that i was wonderful articles through. The application almost certainly performed for your rate nonetheless it’s excellent. My partner and i usually dispatch an individual. boyfriend jeans

sl786982

May 24, 2016 by sl786982, 3 days 8 hours ago
Comment: 2008

Much obliged implied for sharing this kind of fulfilling sentiment, composed piece is particular, that is the reason I've perused it totally. can ho cao cap

jackman10

May 23, 2016 by jackman10, 4 days 2 hours ago
Comment: 1986

I have never seen a more wonderful post than this one. You’ve really made my day today with this
loft conversions london

Oh now its clear its video

May 22, 2016 by robinjack, 5 days 5 hours ago
Comment: 1961

Oh now its clear its video game.First time i was confuse what is it.Thanks for inform us video game . ajmer to jaipur cab

robinjack

May 22, 2016 by robinjack, 5 days 5 hours ago
Comment: 1958

backlinks are very important for their search engine optimization. Being ranked well in search engines like Google means. DNA Wealth Blueprint

robinjack

May 21, 2016 by robinjack, 6 days 7 hours ago
Comment: 1929

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.
acne no more by mike walden

Oh now its clear its video

May 21, 2016 by robinjack, 6 days 7 hours ago
Comment: 1924

Oh now its clear its video game.First time i was confuse what is it.Thanks for inform us video game.garcinia cambogia

All top marketers in internet

May 21, 2016 by robinjack, 6 days 9 hours ago
Comment: 1912

All top marketers in internet marketing know too well that backlinks are very important for their search engine optimization. packers and movers pune rates

whose advice I listen to but

May 18, 2016 by jackman10, 1 week 2 days ago
Comment: 1872

whose advice I listen to but rarely follow but always end up wishing I did. She really is my best friend.Ashy Bines

I don't know what to say

May 17, 2016 by jackman10, 1 week 2 days ago
Comment: 1847

I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
dog storage locker man

Best work you have done, this

May 17, 2016 by uali20, 1 week 3 days ago
Comment: 1835

Best work you have done, this online website is really cool with great facts.
Factual Accuracy Check

An fascinating discussion is

May 17, 2016 by uali20, 1 week 3 days ago
Comment: 1834

An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers
satta king

Hi there! Nice post! Please

May 17, 2016 by uali20, 1 week 3 days ago
Comment: 1833

Hi there! Nice post! Please tell us when I will see a follow up!
buy doom 2016

Great content material and

May 17, 2016 by uali20, 1 week 3 days ago
Comment: 1831

Great content material and great layout. Your website deserves all of the positive feedback it’s been getting.
​Northern Firearms Instruction

You have done a great job on

May 17, 2016 by uali20, 1 week 3 days ago
Comment: 1829

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you.Deck Awning

Excellent post. you have

May 16, 2016 by Helen55, 1 week 4 days ago
Comment: 1824

Excellent post. you have stated some excellent points. I as well believe this can be a very superb website.wimbledonlive

jhonwattson

May 16, 2016 by alikhann, 1 week 4 days ago
Comment: 1807

There are lots of essay or dissertation web-sites on the net since you include definitely expressed with your blog site. The Money Glitch Review

LifeStyle Blogs

May 21, 2016 by maydichain, 6 days 6 hours ago
Comment: 1932

Throughout the 1900's, and even earlier, therapists have encouraged expression of emotions to be a healthy form of therapy. This is usually to be done through artwork, music and journal keeping - most specifically journal keeping. LifeStyle Blogs

REIMAIN

May 15, 2016 by ha91070, 1 week 4 days ago
Comment: 1791

Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. The Magic of Making Up

very different reasons. And

May 15, 2016 by jackman10, 1 week 5 days ago
Comment: 1783

very different reasons. And the two heroes will soon realize that they’re the real targets of a nefarious madman Hell-bent on revenge… Sameday dry cleaning london

jhonwattson

May 15, 2016 by alikhann, 1 week 5 days ago
Comment: 1777

Craft alot more articles and reviews in this particular area you now have the ideal approach to help you support writters. her yoga secrets

amir

May 14, 2016 by thomasqq, 1 week 6 days ago
Comment: 1769

Which may functionality short-term, even so it’s just not a realistic long-term remedy with regards to adult males who would like to be on this 1 one of a kind person they can’t halt thinking of. spystream pro

Toti ne dorim o dantura

May 11, 2016 by jackman10, 2 weeks 1 day ago
Comment: 1718

Toti ne dorim o dantura frumoasa si sanatoasa. Ceea ce putini stiu insa este ca pentru acest lucru nu trebuie sa depunem mult efort. Sunt suficiente stock trading

jhonwattson

May 11, 2016 by alikhann, 2 weeks 2 days ago
Comment: 1709

Thank you for the information and clarification about the identical houses. While I was reading the post I thought they might be haunted, but its nothing of that sort, thanks to your explanation video conferencing

jhonwattson

May 11, 2016 by alikhann, 2 weeks 2 days ago
Comment: 1703

We've certainly not after go through a chunk that will details precisely what I truly do together with your the latest web site really does. Thanks a lot to the honor! kancer koze

jhonwattson

May 11, 2016 by alikhann, 2 weeks 2 days ago
Comment: 1702

You might be a single extremely trustworthy website article writer. After all, generally, people reveal concerns as well as the details they feature just isn't since sensible. An individual alternatively; whatever you point out pencils out there. The advice regarding the usage of as an example has been the most effective. This web site is perfect! kancer koze

sharing this Superb article.I

May 10, 2016 by jackman10, 2 weeks 2 days ago
Comment: 1688

sharing this Superb article.I utilize this Article to demonstrate my task in college.it is helpful For me Great Worsilicone breast implant

jhonwattson

May 9, 2016 by alikhann, 2 weeks 4 days ago
Comment: 1665

Having appreciate it for all encouraging blog site you could have definitely also been doing. I did shied down doing responses seeing that announcement bought all around presently. derma face serum

This really is truly

May 7, 2016 by jackman10, 2 weeks 6 days ago
Comment: 1607

This really is truly fantastic report. express appreciation you for dispersing it with us! I have a great fat removal product. If you want it so please visit our site… get more Info

MSG 91 SMS

May 5, 2016 by Maya, 3 weeks 1 day ago
Comment: 1567

Thanks for sharing this Post, Keep Updating such topics.
wideinfo
branded.me
kiwibox

amir

May 1, 2016 by thomasqq, 3 weeks 4 days 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

explain in words with the

May 16, 2016 by BlackMen, 1 week 4 days ago
Comment: 1818

explain in words with the soul plus resolution during this vital matter is often without difficulty viewed. Cialis

I enjoy a person's

May 12, 2016 by BlackMen, 2 weeks 1 day ago
Comment: 1748

I enjoy a person's posting.free business calls

Its an informative topic. It

May 1, 2016 by robinjack, 3 weeks 5 days 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, 4 weeks 2 days 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, 3 weeks 6 days 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, 4 weeks 4 days ago
Comment: 1308

MSG 91 SMS

April 23, 2016 by Maya, 4 weeks 6 days ago
Comment: 1282

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

alikhann

April 18, 2016 by alikhann, 5 weeks 4 days 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, 5 weeks 4 days ago
Comment: 1169

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

http://mobdroapps.com is a

April 18, 2016 by techy2017, 5 weeks 4 days 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, 5 weeks 4 days 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, 5 weeks 5 days 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