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.
- πͺ 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
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
- Python 3.8+
pygamepygame_gui
pip install pygame pygame_gui
| 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 |