Highly Inaccurate Galaxy Simulation

.

A simplistic galaxy simulation: gravitational forces + collisions.

screencast.gif

gif was made using: https://github.com/syohex/byzanz-window

Code is heavily inspired from this Piston-Tutorial

Collision was implemented using this tutorial

Controls

create new planets by clicking on the window.

Camera Controls

keys action
arrows move camera
page up/down zoom in/out

Config

Almost everything can be configured (gravity, planets, planet texture…)

see config.json (valid w.r to json schema)

Crates