Click in the box to give Flash focus first:
Your goal is to shoot the ragdoll into the little box on the right. That’s it. Press space to bounce the bridge and ‘r’ to reset if you get stuck.
I hacked this together in about an hour using some of the demo code from the Flash version of Box2d. I haven’t had this much fun playing around with code in a while. Box2d is a 2d physics simulation library that is straightforward and easy to use. It has support for various primitive shapes, a couple of joint types, and continuous collision detection for fast moving objects. It’s also open source. Kudos to the developers.
Goofing around with this feels a bit like being 12 years old again and experiencing the high of putting together my first text adventure game in QBASIC. Great fun!
Oh and by the way, if you notice the ragdoll acting a little goofy near the left “cage” post it’s because I added some invisible upward force there to make it easier to win. Sometimes it backfires a bit.






