# rohithnafeel/shapetrics_sourcecode architecture

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

- Interactive diagram: https://gitdiagram.com/rohithnafeel/shapetrics_sourcecode
- Repository: https://github.com/rohithnafeel/shapetrics_sourcecode

## Overview

Shapetrics appears to be a Unity shape-based arcade game: a player enters through the menu and rules, plays by moving and shifting shape to interact with obstacles, and reaches a game-over/retry flow. The tree identifies these runtime systems but provides no README or source excerpts, so their exact call relationships cannot be verified; dashed, uncited edges represent likely connections only.

Main entry points: [`Shapetrics/Assets/Script/GameManager.cs`](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/GameManager.cs) (Game Manager), [`Shapetrics/Assets/Script/MainMenu.cs`](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/MainMenu.cs) (Main Menu), [`Shapetrics/Assets/Script/ShapeController.cs`](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ShapeController.cs) (Shape Control), [`Shapetrics/Assets/Script/ObstacleSpwaner.cs`](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ObstacleSpwaner.cs) (Obstacle Spawner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Game Navigation"]
  node_menu["Main Menu<br/>[MainMenu.cs]"]
  node_rules["Rules Menu<br/>[RulesMenu.cs]"]
  node_game_over["Game Over Menu<br/>[GameOverMenu.cs]"]
end

subgraph group_gameplay["Gameplay"]
  node_movement["Player Movement<br/>[PlayerMovement.cs]"]
  node_shape["Shape Control<br/>[ShapeController.cs]"]
  node_shape_types["Shape Types<br/>[ShapeType.cs]"]
  node_game_manager["Game Manager<br/>[GameManager.cs]"]
end

subgraph group_obstacles["Obstacle Systems"]
  node_spawner["Obstacle Spawner<br/>[ObstacleSpwaner.cs]"]
  node_obstacle["Obstacle<br/>[Obstacle.cs]"]
end

subgraph group_feedback["Game Feedback"]
  node_audio["Audio Manager<br/>[AudioManager.cs]"]
end

node_player(("Player"))

node_player -.->|"starts game"| node_menu
node_menu -.->|"opens rules"| node_rules
node_player -.->|"controls"| node_movement
node_player -.->|"shifts shape"| node_shape
node_shape -.->|"uses types"| node_shape_types
node_spawner -.->|"spawns"| node_obstacle
node_game_manager -.->|"ends game"| node_game_over
node_game_manager -.->|"triggers audio"| node_audio

click node_menu "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/MainMenu.cs"
click node_rules "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/RulesMenu.cs"
click node_movement "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/PlayerMovement.cs"
click node_shape "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ShapeController.cs"
click node_shape_types "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ShapeType.cs"
click node_game_manager "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/GameManager.cs"
click node_spawner "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ObstacleSpwaner.cs"
click node_obstacle "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/Obstacle.cs"
click node_game_over "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/GameOverMenu.cs"
click node_audio "https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/AudioManager.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_menu,node_rules,node_game_over toneBlue
class node_movement,node_shape,node_shape_types,node_game_manager toneAmber
class node_spawner,node_obstacle toneMint
class node_audio toneRose
class node_player toneIndigo
```

## Components

### Game Navigation

- [Main Menu](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/MainMenu.cs): `Shapetrics/Assets/Script/MainMenu.cs`
- [Rules Menu](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/RulesMenu.cs): `Shapetrics/Assets/Script/RulesMenu.cs`
- [Game Over Menu](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/GameOverMenu.cs): `Shapetrics/Assets/Script/GameOverMenu.cs`

### Gameplay

- [Player Movement](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/PlayerMovement.cs): `Shapetrics/Assets/Script/PlayerMovement.cs`
- [Shape Control](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ShapeController.cs): `Shapetrics/Assets/Script/ShapeController.cs`
- [Shape Types](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ShapeType.cs): `Shapetrics/Assets/Script/ShapeType.cs`
- [Game Manager](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/GameManager.cs): `Shapetrics/Assets/Script/GameManager.cs`

### Obstacle Systems

- [Obstacle Spawner](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/ObstacleSpwaner.cs): `Shapetrics/Assets/Script/ObstacleSpwaner.cs`
- [Obstacle](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/Obstacle.cs): `Shapetrics/Assets/Script/Obstacle.cs`

### Game Feedback

- [Audio Manager](https://github.com/rohithnafeel/shapetrics_sourcecode/blob/main/Shapetrics/Assets/Script/AudioManager.cs): `Shapetrics/Assets/Script/AudioManager.cs`

### Other components

- **Player**

## Connections

- Player → Main Menu: starts game
- Main Menu → Rules Menu: opens rules
- Player → Player Movement: controls
- Player → Shape Control: shifts shape
- Shape Control → Shape Types: uses types
- Obstacle Spawner → Obstacle: spawns
- Game Manager → Game Over Menu: ends game
- Game Manager → Audio Manager: triggers audio
