How beghelli/comp4300-game-programming-course works
This repository contains successive COMP4300 game-development assignments; the sampled runtime centers on assignment 2, an SFML arcade game. Its workflow is configuration and window setup, player and enemy creation, per-frame input and gameplay systems, then rendering. Entity components hold game state, while the entity manager owns collections. The tree and excerpts do not establish assignment 1’s behavior, so it remains a separate, unconnected node. The README describes the course context and SFML requirement, not additional gameplay features.
Main entry points: Game.cpp Game loop · Entity.h Entity and components · SEnemySpawner.cpp Enemy spawning · EntityManager.cpp Entity manager
Components 23
Game runtime
- Player setup
assignment-2/src/Game.cpp - Game loop
assignment-2/src/Game.cpp - Game configuration
assignment-2/src/Config.cpp
Entity model
- Entity manager
assignment-2/src/EntityManager.cpp - Entity and components
assignment-2/src/Entity.h - 2D vector
assignment-2/src/Vec2.cpp - Collision component
assignment-2/src/CCollision.h - Entity-life component
assignment-2/src/CEntityLife.h - Mouse-input component
assignment-2/src/CMouseInput.h - Shape component
assignment-2/src/CShape.h - Shield component
assignment-2/src/CShield.h - Transform component
assignment-2/src/CTransform.h
Gameplay systems
- Keyboard input
assignment-2/src/SInput.cpp - Enemy spawning
assignment-2/src/SEnemySpawner.cpp - Collision detection
assignment-2/src/SCollisionDetector.cpp - Entity-life processing
assignment-2/src/SEntityLife.cpp - Gun and bullets
assignment-2/src/SGun.cpp - Movement
assignment-2/src/SMovement.cpp - Shield processing
assignment-2/src/SShield.cpp - Score processing
assignment-2/src/SScore.cpp
Presentation
- Rendering
assignment-2/src/SRenderer.cpp
Other components
- Assignment 1 program
assignment-1/main.cpp - SFML library
Connections 23
- Game loop → Entity manager: updates
assignment-2/src/Game.cpp - Game loop → Player setup: recreates
assignment-2/src/Game.cpp - Player setup → Entity manager: adds player
assignment-2/src/Game.cpp - Player setup → Game configuration: reads settings
assignment-2/src/Game.cpp - Game loop → Enemy spawning: spawns
assignment-2/src/Game.cpp - Game loop → Keyboard input: processes input
assignment-2/src/Game.cpp - Game loop → Gun and bullets: processes firing
assignment-2/src/Game.cpp - Game loop → Shield processing: processes shields
assignment-2/src/Game.cpp - Game loop → Movement: moves entities
assignment-2/src/Game.cpp - Game loop → Collision detection: detects collisions
assignment-2/src/Game.cpp - Game loop → Entity-life processing: updates life
assignment-2/src/Game.cpp - Game loop → Score processing: updates score
assignment-2/src/Game.cpp - Game loop → Rendering: renders entities
assignment-2/src/Game.cpp - Enemy spawning → Entity manager: adds enemies
assignment-2/src/SEnemySpawner.cpp - Enemy spawning → Game configuration: uses enemy settings
assignment-2/src/SEnemySpawner.cpp - Entity and components → Collision component: holds component
assignment-2/src/Entity.h - Entity and components → Entity-life component: holds component
assignment-2/src/Entity.h - Entity and components → Mouse-input component: holds component
assignment-2/src/Entity.h - Entity and components → Shape component: holds component
assignment-2/src/Entity.h - Entity and components → Shield component: holds component
assignment-2/src/Entity.h - Entity and components → Transform component: holds component
assignment-2/src/Entity.h - Transform component → 2D vector: uses
assignment-2/src/CTransform.h - SFML library → Player setup: provides graphics
README.md