Pixel Smash Source Code Released

Just a quick one, but some people asked me if I’d send them the source to the Pixel Smash demo I posted the other day. I figure it can’t hurt, so I’ve packaged it up, removed some useless bits, added comments and thrown it together in a zip.

Pixel Smash source code (includes Flash Develop project, set-up with Nape linked in ready to compile)

Should work “out of the box” on PCs running Flash Develop. Will need rebuilding in anything else. It isn’t optimised by a long shot, so make of it what you will.

Posted on January 8th 2011 at 12:16 am by .
View more posts in ActionScript3. Follow responses via the RSS 2.0 feed.

3 Responses

Leave a comment
  • November 17th 2011 at 11:19 pm

    Hey mate, great little thing you’ve got going here, really like the mash-up between pixels and gravity, lots of fantastic ideas spring to mind with this. I’m a Flash Developer, and I’ve been working on creating a Box2D version of this demo – I’ve got everything running, but there seems to be some awful performance issues, I’m just about to post a video on the subject on my blog, and post the code up to my github account, would be amazing if one of you guys could find the time to have a look through the code to see if there’s something that can be done more efficiently?



  • November 18th 2011 at 12:17 am

    I would imagine your bottleneck is Box2D itself. It’s not great at hundreds of tiny objects (which is what Pixel Smash is). That’s why I used Nape instead!

Make yourself heard