A Celestial Simulator For The Kids Written In Python

Two solar systems colliding in our celestial simulator.

The Compromise

We talked about it and decided to try a less time consuming but just as creative project… an existing planet simulator. This is something simple that uses the popular PyGame engine, draws graphics, and can be modified in a few minutes. Plus it looks really cool when it runs, like a game.

The Play

Running the simulator written by Enos, thank you by the way, was a great call. We had something running in seconds and her first take was… “Whoa, cool!” That bought us enough interest to mess with the code a bit. Of course we added multiple suns and planets that would end up drawing spectacular solar system collisions!

The Work

Being an engineer is a blessing and a curse. While running the simulation we quickly ran into some lag. After my daughter went to bed I spent the evening playing around with the code resulting in three changes:

  1. More speed means more planets!
  2. Configurable simulation files so we can save the coolest collisions.
  3. Moons! Because defining an orbiting body shouldn’t be that hard.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store