Escape From Detention - School Escape Puzzle Game

Seele01-Flash
By
Escape From Detention is an engaging puzzle escape game where you play as a student who must solve clever puzzles to break free from after-school detention. Use logic and observation skills to find your way out!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Escape From Detention". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Create a Low-poly, "Flat Shaded" or Cel-shaded aesthetic to replicate the nostalgia of 2012 Flash games but with modern WebGL performance. Use `MeshToonMaterial` or `MeshLambertMaterial` with soft colors. * **Room Geometry**: A single contained 3D classroom scene. * **Walls/Floor**: Cream/Off-white walls, dark brown wooden floor. * **Furniture**: * Two "School Desk" models: Metal legs, light wood top, attached dark blue plastic chair. * One large "Bookshelf": Dark wood texture, filled with distinct blocky books (Red, Blue, Green, Yellow) that act as separate interactable meshes. * **Door**: Grey metal door with a silver handle and a small green notice board/poster attached to it. * **Window**: Large window on the left wall with simple transparency; view of a generic blue sky outside. * **Lighting**: Ambient lighting (white, intensity 0.6) + a PointLight near the ceiling to cast soft shadows. * **Mobile Optimization**: Keep total scene triangle count under 10,000. Use a single Texture Atlas for colors if possible to reduce draw calls. ### 2. Audio Requirements * **BGM**: Minimalist ambient sound. A quiet, echoing "empty school" drone mixed with a slow, rhythmic "ticking clock" to build subtle tension (time pressure). * **Sound Effects (SFX)**: * **Interaction**: A "pop" or "click" sound when tapping interactable objects. * **Inventory**: A "zipper" or "paper rustle" sound when picking up an item. * **Books**: A "slide" sound when moving books on the shelf. * **Locked**: A "rattle" sound if the player tries the door without the key. * **Success**: A short, positive 8-bit chime when a puzzle is solved. ### 3. Gameplay Loop * **Start State**: Player spawns facing the corner with the bookshelf and desks. The door is locked (`isLocked = true`). * **Core Mechanic - Point & Click (Tap)**: * **Investigation**: Player taps objects to inspect them. * *Desk A*: Tapping zooms in. A "Paper Scraps" item is hidden inside. * *Desk B*: Tapping zooms in. "Chewing Gum" (adhesive) is hidden under the seat. * **Puzzle - The Bookshelf**: * The books on the shelf are interactable. They must be clicked in a specific order (e.g., Blue -> Red -> Yellow -> Green) based on a clue found on the "Paper Scraps". * Solving this slides the bookshelf aside or opens a hollow book to reveal a "Door Key". * **Escape**: * Player selects "Door Key" from inventory. * Player taps the Door. * If Key is selected + Door is tapped -> `Win Condition` trigger. * **Win Condition**: The door opens, light floods in, and a "DETENTION ESCAPED!" UI overlay appears. ### 4. Mobile Controls & Interaction * **Camera Control**: * **Swipe to Look**: One-finger drag on background rotates the camera (First-person view, clamped vertical rotation to avoid flipping). * **Raycasting**: Taps are converted to Raycaster checks. * **Interaction System**: * **Tap logic**: Detect if the user tapped a specific mesh. If the mesh is "far" (e.g., > 2 meters), move the camera closer (Zoom In). If "close", trigger the interaction (Pick up / Toggle). * **Back Button**: A persistent UI button "▼ Back" at the bottom center to exit "Zoomed In" views. * **UI & HUD**: * **Inventory Bar**: A horizontal scrollable container at the bottom of the screen. Collected items appear here as icons. * **Touch Targets**: Ensure all interactive elements (books, door handle) have invisible hit-boxes slightly larger than the visible mesh to ensure easy tapping on small mobile screens (minimum 44x44px equivalent). * **Feedback**: Trigger `window.navigator.vibrate(50)` on successful item pickup or puzzle interaction for haptic feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Escape From Detention is a captivating point-and-click puzzle game that puts you in the shoes of a sleepy student who has found themselves locked in detention after everyone else has gone home. With a solid 3.8/5 rating from players, this brain-teasing escape room challenge combines school nostalgia with clever puzzle-solving mechanics.

The game creates an authentic detention room atmosphere where every click might reveal a crucial clue. You've dozed off during detention and woken up to find yourself alone and locked in the classroom. Now it's up to your wits and problem-solving skills to find a way out before your parents discover your predicament!

Core Features

Immersive School Setting

The game perfectly captures the familiar yet eerie atmosphere of an empty school detention room. From the teacher's desk to student chairs, bookshelves, and classroom decorations, every element has been carefully designed to create an authentic educational environment that many players will find nostalgically familiar.

Challenging Puzzle Mechanics

Escape From Detention features a variety of interconnected puzzles that require both logical thinking and creative problem-solving. Items you discover early in the game often become crucial tools for solving later challenges, creating a satisfying web of cause-and-effect relationships.

Point-and-Click Simplicity

The intuitive mouse-based controls make the game accessible to players of all ages and experience levels. Simply click to explore, interact with objects, and piece together the mystery of your escape route.

Brain Training Benefits

This escape game serves as excellent mental exercise, challenging players to think outside the box, make connections between seemingly unrelated objects, and develop systematic problem-solving approaches.

Gameplay Mechanics

The core gameplay revolves around thorough exploration and logical deduction. You'll need to examine every corner of the detention room, clicking on objects that might seem insignificant at first glance. Many items serve multiple purposes or combine with other objects to create new solutions.

The puzzles range from simple observation challenges to complex multi-step problems that require you to piece together information from different parts of the room. Success depends on your ability to think creatively about how common classroom objects might be repurposed to aid in your escape.

Operation Guide

Basic Controls: - Mouse Click : Interact with objects, examine items, and navigate the room - Cursor Changes : Watch for cursor changes that indicate interactive elements - Inventory System : Collect and combine items as you discover them - Systematic Exploration : Click everything - even objects that seem ordinary might hold secrets

Strategy Tips: - Start by thoroughly exploring every visible area of the detention room - Pay attention to details like numbers, patterns, and color combinations - Try combining different items in your inventory - If stuck, revisit areas you've already explored - new information might reveal previously hidden clues - Don't overlook seemingly mundane objects like books, papers, or desk drawers

Why Play This Game

Perfect Mental Challenge : Escape From Detention offers the ideal balance of difficulty - challenging enough to be engaging without being frustratingly impossible. It's perfect for players who enjoy testing their problem-solving abilities.

Nostalgic Appeal : The school detention setting resonates with many players, evoking memories of their own educational experiences while providing a safe, fun way to "escape" from academic constraints.

Skill Development : Regular play helps develop critical thinking, attention to detail, and systematic problem-solving approaches that are valuable in real-life situations.

Stress-Free Gaming : Unlike action games that require quick reflexes, this puzzle escape game allows you to think at your own pace, making it perfect for relaxation and mental stimulation.

Completely Free : Enjoy the full game experience without any cost - no hidden fees, no premium content locks, and no time restrictions.

Whether you're looking for a quick mental break, want to improve your puzzle-solving skills, or simply enjoy the satisfaction of cracking complex challenges, Escape From Detention delivers an entertaining and rewarding gaming experience that will keep you engaged from start to finish.

Frequently Asked Questions (FAQ)