Website: https://klausjackson.github.io/Simple-Planetary-Simulation/
A for-fun simple project, inspired by Tech With Tim. Python code included.
In my HTML code, the planets slow down over time, no idea why, anyone got a clue?
Special thanks to Tech With Time for his valuable content and tutorials.
Tech With Tim source code repo : link to repo
Tech With Tim tutorial video : link to video
Here's the end result of the code.
Python 3.8 or higher
Libraries and Frameworks used in this repository:
- pygame (
pip install pygame
) - math
They're all Python default library so no need to install anything except for Python 3.8 or higher.
How to run the code: open the terminal in the location where you installed the code and type python3 planetary-simulation.py
.
Tip:
- Open the folder that contains the script you need to run.
- From the path box, type 'cmd' or right-mouse, select
Open in Terminal
. Both works.
If you have any problem while running the code or any ideas to improve it, feel free to file an issue.
That's all I got. Enjoy!