Salazar - Magical Matching Puzzle Game

Seele01-Flash
By
Salazar is an enchanting magical matching puzzle game where you assist a powerful warlock in creating mysterious potions by combining magical elements like clovers, mushrooms, and mystical stones.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Salazar**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A "Magical Laboratory" theme using a **Low-Poly / Toon-shaded** aesthetic suitable for mobile performance. The color palette should be vibrant against a dark background (dark slate blue) to make items pop. * **The Grid**: Create a 5x5 (or 6x6) tile board representing a wizard's table. The board texture should be a dark blueish-slate with gold diamond accents at the intersection of grid lines (referencing the screenshot). * **Game Pieces (3D Models)**: Use simple geometric primitives to represent the magical ingredients, organized by "Tiers" for the merge mechanic: * *Tier 1*: Four-leaf Clover (Green, composed of flattened hearts/spheres). * *Tier 2*: Mushroom (Red cap with white spots, cylinder stem). * *Tier 3*: Skull (Beige/Bone color, simplified shape). * *Tier 4*: Mystical Stone (Purple, faceted rock/icosahedron). * *Tier 5*: Green Potion (Flask shape with glowing green liquid). * **Lighting**: Soft ambient light combined with a directional light casting shadows to give depth to the board. Add a point light near the "active" merging area. * **Performance**: Use `THREE.InstancedMesh` for the grid tiles if possible. Keep geometry segment counts low (Mobile-first optimization). ### 2. Audio Requirements * **BGM**: A loopable, whimsical, and mysterious track featuring pizzicato strings, bells, and a light flute melody. It should feel "magical" but relaxing (Brain Teaser vibe). * **SFX**: * *Placement*: A soft "thud" or "clack" when an item is placed on the board. * *Merge Success*: A rising magical chime or sparkle sound (arpeggio). * *Invalid Move*: A low-pitched buzzer or dull wood sound. * *Power-up*: A distinct "whoosh" or magical charging sound. * *Game Over*: A descending, slightly comical disappointed trombone or fading magic sound. ### 3. Gameplay Loop * **Core Mechanic (Triple Town style)**: * The player is given a "Next Item" (randomly generated from lower tiers). * The player taps an empty grid cell to place the item. * **Merge Logic**: If **3 or more** items of the same Tier are adjacent (horizontally or vertically) after placement, they disappear and merge into **one single item of the next Tier** at the position of the placement. * **Chain Reactions**: If a merge creates a new item that forms a group of 3 with existing neighbors, a combo merge triggers immediately. * **Objective**: Merge items up to the highest tier (The Potion) to maximize score. * **Economy**: Earn "Coins" for every successful merge. * **Lose Condition**: The game ends when the grid is full and no merges are possible. * **Power-ups**: Implement UI buttons for: * *Undo*: Revert the last move. * *Remove*: Destroy a specific item on the board. ### 4. Mobile Controls & Interaction * **Camera**: Use an **OrthographicCamera** tilted at a slight angle (isometric view) or top-down view to ensure grid precision on small screens. * **Input Handling**: * Implement a **Raycaster** that detects touch/click events on the grid plane. * **Tap/Click**: Places the current piece onto the targeted empty cell. * **Animations (Tweening)**: * When items merge, use a library like GSAP or TWEEN to animate the surrounding items moving toward the merge center before popping into the new item. * Add a slight "squash and stretch" bounce effect when an item is placed. * **UI Layout**: * Top: Current Score and High Score. * Right/Bottom (depending on orientation): A "Next Piece" preview area. * Bottom: Power-up buttons (Undo, Remove) sized at least 44x44px for touch accessibility. * Ensure the UI scales correctly for both Portrait and Landscape modes. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Salazar is a captivating magical matching puzzle game that combines strategy, logic, and enchanting fantasy elements. With a solid 3.5/5 rating from players, this brain-teasing adventure puts you in the role of a magical assistant to the powerful warlock Salazar. Your mission is to help create mysterious potions by skillfully combining various magical ingredients through clever matching mechanics.

The game features a unique twist on traditional matching puzzles, where connecting three or more identical items creates entirely new magical elements. This progressive combination system keeps gameplay fresh and challenging as you work toward creating the most powerful magical items.

Core Features

Magical Element Mixing System

The heart of Salazar lies in its innovative ingredient combination mechanics. You'll work with enchanting elements including:

  • Clovers : Lucky magical plants that serve as base ingredients
  • Mushrooms : Mystical fungi with powerful properties
  • Mystical Stones : Ancient gems filled with arcane energy
  • Green Potions : Magical elixirs that enhance your creations

Each successful combination creates new, more powerful items, encouraging strategic thinking about which elements to match and when.

Power-Up Shop System

When you're running low on moves, visit the magical shop to purchase helpful power-ups using earned coins:

  • Extra Undos : Reverse mistakes and try different strategies
  • Element Remover : Clear unwanted pieces from the board
  • Magnet : Attract and organize scattered elements
  • Sorter : Automatically arrange elements for better combinations

These strategic tools add depth to the puzzle-solving experience and help you overcome challenging situations.

Progressive Difficulty

As you advance through the game, puzzles become increasingly complex, requiring more sophisticated strategies to achieve objectives. The game perfectly balances accessibility for newcomers with engaging challenges for puzzle veterans.

Gameplay Mechanics

Salazar follows intuitive match-three principles but adds unique magical transformation elements:

  1. Connect Elements : Link three or more identical magical items
  2. Create New Items : Successful matches generate new, more powerful elements
  3. Chain Combinations : Continue combining newly created items to reach your objectives
  4. Strategic Planning : Use limited moves wisely to complete each magical recipe
  5. Power-Up Integration : Deploy purchased enhancements at crucial moments

Objective-Based Challenges

Each level presents specific goals that require careful planning and execution. You must create particular magical items or reach certain point thresholds while managing your limited moves effectively.

Operation Guide

Basic Controls

  • Mouse/Touch : Click or tap to select and connect matching elements
  • Drag : Connect multiple elements in sequence for larger combinations
  • Pause Button : Access game menu, return home, or adjust audio settings
  • Power-Up Icons : Click purchased power-ups to activate special abilities

Winning Strategy Tips

  • Plan moves in advance to maximize element combinations
  • Save power-ups for challenging situations near the end of levels
  • Look for opportunities to create chain reactions with multiple matches
  • Focus on creating the specific items required for each objective

Why Play This Game

Perfect for Puzzle Lovers : Salazar offers the perfect blend of familiar matching mechanics with innovative magical transformation systems that keep gameplay engaging and unpredictable.

Stress-Free Gaming : Tagged as an "Easy" game, Salazar provides relaxing puzzle-solving without overwhelming difficulty spikes, making it perfect for players of all skill levels.

Cross-Platform Accessibility : Built with HTML5 technology, the game runs smoothly on computers, tablets, and smartphones through any modern web browser.

Charming Fantasy Theme : The cute magical aesthetic and enchanting soundtrack create an immersive experience that appeals to players who enjoy fantasy-themed games.

Brain Training Benefits : As a brain teaser, Salazar helps improve pattern recognition, strategic planning, and logical thinking skills while providing entertainment.

No Download Required : Jump straight into the magical world without installations or lengthy setup processes - perfect for quick gaming sessions or extended puzzle marathons.

Frequently Asked Questions (FAQ)