# ruslanguba/cozy_fantasy_shooter architecture

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

- Interactive diagram: https://gitdiagram.com/ruslanguba/cozy_fantasy_shooter
- Repository: https://github.com/ruslanguba/cozy_fantasy_shooter

## Overview

The README describes an FPS prototype, but the supplied tree shows no gameplay source files; its visible runtime assets are a bundled Unity effects pack. The gameplay nodes therefore have null paths and represent documented capabilities, not inspected implementations. Edges among those capabilities follow the README’s stated shooting and damage behavior. The tree also contains demo scripts, effect prefabs, shaders, and image-effect scripts; their runtime wiring is not established by the available evidence.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fps["FPS Gameplay"]
  node_movement["Movement &amp; Camera"]
  node_weapons["Weapon Switching"]
  node_firing["Firing Modes"]
  node_hit["Raycast Hit Detection"]
  node_damage["Damage System"]
  node_enemies["Enemy Targets"]
  node_hud["Crosshair HUD"]
end

subgraph group_effects["Effect Library"]
  node_effect_assets["Effect Prefabs"]
  node_demo_scene["Effect Demo<br/>[DemoScene.unity]"]
  node_demo_scripts["Demo Scripts"]
  node_particle_shaders["Particle Shaders"]
end

subgraph group_postfx["Image Effects"]
  node_image_effects["Image Effects"]
end

node_player(("Player"))

node_player -->|"controls"| node_movement
node_player -->|"uses"| node_weapons
node_weapons -->|"offers"| node_firing
node_firing -->|"detects hits"| node_hit
node_hit -->|"applies"| node_damage
node_damage -->|"damages"| node_enemies
node_player -->|"views"| node_hud

click node_effect_assets "https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/Effects"
click node_demo_scene "https://github.com/ruslanguba/cozy_fantasy_shooter/blob/main/Assets/100BestEffectPack/DemoScene.unity"
click node_demo_scripts "https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/Script"
click node_particle_shaders "https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/ParticleEffect_Shader"
click node_image_effects "https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/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_movement,node_weapons,node_firing,node_hit,node_damage,node_enemies,node_hud toneBlue
class node_effect_assets,node_demo_scene,node_demo_scripts,node_particle_shaders toneAmber
class node_image_effects toneMint
class node_player toneIndigo
```

## Components

### FPS Gameplay

- **Movement & Camera**
- **Weapon Switching**
- **Firing Modes**
- **Raycast Hit Detection**
- **Damage System**
- **Enemy Targets**
- **Crosshair HUD**

### Effect Library

- [Effect Prefabs](https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/Effects): `Assets/100BestEffectPack/Effects`
- [Effect Demo](https://github.com/ruslanguba/cozy_fantasy_shooter/blob/main/Assets/100BestEffectPack/DemoScene.unity): `Assets/100BestEffectPack/DemoScene.unity`
- [Demo Scripts](https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/Script): `Assets/100BestEffectPack/Script`
- [Particle Shaders](https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/ParticleEffect_Shader): `Assets/100BestEffectPack/ParticleEffect_Shader`

### Image Effects

- [Image Effects](https://github.com/ruslanguba/cozy_fantasy_shooter/tree/main/Assets/100BestEffectPack/Standard%20Assets/Effects/ImageEffects/Scripts): `Assets/100BestEffectPack/Standard Assets/Effects/ImageEffects/Scripts`

### Other components

- **Player**

## Connections

- Player → Movement & Camera: controls
- Player → Weapon Switching: uses
- Weapon Switching → Firing Modes: offers
- Firing Modes → Raycast Hit Detection: detects hits
- Raycast Hit Detection → Damage System: applies
- Damage System → Enemy Targets: damages
- Player → Crosshair HUD: views
