Merge Solitaire - Number Matching Card Game

Seele01-Flash
By
Merge Solitaire combines classic solitaire gameplay with strategic number matching. Merge identical cards to double their values, create powerful chains, and unlock game-changing tools in this addictive puzzle experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Merge Solitaire". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Kawaii" (Cute) and vibrant aesthetic similar to the reference screenshot. * **Cards:** Use `THREE.ExtrudeGeometry` or rounded boxes to create thick, 3D cards with smooth rounded corners. * **Color Palette & Hierarchy:** Implement a specific color mapping based on card values: * 2: Deep Blue (with a yellow icon hint) * 4: Cyan (with a white icon hint) * 8: Bright Green (with an orange icon hint) * 16: Golden Yellow * 32: Orange * 64: Magenta/Pink * Higher numbers: Purple/Red gradients. * **Card Face:** Use `CanvasTexture` to dynamically draw the number (bold, white/black font) and a simple colored shape (circle or generic animal silhouette) behind the number to mimic the screenshot's animal avatars. * **Background:** A solid, soothing violet or deep purple background color (hex: #330066) to make the neon cards pop. * **Optimization:** Use instanced meshes if possible for cards to maintain high FPS on mobile. Reduce shadow map resolution for performance. ### 2. Audio Requirements * **BGM:** A looping, relaxing, yet upbeat "puzzler" track. Think "elevator bossa nova" or light marimba sounds. * **Sound Effects (SFX):** * **Card Pickup:** A soft "whoosh" or paper sliding sound. * **Merge Success:** A satisfying high-pitched "pop" or "bubble burst" sound. * **Combo/Chain:** An ascending musical scale (do-re-mi) for consecutive merges. * **Game Over:** A descending "wah-wah" sound. * *(Note: Since you are generating code, please implement placeholder synthesizer functions using `AudioContext` oscillator nodes to simulate these sounds without external assets).* ### 3. Gameplay Loop * **Board Layout:** Setup 4 vertical columns (slots) in the center of the screen. At the bottom, place a "Deck" or "Hand" area containing one active card. * **Core Mechanic:** 1. The player drags the active card from the bottom to one of the 4 columns. 2. **Merge Logic:** If the card drops onto a card of the **same value** (e.g., 4 on 4), they merge into the next tier (8). 3. **Chain Reactions:** If the new merged card (8) lands on an existing 8 in that column, they merge again immediately. 4. **Placement:** If values don't match, the card simply sits on top of the stack. * **Power-ups (UI Buttons):** * **Trash Can:** Discards the current active card. * **Double Up:** Multiplies the current active card by 2. * **Win/Loss:** The game is endless. Game Over occurs when a column is full and the player cannot make a merge move. ### 4. Mobile Controls & Interaction * **Control Scheme:** Single-finger touch and drag. * Use `THREE.Raycaster` mapped to `touchstart`, `touchmove`, and `touchend` events. * **Orientation:** **Portrait Mode** is mandatory to accommodate vertical card stacks. * **Visual Feedback:** * **Highlight:** When dragging a card over a valid column, the column should glow or highlight slightly to indicate where the card will land. * **Juiciness:** Add a "squash and stretch" scale animation to cards when they merge. Add a simple particle explosion (cubes or circles) upon a successful merge. * **UI Layout:** * Score display at the top center. * Power-up buttons at the bottom corners (large hit areas, min 44x44px). * Ensure UI elements are anchored to the screen edges (HUD) using an Orthographic camera, separate from the 3D game scene. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Merge Solitaire revolutionizes traditional solitaire by introducing an innovative number-matching mechanic that challenges your strategic thinking. This captivating puzzle game starts simple but quickly evolves into a complex strategy experience where every move matters. Players begin with cards numbered 2 and systematically work their way up by merging identical values.

Core Features

Strategic Number Matching System

The game's unique appeal lies in its progressive number system. Start with basic cards showing the number 2, then merge two identical cards to create the next value - 4, 8, 16, and beyond. Each successful merge not only clears space on the board but also generates higher-value cards that bring you closer to victory.

Bonus Chain System

Master the art of chaining multiple merges in sequence to unlock substantial bonus cash rewards. These strategic combinations separate novice players from experts, as planning ahead becomes crucial for maximizing your earning potential.

Powerful Tool Arsenal

Earned cash isn't just for show - it unlocks game-changing abilities: - Card Destroyer : Eliminate problematic cards that block your strategy - Value Doubler : Instantly double any card's numerical value - Strategic Helpers : Additional tools to overcome challenging situations

Multiple Difficulty Modes

For players seeking the ultimate challenge, try completing the game without using any bonus tools. This "pure strategy" mode tests your planning abilities and pattern recognition skills to their limits.

Gameplay Mechanics

The intuitive drag-and-drop interface makes learning easy, but mastering the game requires careful planning. Each card placement affects future possibilities, creating a dynamic puzzle that evolves with every move. The colorful, animal-themed card designs add visual appeal while maintaining clear number visibility.

Progressive Difficulty

As numbers grow larger, available space becomes more precious. Players must balance immediate gains with long-term strategy, deciding when to use tools versus saving resources for more challenging situations.

Operation Guide

Basic Controls: - Click and Hold : Select any card on the game board - Drag : Move the selected card to your desired position - Release : Drop the card to complete the move - Tool Selection : Click on purchased tools to activate special abilities

Winning Strategy: 1. Always look for immediate merge opportunities 2. Plan 2-3 moves ahead when possible 3. Save bonus cash for critical moments 4. Create space by merging lower-value cards first 5. Use tools strategically, not impulsively

Why Play This Game

Perfect for Brain Training : This game excellently combines mathematical thinking with spatial reasoning, making it ideal for players who enjoy mental challenges. The merge mechanics exercise pattern recognition while the strategic elements develop planning skills.

Accessible Yet Challenging : Whether you're a casual player looking for quick entertainment or a puzzle enthusiast seeking deep strategy, Merge Solitaire adapts to your skill level. The learning curve is gentle, but mastery requires genuine skill development.

No Pressure Gaming : Unlike time-based puzzle games, Merge Solitaire allows thoughtful consideration of each move. This makes it perfect for stress relief and relaxing gameplay sessions.

Cross-Platform Convenience : Play seamlessly across all your devices - desktop computers, smartphones, and tablets all provide the same smooth gaming experience through any modern web browser.

Frequently Asked Questions (FAQ)