# crocobob911/project_kiriko architecture

> Architecture diagram of the GitHub repository crocobob911/project_kiriko, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/crocobob911/project_kiriko
- Repository: https://github.com/crocobob911/project_kiriko

## Overview

##### Main Components

a. Core Game Systems
- Player System
- Movement Controller
- Animation Controller
- Combat System
- Camera Controller
- Enemy System
- Input System
- Scene Management

b. Asset Management
- 3D Models
- Animations
- Materials/Textures
- Audio

**┌─────────────────────────────────────────────┐**
- Presentation Layer             │
- ┤
- Scene Rendering                           │
- UI/HUD                                   │
- Camera System                            │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- Gameplay Layer                 │
- ┤
- Player Systems                           │
- * Movement                               │
- * Combat                                 │
- * Animation                              │
- Enemy Systems                            │
- Collision Detection                      │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- Input Layer                    │
- ┤
- PC Input System                          │
- Mobile Input System                      │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- Asset Layer                    │
- ┤
- 3D Models                                │
- Animations                               │
- Materials/Textures                       │
- Audio                                    │
- ┘

##### Technical Details

Use of:
- Unity's Universal Render Pipeline
- Cinemachine for camera management
- Animation state machines
- Input system framework

##### Documentation

- Component relationships
- System responsibilities
- Key design patterns used

Remember to include external tools and plugins:
- StarterAssets integration
- Third-person controller framework
- Custom input system implementation

This architecture should clearly show how the various systems interact while maintaining flexibility for future additions and modifications to the gameplay mechanics.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles and classes
    classDef presentation fill:#9370DB,stroke:#333,stroke-width:2px
    classDef gameplay fill:#4682B4,stroke:#333,stroke-width:2px
    classDef input fill:#32CD32,stroke:#333,stroke-width:2px
    classDef asset fill:#FFA500,stroke:#333,stroke-width:2px

    %% Presentation Layer
    subgraph PresentationLayer["Presentation Layer"]
        SceneRender["Scene Rendering"]
        UI["UI/HUD"]
        CameraSystem["Camera System"]:::presentation
    end

    %% Gameplay Layer
    subgraph GameplayLayer["Gameplay Layer"]
        subgraph PlayerSystems["Player Systems"]
            Player["Core Player Logic"]:::gameplay
            Movement["Movement Controller"]:::gameplay
            Combat["Combat System"]:::gameplay
            Animation["Animation Controller"]:::gameplay
        end
        
        Enemy["Enemy System"]:::gameplay
        Collision["Collision Detection"]:::gameplay
    end

    %% Input Layer
    subgraph InputLayer["Input Layer"]
        PCInput["PC Input System"]:::input
        MobileInput["Mobile Input System"]:::input
    end

    %% Asset Layer
    subgraph AssetLayer["Asset Layer"]
        Models["3D Models"]:::asset
        Animations["Animations"]:::asset
        Materials["Materials"]:::asset
        Textures["Textures"]:::asset
        Audio["Audio"]:::asset
    end

    %% Relationships
    PCInput --> Player
    MobileInput --> Player
    Player --> Movement
    Player --> Combat
    Player --> Animation
    CameraSystem --> Player
    Enemy --> Collision
    Player --> Collision

    %% Asset relationships
    Models --> SceneRender
    Animations --> Animation
    Materials --> SceneRender
    Textures --> Materials
    Audio --> SceneRender

    %% Click events
    click Player "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/Player/Player.cs"
    click Movement "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/Player/PlayerMoveController.cs"
    click Animation "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/Player/PlayerAnimController.cs"
    click CameraSystem "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/CameraController.cs"
    click Enemy "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/Enemy.cs"
    click PCInput "https://github.com/Crocobob911/Project_Kiriko/blob/main/Assets/Script/PCInputSystem.inputactions"
    click Models "https://github.com/Crocobob911/Project_Kiriko/tree/main/Assets/Object/"
    click Animations "https://github.com/Crocobob911/Project_Kiriko/tree/main/Assets/Plugin/DoubleL/Demo/Anim/"
    click Materials "https://github.com/Crocobob911/Project_Kiriko/tree/main/Assets/Material/"
    click Textures "https://github.com/Crocobob911/Project_Kiriko/tree/main/Assets/Plugin/ADG_Textures/"

    %% Legend
    subgraph Legend
        L1["Presentation Components"]:::presentation
        L2["Gameplay Components"]:::gameplay
        L3["Input Components"]:::input
        L4["Asset Components"]:::asset
    end
```
