Archetype Prompt Blueprint·1–3d Solo MVPHTML5 Canvas 2D or React

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.

AI Starter PromptMechanic Archetype: Water / Ball / Yarn Color Sort

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

3988 chars
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 (WeChat / Douyin Mini-Game)
- Deliverable: Pure Canvas 2D JavaScript/TypeScript architecture compatible with WeChat & Douyin Mini-Game runtime (no DOM-only HUD dependencies; draw HUD directly on Canvas or cleanly isolated adapter so `game.js` boots with `wx.createCanvas()`). Also provide a browser preview shim when `typeof wx === 'undefined'`.
- Safe Area & Package Size: Portrait 9:16 design with top safe-area padding for the WeChat capsule button; zero large external sprites/audio (procedural Canvas vector art + Web Audio / AudioContext synth so main package stays well under 4MB).
- Monetization Hooks: Encapsulate `showRewardedAd(scene, onSuccess)` using `wx.createRewardedVideoAd` / `tt.createRewardedVideoAd` (with mock success fallback in browser preview) wired to Extra Slot, Shuffle/Undo, and Revive.
- Storage & Share: Abstract storage via `wx.setStorageSync` / `localStorage` fallback and include a share-score hook (`wx.shareAppMessage`).

### 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

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.).

Explore All Other 14 Game Archetypes

AI Prompts
Water / Ball / Yarn Color Sort Vibe Coding Game Prompt — Build With Cursor, Claude & Bolt | TrendPlay Radar