1001 Arabian Nights - Match 3 Puzzle Game

Seele01-Flash
By
1001 Arabian Nights is an enchanting Match-3 puzzle game that transports you to the magical world of Arabian tales. Match colorful gems, solve challenging puzzles, and experience the wonder of ancient Middle Eastern folklore.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "1001 Arabian Nights: Gem Matcher". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2D Cartoon/Chibi aesthetic rendered within a 3D Three.js scene. Use an **Orthographic Camera** to ensure a flat, crisp puzzle interface. * **Background**: A deep blue, magical desert night sky with silhouettes of minarets, palace domes, and dunes. Add a subtle parallax effect with twinkling stars or floating sand particles in the background depth. * **Game Board**: A semi-transparent, golden-framed 8x8 grid centered on the screen. * **Gem Assets (Sprites/Planes)**: * **Standard Items**: Red Ruby, Blue Sapphire, Green Emerald, Yellow Topaz, Purple Amethyst. * **Special Themed Items**: Magic Lamp (Wildcard), Golden Scimitar, Persian Carpet. * **Character Integration**: Place the "Prince" and "Princess" characters (from the reference image) on the left and right sides of the board as 2D sprites. They should have simple idle animations (scaling/bobbing) and react with a "Happy" animation when a combo occurs. * **Effects**: Use `THREE.Points` for particle explosions when gems match (gold dust or magical sparks). * **Mobile Optimization**: Use a single Texture Atlas for all sprites to reduce draw calls. Limit particle count to 100 per explosion. ### 2. Audio Requirements * **BGM**: A looping, mysterious, yet upbeat Arabian-style track featuring instruments like the Oud, Kanoon, or Flute (Nay). * **Sound Effects (SFX)**: * **Select**: A subtle crystal "ting". * **Swap**: A "whoosh" of sand. * **Match**: A magical chime or satisfying crunch sound. * **Combo/Special**: A loud gong or orchestral hit. * **Level Complete**: Short oriental fanfare. ### 3. Gameplay Loop * **Core Mechanic**: Classic Match-3. Players swap adjacent tiles to create lines of 3 or more identical items. * **The "Story" Objective**: Instead of just score, the goal is to bring specific **"Artifact Pieces"** (e.g., a piece of a vase) from the top of the grid to the bottom row. These pieces appear randomly. * **Logic Flow**: 1. Player inputs a swap. 2. Validate match (horizontal or vertical). 3. If match: Remove items -> Play particle effect -> Gravity falls (items above drop down) -> Spawn new items at top -> Check for chain reactions. 4. If no match: Revert swap animation (invalid move). * **Win Condition**: Collect the required number of Artifact Pieces within a specific number of moves. * **Fail Condition**: Run out of moves before collecting the artifacts. ### 4. Mobile Controls & Interaction * **Input Handling**: Use `THREE.Raycaster` to map touch/mouse coordinates to the grid. * **Gestures**: Implement two modes seamlessly: 1. **Tap-to-Swap**: Tap one gem (highlight it), then tap an adjacent one. 2. **Swipe**: Detect touch start and touch end deltas to calculate direction (Up, Down, Left, Right). * **Orientation**: Support **Landscape Mode** primarily (to fit the characters on the sides as per the screenshot), but scale the grid dynamically to ensure the play area is always fully visible on different aspect ratios. * **Feedback**: * **Visual**: Selected gem should pulsate or glow. * **Haptic**: Trigger `navigator.vibrate(50)` on a successful match. * **Motion**: Use a tweening library (like GSAP or TWEEN.js) for smooth swap animations. Do not snap positions instantly. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

1001 Arabian Nights is a captivating Match-3 puzzle game that brings the timeless magic of Arabian folklore to your screen. With a solid 3.7/5 rating from players worldwide, this enchanting game combines classic gem-matching mechanics with the rich storytelling tradition of the Middle East. Each level presents unique challenges that will test your puzzle-solving skills while immersing you in a world of sultans, genies, and ancient mysteries.

Core Features

Magical Arabian Theme

Immerse yourself in beautifully designed levels inspired by classic Arabian tales. The game features stunning visuals with Middle Eastern architecture, mystical characters, and atmospheric backgrounds that bring the world of 1001 Arabian Nights to life.

Classic Match-3 Mechanics

Enjoy the timeless satisfaction of matching three or more identical gems to clear them from the board. The game builds upon this proven formula with special power-ups, combo chains, and strategic elements that keep gameplay fresh and engaging.

Progressive Difficulty

Each stage presents new challenges with unique layouts, obstacles, and objectives. From simple gem-clearing tasks to complex puzzle scenarios, the difficulty gradually increases to keep players engaged throughout their journey.

Brain Training Benefits

As a brain teaser game, 1001 Arabian Nights helps improve pattern recognition, strategic thinking, and problem-solving skills. Each puzzle requires careful planning and tactical thinking to achieve the best results.

Gameplay Mechanics

The core gameplay revolves around swapping adjacent gems to create matches of three or more identical items. Successfully completed matches remove gems from the board and may trigger cascading effects for bonus points. Special combinations create powerful boosters that can clear entire rows, columns, or gem types.

Strategic Elements

  • Limited Moves : Many levels challenge you to complete objectives within a specific number of moves
  • Special Gems : Create powerful combinations to unlock explosive effects
  • Obstacles : Navigate around barriers and special tiles that add complexity
  • Multiple Objectives : Each level may have different goals beyond simple gem clearing

How to Play

Basic Controls

  • Mouse/Touch : Click or tap to select gems
  • Drag : Swap adjacent gems to create matches
  • Strategic Planning : Analyze the board before making moves
  • Combo Creation : Look for opportunities to create special gem combinations

Winning Strategies

  • Focus on creating matches at the bottom of the board to trigger cascades
  • Save special gems for challenging situations
  • Plan several moves ahead when possible
  • Prioritize level objectives over simple high scores

Why Play This Game

Perfect for All Skill Levels : Whether you're new to Match-3 games or a seasoned puzzle veteran, 1001 Arabian Nights offers an accessible yet challenging experience. The gradual difficulty curve ensures that players can learn and improve at their own pace.

Relaxing Yet Engaging : The game provides a perfect balance between relaxation and mental stimulation. The beautiful Arabian-themed visuals and soothing gameplay create a calming experience, while the puzzle challenges keep your mind sharp and engaged.

No Download Required : Play instantly in your web browser without any downloads or installations. The HTML5-based game runs smoothly on both desktop and mobile devices, making it perfect for quick gaming sessions anywhere.

Free Entertainment : Enjoy hours of puzzle-solving entertainment completely free. There are no hidden costs or premium content barriers – just pure gaming enjoyment from start to finish.

Frequently Asked Questions (FAQ)