# raka-1725/project-primordial architecture

> Architecture diagram of the GitHub repository raka-1725/project-primordial, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/raka-1725/project-primordial
- Repository: https://github.com/raka-1725/project-primordial

## Overview

The README describes Project Primordial as an isometric puzzle-and-escape game with movement, magic combat, interactable doors, and procedural enemy spawning. The supplied tree, however, contains only the 100BestEffectPack Unity assets and demo scripts—not the README’s gameplay classes or their paths. Gameplay links below reflect documented responsibilities; the asset-pack nodes show the runtime content actually present in the tree, not a verified connection to gameplay.

Main entry points: [`Assets/100BestEffectPack/DemoScene.unity`](https://github.com/raka-1725/project-primordial/blob/master/Assets/100BestEffectPack/DemoScene.unity) (Demo Scene), [`Assets/100BestEffectPack/Effects`](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Effects) (Effect Prefabs), [`Assets/100BestEffectPack/ParticleEffect_Shader`](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/ParticleEffect_Shader) (Particle Shaders), [`Assets/100BestEffectPack/Script`](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Script) (Demo Scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Player Gameplay"]
  node_player["Player"]
  node_movement["Movement Controller"]
end

subgraph group_combat["Magic Combat"]
  node_magic["Magic Controller"]
  node_magicdata["Magic Data"]
  node_projectile["Projectile Logic"]
  node_enemy["Enemy Behavior"]
end

subgraph group_world["World Interaction"]
  node_spawner["Enemy Spawner"]
  node_door["Interactable Doors"]
end

subgraph group_effects["Effect Assets"]
  node_effectprefabs["Effect Prefabs"]
  node_shaders["Particle Shaders"]
  node_demo["Demo Scene<br/>[DemoScene.unity]"]
  node_demo_scripts["Demo Scripts"]
  node_imageeffects["Image Effects"]
end

node_input(("Player Input"))
node_game(("Puzzle Game"))
node_unity(("Unity Runtime"))

node_input -->|"drives movement"| node_movement
node_input -->|"selects and attacks"| node_magic
node_movement -->|"moves"| node_player
node_magic -->|"uses settings"| node_magicdata
node_magic -->|"controls attack"| node_projectile
node_projectile -->|"attacks"| node_enemy
node_player -->|"prioritizes spawning"| node_spawner
node_player -->|"interacts"| node_door
node_game -->|"plays as"| node_player
node_unity -->|"runs"| node_demo
node_demo -->|"uses"| node_demo_scripts
node_effectprefabs -->|"renders with"| node_shaders
node_unity -->|"provides runtime effects"| node_imageeffects

click node_effectprefabs "https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Effects"
click node_shaders "https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/ParticleEffect_Shader"
click node_demo "https://github.com/raka-1725/project-primordial/blob/master/Assets/100BestEffectPack/DemoScene.unity"
click node_demo_scripts "https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Script"
click node_imageeffects "https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Standard%20Assets/Effects/ImageEffects/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_player,node_movement toneBlue
class node_magic,node_magicdata,node_projectile,node_enemy toneAmber
class node_spawner,node_door toneMint
class node_effectprefabs,node_shaders,node_demo,node_demo_scripts,node_imageeffects toneRose
class node_input,node_game,node_unity toneIndigo
```

## Components

### Player Gameplay

- **Player**
- **Movement Controller**

### Magic Combat

- **Magic Controller**
- **Magic Data**
- **Projectile Logic**
- **Enemy Behavior**

### World Interaction

- **Enemy Spawner**
- **Interactable Doors**

### Effect Assets

- [Effect Prefabs](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Effects): `Assets/100BestEffectPack/Effects`
- [Particle Shaders](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/ParticleEffect_Shader): `Assets/100BestEffectPack/ParticleEffect_Shader`
- [Demo Scene](https://github.com/raka-1725/project-primordial/blob/master/Assets/100BestEffectPack/DemoScene.unity): `Assets/100BestEffectPack/DemoScene.unity`
- [Demo Scripts](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Script): `Assets/100BestEffectPack/Script`
- [Image Effects](https://github.com/raka-1725/project-primordial/tree/master/Assets/100BestEffectPack/Standard%20Assets/Effects/ImageEffects/Scripts): `Assets/100BestEffectPack/Standard Assets/Effects/ImageEffects/Scripts`

### Other components

- **Player Input**
- **Puzzle Game**
- **Unity Runtime**

## Connections

- Player Input → Movement Controller: drives movement
- Player Input → Magic Controller: selects and attacks
- Movement Controller → Player: moves
- Magic Controller → Magic Data: uses settings
- Magic Controller → Projectile Logic: controls attack
- Projectile Logic → Enemy Behavior: attacks
- Player → Enemy Spawner: prioritizes spawning
- Player → Interactable Doors: interacts
- Puzzle Game → Player: plays as
- Unity Runtime → Demo Scene: runs
- Demo Scene → Demo Scripts: uses
- Effect Prefabs → Particle Shaders: renders with
- Unity Runtime → Image Effects: provides runtime effects
