Mad Tea Party got physics

Heya all,

I bumped into the AS3 port of Box2D by accident one day while wasting away a slow day at work, and was impressed to bits. Hence I spent a few weekends getting to know it a bit more. The performance is rather amazing, and I've always loved physics. So I took the port and ran with it, grabbed some tea and did Mad Tea Party anew once again. Currently it contains one fun little game and a simple playground done with the aid of Box2D.

I love this physics trickery, and enjoy looking forward to spending more of my free weekends on it 😉

If you want to take a peek at it, check it out at http://www.mad-tea-party.org

Thank you for the port, also can't wait for 2.0 to tickle my insides.

Cheers

Mad Tea Party
Cool stuff! They're running a bit slow on my machine (and I've seen flash Box2D based stuff run faster in my browser before). I assume that you're using the EnterFrame Event to time your interactions and screen redrawing. I think Flash animations default to 12fps. Did you set the FPS yourself? To something like 30?

Example (used somewhere in your Document [Main] Class' constructor, for instance):
Code:
//Set the frame rate to something manageable.
this.stage.frameRate = 30;

??
The FPS is 30 on all them clips.

I've only encountered slowing down when I use a large browser window, eg the rendering area is almost 1600*1000. Makes things a bit sluggish. The thing has quite a bit of boxes and circles with movieClips as the graphics. Tends to slow things down a bit, at least from what I've gathered. Then again, I'm devving with a powerful machine.

However, this is still a version in development, so I haven't optimized or tweaked it yet. I'll get to it next weekend 😉

Thanks for the comments!

Cheers

MadTea
Hehee, I clearly need to do some optimizing. I'll get to it hopefully next weekend. It is still just a small play with the box2d for fun at the moment. 🙂

It works okayish with my work laptop, Dell Latitude D820, my home comp is some Intel dualcore E6550 with 2 gigs of memory, works perfectly on that, but it might be a bit overkill for flash.

Anyway, thanks for the comment ,I'm thinking of making it a level based game with high score lists and all... one day when I have the time. I'll be sure to re-add the fps counter as well.

Cheers

MadTea

Original thread: https://box2d.org/forum/viewtopic.php?t=616