Age of War 2 - Strategic Defense Game

Seele01-Flash
By
Age of War 2 is an epic strategy defense game where you evolve your civilization through multiple historical ages while defending your base and conquering enemies. Start as primitive cavemen and advance through time to defeat your opponents.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Age of War: Evolution Defense**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling view. Use **Low-poly 3D models** with flat shading (toon shader) to replicate the cartoon aesthetic of the original Flash game but with modern depth. * **Camera Setup:** Use an **Orthographic Camera** fixed to a side view (Z-axis offset) to ensure consistent scale across the battlefield. The camera should support clamping within the battlefield bounds. * **Scene Composition (Stone Age - Initial State):** * **Bases:** Two distinct bases on opposite ends of the X-axis. Left base (Player): A fortified cave entrance with rocky textures. Right base (Enemy): A darker, jagged cave. * **Terrain:** A textured ground plane (sand/dirt) representing the "lane" of combat. * **Background:** Multi-layered parallax background featuring primitive fern forests, distant volcanoes, and a prehistoric sky. * **Units (Stone Age):** Low-poly "Caveman" models equipped with clubs and slingshots. Use **InstancedMesh** for rendering units to maintain high FPS (60fps target) on mobile devices when multiple units spawn. * **Particles:** Simple particle explosions for hits, blood splatters (red cuboids), and base destruction debris. ### 2. Audio Requirements * **BGM:** A rhythmic, percussion-heavy track titled "Tribal March." It should feature heavy drums and primitive flutes that loop seamlessly. * **Sound Effects (SFX):** * **UI:** Woody "clack" sounds for button presses; a satisfying "coin jingle" when earning gold. * **Combat:** "Thud" sounds for club impacts, "whoosh" for projectiles, and grunts/groans for unit death. * **Base:** A warning siren (horn blast) when the player's base takes damage. ### 3. Gameplay Loop * **Core Mechanic (Tug-of-War):** This is a linear strategy game. Units automatically move along the X-axis towards the opposing base. * **Player Goal:** Destroy the Enemy Base (Right side). * **Enemy Logic:** Simple AI that spawns counter-units based on a cooldown and available gold. * **Unit Logic:** * **State Machine:** Spawn -> Walk Forward -> Detect Enemy (Raycast) -> Attack (Stop moving) -> Die or Victory (Resume walking). * **Collision:** AABB collision detection restricted to the X-axis lane. * **Economy System:** * **Gold:** Auto-generates over time + bonus gold for killing enemy units. Used to spawn units and build turrets. * **XP:** Earned by killing units. Used to trigger the "Evolve" function (upgrading the visual age/tech level). * **Base Defense:** Each base has a Health Bar positioned in the 3D world (billboarded UI) above the structure. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape Mode** only. * **Camera Control:** Implement **One-finger Drag/Swipe** on the background to pan the camera left/right along the battlefield. * **HUD (Heads-Up Display):** * **Top Bar:** Gold count, XP bar, and Base Health indicators. * **Unit Spawner (Top-Right):** A horizontal scrollable list of icons (Clubman, Slingshot, etc.). Button size minimum **44x44px** for touch accessibility. * **Specials/Turrets (Top-Left):** Buttons for special attacks (e.g., Meteor Shower). * **Touch Feedback:** * Visual: Buttons should scale down slightly (0.95x) on `touchstart` and bounce back on `touchend`. * Haptic: Trigger `navigator.vibrate(20)` when a unit is successfully spawned or gold is collected. * **Performance:** Ensure the renderer handles context loss gracefully and limits pixel ratio to 2 for high-DPI screens to save battery. 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 an engaging strategy defense game that takes you on an epic journey through human civilization. With an impressive 4.3/5 rating, this sequel to the popular defense game series combines strategic planning with intense warfare action. You'll start in the caveman era and progressively advance through different historical ages while defending your base and attempting to destroy your enemy's stronghold.

This browser-based game offers hours of strategic gameplay without requiring any downloads or installations. Perfect for strategy enthusiasts who enjoy tower defense mechanics combined with unit management and technological progression.

Core Features

Historical Evolution System

Experience the thrill of advancing through multiple ages of human civilization. Begin with primitive cavemen wielding clubs and stones, then progress through ancient warfare, medieval battles, and eventually reach modern military technology. Each age brings new units, weapons, and strategic possibilities.

Strategic Unit Management

Choose from a diverse selection of units, each with unique strengths and weaknesses. Some units excel against certain enemy types while being vulnerable to others. This rock-paper-scissors mechanic adds depth to your tactical decisions and requires careful planning to succeed.

Base Defense and Offense

Balance is key in Age of War 2. While your primary goal is to destroy the enemy base, you must simultaneously protect your own stronghold. Build defensive turrets, spawn protective units, and use special abilities strategically to maintain your defenses while mounting effective attacks.

Upgrade and Progression System

Earn gold and experience points through successful battles. Use these resources to upgrade your units, enhance your defensive capabilities, and unlock powerful special abilities. The progression system ensures that every battle contributes to your overall strategic advancement.

Game Mechanics

Resource Management

Gold serves as your primary currency for spawning units and building defenses. Managing your gold efficiently is crucial for maintaining a steady flow of troops while saving for important upgrades and age advancements.

Experience and Special Abilities

Gain experience through combat and use it to activate devastating special abilities at critical moments. However, spending experience on abilities means delaying your next age advancement, creating strategic tension in resource allocation.

Age Advancement Strategy

Deciding when to advance to the next age is a critical strategic decision. While new ages unlock powerful units and technologies, they also require significant resource investment that could be used for immediate tactical advantages.

Operation Guide

Basic Controls

The game features intuitive click-based controls. All actions are performed through the user interface toolbar:

  • Unit Creation : Click on unit icons in the top-right panel to spawn troops
  • Upgrades : Access the upgrade menu to enhance unit capabilities
  • Special Abilities : Activate powerful abilities using accumulated experience
  • Age Advancement : Progress to new eras when you have sufficient resources

Strategic Tips

  • Monitor your gold income and spending carefully
  • Study enemy unit types to deploy effective counter-units
  • Time your special abilities for maximum impact
  • Balance offensive pushes with defensive preparations
  • Plan your age advancements based on battlefield conditions

Why Play Age of War 2

Perfect Strategic Challenge

Age of War 2 offers the ideal blend of accessible gameplay and strategic depth. New players can quickly understand the basic mechanics, while experienced strategists will appreciate the nuanced decision-making required for victory.

Free Browser Gaming

Enjoy this complete gaming experience without spending money or downloading large files. The game runs smoothly in modern web browsers, making it accessible on computers, tablets, and smartphones.

Engaging Progression System

The historical evolution theme adds educational value and narrative excitement to traditional tower defense gameplay. Watching your civilization advance from primitive tools to advanced weaponry provides a satisfying sense of progression.

Replayability Factor

Multiple strategic approaches and the dynamic nature of battles ensure that each playthrough offers unique challenges and opportunities. Different upgrade paths and tactical decisions keep the game fresh across multiple sessions.

Frequently Asked Questions (FAQ)