# fgelpidf/projectnexus architecture

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

- Interactive diagram: https://gitdiagram.com/fgelpidf/projectnexus
- Repository: https://github.com/fgelpidf/projectnexus

## Overview

PROJECT NEXUS is a single-player sci-fi FPS arena-survival game: the player fights through ten waves and defeats the Warden, with weapon, movement, and upgrade controls documented in the README. The project separates gameplay, UI, audio, and saving under Scripts, while balancing content lives in Data. The available tree and README establish these major areas, but no source excerpts were provided; dashed links indicate runtime relationships that could not be verified from code.

Main entry points: [`Assets/_Project/Scripts`](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts) (Gameplay Systems), [`Assets/_Project/Data/Enemies`](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Enemies) (Enemy Definitions), [`Assets/_Project/Data/Waves`](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Waves) (Wave Definitions), [`Assets/_Project/Data/Upgrades`](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Upgrades) (Upgrade Definitions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Gameplay"]
  node_gameplay["Gameplay Systems"]
end

subgraph group_content["Game Content"]
  node_enemydata["Enemy Definitions"]
  node_wavedata["Wave Definitions"]
  node_upgrades["Upgrade Definitions"]
  node_pickups["Pickup Definitions"]
  node_playerdata["Player Definition"]
  node_sounddata["Sound Library<br/>[SoundLibrary.asset]"]
end

subgraph group_interface["Interface"]
  node_ui["Game UI"]
  node_audio["Game Audio"]
end

subgraph group_support["Player Services"]
  node_profile["Player Profile"]
  node_profilefile[("Profile File")]
end

node_player(("Player"))

node_player -->|"controls"| node_gameplay
node_player -->|"chooses upgrades"| node_ui
node_gameplay -.->|"uses definitions"| node_enemydata
node_gameplay -.->|"runs waves"| node_wavedata
node_gameplay -.->|"offers upgrades"| node_upgrades
node_gameplay -.->|"uses pickups"| node_pickups
node_gameplay -.->|"uses definition"| node_playerdata
node_gameplay -.->|"updates display"| node_ui
node_gameplay -.->|"plays events"| node_audio
node_audio -.->|"uses library"| node_sounddata
node_player -->|"sets options"| node_profile
node_profile -->|"saves profile"| node_profilefile

click node_gameplay "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts"
click node_enemydata "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Enemies"
click node_wavedata "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Waves"
click node_upgrades "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Upgrades"
click node_pickups "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Pickups"
click node_playerdata "https://github.com/fgelpidf/projectnexus/blob/main/Assets/_Project/Data/PlayerDefinition.asset"
click node_ui "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts"
click node_audio "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts"
click node_sounddata "https://github.com/fgelpidf/projectnexus/blob/main/Assets/_Project/Data/SoundLibrary.asset"
click node_profile "https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts"

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_gameplay toneBlue
class node_enemydata,node_wavedata,node_upgrades,node_pickups,node_playerdata,node_sounddata toneAmber
class node_ui,node_audio toneMint
class node_profile,node_profilefile toneRose
class node_player toneIndigo
```

## Components

### Gameplay

- [Gameplay Systems](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts): `Assets/_Project/Scripts`

### Game Content

- [Enemy Definitions](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Enemies): `Assets/_Project/Data/Enemies`
- [Wave Definitions](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Waves): `Assets/_Project/Data/Waves`
- [Upgrade Definitions](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Upgrades): `Assets/_Project/Data/Upgrades`
- [Pickup Definitions](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Data/Pickups): `Assets/_Project/Data/Pickups`
- [Player Definition](https://github.com/fgelpidf/projectnexus/blob/main/Assets/_Project/Data/PlayerDefinition.asset): `Assets/_Project/Data/PlayerDefinition.asset`
- [Sound Library](https://github.com/fgelpidf/projectnexus/blob/main/Assets/_Project/Data/SoundLibrary.asset): `Assets/_Project/Data/SoundLibrary.asset`

### Interface

- [Game UI](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts): `Assets/_Project/Scripts`
- [Game Audio](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts): `Assets/_Project/Scripts`

### Player Services

- [Player Profile](https://github.com/fgelpidf/projectnexus/tree/main/Assets/_Project/Scripts): `Assets/_Project/Scripts`
- **Profile File**

### Other components

- **Player**

## Connections

- Player → Gameplay Systems: controls (evidence: `README.md`)
- Player → Game UI: chooses upgrades (evidence: `README.md`)
- Gameplay Systems → Enemy Definitions: uses definitions
- Gameplay Systems → Wave Definitions: runs waves
- Gameplay Systems → Upgrade Definitions: offers upgrades
- Gameplay Systems → Pickup Definitions: uses pickups
- Gameplay Systems → Player Definition: uses definition
- Gameplay Systems → Game UI: updates display
- Gameplay Systems → Game Audio: plays events
- Game Audio → Sound Library: uses library
- Player → Player Profile: sets options (evidence: `README.md`)
- Player Profile → Profile File: saves profile (evidence: `README.md`)
