Mahjong Connect Classic

Seele01-Flash
By
Mahjong Connect Classic is a free online tile-matching puzzle game featuring 80 challenging levels. Experience the zen of traditional mahjong with beautiful backgrounds and relaxing gameplay on any device.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mahjong Connect Classic**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A relaxing, "Zen" aesthetic combining traditional Chinese art with modern clean UI. The game scene should feature a 3D board viewable from a top-down (slightly angled) orthographic or perspective camera. * **Tile Models**: Create low-poly, beveled rectangular prisms to represent Mahjong tiles. Use a **Texture Atlas** for the tile faces (Bamboo, Circles, Characters, Winds, Dragons, Flowers, Seasons) to reduce draw calls. * **Performance Optimization**: Crucial for mobile. Use `THREE.InstancedMesh` to render all 144 tiles to ensure 60fps performance on mobile devices. * **Backgrounds**: Implement a system to switch between static high-quality background textures (e.g., "Peaceful Bamboo", "Cherry Blossoms") behind the 3D board. * **VFX**: * **Selection**: When a tile is tapped, it should lift slightly (`y` axis) and have a subtle glowing outline. * **Connection**: When a match is made, draw a glowing line (using `THREE.Line` or a thin mesh) showing the path between the two tiles before they disappear. * **Particles**: Soft particle burst (petals or sparkles) upon tile removal. ### 2. Audio Requirements * **BGM**: A calm, looping track featuring traditional instruments like the Guzheng or Pipa. It should be unobtrusive to support the "unwind" atmosphere. * **Sound Effects (SFX)**: * **Click**: A tactile "wooden tap" sound when selecting a tile. * **Match**: A satisfying "stone clacking" sound when tiles are removed. * **Error**: A soft, low-pitched "thud" or vibration sound if a move is invalid. * **Shuffle**: The sound of tiles sliding across a wooden table. * **Win**: A gentle wind chime glissando. ### 3. Gameplay Loop * **Core Mechanic (Shisen-Sho/Connect)**: This is **not** standard Solitaire. The player must match identical free tiles. A match is valid only if: 1. The tiles are identical. 2. They can be connected by a line with **no more than 2 right-angle turns** (3 line segments max). 3. The path is not blocked by other tiles. * **Data Structure**: Use a 2D Grid array to manage tile positions and state. Implement a pathfinding algorithm (BFS or simple line scanning) to validate connections. * **Level Design**: Include logic to load level layouts (simple 2D arrays). Implement 80 levels of increasing difficulty (e.g., changing grid shapes, floating gravity tiles). * **Tools**: * **Shuffle**: Randomizes remaining tiles on the board (button in lower UI). * **Hint**: Highlights a valid pair if the player is stuck. * **Winning**: Clear all tiles to advance to the next level. * **Losing/Stuck**: If no moves are possible, auto-trigger a Shuffle or show a "Game Over" modal if shuffles are depleted (though the description implies a relaxed mode, so prefer Auto-Shuffle). ### 4. Mobile Controls & Interaction * **Touch Controls**: * Use `THREE.Raycaster` mapped to `pointerdown` events for immediate response. * Do not use `click` events (to avoid 300ms delay on some mobile browsers). * **Orientation**: Design primarily for **Portrait Mode** (vertical) to match the screenshot layout, but ensure the camera FOV adapts if the user rotates to Landscape. * **UI Layout**: * **HUD**: A clean 2D HTML/CSS overlay on top of the Canvas. * **Bottom Bar**: Large, thumb-friendly buttons (min 44x44px) for "Shuffle" and "Hint" placed at the bottom of the screen. * **Top Bar**: Level indicator and a Pause/Settings button. * **Feedback**: * **Haptic Feedback**: Trigger `navigator.vibrate(10)` on valid tile selection and `navigator.vibrate([30, 30])` on a successful match. * **Visual Logic**: If a user taps a tile that cannot be matched (blocked), shake the tile slightly to indicate "invalid". 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 Classic is a beautifully crafted online mahjong game that brings the timeless appeal of traditional tile-matching to your browser. With an impressive 4.4/5 rating from players, this free game offers 80 meticulously designed levels that provide hours of relaxing puzzle entertainment. Unlike fast-paced action games, Mahjong Connect Classic focuses on mindful gameplay, making it perfect for unwinding after a busy day.

The game features authentic mahjong tiles set against stunning optional backgrounds, from serene bamboo gardens to colorful floral displays. Each level presents a unique tile arrangement that challenges your pattern recognition skills while maintaining the peaceful, meditative quality that mahjong is famous for.

Core Features

Extensive Level Progression

With 80 unique levels , each featuring distinct tile patterns and increasing complexity, the game provides substantial content for both beginners and experienced mahjong players. Every level is carefully crafted to offer a fresh challenge while maintaining the relaxing atmosphere.

Stress-Free Gaming Experience

Unlike competitive puzzle games, Mahjong Connect Classic features no timer or scoring pressure . This design philosophy allows players to think through their moves carefully, experiment with different strategies, and truly enjoy the meditative aspects of tile matching.

Beautiful Visual Customization

Choose from multiple gorgeous background themes including: - Peaceful bamboo forest scenes - Vibrant flower garden displays - Traditional oriental patterns - Minimalist zen designs

Smart Assistance Tools

When you encounter challenging situations, the game provides helpful tools: - Shuffle function : Reorganizes available tiles for new matching opportunities - Hint system : Highlights possible moves when you're stuck - Intuitive interface : Clean, uncluttered design that keeps focus on gameplay

Game Mechanics

Classic Connect-Style Rules

Mahjong Connect Classic follows traditional mahjong connect rules where players must match identical tiles that can be connected by a clear path. The path can have up to two 90-degree turns, adding a spatial puzzle element to the traditional tile matching.

Strategic Tile Removal

Success requires careful planning as removing certain tiles can open up new possibilities or block future moves. Players must think several moves ahead, considering which tiles to prioritize and which connections to save for later.

Controls & Instructions

Simple Click-to-Play Interface

  • Mouse/Touch : Click or tap on matching tiles to connect and remove them
  • Visual Feedback : Selected tiles are highlighted for easy identification
  • Hint Access : Click the hint button in the lower-right panel when needed
  • Shuffle Option : Use the shuffle feature to rearrange tiles when stuck

Cross-Platform Compatibility

The game works seamlessly across all devices: - Desktop : Full mouse support with precise clicking - Mobile : Touch-optimized interface for smartphones and tablets - Tablet : Perfect screen size for comfortable extended play sessions

Why Play Mahjong Connect Classic

Perfect Stress Relief

In today's fast-paced world, Mahjong Connect Classic offers a peaceful escape. The absence of time pressure combined with soothing visuals creates an ideal environment for relaxation and mental rejuvenation.

Cognitive Benefits

Regular mahjong play has been shown to improve: - Pattern recognition skills - Strategic thinking abilities - Concentration and focus - Memory and recall capabilities

Accessibility for All Skill Levels

Whether you're new to mahjong or a seasoned player, the game's progressive difficulty curve ensures an appropriate challenge. Beginners can learn the basics on easier levels, while experienced players will find the later stages genuinely challenging.

Free Entertainment Value

With 80 levels of content available completely free, Mahjong Connect Classic offers exceptional value. No subscriptions, no in-app purchases – just pure, unadulterated mahjong enjoyment.

Social and Solo Gaming

While primarily a single-player experience, the game's high score system allows for friendly competition with family and friends. Challenge others to complete levels more efficiently or simply enjoy peaceful solo sessions.

Frequently Asked Questions (FAQ)