Mahjong 3 Dimensions - 3D Mahjong Puzzle Game

Seele01-Flash
By
Mahjong 3 Dimensions brings the beloved mahjong puzzle into stunning 3D, featuring unique caveman-themed tiles and 24 progressively challenging levels that you can rotate and explore from all angles.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mahjong 3 Dimensions - Stone Age Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, vibrant "Caveman/Prehistoric" aesthetic. Use bright, saturated colors (greens, browns, azures) to ensure high visibility on small mobile screens. * **The Cubes (Tiles):** Create `BoxGeometry` cubes with slightly rounded corners (or use a bevel modifier) to catch light. Textures should resemble carved stone or wood. Icons on the cubes must be archaic: slabs of meat, fire torches, arrowheads, dinosaur bones, and stylized Mahjong characters. * **Background:** A static or simple gradient skybox representing a prehistoric landscape (blue sky, distant silhouette of a volcano or palm trees). Keep it low-detail to save performance. * **Lighting:** strong Directional Light (simulating sun) to cast shadows, enhancing the 3D depth perception required to judge tile positions. Add an Ambient Light to ensure no side is pitch black. * **Performance:** Use texture atlases for the cube icons to reduce draw calls. ### 2. Audio Requirements * **BGM:** A lighthearted, rhythmic "Tropical/Tribal" track featuring marimbas, bongos, and wooden flutes. It should be looping and non-intrusive. * **SFX:** * **Selection:** A solid "stone click" or "wood block" sound. * **Match:** A satisfying, magical "pop" or "shimmer" sound. * **Shuffle:** The sound of rocks tumbling or wood clattering. * **Time Warning:** A tribal drum beat that speeds up as the timer runs low. ### 3. Gameplay Loop * **Core Mechanic:** 3D Pair Matching. The player sees a 3D structure (e.g., a pyramid or cube cluster) made of blocks. * **Selection Rules:** A block can only be selected if it has **at least two adjacent vertical sides free** (e.g., Left and Right are empty, or it is on the top edge). * **Interaction:** 1. Player taps a valid block -> Block highlights (glows cyan/gold). 2. Player taps a second matching valid block -> Both blocks play a particle effect and disappear. 3. Player taps an invalid block -> Visual "shake" effect indicating it's locked. * **Win/Loss:** * **Win:** Clear all blocks before the timer hits 0. * **Loss:** Timer hits 0. * **Power-ups:** * **Shuffle:** Rearranges remaining blocks (Cost: -500 points). * **Hint:** Highlights a matching pair (Cost: -200 points). ### 4. Mobile Controls & Interaction * **Camera Control (Orbit):** The 3D puzzle must be rotatable. Implement a "Swipe to Rotate" gesture. The camera should rotate around the center of the puzzle on the Y-axis. Limit the vertical (X-axis) angle so the player always looks slightly down at the puzzle (avoid looking from underneath). * **Input:** Use `Raycaster` for tap detection. Increase the hit-box area slightly for better touch precision. * **UI Layout:** * **Top Center:** Countdown Timer (Large font) and Current Score. * **Bottom Corners:** Large, thumb-friendly circular buttons (min 60x60px) for "Shuffle" (Left) and "Hint" (Right). * **Orientation:** Force Landscape mode if possible, or ensure the camera moves back in Portrait mode to fit the puzzle. * **Feedback:** * **Haptic:** Trigger a light vibration (using `navigator.vibrate`) when a valid match is made. * **Visual:** When a pair matches, spawn a simple particle explosion (small cubes or sparks) before removing the mesh. 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 3 Dimensions revolutionizes the classic mahjong experience by transforming traditional flat tile layouts into fully interactive 3D puzzles. This innovative puzzle game challenges players to think spatially while maintaining the core mahjong matching mechanics that have captivated players for generations.

Unlike traditional mahjong games, this 3D version allows you to rotate and examine tile structures from multiple angles, revealing hidden matching opportunities that would be impossible in 2D layouts. The game features a charming caveman theme with prehistoric symbols including slabs of meat, fire torches, arrowheads, and other ancient artifacts decorating each tile.

Core Features

Revolutionary 3D Gameplay

The standout feature of Mahjong 3 Dimensions is its true three-dimensional puzzle structures. Players can rotate the entire tile formation using intuitive controls, discovering new matching possibilities from different perspectives. This spatial element adds a layer of strategic depth that keeps the gameplay fresh and engaging.

Prehistoric Theme Design

Every tile showcases beautifully crafted caveman-era symbols that bring personality to each puzzle. From primitive tools to ancient food items, the thematic consistency creates an immersive prehistoric atmosphere that sets this mahjong variant apart from generic tile designs.

Progressive Challenge System

With 24 carefully designed levels, the game offers a perfect difficulty curve. Early stages introduce players to the 3D mechanics, while later levels present complex structures that require advanced spatial reasoning and strategic planning.

Time-Based Scoring

Each level includes a timer that adds excitement and urgency to the puzzle-solving process. Players must balance speed with accuracy to achieve high scores, making every move count toward their final ranking.

Built-in Assistance Tools

When puzzles become challenging, players can access hint and shuffle features. While these tools help overcome difficult situations, they impact scoring, encouraging players to develop their skills rather than rely on assistance.

Gameplay Mechanics

Basic Matching Rules

The fundamental objective remains true to traditional mahjong: identify and remove pairs of matching tiles. However, the 3D environment requires players to consider tile accessibility from multiple directions, as blocks must have at least one open adjacent side to be selectable.

Spatial Strategy

Success in Mahjong 3 Dimensions demands spatial awareness and forward planning. Players must visualize how removing certain tile pairs will affect the overall structure and create new matching opportunities deeper within the formation.

Rotation Controls

The game provides smooth rotation controls that allow players to examine puzzles from every angle. This mechanic transforms static puzzle-solving into dynamic exploration, where the next solution might be hidden just around the corner.

How to Play

Basic Controls

  • Click and Select : Choose two matching free tiles to remove them from the structure
  • Rotation Arrows : Use the directional controls to rotate the 3D formation and explore different angles
  • Hint Button : Reveals possible matching pairs when you're stuck (reduces final score)
  • Shuffle Option : Reorganizes available tiles to create new matching possibilities (impacts scoring)

Winning Strategy

Effective play requires scanning the entire 3D structure before making moves. Look for tiles that, when removed, will free up multiple other tiles. Plan several moves ahead and always check all sides of the formation before using hint or shuffle options.

Accessibility Rules

A tile is considered "free" and selectable only when it has at least one completely open side. Tiles buried within the structure or completely surrounded by other blocks cannot be selected, adding a puzzle layer beyond simple pattern matching.

Why Play Mahjong 3 Dimensions

Perfect for All Skill Levels

Whether you're a mahjong veteran or completely new to tile-matching puzzles, this game offers an ideal entry point. The 3D mechanics are intuitive enough for beginners while providing sufficient depth to challenge experienced players.

Brain Training Benefits

Regular play enhances spatial reasoning, pattern recognition, and strategic planning skills. The time pressure element also improves decision-making speed and mental agility.

Completely Free Experience

Enjoy the full game without any payment requirements, subscriptions, or hidden costs. All 24 levels and features are available immediately upon starting the game.

Cross-Platform Compatibility

Built with HTML5 technology, the game runs smoothly on desktop computers, tablets, and smartphones. Play during commutes, breaks, or whenever you need a quick mental workout.

Competitive Element

The scoring system and leaderboard functionality add competitive motivation, encouraging players to replay levels and improve their performance while competing with other puzzle enthusiasts worldwide.

Frequently Asked Questions (FAQ)