How jamesmcintyre123/escaperoom_videogame works
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: room1.unity Room 1 · room2.unity Room 2 · room3.unity Room 3 · UIManager.cs Puzzle UI Managers
Components 19
Unity Authoring
- Build Settings · Selects included scenes and launch order.
EscapeRoom/ProjectSettings/EditorBuildSettings.asset - Unity Packages
EscapeRoom/Packages/manifest.json - Landing Interaction
EscapeRoom/Assets/scripts/LandingPage.cs - Puzzle UI Managers · Room-specific UI handlers receive Unity UI events.
EscapeRoom/Assets/scripts/UIManager.cs - Popup and Text UI
EscapeRoom/Assets/scripts/PopUpManager.cs - Movement and Triggers · Room-specific movement and interaction gates.
EscapeRoom/Assets/scripts/movement.cs - Player Animation
EscapeRoom/Assets/player.controller - Room Sprite Assets · Backgrounds, clues, keys, doors, and environmental art.
EscapeRoom/Assets/Sprites/Room1NoNum.jpg.meta - Exploration Audio
EscapeRoom/Assets/3 for FREE/The Explorer.wav - TextMesh Pro Resources
EscapeRoom/Assets/TextMesh Pro/Resources
Scene Flow
- Landing · Menu and game entry scene.
EscapeRoom/Assets/Scenes/landing.unity - Lobby
EscapeRoom/Assets/Scenes/lobby.unity - Room 1
EscapeRoom/Assets/Scenes/room1.unity - Room 1 Complete
EscapeRoom/Assets/Scenes/complete1.unity - Room 2
EscapeRoom/Assets/Scenes/room2.unity - Room 2 Complete
EscapeRoom/Assets/Scenes/complete2.unity - Room 3
EscapeRoom/Assets/Scenes/room3.unity - Room 3 Complete
EscapeRoom/Assets/Scenes/complete3.unity
Packaged Player
- macOS Game Player · Committed deployable Unity, Mono, and Burst runtime artifact.
gamebuild.app/Contents/MacOS/EscapeRoom
Connections 25
- 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