A simplistic galaxy simulation: gravitational forces + collisions.
gif was made using: https://github.com/syohex/byzanz-window
Code is heavily inspired from this Piston-Tutorial
Collision was implemented using this tutorial
create new planets
by clicking on the window.
keys | action |
---|---|
arrows | move camera |
page up/down | zoom in/out |
Almost everything can be configured (gravity, planets, planet texture...)
see config.json (valid w.r to json schema)