Candy Blast - Match Puzzle Game

Seele01-Flash
By
Candy Blast is an addictive free online puzzle game where you connect matching colored candies in any direction. With fast-paced gameplay and colorful graphics, it's perfect for quick gaming sessions on any device.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Candy Blast". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Cute, vibrant 3D "Jelly" aesthetic. Use `Three.MeshPhysicalMaterial` with high transmission and shininess to create a gummy/candy texture. * **Character Models**: Create spherical or slightly flattened sphere geometries representing the "Candy Buddies". There should be 5 distinct colors: Red, Blue, Green, Yellow, Purple. Each candy must have a simple texture face (two eyes) mapped onto the front. * **Scene Background**: A dark teal/green solid color (hex #1a4a4a) similar to the screenshot to make the bright candies pop. Add a subtle particle system in the background (floating dust or bubbles) to add depth. * **Mobile Optimization**: Use `THREE.InstancedMesh` to render the candies to minimize draw calls. Ensure geometries are low-poly (e.g., SphereGeometry with low segments) to maintain 60FPS on mobile browsers. ### 2. Audio Requirements * **BGM**: Upbeat, fast-tempo "Kawaii Future Bass" or Arcade Pop style. The music speed should slightly increase as the board fills up. * **Sound Effects (SFX)**: * **Select**: A high-pitched "pop" or "bubble" sound when a player touches a candy. * **Connect**: A rising musical scale note for each subsequent candy added to the chain. * **Clear**: A satisfying "squish" and explosion sound when a chain is cleared. * **Game Over**: A descending "wobble" sound. ### 3. Gameplay Loop * **Physics Mechanics**: Implement 2D physics (using a library like Cannon.js or a simple custom gravity logic). Candies fall from the top of the screen and stack up. They should have a slight bounce upon collision. * **Connection Logic**: The player drags a finger/mouse to connect adjacent (vertical, horizontal, diagonal) candies of the same color. * **Scoring**: A valid chain requires at least 3 candies. * On release: The selected candies explode (particle effect), score is added, and remaining candies physically fall to fill gaps. * **Lose Condition**: New candies spawn automatically at an increasing rate. If the pile of candies reaches a defined "Danger Line" at the top of the screen and stays there for 3 seconds, trigger "Game Over". ### 4. Mobile Controls & Interaction * **Touch Interaction**: * **Touch Start**: Select the initial candy (Raycasting). Highlight it (scale up 1.2x and emit light). * **Touch Move**: Draw a visible, glowing white line trailing the finger. If the finger hovers over an adjacent same-colored candy, add it to the chain and snap the line to it. * **Touch End**: Execute the clear logic if the chain is valid (>2); otherwise, reset selection. * **Haptic Feedback**: Trigger `navigator.vibrate(10)` every time a new candy is successfully linked to the chain to provide tactile satisfaction. * **Orientation**: Lock to **Portrait Mode**. * **UI Layout**: Score display at the top left (large, bold font), Pause button top right (minimum 44x44px touch area). Ensure UI floats above the 3D canvas. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Candy Blast

Candy Blast is a vibrant and engaging puzzle game that puts a fresh twist on the classic match-3 genre. With a stellar rating of 4.3 out of 5 stars, this free online game challenges players to connect as many like-colored candy buddies as possible before time runs out. Unlike traditional matching games, Candy Blast offers unlimited directional connections, making every move count in this fast-paced puzzle adventure.

Core Features

Revolutionary Connection System

What sets Candy Blast apart is its innovative connection mechanics. You're not limited to simple horizontal, vertical, or diagonal lines. Instead, you can connect matching candies in any adjacent direction , allowing for creative chain combinations and higher scores.

Fast-Paced Gameplay

The game compensates for its flexible connection system with increased speed and an abundance of candy options. This creates an intense, adrenaline-pumping experience where quick thinking and faster reflexes are essential for success.

Universal Compatibility

  • Instant Play : No downloads required - start playing immediately
  • Cross-Platform : Perfect on mobile phones, tablets, and desktop computers
  • HTML5 Technology : Smooth performance across all modern browsers
  • Touch and Mouse Support : Optimized for both touch screens and mouse controls

Visual Appeal

Featuring bright, colorful candy characters with charming designs, the game creates an inviting atmosphere that appeals to players of all ages. The physics-based animations add satisfaction to every successful connection.

Game Mechanics

Connection Rules

The core gameplay revolves around connecting matching colored candies. Each candy buddy has a distinct color and expression, making them easy to identify during rapid gameplay. Successful connections clear the candies from the board and prevent overflow.

Speed Challenge

As you progress, the game increases in intensity. New candies appear more frequently, requiring faster decision-making and more efficient connection strategies. The key is maintaining a balance between speed and accuracy.

Queue Management

One of the most critical aspects is preventing the candy queue from overloading the arena. If too many candies accumulate without being connected, it's game over. This creates constant tension and excitement.

How to Play

Basic Controls

  • Mouse Users : Click and drag to draw lines through matching colored candies
  • Mobile Users : Use your finger to trace connections between same-colored candy buddies
  • Connection Path : Draw continuous lines through adjacent candies of the same color

Winning Strategy

  1. Plan Ahead : Look for longer connection opportunities before making moves
  2. Prioritize Speed : Don't overthink - trust your instincts for quick matches
  3. Monitor the Queue : Keep an eye on incoming candies to prevent overflow
  4. Use All Directions : Take advantage of the flexible connection system
  5. Stay Calm : Maintain focus even as the pace increases

Why Play Candy Blast

Perfect for Any Schedule

Whether you have 2 minutes or 20 minutes, Candy Blast adapts to your available time. The instant-play format means you can jump in and out of games without commitment.

Brain Training Benefits

  • Pattern Recognition : Improves visual processing skills
  • Quick Decision Making : Enhances cognitive response time
  • Hand-Eye Coordination : Develops precise motor skills
  • Stress Relief : Provides engaging distraction from daily pressures

Social and Competitive Elements

While primarily a single-player experience, the game's scoring system encourages personal improvement and friendly competition. Try to beat your previous high scores or challenge friends to match your achievements.

Accessibility

With its simple controls and clear visual design, Candy Blast is accessible to players of all skill levels. The learning curve is gentle, but mastery requires practice and strategy development.

Frequently Asked Questions (FAQ)