How theseusnul/galactic_standoff works
Purpose and Entry Point
Galactic Standoff is a native C++ ASCII/console space-combat game built as a Visual Studio solution. The executable starts in ASCII_GAME/Main.cpp, with project and solution definitions in ASCII_GAME/ASCII_GAME.vcxproj and Galactic Standoff.sln.
Game Orchestration and State Flow
ASCII_GAME/Game/Game.cpp and ASCII_GAME/Game/Game.h own the main game lifecycle: initialization, update loop, rendering, and transitions. ASCII_GAME/Game/GameStates.h defines the high-level modes that separate title/menu, difficulty selection, active gameplay, game-over, and winner flows. Static sprite/menu assets support those state-specific screens: ASCII_GAME/GameTitleSprites.h, ASCII_GAME/DifficultySelectMenu.h, and ASCII_GAME/GameOverSprites.h.
Core Gameplay Actors
The active combat model is centered on player, enemy, and projectile objects:
• ASCII_GAME/Player.cpp, ASCII_GAME/Player.h
• ASCII_GAME/EnemyShip.cpp, ASCII_GAME/EnemyShip.h
• ASCII_GAME/Missile.cpp, ASCII_GAME/Missile.h
Game orchestration updates actor movement/actions, resolves combat interactions, then selects sprites for the renderer. Presentation-only game objects such as score display are isolated under ASCII_GAME/Game/GameObjects/ScoreDisplay.cpp and ASCII_GAME/Game/GameObjects/ScoreDisplay.h.
Rendering Pipeline
The console rendering boundary is ASCII_GAME/Core/Renderer/ASCIIRenderer.cpp and ASCII_GAME/Core/Renderer/ASCIIRenderer.h. It renders text/sprite content and applies console color definitions from ASCII_GAME/Core/Renderer/ConsoleColours.h. Reusable visual primitives are modeled by ASCII_GAME/Core/Renderer/Sprite.cpp / .h; frame-based visual animation is handled by ASCII_GAME/Core/Renderer/AnimatedSprite.cpp / .h. Gameplay screens draw from asset headers including ASCII_GAME/InGameSprites.h and ASCII_GAME/PlanetSprite.h.
World and Math Foundation
Spatial state is represented by custom vector types in ASCII_GAME/Core/Maths/Vector2.cpp / .h and ASCII_GAME/Core/Maths/Vector3.cpp / .h. Background presentation is encapsulated by ASCII_GAME/Background.cpp and ASCII_GAME/Background.h. Shared low-level utilities reside in ASCII_GAME/Core/Utils.h.
Assets, Runtime, and External Boundaries
This is a Windows-oriented Visual C++ application, evidenced by the .sln, .vcxproj, and local Visual Studio metadata. Runtime output is a console/ASCII interface rather than a web service or networked system. Audio assets are external WAV files loaded or referenced by gameplay/menu behavior: Sounds/Main_Menu_Theme.wav, Sounds/Player_Missile.wav, and Sounds/Enemy_Missile.wav.
Main entry points: Game.cpp Game lifecycle · ASCIIRenderer.cpp ASCII renderer · ASCII_GAME.vcxproj C++ project · Main.cpp Program entry
Components 15
Build & Runtime
- Visual Studio solution · Windows native C++ build entry.
Galactic Standoff.sln - C++ project
ASCII_GAME/ASCII_GAME.vcxproj - Program entry
ASCII_GAME/Main.cpp
Game Control
- Game lifecycle · Initializes, updates, renders, and transitions game flow.
ASCII_GAME/Game/Game.cpp - Game states · Title, difficulty, gameplay, game-over, and winner modes.
ASCII_GAME/Game/GameStates.h - Menu & screen sprites
ASCII_GAME/GameTitleSprites.h
Combat Model
- Combat actors · Player, enemy ships, and missiles.
ASCII_GAME/Player.cpp - Score display
ASCII_GAME/Game/GameObjects/ScoreDisplay.cpp
Console Rendering
- ASCII renderer · Draws text and sprites to the Windows console.
ASCII_GAME/Core/Renderer/ASCIIRenderer.cpp - Sprite primitives · Static and frame-based animated sprites.
ASCII_GAME/Core/Renderer/Sprite.cpp - Console colours
ASCII_GAME/Core/Renderer/ConsoleColours.h - In-game sprites
ASCII_GAME/InGameSprites.h
World Foundation
- Background
ASCII_GAME/Background.cpp - Vector math · Custom 2D and 3D spatial types.
ASCII_GAME/Core/Maths/Vector2.cpp
Other components
- WAV audio assets · Menu and missile sound effects.
Sounds/Main_Menu_Theme.wav
Connections 14
- Visual Studio solution → C++ project: builds
- C++ project → Program entry: compiles
- Program entry → Game lifecycle: starts
- Game lifecycle → Game states: transitions through
- Game lifecycle → Menu & screen sprites: selects screens
- Game lifecycle → Combat actors: updates combat
- Game lifecycle → Score display: updates
- Game lifecycle → Background: updates
- Combat actors → Vector math: uses position math
- Game lifecycle → ASCII renderer: renders via
- ASCII renderer → Sprite primitives: draws
- ASCII renderer → Console colours: applies
- ASCII renderer → In-game sprites: draws assets
- Game lifecycle → WAV audio assets: plays/references