Skip to content
MAKAKAIglitchPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SpaceSim

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

Vision

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.

Current technical direction

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.

Development principles

  1. Simulation before spectacle. Important systems should have coherent, testable models.
  2. Explicit units and coordinate systems. SI units, large-world precision, and clear conversions are foundational.
  3. Client and server share simulation rules. Multiplayer must not be a late add-on.
  4. Open formats and documented interfaces. Saves, mods, and tools should not depend on private services.
  5. Modularity without needless fragmentation. Keep the initial project understandable; split repositories only when there is a concrete reason.
  6. Community contributions are welcome. Ideas, bug reports, documentation, tests, and code are all valuable.

Build the current foundation

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 default

This builds the SDL3-based application shell and runs core tests. It opens a native window, but does not render a 3D scene yet.

Getting involved

The project is at an early stage, so discussion and design feedback are especially useful.

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 documents

License

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.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages