How sunn4es/spaceinvaders works
This is an SFML desktop alien-shooter game with player profiles, gameplay, and score viewing. The principal workflow is selecting a profile, starting a game, controlling the cannon while avoiding alien fire, and recording a higher score when play ends. Profile creation, deletion, selection, and binary-file persistence form a separate branch. The README is empty; unsampled window implementations are represented only where the tree and sampled callers support them.
Main entry points: gameWindowUnit.cpp Game loop · main.cpp Main menu · fileModule.cpp Player records · chosePlayerWindow.cpp Choose player
Components 15
App flow
- Main menu
main.cpp - Scoreboard
scoreBoardWindowUnit.cpp
Player profiles
- Choose player
chosePlayerWindow.cpp - Create player
newPlayerWindowUnit.cpp - Player dropdown
DropBox.cpp - Player records
fileModule.cpp - Player data file
Gameplay
- Game loop
gameWindowUnit.cpp - Cannon
CannonClass.cpp - Player rockets
RocketClass.cpp - Aliens
AlienClass.cpp
Game interface
- Game over
gameOverWindowUnit.cpp - Pause screen
pauseWindowUnit.cpp - Texture cache
TextureManagerClass.h
Other components
- Player
Connections 16
- Player → Main menu: selects actions
- Main menu → Choose player: opens selection
- Main menu → Game loop: starts game
- Main menu → Scoreboard: opens scores
- Main menu → Player records: loads and saves
- Choose player → Create player: opens creation
- Choose player → Player dropdown: handles selection
- Choose player → Player records: manages profiles
- Create player → Player records: adds and saves
- Player records → Player data file: reads and writes
- Game loop → Cannon: updates and moves
- Game loop → Player rockets: updates rockets
- Game loop → Aliens: updates aliens
- Game loop → Game over: opens on defeat
- Game loop → Player records: updates player score
- Game loop → Texture cache: loads textures