Clash of Ages

Seele01-Flash
By
Clash of Ages is an epic strategic battle game that takes you on a journey through human history. Lead armies from primitive Stone Age tribes to modern military forces, unlocking advanced technologies and mastering evolving warfare tactics.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Clash of Ages". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling Lane Battle. Use a **Vibrant Low-Poly** art style with Flat Shading or Toon Shading (Cel-shaded) to mimic the cartoonish promotional art. Colors should be high-saturation (bright greens, blues, and reds). * **Camera:** Fixed side-view perspective (slightly elevated angle) focusing on a horizontal battlefield lane. * **Dynamic Environments (Era-Based):** * **Stone Age:** Background features rocky terrain, caves, and prehistoric flora. Base is a simple Cave. * **Medieval Age:** Background features rolling hills and stone paths. Base is a Castle Turret. * **Modern Age:** Background features an urban skyline or war-torn battlefield. Base is a Concrete Bunker. * **Units (Procedural/Simple Geometry):** * **Caveman:** Brown tunic, holding a wooden club (cylinder). * **Knight:** Grey armor, holding a sword/shield. * **Soldier:** Green uniform, holding a rocket launcher (cylinder/cone combo). * **Performance Optimization:** Use `THREE.InstancedMesh` for rendering multiple units to maintain 60 FPS on mobile devices. Use simple Box/Cylinder geometries for characters if external models aren't loaded. ### 2. Audio Requirements * **Adaptive Background Music (BGM):** * *Phase 1:* Tribal percussion and rhythmic drumming (Stone Age). * *Phase 2:* Orchestral trumpets and marching snares (Medieval). * *Phase 3:* Heavy rock or intense electronic synth with sirens (Modern). * **Sound Effects (SFX):** * **Combat:** "Thud/Bonk" (Club), "Clang/Metal" (Sword), "Explosion/Whoosh" (Rocket). * **UI:** A satisfying "Cha-ching" for earning gold and a "Level Up" jingle when evolving eras. * **Base:** Alarm sound when the player's base takes damage. ### 3. Gameplay Loop * **Core Mechanic:** "Tug-of-War" Strategy. The player is on the Left, the Enemy (AI) is on the Right. Both sides spawn units that automatically march forward and attack the first enemy they meet. * **Resources:** * **Food:** Auto-regenerates over time. Used to spawn units. * **Gold:** Earned by killing enemies. Used to upgrade base HP or "Evolve". * **XP:** Earned over time/kills. Required to unlock the next Era. * **Evolution System:** The defining feature. When enough XP/Gold is gathered, the player clicks "Evolve". This instantly transforms the base, background, and available units to the next historical tier, making them stronger. * **Win/Loss Condition:** Destroy the enemy base (reduce HP to 0) to win. Lose if player base HP hits 0. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape** (Horizontal) only, to maximize the view of the battlefield lane. * **UI Layout (Touch-Friendly):** * **Unit Spawning (Bottom):** A row of large, square buttons (min 60x60px) at the bottom center representing available units. Cooldown overlays are required. * **Special Ability (Bottom Right):** A large "Turret/Strike" button to defend the base manually. * **Evolution Button (Top Center):** A prominent, glowing button that appears only when evolution is available. * **Resources (Top Left/Right):** Clear text for Food, Gold, and Base HP. * **Feedback:** * **Haptic:** Trigger device vibration (if supported) when the base takes damage or when an evolution occurs. * **Visual:** Floating damage numbers (TextSprites) popping up on hits. Screen shake effect when a heavy unit (like a tank or rocket) attacks. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Clash of Ages is a captivating strategic war game that spans the entire timeline of human civilization. This unique tower defense and battle strategy experience challenges players to guide their armies through multiple historical eras, starting from the primitive Stone Age and progressing all the way to the Modern Era. With its colorful 3D graphics and engaging gameplay mechanics, the game offers an immersive journey through the evolution of warfare and technology.

The game combines elements of tower defense, real-time strategy, and resource management to create a compelling gaming experience that's both educational and entertaining.

Core Features

Historical Progression System

Experience the fascinating evolution of human warfare as you advance through different time periods. Each era brings new challenges, technologies, and strategic possibilities:

  • Stone Age : Begin with basic clubs, stones, and primitive tactics
  • Bronze Age : Unlock metal weapons and improved armor
  • Iron Age : Master advanced metallurgy and organized warfare
  • Medieval Era : Command knights, archers, and siege weapons
  • Renaissance : Introduce gunpowder and early firearms
  • Industrial Age : Deploy cannons and mechanized units
  • Modern Era : Utilize advanced military technology and tactics

Strategic Battle Mechanics

The game features deep strategic gameplay where every decision matters. Players must carefully manage resources, position units effectively, and adapt their tactics to counter enemy strategies. The tower defense elements require strategic placement of defensive structures while managing offensive capabilities.

Technology Advancement

Earn coins through successful battles and strategic victories to unlock new technologies. Each advancement opens up new unit types, weapons, and tactical options, allowing for increasingly sophisticated military strategies.

Immersive 3D Graphics

Enjoy vibrant, cartoon-style 3D graphics that bring historical battles to life. The visual design makes complex strategic concepts accessible while maintaining the excitement of large-scale warfare.

Gameplay Mechanics

Clash of Ages masterfully blends multiple gaming genres to create a unique strategic experience. The core gameplay revolves around building and commanding armies while defending your territory and conquering enemy positions.

Army Management

Recruit and train various unit types appropriate to your current era. From stone-wielding cavemen to modern soldiers, each unit type has specific strengths, weaknesses, and tactical applications. Success requires understanding unit relationships and creating balanced army compositions.

Resource Strategy

Manage your economic resources carefully to fund military campaigns and technological research. Coins earned from victories can be invested in new technologies, unit upgrades, or expanding your military capabilities.

Defensive Positioning

Strategically place defensive structures and position your forces to maximize their effectiveness. The tower defense elements require careful consideration of terrain, enemy approach routes, and optimal firing positions.

Controls and Interface

The game features an intuitive control system designed for accessibility and ease of use:

  • Mouse Control : Use the left mouse button to interact with all game elements
  • Point and Click Interface : Simple clicking mechanics for unit selection, movement, and building placement
  • Drag and Drop : Easy unit positioning and resource management
  • Menu Navigation : Streamlined interface for technology trees and army management

The user-friendly interface ensures that players can focus on strategy rather than struggling with complex controls.

Why Play Clash of Ages

This game offers a perfect blend of education and entertainment, allowing players to experience the fascinating evolution of human warfare while enjoying challenging strategic gameplay. The progression system provides a strong sense of achievement as you watch your primitive tribe evolve into a modern military force.

Key Benefits: - Free to Play : Complete gaming experience with no payment required - Educational Value : Learn about historical military evolution - Strategic Depth : Multiple layers of tactical decision-making - Progressive Difficulty : Gradually increasing challenges as you advance - Replay Value : Multiple strategies and approaches to master - Browser Compatible : Play instantly without downloads or installations

Whether you're a strategy game veteran or new to the genre, Clash of Ages provides an engaging and rewarding gaming experience that combines historical fascination with tactical challenge.

Frequently Asked Questions (FAQ)