Skip to content

This Python application simulates our solar system using the Pygame library.

License

Notifications You must be signed in to change notification settings

AbrarShakhi/solar-system-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar System Simulation with Pygame

This Python application simulates our solar system using the Pygame library. It includes the following celestial bodies:

  1. Sun
  2. Earth
  3. Mars
  4. Venus
  5. Mercury

You can add more planets, moons, and satellites. Additionally, you can customize their initial velocity, mass, and distance to create your own interactive solar system model.

Feel free to explore and experiment with different parameters! 🌏🪐☀️


How to run

  • install python 3.9 or later.
  • install pygame from pip.
  • and run runme.py file from the project.
  • python runme.py orpython3 runme.py

Demo

Nonal speed and mass mass of earth is x10000 all objects mass x3 all planets mass x100 unstable system unstable system


NOTE: If you have any suggestions feel free to pull requests or issue here.

About

This Python application simulates our solar system using the Pygame library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages