How m-khallouf/stage-level-game works
Project type and purpose
• This is a stand-alone 2D platformer game built in C# on top of the MonoGame framework.
• The player moves, jumps, collects a key, opens a door, and advances through levels.
File structure
• Top-level solution: Project1.sln, azure-pipelines.yml, README.md
• Two projects underneath Project1.sln:
• Project1 (the game):
– .config (dotnet tools)
– Content (mgcb file + sprite fonts)
– Entities (game objects & CollisionManager)
– Levels (ILevel + concrete stages)
– Core classes: Program.cs, GameManager.cs, InputManager.cs, ScreenManager.cs, LevelManager.cs
• UnitTest: tests for InputManager, GameManager, etc.
• Build & CI: azure-pipelines.yml
Extract architectural insights from the README
• MonoGame Game class is extended by GameManager (central game loop).
• InputManager is event-driven: publishes input events.
• ScreenManager listens to InputManager, switches between UI screens & level screens.
• LevelManager renders level-selection screen and spawns levels.
• Entities (Player, Lava, Key, Door, Heart, Obstacle, etc.) encapsulate game objects and their logic.
• CollisionManager handles physics interactions.
• Content Pipeline (Content.mgcb) loads textures, fonts, sprites.