# jamesmcintyre123/escaperoom_videogame architecture

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

- Interactive diagram: https://gitdiagram.com/jamesmcintyre123/escaperoom_videogame
- Repository: https://github.com/jamesmcintyre123/escaperoom_videogame

## Overview

#### Purpose and Runtime
Inspector Waddles is a Unity escape-room game project. The editable project is rooted at `EscapeRoom/`; a packaged macOS player is included at `gamebuild.app/Contents/MacOS/EscapeRoom`. It runs on the Unity engine with Mono/Burst runtime artifacts and no evident backend or external network service.

#### Entry Points and Scene Flow
Unity build settings determine the launch scene; the authored game scene set strongly indicates a linear flow from landing screen to lobby, three puzzle rooms, and per-room completion screens:
- `EscapeRoom/Assets/Scenes/landing.unity`
- `EscapeRoom/Assets/Scenes/lobby.unity`
- `EscapeRoom/Assets/Scenes/room1.unity`
- `EscapeRoom/Assets/Scenes/room2.unity`
- `EscapeRoom/Assets/Scenes/room3.unity`
- `EscapeRoom/Assets/Scenes/complete1.unity`
- `EscapeRoom/Assets/Scenes/complete2.unity`
- `EscapeRoom/Assets/Scenes/complete3.unity`

`EscapeRoom/Assets/scripts/LandingPage.cs` is the likely landing/menu interaction entry, while scene ordering and inclusion are controlled by `EscapeRoom/ProjectSettings/EditorBuildSettings.asset`.

#### Scene-Scoped Game Architecture
Gameplay appears scene-centric rather than driven by a reusable domain layer. Each room packages its environment, puzzle UI, objects, and navigation in Unity scene assets. Completion scenes create explicit transition boundaries after puzzle success. This makes scene references and Inspector-assigned script fields the primary integration mechanism, rather than code-level service interfaces.

#### UI and Puzzle Interaction Layer
The UI layer is split across multiple purpose- or room-specific `MonoBehaviour` scripts:
- `EscapeRoom/Assets/scripts/UIManager.cs`
- `EscapeRoom/Assets/scripts/UIManager2.cs`
- `EscapeRoom/Assets/scripts/UIManager3.cs`
- `EscapeRoom/Assets/scripts/UIManager4.cs`
- `EscapeRoom/Assets/scripts/UIManager5.cs`
- `EscapeRoom/Assets/scripts/UIManager6.cs`
- `EscapeRoom/Assets/scripts/UIManager7.cs`

`EscapeRoom/Assets/scripts/PopUpManager.cs` and `EscapeRoom/Assets/scripts/TextBox.cs` likely provide modal/dialogue or clue presentation. The important boundary is Unity UI events → manager methods → local scene state and scene transition; persistence across rooms is not evident from the repository layout.

#### Player, Movement, and Trigger Control
Movement is implemented as several scripts rather than one shared controller:
- `EscapeRoom/Assets/scripts/movement.cs`
- `EscapeRoom/Assets/scripts/movement2.cs`
- `EscapeRoom/Assets/scripts/movement3.cs`
- `EscapeRoom/Assets/scripts/trigger.cs`

This suggests room- or gameplay-mode-specific movement and collision/interaction gates. Animator controllers and clips supply player/duck visual state:
- `EscapeRoom/Assets/player.controller`
- `EscapeRoom/Assets/duckAnimation.controller`
- `EscapeRoom/Assets/walk.anim`

#### Content and Presentation Pipeline
Puzzle spaces are largely assembled from authored 2D sprite/image assets, including room backgrounds, number clues, keys, doors, and environmental pieces:
- `EscapeRoom/Assets/Sprites/Room1NoNum.jpg.meta`
- `EscapeRoom/Assets/Sprites/Room2Numbers.jpg.meta`
- `EscapeRoom/Assets/Sprites/Room3Numbers.jpg.meta`
- `EscapeRoom/Assets/Sprites/key.png.meta`
- `EscapeRoom/Assets/Sprites/door-removebg-preview.png.meta`

Audio is local and asset-backed, notably `EscapeRoom/Assets/3 for FREE/The Explorer.wav`. Text rendering uses bundled TextMesh Pro resources under `EscapeRoom/Assets/TextMesh Pro/Resources`.

#### Build, Dependencies, and Infrastructure
Unity package dependencies are declared in `EscapeRoom/Packages/manifest.json` and locked in `EscapeRoom/Packages/packages-lock.json`; engine/project behavior is configured under `EscapeRoom/ProjectSettings/`. The committed `gamebuild.app` is a deployable macOS artifact containing UnityPlayer, Mono libraries, Burst-generated code, and serialized level data. No CI, cloud deployment, database, authentication, analytics, or API integration is present in the supplied tree.

