Time Mahjong - Classic Tile Matching Puzzle Game

Seele01-Flash
By
Time Mahjong is a captivating twist on the classic tile-matching game with time-themed challenges. Race against the clock to match pairs of tiles and clear beautifully designed levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Time Mahjong**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Casual, bright, and vibrant 3D aesthetic. Use a color palette inspired by the promotional image: energetic Yellows for the background, with tile backs in distinct colors (Green, Blue, Purple, Red) to denote different layers or types. * **Tile Models**: Use `THREE.BoxGeometry` with slightly beveled edges (or a low-poly chamfer) to make them look tactile. Use `THREE.InstancedMesh` to render the 144 tiles efficiently for mobile performance. * **Textures**: Front faces should display classic Mahjong symbols (Bamboo, Dots, Characters) or Time-themed icons (Clocks, Hourglasses, Gears) using a texture atlas to reduce draw calls. * **Background**: A dynamic, time-themed background. Create a "Tunnel of Time" effect using rotating 2D rings or large, slow-moving 3D gears (CylinderGeometry) in the distance. Use a warm Yellow/Gold gradient `SkyBox` or background plane. * **Lighting**: Soft ambient lighting + a Directional Light casting shadows to give the stacked tiles depth (crucial for seeing which tiles are "free"). * **Particles**: When tiles are matched, emit "Time Shards" (golden particles) or floating numbers using `THREE.Points`. ### 2. Audio Requirements * **BGM**: A rhythmic, ticking-clock inspired track. It should be upbeat and focus-inducing (electronic/orchestral hybrid), speeding up slightly as the timer runs low. * **SFX**: * **Select**: A crisp, plastic "clack" or "tock" sound. * **Match**: A satisfying magical chime or a "rewind" sound effect. * **Error**: A dull thud or buzzer if the player tries to pick a blocked tile. * **Time Warning**: A ticking clock sound that gets louder in the last 10 seconds. * **Win**: A grand orchestral flourish. ### 3. Gameplay Loop * **Core Mechanic**: Standard Mahjong Solitaire rules. Players must match identical open pairs (tiles with no tile on top and at least one side—left or right—free). * **The "Time" Twist**: * Implement a global countdown timer (e.g., 5 minutes). * **Combo System**: Matching pairs within 3 seconds of the previous match pauses the timer for 2 seconds or adds small time increments. * **Win Condition**: Clear all tiles from the board before the time runs out. * **Lose Condition**: Timer reaches 0:00 or no more moves are available (optional: implement a "Shuffle" button with a time penalty). ### 4. Mobile Controls & Interaction * **Camera**: Use a fixed **Orthographic Camera** (isometric view) to ensure zero perspective distortion, making it easier to judge tile alignment on small screens. * **Touch Controls**: * Implement `Raycaster` for precise tile selection. * **Selection State**: When a tile is tapped, lift it slightly (y-axis +0.2) and highlight it with an emissive glow to show it is active. * **Touch Tolerance**: Add a slight tolerance to the raycaster to assist with "fat finger" errors on mobile. * **UI Layout**: * **Top Bar**: Large, readable Timer (Center) and Score (Right). * **Pause Button**: Top Left (44x44px hit area). * **Orientation**: Lock to **Landscape** mode for the best board visibility, or implement a responsive camera zoom for Portrait. * **Feedback**: * **Haptics**: Trigger `navigator.vibrate(50)` on a successful match. * **Visual**: If a player taps a blocked tile, shake the tile slightly (sine wave animation) to indicate it cannot be moved. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Time Mahjong

Time Mahjong is an engaging puzzle game that combines the timeless appeal of traditional mahjong with exciting time-based challenges. With a 4.04/5 rating, this HTML5 game offers players a perfect blend of strategy, speed, and relaxation as they work to clear intricate tile arrangements before the clock runs out.

This browser-based mahjong game takes the classic tile-matching formula and adds a compelling time element that keeps players engaged and challenged. Each level presents unique tile configurations that require both strategic thinking and quick decision-making.

Core Features

Classic Mahjong Gameplay with a Twist

Experience the beloved mechanics of traditional mahjong solitaire enhanced with time-based challenges. Match pairs of identical tiles to gradually clear the board, but now you must do so before time expires.

Beautiful Level Design

Each level features carefully crafted tile arrangements that provide both visual appeal and strategic depth. The game's clean, colorful design makes it easy to identify matching tiles while maintaining the classic mahjong aesthetic.

Progressive Difficulty

Starting with easier configurations, the game gradually introduces more complex tile layouts that challenge your pattern recognition and strategic planning skills. Perfect for both beginners and experienced mahjong players.

Free Browser Gaming

Play instantly in any modern web browser without downloads or installations. The HTML5 technology ensures smooth performance across desktop and mobile devices.

Brain Training Benefits

This puzzle game serves as an excellent brain teaser, helping to improve concentration, pattern recognition, and strategic thinking skills while providing relaxing entertainment.

Game Mechanics

Tile Matching Rules

  • Select pairs of identical, unblocked tiles to remove them from the board
  • Tiles must be free on at least one side (left or right) to be selectable
  • Clear all tiles from the board to complete the level
  • Watch the timer and plan your moves efficiently

Time Challenge System

The time element adds excitement without creating overwhelming pressure. Players must balance speed with strategy, making quick decisions while ensuring they don't paint themselves into a corner with poor tile choices.

How to Play

Basic Controls

  • Mouse/Touch : Click or tap on matching tiles to select and remove them
  • Hint System : Use hints when you're stuck to reveal possible matches
  • Shuffle Option : Some levels may offer shuffle features when no moves are available

Winning Strategy Tips

  1. Plan Ahead : Look for tiles that are blocking multiple other tiles
  2. Time Management : Don't rush - steady, thoughtful play is often faster than frantic clicking
  3. Pattern Recognition : Develop your ability to quickly spot matching pairs
  4. Prioritize : Focus on freeing tiles that will open up the most new possibilities

Why Play Time Mahjong

Perfect for All Skill Levels

Whether you're new to mahjong or a seasoned player, Time Mahjong offers an accessible yet challenging experience. The "Easy" difficulty tag makes it welcoming for beginners, while the time pressure keeps experienced players engaged.

Mental Exercise

This brain teaser provides excellent cognitive exercise, helping to maintain and improve mental agility through pattern recognition and strategic planning.

Stress-Free Gaming

Despite the time element, the game maintains a relaxing atmosphere perfect for unwinding after a busy day or taking a mental break.

No Commitment Required

As a free browser game, you can enjoy quick sessions whenever you have a few minutes to spare, with no need to invest time in lengthy tutorials or complex progression systems.

Frequently Asked Questions (FAQ)