Build 10 classic Flash games and learn game development along the way with this ultra-fast paced game development course.

If you love this blog, this is the book for you.

Buy the book

Get the source code of 12 commercial Flash games, which have been loaded more than 50 million times!

Learn from real world successful examples.

Get it now

Box2D for Flash Games teaches you how to make Flash physics games from scratch with the most advanced features.

Create the new Flash game smashing hit.

Buy the book

“Hundreds” Flash game prototype using Box2D – handling collisions

Welcome to the second part of the Box2D Hundreds prototype.

In this second part I am going to add some features which will make the prototype looking more like the original game, while having something different, just to make a new concept.

So the game now works this way:

* You can make a circle grow endlessly as long as you stay with the mouse over it
* The circle will stop growing, and will never grow again, if you leave the mouse from over it
* If a growing circle hits any other circle, both circles won’t be able to grow anymore and the size of the currently growing circle will be reduced by half.

Give it a try:

This is the commented source code for the main class:

and for the contact listener:

Download the source code. Next time, Nape version.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5.00 out of 5)
Loading ... Loading ...
Flash Templates provided by Template Monster are pre-made web design products developed using Flash technology.
They can be easily customized to meet the unique requirements of your project.
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has one comment

  1. Lim Fhiau

    on February 2, 2013 at 11:40 am

    it’s hard to play this game when using touchpad :D