Mahjong Magic Islands

Seele01-Flash
By
Mahjong Magic Islands is an enchanting puzzle game that combines classic mahjong gameplay with magical adventure. Help restore ancient cities across mystical islands while enjoying relaxing, brain-teasing challenges.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mahjong Magic Islands". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A vibrant, high-saturation fantasy cartoon style. The scene should look like a "magical floating world." Use Soft lighting (HemisphereLight + DirectionalLight) to create a bright, inviting atmosphere. * **The Board (Mahjong Tiles):** Create 3D tiles (rounded box geometry) with a cream/white body and a green or bamboo backing. The face of the tiles must use textures or canvas-drawn icons representing classic Mahjong suits (dots, bamboo, characters) plus special "Magic" tiles (gems, potions). * *Tech Requirement:* Use **InstancedMesh** for the tiles to ensure 60FPS performance on mobile devices, as there will be up to 144 objects. * **The Environment:** A 3D background featuring low-poly floating islands with stylized trees and waterfalls in the distance. The background should have a slow, subtle floating animation (sine wave on Y-axis) to create depth without distracting from gameplay. The skybox should be a gradient of bright azure to cyan. * **Particles:** Use a particle system (Three.Points) to render magical dust or sparkles that swirl around the board, mimicking the "magic wind" seen in the reference image. ### 2. Audio Requirements * **BGM:** A whimsical, relaxing orchestral track featuring harp, flute, and light strings. It should loop seamlessly and evoke a sense of wonder and calm. * **Sound Effects (SFX):** * *Selection:* A crisp, tactile "stone clack" or wooden tap when a tile is touched. * *Match Success:* A magical "chime" or sparkling sound accompanied by a satisfying "whoosh." * *Invalid Move:* A dull, low-pitched thud or a gentle "shaking" sound. * *Level Complete:* A triumphant orchestral flourish. ### 3. Gameplay Loop * **Core Mechanic:** Standard Mahjong Solitaire rules. The player must select pairs of identical tiles to remove them. A tile is "free" only if it has no tile on top of it and has an empty space on either its left or right side. * **The "Magic" Twist:** Every successful match releases "magic energy" (visualized as particles) that flies to a specific point in the background (e.g., a grayed-out island), slowly restoring its color. * **Win Condition:** Clear all tiles from the board to fully "restore" the island. * **Fail Condition:** No valid moves remaining. * **Assistance:** Include a "Shuffle" mechanic (limited use) if the player is stuck, representing the "Cat Magician's" spell. ### 4. Mobile Controls & Interaction * **Touch Controls:** Implement a `Raycaster` bound to `touchstart` and `click` events. * *Selection Logic:* Tapping a tile highlights it with a glowing outline (emissive material or scaling up by 10%). Tapping a second matching tile triggers the removal animation. Tapping the background deselects. * **Camera:** Use a **PerspectiveCamera** with a fixed angle (approx 45-60 degrees) looking down at the board. Implement limited "Pinch-to-Zoom" and "Two-finger Pan" so players can inspect tight clusters of tiles on smaller screens. * **UI Layout:** * Place a "Pause" button in the top-right corner (min 44x44px). * Place action buttons (Shuffle, Hint) at the bottom center of the screen, easily reachable by thumbs. * **Feedback:** * *Haptic:* Trigger `navigator.vibrate(10)` on valid tile selection and `navigator.vibrate([10, 30, 10])` on a successful match. * *Visual:* When tiles match, they should rise up, spin, and dissolve into particles rather than just disappearing instantly. 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 Magic Islands is a captivating puzzle game that transforms the classic mahjong experience into an epic magical adventure. Set across mystical floating islands, you'll embark on a quest to restore ancient cities that have lost their natural beauty and fallen into darkness. This beautifully crafted 2D puzzle game combines traditional mahjong mechanics with an engaging storyline featuring mythical creatures and magical elements.

The game offers a perfect blend of relaxation and mental challenge, making it ideal for puzzle enthusiasts who enjoy both strategic thinking and immersive storytelling. With its charming art style and soothing gameplay, Mahjong Magic Islands provides hours of entertainment while exercising your logical thinking skills.

Core Features

Magical Adventure Storyline

Unlike traditional mahjong games, Mahjong Magic Islands features a rich narrative where you join forces with mythical creatures to save deteriorating ancient cities. Each island presents unique challenges and mysteries waiting to be unraveled.

Classic Mahjong Gameplay Enhanced

Experience the timeless appeal of mahjong tile-matching with modern twists. Remove matching pairs of tiles to clear the board while uncovering hidden magical elements and progressing through the story.

Beautiful 2D Art Style

Immerse yourself in stunning hand-drawn environments featuring floating magical islands, ancient architecture, and charming mythical characters. The game's visual design creates a truly enchanting atmosphere.

Relaxing Yet Engaging

Designed as a relaxing puzzle experience, the game provides a perfect escape from daily stress while still offering meaningful mental challenges that keep your mind sharp.

Cross-Platform Accessibility

Play seamlessly across multiple platforms including web browsers, Android devices, and iOS devices. Your progress syncs across platforms for uninterrupted gameplay.

Game Mechanics

Traditional Mahjong Rules

The core gameplay follows classic mahjong solitaire rules: match pairs of identical tiles to remove them from the board. Only tiles that are free (not blocked by other tiles) can be selected.

Progressive Difficulty

Start with simple layouts and gradually face more complex tile arrangements as you advance through different magical islands. Each level introduces new challenges while maintaining the relaxing pace.

Magical Power-Ups

Discover special magical abilities and power-ups as you progress, adding strategic depth to the traditional mahjong formula.

Operation Guide

Simple Mouse Controls

The game uses intuitive mouse-based controls perfect for players of all ages: - Left Mouse Button : Click to select and match mahjong tiles - Mouse Movement : Navigate through menus and game interface - Point and Click : All interactions are handled through simple clicking

Getting Started

  1. Launch the game in your web browser
  2. Choose your starting island from the map
  3. Click on matching pairs of free tiles to remove them
  4. Clear the entire board to complete each level
  5. Progress through the story and unlock new islands

Strategic Tips

  • Always look for tiles that will free up the most other tiles
  • Plan several moves ahead to avoid getting stuck
  • Take your time - there's no time pressure in this relaxing game

Why Play Mahjong Magic Islands

Perfect for All Skill Levels

Whether you're a mahjong veteran or completely new to tile-matching games, Mahjong Magic Islands offers an accessible entry point with gradually increasing complexity.

Stress Relief and Mental Exercise

Combine relaxation with brain training. The game's peaceful atmosphere helps reduce stress while the puzzle mechanics keep your mind engaged and sharp.

No Download Required

Play instantly in your web browser without downloading large files. The game loads quickly and runs smoothly on most modern devices.

Family-Friendly Entertainment

Suitable for players of all ages, making it perfect for family gaming time or solo relaxation sessions.

Rich Content and Replayability

With multiple islands to explore and countless puzzle layouts, the game offers substantial content that keeps you engaged for hours.

Frequently Asked Questions (FAQ)