theRemix invents gravity in haXe (with full source)

October 10th, 2009 »

ok maybe it’s not that new, and maybe i didn’t invent gravity, though usually where you see it in flash, you’ll see the force only applied in the downwards direction. Many thanks to Chris Sass for helping make sure i don’t waste >1 hour on figuring out acceleration and stuff.

Play

drag an object (they actually represent cookies) around with your mouse, clicking them makes them dark and stationary… like stale cookies, no one wants that. pressing any key will reset the objects to random positions.
see if you can create a stable orbit.
hint, gravity is stronger when the objects are closer, have one object moving towards the other, then move it out of the way before impact

You need Flash 10 to view the awesome. It’s a free and fast upgrade.

Source

build.hx

Gravity.hx

Ball.hx

com.remixtechnology.Utils.hx

com.remixtechnology.Draggable.hx

com.remixtechnology.ShadowedTextField.hx


4 Responses to “theRemix invents gravity in haXe (with full source)”

Say Anything