How kiml42/spacecombatsimulation works
SCS2D is a browser-based space-combat simulator and ship/fleet design application; the README’s Unity description appears stale relative to the supplied TypeScript app. Users can design ships and fleets, configure and play skirmishes, inspect battles, and run design evolution. The graph preserves those major screens and the simulation, rendering, and storage layers. Edges are limited to routing and source references visible in the excerpts or index; unsampled page internals are not inferred.
Main entry points: routes.tsx App Routes · blueprint.ts Ship Blueprints · index.ts Simulation API · observedStorage.ts Browser Storage
Components 18
Application
- App Routes
SCS2D/app/routes.tsx - Browser Storage
SCS2D/features/storage/observedStorage.ts
Design Tools
- Ship Designer
SCS2D/app/routes/ship/ShipPage.tsx - Fleet Designer
SCS2D/app/routes/fleet/FleetPage.tsx - Design Library
SCS2D/app/routes/library/LibraryPage.tsx
Combat
- Skirmish Setup
SCS2D/app/routes/skirmish/SkirmishPage.tsx - Skirmish Rules
SCS2D/scenarios/skirmish.ts - Battle Screen
SCS2D/app/routes/battle/BattlePage.tsx - Effects Viewer
SCS2D/app/routes/effects/EffectsPage.tsx
Evolution
- Evolution Screen
SCS2D/app/routes/evolution/EvolutionPage.tsx - Design Mutation
SCS2D/evolution/mutate.ts
Simulation Core
- Canvas Renderer
SCS2D/render/canvas2d.ts - Simulation API
SCS2D/sim/index.ts - Ship Blueprints
SCS2D/sim/blueprint.ts - Ship Modules
SCS2D/sim/modules.ts - Combat Doctrine
SCS2D/sim/doctrine.ts - Shape Geometry
SCS2D/sim/shape.ts
Other components
- User
Connections 16
- User → App Routes: opens app
SCS2D/app/routes.tsx - App Routes → Ship Designer: routes to
SCS2D/app/routes.tsx - App Routes → Fleet Designer: routes to
SCS2D/app/routes.tsx - App Routes → Design Library: routes to
SCS2D/app/routes.tsx - App Routes → Skirmish Setup: routes to
SCS2D/app/routes.tsx - App Routes → Battle Screen: routes to
SCS2D/app/routes.tsx - App Routes → Effects Viewer: routes to
SCS2D/app/routes.tsx - App Routes → Evolution Screen: routes to
SCS2D/app/routes.tsx - Skirmish Rules → Simulation API: imports API
SCS2D/scenarios/skirmish.ts - Design Mutation → Simulation API: imports API
SCS2D/evolution/mutate.ts - Canvas Renderer → Simulation API: imports API
SCS2D/render/canvas2d.ts - Simulation API → Ship Blueprints: exports
SCS2D/sim/index.ts - Ship Blueprints → Ship Modules: uses
SCS2D/sim/blueprint.ts - Ship Blueprints → Combat Doctrine: uses
SCS2D/sim/blueprint.ts - Ship Blueprints → Shape Geometry: uses
SCS2D/sim/blueprint.ts - Browser Storage → User: persists browser data
SCS2D/features/storage/observedStorage.ts