This repository contains a Planet Simulator written in Python using the PyGame library. The simulator allows you to simulate a solar system with planets, their orbits, rotations, and movement. It's a graphics programming example that provides an interactive way to explore the dynamics of celestial bodies.
To run the Planet Simulator, follow these steps:
- Install Python 3.x on your system if not already installed.
- Install the PyGame library by running the following command:
pip install pygame
- Clone this repository to your local machine:
git clone https://github.com/metidev/planet-simulator.git
- Navigate to the cloned repository's directory:
cd planet-simulator
- Run the simulation by executing the
planets.py
script:python solar.py
- Simulate the orbits and rotations of planets in a solar system.
- Adjust the viewpoint to explore the simulated universe.
- Interact with the simulation to better understand the movements of planets.
You can preview the simulation by clicking on the following link: Preview
This project was inspired by the works of other developers who have created similar solar system simulations using PyGame and Python. Special thanks to the following repositories:
Please refer to their repositories for additional insights and inspirations.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as needed.