Jewel Legend

Seele01-Flash
By
Jewel Legend is a captivating match-3 puzzle game where you align sparkling jewels to clear levels and unlock exciting challenges. With strategic power-ups and fast-paced gameplay, become the ultimate jewel matching legend.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Jewel Legend". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A glossy, "2.5D" arcade puzzle aesthetic set in a stylized mining or cave environment (inspired by the wooden title screen). * **Camera**: Fixed Orthographic Camera centered on the game board to ensure consistency across different mobile aspect ratios. * **Game Board**: An 8x8 grid. The background of the board should be a semi-transparent dark pane with a wooden border texture (referencing the title screen sign). * **Jewel Models**: Use Low-poly 3D primitives to represent different jewel types: * Red: Octahedron (Ruby) * Blue: Icosahedron (Sapphire) * Green: Box/Cube (Emerald) * Yellow: Tetrahedron (Topaz) * Purple: Torus (Amethyst) * White/Diamond: Sphere (Special) * **Materials**: Use `MeshPhysicalMaterial` with high `transmission`, `roughness: 0`, and `metalness: 0.1` to simulate glass/gem refraction. Add point lights to make them sparkle. * **Background**: A dark purple/blue gradient background with slowly floating dust particles (low-poly planes) to create depth without consuming performance. * **Performance**: Use `InstancedMesh` for the jewels if possible to reduce draw calls, or ensure geometry is simple. Texture resolution should be capped at 1024x1024. ### 2. Audio Requirements * **BGM**: A light, mysterious, yet upbeat "cave exploration" track (synth-marimba or crystal bells) that loops seamlessly. * **Sound Effects (SFX)**: * **Select**: A high-pitched, short crystal "ting". * **Swap**: A soft "whoosh" air sound. * **Match/Break**: A satisfying "glass crunch" or magical chime. * **Combo**: An escalating scale of chimes (C-E-G-C) for consecutive matches. * **Invalid Move**: A low-pitched "thud" or spring wobble sound. ### 3. Gameplay Loop * **Core Mechanic**: Classic Match-3. The player swaps two adjacent jewels (horizontally or vertically). * **Logic**: * If a swap results in a line of 3 or more identical jewels, they disappear (scale down to 0). * Jewels above fall down to fill the empty spaces (gravity animation). * New random jewels spawn above the board and fall in. * If no match occurs, the jewels swap back to original positions. * **Scoring**: 100 points per jewel destroyed. Combo multipliers (x2, x3) for chain reactions. * **Win/Loss**: This is an endless "Score Attack" mode. The game tracks the "High Score" locally. A "Time Bar" decreases over 60 seconds; matches add small amounts of time back. ### 4. Mobile Controls & Interaction * **Touch Controls**: * Implement `Raycaster` handling for `touchstart`, `touchmove`, and `touchend`. * **Swipe Logic**: Detect the direction of the finger movement (Delta X vs Delta Y) to trigger the swap instantly. * **Tap Logic**: Fallback support for "Tap source, then Tap destination". * **Animations**: Use a tweening library (like GSAP or TWEEN.js) for smooth swapping and falling animations. Do not snap positions instantly. * **UI/UX**: * Layout: Portrait mode preferred. * Top Header: Wooden plank style (Canvas texture or HTML overlay) displaying "Score" and "Time". * Pause Button: Top right corner (minimum 44x44px hit area). * **Haptics**: Trigger `navigator.vibrate(20)` on a successful match. * **Visual Feedback**: When a jewel is selected/touched, it should pulse (scale up 1.1x) and emit a small light. Matches should spawn a simple particle explosion (small colored squares fading out). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Jewel Legend

Jewel Legend is a brilliant match-3 puzzle game that combines classic gem-matching mechanics with modern gameplay features. Rated 4.2/5 by players, this free online game challenges you to match colorful jewels, create powerful combos, and progress through increasingly challenging levels. Whether you're a puzzle game veteran or new to the genre, Jewel Legend offers an engaging experience that's easy to learn but difficult to master.

Core Features

Jewel Legend stands out in the crowded match-3 genre with several compelling features:

Completely Free to Play

Enjoy the full Jewel Legend experience without any cost. No hidden fees, no premium content locks - just pure puzzle gaming fun accessible to everyone.

Instant Browser Gameplay

Built with HTML5 technology, Jewel Legend runs smoothly in any modern web browser. No downloads, installations, or app store visits required - simply click and play immediately.

Cross-Platform Compatibility

Seamlessly switch between desktop and mobile devices. The game automatically adapts to your screen size, providing an optimal experience whether you're using a computer, tablet, or smartphone.

Strategic Power-Up System

Unlock and utilize various power-ups to overcome challenging levels. From explosive gems to line-clearing boosters, strategic use of these abilities is key to achieving high scores and progressing through difficult stages.

Progressive Difficulty

Start with simple matching challenges and gradually face more complex puzzles that require advanced planning and combo creation. Each level introduces new obstacles and objectives to keep gameplay fresh.

Gameplay Mechanics

The core gameplay revolves around matching three or more identical jewels to clear them from the board:

Basic Matching Rules

  • Align at least three jewels of the same color horizontally or vertically
  • Diagonal matches don't count - stick to straight lines
  • Larger matches (4+ jewels) create special power-up gems
  • Clear all required jewels or achieve target scores to complete levels

Combo System

Master the art of chain reactions by creating matches that trigger additional matches. When jewels fall into new positions after a match, they might form new combinations automatically, creating satisfying combo chains that multiply your score.

Special Jewels and Power-Ups

Create special jewels by matching four or more gems: - Striped Jewels : Clear entire rows or columns - Wrapped Jewels : Create explosive areas of effect - Color Bombs : Eliminate all jewels of a chosen color

Combine special jewels for even more powerful effects and spectacular board-clearing explosions.

Controls and Interface

Desktop Controls

Use your mouse to click and drag jewels into adjacent positions. The intuitive point-and-click interface makes it easy to plan your moves and execute complex strategies.

Mobile Controls

On smartphones and tablets, simply tap and slide jewels with your finger. The responsive touch controls feel natural and precise, perfect for on-the-go puzzle solving.

User-Friendly Design

The clean, colorful interface ensures that players of all ages can enjoy the game. Large, clearly defined jewels and smooth animations make every match satisfying and visually appealing.

Why Play Jewel Legend

Jewel Legend offers the perfect blend of accessibility and depth that makes it ideal for both casual players and puzzle enthusiasts:

Stress Relief : The rhythmic nature of matching jewels provides a relaxing, meditative gaming experience that helps you unwind after a busy day.

Brain Training : Regular play improves pattern recognition, strategic thinking, and quick decision-making skills while keeping your mind sharp and engaged.

Universal Appeal : With simple rules but complex strategies, Jewel Legend appeals to players of all skill levels and ages. It's equally enjoyable for a quick 5-minute break or extended gaming sessions.

No Commitment Required : As a free browser game, you can play whenever inspiration strikes without worrying about subscriptions, purchases, or storage space on your devices.

Social Competition : Challenge friends and family to beat your high scores, or simply enjoy the personal satisfaction of improving your own puzzle-solving abilities over time.

Frequently Asked Questions (FAQ)