How samuel-chow-demon/cstp1205-spaceinvader works
Project type and purpose
• This is a single‐process, Windows-Console-based 2D game application written in C++. It implements a Space Invaders–style game using the olcConsoleGameEngine for rendering “pixels” in a terminal window and standard Windows APIs for input and sound.
File structure
• Top‐level directory “GameConsoleInvader” holds all source (.cpp/.h), project files (.sln, .vcxproj), resources (.rc, .wav), and the single engine header (olcConsoleGameEngine.h).
• Key modules:
• Entry points: Demo.cpp, GameConsole.cpp
• Application & engine: CGameApp.*, CGameEngine.*
• Object factory: CEnemyFactory.*
• Game objects: CEnemy.*, CSpaceShip.*, CMissile.*, CDestroyAnime.*
• Utility: CoordUtility.h, CharacterSprite.h
• Sound subsystem: CSound.*
• No external microservices or databases—everything runs in one thread inside a console process.
Extract insights from the README
• Single‐threaded main loop with sleep(1) timing.
• 3-frame explosion animation.
• Provided UML and flowcharts for game flow, spaceship & enemy behaviors.
Detail without over-fragmentation
• Every class/module listed in the file tree.
• Related classes visually (e.g., put all “GameObj” classes in one cluster).
• Don’t omit the olcConsoleGameEngine – it is the rendering/input backbone.
• One‐life rule & level progression as part of the GameApp flow if space permits.