We always wanted to program a 3d physics game, so we made one.

What it does

Allows the player to create planets and stars, and attempt to form a stable solar system

How I built it

The physics behind this game was built using real-life gravity math. The 3d rendering was made using 3d vector translation math and pygame to draw the planets. The display was made using pygame to render buttons.

Challenges I ran into

We originally planned on using Pyopengl, but unfortunately, it couldn't be drawn side by side with a normal pygame surface, so we can to resort to making our own 3d rendering module from scratch. Moving the perspective that viewed the 3d objects was also difficult, as we were inexperienced with vectors.

Accomplishments that I'm proud of

We managed to show 3d objects using a 2d drawing library and a 3d rendering module made from scratch. We also made the physics optional using the play and pause button.

What I learned

We learned how to collaborate on the same program with multiple people and understand each other's code.

What's next for SkyBox

We hope to add textures to the planets and add more types of celestial bodies(eg: moons, asteroids, black holes, etc).

Built With

Share this project: