A simple 2D orbital simulator written in Python using pygame-ce. Simulates planets orbiting a primary body and provides camera controls, configurable objects and UI stats.
- Realistic Newtonian gravity for multiple bodies
- All celestial objects are fully configurable
- Supports camera tracking and free movement
- Install dependencies:
pip install -r requirements.txt- Run the app with:
python main.pyDownload and launch the lastest .exe file in the releases section.
- Q / E: Cycle camera focus on bodies (next / previous)
- W A S D or Arrow keys: Freely move the camera around
- Z / X: Increase or decrease the simulation timescale
- P: Pause / unpause simulation
- C: Clear object paths (helps if fps starts to drop)
- F: Toggle fullscreen
- Entry point: main.py
- Core loop:
orbit_sim.core.engine.start - Models:
orbit_sim.models.celestial_body.CelestialBody,orbit_sim.models.camera.Camera - Asset loader:
orbit_sim.systems.asset_loader.AssetLoader - Helpers:
orbit_sim.helpers.consts,orbit_sim.helpers.asset_bank
Assets are stored under the assets/ folder (images, sounds, themes). The app falls back to placeholder assets if files are missing.
MIT — see LICENSE.