Main entry points: [`EscapeRoom/Assets/Scenes/room1.unity`](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room1.unity) (Room 1), [`EscapeRoom/Assets/Scenes/room2.unity`](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room2.unity) (Room 2), [`EscapeRoom/Assets/Scenes/room3.unity`](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room3.unity) (Room 3), [`EscapeRoom/Assets/scripts/UIManager.cs`](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/UIManager.cs) (Puzzle UI Managers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Unity Authoring"]
  node_build_settings["Build Settings<br/>Unity configuration"]
  node_packages["Unity Packages<br/>dependencies<br/>[manifest.json]"]
  node_landing_script["Landing Interaction<br/>MonoBehaviour<br/>[LandingPage.cs]"]
  node_ui_managers["Puzzle UI Managers<br/>MonoBehaviours<br/>[UIManager.cs]"]
  node_dialogue_ui["Popup and Text UI<br/>MonoBehaviours<br/>[PopUpManager.cs]"]
  node_movement["Movement and Triggers<br/>MonoBehaviours<br/>[movement.cs]"]
  node_animation["Player Animation<br/>Animator assets<br/>[player.controller]"]
  node_sprite_assets["Room Sprite Assets<br/>2D assets"]
  node_audio["Exploration Audio<br/>audio asset<br/>[The Explorer.wav]"]
  node_tmp["TextMesh Pro Resources<br/>text rendering"]
end

subgraph group_scenes["Scene Flow"]
  node_landing["Landing<br/>Unity scene<br/>[landing.unity]"]
  node_lobby["Lobby<br/>Unity scene<br/>[lobby.unity]"]
  node_room1["Room 1<br/>Unity scene<br/>[room1.unity]"]
  node_complete1["Room 1 Complete<br/>Unity scene<br/>[complete1.unity]"]
  node_room2["Room 2<br/>Unity scene<br/>[room2.unity]"]
  node_complete2["Room 2 Complete<br/>Unity scene<br/>[complete2.unity]"]
  node_room3["Room 3<br/>Unity scene<br/>[room3.unity]"]
  node_complete3["Room 3 Complete<br/>Unity scene<br/>[complete3.unity]"]
end

subgraph group_runtime["Packaged Player"]
  node_macos_player["macOS Game Player<br/>Unity player<br/>[EscapeRoom]"]
end

node_packages -.->|"configures editor environment"| node_build_settings
node_build_settings -->|"launches"| node_landing
node_landing_script -->|"handles menu input"| node_landing
node_landing -->|"start game"| node_lobby
node_lobby -->|"enter puzzle"| node_room1
node_room1 -->|"puzzle solved"| node_complete1
node_complete1 -->|"continue"| node_room2
node_room2 -->|"puzzle solved"| node_complete2
node_complete2 -->|"continue"| node_room3
node_room3 -->|"puzzle solved"| node_complete3
node_ui_managers -->|"scene UI events"| node_room1
node_ui_managers -->|"scene UI events"| node_room2
node_ui_managers -->|"scene UI events"| node_room3
node_dialogue_ui -->|"presents clues"| node_ui_managers
node_tmp -->|"renders text"| node_dialogue_ui
node_movement -->|"controls interaction"| node_room1
node_movement -->|"controls interaction"| node_room2
node_movement -->|"controls interaction"| node_room3
node_animation -->|"visual state"| node_movement
node_sprite_assets -->|"authored content"| node_room1
node_sprite_assets -->|"authored content"| node_room2
node_sprite_assets -->|"authored content"| node_room3
node_audio -->|"local audio"| node_room1
node_build_settings -->|"builds included scenes"| node_macos_player
node_packages -.->|"runtime dependencies"| node_macos_player

click node_build_settings "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/ProjectSettings/EditorBuildSettings.asset"
click node_packages "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Packages/manifest.json"
click node_landing_script "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/LandingPage.cs"
click node_ui_managers "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/UIManager.cs"
click node_dialogue_ui "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/PopUpManager.cs"
click node_movement "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/movement.cs"
click node_animation "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/player.controller"
click node_sprite_assets "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Sprites/Room1NoNum.jpg.meta"
click node_audio "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/3%20for%20FREE/The%20Explorer.wav"
click node_tmp "https://github.com/jamesmcintyre123/escaperoom_videogame/tree/main/EscapeRoom/Assets/TextMesh%20Pro/Resources"
click node_landing "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/landing.unity"
click node_lobby "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/lobby.unity"
click node_room1 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room1.unity"
click node_complete1 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete1.unity"
click node_room2 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room2.unity"
click node_complete2 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete2.unity"
click node_room3 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room3.unity"
click node_complete3 "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete3.unity"
click node_macos_player "https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/gamebuild.app/Contents/MacOS/EscapeRoom"

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_build_settings,node_packages,node_landing_script,node_ui_managers,node_dialogue_ui,node_movement,node_animation,node_sprite_assets,node_audio,node_tmp toneBlue
class node_landing,node_lobby,node_room1,node_complete1,node_room2,node_complete2,node_room3,node_complete3 toneAmber
class node_macos_player toneMint
```

## Components

### Unity Authoring

- [Build Settings](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/ProjectSettings/EditorBuildSettings.asset): Unity configuration · Selects included scenes and launch order. · `EscapeRoom/ProjectSettings/EditorBuildSettings.asset`
- [Unity Packages](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Packages/manifest.json): dependencies · `EscapeRoom/Packages/manifest.json`
- [Landing Interaction](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/LandingPage.cs): MonoBehaviour · `EscapeRoom/Assets/scripts/LandingPage.cs`
- [Puzzle UI Managers](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/UIManager.cs): MonoBehaviours · Room-specific UI handlers receive Unity UI events. · `EscapeRoom/Assets/scripts/UIManager.cs`
- [Popup and Text UI](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/PopUpManager.cs): MonoBehaviours · `EscapeRoom/Assets/scripts/PopUpManager.cs`
- [Movement and Triggers](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/scripts/movement.cs): MonoBehaviours · Room-specific movement and interaction gates. · `EscapeRoom/Assets/scripts/movement.cs`
- [Player Animation](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/player.controller): Animator assets · `EscapeRoom/Assets/player.controller`
- [Room Sprite Assets](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Sprites/Room1NoNum.jpg.meta): 2D assets · Backgrounds, clues, keys, doors, and environmental art. · `EscapeRoom/Assets/Sprites/Room1NoNum.jpg.meta`
- [Exploration Audio](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/3%20for%20FREE/The%20Explorer.wav): audio asset · `EscapeRoom/Assets/3 for FREE/The Explorer.wav`
- [TextMesh Pro Resources](https://github.com/jamesmcintyre123/escaperoom_videogame/tree/main/EscapeRoom/Assets/TextMesh%20Pro/Resources): text rendering · `EscapeRoom/Assets/TextMesh Pro/Resources`

### Scene Flow

- [Landing](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/landing.unity): Unity scene · Menu and game entry scene. · `EscapeRoom/Assets/Scenes/landing.unity`
- [Lobby](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/lobby.unity): Unity scene · `EscapeRoom/Assets/Scenes/lobby.unity`
- [Room 1](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room1.unity): Unity scene · `EscapeRoom/Assets/Scenes/room1.unity`
- [Room 1 Complete](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete1.unity): Unity scene · `EscapeRoom/Assets/Scenes/complete1.unity`
- [Room 2](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room2.unity): Unity scene · `EscapeRoom/Assets/Scenes/room2.unity`
- [Room 2 Complete](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete2.unity): Unity scene · `EscapeRoom/Assets/Scenes/complete2.unity`
- [Room 3](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/room3.unity): Unity scene · `EscapeRoom/Assets/Scenes/room3.unity`
- [Room 3 Complete](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/EscapeRoom/Assets/Scenes/complete3.unity): Unity scene · `EscapeRoom/Assets/Scenes/complete3.unity`

### Packaged Player

- [macOS Game Player](https://github.com/jamesmcintyre123/escaperoom_videogame/blob/main/gamebuild.app/Contents/MacOS/EscapeRoom): Unity player · Committed deployable Unity, Mono, and Burst runtime artifact. · `gamebuild.app/Contents/MacOS/EscapeRoom`

## Connections

- Unity Packages → Build Settings: configures editor environment
- Build Settings → Landing: launches
- Landing Interaction → Landing: handles menu input
- Landing → Lobby: start game
- Lobby → Room 1: enter puzzle
- Room 1 → Room 1 Complete: puzzle solved
- Room 1 Complete → Room 2: continue
- Room 2 → Room 2 Complete: puzzle solved
- Room 2 Complete → Room 3: continue
- Room 3 → Room 3 Complete: puzzle solved
- Puzzle UI Managers → Room 1: scene UI events
- Puzzle UI Managers → Room 2: scene UI events
- Puzzle UI Managers → Room 3: scene UI events
- Popup and Text UI → Puzzle UI Managers: presents clues
- TextMesh Pro Resources → Popup and Text UI: renders text
- Movement and Triggers → Room 1: controls interaction
- Movement and Triggers → Room 2: controls interaction
- Movement and Triggers → Room 3: controls interaction
- Player Animation → Movement and Triggers: visual state
- Room Sprite Assets → Room 1: authored content
- Room Sprite Assets → Room 2: authored content
- Room Sprite Assets → Room 3: authored content
- Exploration Audio → Room 1: local audio
- Build Settings → macOS Game Player: builds included scenes
- Unity Packages → macOS Game Player: runtime dependencies
