Water / Ball / Yarn Color Sort — AI Starter Prompt & Architecture
A set of containers holds stacked colored segments (capacity 4 each), plus 2 empty helper containers. Tap a source container then a destination container to pour/move contiguous top segments of the same color onto either an empty container or matching top color with free capacity. Win when every non-empty container holds 4 identical segments.
Original Prototype Prompt: Water / Ball / Yarn Color Sort
Paste into Cursor, Claude Code, Bolt, Lovable, or DeepSeek to scaffold a playable original game prototype around this genre mechanic.
Target Platform
Prompt Language
Visual Style & Palette
You are a senior casual-game engineer specializing in polished HTML5 mini-games. Build a **complete, immediately playable, zero-TODO, production-quality** original mini-game prototype in one pass. ### 1. Original Identity & Visual Direction - Visual Style — Clean Modern Geometric: Invent a fresh original game title. Use crisp tactile rounded vector shapes, subtle soft shadows, off-white/slate canvas (#F8FAFC) with vivid colorblind-safe accents (#4F46E5, #10B981, #F59E0B, #EF4444, #0EA5E9). Render everything procedurally with original assets. - Build every visual shape, title, palette, and audio effect 100% procedurally from scratch with zero external image/audio URLs so the project is lightweight, original, and ready for deployment. ### 2. Core Gameplay Mechanics & Architecture (Archetype: Water / Ball / Yarn Color Sort) - Genre Focus: Color Sort, puzzle - Abstracted Gameplay Flavor Cue (blend the mechanical twist originally without referencing any third-party brand): A set of containers holds stacked colored segments (capacity 4 each), plus 2 empty helper containers. Tap a source container then a destination container to pour/move contiguous top segments of the same color onto either an empty container or matching top color with free capacity. Win when every non-empty container holds 4 identical segments. - Core Loop: A set of containers holds stacked colored segments (capacity 4 each), plus 2 empty helper containers. Tap a source container then a destination container to pour/move contiguous top segments of the same color onto either an empty container or matching top color with free capacity. Win when every non-empty container holds 4 identical segments. - Data Model & Solvability: `tubes: Color[][]` (max length 4), `selectedTubeIdx: number | null`, `moveHistory: Move[]` for unlimited/limited Undo, plus a reverse-shuffle generator starting from solved tubes to guarantee 100% solvability. - Controls, Juice & Boosters: Lift-and-tilt pouring arc animation (or smooth hopping arc for balls/yarn), rising musical pitch as a tube completes, celebratory cork/confetti burst on pure-color completion, plus Undo and +1 Empty Tube boosters. - Progression Curve: 10+ progressive levels starting at 3 colors + 2 empty tubes, scaling up to 8 colors, mystery hidden lower layers (revealed only when uncovered), and tight-move challenges. ### 3. Target Platform & Engineering Spec (Web H5) - Deliverable: Self-contained browser HTML5 game (single index.html with inline CSS/JS or clean React + Canvas 2D component) that runs immediately with zero external asset URLs. - Viewport: Responsive full-viewport canvas supporting both desktop mouse/keyboard and mobile touch (9:16 portrait or adaptive center stage). - Publishing & Monetization Stubs: Wrap a lightweight `window.GAME_SDK` adapter with `gameplayStart()`, `gameplayStop()`, `happytime()`, and `requestRewardedAd(reason, onReward)` (hooked to Revive, Extra Slot/Hint, and 2x Reward buttons so CrazyGames/Poki/Playgama SDKs can be dropped in 5 minutes). - Persistence: Save unlocked level, best score, coins, and sound mute state in `localStorage`. ### 4. UI Flow, Procedural Audio & Delivery Contract - Complete State Machine: Clean Title Screen (1-line visual rule hint) -> Active Gameplay (top HUD: Level / Score / Best + bottom Booster bar) -> Victory Modal (stars/bonus + Next Level) -> Game Over Modal (Rewarded-Ad Revive/Helper hook + instant 1-tap Retry). - Built-in procedural **Web Audio API sound synthesizer** (tap feedback, ascending combo chime, level-clear fanfare, fail thud) with a top-right Mute toggle. - Delivery Rule: Output complete, runnable code with zero placeholders, clean state separation, and tested win/loss edge cases ready to play right away.
Originality notice: Prompts focus strictly on abstract genre mechanics, data structures, and procedural code. Always ship with your own original title, art, audio, and branding.
Data Model & Solvability Rules
`tubes: Color[][]` (max length 4), `selectedTubeIdx: number | null`, `moveHistory: Move[]` for unlimited/limited Undo, plus a reverse-shuffle generator starting from solved tubes to guarantee 100% solvability.
Controls, Tactile Juice & Boosters
Lift-and-tilt pouring arc animation (or smooth hopping arc for balls/yarn), rising musical pitch as a tube completes, celebratory cork/confetti burst on pure-color completion, plus Undo and +1 Empty Tube boosters.
Progression & Retention Curve
10+ progressive levels starting at 3 colors + 2 empty tubes, scaling up to 8 colors, mystery hidden lower layers (revealed only when uncovered), and tight-move challenges.
Recommended Stack & Target Platforms
HTML5 Canvas 2D or React + SVG animations
Trending Color Sort Reference Games on Live Charts (14)
Open any surging title below to inspect chart velocity, test-play a reference loop, and copy a tailored prompt.
Showing 14 games
Clean the Squishes! ASMR Sorting Obby
Playgama · #29 · Color Sort
Little Tidy Home
App Store · #53 · Color Sort
Sort Streak: Color Puzzle
App Store · #11 · Color Sort
Tidy House: Find Hidden Room
App Store · #18 · Color Sort
Cute Cards: Sort Puzzle
GameDistribution · #7 · Color Sort
DONT TOUCH WATER, IT HEARS YOU OBBY
Playgama · #11 · Color Sort
Santa Pins
GameDistribution · #25 · Color Sort
Happy Tidy Room
Google Play · #48 · Color Sort
Rope Sort!
Google Play · #11 · Color Sort
Block Out! - Color Sort Puzzle
Google Play · #24 · Color Sort
Amochiroom Puzzle: Room Sort
Google Play · #1 · Color Sort
Block Out! - Color Sort Puzzle
App Store · #2 · Color Sort
Magic Sort!
App Store · #6 · Color Sort
Yarn Loop: Knit Puzzle
App Store · #22 · Color Sort
Developer FAQ
Why is the Water / Ball / Yarn Color Sort archetype ideal for vibe coding a solo browser game?
A set of containers holds stacked colored segments (capacity 4 each), plus 2 empty helper containers. Tap a source container then a destination container to pour/move contiguous top segments of the same color onto either an empty container or matching top color with free capacity. Win when every non-empty container holds 4 identical segments. Because its core loop relies on crisp rules and procedural 2D visuals rather than heavy 3D art pipelines, solo developers can vibe code a playable MVP in days with Cursor, Claude Code, Bolt.new, or Lovable.
What data model keeps a Color Sort game solvable and bug-free?
Key architecture built directly into our starter prompt: `tubes: Color[][]` (max length 4), `selectedTubeIdx: number | null`, `moveHistory: Move[]` for unlimited/limited Undo, plus a reverse-shuffle generator starting from solved tubes to guarantee 100% solvability.
How do top Color Sort games drive retention and rewarded-ad conversion?
Combine tactile juice and opt-in boosters (Lift-and-tilt pouring arc animation (or smooth hopping arc for balls/yarn), rising musical pitch as a tube completes, celebratory cork/confetti burst on pure-color completion, plus Undo and +1 Empty Tube boosters.) with a structured difficulty curve (10+ progressive levels starting at 3 colors + 2 empty tubes, scaling up to 8 colors, mystery hidden lower layers (revealed only when uncovered), and tight-move challenges.).