Click Battle: Madness

Seele01-Flash
By
Click Battle: Madness is an exciting strategy defense game where you command powerful wizards to defend your magical village from relentless Viking invasions. Use strategic thinking and magical powers to protect your homeland in this free browser-based adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Click Battle: Madness". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Adopt a **3D Toon-Shaded / Cel-Shaded** aesthetic to mimic the original 2D cartoon art style. Use bright, highly saturated colors (Red, Blue, Green, Yellow) to distinguish wizard types clearly on small screens. * **Camera Perspective**: Use an **Orthographic Camera** positioned at an isometric angle (fixed view) to ensure the grid and the battlefield are clearly visible without perspective distortion. * **Key Models**: * **The Grid**: A 5x5 or 4x4 grid of "Wizard Blocks" (can be cubes or low-poly wizard busts) located at the bottom-left or center-bottom of the screen. * **The Wall**: A stone fortification on the left side of the screen with glowing "Magic Cannons" corresponding to the grid rows. * **Enemies (Vikings)**: Low-poly Viking characters with axes/shields spawning from the right and moving left toward the wall. Use `InstancedMesh` for rendering many enemies efficiently. * **Projectiles**: Simple glowing geometric shapes (spheres, jagged bolts) with `TrailRenderer` or particle trails for spell effects. * **Mobile Optimization**: Use simple geometry for the environment (plane for ground). Limit dynamic lights; bake ambient occlusion into textures if possible. Use a single texture atlas for all characters to reduce draw calls. ### 2. Audio Requirements * **BGM**: Upbeat, quirky orchestral "Battle March" music. Think medieval instruments (lute, drums) but played at a frantic, electronic-remix tempo to match the "Madness" title. * **SFX**: * **Selection**: A satisfying "pop" or high-pitched magical chime when tapping a group of wizards. * **Attack**: Distinct sounds for elements: *Whoosh* (Fire), *Crack* (Ice), *Zap* (Lightning), *Squelch* (Acid/Nature). * **Impact**: Comical "Oof" or "Argh" sounds when Vikings are hit. * **Game Over**: A breaking stone sound (wall crumbling) followed by a sad trombone effect. ### 3. Gameplay Loop * **Core Mechanic (Match-Defense)**: The game combines Match-3 mechanics with Tower Defense. * The player sees a grid of colored wizards. * Vikings approach from the right side of the screen. * **Action**: Player taps a cluster of 2 or more adjacent same-colored wizards. * **Reaction**: The cluster disappears, and the corresponding elemental spell is fired from the wall at the enemies. * *Red*: Fireball (Splash damage). * *Blue*: Ice Bolt (Slows enemies). * *Green*: Acid (Damage over time). * *Yellow*: Lightning (Chain damage). * **Replenishment**: When a cluster is cleared, new wizards drop down from the top of the grid to fill the empty spaces immediately. * **Win/Loss Condition**: * **Loss**: If Vikings reach the wall and deplete its Health Bar (HP) to zero. * **Win**: Survive all waves of enemies or achieve a target high score (Endless Mode). ### 4. Mobile Controls & Interaction * **Touch Interaction**: * Implement `Raycaster` for touch detection. * **Tap**: Tapping a wizard checks for adjacent same-colored neighbors. If valid (>1), trigger the attack immediately. * **Visual Feedback**: When touched, the selected group should scale up slightly (1.2x) or flash white before disappearing. Add a small particle explosion (confetti style) when blocks break. * **Orientation**: **Landscape Mode** is preferred to allow a wide view of the battlefield (Vikings approaching from far right). * **UI Layout**: * **Wizard Grid**: Occupies the bottom-left 40% of the screen (thumb-friendly zone). * **Battlefield**: Occupies the top/middle area. * **Pause/Menu**: Top-right corner (safe area, away from action). * **Haptics**: Trigger a short, sharp vibration (`navigator.vibrate(20)`) whenever a spell is successfully cast to provide tactile confirmation. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Click Battle: Madness is an engaging strategy defense game that combines magical combat with tactical gameplay. In this thrilling adventure, you take control of a village of powerful wizards who must defend their homeland against waves of attacking Vikings. The game offers a perfect blend of strategy, action, and fantasy elements that will keep you engaged for hours.

With its intuitive click-based gameplay mechanics, players can quickly jump into the action while still enjoying deep strategic elements. The game features colorful graphics, engaging combat scenarios, and progressively challenging levels that test your defensive skills.

Core Features

Strategic Wizard Defense

Command a variety of magical defenders, each with unique abilities and spells. Position your wizards strategically across the battlefield to create the most effective defense against the Viking hordes.

Progressive Difficulty System

Face increasingly challenging waves of Viking attackers as you advance through the game. Each level introduces new enemy types and tactical challenges that require adaptive strategies.

Free Browser Gameplay

Enjoy complete access to all game features without any cost. No downloads, installations, or subscriptions required - simply open your browser and start defending your magical village.

Instant Action Combat

Experience fast-paced battles with responsive click controls that make commanding your magical forces both intuitive and exciting.

Game Mechanics

The core gameplay revolves around strategic positioning and resource management. Players must carefully place their wizard defenders while managing magical energy and spell cooldowns. Success depends on understanding enemy movement patterns and adapting your defensive strategy accordingly.

Magical Combat System

Each wizard possesses unique magical abilities that can be upgraded and enhanced throughout the game. Combine different spell types to create devastating defensive combinations.

Viking Enemy Variety

Face multiple types of Viking attackers, each requiring different defensive approaches. From fast scouts to heavily armored warriors, every enemy type presents unique challenges.

Operation Guide

Basic Controls: - Mouse Click : Select and command wizards, cast spells, and interact with game elements - Drag and Drop : Position defenders and arrange battlefield formations - Menu Navigation : Access upgrades, settings, and level progression through intuitive menus

Strategic Tips: - Study Viking attack patterns before placing your defenders - Balance offensive spells with defensive positioning - Upgrade your most effective wizards first - Use terrain advantages to maximize defensive efficiency

Why Play Click Battle: Madness

This game offers the perfect combination of accessibility and depth. Whether you're a strategy game veteran or new to the genre, Click Battle: Madness provides an engaging experience that's easy to learn but challenging to master. The magical theme adds charm and personality to the strategic gameplay, while the Viking invasion scenario creates compelling tension and excitement.

The free-to-play model means you can dive right into the action without any barriers, making it perfect for quick gaming sessions or extended strategic campaigns. With browser compatibility across all devices, you can defend your magical village anywhere, anytime.

Frequently Asked Questions (FAQ)