Diamond Dungeon: Match 3

Seele01-Flash
By
Diamond Dungeon: Match 3 is an exciting arcade puzzle game where you match colorful crystals to conquer challenging levels. Features unique mechanics like gravity, teleporters, and magic spheres for endless puzzle-solving fun.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Diamond Dungeon: Match 3". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A mysterious, magical dungeon aesthetic. The background should be a dark, atmospheric cave (deep blues and purples) with a subtle fog effect to make the colorful gems pop. * **Gem Models:** Use low-poly 3D geometric primitives to represent different crystals: * Red Heart (Extruded shape or rough sphere) * Green Hexagon (Cylinder with 6 segments) * Blue Square (BoxGeometry) * Yellow Rectangle (BoxGeometry) * Purple Diamond (OctahedronGeometry) * **Material:** Use `MeshPhysicalMaterial` with high transmission and roughness 0 to simulate glass/gemstone refraction. Add a point light that follows the active interaction to create dynamic reflections. * **The Grid:** An 8x8 grid floating in the center. The background of the grid should be dark semi-transparent slots to indicate where gems sit. * **Effects:** * **Selection:** When a gem is tapped, it should pulse (scale up and down slightly) and emit a soft glow. * **Matching:** When gems match, use a particle system (PointsMaterial) to create an explosion of sparkles in the color of the matched gems before they vanish. * **God Rays:** (Optional) A subtle shader effect or textured plane behind the grid to simulate light shafts coming from the dungeon ceiling. ### 2. Audio Requirements * **BGM:** A looping, mystical orchestral track featuring harps and light percussion. It should be relaxing but engaging, suitable for a puzzle atmosphere. * **Sound Effects (SFX):** * **Select:** A crisp, high-pitched "ting" or glass tap. * **Swap:** A "whoosh" sound of stone sliding on stone. * **Match:** A magical chime or magical sparkle sound. * **Combo/Bonus:** A heavier, bass-boosted explosion sound for matching 4 or more. * **Invalid Move:** A dull "thud" or buzzer sound. ### 3. Gameplay Loop * **Grid Setup:** Initialize an 8x8 grid filled with random gems, ensuring no initial matches exist. * **Core Mechanic:** 1. **Swap:** Player selects one gem, then an adjacent one to swap positions. 2. **Match Check:** If the swap results in a line of 3 or more identical gems (horizontal or vertical), the gems are destroyed. 3. **Gravity:** Gems above the destroyed slots fall down (animate smoothly using linear interpolation or a tweening logic) to fill the empty space. 4. **Refill:** New random gems spawn at the top and drop in. 5. **Revert:** If a swap does *not* result in a match, the gems must swap back to their original positions (invalid move). * **Power-ups (Simplified):** * **Match 4:** Creates a glowing "Bomb Gem" that, when matched later, destroys a 3x3 area. * **Scoring:** +10 points per gem. Chain reactions (cascades) give double points. * **Level Logic:** The player has a "Moves" limit (e.g., 20 moves) to reach a target score. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** optimized. The camera should be fixed, looking slightly down at the grid to give a 3D perspective without obscuring the view. * **Touch Controls:** * Use `Raycaster` to detect touches on the 3D objects. * **Interaction Style:** Support **"Swipe to Swap"** (detect touch start on a gem and touch move direction) OR **"Tap-Tap"** (tap source, tap destination). * **Responsiveness:** Ensure 60FPS. Reuse geometries and materials (InstancedMesh is preferred for performance if possible, but standard Mesh is acceptable for an 8x8 grid). * **UI Layout:** * Top Area: Score counter and Moves Remaining (Large, readable font). * Center: The 3D Grid. * Bottom: A "Reset" or "Menu" button (min-height 44px for touch targets). * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on a successful match or explosion. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Diamond Dungeon: Match 3 is the ultimate arcade puzzle experience that challenges players to obliterate crystals and master increasingly difficult levels. This captivating match-3 game combines classic puzzle mechanics with innovative features, creating an engaging experience for puzzle enthusiasts of all skill levels. The game's stunning visual design showcases brilliant gems and crystals that sparkle across beautifully crafted game boards.

Core Features

Classic Match-3 Mechanics with a Twist

At its heart, Diamond Dungeon offers the beloved match-3 gameplay that millions love - simply match three or more identical crystals in a row to clear them from the board. However, the game elevates this classic formula with exciting bonus mechanics. When you combine four or more crystals, you'll create powerful bonus crystals with unique effects that can clear entire rows, columns, or create explosive chain reactions.

Revolutionary Puzzle Elements

What sets Diamond Dungeon apart from other match-3 games is its innovative obstacle and mechanic system:

  • Gravity System : Experience realistic crystal physics as gems fall and rearrange dynamically
  • Teleporters : Strategic portals that transport crystals across the board, opening new matching possibilities
  • Magic Spheres : Special power-ups that create spectacular clearing effects
  • Hidden Treasures : Discover secret bonuses and rewards as you progress
  • Dynamic Obstacles : Navigate through challenging barriers that test your puzzle-solving skills

Stunning Visual Experience

The game features gorgeous, high-quality graphics with sparkling gems and crystals that come to life on your screen. Each crystal type has its own distinct appearance and animation, making matches satisfying and visually rewarding. The captivating soundtrack perfectly complements the gameplay, creating an immersive puzzle adventure.

Regular Content Updates

Enjoy fresh challenges with regular level updates that introduce new puzzles, mechanics, and obstacles. This ensures that your Diamond Dungeon experience never gets stale, with new content to explore and master.

Gameplay Guide

Basic Controls

Playing Diamond Dungeon is intuitive and accessible: - Mouse Control : Use your left mouse button to select and swap adjacent crystals - Touch Support : On mobile devices, simply tap and drag crystals to create matches - Strategic Planning : Think ahead to create cascading matches and maximize your score

Winning Strategy Tips

  • Focus on creating matches at the bottom of the board to trigger gravity-based cascades
  • Look for opportunities to create four-or-more matches for powerful bonus crystals
  • Use teleporters strategically to access hard-to-reach areas
  • Plan your moves to work around obstacles rather than fighting them directly
  • Save magic spheres for crucial moments when you need to clear large sections

Why Play Diamond Dungeon: Match 3

This game is perfect for anyone seeking a challenging yet relaxing puzzle experience. Whether you're a casual player looking for a few minutes of entertainment or a dedicated puzzle solver wanting to master complex levels, Diamond Dungeon delivers. The game's accessibility makes it suitable for all ages, while its depth provides lasting appeal for serious puzzle enthusiasts.

The combination of classic match-3 gameplay with innovative mechanics creates a fresh take on the beloved genre. Plus, being completely free to play with cross-platform support means you can enjoy your puzzle adventure anywhere, anytime.

Frequently Asked Questions (FAQ)