# robert-kuropkat/pudp-starshooterpro architecture

> Architecture diagram of the GitHub repository robert-kuropkat/pudp-starshooterpro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-02-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/robert-kuropkat/pudp-starshooterpro
- Repository: https://github.com/robert-kuropkat/pudp-starshooterpro

## Overview

##### Main Components Identification

a. Game Core Systems
- Game Manager (Central controller)
- Spawn Manager (Enemy and powerup spawning)
- UI Manager (HUD and menu systems)
- Main Camera Controller

b. Player Systems
- Player Controller
- Weapons System
- Shield System

c. Enemy Systems
- Base Enemy
- Horizontal Enemy
- Vertical Enemy
- Enemy Fire System

d. Power-Up System
- Triple Shot
- Speed
- Shield
- Ammo
- Health
- Spiral Shot
- Negative Effects

**[Game Manager]**

**┌─────┴─────┬─────────┬────────┐**
**[Spawn Manager] [UI Manager] [Camera] [Audio]**

**┌─────┴────────┬───────────┐**
**[Player System] [Enemy System] [PowerUp System]**

##### Detailed Subsystems

For each major component, show their internal structures:

Player System:
**[Player Controller]**

**┌───┴────┬────────┬─────────┐**
**[Movement][Weapons][Shields][Animations]**

Enemy System:
**[Enemy Base Class]**

**┌───┴────┬────────┬─────────┐**
**[Vertical][Horizontal][ZigZag][Fire System]**

##### Technical Details

Important technical aspects:
- Unity Event System usage
- Physics2D interaction paths
- Animation controller connections
- Prefab instantiation flow
- Scene loading/unloading

##### Notes Section

Technical notes about:
- Unity version compatibility
- Required packages (TextMeshPro)
- Asset organization
- Build requirements

Remember to indicate the project's Unity-specific architecture patterns and how they integrate with the game's custom systems. This will help other developers understand both the game-specific and Unity-specific aspects of the architecture.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph UI
        UI_Manager["UI Manager"]
        MainMenu["Main Menu"]
        HUD["HUD Elements"]
    end

    subgraph GameManagement
        GameManager["Game Manager"]
        SpawnManager["Spawn Manager"]
        CameraController["Camera Controller"]
    end

    subgraph Gameplay
        subgraph PlayerSystems
            Player["Player Controller"]
            WeaponSystem["Weapon System"]
            ShieldSystem["Shield System"]
            Thruster["Thruster"]
        end

        subgraph EnemySystems
            EnemyFactory["Enemy Factory"]
            BaseEnemy["Base Enemy"]
            EnemyTypes["Enemy Types"]
            EnemyWeapons["Enemy Weapons"]
        end

        subgraph PowerUpSystem
            PowerUpBase["Power-Up Base"]
            PowerUpTypes["Power-Up Types"]
            PowerUpEffects["Power-Up Effects"]
        end
    end

    subgraph Physics
        CollisionSystem["Collision Detection"]
        MovementSystem["Movement Systems"]
    end

    %% Connections
    GameManager --> UI_Manager
    GameManager --> SpawnManager
    GameManager --> Player
    UI_Manager --> MainMenu
    UI_Manager --> HUD
    SpawnManager -.-> PowerUpBase
    SpawnManager -.-> EnemyFactory
    EnemyFactory --> BaseEnemy
    BaseEnemy --> EnemyTypes
    BaseEnemy --> EnemyWeapons
    Player --> WeaponSystem
    Player --> ShieldSystem
    Player --> MovementSystem
    BaseEnemy --> MovementSystem
    PowerUpBase --> PowerUpTypes
    PowerUpTypes --> PowerUpEffects
    PowerUpEffects -.-> Player

    %% Click Events
    click GameManager "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/GameManager.cs"
    click SpawnManager "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/SpawnManager.cs"
    click UI_Manager "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/UIManager.cs"
    click Player "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/Player.cs"
    click WeaponSystem "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/Weapons.cs"
    click ShieldSystem "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/Shields.cs"
    click EnemyFactory "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/EnemyFactory.cs"
    click BaseEnemy "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/Enemy.cs"
    click PowerUpBase "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/PowerUp.cs"
    click Thruster "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Animations/Thruster.controller"
    click EnemyTypes "https://github.com/robert-kuropkat/PUDP-StarShooterPro/blob/main/Assets/Scripts/EnemyVertical.cs"

    %% Styling
    classDef core fill:#3498db
    classDef player fill:#2ecc71
    classDef enemy fill:#e74c3c
    classDef powerup fill:#f1c40f
    classDef ui fill:#9b59b6
    classDef physics fill:#95a5a6

    class GameManager,SpawnManager,CameraController core
    class Player,WeaponSystem,ShieldSystem,Thruster player
    class EnemyFactory,BaseEnemy,EnemyTypes,EnemyWeapons enemy
    class PowerUpBase,PowerUpTypes,PowerUpEffects powerup
    class UI_Manager,MainMenu,HUD ui
    class CollisionSystem,MovementSystem physics
```
