Pet Mahjongg - Cute Animal Mahjong Solitaire

Seele01-Flash
By
Pet Mahjongg is a delightful online mahjong solitaire game featuring adorable pets and animals. Match cute animal tiles across 50 challenging levels with dogs, cats, birds, and exotic creatures.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Pet Mahjongg". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A mix of **3D Tiles** and **2D Backgrounds**. The overall aesthetic should be "Cute," "Bright," and "Casual." * **Tile Models**: Use `THREE.RoundedBoxGeometry` or similar to create smooth, stone-like Mahjong tiles. They should be slightly thick to emphasize depth when stacked. Base color: Light Cyan or White. * **Tile Textures**: The faces of the tiles must feature high-contrast, cartoon-style illustrations of pets (Dogs, Cats, Birds, Fish, Snakes, Koalas, Pandas). Use a Texture Atlas to optimize performance. * *Special Tiles*: Implement "Flower/Season" equivalents as "Exotic Pets" that match by category, not just exact image. * **Background**: A high-resolution, static 2D plane or CSS background behind the 3D canvas showing a blurred, real-life photography of a cute pet (e.g., a Beagle on grass) to match the reference style. * **Particles**: Simple heart or paw-print particle explosions when a match is successfully made. * **Optimization**: Use `THREE.InstancedMesh` for the tiles to ensure 60FPS on mobile devices, as there can be up to 144 tiles on screen. ### 2. Audio Requirements * **BGM**: Light, whimsical, and acoustic background music (ukulele or marimba based) that loops seamlessly. * **Sound Effects (SFX)**: * **Select**: A soft wooden "clack" or high-pitched "pop". * **Match**: A satisfying major-chord chime or a specific animal sound (e.g., a soft bark or meow). * **Invalid Move**: A subtle "thud" or vibration sound. * **Shuffle/Hint**: A "whoosh" or magical sparkle sound. * **Win/Level Clear**: An upbeat fanfare. ### 3. Gameplay Loop * **Core Mechanic**: Classic Mahjong Solitaire. Players must select two identical free tiles to remove them. * *Free Tile Logic*: A tile is free if no tile is strictly above it (Z-axis) AND it has an empty space immediately to its Left OR Right (X-axis). * **Level System**: Implement logic for 50 distinct tile layouts (e.g., Turtle, Pyramid, Fort). Start with Level 1. * **Timer**: A countdown timer per level. If it reaches 0, Game Over. * **Scoring**: Points awarded for matches. Bonus points for speed. Deduction of points for using "Hint" or "Shuffle". * **Win Condition**: Clear all tiles from the board to unlock the next level. * **Lose Condition**: Timer runs out OR no moves remaining (and no shuffles left). ### 4. Mobile Controls & Interaction * **Camera**: Use a `PerspectiveCamera` positioned at a top-down angle (approx 60-75 degrees) to show depth but maintain clarity. Implement a slight auto-zoom to fit the board layout within the screen width. * **Touch Controls**: * Use `THREE.Raycaster` for precise touch detection. * **Tap**: Select/Deselect a tile. Selected tile should lift slightly (translate Y) and glow (Emissive material) to indicate state. * **UI Layout**: * **Top Bar**: Level Indicator, Score, and Countdown Timer. * **Bottom Bar**: Large, thumb-friendly buttons (minimum 44px hit area) for "Hint" (Magnifying glass icon) and "Shuffle" (Arrows icon). * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(20)` on valid selection and `navigator.vibrate([50, 50, 50])` on a match. * **Orientation**: Optimize for **Landscape** mode but ensure the canvas resizes correctly if the user is in Portrait (scale the board down to fit). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Pet Mahjongg

Pet Mahjongg is an enchanting online mahjong solitaire game that combines the classic tile-matching gameplay with adorable pet themes. This free browser-based puzzle game features beautifully decorated tiles showcasing various beloved pets including dogs, cats, birds, ducks, fish, and even exotic animals like snakes, koalas, cows, and pandas. Each tile displays happy pets dressed in cute clothing, creating a delightful visual experience that appeals to animal lovers of all ages.

Core Features

50 Unique Levels

The game offers 50 carefully designed levels , each presenting its own unique challenge and tile arrangement pattern. Every level features a different pet backdrop image, ensuring visual variety throughout your gaming experience.

Adorable Pet Theme

Unlike traditional mahjong games, Pet Mahjongg brings joy through its cute animal designs . The tiles feature various pets in charming outfits, making each matching session a delightful visual treat.

Time-Based Challenge

Each level comes with a time limit , adding excitement and urgency to the puzzle-solving experience. Players must think quickly and strategically to clear all tiles before time runs out.

Progressive Difficulty

Levels are unlocked sequentially , ensuring players gradually build their mahjong skills. Each completed level opens the next challenge, maintaining engagement and providing a sense of achievement.

Score Competition

The game includes a leaderboard system where players can submit scores and compete with others globally, adding a competitive element to the relaxing puzzle gameplay.

Game Mechanics

Classic Mahjong Rules

Pet Mahjongg follows traditional mahjong solitaire rules with pet-themed tiles. Players must match identical tiles to remove them from the board, but only open tiles can be selected - those not covered by other tiles and having at least one free side.

Special Tile Types

The game includes flower and season tiles that can be matched with any tile of the same category, regardless of the specific symbol, adding strategic depth to the gameplay.

Helper Features

When stuck, players can use hint and shuffle options located in the lower-left corner. However, using these features will reduce the final score, encouraging players to rely on skill rather than assistance.

How to Play

Basic Controls

  • Click on two identical pet tiles to match and remove them
  • Ensure both tiles are "open" (not covered and have one free side)
  • Clear all tiles before time runs out to complete the level
  • Use hints sparingly to maintain high scores

Winning Strategy

  1. Scan the board for easily accessible matching pairs
  2. Plan ahead by identifying tiles that will become accessible after certain matches
  3. Prioritize removing tiles that will free up multiple other tiles
  4. Manage time efficiently while maintaining accuracy
  5. Use hints judiciously only when absolutely necessary

Platform Compatibility

Pet Mahjongg is built with HTML5 technology , ensuring excellent compatibility across all modern devices and browsers. Whether you're playing on a desktop computer, laptop, tablet, or smartphone, the game delivers a smooth and responsive experience without requiring any downloads or installations.

Why Play Pet Mahjongg

Perfect for All Ages

With its cute animal theme and intuitive gameplay, Pet Mahjongg is suitable for players of all ages. The adorable pet designs make it particularly appealing to children and animal lovers, while the strategic depth satisfies experienced puzzle game enthusiasts.

Relaxing Yet Challenging

The game strikes an ideal balance between relaxation and mental stimulation . The cute visuals and gentle theme create a calming atmosphere, while the tile-matching puzzles provide engaging mental exercise.

No Cost, No Commitment

As a completely free online game , Pet Mahjongg offers hours of entertainment without any financial investment. No registration, downloads, or payments are required - simply visit the website and start playing immediately.

Educational Benefits

Playing mahjong games like Pet Mahjongg can help improve pattern recognition, memory, and concentration skills . The time pressure also helps develop quick decision-making abilities and strategic thinking.

Frequently Asked Questions (FAQ)