How roddyd94/directx-portfolio-1 works
This is a C++/DirectX 11 Snow Bros arcade-game remake. The main runtime loop initializes engine services, creates a world, then repeatedly ticks input and game objects, checks collisions, and renders. The documented gameplay spans stage transitions, solo/local two-player play, player and enemy state machines, snowball interactions, items, and score/UI; engine capabilities also include tilemaps, animation, indexed-color rendering, and binary content loading. Edges are limited to relationships explicit in the sampled engine/animation source or README; unsampled game subsystems are represented without speculative call links.
Main entry points: GameEngine.cpp Game loop · RenderManager.cpp Render manager · SnowbrosLevel.cpp Stages and transitions · SnowbrosPlayer.cpp Players and states
Components 23
Engine Runtime
- Game loop
Arcade_pky/Client/Core/GameEngine.cpp - World and actors
Arcade_pky/Client/Core/World.cpp - Collision system
Arcade_pky/Client/Core/Collision/CollisionManager.cpp - Platform movement
Arcade_pky/Client/Platformer/PlatformerKinematicComponent.cpp - Actor components
Arcade_pky/Client/Core/Actor.h - DirectX device
Arcade_pky/Client/Core/DeviceManager.cpp
Snow Bros Gameplay
- Players and states
Arcade_pky/Client/Snowbros/SnowbrosPlayer.cpp - Player control
Arcade_pky/Client/Player/PlayerController.cpp - Enemy AI
Arcade_pky/Client/Snowbros/SnowballMorphableEnemyStateMachine.cpp - Boss AI
Arcade_pky/Client/Snowbros/BossStateMachine.cpp - Snow projectiles
Arcade_pky/Client/Snowbros/SnowProjectileComponent.cpp - Items and score
Arcade_pky/Client/Item.cpp - Stages and transitions
Arcade_pky/Client/Snowbros/SnowbrosLevel.cpp - Stage data parser
Arcade_pky/Client/Snowbros/SnowbrosDataParser.cpp
Rendering and Content
- Tilemap levels
Arcade_pky/Client/Tilemap/TilemapLevel.cpp - Render manager
Arcade_pky/Client/Core/RenderManager.cpp - 2D animation
Arcade_pky/Client/Core/Animation/Animation2DManager.cpp - Indexed sprites
Arcade_pky/Client/Snowbros/IndexedSpriteInstanceRenderer.cpp - Resource managers
Arcade_pky/Client/Core/ResourceManager.h
Input and Interface
- Game HUD
Arcade_pky/Client/Snowbros/SnowbrosUI.cpp - Input actions
Arcade_pky/Client/Core/Input/InputSystem.h - Editor UI
Arcade_pky/Client/Editor/EditorEngine.cpp
Other components
- Player
Connections 26
- Game loop → World and actors: creates and ticks
Arcade_pky/Client/Core/GameEngine.cpp - Game loop → Input actions: ticks
Arcade_pky/Client/Core/GameEngine.cpp - Game loop → Render manager: ticks and renders
Arcade_pky/Client/Core/GameEngine.cpp - Game loop → Collision system: runs world collision
- Game loop → DirectX device: initializes and presents
Arcade_pky/Client/Core/GameEngine.cpp - Players and states → Player control: uses control
- Player → Input actions: provides controls
- Input actions → Player control: drives
Arcade_pky/Client/Player/PlayerController.cpp - Players and states → Enemy AI: triggers snowball play
- Enemy AI → Snow projectiles: interacts with
Arcade_pky/Client/Snowbros/SnowballMorphableEnemyStateMachine.cpp - Enemy AI → Items and score: awards score
Arcade_pky/Client/Snowbros/SnowballMorphableEnemyStateMachine.cpp - Stages and transitions → Enemy AI: spawns enemies
- Stages and transitions → Players and states: manages stages
- Stages and transitions → Stage data parser: loads stage data
- Stages and transitions → Tilemap levels: uses tilemaps
- Platform movement → Collision system: checks movement collisions
- Tilemap levels → Render manager: renders tiles
- Render manager → DirectX device: submits graphics
- Render manager → 2D animation: renders animation
- 2D animation → Resource managers: loads textures
Arcade_pky/Client/Core/Animation/Animation2DManager.cpp - Indexed sprites → Render manager: supplies sprite draws
- Game HUD → Render manager: draws game UI
- Editor UI → Game loop: delegates runtime
Arcade_pky/Client/Editor/EditorEngine.cpp - Editor UI → DirectX device: initializes UI backend
Arcade_pky/Client/Editor/EditorEngine.cpp - Boss AI → Players and states: opposes players
- Items and score → Game HUD: updates score display