# mxst515/collectinggame architecture

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

- Interactive diagram: https://gitdiagram.com/mxst515/collectinggame
- Repository: https://github.com/mxst515/collectinggame

## Overview

Collecting Game is a Unity endless game about collecting falling objects and leveling up the character. Its apparent runtime stages are menu interaction, character gameplay, and falling-object spawning and movement; the script and asset names suggest hearts, points, and wings as object types. Source excerpts are unavailable, so implementation wiring and scene-to-script relationships cannot be verified; the graph shows components without guessing those connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_menu["Menu"]
  node_menu_buttons["Menu Buttons<br/>[MainMenuButtons.cs]"]
  node_menu_scene["Main Menu Scene<br/>[Main Menu.unity]"]
end

subgraph group_gameplay["Gameplay"]
  node_player["Player Character<br/>[PlayerScript.cs]"]
  node_logic["Game Logic<br/>[LogicScript.cs]"]
  node_game_scene["Game Scene<br/>[GameScene.unity]"]
end

subgraph group_objects["Falling Objects"]
  node_heart_spawn["Heart Spawner<br/>[HeartSpawner.cs]"]
  node_heart_move["Heart Movement<br/>[HeartMove.cs]"]
  node_points_spawn["Points Spawner<br/>[PointsSpawner.cs]"]
  node_points_move["Points Movement<br/>[PointsMove.cs]"]
  node_wings_spawn["Wings Spawner<br/>[WingsSpawner.cs]"]
  node_wings_move["Wings Movement<br/>[WingsMove.cs]"]
  node_heart_prefab["Heart Prefab<br/>[Heart.prefab]"]
  node_points_prefab["Points Prefab<br/>[Points.prefab]"]
  node_wings_prefab["Wings Prefab<br/>[Wings.prefab]"]
end

node_user(("Player"))

click node_player "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Player/PlayerScript.cs"
click node_logic "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/LogicScript.cs"
click node_game_scene "https://github.com/mxst515/collectinggame/blob/main/Assets/Scenes/GameScene.unity"
click node_menu_buttons "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Main%20Menu/MainMenuButtons.cs"
click node_menu_scene "https://github.com/mxst515/collectinggame/blob/main/Assets/Scenes/Main%20Menu.unity"
click node_heart_spawn "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/HeartSpawner.cs"
click node_heart_move "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/HeartMove.cs"
click node_points_spawn "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Points/PointsSpawner.cs"
click node_points_move "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Points/PointsMove.cs"
click node_wings_spawn "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Wings/WingsSpawner.cs"
click node_wings_move "https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Wings/WingsMove.cs"
click node_heart_prefab "https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Heart.prefab"
click node_points_prefab "https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Points.prefab"
click node_wings_prefab "https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Wings.prefab"

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_menu_buttons,node_menu_scene toneBlue
class node_player,node_logic,node_game_scene toneAmber
class node_heart_spawn,node_heart_move,node_points_spawn,node_points_move,node_wings_spawn,node_wings_move,node_heart_prefab,node_points_prefab,node_wings_prefab toneMint
class node_user toneIndigo
```

## Components

### Menu

- [Menu Buttons](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Main%20Menu/MainMenuButtons.cs): `Assets/Scripts/Main Menu/MainMenuButtons.cs`
- [Main Menu Scene](https://github.com/mxst515/collectinggame/blob/main/Assets/Scenes/Main%20Menu.unity): `Assets/Scenes/Main Menu.unity`

### Gameplay

- [Player Character](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Player/PlayerScript.cs): `Assets/Scripts/Player/PlayerScript.cs`
- [Game Logic](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/LogicScript.cs): `Assets/Scripts/LogicScript.cs`
- [Game Scene](https://github.com/mxst515/collectinggame/blob/main/Assets/Scenes/GameScene.unity): `Assets/Scenes/GameScene.unity`

### Falling Objects

- [Heart Spawner](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/HeartSpawner.cs): `Assets/Scripts/HeartSpawner.cs`
- [Heart Movement](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/HeartMove.cs): `Assets/Scripts/HeartMove.cs`
- [Points Spawner](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Points/PointsSpawner.cs): `Assets/Scripts/Points/PointsSpawner.cs`
- [Points Movement](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Points/PointsMove.cs): `Assets/Scripts/Points/PointsMove.cs`
- [Wings Spawner](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Wings/WingsSpawner.cs): `Assets/Scripts/Wings/WingsSpawner.cs`
- [Wings Movement](https://github.com/mxst515/collectinggame/blob/main/Assets/Scripts/Wings/WingsMove.cs): `Assets/Scripts/Wings/WingsMove.cs`
- [Heart Prefab](https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Heart.prefab): `Assets/Sprites/Points/Heart.prefab`
- [Points Prefab](https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Points.prefab): `Assets/Sprites/Points/Points.prefab`
- [Wings Prefab](https://github.com/mxst515/collectinggame/blob/main/Assets/Sprites/Points/Wings.prefab): `Assets/Sprites/Points/Wings.prefab`

### Other components

- **Player**
