# jm0930199999999999/final-for-gp2 architecture

> Architecture diagram of the GitHub repository jm0930199999999999/final-for-gp2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jm0930199999999999/final-for-gp2
- Repository: https://github.com/jm0930199999999999/final-for-gp2

## Overview

This is a Unity game project with a main-menu scene and a gameplay scene. The apparent player-to-result loop is combat: the player shoots at spawned enemies, while health, pickups, and score represent survival and progression; menu and pause scripts cover navigation and session controls. The file tree supports these component roles, but no README or source excerpts were provided, so runtime connections are shown only as unverified dashed relationships. Scenes, prefabs, and configuration assets are not mapped individually.

Main entry points: [`Assets/Scenes/GameScreen.unity`](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/GameScreen.unity) (Gameplay scene), [`Assets/Script/UIScript/MainMenuManager.cs`](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/UIScript/MainMenuManager.cs) (Main menu), [`Assets/Scenes/MainMenu.unity`](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/MainMenu.unity) (Main menu scene), [`Assets/Script/Player.cs`](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Player.cs) (Player)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Menus and navigation"]
  node_mainmenu["Main menu<br/>[MainMenuManager.cs]"]
  node_menuoptions["Menu options<br/>[MenuOptions.cs]"]
  node_settings["Settings menu<br/>[SettingMenu.cs]"]
  node_pause["Pause menu<br/>[PauseMenu.cs]"]
  node_menu_scene["Main menu scene<br/>[MainMenu.unity]"]
end

subgraph group_combat["Combat gameplay"]
  node_player["Player<br/>[Player.cs]"]
  node_shooting["Shooting<br/>[Shooting.cs]"]
  node_bullet["Bullet<br/>[Bullet.cs]"]
  node_spawner["Spawner<br/>[Spawner.cs]"]
  node_enemy["Enemy<br/>[Enemy.cs]"]
  node_game_scene["Gameplay scene<br/>[GameScreen.unity]"]
end

subgraph group_progression["Player state and score"]
  node_health["Player health<br/>[PlayerHealth.cs]"]
  node_healthpickup["Health pickup<br/>[HealthPickup.cs]"]
  node_speedpickup["Speed pickup<br/>[SpeedPickup.cs]"]
  node_score["Score system<br/>[ScoreSystem.cs]"]
end

subgraph group_presentation["Game presentation"]
end

node_user(("Player"))

node_user -.->|"opens"| node_menu_scene
node_menu_scene -.->|"hosts"| node_mainmenu
node_mainmenu -.->|"starts"| node_game_scene
node_mainmenu -.->|"opens"| node_menuoptions
node_mainmenu -.->|"opens"| node_settings
node_game_scene -.->|"hosts"| node_player
node_player -.->|"uses"| node_shooting
node_shooting -.->|"fires"| node_bullet
node_game_scene -.->|"hosts"| node_spawner
node_spawner -.->|"creates"| node_enemy
node_game_scene -.->|"hosts"| node_health
node_game_scene -.->|"hosts"| node_healthpickup
node_game_scene -.->|"hosts"| node_speedpickup
node_game_scene -.->|"hosts"| node_score
node_game_scene -.->|"hosts"| node_pause

click node_player "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Player.cs"
click node_shooting "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Shooting.cs"
click node_bullet "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Bullet.cs"
click node_spawner "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Spawner.cs"
click node_enemy "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Enemy.cs"
click node_health "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/PlayerHealth.cs"
click node_healthpickup "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/HealthPickup.cs"
click node_speedpickup "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/SpeedPickup.cs"
click node_score "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/ScoreSystem.cs"
click node_mainmenu "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/UIScript/MainMenuManager.cs"
click node_menuoptions "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/MenuOptions.cs"
click node_settings "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/SettingMenu.cs"
click node_pause "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/UIScript/PauseMenu.cs"
click node_menu_scene "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/MainMenu.unity"
click node_game_scene "https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/GameScreen.unity"

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_menuoptions,node_settings,node_pause,node_menu_scene toneBlue
class node_player,node_shooting,node_bullet,node_spawner,node_enemy,node_game_scene toneAmber
class node_health,node_healthpickup,node_speedpickup,node_score toneMint
class node_user toneIndigo
```

## Components

### Menus and navigation

- [Main menu](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/UIScript/MainMenuManager.cs): `Assets/Script/UIScript/MainMenuManager.cs`
- [Menu options](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/MenuOptions.cs): `Assets/Script/MenuOptions.cs`
- [Settings menu](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/SettingMenu.cs): `Assets/SettingMenu.cs`
- [Pause menu](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/UIScript/PauseMenu.cs): `Assets/Script/UIScript/PauseMenu.cs`
- [Main menu scene](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/MainMenu.unity): `Assets/Scenes/MainMenu.unity`

### Combat gameplay

- [Player](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Player.cs): `Assets/Script/Player.cs`
- [Shooting](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Shooting.cs): `Assets/Script/Shooting.cs`
- [Bullet](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Bullet.cs): `Assets/Script/Bullet.cs`
- [Spawner](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Spawner.cs): `Assets/Script/Spawner.cs`
- [Enemy](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/Enemy.cs): `Assets/Script/Enemy.cs`
- [Gameplay scene](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Scenes/GameScreen.unity): `Assets/Scenes/GameScreen.unity`

### Player state and score

- [Player health](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/PlayerHealth.cs): `Assets/Script/PlayerHealth.cs`
- [Health pickup](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/HealthPickup.cs): `Assets/Script/HealthPickup.cs`
- [Speed pickup](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/SpeedPickup.cs): `Assets/Script/SpeedPickup.cs`
- [Score system](https://github.com/jm0930199999999999/final-for-gp2/blob/main/Assets/Script/ScoreSystem.cs): `Assets/Script/ScoreSystem.cs`

### Other components

- **Player**

## Connections

- Player → Main menu scene: opens
- Main menu scene → Main menu: hosts
- Main menu → Gameplay scene: starts
- Main menu → Menu options: opens
- Main menu → Settings menu: opens
- Gameplay scene → Player: hosts
- Player → Shooting: uses
- Shooting → Bullet: fires
- Gameplay scene → Spawner: hosts
- Spawner → Enemy: creates
- Gameplay scene → Player health: hosts
- Gameplay scene → Health pickup: hosts
- Gameplay scene → Speed pickup: hosts
- Gameplay scene → Score system: hosts
- Gameplay scene → Pause menu: hosts
