Trapped - Mystery Escape Room Game

Seele01-Flash
By
Trapped is an immersive free escape room mystery game where you must solve puzzles and uncover clues to discover your identity and find your way to freedom. This challenging point-and-click adventure combines brain teasers with atmospheric mystery elements.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Trapped". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Sterile Isolation Horror". Recreate the aesthetic of early 2000s Flash escape games but with modern WebGL lighting. Use a cold color palette: Teal/Cyan textured walls (bump map noise), Brushed Metal door, and Gold/Yellow accents for the lock. * **Room Geometry**: A small, claustrophobic cubic room (First-person view). The player faces the main exit door. * **The Door**: A heavy reinforced steel door with a frosted glass window (dark blue gradient, non-transparent) and a slide bolt latch. * **The Lock**: A prominent, low-poly **Yellow Padlock** on the slide bolt. This is the primary focal point. * **Hidden Item**: A rusty key hidden in the corner of the room (e.g., under a simple bed frame or behind a loose brick). * **Lighting**: A flickering overhead fluorescent light (cool white/blue) that casts dynamic shadows to create tension. A subtle spot-light highlighting the padlock. * **Mobile Optimization**: Use basic geometries (BoxGeometry, CylinderGeometry) to simulate complex shapes. Low polygon count. Use `THREE.TextureLoader` with procedural fallback colors if textures fail. ### 2. Audio Requirements * **BGM**: A low-frequency, unsettling industrial drone (ambient hum) to simulate air conditioning or distant machinery. * **Sound Effects (SFX)**: * **Locked**: A metallic "clank-rattle" sound when tapping the door without the key. * **Pickup**: A subtle metal chime when the key is found. * **Unlock**: A heavy "click-clack" mechanism sound when the padlock opens. * **Success**: A harsh, loud alarm or bright white noise transition upon escaping. ### 3. Gameplay Loop * **Objective**: Escape the room by unlocking the door. * **State 1 (Trapped)**: The player can look around but cannot open the door. Tapping the door triggers a "Locked" message/animation. * **State 2 (Investigation)**: The player must rotate the camera to find the **Key** hidden in the scene. * **State 3 (Action)**: Tapping the Key collects it (removes from scene, updates internal state `hasKey = true`). * **State 4 (Escape)**: With the key, tapping the Yellow Padlock causes it to fall off, the slide bolt moves, and the door slowly rotates open. * **Win Condition**: The camera moves through the open door -> Fade to black -> "You Escaped" UI overlay. ### 4. Mobile Controls & Interaction * **Camera Control**: Use `OrbitControls` but restrict movement. * `enableZoom = false` (Prevent accidental zooming). * `enablePan = false`. * Restrict vertical angle (`minPolarAngle`, `maxPolarAngle`) so the player can't look inside their own body/floor too awkwardly. * **Interaction (Raycaster)**: * Implement `touchstart` event listener mapped to `THREE.Raycaster`. * **Hitbox Optimization**: Make the Key and the Padlock invisible hitboxes slightly larger than their visual meshes to ensure easy tapping on small mobile screens. * **Feedback**: * **Visual**: When an interactive object is tapped, it should flash or scale up slightly (1.1x) for 100ms (Bounce effect). * **Haptic**: Trigger `navigator.vibrate(50)` on successful taps (key pickup / door unlock). * **UI**: * Simple HTML overlay for "Find a way out..." (fades out on start). * Inventory Icon: A small key icon appears in the top-right corner when the key is collected. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Trapped is a captivating mystery escape room game that challenges players with an intricate web of puzzles and clues. With a solid 3.8/5 rating from players worldwide, this free online game offers an immersive experience where you wake up in an unknown location with no memory of how you got there. Your mission is simple yet challenging: discover who you are, where you are, and most importantly, how to escape.

This isn't just another casual puzzle game - Trapped is designed for players who enjoy deep, thought-provoking challenges that require patience, observation skills, and logical thinking.

Core Features

Immersive Mystery Storyline

The game presents a compelling narrative mystery where every click reveals new information about your situation. As you progress, you'll piece together fragments of your identity while uncovering the secrets of your mysterious prison.

Challenging Puzzle Mechanics

Featuring a variety of brain teasers and logical challenges, Trapped tests your problem-solving abilities with: - Hidden object puzzles that require keen observation - Logic-based riddles that challenge your analytical thinking - Interactive environment elements that respond to your investigations - Multi-layered mysteries that unfold gradually as you progress

Atmospheric Game Design

The game creates an engaging atmosphere that keeps you on edge while you solve puzzles. The mysterious setting and carefully crafted visual elements enhance the overall escape room experience.

Free Browser-Based Gaming

No downloads, no installations, no payment required - simply open your browser and start your escape adventure immediately.

Gameplay Mechanics

Trapped uses intuitive point-and-click gameplay mechanics that make it accessible to players of all skill levels:

  • Simple Controls : Everything is controlled through left mouse clicks
  • Interactive Environment : Click on objects, doors, drawers, and other elements to investigate
  • Inventory System : Collect and combine items to solve complex puzzles
  • Progressive Difficulty : Puzzles become more challenging as you advance through the game

Operation Guide

Getting started with Trapped is straightforward:

  • Left Click : Your primary tool for all interactions - clicking on objects, opening doors, examining clues, and navigating through the game world
  • Exploration : Systematically examine every part of each room or area
  • Observation : Pay attention to details - even the smallest elements might be crucial clues
  • Patience : Some puzzles require multiple steps or combining different elements

The key to success is methodical exploration and careful attention to detail. Don't rush - take time to examine everything thoroughly.

Why Play Trapped

Perfect for Puzzle Enthusiasts : If you love brain teasers, logic puzzles, and mystery games, Trapped offers hours of engaging gameplay that will test your mental capabilities.

Completely Free Experience : Enjoy a full-featured escape room game without any cost or commitment. Perfect for trying out the escape room genre or enjoying a quick puzzle session.

Accessible Anywhere : Play directly in your web browser on any device - desktop, laptop, tablet, or smartphone. No storage space required.

Challenging Yet Fair : While tagged as "Hard", the game provides logical solutions to all puzzles. Every challenge can be solved through observation and reasoning, making success feel genuinely rewarding.

Mystery and Suspense : The atmospheric design and intriguing storyline keep you engaged beyond just the puzzle-solving mechanics.

Whether you're a seasoned escape room veteran or new to mystery puzzle games, Trapped provides an excellent introduction to the genre with its perfect balance of challenge and accessibility.

Frequently Asked Questions (FAQ)