Dragon Mahjong

Seele01-Flash
By
Dragon Mahjong is a captivating online puzzle game that combines classic mahjong solitaire gameplay with an exciting dragon theme. Challenge your strategic thinking by finding matching tile pairs and clearing the entire board.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Dragon Mahjong**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast, oriental aesthetic. Use a color palette featuring deep reds, golds, and jade greens against a dark, ambient background (e.g., a blurred sunset or traditional dragon pattern) to ensure the tiles pop on small screens. * **Tile Models:** Create 3D rectangular tiles with slightly beveled edges to simulate ivory or bone material. Use a standard Mahjong aspect ratio (approx 3:4:2). * **Textures:** Use a texture atlas for the tile faces containing traditional suits (Bamboo, Dots, Characters, Winds, Dragons, Flowers, Seasons). The "Dragon" tiles should have glowing or distinct highlights. The backs of the tiles should be a uniform gold or jade color. * **Lighting & Effects:** Use a warm DirectionalLight to cast shadows (essential for depth perception of stacked layers) and an AmbientLight for base visibility. Implement a particle explosion effect (gold sparks or smoke) when a pair is successfully matched. * **Optimization:** Use `InstancedMesh` if possible for the tiles to maintain 60FPS on mobile devices, or ensure geometry is low-poly. ### 2. Audio Requirements * **BGM:** A loopable, serene, and atmospheric track featuring traditional Chinese instruments like the Guzheng (zither) or Dizi (flute). It should be relaxing, not distracting. * **SFX - Selection:** A subtle "wood tap" sound when a tile is selected. * **SFX - Match:** A satisfying "stone clack" or heavy collision sound followed by a magical chime when tiles are removed. * **SFX - Error:** A soft, dull thud if a player tries to select a blocked tile. * **SFX - UI:** Crisp paper-like sounds for menu interactions. ### 3. Gameplay Loop * **Setup:** Generate a 3D tile layout (classic "Turtle" or "Dragon" pyramid formation) where tiles are stacked in layers. * **Rules (Mahjong Solitaire):** 1. **Select:** Player taps a tile to select it (highlight it). 2. **Validity Check:** A tile is only selectable if it is "free" (it has no tile directly above it AND it has an empty space on either its immediate left or right side). 3. **Match:** If the player selects a second "free" tile that matches the first one (same face or same category for Flowers/Seasons), both tiles are removed. 4. **Win/Loss:** The game is won when all tiles are cleared. The game is lost if no valid moves remain (display a "No Moves - Shuffle?" prompt). * **Scoring:** Award points for matches, with bonus multipliers for speed or matching "Dragon" tiles. ### 4. Mobile Controls & Interaction * **Camera Control:** Implement customized `OrbitControls`. Allow single-finger drag to pan slightly, but limit the rotation angles so the player doesn't lose the top-down perspective. Enable two-finger pinch to zoom in/out for precision on small screens. * **Touch Interaction:** Use `Raycaster` for precise tile picking. Increase the hit-box area slightly for tiles to accommodate "fat finger" errors. * **Selection Feedback:** * **Visual:** When selected, the tile should lift slightly (y-axis tween) and glow. * **Haptic:** Trigger a light vibration (using `navigator.vibrate`) on successful selection and a stronger vibration on a match. * **UI Layout:** * Place the "Hint", "Shuffle", and "Pause" buttons at the bottom of the screen (thumb zone). * Score and Timer should be at the top, clearly visible but not obstructing the board. * Support both Portrait and Landscape modes, adjusting the camera FOV accordingly. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Dragon Mahjong is a thrilling online puzzle game that brings the timeless appeal of mahjong solitaire to your browser. With its mystical dragon theme and engaging tile-matching mechanics, this game offers hours of strategic entertainment for puzzle enthusiasts of all skill levels.

This classic mahjong solitaire variant challenges players to clear elaborate tile layouts by finding and matching identical pairs. The game features beautiful dragon-themed artwork and smooth gameplay that makes it perfect for both quick gaming sessions and extended puzzle-solving marathons.

Core Features

Classic Mahjong Solitaire Gameplay

Experience the authentic mahjong solitaire mechanics that have captivated players worldwide. The objective is simple yet challenging: find matching pairs of identical tiles and remove them from the board until all tiles are eliminated.

Strategic Tile Matching

Every move matters in Dragon Mahjong. You can only select tiles that are "free" - meaning they have at least one side completely open and are not covered by other tiles. This rule creates a puzzle element that requires careful planning and strategic thinking.

Dragon-Themed Visuals

Immerse yourself in a world of dragons with beautifully designed tiles featuring mystical dragon imagery, traditional Chinese symbols, and elegant artwork that enhances the gaming experience.

Multiple Difficulty Levels

Whether you're a beginner or a mahjong master, Dragon Mahjong offers various layouts and difficulty levels to match your skill level and provide appropriate challenges.

Free Browser Gaming

Enjoy completely free gameplay with no downloads required. The game runs smoothly in any modern web browser, making it accessible on desktop computers, laptops, and mobile devices.

Gameplay Mechanics

The core gameplay revolves around the classic mahjong solitaire rules:

  • Matching Pairs : Find two identical tiles to remove them from the board
  • Free Tiles Only : Only select tiles that have at least one side completely open
  • No Overlapping : Tiles covered by others cannot be selected
  • Strategic Planning : Think ahead to avoid creating unsolvable situations
  • Complete Clearance : The goal is to remove all tiles from the board

Operation Guide

Mouse Controls

  • Left Click : Select and match tiles
  • Mouse Movement : Navigate and highlight available tiles
  • Right Click : Deselect previously selected tiles

Keyboard Controls

  • Arrow Keys : Navigate between available tiles
  • Enter/Space : Select highlighted tiles
  • Escape : Deselect or return to menu

Game Tips

  • Always look for tiles that are blocking multiple other tiles
  • Start by removing tiles from the top and edges when possible
  • Plan several moves ahead to avoid getting stuck
  • Focus on freeing tiles that will open up more matching opportunities

Why Play Dragon Mahjong

Mental Exercise and Relaxation

Dragon Mahjong provides the perfect balance of mental stimulation and relaxation. The game exercises your pattern recognition, strategic planning, and concentration skills while offering a meditative gaming experience.

Accessibility and Convenience

With no download requirements and cross-platform browser compatibility, you can enjoy Dragon Mahjong anywhere, anytime. The game saves your progress automatically, allowing you to continue your puzzle-solving sessions across different devices.

Timeless Appeal

Mahjong solitaire has entertained players for decades, and Dragon Mahjong captures this timeless appeal with modern presentation and smooth gameplay mechanics.

Perfect for All Ages

With its all-ages content rating and intuitive gameplay, Dragon Mahjong is suitable for family gaming sessions and players of all experience levels.

Stress Relief and Focus

The game's calm atmosphere and engaging puzzle mechanics make it an excellent choice for stress relief and improving concentration skills.

Frequently Asked Questions (FAQ)