Oceans Mahjongg - Ocean Themed Mahjong Puzzle Game

Seele01-Flash
By
Oceans Mahjongg is a beautifully crafted puzzle game that combines classic mahjong gameplay with a stunning underwater theme. Featuring 50 challenging levels across 4 ocean environments, this free online game offers hours of relaxing tile-matching entertainment.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Oceans Mahjongg**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A vibrant, relaxing underwater 3D environment. The aesthetic should be casual, colorful, and "Low-poly" but smooth. * **Background:** Create a dynamic underwater scene using a shader or gradient background (Deep Blue to Cyan). Implement a particle system for rising bubbles and "caustics" (light rays) to simulate being underwater. Add simple 3D decorative fish (low-poly) swimming in the background using simple sine-wave paths. * **Tiles (Core Asset):** * Use `THREE.InstancedMesh` for performance optimization (crucial for mobile). * Tile Shape: Rectangular blocks with slightly beveled edges (Ivory/Bone material color). * Textures: The top face of each tile must display distinct sea-themed icons (Dolphins, Jellyfish, Eels, Starfish, Clams, Seaweed, Corals). Use a texture atlas or emoji-based canvas textures if external assets aren't available. * **Visual Effects (VFX):** * **Selection:** When a tile is tapped, add a glowing outline or lift the tile slightly on the Y-axis (`TWEEN` or simple interpolation). * **Match:** When two tiles match, they should dissolve into bubbles or float upwards before disappearing. ### 2. Audio Requirements * **BGM (Background Music):** A soothing, looped underwater ambience track mixed with a gentle marimba or harp melody (Calm, Tropical, Spa-like). * **Sound Effects (SFX):** * **Select:** A soft "clack" or "pop" sound (like tapping a stone underwater). * **Match:** A satisfying water splash or bubble-bursting sound accompanied by a chime. * **Shuffle:** The sound of heavy tiles sliding over each other. * **Error:** A low-pitch "bloop" if a player taps a blocked tile. * **Win:** A magical harp glissando. ### 3. Gameplay Loop * **Core Mechanic:** Classic Mahjong Solitaire rules in 3D space. * **Grid System:** Tiles are arranged in 3D layers. * **Validation Logic:** A tile is selectable ONLY if it has no tile immediately above it (Z-axis) AND has at least one side (Left or Right) free. * **Goal:** Clear the board by matching pairs of identical tiles. * **Progression:** * Implement a basic Level Manager. Start with a "Turtle" formation or similar pyramid structure. * Track "Stars": Finish fast for 3 stars, medium for 2, slow for 1. * **Tools/Power-ups:** * **Shuffle:** Rearranges remaining tiles when no moves are left (adds a time penalty). * **Hint (Eye icon):** Highlights a valid pair for 3 seconds. ### 4. Mobile Controls & Interaction * **Camera:** Use a `PerspectiveCamera` angled at roughly 60 degrees. Implement basic **OrbitControls** but limit the rotation angles (azimuth and polar) so the player can tilt the board slightly to see depth but cannot flip it upside down. Disable zoom or limit it strictly. * **Touch Interaction:** * Use `Raycaster` for precise touch detection. * **Tap:** Select/Deselect tile. * **Hit Area:** Ensure tile hitboxes are slightly larger than the visual mesh for forgiving touch inputs on smaller screens. * **UI Layout (HUD):** * **Responsive:** UI elements must be anchored (top-left for Score, top-right for Timer/Stars, bottom-center for Tools). * **Buttons:** Create large, thumb-friendly buttons (min 44x44px) for "Shuffle", "Hint", and "Pause". * **Feedback:** * Trigger `navigator.vibrate(50)` (haptic feedback) on valid tile selection and matching if the device supports it. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Oceans Mahjongg

Oceans Mahjongg is a captivating online puzzle game that takes the beloved mahjong solitaire format and immerses it in a breathtaking underwater world. With a stellar 4.2/5 rating from thousands of players, this game has established itself as a premier choice for puzzle enthusiasts seeking both challenge and visual beauty.

The game transforms traditional mahjong tiles into gorgeous sea-themed artwork, featuring dolphins, jellyfish, eels, starfish, and colorful clams. Each tile is meticulously designed to capture the essence of marine life, creating an engaging visual experience that enhances the classic gameplay.

Core Features

Four Distinct Ocean Worlds

Explore diverse underwater environments across 50 carefully crafted levels : - Coral Reef : Navigate through vibrant coral formations with tropical marine life - Beach : Experience shallow water environments with coastal creatures - Deep Ocean : Venture into the mysterious depths with rare deep-sea species - Arctic : Discover the icy waters filled with polar marine animals

Progressive Difficulty System

The game features an intelligent progression system where each level becomes increasingly challenging. You must complete one level to unlock the next, ensuring a smooth learning curve that keeps players engaged without overwhelming beginners.

Visual Excellence

Every background showcases the deep ocean with animated fish and sea creatures swimming gracefully across the screen. The cute animations and fluid movements create a wonderfully immersive gaming experience that sets this mahjong game apart from traditional versions.

Scoring and Competition

Earn stars for completing levels efficiently and watch your score climb on the integrated leaderboard. The automatic score submission feature lets you compete with players worldwide, adding a competitive element to this relaxing puzzle game.

How to Play

Basic Gameplay Rules

Oceans Mahjongg follows classic mahjong solitaire rules with ocean-themed twists:

  1. Match Identical Tiles : Click on two matching tiles to remove them from the board
  2. Open Tile Rule : Only select tiles that are "open" - having at least one free side (left or right) and not covered by another tile
  3. Clear the Board : Remove all tiles to complete the level
  4. Progress Through Levels : Unlock new challenges by completing previous levels

Helpful Game Features

  • Eye Hint Tool : Use the eye option to quickly identify all open tiles on the board
  • Shuffle Option : Rearrange tiles when stuck (note: this will reduce your final score)
  • Visual Indicators : The game clearly shows which tiles are selectable

Game Controls

Mouse Controls : - Left Click : Select and match tiles - Eye Icon : Highlight all open tiles - Shuffle Button : Reorganize remaining tiles

Mobile Touch Controls : - Tap : Select tiles for matching - Pinch/Zoom : Adjust view for better tile visibility - Drag : Pan across larger game boards

Why Play Oceans Mahjongg

Perfect for All Skill Levels

Whether you're a mahjong veteran or complete beginner, Oceans Mahjongg offers an accessible entry point with its "Easy" difficulty rating while still providing substantial challenges in later levels.

Relaxing Gaming Experience

The combination of soothing ocean sounds, beautiful underwater visuals, and methodical tile-matching creates a perfect stress-relief activity. It's ideal for unwinding after work or taking a peaceful break during busy days.

No Download Required

As an HTML5 game, Oceans Mahjongg runs directly in your web browser without any downloads or installations. Simply visit the game page and start playing immediately on any device.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices - desktop computers, laptops, tablets, and smartphones. The responsive design ensures optimal performance regardless of screen size.

Brain Training Benefits

Mahjong games like Oceans Mahjongg provide excellent cognitive exercise, improving: - Pattern Recognition : Identifying matching tiles enhances visual processing - Strategic Thinking : Planning moves ahead develops problem-solving skills - Memory Enhancement : Remembering tile positions strengthens recall abilities - Concentration : Focused gameplay improves attention span

Frequently Asked Questions (FAQ)