# bluekongcode0158/dx11-2d-game-portfolio architecture

> Architecture diagram of the GitHub repository bluekongcode0158/dx11-2d-game-portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bluekongcode0158/dx11-2d-game-portfolio
- Repository: https://github.com/bluekongcode0158/dx11-2d-game-portfolio

## Overview

This repository is a DirectX 11 2D game runtime with an ImGui-based editor. The principal runtime loop advances the world, performs collision, and renders; the editor reuses those world and rendering services while adding viewport and editing panels. The graph also preserves input, assets, UI, lighting, and scene content as distinct product areas. Edges reflect calls shown in excerpts or relationships named by the SOURCE INDEX; unsampled gameplay details are not expanded into speculative flows.

Main entry points: [`Client/Core/GameEngine.cpp`](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Core/GameEngine.cpp) (Game Engine), [`Client/Render/RenderManager.cpp`](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Render/RenderManager.cpp) (Render Manager), [`Client/Editor/EditEngine.cpp`](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Editor/EditEngine.cpp) (Editor Engine), [`Client/World/World.h`](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/World/World.h) (World)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_engine["Game Engine<br/>[GameEngine.cpp]"]
end

subgraph group_gameplay["World and Gameplay"]
  node_world["World<br/>[World.h]"]
  node_scenes["Scenes and Levels"]
  node_actors["Actors and Components<br/>[Actor.cpp]"]
  node_controllers["Controllers and AI"]
  node_collision["Collision"]
  node_camera["Camera Management<br/>[CameraManager.cpp]"]
end

subgraph group_graphics["Graphics"]
  node_renderer["Render Manager<br/>[RenderManager.cpp]"]
  node_shaders["Shaders and Buffers<br/>[ShaderManager.cpp]"]
  node_device["Graphics Device<br/>[Device.h]"]
  node_ui["Game UI<br/>[UIManager.cpp]"]
end

subgraph group_content["Content and Input"]
  node_input["Input System<br/>[InputSystem.h]"]
  node_assets["Asset Managers<br/>[AssetManager.h]"]
  node_assettypes["Meshes, Textures, Animation<br/>[MeshManager.cpp]"]
  node_sound["Sound Assets<br/>[SoundManager.cpp]"]
end

subgraph group_editor["Editor"]
  node_editor["Editor Engine<br/>[EditEngine.cpp]"]
  node_panels["Editor Panels"]
  node_viewport["Editor Viewport"]
end

node_player(("Player"))

node_player -.->|"starts"| node_engine
node_engine -->|"ticks and collides"| node_world
node_engine -->|"ticks"| node_renderer
node_engine -->|"initializes"| node_input
node_engine -->|"initializes"| node_assets
node_engine -->|"initializes"| node_shaders
node_world -.->|"contains"| node_scenes
node_controllers -->|"reads"| node_input
node_controllers -->|"controls"| node_actors
node_world -->|"checks collisions"| node_collision
node_renderer -->|"gets current level"| node_world
node_renderer -->|"renders components"| node_actors
node_renderer -->|"uses"| node_shaders
node_renderer -.->|"draws through"| node_device
node_assets -->|"manages"| node_assettypes
node_assets -->|"manages"| node_sound
node_engine -->|"ticks"| node_sound
node_ui -->|"renders through"| node_renderer
node_ui -->|"reads"| node_input
node_editor -->|"ticks and collides"| node_engine
node_editor -->|"renders world"| node_world
node_editor -->|"renders scene"| node_renderer
node_editor -->|"creates and renders"| node_panels
node_editor -->|"renders into"| node_viewport
node_renderer -.->|"uses camera"| node_camera

