Sweet World - Match 3 Candy Puzzle Game

Seele01-Flash
By
Sweet World is a delightful match 3 puzzle game set in a magical candy land. Connect identical candies using strategic line-drawing mechanics to clear challenging levels and achieve high scores.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Sweet World (3D Candy Connect)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-gloss, vibrant "Jelly/Candy" aesthetic. The world should feel edible and cheerful. * **Camera:** Orthographic top-down view (fixed angle) to ensure the grid is perfectly flat and readable for puzzle solving, but with 3D models instead of 2D sprites. * **Models:** * **Candies:** Create procedural geometries for at least 4 distinct candy types: * *Yellow Triangle:* Soft, rounded triangle shape with a glossy finish. * *Green Square:* A "gummy bear" style square block with slight translucency. * *Blue Ring:* A donut/torus shape with high specular highlights. * *Orange Swirl:* A flower/swirl shape with white stripe textures. * **Background:** A dark purple/magenta gradient plane (like velvet) to make the bright candies pop. The border should feature a "candy cane" diagonal stripe pattern (pink and purple). * **Lighting:** Strong ambient light with a directional spotlight to create "sugar glaze" highlights on the candies. * **Particles:** When a match is made, spawn a small burst of "sugar dust" or star-shaped particles at the location of the two cleared tiles. * **Mobile Optimization:** Use low-poly counts for the candy shapes (subdivision modifiers in code should be moderate). Merge geometries where possible or use InstancedMesh for the grid of candies to maintain 60 FPS on mobile devices. ### 2. Audio Requirements * **BGM (Background Music):** A lighthearted, looping track using marimba, pizzicato strings, or celesta. It should feel "bouncy" and "sweet," similar to classic casual mobile puzzle games. * **SFX (Sound Effects):** * *Select:* A soft, high-pitched "pop" or "click" sound (like tapping a hard candy). * *Match Success:* A satisfying "ding" or generic magical chime. * *Invalid Move:* A low-pitched "wobble" or dull thud sound. * *Level Clear:* A short fanfare or applause sound. * *Line Draw:* A continuous "whoosh" sound pitch-shifting up as the line is drawn between tiles. ### 3. Gameplay Loop * **Core Mechanic (Onet/Connect-2 Style):** The player must find **two identical** candies. These two candies can only be matched if they can be connected by a line that turns no more than **two times** (i.e., consists of three or fewer straight line segments). The line cannot pass through other existing candies. * **Grid System:** Generate a 6x8 or 8x10 grid of random candies. Ensure the total number of tiles is even and solvable (pairs are generated). * **Win Condition:** Clear the entire board of candies. * **Lose Condition:** If no valid moves remain (Deadlock), shuffle the board automatically or end the game if a timer runs out (optional). * **Visual Feedback for Path:** When two valid tiles are selected, draw a glowing line (using `THREE.Line` or a trail mesh) showing the connecting path for 0.5 seconds before removing the tiles. ### 4. Mobile Controls & Interaction * **Touch Controls:** The game must rely entirely on tap interactions. * *First Tap:* Highlights the selected candy (scale up by 1.1x and increase emission/brightness). * *Second Tap:* * If tapping the *same* candy: Deselect it. * If tapping a *different* candy: Attempt to validate the path. If valid, match and clear; if invalid, shake the second candy slightly and deselect the first. * **Orientation:** Portrait mode preferred for one-handed mobile play, but the camera zoom should adapt if the browser is resized to Landscape. * **UI Layout:** * A top bar displaying "Score" and "Level". * A restart button in the bottom right corner, sized at least 44x44 pixels for easy tapping. * UI should be overlaid using HTML/CSS on top of the canvas, with `pointer-events: none` on the container and `pointer-events: auto` on the buttons. * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on a successful match (if supported by the device). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Sweet World is an enchanting match 3 puzzle game that transports players to a vibrant magical candy land filled with colorful confections. This brain-training puzzle game combines classic matching mechanics with innovative line-connection gameplay, creating a unique and engaging experience for puzzle enthusiasts of all ages.

The game features beautifully designed candy pieces in various shapes and colors, including triangular gummies, square jellies, swirl lollipops, and ring candies. Each level presents a grid of these delicious treats waiting to be matched and cleared through strategic thinking and careful planning.

Core Features

Unique Line-Connection Mechanics

Unlike traditional match 3 games, Sweet World uses an innovative connection system where players must find two identical candies that can be linked by three or fewer straight lines. This mechanic adds a layer of spatial reasoning and strategic depth to the classic matching formula.

Progressive Difficulty System

The game offers plenty of exciting and challenging puzzles that gradually increase in complexity. Starting with simple layouts, players will encounter more intricate arrangements that require advanced planning and problem-solving skills.

Vibrant Candy-Themed Graphics

Immerse yourself in a world of stunning visuals featuring glossy candy pieces, magical backgrounds, and smooth animations that make every match satisfying and visually appealing.

Brain Training Benefits

As a logic and intelligence game, Sweet World helps improve cognitive functions including: - Pattern recognition - Spatial reasoning - Strategic planning - Problem-solving skills - Memory enhancement

Gameplay Mechanics

The core objective is to identify pairs of identical candies and connect them with lines. When you successfully connect matching candies, they disappear from the board, opening up new possibilities for further matches. This cascading effect creates satisfying chain reactions and helps clear the entire level.

Each successful connection not only removes candies but also reveals new matching opportunities, requiring players to think several moves ahead. The challenge lies in finding the optimal sequence of matches to clear the board efficiently.

Operation Guide

The game features intuitive controls designed for both desktop and mobile play:

  • Click or Tap : Select candies to highlight potential matches
  • Drag : For movable objects, hold and drag with mouse or finger
  • Line Drawing : The game automatically draws connection lines when valid matches are found
  • Visual Feedback : Selected candies are highlighted to show possible connections

Tips for Success

  • Look for candies at the edges first, as they often have fewer connection options
  • Plan multiple moves ahead to create cascading effects
  • Focus on clearing blocked areas to reveal more matching opportunities
  • Take your time - there's no rush, so think strategically

Why Play Sweet World

Perfect for All Skill Levels

Whether you're a puzzle game novice or an experienced player, Sweet World offers an accessible yet challenging experience. The game starts with simple patterns and gradually introduces more complex arrangements.

Stress-Free Gaming

As a cozy game with no time pressure, Sweet World provides a relaxing environment where players can think at their own pace. The sweet candy theme and soothing gameplay make it perfect for unwinding after a long day.

Social Competition

Compare high scores with friends and family to add a competitive element to the experience. Share your progress and challenge others to beat your best performances.

Mobile-Friendly Design

Optimized for mobile devices, Sweet World can be enjoyed anywhere, anytime. The responsive design ensures smooth gameplay on phones, tablets, and computers alike.

Free to Play

Enjoy the complete Sweet World experience without any cost. Play directly in your browser with no downloads, installations, or hidden fees required.

Frequently Asked Questions (FAQ)