# r1shiii/endless-runner architecture

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

- Interactive diagram: https://gitdiagram.com/r1shiii/endless-runner
- Repository: https://github.com/r1shiii/endless-runner

## Overview

This Unity project is an endless-runner game. Its script names indicate player movement, chasing enemies, coins and obstacles, and ground spawning; the scene and prefabs provide game assets. No README or source excerpts were available, so the precise runtime sequence and interactions cannot be verified. The graph maps the visible gameplay components but omits unverified connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player and camera"]
  node_player["Player movement<br/>[Player_Movement.cs]"]
  node_camera["Camera follow<br/>[Camera_Follow.cs]"]
end

subgraph group_world["World generation"]
  node_spawner["Ground spawner<br/>[GroundSpawner.cs]"]
  node_tile["Ground tile<br/>[GroundTile.cs]"]
end

subgraph group_gameplay["Gameplay systems"]
  node_enemy["Enemy chase<br/>[EnemyChase.cs]"]
  node_manager["Game manager<br/>[GameManager.cs]"]
  node_coin["Coin behavior<br/>[Coin.cs]"]
  node_obstacle["Obstacle behavior<br/>[Obstacle.cs]"]
end

click node_player "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Player_Movement.cs"
click node_camera "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Camera_Follow.cs"
click node_enemy "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/EnemyChase.cs"
click node_manager "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GameManager.cs"
click node_coin "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Coin.cs"
click node_obstacle "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Obstacle.cs"
click node_spawner "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GroundSpawner.cs"
click node_tile "https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GroundTile.cs"

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_camera toneBlue
class node_spawner,node_tile toneAmber
class node_enemy,node_manager,node_coin,node_obstacle toneMint
```

## Components

### Player and camera

- [Player movement](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Player_Movement.cs): `Assets/Scripts/Player_Movement.cs`
- [Camera follow](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Camera_Follow.cs): `Assets/Scripts/Camera_Follow.cs`

### World generation

- [Ground spawner](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GroundSpawner.cs): `Assets/Scripts/GroundSpawner.cs`
- [Ground tile](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GroundTile.cs): `Assets/Scripts/GroundTile.cs`

### Gameplay systems

- [Enemy chase](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/EnemyChase.cs): `Assets/Scripts/EnemyChase.cs`
- [Game manager](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/GameManager.cs): `Assets/Scripts/GameManager.cs`
- [Coin behavior](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Coin.cs): `Assets/Scripts/Coin.cs`
- [Obstacle behavior](https://github.com/r1shiii/endless-runner/blob/main/Assets/Scripts/Obstacle.cs): `Assets/Scripts/Obstacle.cs`
