A simulation of planets and their orbits around the sun in Python.
- Install Python from here
- Install Git from here
- Open cmd.exe/shell and
cd
to the directory you wanna install the program - Type
git clone https://github.com/Oakchris1955/PyGame-Planet-Simulation
cd
to the directory created by typingcd PyGame-Planet-Simulation
- Type
pip3 install -r requirements.txt
for Windows orpython3 -m pip install -r requirements.txt
to install the prerequisites - That's it. Now all you have to do is run
main.py
This is a fork of techwithtim's repository about Making a Planet Simulation with Python. It adds some extra features.
- Click a planet to select it
- Planet are viewed on their actual size
- You can drag the screen...
- ...and you can zoom in and out too
- To reduce lag, only some recent parts of the orbit are drawn, while the other fade away. This reduces lag by a lot
- And more features are expected to come