Skydom - Match 3 Puzzle Game

Seele01-Flash
By
Skydom is an innovative match-3 puzzle game that combines classic gem-matching gameplay with competitive multiplayer challenges. Progress through levels, create powerful special gemstones, and compete against other players in this engaging puzzle adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Skydom: Sky Puzzle Duel". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-saturation, "Juicy" cartoon aesthetic suitable for a casual audience. Use a 2.5D perspective where the game board floats in the center of the screen. * **3D Models (Gems/Pieces):** Instead of complex sprites, use low-poly 3D geometric shapes (Icosahedron, Dodecahedron, Cube, Sphere) to represent candies/gems. * **Materials:** Use `MeshPhysicalMaterial` with high transmission and roughness close to 0 to simulate a glassy, candy-like texture. * **Colors:** Vibrant palette (Ruby Red, Sapphire Blue, Emerald Green, Topaz Yellow, Amethyst Purple). * **Background:** A dynamic "Sky Kingdom" shader or skybox featuring fluffy white clouds drifting slowly across a gradient blue/cyan background. * **Particle Effects:** Implementation of a lightweight particle system for: * **Explosions:** White rings and colored sparks when gems are matched. * **Selection:** A glowing halo or bouncing animation around the currently selected piece. * **Optimization:** Use `InstancedMesh` for the gems to maintain 60 FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A whimsical, orchestral loop featuring pizzicato strings, flutes, and light percussion (upbeat and magical). * **Sound Effects (SFX):** * **Swap:** A quick "whoosh" air sound. * **Match:** A satisfying, high-pitched "pop" or crystal crunch. * **Combo/Special:** A rising magical chime or glissando. * **Win/Loss:** A short triumphal brass fanfare vs. a descending slide whistle. * *Note: Use a placeholder synth or generated audio if external files are not available.* ### 3. Gameplay Loop * **Grid System:** Generate an 8x8 grid. Fill it randomly with 5-6 types of gems, ensuring no initial matches exist. * **Core Mechanic:** The player swaps adjacent gems to create horizontal or vertical lines of 3 or more. * **PvP Simulation (Bot Duel):** Since the game features "competition," implement a split-screen or UI bar tracking a "Simulated Opponent." The opponent gains score automatically every few seconds. The player must clear specific objectives (e.g., "Collect 20 Red Gems") before the opponent's progress bar fills up. * **Special Gems:** * Match 4: Creates a "Line Breaker" (visualized as a glowing striped gem). * Match 5: Creates a "Rainbow Bomb" (clears all gems of a specific color). * **Gravity:** When matches occur, destroy the mesh, play particle effect, and have gems above fall down (with a bounce easing function: `elasticOut`). Spawn new gems at the top. ### 4. Mobile Controls & Interaction * **Touch Controls:** Implement a Raycaster-based touch system. * **Action:** Tap to select -> Tap adjacent to swap OR Swipe gesture logic (detect `touchstart` and `touchend` delta to determine swipe direction). * **Responsiveness:** Prevent default browser scrolling (`e.preventDefault()`) on the canvas to ensure gestures only affect the game. * **UI/HUD:** * Place the Score, Moves Left, and Objective counter at the top of the screen (portrait mode optimized). * Buttons (Pause, Settings) must be at least 44x44 pixels for hit-testing. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` on a successful match. * **Visual:** If a player tries an invalid swap, the gems should move slightly and snap back (shake animation). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Skydom is a captivating match-3 puzzle game that elevates the traditional gem-matching experience with unique competitive elements and progressive gameplay mechanics. Unlike typical match-3 games, Skydom challenges players to compete against opponents every second level, creating an exciting blend of puzzle-solving and competitive gaming.

The game features vibrant, colorful graphics with charming character design and smooth animations that make each match satisfying and visually appealing. With its classical map progression system and modern gameplay features, Skydom offers both familiar comfort and fresh challenges for puzzle game enthusiasts.

Core Features

Competitive Multiplayer Elements

What sets Skydom apart is its unique competitive system . Every second level presents a challenge against another player, adding tension and excitement to the traditional match-3 format. This competitive aspect keeps players engaged and motivated as they progress through the game.

Special Gemstone Creation

Match 3 or more gems of the same color to clear them from the board. Creating combinations of 4, 5, or more gems generates powerful special pieces with fantastic effects that can clear entire rows, columns, or areas of the board. These special gemstones are essential for completing challenging objectives and defeating opponents.

Progressive Unlocking System

As you advance through Skydom's colorful world, you'll unlock exciting new features: - The Alchemist : Unlocked after earning 1,000 coins, this master of elements brews unique bonus pieces - Daily Challenges : Available after completing 10 levels, offering additional earning opportunities - New Lands : Discover fresh environments as you progress along the Skydom path

Dual Currency System

Skydom features coins and diamonds as its main currencies, allowing players to purchase boosters, power-ups, and other helpful items to overcome difficult levels and enhance their competitive edge.

Game Mechanics

Level Objectives

Each level in Skydom comes with specific objectives, typically involving: - Clearing a certain number of particular objects - Collecting specific gemstones - Achieving target scores within move limits - Competing against online opponents

Customizable Experience

Skydom provides helpful hints throughout gameplay, but experienced players can disable these in the options menu for increased challenge. The settings also allow language customization and other gameplay preferences.

Operation Guide

Basic Controls: - Mouse : Drag or use left mouse button to switch adjacent pieces - Touch : On mobile devices, simply drag gems to swap positions

Gameplay Strategy: 1. Plan Your Moves : Look for opportunities to create special gemstones by matching 4+ pieces 2. Use Special Pieces Wisely : Save powerful combinations for challenging objectives 3. Focus on Objectives : Always prioritize level-specific goals over high scores 4. Manage Currency : Spend coins and diamonds strategically on boosters when needed

Why Play Skydom

Perfect for Puzzle Lovers : Combines the satisfaction of traditional match-3 gameplay with modern competitive elements

Free to Play : Enjoy the complete gaming experience without any upfront costs

Cross-Platform : Available on both desktop and mobile devices for gaming anywhere

Competitive Edge : Unique multiplayer challenges set it apart from other match-3 games

Progressive Rewards : Unlocking new features and areas provides long-term motivation

Casual Yet Engaging : Easy to learn but challenging to master, perfect for quick sessions or extended play

Whether you're a seasoned match-3 veteran or new to puzzle games, Skydom offers an engaging experience that balances relaxation with competition, making every level completion feel rewarding and every opponent victory satisfying.

Frequently Asked Questions (FAQ)