Skip to content

KlausJackson/Simple-Planetary-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Planetary-Simulation.github.io

Website: https://klausjackson.github.io/Simple-Planetary-Simulation/

Python License GitHub top language GitHub code size in bytes GitHub issues GitHub issues GitHub issues GitHub issues GitHub last commit

Forks Stars Watchers

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

How To Contact Me

Patreon Buy Me A Coffee LinkedIn Gmail Steam

Preview

Here's the end result of the code.

preview

Requirements (for running Python 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.

The End

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!