How dvssray/i2p2-final-project works
This tree contains a C++ Allegro tower-defense game split into client and server copies, with gameplay scenes, towers, enemies, projectiles, effects, and a networking layer. The intended player workflow is to enter the game, select a stage, defend it, and reach a win/loss or score flow. However, the shown client main() only configures logging and obtains the engine singleton; it does not start the game, so that workflow is architectural intent rather than a verified live entry path. Edges below are limited to indexed references and explicit engine excerpts; some scene details remain unsampled.
Main entry points: PlayScene.cpp Play scene · Enemy.cpp Enemy types · GameEngine.cpp Game engine · Group.cpp Scene groups
Components 17
Game runtime
- Client entry
2025_I2P2_ final_project_client/main.cpp - Menu and results
2025_I2P2_ final_project_client/Scene
Tower defense
- Play scene
2025_I2P2_ final_project_client/Scene/PlayScene.cpp - Turrets
2025_I2P2_ final_project_client/Turret/Turret.cpp - Enemy types
2025_I2P2_ final_project_client/Enemy/Enemy.cpp - Projectiles
2025_I2P2_ final_project_client/Bullet/Bullet.cpp - Effects
2025_I2P2_ final_project_client/UI/Animation
Game framework
- Scene groups
2025_I2P2_ final_project_client/Engine/Group.cpp - Scene base
2025_I2P2_ final_project_client/Engine/IScene.cpp - Game objects
2025_I2P2_ final_project_client/Engine/IObject.cpp - Game engine
2025_I2P2_ final_project_client/Engine/GameEngine.cpp - Assets and audio
2025_I2P2_ final_project_client/Engine/Resources.cpp
Network play
- Game client
2025_I2P2_ final_project_client/Connect/Client.cpp - Remote play
2025_I2P2_ final_project_client/Scene/RemotePlayScene.cpp - Render sender
2025_I2P2_ final_project_server/Connect/RenderSender.cpp - Server engine
2025_I2P2_ final_project_server/Engine/GameEngine.cpp
Other components
- Player
Connections 17
- Player → Client entry: starts
- Client entry → Game engine: obtains instance
2025_I2P2_ final_project_client/main.cpp - Game engine → Menu and results: switches scenes
- Game engine → Scene base: dispatches input
2025_I2P2_ final_project_client/Engine/GameEngine.cpp - Scene base → Scene groups: inherits
- Scene groups → Game objects: updates and draws
- Play scene → Enemy types: creates enemy types
2025_I2P2_ final_project_client/Scene/PlayScene.cpp - Play scene → Turrets: creates turrets
2025_I2P2_ final_project_client/Scene/PlayScene.cpp - Enemy types → Projectiles: tracks projectiles
2025_I2P2_ final_project_client/Enemy/Enemy.cpp - Enemy types → Turrets: tracks locked towers
2025_I2P2_ final_project_client/Enemy/Enemy.cpp - Enemy types → Effects: uses effects
2025_I2P2_ final_project_client/Enemy/Enemy.cpp - Play scene → Scene groups: holds gameplay groups
- Play scene → Assets and audio: loads assets
2025_I2P2_ final_project_client/Scene/PlayScene.cpp - Play scene → Remote play: offers remote mode
- Remote play → Game client: uses client connection
- Server engine → Render sender: starts sender
2025_I2P2_ final_project_server/Engine/GameEngine.cpp - Server engine → Render sender: sends frames
2025_I2P2_ final_project_server/Engine/GameEngine.cpp