Elemental Master

Seele01-Flash
By
Elemental Master is an engaging merge strategy game where you harness the power of nature's elements. Combine basic elements like Earth and Fire to unlock devastating magical spells and dominate epic battles.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Elemental Master**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a clean, vibrant 2D-in-3D aesthetic (using 3D planes or flattened meshes) similar to casual mobile puzzle games. The art style should be "Vectorized Cartoon," with bold outlines and high saturation. * **Element Tokens:** Design distinct circular tokens representing elements. Start with at least 4 types: * *Earth:* Brown tones, rocky texture or leaf icon (as seen in the provided image). * *Fire:* Red/Orange tones, flame icon. * *Water:* Blue tones, droplet icon. * *Air:* Light blue/White tones, swirl icon. * **The Board (Grid):** A 5x5 or 6x6 grid situated on a mystical table or floating platform. The grid cells should have a subtle glow. * **The Enemy:** A large, menacing "Boss" character model (or sprite) standing at the top of the screen (opposite the player's grid). This enemy should have a health bar. * **Effects:** * *Merge:* A satisfying "poof" particle explosion and scaling animation when two identical elements are combined. * *Attack:* When a high-level merge occurs, a projectile (fireball, rock, water jet) flies from the board to the enemy. * **Mobile Optimization:** Use simple geometries (Cylinders for tokens, PlaneGeometries for icons) to keep draw calls low. Use instanced meshes if possible for the grid elements. ### 2. Audio Requirements * **BGM:** An energetic, orchestral fantasy loop. It should feel heroic but lighthearted, similar to "battle preparation" music in RPGs. * **SFX:** * *Spawn:* A soft "pop" sound when clicking to generate a new element. * *Drag:* A subtle "whoosh" or magnetic hum when holding a token. * *Merge:* A satisfying, high-pitched magical chime or "ding" (ascending in pitch for higher-level merges). * *Attack:* Elemental sounds (burning fire, splashing water) followed by a "thud" or impact sound on the enemy. ### 3. Gameplay Loop * **Resource Management:** The player has a "Spawn Button" at the bottom center. Clicking it consumes a small amount of "Mana" (or has a cooldown) to drop a Level 1 element onto a random empty grid slot. * **The Merge Mechanic:** * Drag and drop a Level 1 element onto another Level 1 element of the same type to create a Level 2 element. * Repeat to create Level 3, 4, etc. * **Combat Logic:** * Every merge action adds to an "Attack Meter." * Reaching a specific merge level (e.g., Level 3+) automatically triggers an attack on the Enemy, dealing damage based on the element's level. * Alternatively, the player can drag a high-level element directly onto the Enemy to "cast" it for massive damage. * **Win/Loss:** * **Win:** Deplete the Enemy's HP bar to zero. Proceed to the next level (spawn a new, stronger enemy). * **Loss:** If the grid is full and no merges are possible, it's Game Over. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode (Vertical)** is mandatory for one-handed play. * **Touch Input:** * **Raycasting:** Implement precise Raycaster logic for touch events (`touchstart`, `touchmove`, `touchend`). * **Drag & Drop:** The primary interaction. When dragging a token, it should slightly lift up (z-axis offset) and scale up (1.2x) to visualsize the selection clearly under the user's finger. * **Snap-to-Grid:** When the finger is released, the token should visually "snap" to the nearest valid grid cell. * **UI Layout:** * *Top 20%:* Enemy area, HP Bar, and Level Indicator. * *Middle 60%:* The puzzle grid (playable area). * *Bottom 20%:* Large "Generate Element" button (easy to tap with thumb) and current Score/Mana display. * **Haptics:** Trigger `navigator.vibrate(10)` on a successful merge to provide tactile satisfaction. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Elemental Master is a captivating merge strategy game that puts the power of nature's elements at your fingertips. This innovative puzzle game combines strategic thinking with magical combat, challenging players to master the art of elemental fusion. Start your journey with basic elements and evolve into the ultimate spellcaster through clever merging and tactical gameplay.

Core Features

Elemental Fusion System

The heart of Elemental Master lies in its unique merging mechanism. Begin with fundamental elements like Earth and Fire, then combine matching elements to unlock increasingly powerful magical forces. Each successful merge enhances your attack points and opens new strategic possibilities.

Strategic Combat Mechanics

Unlike simple merge games, Elemental Master incorporates epic battle elements where your merged creations become devastating weapons. Cast powerful spells by combining different elemental forces, creating unique attack combinations that can crush even the strongest enemies.

Progressive Power System

As you advance through the game, you'll discover rare elemental combinations that unlock special abilities. The progression system rewards strategic thinking and experimentation, encouraging players to explore different merging strategies to maximize their magical potential.

Cross-Platform Accessibility

Enjoy seamless gameplay across all your devices. Whether you're on a desktop computer, smartphone, or tablet, Elemental Master delivers the same high-quality experience without requiring any downloads or installations.

Gameplay Mechanics

The gameplay revolves around intelligent element management and strategic combining. Players must balance immediate power gains with long-term strategic planning, deciding when to merge elements for quick boosts or save them for more powerful combinations.

Element Generation and Movement

New elements appear regularly, giving you fresh opportunities to create powerful combinations. The drag-and-drop interface makes organizing your elemental arsenal intuitive and satisfying.

Spell Casting System

Once you've merged elements into powerful forms, you can unleash them as devastating spells against your opponents. Each elemental combination produces unique magical effects, from fiery explosions to earth-shattering quakes.

Game Controls

Desktop Controls: - Click : Generate new elements when available - Click and Hold : Select and move elements around the game board - Drag and Drop : Combine matching elements to create more powerful versions

Mobile Controls: - Tap : Generate new elements - Touch and Hold : Pick up elements for movement - Drag : Move elements to desired positions for merging

The intuitive control scheme ensures that both newcomers and experienced merge game players can jump right into the action.

Why Play Elemental Master

Perfect Blend of Strategy and Action

Elemental Master successfully combines the addictive nature of merge games with strategic depth and magical combat elements. This unique combination keeps gameplay fresh and engaging for extended play sessions.

Completely Free Gaming Experience

Access the full game experience without any cost. No hidden fees, no premium currencies, and no pay-to-win mechanics – just pure gaming enjoyment.

Instant Play Accessibility

No downloads, installations, or account registrations required. Simply open your browser and start mastering the elements immediately.

Universal Device Compatibility

Whether you prefer gaming on a large desktop screen or want to play on-the-go with your mobile device, Elemental Master adapts perfectly to your preferred platform.

Engaging Progression System

The game offers satisfying progression as you discover new elemental combinations and unlock more powerful spells. Each playthrough presents opportunities to refine your strategy and achieve higher scores.

Frequently Asked Questions (FAQ)