Candy Pop - Sweet Candy Matching Game

Seele01-Flash
By
Candy Pop is a delightful candy matching game featuring colorful sweets and addictive gameplay. Match groups of 2 or more adjacent candies to score points and beat your high score in this free online puzzle game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Candy Pop". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Vibrant, semi-realistic 3D cartoon style. The aesthetic should mimic "jelly" or "glossy hard candy". Use bright, saturated colors (Hot Pink, Lime Green, Bright Blue, Tangerine Orange). * **Candy Models:** Create 5 distinct 3D geometric primitives to represent different candies: * *Peppermint:* Red/White striped Sphere. * *Bubble Gum:* Pink smooth Sphere. * *Tangerine:* Orange Icosahedron. * *Chocolate:* Brown Cube or Torus. * *Mint:* Green Cylinder. * *Material:* Use `MeshStandardMaterial` with high `roughness: 0.2` and `metalness: 0.1` to achieve a shiny, sugary plastic/jelly look. * **Background:** A purple/lavender gradient skybox (referencing the screenshot). In the far distance, place a simple low-poly silhouette of a "Candy Castle" or cityscape using flat 2D planes or simple geometry, keeping the focus on the foreground grid. * **Particle Effects:** When candies match, generate a particle explosion (confetti or small sugar cubes) in the corresponding color. * **Mobile Optimization:** Use `InstancedMesh` for the candy grid to reduce draw calls. Limit particle count to 50 per explosion. ### 2. Audio Requirements * **BGM:** Fast-paced, cheerful "Arcade Synth-Pop" track. High tempo to match the "Instant" and "Action" tags. * **Sound Effects (SFX):** * *Match/Pop:* A satisfying, high-pitched bubble "pop" or cork sound. Pitch shift slightly higher for larger combos. * *Error:* A low-pitched dull thud if clicking a single candy (no match). * *Time Warning:* A ticking clock sound when the timer is under 10 seconds. * *Game Over:* A sliding whistle or "aww" sound followed by a cheerful chime for the score display. ### 3. Gameplay Loop * **Grid System:** Generate an 8x10 grid of candies. * **Core Mechanic (Collapse):** Unlike "Match-3", this is a "Click-Group" mechanic. * The player taps on a candy. * Algorithm checks for connected neighbors of the **same type** (Up, Down, Left, Right only—**NO Diagonals**). * **Condition:** If the group size is ≥ 2, the candies are destroyed. * **Gravity:** Remaining candies fall down to fill empty spaces. New random candies spawn above the top row and drop in. * **Scoring:** Score = `(Number of Candies in Group) * 10`. Display floating text for points gained. * **Time Attack Mode:** * Start with 60 seconds. * **Bonus:** Every successful match adds `+0.5` seconds to the timer (incentivizing speed). * **End Condition:** When Timer = 0, the game ends. Display "Current Score" and "Best Score". ### 4. Mobile Controls & Interaction * **Camera:** Use an **Orthographic Camera** to ensure the grid remains readable and flat, perfect for puzzle gameplay on varying screen sizes. * **Controls:** * **Tap/Touch:** Raycaster detection on `touchstart` (for responsiveness) rather than `click`. * **Interaction:** Instant reaction. No dragging or swapping. * **UI Layout (Portrait Mode Preferred):** * *Top Bar:* Timer (Progress Bar + Text) and Score. Keep UI elements large (min-height 44px) for touch accessibility. * *Play Area:* Centered grid with margins. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` (short tick) on a successful match. * **Visual:** When a group is tapped but before it disappears, briefly highlight/scale up the selected candies to confirm selection to the user. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Candy Pop is a vibrant and engaging candy matching game that brings sweet satisfaction to puzzle game enthusiasts. With its bright, colorful graphics and intuitive gameplay mechanics, this game offers endless entertainment for players of all ages. The game features a variety of delicious-looking candies including peppermint, bubble gum, tangerine, and chocolate pieces that create a visually appealing gaming experience.

Rated 4.2 out of 5 stars by players, Candy Pop combines simple mechanics with challenging gameplay that keeps you coming back for more. The game's cheerful design and smooth animations create an immersive candy-matching experience that's both relaxing and exciting.

Core Features

Colorful Candy Varieties

The game showcases a delightful assortment of candy types, each beautifully designed with vibrant colors and appealing textures. From refreshing peppermint swirls to chewy bubble gum pieces, every candy type adds visual charm to your matching experience.

Dynamic Scoring System

Earn higher scores by creating larger groups of matching candies. The more candies you match in a single move, the better your score multiplier becomes. This scoring system encourages strategic thinking and planning for maximum points.

Time Challenge Element

Race against the clock as you match candies to extend your playing time. Successfully matching groups of candies adds precious seconds to your timer, creating an exciting balance between speed and strategy.

Achievement Badges

Earn special badges that reflect your matching skills and achievements. Work your way up from bronze to the coveted gold badge by consistently improving your performance and beating your personal best scores.

Instant Accessibility

As an HTML5 game, Candy Pop loads instantly in your browser without any downloads or installations. Jump straight into the sweet matching action whenever you want a quick gaming break.

Game Mechanics

The core gameplay revolves around identifying and clicking groups of matching candies. Candies must be adjacent either horizontally or vertically - diagonal matches don't count. When you successfully match a group, those candies disappear and new ones fall from the top to fill the empty spaces, potentially creating new matching opportunities.

The game's physics system ensures smooth candy movements and satisfying visual feedback when matches are made. Each successful match not only adds to your score but also extends your playing time, allowing for longer and more rewarding gaming sessions.

Operation Guide

Basic Controls

  • Mouse Click : Select and match groups of 2 or more adjacent candies
  • Visual Scanning : Look for horizontal and vertical candy groupings
  • Strategic Planning : Identify larger groups for bonus points
  • Time Management : Monitor the timer and prioritize high-scoring moves

Winning Strategies

  1. Scan for Large Groups : Always look for groups of 4 or more candies first, as they provide the highest scores
  2. Plan Ahead : Consider how removing certain candies might create new matching opportunities
  3. Work from Bottom : Matching candies at the bottom of the screen often creates chain reactions
  4. Time Balance : Balance quick moves with strategic planning to maximize both score and time
  5. Pattern Recognition : Learn to quickly identify potential matches across the game board

Why Play Candy Pop

Candy Pop offers the perfect combination of casual gaming and mental stimulation. Its easy-to-learn mechanics make it accessible to beginners, while the challenge of achieving high scores and earning badges provides depth for experienced players. The game's bright, cheerful aesthetic creates a positive gaming atmosphere that's perfect for stress relief and mental breaks.

The instant-play nature means you can enjoy a quick game during short breaks or settle in for extended gaming sessions. With no downloads required and full mobile compatibility, Candy Pop is always ready when you need a sweet gaming escape.

Whether you're a puzzle game veteran or new to matching games, Candy Pop provides an engaging experience that combines visual appeal with satisfying gameplay mechanics. Challenge yourself to beat your high score and earn that gold badge!

Frequently Asked Questions (FAQ)