A downloadable game

Description:

This is a Python software known as Planet Simulation which was created using Pygame. It employs Newtonian gravity to emulate how planets move in outer space. Objects in the program are planets which are characterized by properties such as position, velocity, mass, and orbit based on the object-oriented programming model. It has features such as pausing and resuming the simulation, adjusting the simulation speed, and zooming in on the planets. It is presented in a graphical user interface developed with Pygame so that the users can observe the planet orbits and control the simulation with keys.

Features:

  • Simulates the movement of planets based on Newtonian gravity.
  • Allows zooming in and out for closer inspection of planets.
  • Provides options to adjust the simulation speed.

Controls:

  • Enter Key: Select the chosen simulation speed and start the simulation.
  • Up Arrow Key: Move up in the menu options.
  • Down Arrow Key: Move down in the menu options.
  • Escape Key: Return to the main menu from the simulation screen

Source Code:

Source code can be found on the GitHub Repository.

Download

Download
Planet Simulation.zip 50 kB

Install instructions

  1. Run the setup scripts:
  2. Run the game: Open a terminal or command prompt, navigate to the directory containing the downloaded files, and running through

    python main.pyw

Leave a comment

Log in with itch.io to leave a comment.