# gguluggulu/2026_capstonedesign architecture

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

- Interactive diagram: https://gitdiagram.com/gguluggulu/2026_capstonedesign
- Repository: https://github.com/gguluggulu/2026_capstonedesign

## Overview

This repository contains a Direct3D 12 kart-racing game with a separate TCP server. The principal client workflow is game-framework-driven: it coordinates player and scene state, rendering/effects, audio/video, and network updates. The client and server exchange player state and gameplay, lobby, and race-result events. Source excerpts and the index support several framework and module dependencies; where runtime call sites or server wiring were not shown, relationships are omitted rather than inferred.

Main entry points: [`2026Project/GameFramework.cpp`](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/GameFramework.cpp) (Game framework), [`2026Project/EffectLibrary.cpp`](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/EffectLibrary.cpp) (Effect library), [`2026Project/ClientNetworkManager.cpp`](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ClientNetworkManager.cpp) (Client network manager), [`2026Project/Object.cpp`](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Object.cpp) (Game objects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game runtime"]
  node_player["Player<br/>[Player.cpp]"]
  node_framework["Game framework<br/>[GameFramework.cpp]"]
  node_timer["Timer<br/>[Timer.cpp]"]
end

subgraph group_world["World and rendering"]
  node_scene["Scene<br/>[Scene.cpp]"]
  node_camera["Camera<br/>[Camera.cpp]"]
  node_objects["Game objects<br/>[Object.cpp]"]
  node_mesh["Meshes<br/>[Mesh.cpp]"]
  node_shader["Shaders<br/>[Shader.cpp]"]
  node_texture["DDS textures"]
  node_wireframe["Wireframe mesh"]
  node_d3dx["D3D12 helpers<br/>[d3dx12.h]"]
end

subgraph group_presentation["Effects and media"]
  node_effects["Effect library<br/>[EffectLibrary.cpp]"]
  node_particles["Particle system<br/>[ParticleSystem.cpp]"]
  node_meshfx["Mesh effects<br/>[MeshEffect.cpp]"]
  node_sound["Sound manager<br/>[SoundManager.cpp]"]
  node_video["Video player<br/>[VideoPlayer.cpp]"]
  node_audioengine["miniaudio<br/>[miniaudio.h]"]
end

subgraph group_clientnet["Client networking"]
  node_client["Client network manager"]
  node_clienttypes["Client packet types"]
end

subgraph group_server["Server networking"]
  node_serverapp["Server application<br/>[2026Server.cpp]"]
  node_servermanager["Server network manager"]
  node_servertypes["Server packet types"]
end

node_peer(("Remote peer"))

node_framework -->|"uses"| node_player
node_framework -->|"uses"| node_scene
node_framework -->|"updates"| node_client
node_framework -->|"uses"| node_effects
node_framework -->|"uses"| node_sound
node_framework -->|"uses"| node_video
node_framework -->|"uses"| node_timer
node_scene -->|"uses"| node_wireframe
node_objects -->|"uses"| node_mesh
node_objects -->|"references"| node_shader
node_effects -->|"uses"| node_particles
node_effects -->|"uses"| node_meshfx
node_effects -->|"uses"| node_texture
node_sound -->|"uses"| node_audioengine
node_client -->|"encodes"| node_clienttypes
node_client -.->|"exchanges packets"| node_peer
node_servermanager -->|"encodes"| node_servertypes
node_serverapp -->|"uses"| node_servertypes

click node_player "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Player.cpp"
click node_framework "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/GameFramework.cpp"
click node_timer "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Timer.cpp"
click node_scene "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Scene.cpp"
click node_camera "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Camera.cpp"
click node_objects "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Object.cpp"
click node_mesh "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Mesh.cpp"
click node_shader "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Shader.cpp"
click node_texture "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/DDSTextureLoader12.cpp"
click node_effects "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/EffectLibrary.cpp"
click node_particles "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ParticleSystem.cpp"
click node_meshfx "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/MeshEffect.cpp"
click node_sound "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/SoundManager.cpp"
click node_video "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/VideoPlayer.cpp"
click node_client "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ClientNetworkManager.cpp"
click node_clienttypes "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ClientNetworkTypes.h"
click node_serverapp "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/2026Server.cpp"
click node_servermanager "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/ServerNetworkManager.cpp"
click node_servertypes "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/ServerNetworkTypes.h"
click node_wireframe "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/WireframeBoxMesh.cpp"
click node_d3dx "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/d3dx12.h"
click node_audioengine "https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/miniaudio.h"

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_player,node_framework,node_timer toneBlue
class node_scene,node_camera,node_objects,node_mesh,node_shader,node_texture,node_wireframe,node_d3dx toneAmber
class node_effects,node_particles,node_meshfx,node_sound,node_video,node_audioengine toneMint
class node_client,node_clienttypes toneRose
class node_serverapp,node_servermanager,node_servertypes,node_peer toneIndigo
```

## Components

### Game runtime

- [Player](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Player.cpp): `2026Project/Player.cpp`
- [Game framework](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/GameFramework.cpp): `2026Project/GameFramework.cpp`
- [Timer](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Timer.cpp): `2026Project/Timer.cpp`

### World and rendering

- [Scene](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Scene.cpp): `2026Project/Scene.cpp`
- [Camera](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Camera.cpp): `2026Project/Camera.cpp`
- [Game objects](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Object.cpp): `2026Project/Object.cpp`
- [Meshes](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Mesh.cpp): `2026Project/Mesh.cpp`
- [Shaders](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/Shader.cpp): `2026Project/Shader.cpp`
- [DDS textures](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/DDSTextureLoader12.cpp): `2026Project/DDSTextureLoader12.cpp`
- [Wireframe mesh](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/WireframeBoxMesh.cpp): `2026Project/WireframeBoxMesh.cpp`
- [D3D12 helpers](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/d3dx12.h): `2026Project/d3dx12.h`

### Effects and media

- [Effect library](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/EffectLibrary.cpp): `2026Project/EffectLibrary.cpp`
- [Particle system](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ParticleSystem.cpp): `2026Project/ParticleSystem.cpp`
- [Mesh effects](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/MeshEffect.cpp): `2026Project/MeshEffect.cpp`
- [Sound manager](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/SoundManager.cpp): `2026Project/SoundManager.cpp`
- [Video player](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/VideoPlayer.cpp): `2026Project/VideoPlayer.cpp`
- [miniaudio](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/miniaudio.h): `2026Project/miniaudio.h`

### Client networking

- [Client network manager](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ClientNetworkManager.cpp): `2026Project/ClientNetworkManager.cpp`
- [Client packet types](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Project/ClientNetworkTypes.h): `2026Project/ClientNetworkTypes.h`

### Server networking

- [Server application](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/2026Server.cpp): `2026Server/2026Server.cpp`
- [Server network manager](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/ServerNetworkManager.cpp): `2026Server/ServerNetworkManager.cpp`
- [Server packet types](https://github.com/gguluggulu/2026_capstonedesign/blob/main/2026Server/ServerNetworkTypes.h): `2026Server/ServerNetworkTypes.h`

### Other components

- **Remote peer**

## Connections

- Game framework → Player: uses (evidence: `2026Project/GameFramework.cpp`)
- Game framework → Scene: uses (evidence: `2026Project/GameFramework.cpp`)
- Game framework → Client network manager: updates (evidence: `2026Project/GameFramework.cpp`)
- Game framework → Effect library: uses (evidence: `2026Project/GameFramework.cpp`)
- Game framework → Sound manager: uses
- Game framework → Video player: uses
- Game framework → Timer: uses
- Scene → Wireframe mesh: uses (evidence: `2026Project/Scene.cpp`)
- Game objects → Meshes: uses
- Game objects → Shaders: references (evidence: `2026Project/Object.cpp`)
- Effect library → Particle system: uses (evidence: `2026Project/EffectLibrary.cpp`)
- Effect library → Mesh effects: uses (evidence: `2026Project/EffectLibrary.cpp`)
- Effect library → DDS textures: uses
- Sound manager → miniaudio: uses
- Client network manager → Client packet types: encodes
- Client network manager → Remote peer: exchanges packets
- Server network manager → Server packet types: encodes
- Server application → Server packet types: uses (evidence: `2026Server/2026Server.cpp`)
