Age of War - Epic Strategy Tower Defense Game

Seele01-Flash
By
Age of War is an epic strategy tower defense game where you advance through 5 historical ages to destroy your enemy's base. Build towers, spawn units, and engage in real-time strategic warfare.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Age of War (Evolutionary Tug-of-War Strategy)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, colorful, and cartoonish 3D aesthetic (inspired by the original 2D Flash style). * **Camera Perspective:** Fixed **Side-Scrolling / Orthographic view**. The game takes place on a single 2D plane (X-axis) within a 3D world. * **Scene Layout:** * **Ground:** A textured dirt path extending horizontally from left (Player Base) to right (Enemy Base). Background should feature parallax scrolling layers (trees, mountains, sky) to give depth. * **Bases:** * **Player Base (Left):** Starts as a primitive Cave (Stone Age). Upgrades visually to a Castle (Medieval), then a Bunker (Future) as the player evolves. * **Enemy Base (Right):** Mirrors the player's logic but controlled by AI. * **Units:** Simple geometric representations for distinct eras (e.g., Clubmen/Dinos for Stone Age, Knights/Archers for Medieval, Tanks/Lasers for Future). Differentiate teams by color (e.g., Player = Blue/Green, Enemy = Red). * **Performance:** Use `InstancedMesh` for units to handle high unit counts (50+) on mobile devices without lag. Use simple lighting (Ambient + Directional) without heavy shadow casting. ### 2. Audio Requirements * **BGM:** An "Epic/Marching" theme that evolves. Starts with tribal drums (Stone Age), transitions to orchestral brass (Medieval), and ends with synth-heavy electronic music (Future Age). * **SFX:** * **UI:** Soft clicks for spawning units, a heavy "gong" or "fanfare" sound when evolving to the next age. * **Combat:** Distinct sounds per era (Club thuds, Sword clangs, Laser zaps). * **Feedback:** Gold coin jingling sound when an enemy unit is killed. ### 3. Gameplay Loop * **Core Mechanic (Tug-of-War):** 1. **Resources:** Player earns **Gold** (over time + per kill) and **XP** (per kill). 2. **Spawning:** Player taps icons to spend Gold and spawn units. Units automatically march from Left to Right. 3. **Combat:** Units stop when they meet an enemy unit or base and auto-attack. Rock-Paper-Scissors balance (e.g., Melee beats Ranged, Ranged beats Anti-Air). 4. **Evolution:** When XP fills the bar, the player can press "Evolve". This upgrades the Base HP, changes the visual theme, and unlocks stronger (but more expensive) units. * **Defense:** Player can purchase Turrets (mounted on the base) to defend against enemies reaching the spawn point. * **Special Ability:** A "Super Weapon" button with a long cooldown (e.g., Meteor Shower for Stone Age, Satellite Beam for Future) that damages all screen enemies. * **Win/Loss:** Destroy the Enemy Base HP to win; lose if Player Base HP hits 0. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Strictly **Landscape Mode**. * **UI Layout:** * **Top Bar:** Unit Spawn Buttons (Large icons, min 48px), Turret Build Button, and the "Evolve" Button (prominent). * **Top Left/Right Corners:** Health Bars for Player and Enemy Bases. * **Resource HUD:** Display Gold and XP clearly (large text). * **Interaction:** * **No Camera Control:** The camera should auto-pan slightly based on where the frontline of the battle is, or allow simple horizontal swipe to pan. * **Tap Feedback:** Visual ripple effect and slight scale-down animation on buttons when pressed. * **Vibration:** Trigger short haptic feedback (using `navigator.vibrate`) when the base takes damage or when a unit is spawned. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Age of War

Age of War is a legendary strategy tower defense game that has captivated players worldwide with its unique blend of base defense and unit spawning mechanics. With an impressive 4.6/5 rating from thousands of players, this classic game challenges you to advance through five distinct historical ages while defending your base and attempting to destroy your opponent's stronghold.

The game combines the best elements of real-time strategy and tower defense genres, creating an engaging tug-of-war experience where every decision matters. As units clash in the middle of the battlefield, you must carefully balance offense and defense to achieve victory.

Core Features

Five Historical Ages to Master

Progress through different eras of human civilization, each offering unique units, buildings, and strategic possibilities. From primitive cavemen to futuristic soldiers, each age brings new challenges and opportunities.

Dynamic Tower Defense Mechanics

  • Strategic Tower Placement : Build defensive towers to protect your base from enemy attacks
  • Unit Spawning System : Create armies of warriors that automatically march toward the enemy base
  • Real-Time Combat : Watch as your units engage enemy forces in the center battlefield
  • Resource Management : Earn gold from defeating enemies and spend it wisely on units and defenses

Cross-Platform Compatibility

  • HTML5 Technology : Runs smoothly on all modern browsers
  • Mobile Optimized : Perfect touch controls for smartphones and tablets
  • No Downloads Required : Instant play through your web browser
  • Embeddable : Can be integrated into websites and gaming platforms

Strategic Depth

Each age offers different unit types with unique strengths and weaknesses. Success requires understanding when to focus on offense versus defense, managing your economy effectively, and timing your age advancements perfectly.

Game Mechanics

The Tug of War System

Unlike traditional tower defense games, Age of War features a unique tug-of-war mechanic where both you and your opponent continuously spawn units that meet in the middle of the battlefield. Victory comes from pushing through enemy defenses and reaching their base.

Experience and Progression

Defeat enemy units to gain both gold and experience points. Accumulate enough experience to advance to the next age, unlocking more powerful units and defensive structures. Each advancement significantly changes your strategic options.

Special Abilities

Utilize powerful special abilities with cooldown timers to turn the tide of battle. These abilities can provide crucial advantages during intense moments of combat.

Operation Guide

Basic Controls

  • Unit Spawning : Use the top toolbar to purchase and deploy different unit types
  • Tower Construction : Build defensive towers at designated spots around your base
  • Tower Management : Upgrade or sell existing towers to optimize your defense
  • Age Advancement : Click the age upgrade button when you have sufficient experience
  • Special Abilities : Activate powerful abilities using the designated buttons

Winning Strategy Tips

  1. Balance Economy : Don't spend all your gold on units - invest in towers for defense
  2. Time Your Advances : Advance ages when it provides maximum strategic advantage
  3. Unit Composition : Mix different unit types to counter enemy strategies
  4. Tower Placement : Position towers to maximize coverage and defensive efficiency
  5. Special Ability Timing : Save special abilities for critical moments

Why Play Age of War

Age of War stands out as one of the most engaging strategy games available online. Its perfect blend of tower defense and real-time strategy creates addictive gameplay that's easy to learn but difficult to master. The historical progression system provides a sense of advancement and growth that keeps players coming back.

The game's accessibility through web browsers means you can enjoy epic strategic battles anywhere, anytime. Whether you're a casual gamer looking for quick entertainment or a strategy enthusiast seeking deep tactical gameplay, Age of War delivers an experience that has remained popular for years.

With no cost to play and no downloads required, there's no barrier to jumping into this classic strategy experience that has earned its place as a beloved online game.

Frequently Asked Questions (FAQ)