Age of War 2

Seele01-Flash
By
Age of War 2 is an epic strategy defense game where you evolve your civilization from cavemen to advanced warriors. Command armies, upgrade units, and destroy the enemy base while defending your own in this thrilling sequel.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Age of War: Stone Age Edition". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling Strategy. Use **Low-poly 3D models with Toon Shading (Cel Shader)** to mimic the cartoon art style of the original Flash game while maintaining high FPS on mobile devices. * **Camera:** Use an `OrthographicCamera` to create a flat, 2D strategic view. The camera should be positioned to view the battlefield from the side (X-axis logic). * **Bases:** * **Player Base (Left):** A stylized low-poly cave entrance with a health bar floating above it. * **Enemy Base (Right):** A slightly darker/enemy-tinted cave entrance with a health bar. * **Units (Stone Age):** * *Clubman:* Melee unit, bulky, holds a club. * *Slinger:* Ranged unit, smaller, holds a sling. * Use `InstancedMesh` for units if possible to optimize rendering multiple troops on screen. * **Environment:** * Ground: A sandy/dirt textured plane. * Background: Several layers of flat planes (mountains, forest trees) to create a **parallax effect** when the camera moves. * **Effects:** Simple particle explosions when units die. A "Gold" text floater popping up when an enemy is killed. ### 2. Audio Requirements * **BGM:** A rhythmic, primitive loop featuring tribal drums and flutes (Stone Age theme). * **SFX:** * *Spawn:* A distinct "grunt" or horn sound. * *Attack:* "Thud" sounds for clubs, "Whoosh" for slings. * *Death:* Comical scream or crumbling sound. * *UI:* Wooden "clack" sound when clicking buttons. * *Base Hit:* Heavy impact sound with screen shake. ### 3. Gameplay Loop * **Core Logic:** Tug-of-war lane defense. * **Resources:** * **Gold:** Automatically increases (+1 per second) and drops when killing enemies. Used to buy units. * **XP:** Earned by killing units. Used to trigger the "Evolution" (simplified here to a stat boost/base heal for the MVP). * **Unit Behavior:** * Spawn at Base -> Walk forward (X-axis) -> Detect Enemy in range -> Stop & Play Attack Animation -> Deal Damage. * If no enemy, walk until hitting the opposing Base -> Attack Base. * **Win/Loss:** * Win: Destroy Enemy Base (HP 0). * Loss: Player Base destroyed. * **AI:** The enemy base should automatically spawn units on a timer (e.g., every 5 seconds) with slight randomness. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode** forced. * **Camera Control:** * Implement **Touch-and-Drag (Swipe)** anywhere on the background to pan the camera left/right along the battlefield. * Clamp camera movement so the player cannot scroll past the bases. * **UI Layout (HUD):** * **Top Bar:** Displays Player HP (Left), Enemy HP (Right), and Current Gold/XP (Center). * **Bottom Action Bar:** Large, thumb-friendly buttons (minimum 60px height). * *Button 1:* Spawn Clubman (Cost: 15g). * *Button 2:* Spawn Slinger (Cost: 25g). * *Button 3:* Special Attack (Meteor) - Cooldown based. * **Feedback:** Buttons should dim (opacity 0.5) when the player lacks Gold. * **Haptic/Visual Feedback:** * Trigger `navigator.vibrate(50)` when a base takes damage. * Flash the screen red slightly if the player base is under 20% health. 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 2 is the acclaimed sequel to the popular strategy defense series, rated 4.3/5 by players worldwide. This captivating war game takes you on an evolutionary journey through different historical ages, starting from primitive cavemen and advancing through various civilizations. Your ultimate goal is to destroy the enemy base while protecting your own from destruction.

The game combines strategic thinking with real-time action, requiring you to make tactical decisions about unit deployment, resource management, and technological advancement. Each age brings new units, abilities, and challenges that will test your strategic prowess.

Core Features

Evolutionary Gameplay System

Experience the thrill of civilization evolution as you progress through multiple historical ages. Begin with simple cavemen wielding clubs and stones, then advance through different eras, unlocking increasingly powerful units and technologies. Each age transformation brings new strategic possibilities and combat options.

Strategic Unit Management

Choose from a diverse selection of units, each with unique strengths and weaknesses. Some units excel against specific enemy types, creating a rock-paper-scissors dynamic that requires careful consideration. Master the art of unit composition to gain tactical advantages over your opponents.

Defensive Structures and Abilities

Build defensive turrets to protect your base from enemy assaults. These structures provide automated defense, allowing you to focus on offensive operations while maintaining strong defensive positions. Strategically place turrets to maximize their effectiveness.

Special Abilities System

Activate powerful special abilities using earned experience points. These game-changing abilities can turn the tide of battle when used at opportune moments. However, spending experience on abilities delays your age advancement, creating meaningful strategic choices.

Gold and Experience Economy

Earn gold and experience through combat and successful defense. Gold allows you to spawn new units and build defenses, while experience enables age advancement and special ability activation. Balancing these resources is key to victory.

Game Mechanics

Age Advancement System

Progression through ages is a central mechanic that defines your strategic options. Each new age unlocks superior units and technologies while maintaining access to previous age units. Timing your advancement is crucial - advance too early and you might lack immediate combat power, wait too long and you'll fall behind technologically.

Unit Counter System

Units have specific strengths and weaknesses against other unit types. Understanding these relationships is essential for effective strategy. Infantry might excel against certain units while being vulnerable to others, creating tactical depth and requiring adaptive strategies.

Operation Guide

Basic Controls

Age of War 2 features intuitive click-based controls accessible to all players:

  • Unit Spawning : Click unit icons in the toolbar to deploy troops
  • Building : Select defensive structures from the building menu
  • Upgrades : Access the upgrade menu to advance ages and improve units
  • Special Abilities : Activate powerful abilities through the special menu
  • Resource Management : Monitor gold and experience displays

Strategic Tips

  • Balance offensive and defensive spending
  • Consider unit counters when facing specific enemy compositions
  • Time your special abilities for maximum impact
  • Plan age advancements based on current battlefield conditions
  • Maintain steady unit production to apply constant pressure

Why Play Age of War 2

Completely Free Gaming Experience

Enjoy the full Age of War 2 experience without any cost. This browser-based game requires no downloads or installations, making it instantly accessible to anyone with an internet connection.

Perfect for Strategy Game Enthusiasts

If you enjoy games that combine strategic planning with real-time action, Age of War 2 delivers an ideal experience. The game rewards both quick tactical thinking and long-term strategic planning.

Engaging Progression System

The evolution mechanics create a satisfying sense of progression as you advance through different ages. Each advancement feels meaningful and opens new strategic possibilities.

Accessible Yet Deep

While easy to learn, Age of War 2 offers substantial strategic depth. New players can quickly grasp basic concepts, while experienced strategists will appreciate the nuanced tactical options.

Cross-Platform Compatibility

Play on any device with a modern web browser, including desktop computers, tablets, and mobile phones. The game adapts to different screen sizes while maintaining excellent playability.

Frequently Asked Questions (FAQ)