Candy Connect - Sweet Tile Matching Puzzle Game

Seele01-Flash
By
Candy Connect is a delightful tile-matching puzzle game featuring colorful candies and relaxing gameplay. With 24 progressively challenging levels and beautiful pastel graphics, it's perfect for players of all ages seeking a sweet puzzle experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Candy Connect**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Kawaii" (cute) aesthetic using a soft pastel color palette (baby pink, mint green, creamy yellow, sky blue). The overall look should be glossy and smooth, mimicking hard candies and jelly textures. * **Grid & Tiles:** * Use `THREE.InstancedMesh` for performance to render the tile grid (starting at 6x10, scaling up for higher levels). * Tile Geometry: Rounded cubes (chamfered box) to represent candies. * Textures: Procedurally generate or map textures representing different candy types: Swirls, Wrappers, Jellybeans, Hearts, and Stars. * Material: `MeshPhysicalMaterial` with high transmission or roughness/metalness settings that look like glossy sugar or glass. * **Background:** A static, non-distracting background with a subtle repeating pattern (e.g., faint diagonal stripes or polka dots) in a very light pastel shade to ensure high contrast with the game pieces. * **Visual Effects:** * **Connection Line:** When a match is made, draw a glowing, thick line (using `Line2` or a cylinder mesh) that follows the path to visualize the link. * **Particle System:** Simple particle explosion (confetti or sugar crumbs) when tiles disappear. ### 2. Audio Requirements * **BGM:** A relaxing, looping track featuring "cute" instrumentation (Marimba, Kalimba, or soft Synth-pop). It should be upbeat but low-energy to prevent player fatigue. * **SFX:** * **Select:** A soft "pop" or bubble sound. * **Match:** A satisfying "ding" or glass clinking sound. * **Bonus Match (Exact Pattern):** A higher-pitched, magical chime. * **Invalid Move:** A gentle low-tone "wobble" sound. * **Level Clear:** A short, celebratory fanfare. ### 3. Gameplay Loop * **Core Mechanic:** A "Connect-2" (Onet/Mahjong Connect) puzzle. * The player selects two tiles. * **Validation Algorithm:** The path between tiles must not be blocked by other tiles and cannot contain more than **two** 90-degree turns (maximum 3 linear segments). * **Matching Logic (Unique Feature):** * **Standard Match:** Tiles of the **same color** (even if shapes differ) can be matched. * **Perfect Match:** Tiles that share the **same color AND same shape**. * **Scoring:** * Standard Match: +100 points. * Perfect Match: +200 points (Bonus). * **Progression:** Implement a level system (start with Level 1). As the level increases, the grid size expands (e.g., from 6x6 to 8x10). * **Hint System:** If the player is idle for 10 seconds, automatically highlight a valid pair with a pulsing animation. * **Win Condition:** Clear all tiles from the board. * **Shuffle Mechanism:** If no valid moves remain, the remaining tiles must automatically shuffle. ### 4. Mobile Controls & Interaction * **Camera:** Use an **Orthographic Camera** tailored for portrait mode to maximize board visibility on mobile screens. * **Touch Controls:** * Implement `Raycaster` logic compatible with `touchstart` and `touchend` events. * **Selection State:** When a tile is tapped, it should scale up slightly (1.1x) and glow to indicate selection. * **Deselection:** Tapping the same tile again or tapping an invalid target deselects the current tile. * **UI Layout:** * **Top Bar:** Current Score, Level Indicator, and Time Remaining. * **Bottom Right:** A "Pause/Menu" button (min size 44x44px for touch accessibility). * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(20)`) on successful matches if the device supports it. 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 Connect is a charming tile-matching puzzle game that combines sweet candy themes with engaging connect-style gameplay. Rated 3.7 out of 5 stars by players, this delightful puzzle experience offers hours of relaxing entertainment with its soft pastel colors and adorable candy designs.

The game features a soothing soundtrack that perfectly complements the casual atmosphere, making it an ideal choice for stress-free gaming sessions. Whether you're looking for a quick brain teaser or a longer puzzle challenge, Candy Connect delivers the perfect balance of fun and mental stimulation.

Core Features

Sweet Visual Design

Candy Connect enchants players with its beautiful pastel color palette and cute candy graphics. The soft, eye-pleasing visuals create a relaxing gaming environment that's easy on the eyes during extended play sessions.

Progressive Difficulty System

With 24 carefully crafted levels , the game starts easy and gradually increases in complexity. Each level introduces larger layouts and more challenging tile arrangements, ensuring players stay engaged as they progress through the sweet adventure.

Relaxing Audio Experience

The game features calming background music that enhances the casual gaming atmosphere. Players can easily toggle the music on or off through the convenient in-game menu.

Instant Play Technology

Built with HTML5 technology, Candy Connect loads instantly in your browser without any downloads or installations required. The game runs smoothly on both desktop computers and mobile devices.

Score Competition

Complete all levels and submit your score to compete with other players worldwide. Challenge yourself to achieve the highest possible score and see how you rank against the global community.

Game Mechanics

Tile Matching Rules

In Candy Connect, your objective is to match two identical candy tiles that can be connected by a straight line with no more than two 90-degree turns. This creates an engaging puzzle dynamic that requires both pattern recognition and strategic thinking.

Scoring System

  • Basic matches : Connect tiles of the same color for standard points
  • Perfect matches : Earn bonus points by matching tiles with identical patterns and colors
  • Speed bonus : Complete levels quickly for additional score multipliers

Hint System

When you're stuck, the game's intelligent hint system automatically highlights available matching pairs, ensuring you never get completely blocked from progressing.

Operation Guide

Basic Controls

  • Mouse/Touch : Click or tap on candy tiles to select them
  • Matching : Select two matching tiles that can be connected with a valid path
  • Menu Access : Use the menu button in the lower-right corner during gameplay
  • Pause Function : Pause the game anytime through the game menu
  • Audio Control : Toggle background music on/off via game settings

Gameplay Strategy

  • Start by identifying obvious matches to clear space on the board
  • Look for tiles on the edges first, as they're easier to connect
  • Plan ahead to avoid blocking potential future matches
  • Use the hint system when needed, but try to solve puzzles independently for better scores

Platform Compatibility

Candy Connect works perfectly on: - Desktop browsers : Chrome, Firefox, Safari, Edge - Mobile devices : iOS and Android phones and tablets - Tablets : iPad and Android tablets for larger screen enjoyment

Why Play Candy Connect

This delightful puzzle game offers the perfect combination of mental stimulation and relaxation . Unlike high-pressure action games, Candy Connect allows you to play at your own pace while still providing satisfying challenges.

The game is completely free to play with no hidden costs or premium features locked behind paywalls. Every level, feature, and game mode is available from the start, making it accessible to all players.

Family-friendly entertainment makes Candy Connect suitable for players of all ages. Parents can enjoy playing alongside their children, making it a perfect choice for family game time.

The replayability factor is high - once you complete all 24 levels, you can replay them to improve your scores or simply enjoy the relaxing gameplay experience again.

Frequently Asked Questions (FAQ)