Toilet Rush - Draw Puzzle

Seele01-Flash
By
Toilet Rush - Draw Puzzle is an addictive casual drawing game where you help characters reach the toilet by drawing creative paths while avoiding obstacles.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Toilet Rush - Draw Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D "Flat Cartoon" aesthetic. Use an **Orthographic Camera** to simulate a 2D canvas look while allowing for 3D depth in animations. * **Color Palette**: Background should be a clean, warm cream color (hex: `#FFF8E7`) to reduce eye strain. * **Characters**: Low-poly "Chibi" style characters. * **Boy**: Blue t-shirt, frantic expression, associated with **Blue** path/toilet. * **Girl**: Red dress, frantic expression, associated with **Red/Pink** path/toilet. * **Animation**: Characters should have a "shivering" idle animation (urgency) and a fast-paced "naruto-run" or waddling animation when moving. * **Environment Elements**: * **Toilets**: 3D models with open lids, clearly color-coded (Blue/Red) and glowing outlines to indicate they are targets. * **Obstacles**: Static walls, wooden crates, and dynamic enemies (e.g., a purple monster patrolling) that result in a game over if touched. * **Line Rendering**: Use `THREE.TubeGeometry` or thick `Line2` (from three/examples) to render drawn paths. The lines must be smooth (Catmull-Rom spline) and color-coded to match the character being dragged. ### 2. Audio Requirements * **BGM**: A fast-paced, comical, pizzicato-string orchestral track that loops. It should speed up slightly if the player idles too long to induce "urgency." * **Sound Effects (SFX)**: * **Drawing**: A scratchy "pencil on paper" or "marker squeak" sound that loops while the user is dragging. * **Success**: A loud, satisfying "Toilet Flush" sound combined with a sigh of relief "Ahhh." * **Fail/Collision**: A comedic "Bonk" or glass shattering sound, followed by a dizzy groan. * **UI**: Soft "Pop" sounds for button clicks. ### 3. Gameplay Loop * **Phase 1: Planning/Drawing**: * The game starts paused. Characters are at spawn points; Toilets are at destinations. * Player touches a character and drags to draw a path to the corresponding color-coded toilet. * **Constraint**: Lines cannot pass through walls or obstacles (turn line red if invalid). * **Multi-Character Logic**: The player must draw paths for *all* characters on screen (e.g., both Boy and Girl) before the run phase begins. * **Phase 2: The Rush (Execution)**: * Once all paths are valid and drawn, the characters automatically start running along their respective paths simultaneously. * **Win Condition**: All characters reach their toilets without colliding with obstacles or *each other*. * **Fail Condition**: * A character hits a wall/obstacle. * Two characters collide at an intersection (paths crossing requires timing strategy). * A character goes off-screen. ### 4. Mobile Controls & Interaction * **Touch Input**: Implement a robust `Raycaster` system for `touchstart`, `touchmove`, and `touchend` events. * **Drawing Mechanic**: * **Touch Start**: Raycast to detect if a character is tapped. Highlight the character and their target toilet. * **Touch Move**: Record coordinates to an array. Update the `TubeGeometry` in real-time to visualize the path. Implement a minimum distance threshold between points to optimize performance and smoothness. * **Touch End**: If the finger releases over the correct Toilet hitbox, "snap" the line to the toilet center and lock that path. If released elsewhere, fade out the line and require a retry. * **Orientation**: Portrait mode (Vertical). * **Feedback**: * **Haptic**: Trigger a light vibration (using `navigator.vibrate`) when the finger successfully connects to the toilet. * **Visual**: Show "Sweat Drop" particle effects emitting from characters while the player is thinking/drawing. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Toilet Rush - Draw Puzzle is a hilarious and engaging casual drawing game that combines puzzle-solving with creative line drawing. Your mission is simple yet challenging: help a boy and girl reach the toilet first by drawing the perfect path while avoiding various obstacles along the way.

This unique puzzle game tests your creativity, logic, and quick thinking as you navigate through increasingly complex levels. With its colorful cartoon graphics and intuitive gameplay, Toilet Rush offers hours of entertainment for players of all ages.

Core Features

Creative Problem Solving

Each level presents a unique puzzle that requires you to think outside the box. Draw lines strategically to create the most efficient path while considering obstacles, terrain, and timing.

Brain Training Fun

This isn't just entertainment – it's a workout for your brain! The game helps develop: - Logical thinking skills - Creative problem-solving abilities - Spatial awareness - Quick decision-making

Progressive Difficulty

Start with simple straight-line challenges and advance to complex multi-obstacle courses that will test even experienced puzzle gamers.

Colorful Graphics

Enjoy vibrant, cartoon-style visuals that make every level visually appealing and fun to play.

Gameplay Mechanics

The core gameplay revolves around drawing continuous lines from the characters to their destination. You must: - Analyze the level layout before drawing - Identify potential obstacles like monsters, spikes, or barriers - Plan the most efficient route to beat other characters - Execute your drawing with precision and speed

Obstacle Types

Encounter various challenges including: - Purple monsters that block direct paths - Environmental hazards - Competing characters racing for the same goal - Time-based challenges requiring quick thinking

Operation Guide

Getting Started: 1. Click on the boy character to begin drawing 2. Hold and drag your mouse to create a continuous line 3. Navigate around obstacles by drawing curved or zigzag paths 4. Release when you've connected the character to the toilet 5. Watch as characters automatically follow your drawn path

Pro Tips: - Plan your route before drawing to avoid mistakes - Look for the shortest path that avoids all obstacles - Consider the speed of movement when drawing curves - Sometimes indirect paths are faster than seemingly direct ones

Controls: - Left mouse button : Draw lines and navigate - Click and drag : Create continuous paths - Release : Complete the path and start the race

Why Play This Game

Perfect for Quick Breaks

With levels designed to be completed in under a minute, Toilet Rush is perfect for quick gaming sessions during breaks or commutes.

Family-Friendly Fun

The humorous theme and simple controls make it suitable for players of all ages, creating opportunities for family gaming time.

No Downloads Required

Play instantly in your web browser without any downloads or installations. Compatible with both desktop computers and mobile devices.

Completely Free

Enjoy all game features without any payment required. No hidden costs or premium content locks.

Skill Development

While having fun, you're actually improving cognitive skills like problem-solving, planning, and spatial reasoning.

Replay Value

Each level can be replayed to find better solutions or achieve faster completion times, adding replay value and encouraging improvement.

Platform Compatibility

Toilet Rush - Draw Puzzle runs smoothly on: - Desktop browsers (Chrome, Firefox, Safari, Edge) - Mobile browsers (iOS Safari, Android Chrome) - Tablets with touch screen support - Low-spec devices thanks to optimized performance

The game automatically adapts to your screen size, providing an optimal experience whether you're playing on a large monitor or smartphone screen.

Frequently Asked Questions (FAQ)