# digis-studios/gd-inter-iit-25 architecture

> Architecture diagram of the GitHub repository digis-studios/gd-inter-iit-25, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/digis-studios/gd-inter-iit-25
- Repository: https://github.com/digis-studios/gd-inter-iit-25

## Overview

Viewport is a Unity puzzle-platformer built around perspective-dependent traversal: players change camera views to make separated platforms appear aligned, then cross the resulting gap. The README documents movement, jumping, view controls, and a progression from observing in Level 1 to manipulating and traversing in Levels 2–3. Source excerpts were unavailable, so edges show only relationships stated in the README; implementation-level calls and subsystem wiring cannot be verified.

Main entry points: [`Assets/Scripts/UnlockViews.cs`](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scripts/UnlockViews.cs) (View Controls), [`Assets/StarterAssets/Environment/Scripts/FloorProjection.cs`](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/StarterAssets/Environment/Scripts/FloorProjection.cs) (Perspective Physics), [`Assets/StarterAssets/Environment/Prefabs`](https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/Environment/Prefabs) (Platforms), [`Assets/StarterAssets/InputSystem`](https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/InputSystem) (Movement Controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Player and Views"]
  node_player["Player<br/>[Player.prefab]"]
  node_controls["Movement Controls"]
  node_view_controls["View Controls<br/>[UnlockViews.cs]"]
end

subgraph group_world["Puzzle World"]
  node_perspective["Perspective Physics<br/>[FloorProjection.cs]"]
  node_platforms["Platforms"]
  node_hazards["Hazards"]
  node_checkpoints["Checkpoints<br/>[CheckPoint.cs]"]
end

subgraph group_game["Game Flow"]
  node_level_one["Level 1<br/>[Level 1.unity]"]
  node_level_two["Level 2<br/>[Level 2.unity]"]
  node_level_three["Level 3<br/>[Level 3.unity]"]
  node_game_manager["Game Manager<br/>[GameManager.cs]"]
end

node_player_actor(("Player"))

node_player_actor -->|"uses movement"| node_controls
node_player_actor -->|"changes views"| node_view_controls
node_view_controls -->|"changes perspective"| node_perspective
node_perspective -->|"aligns platforms"| node_platforms
node_player_actor -->|"traverses aligned gap"| node_platforms
node_player_actor -->|"observes"| node_level_one
node_player_actor -->|"manipulates view"| node_level_two
node_player_actor -->|"crosses gap"| node_level_three
node_player_actor -->|"avoids hazards"| node_hazards

click node_player "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Player.prefab"
click node_controls "https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/InputSystem"
click node_view_controls "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scripts/UnlockViews.cs"
click node_perspective "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/StarterAssets/Environment/Scripts/FloorProjection.cs"
click node_platforms "https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/Environment/Prefabs"
click node_hazards "https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/Environment/Scripts"
click node_checkpoints "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/StarterAssets/Environment/Scripts/CheckPoint.cs"
click node_level_one "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%201.unity"
click node_level_two "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%202.unity"
click node_level_three "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%203.unity"
click node_game_manager "https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scripts/GameManager.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_controls,node_view_controls toneBlue
class node_perspective,node_platforms,node_hazards,node_checkpoints toneAmber
class node_level_one,node_level_two,node_level_three,node_game_manager toneMint
class node_player_actor toneIndigo
```

## Components

### Player and Views

- [Player](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Player.prefab): `Assets/Player.prefab`
- [Movement Controls](https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/InputSystem): `Assets/StarterAssets/InputSystem`
- [View Controls](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scripts/UnlockViews.cs): `Assets/Scripts/UnlockViews.cs`

### Puzzle World

- [Perspective Physics](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/StarterAssets/Environment/Scripts/FloorProjection.cs): `Assets/StarterAssets/Environment/Scripts/FloorProjection.cs`
- [Platforms](https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/Environment/Prefabs): `Assets/StarterAssets/Environment/Prefabs`
- [Hazards](https://github.com/digis-studios/gd-inter-iit-25/tree/main/Assets/StarterAssets/Environment/Scripts): `Assets/StarterAssets/Environment/Scripts`
- [Checkpoints](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/StarterAssets/Environment/Scripts/CheckPoint.cs): `Assets/StarterAssets/Environment/Scripts/CheckPoint.cs`

### Game Flow

- [Level 1](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%201.unity): `Assets/Scenes/Level 1.unity`
- [Level 2](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%202.unity): `Assets/Scenes/Level 2.unity`
- [Level 3](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scenes/Level%203.unity): `Assets/Scenes/Level 3.unity`
- [Game Manager](https://github.com/digis-studios/gd-inter-iit-25/blob/main/Assets/Scripts/GameManager.cs): `Assets/Scripts/GameManager.cs`

### Other components

- **Player**

## Connections

- Player → Movement Controls: uses movement (evidence: `README.md`)
- Player → View Controls: changes views (evidence: `README.md`)
- View Controls → Perspective Physics: changes perspective (evidence: `README.md`)
- Perspective Physics → Platforms: aligns platforms (evidence: `README.md`)
- Player → Platforms: traverses aligned gap (evidence: `README.md`)
- Player → Level 1: observes (evidence: `README.md`)
- Player → Level 2: manipulates view (evidence: `README.md`)
- Player → Level 3: crosses gap (evidence: `README.md`)
- Player → Hazards: avoids hazards (evidence: `README.md`)
