How stipexz2334/sfml-game works
This is a small SFML arena-combat game. The player enters a windowed room, fights generated enemies through repeated rounds, receives an upgrade between rooms, and faces a boss after round three; play ends on player death or victory. The main loop in main.cpp owns round progression, rendering, and calls into game.hpp for movement, combat, enemy generation, and arena control. The header excerpt supports those internal mechanics; the README is only a title, so other capabilities are not documented. Some game.hpp implementation is unsampled, so unshown dependencies are omitted.
Main entry points: main.cpp Round orchestration · game.hpp Player input
Components 9
Game runtime
- Round orchestration
main.cpp
Combat mechanics
- Player input
game.hpp - Enemy types
game.hpp - Hit detection
game.hpp - Arena bounds
game.hpp - Enemy control
game.hpp - Upgrades and spawn
game.hpp
Other components
- SFML window
- Player
Connections 10
- Player → SFML window: provides input
- Round orchestration → SFML window: renders frames
main.cpp - Round orchestration → Player input: moves player
main.cpp - Round orchestration → Hit detection: checks hits
main.cpp - Round orchestration → Enemy control: updates enemies
main.cpp - Round orchestration → Arena bounds: checks bounds
main.cpp - Round orchestration → Upgrades and spawn: spawns and upgrades
main.cpp - Enemy control → Enemy types: tracks enemies
game.hpp - Hit detection → Player input: applies damage
game.hpp - Enemy types → Player input: inherits behavior
game.hpp