King of Towers

Seele01-Flash
By
King of Towers is a revolutionary multiplayer tower defense game where you battle other players, train heroes, and upgrade defensive structures to protect your kingdom from waves of orcs and demons.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**King of Towers: Mobile Defense**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Stylized Low-Poly Fantasy." Recreate the 2010s cartoon aesthetic using Three.js primitives and toon shading (CelShader). Colors should be vibrant and saturated (bright greens for grass, distinct team colors for units). * **Camera Perspective:** Fixed Isometric view (OrthographicCamera) optimized for mobile screens to ensure consistent tap targets. * **Map Design:** A winding stone path (gray) cutting through green terrain, leading from a "Spawn Point" (dark cave entrance) to the "Kingdom Gate" (a castle model). * **Key Assets:** * **Hero (Player):** A stylized Knight character (referencing the thumbnail) with a silver helmet and shield. Distinctive aura/ring to show selection status. * **Towers:** 3 distinct types consisting of stacked geometries: Archer Tower (Tall, wood texture), Barracks (Wide, stone texture, spawns 2 mini-soldiers), Mage Tower (Blue crystal tip). * **Enemies:** Orcs (Green cubes/spheres with simplified limbs) and Demons (Red, faster). * **Optimization:** Use `InstancedMesh` for standard environment props (trees, rocks) and enemies to maintain 60FPS on mobile browsers. Simple shadow blobs instead of expensive dynamic shadows. ### 2. Audio Requirements * **BGM:** A loopable, upbeat orchestral fantasy track (march style) that evokes a sense of urgency and heroism. * **Sound Effects (Synthesized or Placeholder Logic):** * **Construction:** A "hammering" or stone-sliding sound when a tower is built. * **Combat:** "Whoosh" for arrows, "Zap" for magic, metallic "Clang" for soldier blocking. * **UI:** High-pitched "Pop" for button clicks, positive "Chime" for wave clear. * **Hero:** A vocal shout or distinct sound when the Hero is commanded to move. ### 3. Gameplay Loop * **Core Objective:** Prevent enemies from reaching the Kingdom Gate. Each enemy reaching the end deducts 1 Life. * **Tower Defense Mechanism:** * Players tap empty "Build Plots" along the road to open a radial menu and spend Gold to build towers. * Towers auto-attack enemies within range. * **Hero Micro-Management (Crucial Feature):** * Unlike standard TD, the player has a Hero unit. * **Tap-to-Move:** Tapping anywhere on the path commands the Hero to move there to intercept enemies. * The Hero respawns after a cooldown if defeated. * **Economy:** Kill enemies to earn Gold. Spend Gold to build or upgrade towers. * **Waves:** Enemies spawn in waves. The game ends if Lives reach 0 (Defeat) or all waves are cleared (Victory). ### 4. Mobile Controls & Interaction * **Orientation:** Landscape mode is preferred for a wider view of the battlefield. * **Touch Controls:** * **Raycasting:** Precise raycasting for selecting Build Plots or commanding the Hero. * **UI Layout:** Large, thumb-friendly buttons (min 44px). * **Top Left:** Health & Gold display. * **Bottom Right:** "Call Wave" button (to start the next wave early). * **Selection Menu:** When a plot is tapped, a context menu should pop up *above* the finger touch point so it isn't obscured by the hand. * **Visual Feedback:** * Show a "ripple" effect on the ground upon tapping. * Flash enemies white when they take damage. * Floating text numbers for Gold earned and Damage dealt. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

King of Towers revolutionizes the tower defense genre by combining classic defensive gameplay with multiplayer competition and RPG elements. Rated 3.6/5 by players, this MMO strategy game challenges you to defend your kingdom against relentless waves of orcs and demons while competing against other players worldwide.

Unlike traditional tower defense games, King of Towers introduces a competitive multiplayer element that keeps every battle fresh and unpredictable. You'll need to balance offensive strategies against other players while maintaining strong defenses against computer-controlled enemies.

Core Features

Multiplayer Tower Defense Combat

Engage in real-time battles against other players from around the world. Each match presents unique challenges as human opponents employ different strategies and tactics, making every game session unpredictable and exciting.

Hero Training System

Recruit and train powerful heroes to lead your forces into battle. Each hero possesses unique abilities and can be upgraded through combat experience. Strategic hero deployment can turn the tide of even the most challenging battles.

Advanced Tower Upgrade System

Build and upgrade various defensive towers, each with distinct strengths and capabilities. From archer towers to magical defense systems, choose the right combination to counter different enemy types and player strategies.

Kingdom Management

Protect and expand your kingdom through strategic resource management. Balance your economy between tower construction, hero training, and military expansion to create an unstoppable defensive empire.

MMO Progression

Experience persistent character and kingdom growth through the MMO framework. Your achievements, upgrades, and progress carry over between gaming sessions, creating long-term investment in your strategic empire.

Game Mechanics

The game combines traditional tower defense elements with innovative multiplayer mechanics. Waves of orcs and demons assault your kingdom while you simultaneously plan attacks against rival players. Success requires mastering both defensive positioning and offensive timing.

Resource management plays a crucial role - earn gold through successful defenses and enemy defeats, then invest wisely in tower upgrades, new heroes, or kingdom expansion. Each decision impacts your ability to handle increasingly difficult challenges.

Operation Guide

King of Towers features intuitive controls accessible to both newcomers and strategy veterans:

  • Mouse Control : Click and drag to select units, place towers, and navigate menus
  • Keyboard Shortcuts : Use hotkeys for quick tower selection and hero commands
  • In-Game Tutorial : Comprehensive instructions guide you through basic mechanics
  • Strategy Planning : Pause function allows tactical decision-making during intense battles

The game provides detailed in-game instructions that explain advanced mechanics as you progress, ensuring you can master complex strategies at your own pace.

Why Play King of Towers

This game offers a unique blend of classic tower defense gameplay with modern MMO elements. The multiplayer aspect ensures no two battles are identical, while the hero and upgrade systems provide deep strategic customization. Perfect for players who enjoy both competitive gaming and strategic planning, King of Towers delivers hours of engaging gameplay completely free through your web browser.

Whether you're a tower defense veteran or new to strategy games, the progressive difficulty and comprehensive tutorial system make this an accessible yet challenging gaming experience.

Frequently Asked Questions (FAQ)