Escape From School

Seele01-Flash
By
Escape From School is an exciting 3D adventure game where you must break free from detention by navigating through trap-filled ventilation shafts, classrooms, and hallways while avoiding the mean principal.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Escape From School - Low Poly Obby Runner**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Roblox-inspired" low-poly aesthetic. Use simple geometric shapes (BoxGeometry, CylinderGeometry) with vibrant, saturated colors. * **Cel-Shading Effect:** Crucial for matching the screenshot. Implement a toon shader or an edge-detection post-processing effect to draw thick black outlines around characters and objects. * **Characters:** * **Player:** A blocky student character with a red cap and blue backpack. * **Enemy (The Principal):** A bulky, larger blocky character in a blue police-style uniform. * **Environment:** A modular endless runner or long linear level set in a school hallway. * **Decor:** Red lockers lining the walls, grey tiled ceiling, checkered floor. * **Obstacles:** Desks, wet floor signs, gaps in the floor (ventilation shafts), and laser beams. * **Collectibles:** Floating, rotating 3D Chocolate Bars (Gold/Brown color) with a glow effect. * **Mobile Optimization:** Use low-polygon counts for all meshes. Reuse geometries (InstancedMesh) for repetitive elements like lockers and floor tiles to maintain high FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A fast-paced, mischievous, and upbeat synth-pop track that loops. It should convey a sense of a "comical chase." * **Sound Effects (SFX):** * **Footsteps:** Squeaky sneaker sounds triggered when moving on the floor. * **Jump:** A cartoonish "Boing" or "Whoosh" sound. * **Collection:** A high-pitched "Ding" or "Crunch" sound when picking up chocolate bars. * **Caught/Fail:** A whistle blow sound followed by a "womp-womp" effect. ### 3. Gameplay Loop * **Core Mechanics:** The player views the character from a Third-Person (Chase Cam) perspective. The player must run forward, jump over obstacles, and crouch/slide under barriers. * **The Chase:** The "Principal" AI constantly follows the player at a steady speed. If the player stops or hits an obstacle, the Principal gets closer. If touched by the Principal, Game Over. * **Level Design:** * **Phase 1:** School Hallways (Dodging lockers and janitor carts). * **Phase 2:** Ventilation Shafts (Platforming over gaps, avoiding fans). * **Scoring:** Score is based on distance traveled + number of chocolate bars collected. * **Win/Loss:** The game is an endless runner (High Score based) or level-based (Reach the Exit Door). Loss occurs upon collision with the Principal or falling into a pit. ### 4. Mobile Controls & Interaction * **Touch Controls (Virtual Overlay):** * **Movement:** A dynamic virtual joystick on the left side of the screen (using `nipple.js` or custom canvas implementation) for omnidirectional movement. * **Actions:** Two large circular buttons on the right side: * **"JUMP" Button (Bottom Right):** Triggers vertical impulse. * **"INTERACT/SLIDE" Button (Top Right):** Opens doors or slides under obstacles. * **Orientation:** Force **Landscape Mode** for a wider field of view (essential to see upcoming obstacles). * **UI/UX:** * Large, thumb-friendly buttons (min 48px touch target). * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(50)`) when collecting an item and a longer vibration (`navigator.vibrate(200)`) upon death. * **Camera:** Smooth follow camera (Lerp) that stays behind the player but reacts slightly to turns to prevent motion sickness. 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 School is a thrilling 3D adventure escape game that puts you in the shoes of a student trapped in detention. Your mission is simple but challenging: escape the school without getting caught by the vigilant principal! This free-to-play browser game combines stealth, platforming, and puzzle-solving elements to create an engaging experience that will keep you on the edge of your seat.

The game features colorful cartoon-style graphics and intuitive controls that make it accessible to players of all ages. Whether you're looking for a quick gaming session during a break or an extended adventure, Escape From School delivers excitement and challenge in equal measure.

Core Features

Immersive 3D School Environment

Explore a fully realized 3D school complete with classrooms, hallways, and ventilation systems. Each area presents unique challenges and hiding spots as you plan your escape route.

Stealth-Based Gameplay

Avoid detection by the school principal and other authority figures as you make your way through the building. Timing and strategy are key to successful escape attempts.

Collectible Chocolate Bars

Gather chocolate bars scattered throughout the school to unlock new character outfits and customization options. These collectibles add an extra layer of exploration and replayability.

Trap-Filled Obstacles

Navigate through dangerous ventilation shafts filled with traps and obstacles. Quick reflexes and careful planning are essential to overcome these challenges.

Power-Up System

Discover helpful power-ups throughout your journey that can assist you in difficult situations and provide temporary advantages during your escape.

Cross-Platform Compatibility

Enjoy seamless gameplay on both desktop computers and mobile devices, allowing you to continue your escape adventure anywhere.

Game Mechanics

Movement and Navigation

The game uses standard WASD or arrow key controls for movement, making it familiar and easy to pick up for most players. The spacebar allows you to jump over obstacles and reach higher platforms.

Interaction System

Use the E key to interact with various objects throughout the school, including doors, switches, and collectible items. This adds depth to the exploration aspect of the game.

Stealth Elements

Stay hidden from the principal's line of sight by ducking behind objects, timing your movements, and using the environment to your advantage. Getting caught means starting over, so careful planning is essential.

Operation Guide

Basic Controls: - WASD Keys or Arrow Keys : Move your character in all directions - Spacebar : Jump over obstacles and reach higher areas - E Key : Interact with doors, switches, and collectible items - Mouse : Control camera view and navigate menus

Gameplay Tips: - Stay crouched or hidden when the principal is nearby - Collect chocolate bars to unlock new outfits and abilities - Use ventilation shafts as alternative routes but watch out for traps - Look for power-ups that can help you in challenging situations - Plan your route carefully before making bold moves

Why Play This Game

Escape From School offers a unique blend of stealth, adventure, and puzzle-solving that appeals to a wide range of players. The game's school setting is relatable and nostalgic, while the escape mechanics provide genuine tension and excitement.

The free-to-play model means you can dive right into the action without any upfront cost. The game's cross-platform compatibility ensures you can enjoy the experience whether you're on a computer during lunch break or on your phone during commute.

With its charming cartoon graphics, intuitive controls, and progressively challenging levels, Escape From School provides hours of entertaining gameplay. The collectible system and outfit unlocks add replay value, encouraging multiple playthroughs to discover all the game has to offer.

Perfect for players who enjoy stealth games, school-themed adventures, or anyone looking for a fun, casual gaming experience that doesn't require a significant time commitment.

Frequently Asked Questions (FAQ)