How neilkakkar/solar-system works
Solar System is an SFML strategy arcade game: the player selects a planet and drags toward another to choose and send resources. The runtime starts in the main menu, then runs the active scene’s event, update, and render cycle. In the game, planets hold resources and dispatch ships; the sidebar exposes planet details and ship cargo controls. The README also describes random planet properties and inter-planet relations, though the sampled evidence does not establish all gameplay connections. Edges reflect shown calls, declared responsibilities, or README statements; unsampled behavior is not inferred.
Main entry points: game.cpp Game scene · planet.cpp Planets · main.cpp Window loop · sidebar.cpp Planet and ship panels
Components 12
Runtime and scenes
- Window loop
main.cpp - Scene contract
scene.h - Main menu
mainmenu.cpp - Game scene
game.cpp
Planet simulation
- Planets
planet.cpp - Spaceships
spaceship.cpp - Planet relations
planet_relationships.cpp
Game interface
- Planet and ship panels
sidebar.cpp - Widgets
widget.cpp - Widget layout
widget_list.cpp
Game data
- Resource values
resource.cpp
Other components
- Player
Connections 21
- Player → Window loop: starts game
README.md - Window loop → Main menu: initializes
main.cpp - Window loop → Scene contract: dispatches events
main.cpp - Window loop → Scene contract: updates and renders
main.cpp - Main menu → Scene contract: implements
- Game scene → Scene contract: implements
- Game scene → Planets: manages planets
- Game scene → Spaceships: tracks ships
- Game scene → Planet and ship panels: manages panel
- Game scene → Planet relations: stores relations
- Planets → Resource values: holds resources
- Planets → Spaceships: queues launches
- Spaceships → Planets: targets planets
- Spaceships → Resource values: carries resources
- Planet relations → Planets: keys relations
- Planet and ship panels → Planets: inspects and selects
- Planet and ship panels → Widgets: uses controls
- Planet and ship panels → Widget layout: lays out controls
- Widget layout → Widgets: updates and renders
- Player → Game scene: drags resource route
README.md - Main menu → Game scene: enters play