Although it is only in alpha, APE - the ActionScript Physics Engine - is amazing. I knocked up a little demo in Flex which you can see here:

http://www.flexmonkey.co.uk/APE_Test/ApeTest.html

Draw on the canvas to create immovable blocks and click to create moving circle particles. Originally, I thought there was a bug registering the immovable blocks, but my code was creating rectangles with a negative length. Although these rendered fine, the physics didn't work. I coded round that this morning on the train and voila - perfect particles!

Right click for the source code - it's only a few lines of code from me, basically all I had to code was code for the user interaction.

Anyway, APE seems to be the way to rip off BumpTop in Flex, or code that air hockey game I've been meaning to write.
0

Add a comment

About Me
About Me
Labels
Labels
Blog Archive
Loading