An open-source, realistic spaceflight simulation and game engine built with C++.
SpaceSim aims to become a moddable, multiplayer space simulation in which players design, build, launch, operate, and maintain spacecraft and the infrastructure around them — from launch vehicles and satellites to communication relays, stations, surface bases, and eventually interstellar missions.
Project status: 0.0.2 application shell in progress. The repository now contains a C++20/CMake application shell with an SDL3 window, keyboard/mouse input, logging, settings, and basic frame diagnostics. The Vulkan renderer and simulation have not started.
Русская версия · Build instructions · Project specification · Procedural universe · Architecture · Release plan · Roadmap · Contributing
SpaceSim is inspired by the engineering depth and freedom of Kerbal Space Program, with a stronger focus on realistic spaceflight, communications, navigation, spacecraft systems, and long-term space infrastructure.
- Vehicle engineering: modular rockets and spacecraft, propulsion, propellants, staging, mass properties, power, thermal management, and optional failure modes.
- Orbital mechanics: launches, orbit changes, rendezvous, docking, re-entry, multi-body effects, and interplanetary transfers.
- System map and mission operations: a hierarchical map from local orbit to the Solar System, selectable spacecraft, orbit/trajectory views, time controls, and detailed object inspectors.
- Deep-space missions: long-duration probes, delayed radio links, contact windows, onboard data storage, and radioisotope power systems with declining output.
- Advanced spacecraft: future chemical, electric, nuclear thermal, and nuclear electric propulsion, plus walkable interiors for suitably designed crewed ships and stations.
- Connected space infrastructure: player-designed satellites, relay constellations, ground gateways, orbital internet, routing, signal delay, and communication blackouts.
- Orbital industry: robotic collectors, resource depots, refineries, assembly platforms, and servicing stations.
- Orbital computing: data centers and distributed workloads constrained by power, thermal, compute, and network budgets.
- Scalable physics: high-fidelity simulation where it matters, with validated lower-cost models for distant or inactive objects.
- Procedural universe: distinctive planets and star systems generated from reproducible seeds, with a long-term goal of a structured procedural galaxy.
- A complete Solar System: reference-based astronomical data combined with procedural terrain, atmospheres, clouds, and surface detail.
- Long-term exploration: stations, bases, rovers, resource systems, and eventually interstellar travel.
- Multiplayer: cooperative sessions and persistent worlds, over LAN or the internet.
- Modding: Lua scripting and data-driven content, with documented APIs.
- Open development: public source code, issues, pull requests, and community-operated servers.
These are project-level intentions, not claims that the systems already exist:
| Area | Direction |
|---|---|
| Main language | C++20 baseline |
| Build system | CMake |
| Graphics APIs | Vulkan first; Direct3D 12 as an additional Windows backend |
| Platforms | Windows first; keep Linux support in the architecture |
| Rendering architecture | Backend-independent rendering interface (RHI) |
| World generation | Deterministic, seed-based planets and star systems; hierarchical galaxy generation |
| Modding | Lua, with a versioned and sandboxed API |
| Multiplayer | Shared protocol for LAN and internet play |
| Servers | Dedicated server, official and community-hosted worlds |
| License | MIT |
Third-party libraries will be selected deliberately after checking maintenance, platform support, security history, and licenses. See Architecture.
- Simulation before spectacle. Important systems should have coherent, testable models.
- Explicit units and coordinate systems. SI units, large-world precision, and clear conversions are foundational.
- Client and server share simulation rules. Multiplayer must not be a late add-on.
- Open formats and documented interfaces. Saves, mods, and tools should not depend on private services.
- Modularity without needless fragmentation. Keep the initial project understandable; split repositories only when there is a concrete reason.
- Community contributions are welcome. Ideas, bug reports, documentation, tests, and code are all valuable.
See docs/DEVELOPMENT.md for requirements and commands. The quick path with CMake and Ninja is:
cmake --preset default
cmake --build --preset default
ctest --preset defaultThis builds the SDL3-based application shell and runs core tests. It opens a native window, but does not render a 3D scene yet.
The project is at an early stage, so discussion and design feedback are especially useful.
- Found a problem? Open a bug report.
- Have an idea? Open a feature proposal.
- Want to contribute? Read CONTRIBUTING.md and open a pull request.
- Want to discuss a design decision? Open an issue with the proposal and trade-offs.
Contributions from first-time contributors are welcome. You do not need to ask permission before opening a PR. Please keep changes focused and explain the problem they solve. All contributions are reviewed; opening a PR does not guarantee that it will be merged.
- Project specification — goals, scope, simulation requirements, and product direction.
- Space infrastructure — satellites, networks, orbital industry, data centers, and deep-space power.
- Hardware acceleration — runtime CPU feature detection, SIMD dispatch, multithreading, and GPU compute.
- System map and operations — map navigation, object inspection, trajectories, and mission management.
- Architecture — proposed engine boundaries and technical constraints.
- Release plan — version-by-version milestones and acceptance criteria from 0.0.1 to 1.0.0.
- Roadmap — technical work across engine and simulation modules.
- Contributing guide — how to participate.
- Third-party notices — dependency versions and licenses.
- Third-party notices — dependency versions and licenses.
- Governance — how decisions and reviews work.
- Security policy — responsible vulnerability reporting.
The project source code is released under the MIT License. Third-party components retain their own licenses. Any future assets or bundled content will have their licensing stated separately.
SpaceSim is an independent open-source project and is not affiliated with or endorsed by Squad, NASA, ESA, or any other organization mentioned in project discussions.