Wizard.io - Magic Arena Survival Game

Seele01-Flash
By
Wizard.io is an enchanting 2D action survival game where you play as a powerful wizard battling endless hordes of mystical creatures. Cast elemental spells, collect magical orbs, and fortify your base in dynamic arena combat.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Wizard.io". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly 3D cartoon aesthetic (resembling the "Clash of Clans" or "Archero" art style). Use a dark, high-contrast color palette: Deep Midnight Blue for the background/fog, accented by glowing Neon Purple/Pink for magic and Bright Orange for pumpkins. * **Player Character:** A stylized Wizard composed of simple primitives (cone for hat, cylinder for robes). The wizard must have a glowing staff tip. * **Enemies:** * *Skeletons:* White blocky humanoids with gray helmets. * *Dire Wolves:* Dark blue/grey quadruped shapes with red eyes. * *Boss:* A giant floating pumpkin (Jack-o'-lantern) with a green aura. * **Environment:** An infinite plane (dark grass texture) populated with obstacles like Gravestones and Pumpkins. Use a **Top-Down Isometric Camera** angled at 45 degrees. * **Performance:** Use `THREE.InstancedMesh` for rendering enemies and environmental props to ensure 60FPS on mobile devices when hundreds of enemies are on screen. ### 2. Audio Requirements * **BGM:** Procedurally generated (using `AudioContext`) upbeat, spooky-orchestral track. Think "Danny Elfman" meets 8-bit arcade. Fast-paced staccato strings and a theremin-like lead. * **SFX:** * *Magic Missile:* High-pitched synthetic "ZAP" or "PEW". * *Enemy Hit:* Dull "THUD" or bone-cracking sound. * *Gem Pickup:* A bright, high-frequency "DING" or chime. * *Level Up:* A rising major triad fanfare. ### 3. Gameplay Loop * **Genre:** Horde Survival / Bullet Heaven (similar to *Vampire Survivors*). * **Core Mechanics:** 1. **Auto-Attack:** The Wizard automatically fires projectiles at the nearest enemy within range. 2. **Swarm Logic:** Enemies spawn continuously from the edges of the screen and move directly toward the player. Spawn rate increases over time. 3. **Collection:** Defeated enemies drop "Mana Orbs" (glowing spheres). Collecting them fills an XP bar. * **Progression:** Upon filling the XP bar, the game pauses, and the player chooses 1 of 3 upgrades (e.g., "Multishot", "Faster Fire Rate", "Orbiting Fireball"). * **Win/Loss:** The game is an endless survival mode. Game Over occurs if Player HP reaches 0. ### 4. Mobile Controls & Interaction * **Movement:** A **Virtual Joystick** located at the bottom-center or floating based on the first touch point. The player drags to move the wizard. * **Orientation:** Portrait Mode (Vertical) preferred for one-handed "coffee break" gameplay. * **Feedback:** * *Visual:* Flash enemies white when hit. Display floating damage numbers (billboarded sprites). * *Haptic:* Trigger `navigator.vibrate(50)` when the player takes damage or levels up. * **UI Layout:** * *Top:* XP Bar (full width) and Kill Count. * *Player:* Small Health Bar floating above the Wizard's head. * *Upgrade Menu:* Large, thumb-friendly buttons (minimum 60px height) appearing in the center of the screen when leveled up. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Wizard.io is a captivating magic-themed survival game that combines intense arena combat with strategic base building. Set in a mystical realm filled with magical creatures and supernatural challenges, this 2D top-down action game offers endless entertainment for fantasy gaming enthusiasts. The game features stunning visuals with a charming cartoon art style, complete with magical forests, glowing orbs, and enchanted creatures that create an immersive fantasy atmosphere.

Core Features

Spell-Casting Combat System

Master the art of elemental magic with a diverse spell system that lets you unleash devastating attacks on your enemies. Combine different magical elements to create powerful spell combinations, each with unique effects and tactical advantages. The intuitive combat system makes it easy to learn but challenging to master.

Dynamic Arena Battles

Engage in thrilling battles across beautifully crafted magical arenas. Each arena presents unique challenges with different enemy types, environmental hazards, and strategic opportunities. The top-down perspective gives you a tactical overview of the battlefield, allowing for strategic positioning and spell targeting.

Progressive Character Development

  • Magical Orb Collection : Gather mystical orbs during battles to enhance your wizard's power
  • Base Fortification : Upgrade and customize your wizard's home base for strategic advantages
  • Artifact Discovery : Uncover powerful magical artifacts that provide game-changing abilities
  • Spell Evolution : Unlock new spells and upgrade existing ones as you progress

Cross-Platform Accessibility

Enjoy seamless gameplay across multiple platforms. Whether you're playing on your computer browser, Android phone, or iOS device, Wizard.io delivers consistent performance and engaging gameplay experiences.

Gameplay Mechanics

The core gameplay revolves around surviving waves of mystical enemies while continuously improving your wizard's abilities. You'll start with basic spells and gradually unlock more powerful magic as you defeat creatures and collect resources. The horde survival format ensures that each playthrough feels fresh and challenging, with increasingly difficult waves testing your strategic thinking and reflexes.

Strategic Base Building

Between battles, return to your wizard's sanctuary to upgrade facilities, craft new spells, and prepare for the next challenge. Strategic base improvements directly impact your combat effectiveness, making resource management a crucial aspect of long-term success.

Controls and Accessibility

The game features intuitive controls designed for both desktop and mobile players: - Movement : Use WASD keys, arrow keys, or drag with mouse/touch to move your wizard - Interaction : Left mouse button or touch to interact with UI elements and cast spells - Cross-Platform : Optimized for both desktop browsers and mobile devices

Why Play Wizard.io

Wizard.io stands out in the crowded survival game genre by combining magical themes with strategic depth. The game is completely free to play with no hidden costs or paywalls blocking essential content. Its charming visual style appeals to players of all ages, while the strategic depth keeps experienced gamers engaged for hours.

The combination of real-time combat, spell crafting, and base building creates a uniquely satisfying gameplay loop that rewards both quick reflexes and strategic planning. Whether you're looking for a quick gaming session or an extended adventure, Wizard.io adapts to your playstyle.

Frequently Asked Questions (FAQ)