I recently started using an Android 2.2 OS phone which has Flash 10. I’ve been toying with developing simple demos to test out the Flash capabilities of the phone. Then I decided to test out a simple Box2D demo I made as a modification of the demo by plasticsturgeon. Box2DFlash is an open source Physics Engine. Check it out. I look forward to working with it more in the future.
The demo ran quite smooth on the phone surprisingly staying close to 30 fps.
Below is the demo, but to get the full effect browse to the link using an Android 2.2 phone with Flash 10 installed.
mobile link: http://www.lostvectors.com/mobile/test4
Modifications to the original demo by plasticsturgeon.com:
– Click (touch) to full screen mode.
– Zoomed camera focused view that pans with the target body
– Bodies jump as soon as they fall asleep
Here’s another mod I created to test user control of a single body using keyboard input. Use WASD to control the focused body (W is Jump). Note: this demo is intended for desktop computer with a keyboard and not a mobile device.
User Controlled Body Mod Features:
– Added “hero unit” user control of a single body using speed-capped impulse
– Detected edge collision to allow jumping only when grounded
To view this in it’s own window visit http://www.lostvectors.com/box2d/demo1