Celtic Mahjong - Traditional Tile Matching Puzzle Game

Seele01-Flash
By
Celtic Mahjong combines traditional mahjong gameplay with stunning Celtic culture themes. Match beautifully designed tiles through 10 increasingly challenging levels, each with unique patterns and time limits.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Celtic Mahjong". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A mystic, ancient Celtic aesthetic. The overall tone should be earthy and historical but magical. * **Tile Design:** 3D rectangular tiles (ratio approx 3:4:0.5) resembling ivory or polished white stone. * **Symbols:** The top face of each tile must feature distinct Celtic iconography: Celtic Knots, Crosses, Spirals, Triskelions, and Runes. * **Palette:** Use the specific bold colors mentioned: Emerald Green, Royal Purple, Fiery Orange, and Deep Red for the symbols to contrast against the white stone. * **Selection Effect:** When a tile is selected, it should glow with a golden border or lift slightly (y-axis) to indicate state. * **Environment/Background:** A high-quality, static background texture depicting a wooden table surface or an ancient stone altar with moss details. The lighting should be warm, simulating ambient sunlight or torchlight. * **Mobile Optimization:** * Use **`THREE.InstancedMesh`** for the tiles to ensure 60FPS performance on mobile devices (rendering 144+ tiles efficiently). * Use a Texture Atlas for the tile symbols to reduce draw calls. * Low-poly geometry for the tiles (beveled edges via normal maps rather than high geometry count). ### 2. Audio Requirements * **BGM:** A relaxing, looping track featuring Celtic Harp and Flute. The mood should be serene to aid concentration. * **Sound Effects (SFX):** * **Tap:** A solid "clack" sound resembling heavy dominoes or stone hitting wood. * **Match:** A magical "shimmer" or harp glissando when two tiles are removed. * **Invalid Move:** A dull, low-pitched "thud" or wood sound. * **Shuffle:** The sound of tumbling stones. * **Win:** A short, triumphant orchestral fanfare. ### 3. Gameplay Loop * **Core Mechanic:** Standard Mahjong Solitaire (Shanghai) rules. * **Matching:** Player must tap two tiles with identical symbols to remove them. * **"Free" Condition:** A tile can only be selected if it has no tile immediately to its **Left** OR **Right**, AND no tile directly on **Top** of it. * **Level System:** Implement logic for 10 different tile layout patterns (e.g., Turtle, Pyramid, Cross, etc.). * **Scoring & Timer:** * Display a countdown timer. * Score increases per match. * **Helpers:** Implement "Shuffle", "Undo", and "Hint" buttons. Each user starts with 3 of each. Using a helper deducts points from the score. * **Win/Loss:** * **Win:** All tiles cleared. * **Loss:** Timer runs out OR no more moves available (and no shuffles left). ### 4. Mobile Controls & Interaction * **Camera:** A fixed perspective camera (Angled Top-Down) that fits the entire board layout within the screen width. Disable free rotation to prevent user disorientation, but allow limited Panning/Zooming if the screen is too small. * **Input Method:** * **Raycaster:** Implement precise Raycasting for touch inputs. * **Touch Area:** Ensure hitboxes are slightly larger than the visual tile to accommodate "fat finger" taps. * **UI Layout (HUD):** * **Top Bar:** Level Indicator, Score, and Timer (Large, readable fonts). * **Bottom Bar:** Large, thumb-friendly buttons for "Hint", "Undo", and "Shuffle" (min height 44px). * **Orientation:** Support Landscape mode primarily, but scale the camera FOV dynamically if Portrait is detected. * **Feedback:** * **Visual:** Draw a line connecting the two matching tiles briefly before they disappear. * **Haptic:** Trigger a light vibration (using `navigator.vibrate`) 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 Celtic Mahjong

Celtic Mahjong is a captivating tile-matching puzzle game that brings the rich heritage of Celtic culture to the classic mahjong experience. With a stellar 4.4/5 rating from over 510 players, this game offers an immersive journey through ancient Celtic traditions while challenging your strategic thinking and pattern recognition skills.

Set against beautifully crafted backgrounds inspired by historical Celtic architecture, the game features intricately designed tiles showcasing authentic Celtic symbols and patterns in vibrant colors including red, green, purple, and orange. Each tile tells a story of the ancient Indo-European Celtic civilization, making every match a discovery of cultural heritage.

Core Features

Authentic Celtic Design

The game stands out with its authentic Celtic aesthetic , featuring: - Historical Celtic architectural backgrounds - Beautifully crafted tiles with traditional Celtic symbols - Rich color palette inspired by Celtic art traditions - Immersive cultural atmosphere that enhances gameplay

Progressive Challenge System

With 10 unique levels , Celtic Mahjong offers escalating difficulty: - Each level features distinct tile patterns and arrangements - Progressive complexity keeps players engaged - Time limits add exciting pressure to each puzzle - Increasingly challenging layouts test your skills

Player-Friendly Features

The game includes helpful tools for all skill levels: - Hint System : Get guidance when stuck (3 hints per level) - Shuffle Option : Rearrange tiles for new matching possibilities (3 shuffles per level) - Undo Function : Reverse incorrect moves (3 undos per level) - Score Tracking : Monitor your performance and compete for high scores

Cross-Platform Compatibility

HTML5 technology ensures smooth gameplay across all devices: - Perfect performance on desktop computers - Optimized for mobile phones and tablets - No downloads required - play instantly in your browser - Consistent experience across all platforms

Gameplay Mechanics

Basic Rules

Celtic Mahjong follows traditional mahjong solitaire rules with Celtic flair: - Match identical tiles to remove them from the board - Only free tiles can be selected (not covered and with at least one open side) - Clear all tiles to complete the level - Work efficiently to achieve the highest possible score

Strategic Elements

Success requires careful planning and observation: - Analyze tile layouts before making moves - Prioritize freeing trapped tiles to create more options - Use power-ups strategically to overcome difficult situations - Balance speed with accuracy to maximize your score

Game Interface

The intuitive interface displays all essential information: - Current score tracking in real-time - Level progression indicator - Countdown timer for added excitement - Easy access to hint, shuffle, and undo options - Clear visual feedback for valid moves

Why Play Celtic Mahjong

Educational Value

Experience Celtic culture while exercising your mind: - Learn about ancient Celtic symbols and designs - Appreciate historical Celtic architectural elements - Develop pattern recognition and strategic thinking - Improve concentration and focus skills

Perfect for All Players

Whether you're a mahjong veteran or puzzle game newcomer: - Beginners can use hints and power-ups to learn - Experienced players can challenge themselves for perfect scores - Casual gamers enjoy the beautiful Celtic themes - Competitive players can aim for the high score leaderboard

Stress-Free Gaming

Enjoy relaxing yet engaging gameplay: - No registration or download requirements - Completely free to play with full features - Pause and resume anytime - Beautiful visuals and calming Celtic atmosphere

Frequently Asked Questions (FAQ)