Mahjong Quest - Free Online Mahjong Game with Power-ups

Seele01-Flash
By
Mahjong Quest revolutionizes classic mahjong with an exciting campaign mode, power-up system, and coin rewards. Earn coins to buy Lucky Charms, Reshufflers, and other strategic items in this free online puzzle game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mahjong Quest". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Casual, bright, and "Zen" inspired. Use a soft, grassy green background (Hex: #7CAA2D) to mimic the game screenshot's aesthetic. * **3D Models:** * **Tiles:** Create 3D Mahjong tiles using `THREE.BoxGeometry`. They should have a white top face (for the symbol) and an amber/bone-colored backing. Use rounded beveled edges for a polished look. * **Performance Optimization:** Critical for mobile. Use **`THREE.InstancedMesh`** to render the 144 tiles to reduce draw calls. * **Table:** A wooden textured surface (plane) floating in the void or sitting on a stylized grass floor. * **Visual Effects:** * **Selection:** When a tile is tapped, it should tween slightly upwards (y-axis) and glow. * **Match:** When a pair is matched, spawn a particle explosion (gold sparkles or green leaves) before the tiles vanish. * **Lighting:** Soft AmbientLight combined with a DirectionalLight casting soft shadows to give the stacked tiles depth perception. ### 2. Audio Requirements * **BGM:** A relaxing, looping track featuring traditional Asian instruments (Guzheng, Bamboo Flute) with a modern, upbeat tempo to fit the "Quest" theme. * **Sound Effects (SFX):** * **Tap:** A solid "clack" sound (wood on stone). * **Match:** A satisfying melodic chime (pentatonic scale). * **Shuffle Power-up:** The sound of tiles rattling together. * **Coin Earn:** A metallic "cha-ching" sound when a level ends quickly. * **UI Click:** Soft wooden percussion sounds. ### 3. Gameplay Loop * **Core Mechanic:** Standard Mahjong Solitaire rules. Players can only select "free" tiles (tiles with no piece on top and free on at least one side: left or right). * **Economy & Scoring:** * Implement a **Countdown Timer**. The faster the player clears the board, the more "Coins" they earn at the end. * Coins are stored in `localStorage`. * **Power-Up System (The "Quest" Element):** * **Undo:** Reverses the last move (costs coins). * **Hint (Magnifying Glass):** Highlights a free matching pair for 3 seconds (costs coins). * **Reshuffler:** Rearranges all remaining tiles on the board when no moves are available (costs coins). * **Win/Loss:** * **Win:** Board is empty. Display "Level Complete" + Coin calculation. * **Loss:** No moves left and player has no coins for a Shuffle. ### 4. Mobile Controls & Interaction * **Touch Controls:** Use `THREE.Raycaster` mapped to standard Touch Events (`touchstart`). Logic needs to differentiate between a "tap" and a "swipe" (ignore swipes to prevent accidental selections while scrolling). * **Camera:** * **PerspectiveCamera** set to a fixed angle (approx 45-60 degrees) looking down at the board. * Support **Pinch-to-Zoom** and **Two-finger Pan** so players on small screens can see details. * **UI Layout:** * **Orientation:** Landscape mode preferred, but responsive to Portrait (scale board to fit width). * **HUD:** Place Power-up icons (Undo, Hint, Shuffle) at the bottom right, large enough for thumb interaction (min 44px touch target). * **Feedback:** Trigger `navigator.vibrate(20)` (Haptic Feedback) on successful tile selection and matching. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mahjong Quest is a revolutionary take on the beloved mahjong solitaire game that elevates the classic tile-matching experience to new heights. With an impressive 4.3/5 rating, this free online puzzle game combines traditional mahjong gameplay with modern RPG elements, creating an addictive and strategic gaming experience.

Unlike traditional mahjong games, Mahjong Quest introduces a comprehensive campaign mode where players can earn coins, unlock power-ups, and strategically use special items to overcome increasingly challenging levels. This isn't just about matching tiles anymore – it's about planning, strategy, and making smart purchases to enhance your gameplay.

Core Features

Revolutionary Power-up System

Mahjong Quest transforms the classic formula with an innovative item system:

  • Lucky Charm : Increases your chances of finding matching tiles
  • Reshuffler : Reorganizes tiles when you're stuck in difficult positions
  • Magnifying Glass : Helps identify available matches more easily
  • Undo Button : Allows you to reverse moves and try different strategies

Coin Economy and Progression

Earn coins based on your performance – the faster you complete levels, the more you earn. This dynamic reward system encourages skillful play while providing currency for strategic purchases.

Campaign Mode Adventure

Experience mahjong like never before with a structured campaign that progressively increases in difficulty. Each level presents unique challenges that will test even experienced mahjong players.

Cross-Platform Accessibility

  • Complete Free Play : No hidden costs or premium subscriptions
  • Browser-Based : Play instantly without downloads or installations
  • Multi-Device Support : Perfect compatibility with desktop computers, tablets, and smartphones
  • HTML5 Technology : Smooth performance across all modern web browsers

Game Playthrough

Strategic Tile Matching

The core gameplay revolves around the classic mahjong solitaire mechanics – match identical tiles to clear the board. However, Mahjong Quest adds layers of strategy through its item system and coin economy.

Level Progression

Start with simpler layouts and gradually face more complex tile arrangements. As difficulty increases, strategic use of power-ups becomes essential for success.

Resource Management

Balance your coin spending wisely. Each power-up costs money and disappears after use, making every purchase decision crucial to your long-term success.

Operation Guide

Basic Controls

  • Desktop : Use your mouse to click and drag tiles
  • Mobile : Tap tiles directly with your finger
  • Tablet : Touch interface optimized for larger screens

Gameplay Mechanics

  1. Identify Matching Tiles : Look for identical mahjong tiles that can be matched
  2. Check Availability : Only free tiles (not blocked by others) can be selected
  3. Strategic Planning : Consider using power-ups when facing difficult situations
  4. Coin Management : Spend earned coins wisely on helpful items
  5. Level Completion : Clear all tiles to complete each level and earn rewards

Power-up Usage Tips

  • Use the Magnifying Glass when you can't find obvious matches
  • Save the Reshuffler for seemingly impossible situations
  • The Undo Button is perfect for testing different strategies
  • Lucky Charms work best on levels with many similar tiles

Why Play Mahjong Quest

Perfect for All Skill Levels

Whether you're new to mahjong or a seasoned player, Mahjong Quest offers: - Easy Learning Curve : Intuitive controls and clear visual feedback - Progressive Difficulty : Start simple and gradually face greater challenges - Strategic Depth : Power-ups add tactical elements beyond basic tile matching - Endless Replayability : Campaign mode provides hours of engaging content

Mental Benefits

Mahjong Quest serves as an excellent brain training exercise: - Pattern Recognition : Improve your ability to identify matching elements - Strategic Thinking : Plan ahead and manage resources effectively - Memory Enhancement : Remember tile positions and available matches - Stress Relief : Enjoy relaxing puzzle-solving sessions

Convenience and Accessibility

  • No Download Required : Start playing immediately in your web browser
  • Free Forever : Complete game experience without any payment requirements
  • Save Progress : Your campaign progress is automatically saved
  • Quick Sessions : Perfect for short breaks or extended gaming sessions

Frequently Asked Questions (FAQ)