00:00
00:00
Newgrounds Background Image Theme

SpeakyDooman just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Physics Engine Demo v2

Share Collapse

Author Comments

This is version two of a physics toy built around a physics engine I built from the ground up in actionscript 3 (no Flash). I increased the speed and amount of bullets being shot, so don't shoot too many, or you'll crash your browser. I'm working on using my physics engine to create a CPU benchmark in flash.

Also included is the frames per second (in the upper-left corner). The fps doesn't start to really dip (starts at 30) until around 1000 objects. Number of bullets onscreen is upper-right corner.

Any words of advice for creating games around a physics engine like this is appreciated. I welcome your flaming too. Only proves the stupidity of the interwebs.

Controls/Tips:
Click around to fire bullets. Watch them bounce around the walls. If you hold it down for a while, and then watch, it is pretty mesmerizing.

And yes, my physics engine does fit into 7.7 KB.

Log in / sign up to vote & review!

Well done engine

this is great, I couldnt get it to 1 fps =P and i went all the way to 4000 balls. I like the first one better because theres not that much lag. the new gauges are cool and a good idea. if you make a 3rd version you should add more colors or an animated backround so that it will look wierd when the balls bounce around xD.

10/10
5/5

~xTc~

FPS Testing

Started averaging at 30 FPS. Stayed that way till around 650. At 750, went down to ~25 fps. At 800, it was about 23. 900 put it at 20/21 fps on average. Didn't test it past that. Put it collisions =D

If it does nothing, don't submit it.

It seems to be that all you do is click to spray extremely bouncy balls that aren't affected to gravity. I could make that.

jigajigajoo responds:

Ur right. go make it and prove me wrong.

Performance Issues

I don't know about action script but there's really some performance issues that need to be solved. Frame rate is starts fallin down when you create too much green things.

jigajigajoo responds:

well. the performance seems to not go below 27ish on my 4.1ghz core 2 duo until around 1000 objects onscreen. so obviously if you're running this on a shitty computer (ie laptop) and much fewer objects will slow the swf down.

and fyi this is a *demo*. What i mean by that is that it's unlikely that i will ever have 800 objects onscreen at once (think about any game like that in recent memory). Again, using this as a CPU benchmark is an idea, measure the average fps, etc.

Nice going!

Its a showoff for a physics engine in development. I don't see why he should any music should be in it.. I do agree that a reset button would be a good idea. Nice going!

jigajigajoo responds:

That's a good idea I didn't think about. That's why I read the comments. Thanks for appreciating the awesomicity of my work.

Credits & Info

Views
8,374
Votes
14
Score
2.69 / 5.00

Uploaded
Jun 4, 2009
12:01 AM EDT