Merge It - Number Matching Puzzle Game

Seele01-Flash
By
Merge It is a delightful number matching puzzle game where players combine identical blocks to reach target numbers. With 10 levels of increasing difficulty and a charming candy-themed design, it's perfect for puzzle lovers of all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Merge It - 3D Candy Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Kawaii" (Cute) Low-poly aesthetic with a pastel color palette (pinks, cyans, soft yellows). * **Main Elements (The Grid):** A 5x6 grid containing 3D "Jelly Blocks." These should be rounded cubes (ChamferBox geometry) that look squishy. Each number (1, 2, 3, etc.) has a distinct vibrant color and a visible number texture on the front face. * **Background:** A static or slowly scrolling 3D environment behind the grid featuring low-poly candy assets (lollipops, ice cream cones, clouds). * **Effects:** * **Merge Effect:** When blocks combine, play a particle explosion (confetti) and a "squash and stretch" scaling animation on the target block. * **Falling:** Smooth interpolation (lerp) when blocks drop down to fill empty spaces. * **Mobile Optimization:** Use `InstancedMesh` for the blocks to reduce draw calls. Use simple Lambert or Toon materials to ensure 60FPS on mobile devices. Avoid heavy post-processing. ### 2. Audio Requirements * **BGM:** A lighthearted, looping track featuring marimbas, pizzicato strings, and soft synth bells. Tempo: 100-110 BPM. * **Sound Effects (SFX):** * **Tap/Select:** A soft "bubble pop" sound. * **Merge Success:** A rising major-chord arpeggio or a "magical chime." * **Blocks Falling:** A quick "whoosh" or "slide" sound. * **Level Win:** A triumphant fanfare. * **Time Warning:** A ticking clock sound when the timer is under 10 seconds. ### 3. Gameplay Loop * **Core Mechanic (Tap-to-Merge):** 1. The grid is filled with random numbers (ranges based on current level difficulty). 2. **Input:** The player taps a block. 3. **Logic:** The system checks connected neighbors (up, down, left, right) for the *same* number. 4. **Merge:** If at least 2 blocks are connected (including the clicked one), all connected blocks merge *into* the clicked block's position. 5. **Upgrade:** The clicked block increases its value by 1 (e.g., three '2's become one '3'). 6. **Gravity:** Blocks above the cleared spaces fall down. New random blocks spawn at the top to fill the grid. * **Goal:** Create a specific target number (e.g., "Create a 7") shown in the UI. * **Win Condition:** Reach the target number before the timer runs out. Proceed to the next level (1-10). * **Lose Condition:** Timer reaches 0. Show a "Retry" button. ### 4. Mobile Controls & Interaction * **Camera:** Fixed Perspective Camera, slightly angled down to view the 3D depth of the blocks. * **Orientation:** **Portrait Mode** strictly. The grid should occupy the center-bottom 70% of the screen for thumb accessibility. * **Touch Controls:** * Use `Raycaster` mapped to `touchstart` events for instant response (no click delay). * Prevent default browser zooming/scrolling behavior on the canvas (`touch-action: none`). * **UI Layout (HUD):** * **Top Bar:** Display "Level", "Score", "Timer" (prominent countdown), and "Target Block" (visual icon of the number needed). * **Feedback:** When a merge happens, float a text label ("+100") up from the merge location. * **Buttons:** All UI buttons (Start, Retry, Next Level) must have a minimum hit area of 44x44px and visually depress when touched. 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 It is an engaging online puzzle game that combines simple mechanics with addictive gameplay. Set against a vibrant candy-themed background featuring sweets, ice cream, and colorful treats, this game challenges players to strategically merge numbered blocks to achieve specific goals. With a stellar rating of 4.58/5, Merge It has captured the hearts of puzzle enthusiasts worldwide.

The game features a clean, intuitive interface with a helpful side panel displaying your current level, score, remaining time, and target goal. Each level presents a unique challenge that tests your strategic thinking and planning skills.

Core Features

Intuitive Number Merging Mechanics

The core gameplay revolves around combining identical numbers to create higher values. When you merge two blocks with the same number, they transform into a single block with the next sequential number. This simple yet engaging mechanic creates endless strategic possibilities.

10 Challenging Levels

Merge It offers 10 carefully designed levels, each with increasing difficulty and unique objectives. As you progress, the puzzles become more complex, requiring careful planning and strategic thinking to achieve your goals within the time limit.

Vibrant Candy Theme

The game's cheerful aesthetic features a delightful candy shop setting with colorful sweets, ice cream, and treats creating an inviting atmosphere that makes puzzle-solving even more enjoyable.

Cross-Platform Compatibility

Built with HTML5 technology, Merge It runs smoothly on all modern devices including desktop computers, tablets, and smartphones. No downloads required - simply open your browser and start playing.

High Score System

Compete with other players worldwide through the integrated high score system. Complete all 10 levels and see how your puzzle-solving skills rank against the global community.

Gameplay Instructions

Basic Controls

Playing Merge It is straightforward - simply click on any numbered block that's connected horizontally or vertically to another block with the same number. The connection system allows for chain merges, where multiple connected blocks of the same number will all merge simultaneously.

Strategic Merging

The key to success lies in understanding the merging mechanics. Regardless of how many identical blocks are connected, they will always merge into a single block with the next number in sequence. For example, connecting three "3" blocks will create one "4" block, not three "4" blocks.

Goal Achievement

Each level has a specific target number you must reach within the given time limit. Plan your moves carefully to create the required number before time runs out. New blocks automatically fill empty spaces after each merge, creating new opportunities and challenges.

Time Management

Keep an eye on the timer displayed in the right panel. Efficient merging and quick decision-making are essential for completing levels within the time constraint.

Why Play Merge It

Merge It stands out in the crowded puzzle game market by offering:

  • Accessibility : Easy to learn but challenging to master, suitable for players of all skill levels
  • No Cost : Completely free to play with no hidden fees or premium content
  • Brain Training : Excellent for improving logical thinking and strategic planning skills
  • Stress Relief : The colorful, cheerful theme provides a relaxing gaming experience
  • Quick Sessions : Perfect for short breaks or extended puzzle-solving sessions
  • Device Flexibility : Play anywhere, anytime on your preferred device

Whether you're a casual gamer looking for a fun distraction or a puzzle enthusiast seeking a new challenge, Merge It delivers an engaging experience that keeps you coming back for more.

Frequently Asked Questions (FAQ)