Age of War - Classic Tower Defense Strategy Game

Seele01-Flash
By
Age of War is a legendary tower defense strategy game where you command armies through different historical ages. Build units, defend your base, and advance through time from the Stone Age to the Future Age in this epic battle for survival.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Age of War: Evolution**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** **2.5D Side-Scroller (Orthographic Camera)**. Use a "Low-Poly" art style with vibrant, flat shading colors to ensure high performance on mobile devices. * **The World:** A long horizontal battlefield. * **Left Side:** Player Base (starts as a Cave). * **Right Side:** Enemy Base (starts as a Cave). * **Ground:** A textured path connecting the two bases. Background should be a parallax scrolling landscape (mountains/sky) that changes color palettes based on the current "Age" (e.g., prehistoric orange sky -> medieval blue sky -> futuristic dark purple sky). * **The Units:** * Create distinct low-poly geometries for at least 3 Ages (for simplicity): **Stone Age** (Clubman with primitive weapon), **Medieval Age** (Knight with sword/shield), and **Future Age** (Robot with laser gun). * **Particles:** Simple particle explosions for death effects and projectile impacts. Floating damage numbers (billboarded) when units take damage. * **Optimization:** Use `InstancedMesh` for units if possible to handle large armies. Limit texture resolution to 1024x1024. ### 2. Audio Requirements * **Dynamic BGM:** The background music must change based on the current Age of the player. * *Stone Age:* Rhythmic tribal drums and flutes. * *Medieval:* Orchestral brass and marching snares. * *Future:* Synthwave/Cyberpunk electronic beats. * **Sound Effects (SFX):** * **UI:** A satisfying "Click/Pop" sound when selecting units. A "Error/Buzzer" sound if not enough gold. * **Combat:** "Thud" for clubs, "Clang" for swords, "Pew-Pew" for lasers. * **Evolution:** A grand "Level Up" fanfares sound when the player upgrades the age. ### 3. Gameplay Loop * **Core Mechanic:** The game is an auto-battler/tug-of-war. * Gold generates passively over time. * Player spends Gold to spawn units. * Units automatically move along the X-axis towards the enemy base. * When in range of an enemy unit, they stop and attack. * When in range of the enemy base, they attack the base. * **Evolution System:** * Destroying enemies grants **XP**. * Once XP reaches a threshold, the "Evolve" button becomes active. * Clicking Evolve upgrades the Base model, changes the Unit roster to stronger versions, and increases Gold generation rate. * **Win/Loss:** Reduce Enemy Base HP to 0 to win. If Player Base HP hits 0, Game Over. * **Special Ability:** A global cooldown ability (e.g., "Meteor Strike") that damages all visible enemies. ### 4. Mobile Controls & Interaction * **UI Layout (Mobile Optimized):** * **Unit HUD:** DO NOT place buttons at the top-left (hard to reach). Place a horizontal scrollable menu or fixed grid of large buttons (minimum 60x60px) at the **bottom of the screen** for spawning units. * **Camera Control:** Since the battlefield is wider than the screen, implement **One-Finger Horizontal Swipe** to pan the camera left and right between bases. * **Stats Display:** Top-center bar showing Gold, XP, and HP bars for both bases. * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (using `navigator.vibrate`) when a unit is spawned or the base takes damage. * **Visual Feedback:** Buttons should visually depress or flash when tapped. Grey out buttons when Gold is insufficient. * **Orientation:** Force **Landscape Mode** logic (or scale UI appropriately if loaded in Portrait). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Age of War is a classic tower defense strategy game that has captivated players worldwide since its original release. This timeless game combines strategic army management with tower defense mechanics, creating an engaging experience where you must command your forces through the entire span of human history.

The game challenges you to defend your base while simultaneously building an army to destroy your opponent's stronghold. Starting in the primitive Stone Age with basic clubs and spears, you'll gradually advance through different historical periods, unlocking increasingly powerful units and defensive structures.

Core Features

Epic Historical Journey

Experience warfare across multiple time periods, from prehistoric cavemen to futuristic soldiers. Each age brings unique units, weapons, and strategic possibilities that completely change how you approach battles.

Strategic Army Building

Every decision matters in Age of War. Choose wisely which units to purchase with your limited gold, balancing offensive power with defensive capabilities. Different units excel in various situations - some are perfect for taking down enemy infantry, while others specialize in destroying fortifications.

Progressive Advancement System

Earn experience points by defeating enemies to advance to the next historical age. Each advancement unlocks superior units and more powerful defensive turrets, but your enemies become stronger too, maintaining the challenge throughout your journey.

Special Attack System

When battles become overwhelming, unleash devastating special attacks that can turn the tide of war. These powerful abilities have cooldown periods, so timing their use strategically is crucial for victory.

Cross-Platform Compatibility

Play seamlessly on any device - desktop computers, laptops, smartphones, or tablets. The game runs perfectly in web browsers without requiring downloads or installations.

Gameplay Mechanics

Resource Management

Success in Age of War depends on efficient resource management. Gold earned from defeating enemies must be carefully allocated between purchasing new units and saving for age advancement. Experience points accumulate automatically, but reaching the next age requires strategic patience.

Unit Types and Strategy

Each historical age features distinct unit types: - Melee Units : Close-combat fighters effective against other infantry - Ranged Units : Archers and gunmen who attack from distance - Heavy Units : Armored warriors with high health but slower movement - Siege Units : Specialized troops designed to destroy enemy structures

Base Defense

Your base features defensive turrets that automatically attack approaching enemies. Upgrading these defenses becomes increasingly important as enemy forces grow stronger. Balancing offensive unit production with defensive investments is key to long-term success.

Operation Guide

Basic Controls

  • Click unit buttons in the top-left interface to purchase and deploy troops
  • Click turret buttons to buy and upgrade defensive structures
  • Monitor resources displayed in the game interface
  • Use special attacks when the ability becomes available
  • Watch the battlefield to assess threats and adjust strategy

Winning Strategy Tips

  1. Balance offense and defense - Don't focus exclusively on attacking or defending
  2. Save gold for age advancement when you're close to the experience threshold
  3. Use special attacks strategically during enemy rushes or when your base is threatened
  4. Adapt unit composition based on enemy types you're facing
  5. Upgrade defenses early to handle increasing enemy strength

Why Play Age of War

Timeless Appeal

Age of War remains popular because it perfectly balances accessibility with strategic depth. New players can jump in immediately, while experienced strategists will find layers of tactical complexity to master.

Historical Theme

The progression through human history adds educational value and narrative interest to the strategic gameplay. Watching your primitive army evolve into futuristic soldiers creates a satisfying sense of progress and achievement.

Perfect for Strategy Fans

If you enjoy games that require planning, resource management, and tactical thinking, Age of War delivers an excellent strategic gaming experience. The tower defense elements add immediate action to complement the longer-term strategic planning.

Free and Accessible

As a completely free browser game, Age of War offers premium strategic gameplay without any cost barriers. No downloads, registrations, or payments required - just pure strategic entertainment whenever you want it.

Frequently Asked Questions (FAQ)