Skip to content

A Python-based interactive 2D/3D Solar System simulator built with Pygame and Pygame GUI, featuring orbit trails, parallax star backgrounds, a toggleable 3D view, mini-map, background space sounds, and GUI buttons for easy control.

Notifications You must be signed in to change notification settings

akankshavm22/Solar-System-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Solar System Simulator

A Python-based interactive 2D/3D Solar System simulator built with Pygame and Pygame GUI, featuring orbit trails, parallax star backgrounds, a toggleable 3D view, mini-map, background space sounds, and GUI buttons for easy control.

πŸš€ Features

  • πŸͺ Accurate relative orbit speeds and distances (scaled)
  • 🌌 Multi-layer parallax starfield background
  • 🌍 Toggle between 2D and simulated 3D orbital view
  • 🧭 Mini-map shows real-time planet positions
  • πŸŒ€ Animated orbit trails for all planets
  • πŸ•Ή GUI buttons:
    • Pause / Play simulation
    • Toggle 2D ↔ 3D View
    • Mute / Unmute background music
  • πŸ”Š Ambient space music to enhance realism
  • πŸ–± Zoom and drag camera using mouse

πŸ“ Project Structure

solar-system-simulator/
β”œβ”€β”€ planets/
β”‚   β”œβ”€β”€ sun.png
β”‚   β”œβ”€β”€ mercury.png
β”‚   β”œβ”€β”€ venus.png
β”‚   β”œβ”€β”€ earth.png
β”‚   β”œβ”€β”€ mars.png
β”‚   β”œβ”€β”€ jupiter.png
β”‚   β”œβ”€β”€ saturn_ring.png
β”‚   β”œβ”€β”€ uranus.png
β”‚   └── neptune.png
β”‚
β”œβ”€β”€ sounds/
β”‚   └── space_ambient.mp3
β”‚ 
β”‚
β”œβ”€β”€ solar_system.py
└── README.md

πŸ§‘β€πŸ’» Requirements

  • Python 3.8+
  • pygame
  • pygame_gui

πŸ“¦ Installation

  pip install pygame pygame_gui

πŸ–± Controls

Action How
Zoom Mouse wheel scroll
Drag Left mouse click + drag
Pause / Resume Click Pause button
2D / 3D Toggle Click Toggle 3D button
Mute / Unmute Click Mute button

About

A Python-based interactive 2D/3D Solar System simulator built with Pygame and Pygame GUI, featuring orbit trails, parallax star backgrounds, a toggleable 3D view, mini-map, background space sounds, and GUI buttons for easy control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages