FlxSnake – A simple Snake game for Flixel 2.23+

I’ve been playing with Flixel a lot recently, and over on the forums someone was having trouble getting a “snake” game to work. I always applaud people who “start simple”, rather than diving in the deep end and sinking without trace.

So I spent lunch time today knocking together a simple snake game in Flixel 2.23.

There are no graphics (just blocks), but it shows how to use an FlxGroup to handle single to many collision checks, simple sprite controls and of course a basic snake game mechanic. The whole thing is just one single class file with no external requirements.

It’s up on my GitHub account here: http://github.com/photonstorm/FlxSnake

And if you want to join in, the forum thread is here: http://flixel.org/forums/index.php?topic=1261.0 (I’m a moderator on the Flixel forums, so drop by and say hi!)

Posted on March 19th 2010 at 4:59 pm by .
View more posts in Flixel. Follow responses via the RSS 2.0 feed.


2 Responses

Leave a comment
  • May 15th 2014 at 12:01 am

    Darn shame that this doesn’t actually work anymore. Going to see if I can update it to work with the latest Flixel.

    Basically out of the box it throws quite a few errors now. But I suppose it HAS been 4 years.

Make yourself heard