Medieval Defense Z

Seele01-Flash
By
Medieval Defense Z combines classic medieval warfare with zombie apocalypse survival. Command royal powers and strategic defenses to protect your kingdom from endless undead hordes in this engaging tower defense experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Medieval Defense Z". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, toon-shaded 3D aesthetic. The game should feature a side-scrolling perspective (2.5D). The graphics should be clean and vibrant, similar to the vector style of the provided skull icon but translated into 3D geometry. * **The Castle (Left Side)**: A stylized medieval tower or wall section on the left side of the screen. On top of it stands the "King" character (a simple blocky character with a crown and a staff/bow). * **The Enemy (Right Side)**: Generate "Zombie" meshes (green skin, tattered clothes) that spawn from the right and move left towards the castle. Include variations: Standard Zombie (medium speed) and Tank Zombie (large, slow). * **Environment**: A flat grassy plain foreground with a parallax scrolling background featuring spooky trees and a dark sky. * **Performance**: Use `BoxGeometry` and `CylinderGeometry` merged where possible to reduce draw calls. Use simple Lambert materials with a single directional light source to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM**: A looped track combining medieval instruments (lute, drums) with a spooky, minor-key undertone to fit the "Zombie" theme. * **SFX**: * **Shooting**: A "whoosh" sound for arrows or magic projectiles. * **Impact**: A squishy "thud" when a projectile hits a zombie. * **Zombie Death**: A comical groan or crumbling sound. * **Upgrade UI**: A metallic "ching" sound when spending gold. ### 3. Gameplay Loop * **Objective**: Defeat waves of incoming zombies before they deplete the Castle's health. * **Mechanics**: * **Auto-Attack**: The King automatically shoots projectiles at the nearest zombie within range. * **King's Powers (Active Skills)**: The player unlocks abilities (e.g., "Fireball" or "Arrow Rain") that have cooldowns. * **Economy**: Killing zombies drops "Gold." * **Progression**: Between waves or during gameplay, the player can spend Gold to upgrade "Attack Speed," "Damage," or "Castle HP." * **Game Over**: If Castle HP reaches 0, the game ends. * **Victory**: Survive all defined waves (infinite loop with increasing difficulty). ### 4. Mobile Controls & Interaction * **Orientation**: Landscape mode required. * **Touch Controls**: * **Skill Activation**: Large, distinct circular buttons on the bottom right corner for "King's Powers" (Fireball, etc.). * **Targeting (Optional)**: Tap a specific enemy to force the King to target them (Raycasting from touch coordinates). * **UI Layout**: * Top Left: Health Bar (Castle HP). * Top Right: Gold Counter and Wave Counter. * Bottom Left: Upgrade Buttons (Damage +, Speed +) designed as large hit targets (min 48px height). * **Feedback**: Implement `window.navigator.vibrate(50)` on zombie kills and button presses for haptic feedback. Add floating text (damage numbers) rising from enemies upon impact. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Medieval Defense Z

Medieval Defense Z is an exciting tower defense strategy game that merges medieval combat with zombie survival elements. Rated 4.0/5 by players, this game challenges you to harness the King's special powers while strategically placing defensive towers to stop waves of relentless zombies from overrunning your medieval kingdom.

Core Features

Royal Command System

Unlock and master the King's unique powers to turn the tide of battle. These special abilities provide crucial advantages during intense zombie waves, allowing you to unleash devastating attacks or strengthen your defenses when most needed.

Strategic Tower Defense Gameplay

Place various defensive structures strategically across medieval battlefields. Each tower type offers different combat capabilities - from archer towers with long-range precision to magical towers with area-of-effect damage. Success depends on your ability to create synergistic defense combinations.

Progressive Difficulty System

Face increasingly challenging zombie hordes as you advance through levels. Early waves feature basic undead enemies, while later stages introduce powerful zombie variants that require advanced tactical thinking and upgraded defenses.

Cross-Platform Compatibility

  • Completely Free : No payment required to access full gameplay features
  • HTML5 Technology : Runs smoothly in any modern web browser
  • Mobile Optimized : Perfect touch controls for smartphones and tablets
  • No Download Required : Instant play without installation

Gameplay Mechanics

The game follows classic tower defense principles with medieval zombie warfare twists. Zombies follow predetermined paths toward your kingdom, and you must prevent them from reaching the end by strategically placing defensive towers along their route.

Resource Management

Earn coins by defeating zombies, then invest wisely in new towers and upgrades. Balance immediate defensive needs with long-term strategic improvements to handle tougher enemy waves.

Special Abilities Integration

The King's powers serve as game-changing trump cards. Time these abilities perfectly to maximize their impact - whether clearing massive zombie clusters or providing emergency defensive boosts during overwhelming attacks.

Operation Guide

Basic Controls

  • Mouse : Point and click to place towers, select targets, and activate abilities
  • Keyboard Shortcuts : Access quick commands and hotkeys for faster gameplay
  • Touch Controls (Mobile): Tap to place defenses, pinch to zoom, drag to navigate

Strategic Tips

  • Study zombie movement patterns before placing towers
  • Upgrade existing towers rather than always building new ones
  • Save King's powers for critical moments when regular defenses struggle
  • Focus on chokepoints where multiple paths converge

Why Play Medieval Defense Z

This game stands out in the crowded tower defense genre by seamlessly blending medieval fantasy with zombie survival themes. The addition of royal powers adds strategic depth beyond typical tower placement, while the medieval setting provides rich visual atmosphere.

The completely free nature means you can enjoy premium tower defense gameplay without any financial commitment. Cross-platform HTML5 technology ensures you can continue your defense campaigns whether at home on PC or mobile during commutes.

Perfect for strategy game enthusiasts who enjoy tactical planning, resource management, and progressive difficulty challenges. The zombie theme adds excitement without being overly graphic, making it suitable for all ages while maintaining engaging combat intensity.

Frequently Asked Questions (FAQ)