Gravity Test

By The Emerald Derp Leader

A simulation of a particle being gravitationally attracted to the center. You can change the power of gravity from within the code (currently set to 3).

You can use the D-pad to apply thrust, press A to clear the trail, and press B to change the current trail color.

You can modify the variables for starting position, starting velocity, starting trail color, viewport size, and physics steps per render frame. There is edge warp.

I originally intended to make something that would predict the future orbit path using a function, but then I realized that the path of an object under acceleration is a second order differential which I have no idea how to solve :P .

Get LowRes Coder to use this program.

Play homegrown retro games and program your own!