Cups - Water Sort Puzzle

Seele01-Flash
By
Cups - Water Sort Puzzle is a relaxing color-sorting puzzle game where you organize colored liquids into glass cups. With over 300 levels and customizable elements, it's the perfect brain teaser for puzzle enthusiasts.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Cups - Water Sort Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Stylized 3D with a "Soft Toon" or "Clean Minimalist" aesthetic. The scene should look like a high-end mobile puzzle game. * **Models**: * **Cups/Tubes**: Create `CylinderGeometry` with `MeshPhysicalMaterial` to simulate glass (high transmission, low roughness, slight opacity). * **Liquids**: Inside the tubes, use nested cylinder meshes representing liquid layers. Use vibrant, saturated colors (Cyan, Magenta, Yellow, Red, Purple, Green). * **Liquid Shader/Animation**: To simulate liquid physics without heavy computation, use a simple vertex shader or TWEEN animation to scale the liquid mesh on the Y-axis when pouring. Add a slight "wobble" effect to the top surface of the liquid. * **Environment**: A soft, calming radial gradient background (e.g., pastel blue to white). * **Lighting**: Three-point lighting setup with a soft AmbientLight and a DirectionalLight casting subtle shadows to give depth to the glass and liquids. * **Performance**: Use low-poly cylinders (e.g., `radialSegments: 32`). Merge geometries where possible or use InstancedMesh if the level has many identical tubes. ### 2. Audio Requirements * **BGM**: A relaxing, looping "Zen" track featuring soft piano, marimba, or ambient synth pads to reduce player stress. * **Sound Effects (SFX)**: * **Selection**: A soft "pop" or "cork" sound when a tube is tapped/lifted. * **Pouring**: A distinct water pouring sound (ASMR style) that loops while the liquid is transferring. * **Completion**: A satisfying "ding" or "bubble pop" when a tube is successfully filled with a single color. * **Win**: A celebratory chime or harp glissando when the level is cleared. ### 3. Gameplay Loop * **Core Logic**: 1. **Selection**: The player taps a "Source" tube. The tube visually lifts up (`position.y + 0.5`). 2. **Targeting**: The player taps a "Destination" tube. 3. **Validation**: A pour is valid ONLY if: * The Destination tube is empty OR * The top color of the Destination tube matches the top color of the Source tube AND the Destination tube has space (max capacity is usually 4 units). 4. **Action**: If valid, animate the Source tube tilting towards the Destination. The top color layer scales down in Source and scales up in Destination. 5. **Invalid Move**: If invalid, the Source tube shakes slightly (visual feedback) and returns to its original position. * **Win Condition**: All tubes in the scene are either completely full of ONE color or completely empty. * **Progression**: Start with 2 tubes (easy). Generate levels procedurally by shuffling sorted tubes, ensuring the puzzle is solvable. ### 4. Mobile Controls & Interaction * **Screen Orientation**: Portrait Mode (Vertical) is mandatory for optimal one-handed play. * **Input System**: * Use `Raycaster` mapping to `touchstart` (not just `click`) events for immediate mobile response. * Implement a larger "hit box" invisible geometry around the tubes to make tapping easier on small screens. * **Visual Feedback**: * **Selection**: The selected tube must highlight (emission glow) and move upward instantly. * **Pathfinding**: Optional: When a tube is selected, highlight valid destination tubes with a faint outline. * **UI Layout**: * Place a "Restart" and "Undo" button at the bottom of the screen (Thumb Zone). * Buttons should be at least 44x44 pixels. * Display "Level X" at the top center. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Cups - Water Sort Puzzle is an engaging and relaxing puzzle game that challenges your logical thinking through color-sorting mechanics. This addictive brain teaser requires you to sort colored liquids into glass cups, creating a satisfying and meditative gaming experience. The game's simple yet challenging concept makes it perfect for players of all ages who enjoy logic puzzles and want to exercise their problem-solving skills.

Core Features

Relaxing Gameplay Experience

Unlike high-pressure puzzle games, Cups - Water Sort Puzzle offers a calm and stress-free environment. The gentle color-sorting mechanics create a meditative experience that helps you unwind while keeping your mind engaged.

Progressive Difficulty System

With over 300 challenging levels , the game starts simple and gradually introduces more complex puzzles. Each level is carefully designed to test your strategic thinking as you progress through increasingly tricky color combinations.

Customization Options

Earn gold coins by completing levels and use them to unlock: - Various cup styles and shapes - Unique pouring implements - Different background themes - Special visual effects

Assist Features

When you get stuck, the game provides helpful assist buttons to guide you through challenging moments, ensuring you never feel frustrated or unable to progress.

Game Mechanics

Simple Rules, Deep Strategy

The core mechanic is elegantly simple: pour colored liquid from one cup to another, but you can only pour liquid of the same color on top of each other. The challenge lies in planning your moves strategically to sort all colors efficiently.

Star Rating System

Complete each level in the fewest moves possible to earn a perfect 3-star rating. This scoring system adds replay value and encourages you to optimize your solution strategies.

Blind Mode Challenge

For experienced players seeking extra difficulty, the game features a "blind mode" where you can test your memory and spatial reasoning skills.

How to Play

Basic Controls

  • Left mouse button : Select and interact with cups
  • Drag and drop : Pour liquid from one cup to another
  • Hint system : Use assist buttons when needed

Winning Strategy Tips

  1. Plan ahead : Visualize several moves before acting
  2. Work backwards : Sometimes it's easier to think about the end goal first
  3. Use empty cups wisely : They're your most valuable resources for temporary storage
  4. Take your time : There's no time pressure, so think through each move

Platform Compatibility

Cups - Water Sort Puzzle is completely free to play and supports: - Web browsers (desktop and mobile) - No download required - play instantly online - Cross-device progress - continue your game on any device - Responsive design - optimized for both computer and mobile screens

Why Play This Game

Perfect for Mental Exercise

This game provides excellent brain training through: - Logical reasoning development - Pattern recognition skills - Strategic planning practice - Color coordination abilities

Stress Relief and Relaxation

The calming nature of sorting colors makes this game ideal for: - Unwinding after a busy day - Taking productive breaks - Meditative gaming sessions - Anxiety reduction through focused activity

Accessibility for All Players

Whether you're a casual gamer or puzzle enthusiast, the game offers: - Intuitive controls that anyone can learn - Gradual difficulty progression - No violent or competitive elements - Family-friendly content suitable for all ages

Frequently Asked Questions (FAQ)