Cube Crash - Match 3 Block Puzzle Game

Seele01-Flash
By
Cube Crash is an addictive match 3 block puzzle game where you click groups of same-colored cubes to score points and advance through 12 increasingly challenging levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Cube Crash". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** create a vibrant, semi-glossy 3D interpretation of a classic tile-matching puzzle. The aesthetic should be "Candy-like" or "Toy-like." * **Core Assets (Cubes):** Use `THREE.BoxGeometry` or `RoundedBoxGeometry` (if available via generic setup, otherwise standard Box) for the game blocks. Use `MeshStandardMaterial` with a slight `roughness` (0.4) and `metalness` (0.1) to make them look like plastic. * **Colors:** Use a high-saturation palette for the cube types: Neon Green, Bright Orange, Deep Purple, Cyan, and Hot Pink. * **Environment:** A clean, dark slate or gradient background (2D canvas background or a far-away plane) to ensure the colorful blocks pop. * **Lighting:** A three-point lighting setup (Ambient light + Directional light + rim light) to create definition and shadows on the cubes. * **Effects:** When cubes are destroyed, generate simple particle explosions (small cubes or tetrahedrons) of the matching color that disperse and fade out. * **Camera:** Use an **Orthographic Camera** fixed at a slight angle (isometric-like) or straight-on top-down view to maintain the grid structure without perspective distortion, ensuring the grid fits perfectly within the mobile screen width. ### 2. Audio Requirements * **BGM:** A light, looping "Casual Puzzle" track—upbeat, synth-based, slightly bubbly, but not distracting. * **SFX - Select/Hover:** A subtle "click" or "tick" sound. * **SFX - Crash:** A satisfying "pop" or "glass break" sound when a cluster is destroyed. The pitch could rise slightly as the player chains combos. * **SFX - Victory/Fail:** A short cheerful chime for clearing a level, and a dull thud or "wah-wah" sound for failing. ### 3. Gameplay Loop * **Grid System:** Generate a grid (e.g., 10x12) of randomized colored cubes. * **Interaction Logic:** 1. **Input:** Player taps a cube. 2. **Check:** The system performs a flood-fill algorithm (DFS/BFS) to find all connected cubes of the same color. 3. **Condition:** If the connected count is **3 or more**, the move is valid. If less than 3, nothing happens (or a small "shake" animation indicates invalid move). 4. **Destruction:** Valid cubes are removed from the scene (trigger particle effect). 5. **Score:** Score = `(Number of Cubes)^2 * 10`. Display a floating text showing the points earned. * **Physics (Gravity):** After destruction, remaining cubes in the column must fall down to fill empty spaces. (Optional: If a column is completely empty, remaining columns slide to the center or left to close the gap). * **Level System:** The player has a target score (e.g., 1000 points) to reach within a limited number of moves or before the board runs out of matches. * **Game Over:** * **Win:** Target score reached. * **Loss:** No more valid moves (no groups of 3+) and target score not reached. ### 4. Mobile Controls & Interaction * **Touch Controls:** utilize `Raycaster` for touch detection. * **Tap:** Selects and destroys the block group immediately. * **Orientation:** Design primarily for **Portrait Mode** to suit the "Tetris-like" verticality of the grid, but ensure the canvas resizes dynamically for Landscape. * **UI Layout:** * Top of screen: Current Score, Target Score, Level Indicator. * Bottom of screen (Thumb zone): A "Restart" or "Shuffle" button (large hit area, minimum 44px height). * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` upon a successful crash. * **Visual:** When a valid group is tapped, highlight the selection briefly before destroying. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Cube Crash is a captivating match 3 puzzle game that combines strategy with simple clicking mechanics to create an endlessly entertaining experience. With a solid 3.6/5 rating from thousands of players, this colorful block-crushing game offers 12 levels of progressively challenging puzzle gameplay that will test your strategic thinking and pattern recognition skills.

In Cube Crash, your mission is straightforward yet engaging: click on groups of three or more connected cubes of the same color to make them disappear and earn points. Each level comes with specific score targets that you must reach to progress, making every move count as you plan your strategy to maximize your points.

Core Features

Strategic Match 3 Gameplay

Unlike traditional match 3 games, Cube Crash rewards strategic thinking over quick reflexes. You'll need to carefully plan your moves to create larger groups of matching cubes, as bigger groups yield exponentially more points. The game automatically highlights all connected cubes of the same color when you hover over them, making it easy to see potential matches.

Progressive Difficulty System

The game features 12 unique levels, each with its own scoring requirements and layout challenges. As you advance, the puzzles become more complex with matching blocks placed further apart, requiring more sophisticated strategies to achieve the minimum scores needed to progress.

Score-Based Progression

Each level has specific point thresholds you must reach to unlock the next challenge. Fail to meet the minimum score, and you'll need to retry the level with a fresh approach. This system ensures that players develop their skills gradually while maintaining an appropriate challenge level.

Leaderboard Competition

Once you complete all 12 levels, you can submit your total score to compete against other players worldwide. The global leaderboard system adds replay value as you strive to improve your strategies and climb the rankings.

Game Mechanics

Intuitive Click Controls

The game uses simple point-and-click mechanics that work perfectly across all devices. Simply click on any cube that's part of a group of three or more matching colors to eliminate them. The game provides instant visual feedback, showing you exactly how many points each potential move will earn.

Smart Selection System

When you hover over a cube, the game automatically highlights all connected cubes of the same color, eliminating guesswork and letting you focus on strategy rather than manual selection. A number appears next to your cursor showing the exact point value of each potential move.

Combo Opportunities

The real strategy lies in setting up chain reactions and creating opportunities for larger groups. As cubes fall and rearrange after each move, new matching opportunities emerge, allowing skilled players to plan several moves ahead.

Operation Guide

Basic Controls

  • Mouse/Touch : Click or tap on groups of matching colored cubes
  • Hover : Move your cursor over cubes to see potential matches highlighted
  • Point Preview : Watch the number next to your cursor to see point values before clicking

Winning Strategy Tips

  1. Plan Ahead : Look for moves that will create larger groups after cubes fall
  2. Prioritize Big Groups : Larger groups give disproportionately more points
  3. Work from Bottom : Removing cubes from lower positions often creates new opportunities above
  4. Study the Layout : Each level has unique patterns - learn them to optimize your approach

Level Progression

Each level displays your current score and the target score needed to advance. If you don't reach the minimum score, you can immediately retry the level with the same layout, allowing you to perfect your strategy.

Why Play Cube Crash

Cube Crash stands out in the crowded puzzle game market by combining the satisfaction of match 3 mechanics with strategic depth that keeps players engaged for hours. The game is completely free to play with no hidden costs or pay-to-win mechanics.

Perfect for All Skill Levels : The early levels teach basic mechanics while later levels challenge even experienced puzzle game veterans. The difficulty progression ensures that players of all skill levels can enjoy the game at their own pace.

Cross-Platform Compatibility : Built with HTML5 technology, Cube Crash runs smoothly on desktop computers, tablets, and smartphones without requiring any downloads or installations. Your progress saves automatically, letting you continue your game across different devices.

Replayability : With leaderboard competition and the challenge of beating your own high scores, Cube Crash offers virtually unlimited replay value. Each playthrough can reveal new strategies and approaches to familiar levels.

Brain Training Benefits : Regular play helps improve pattern recognition, strategic planning, and spatial reasoning skills while providing entertaining stress relief.

Frequently Asked Questions (FAQ)