# vizzaq23/adpativeshooter architecture

> Architecture diagram of the GitHub repository vizzaq23/adpativeshooter, 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/vizzaq23/adpativeshooter
- Repository: https://github.com/vizzaq23/adpativeshooter

## Overview

Adaptive Combat Trainer is a Unity aim-training prototype. Its documented workflow starts from the main menu, runs a timed training round, adjusts target difficulty from accuracy and successful-hit timing, and presents live statistics and end-of-round feedback; menu, restart, and return flows are also included. The README identifies the main scripts and scenes, but no source excerpts were provided, so edges show only documented behavior and omit uncertain script-to-script calls.

Main entry points: [`Assets/Scripts/RoundManager.cs`](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RoundManager.cs) (Round and difficulty), [`Assets/Scenes/MainMenu.unity`](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/MainMenu.unity) (Main menu), [`Assets/Scenes/AimTrainer.unity`](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/AimTrainer.unity) (Aim trainer), [`Assets/Scripts/RestartButton.cs`](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RestartButton.cs) (Restart action)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameflow["Scenes and navigation"]
  node_mainmenu["Main menu<br/>[MainMenu.unity]"]
  node_trainer["Aim trainer<br/>[AimTrainer.unity]"]
  node_sandbox["Enemy sandbox<br/>[EnemySandbox.unity]"]
  node_menucontroller["Menu controller"]
  node_startbutton["Start action<br/>[StartGameButton.cs]"]
  node_restartbutton["Restart action<br/>[RestartButton.cs]"]
  node_backtomenu["Return to menu<br/>[BackToMenu.cs]"]
end

subgraph group_training["Training and targets"]
  node_roundmanager["Round and difficulty<br/>[RoundManager.cs]"]
  node_shooter["Player shooting<br/>[PlayerShooter.cs]"]
  node_spawner["Target spawning<br/>[TargetSpawner.cs]"]
  node_target["Target behavior<br/>[Target.cs]"]
  node_movingtarget["Target movement<br/>[MovingTarget.cs]"]
  node_targetprefab["Target prefab<br/>[Target.prefab]"]
end

subgraph group_interface["Player interface"]
  node_uimanager["Statistics and feedback<br/>[UIManager.cs]"]
end

node_player(("Player"))

node_player -->|"opens"| node_mainmenu
node_player -->|"starts training"| node_trainer
node_player -.->|"plays round"| node_roundmanager
node_roundmanager -.->|"adjusts spawn interval"| node_spawner
node_roundmanager -.->|"adjusts movement speed"| node_movingtarget
node_roundmanager -.->|"adjusts size"| node_target
node_roundmanager -.->|"provides round feedback"| node_uimanager
node_player -->|"restarts"| node_restartbutton
node_player -->|"returns to menu"| node_backtomenu

click node_mainmenu "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/MainMenu.unity"
click node_trainer "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/AimTrainer.unity"
click node_sandbox "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/EnemySandbox.unity"
click node_menucontroller "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/MainMenuController.cs"
click node_startbutton "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/StartGameButton.cs"
click node_restartbutton "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RestartButton.cs"
click node_backtomenu "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/BackToMenu.cs"
click node_roundmanager "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RoundManager.cs"
click node_shooter "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/PlayerShooter.cs"
click node_spawner "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/TargetSpawner.cs"
click node_target "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/Target.cs"
click node_movingtarget "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/MovingTarget.cs"
click node_targetprefab "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Prefabs/Target.prefab"
click node_uimanager "https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/UIManager.cs"

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_mainmenu,node_trainer,node_sandbox,node_menucontroller,node_startbutton,node_restartbutton,node_backtomenu toneBlue
class node_roundmanager,node_shooter,node_spawner,node_target,node_movingtarget,node_targetprefab toneAmber
class node_uimanager toneMint
class node_player toneIndigo
```

## Components

### Scenes and navigation

- [Main menu](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/MainMenu.unity): `Assets/Scenes/MainMenu.unity`
- [Aim trainer](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/AimTrainer.unity): `Assets/Scenes/AimTrainer.unity`
- [Enemy sandbox](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scenes/EnemySandbox.unity): `Assets/Scenes/EnemySandbox.unity`
- [Menu controller](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/MainMenuController.cs): `Assets/Scripts/MainMenuController.cs`
- [Start action](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/StartGameButton.cs): `Assets/Scripts/StartGameButton.cs`
- [Restart action](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RestartButton.cs): `Assets/Scripts/RestartButton.cs`
- [Return to menu](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/BackToMenu.cs): `Assets/Scripts/BackToMenu.cs`

### Training and targets

- [Round and difficulty](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/RoundManager.cs): `Assets/Scripts/RoundManager.cs`
- [Player shooting](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/PlayerShooter.cs): `Assets/Scripts/PlayerShooter.cs`
- [Target spawning](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/TargetSpawner.cs): `Assets/Scripts/TargetSpawner.cs`
- [Target behavior](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/Target.cs): `Assets/Scripts/Target.cs`
- [Target movement](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/MovingTarget.cs): `Assets/Scripts/MovingTarget.cs`
- [Target prefab](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Prefabs/Target.prefab): `Assets/Prefabs/Target.prefab`

### Player interface

- [Statistics and feedback](https://github.com/vizzaq23/adpativeshooter/blob/main/Assets/Scripts/UIManager.cs): `Assets/Scripts/UIManager.cs`

### Other components

- **Player**

## Connections

- Player → Main menu: opens (evidence: `README.md`)
- Player → Aim trainer: starts training (evidence: `README.md`)
- Player → Round and difficulty: plays round
- Round and difficulty → Target spawning: adjusts spawn interval (evidence: `README.md`)
- Round and difficulty → Target movement: adjusts movement speed (evidence: `README.md`)
- Round and difficulty → Target behavior: adjusts size (evidence: `README.md`)
- Round and difficulty → Statistics and feedback: provides round feedback (evidence: `README.md`)
- Player → Restart action: restarts (evidence: `README.md`)
- Player → Return to menu: returns to menu (evidence: `README.md`)
