How alonsopuente1/thecaster works
TheCaster is a CastEngine game with a title menu, map selection, and an ongoing first-person shooter gameplay loop; the README notes that there is no victory condition yet. The graph preserves the player, weapons, enemies, HUD, pickups, and AI/navigation capabilities represented by the source index. Several gameplay links are supported only by indexed references rather than inspected implementation, so those links use the referencing file as evidence; map-file format and runtime details remain unspecified.
Main entry points: gamescene.cpp Game Scene · hud.cpp HUD · player.cpp Player · enemy.cpp Enemy
Components 12
Scene Navigation
- Main Menu
src/mainmenuscene.cpp - Map Selection
src/mapselectscene.cpp
Gameplay World
- Player
src/player.cpp - Game Scene
src/gamescene.cpp - Enemy
src/enemy.cpp - Ammo Pickup
src/ammopickup.cpp
Combat Systems
- Gun
src/gun.cpp - Weapon Animator
src/weaponanimator.cpp
HUD and AI
- HUD
src/hud.cpp - Enemy AI
include/ai.hpp - A* Navigation
include/astar.hpp
Other components
- Player
Connections 14
- Player → Main Menu: starts game
- Main Menu → Map Selection: opens selection
src/mainmenuscene.cpp - Map Selection → Game Scene: starts gameplay
src/mapselectscene.cpp - Game Scene → Player: manages player
- Game Scene → HUD: owns HUD
- Game Scene → Enemy: spawns enemy
src/gamescene.cpp - Game Scene → Ammo Pickup: spawns pickup
src/gamescene.cpp - Player → Gun: uses weapon
- Gun → Weapon Animator: animates weapon
- Enemy → Enemy AI: uses AI
- Enemy AI → A* Navigation: uses pathfinding
include/ai.hpp - HUD → Player: reads status
src/hud.cpp - HUD → Gun: reads weapon
src/hud.cpp - HUD → Enemy: reads enemies
src/hud.cpp