Heroes of Match 3

Seele01-Flash
By
Heroes of Match 3 is an enchanting medieval puzzle adventure where players match colorful sweets to help King Donuttan the Third reclaim his throne. With thousands of levels, tournaments, and cross-platform gameplay.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Heroes of Match 3 - Sweet Medieval Adventure**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A "2.5D" aesthetic using 3D models with an Orthographic Camera to simulate a classic 2D puzzle board while adding depth. The style should be **"Whimsical Medieval Candy"**—vibrant, highly saturated colors (sky blues, bubblegum pinks, gold). * **Game Pieces (Candies):** Generate 5 distinct candy types using basic Three.js Geometries: * **The King's Donut:** A torus (pink with sprinkles texture if possible, or simple pink). * **Knight's Shield:** A flattened cylinder or hexagonal prism (blue). * **Magic Gem:** An Icosahedron (purple/shiny). * **Gold Coin/Orb:** A sphere with high shininess (yellow/gold). * **Heart/Jelly:** A heart shape or red capsule. * **Material:** Use `MeshPhysicalMaterial` with high `roughness: 0.2` and `clearcoat: 1.0` to make the candies look like glossy, hard sugar or jelly. * **Background:** A procedural gradient background (Deep Blue at the top fading to Soft Pink/White at the bottom) representing a dreamlike sky. Add simple low-poly cloud meshes floating slowly in the background behind the board. * **Performance:** Use `InstancedMesh` if possible for the grid items to optimize for mobile GPUs, or ensure geometry segments are kept low (e.g., SphereGeometry with 16 segments). ### 2. Audio Requirements * **BGM:** A looping track that blends **medieval instrumentation** (flutes, lutes, harps) with a **playful, uptempo rhythm**. It should feel heroic but cute, not serious. * **Sound Effects (SFX):** * *Select/Touch:* A soft "bloop" or high-pitched pizzicato string pluck. * *Swap:* A quick "whoosh" of air. * *Match Made:* A satisfying, crunchy "pop" or magical chime sound. * *Combo/Cascade:* An ascending harp scale. * *Invalid Move:* A low-pitched woodwind "thud" or spring wobble sound. ### 3. Gameplay Loop * **Grid Logic:** Create an 8x8 grid. Randomly populate it with the 5 candy types, ensuring no initial matches exist. * **Core Mechanic:** The player swaps two adjacent candies. * If a line of 3 or more identical candies (horizontal or vertical) is formed, they "match." * **Match Behavior:** Matched items shrink (scale to 0) and disappear. Items above fall down (gravity) to fill the empty spaces. New items spawn at the top. * If no match is made after a swap, the items must animate back to their original positions (invalid move). * **Scoring:** * Match 3: 100 points. * Match 4+: 300 points + visual particle explosion. * **Victory/Defeat:** * **Goal:** Reach 2000 points within 20 moves. * **UI:** Show a "Moves Left" counter and a "Score" bar. ### 4. Mobile Controls & Interaction * **Camera:** Use an `OrthographicCamera` fixed at a slight angle or straight on, ensuring the 8x8 grid fits perfectly within the width of a portrait mobile screen (Aspect Ratio awareness). * **Touch Interactions:** Implement Raycasting for touch events (`touchstart`, `touchmove`, `touchend`). * **Swipe Control:** Detect a swipe gesture (up, down, left, right) on a specific candy to trigger the swap. * **Tap Control (Alternative):** Tap one candy to select (highlight it with a glowing outline or bounce animation), then tap an adjacent neighbor to swap. * **Feedback:** * **Haptic:** If the device supports it (`navigator.vibrate`), trigger a short 50ms pulse on a successful match. * **Visual:** When a candy is selected, it should scale up slightly (1.2x) or pulse. * **UI Layout:** Use an HTML overlay for the UI (Score, Moves). Buttons must be large (min 44px height) and placed at the bottom or top of the screen to avoid obstructing the play area. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Heroes of Match 3 transports players into a whimsical medieval world filled with colorful sweets and charming characters. This delightful puzzle adventure combines classic match-3 mechanics with an engaging storyline where you help King Donuttan the Third reclaim his rightful throne. With its eye-catching 2D graphics and satisfying gameplay, this free-to-play puzzle game offers endless entertainment for players of all ages.

The game features thousands of challenging levels, each with unique objectives and exciting mechanics that keep the gameplay fresh and engaging. Whether you're a casual puzzle solver or a competitive player seeking tournament glory, Heroes of Match 3 delivers a comprehensive gaming experience that adapts to your preferred play style.

Core Features

Epic Medieval Adventure

Immerse yourself in a captivating storyline set in a magical kingdom where sweets hold the power to restore peace. Meet amusing characters and discover dramatic stories as you progress through beautifully crafted scenes that bring the medieval world to life.

Competitive Tournament System

Test your puzzle-solving skills against players worldwide in exciting tournaments and cups. Climb the leaderboards, achieve high scores, and earn amazing rewards that enhance your gaming experience. The competitive element adds an extra layer of excitement to the traditional match-3 formula.

Cross-Platform Progression

Enjoy seamless gameplay across all your devices with automatic progress saving. Start your adventure on your computer at home and continue on your mobile device during your commute - your progress follows you everywhere.

Thousands of Unique Levels

Explore an extensive collection of levels, each designed with specific objectives and challenges. From collecting items and breaking obstacles to achieving target scores, every level presents new puzzles to solve and keeps you engaged for hours.

Social Gaming Features

Connect with friends and challenge other players around the world. Help friends complete difficult levels, participate in group competitions, and share your achievements within the gaming community.

Game Mechanics

Match-3 Puzzle Gameplay

The core gameplay revolves around matching three or more identical sweets in rows or columns. Create powerful combinations by matching four or more items to generate special power-ups that can clear entire sections of the board.

Special Power-ups and Combos

Combine special sweets to create devastating effects that help you complete challenging objectives more efficiently. Strategic use of power-ups is key to mastering difficult levels and achieving high scores in tournaments.

Daily Challenges and Rewards

Complete daily tasks to earn bonus coins and special items. The game provides multiple ways to earn rewards without spending money, including bonus games, tournament prizes, and friend assistance.

Operation Guide

Basic Controls: - Mouse Click and Drag : Select and swap adjacent sweets to create matches - Strategic Planning : Analyze the board before making moves to create optimal combinations

Level Completion: 1. Identify Objectives : Each level displays specific goals such as collecting certain items or achieving target scores 2. Plan Your Moves : Study the board layout to identify potential matches and power-up opportunities 3. Create Combos : Match four or more sweets to generate special power-ups 4. Use Power-ups Strategically : Activate special sweets at the right moment to maximize their impact

Tournament Participation: - Join Competitions : Enter tournaments to compete against other players - Score High : Focus on creating large combinations and using power-ups effectively - Win Rewards : Earn exciting prizes based on your tournament performance

Why Play Heroes of Match 3

Completely Free Experience : Enjoy full access to all game features without mandatory payments. The game offers numerous ways to earn coins and bonuses through gameplay achievements, making it truly free-to-play.

Perfect for All Skill Levels : Whether you're new to match-3 games or a seasoned puzzle veteran, the progressive difficulty curve ensures an enjoyable experience. Start with simple levels and gradually face more complex challenges.

Endless Entertainment : With thousands of levels and regular updates, you'll never run out of new puzzles to solve. The combination of single-player progression and multiplayer tournaments provides varied gameplay experiences.

Relaxing Yet Challenging : The game strikes the perfect balance between relaxing puzzle-solving and competitive gameplay, making it ideal for both casual gaming sessions and intense tournament battles.

Frequently Asked Questions (FAQ)