Mahjong Connect 2 (Legacy) - Classic Tile Matching Puzzle

Seele01-Flash
By
Mahjong Connect 2 is a classic tile-matching puzzle game that challenges players to clear beautiful Chinese mahjong tiles by connecting matching pairs. This legacy edition offers traditional gameplay with elegant visuals and progressively challenging levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mahjong Connect 2 (Legacy)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Classical Oriental/Zen aesthetic. The scene should resemble a high-end, dark wooden table or a textured fabric surface (felt) often found in traditional Mahjong parlors. * **3D Models**: * **Tiles**: Create a standard set of Mahjong tiles using `THREE.BoxGeometry`. Use a texture atlas for the tile faces (Characters, Bamboos, Circles, Winds, Dragons, Flowers). The back and sides of the tiles should have an ivory or bone-like material with slight specularity (PBR material). * **Optimization**: Use `THREE.InstancedMesh` to render the grid of tiles to ensure 60FPS performance on mobile devices, as there can be up to 144 tiles on screen. * **Effects**: * **Selection**: When a tile is touched, it should slightly elevate (y-axis) and glow (emissive material). * **Connection Line**: When a match is found, dynamically draw the path using `THREE.Line` or a glowing `ShaderMaterial` beam that connects the two tiles before they vanish. * **Particles**: Upon clearing tiles, emit a small burst of gold or magical particles. * **Camera**: Fixed perspective camera, slightly angled (top-down view, approx 70 degrees) to show the 3D depth of the tiles while maintaining a clear view of the grid layout. ### 2. Audio Requirements * **BGM**: A relaxing, loopable traditional Chinese instrumental track (featuring Guzheng or Pipa) to induce a "flow state." * **SFX**: * **Selection**: A crisp, tactile "clack" sound (simulating stone or hard plastic hitting wood). * **Match**: A harmonious chime or pentatonic scale sound. * **Invalid Move**: A subtle, low-pitched wooden thud or soft "error" buzz. * **UI**: Soft paper-rustling sounds for menu clicks. * **Win/Time Up**: distinct jingles for level completion or failure. ### 3. Gameplay Loop * **Core Mechanic (Connect Rules)**: * Initialize a grid (e.g., 10 rows x 14 columns) of tiles. * **Matching Logic**: The user selects two matching tiles. They can only be eliminated if they can be connected by a line with **no more than two 90-degree turns**. The path cannot pass through other existing tiles. * **Gravity (Level 2 Feature)**: Implement a mode where, after tiles are removed, the remaining tiles slide down (or up/left/right depending on level config) to fill the gap, creating new matching opportunities. * **Win Condition**: Clear all tiles from the board before the timer runs out. * **Lose Condition**: Time runs out or no moves remain (and no shuffle power-ups are left). * **Power-ups**: * **Hint**: Highlights a valid pair. * **Shuffle**: Rearranges all remaining tiles when stuck. ### 4. Mobile Controls & Interaction * **Orientation**: **Force Landscape Mode**. The wide grid of Mahjong Connect requires horizontal width to keep tiles large enough to be touchable. * **Touch Controls**: * Use `THREE.Raycaster` for precise touch detection. * **Tap to Select**: First tap highlights the tile. Second tap on a matching target triggers the connection check. * **Tap to Deselect**: Tapping the background or the same tile again deselects it. * **Visual Feedback**: * Since fingers obscure screens, the selected tile must have a clear visual state change (e.g., scale up 1.1x and change border color to bright yellow). * If an invalid path is attempted, flash the selected tiles red briefly and shake them (simple sinusoidal x-axis animation). * **UI Layout**: * **Time Bar**: A visual progress bar at the bottom of the screen. * **Action Buttons**: Place "Pause", "Hint", and "Shuffle" buttons on the right-hand side (thumb zone) ensuring they are at least 44x44px for accessibility. 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 Connect 2 (Legacy) is the beloved sequel to the classic Mahjong Connect series, offering an authentic tile-matching experience rooted in traditional Chinese mahjong. This puzzle game combines strategic thinking with pattern recognition, challenging players to clear ornate mahjong tiles by finding and connecting matching pairs across increasingly complex board layouts.

Featuring beautiful traditional Chinese characters and symbols, the game maintains the elegant aesthetic that has made mahjong a timeless classic for centuries. Each tile is meticulously designed with authentic mahjong imagery, creating an immersive experience that honors the cultural heritage of this beloved game.

Core Features

Traditional Mahjong Aesthetics

The game showcases authentic Chinese mahjong tiles with traditional characters, bamboo, circle, and honor tile designs. The rich golden and brown color scheme creates an atmosphere of classical elegance, making each gaming session feel like a meditation on ancient wisdom.

Progressive Difficulty System

Mahjong Connect 2 offers multiple levels with increasing complexity. Starting with simple layouts, the game gradually introduces more intricate tile arrangements that require advanced planning and strategic thinking to solve.

Completely Free Gaming Experience

  • No cost to play : Enjoy unlimited access to all levels and features
  • No downloads required : Play instantly in your web browser
  • Cross-platform compatibility : Works perfectly on desktop computers and mobile devices
  • No registration needed : Start playing immediately without creating accounts

Enhanced Gameplay Mechanics

The game features smooth tile selection, clear visual feedback when tiles can be connected, and intuitive controls that make the experience enjoyable for both beginners and mahjong veterans.

Game Rules and Mechanics

The objective is simple yet engaging: clear all tiles from the board by connecting matching pairs. However, tiles can only be connected if there's a clear path between them with no more than two turns. This rule creates the strategic depth that makes Mahjong Connect so addictive.

Valid Connections

  • Tiles must be identical in design and symbol
  • Connection path cannot pass through other tiles
  • Maximum of two 90-degree turns allowed in the connection line
  • Only tiles on the outer edges or with at least one free side can be selected

Operation Guide

Mouse Controls (Desktop): - Left Click : Select and highlight tiles - Click matching tile : Automatically connect if path is valid - Hover : Preview potential connections

Touch Controls (Mobile): - Tap : Select tiles on smartphones and tablets - Double-tap : Quick selection for faster gameplay

The game provides visual hints through highlighting systems that show available tiles and potential matches, helping players develop their pattern recognition skills.

Strategic Tips for Success

Planning Your Moves

Successful players think several moves ahead, considering which tile removals will open up new connection opportunities. Focus on clearing tiles that will unlock the most options for future moves.

Time Management

While there's no strict time limit, efficient play improves your overall score. Look for obvious matches first, then tackle more complex connections.

Pattern Recognition

Develop your ability to quickly identify matching tiles across the board. The more you play, the faster you'll spot potential connections.

Why Play Mahjong Connect 2

This game offers the perfect blend of relaxation and mental stimulation. Whether you're looking for a quick brain exercise during a break or a longer gaming session to unwind, Mahjong Connect 2 provides:

  • Cognitive benefits : Improves memory, concentration, and pattern recognition
  • Stress relief : Meditative gameplay helps reduce daily stress
  • Cultural appreciation : Experience traditional Chinese tile designs and symbolism
  • Accessibility : Simple rules make it easy for anyone to start playing
  • Longevity : Multiple difficulty levels ensure lasting entertainment value

The legacy edition maintains the classic feel that made the original Mahjong Connect series so popular, while offering refined graphics and smooth performance across all devices.

Frequently Asked Questions (FAQ)