click node_engine "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Core/GameEngine.cpp"
click node_world "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/World/World.h"
click node_scenes "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/tree/main/Client/World/Scene"
click node_actors "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Actor.cpp"
click node_controllers "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Controller/PlayerController.cpp"
click node_collision "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Collision/CollisionManager.cpp"
click node_camera "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/World/CameraManager.cpp"
click node_input "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Input/InputSystem.h"
click node_assets "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/AssetManager.h"
click node_assettypes "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/Mesh/MeshManager.cpp"
click node_sound "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/Sound/SoundManager.cpp"
click node_renderer "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Render/RenderManager.cpp"
click node_shaders "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Shader/ShaderManager.cpp"
click node_device "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Core/Device.h"
click node_ui "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/UI/UIManager.cpp"
click node_editor "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Editor/EditEngine.cpp"
click node_panels "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/tree/main/Client/Editor/EditorUI"
click node_viewport "https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Editor/EditorUI/ViewportRenderTarget.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_engine toneBlue
class node_world,node_scenes,node_actors,node_controllers,node_collision,node_camera toneAmber
class node_renderer,node_shaders,node_device,node_ui toneMint
class node_input,node_assets,node_assettypes,node_sound toneRose
class node_editor,node_panels,node_viewport,node_player toneIndigo
```

## Components

### Runtime

- [Game Engine](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Core/GameEngine.cpp): `Client/Core/GameEngine.cpp`

### World and Gameplay

- [World](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/World/World.h): `Client/World/World.h`
- [Scenes and Levels](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/tree/main/Client/World/Scene): `Client/World/Scene`
- [Actors and Components](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Actor.cpp): `Client/Object/Actor.cpp`
- [Controllers and AI](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Controller/PlayerController.cpp): `Client/Controller/PlayerController.cpp`
- [Collision](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Collision/CollisionManager.cpp): `Client/Collision/CollisionManager.cpp`
- [Camera Management](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/World/CameraManager.cpp): `Client/World/CameraManager.cpp`

### Graphics

- [Render Manager](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Render/RenderManager.cpp): `Client/Render/RenderManager.cpp`
- [Shaders and Buffers](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Shader/ShaderManager.cpp): `Client/Shader/ShaderManager.cpp`
- [Graphics Device](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Core/Device.h): `Client/Core/Device.h`
- [Game UI](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/UI/UIManager.cpp): `Client/UI/UIManager.cpp`

### Content and Input

- [Input System](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Input/InputSystem.h): `Client/Input/InputSystem.h`
- [Asset Managers](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/AssetManager.h): `Client/Object/Asset/AssetManager.h`
- [Meshes, Textures, Animation](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/Mesh/MeshManager.cpp): `Client/Object/Asset/Mesh/MeshManager.cpp`
- [Sound Assets](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Object/Asset/Sound/SoundManager.cpp): `Client/Object/Asset/Sound/SoundManager.cpp`

### Editor

- [Editor Engine](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Editor/EditEngine.cpp): `Client/Editor/EditEngine.cpp`
- [Editor Panels](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/tree/main/Client/Editor/EditorUI): `Client/Editor/EditorUI`
- [Editor Viewport](https://github.com/bluekongcode0158/dx11-2d-game-portfolio/blob/main/Client/Editor/EditorUI/ViewportRenderTarget.cpp): `Client/Editor/EditorUI/ViewportRenderTarget.cpp`

### Other components

- **Player**

## Connections

- Player → Game Engine: starts
- Game Engine → World: ticks and collides (evidence: `Client/Core/GameEngine.cpp`)
- Game Engine → Render Manager: ticks (evidence: `Client/Core/GameEngine.cpp`)
- Game Engine → Input System: initializes (evidence: `Client/Core/GameEngine.cpp`)
- Game Engine → Asset Managers: initializes (evidence: `Client/Core/GameEngine.cpp`)
- Game Engine → Shaders and Buffers: initializes (evidence: `Client/Core/GameEngine.cpp`)
- World → Scenes and Levels: contains
- Controllers and AI → Input System: reads (evidence: `Client/Controller/PlayerController.cpp`)
- Controllers and AI → Actors and Components: controls (evidence: `Client/Controller/PlayerController.cpp`)
- World → Collision: checks collisions
- Render Manager → World: gets current level (evidence: `Client/Render/RenderManager.cpp`)
- Render Manager → Actors and Components: renders components (evidence: `Client/Render/RenderManager.cpp`)
- Render Manager → Shaders and Buffers: uses (evidence: `Client/Render/RenderManager.cpp`)
- Render Manager → Graphics Device: draws through (evidence: `Client/Render/RenderManager.cpp`)
- Asset Managers → Meshes, Textures, Animation: manages (evidence: `Client/Object/Asset/AssetManager.h`)
- Asset Managers → Sound Assets: manages (evidence: `Client/Object/Asset/AssetManager.h`)
- Game Engine → Sound Assets: ticks (evidence: `Client/Core/GameEngine.cpp`)
- Game UI → Render Manager: renders through (evidence: `Client/UI/UIManager.cpp`)
- Game UI → Input System: reads (evidence: `Client/UI/UIManager.cpp`)
- Editor Engine → Game Engine: ticks and collides (evidence: `Client/Editor/EditEngine.cpp`)
- Editor Engine → World: renders world (evidence: `Client/Editor/EditEngine.cpp`)
- Editor Engine → Render Manager: renders scene (evidence: `Client/Editor/EditEngine.cpp`)
- Editor Engine → Editor Panels: creates and renders (evidence: `Client/Editor/EditEngine.cpp`)
- Editor Engine → Editor Viewport: renders into (evidence: `Client/Editor/EditEngine.cpp`)
- Render Manager → Camera Management: uses camera
