Age of Castles - Free Empire Building Strategy Game

Seele01-Flash
By
Age of Castles is an epic free empire building strategy game where you rule a medieval kingdom. Manage your castle, defend against goblins and mythical threats, and expand your empire in this challenging tower defense experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Age of Castles**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-Poly Medieval Fantasy. The scene should feature a stylized, isometric camera view (OrthographicCamera) centered on a solitary, upgradable castle fortress. * **The Castle:** A modular central structure that evolves visually. Start with a basic wooden keep and allow for upgrades to stone fortress with watchtowers. Use textures representing aged wood, cobblestone, and iron spikes. * **Environment:** A floating island chunk or a constrained terrain grid surrounded by a stylized "fog of war" or water. * **Atmosphere:** Dynamic lighting to represent "Calamities" (e.g., sky turning red for angry gods, dark clouds for storms). * **Particle Effects:** Simple low-cost particles for fire (when damaged), gold coins (when collecting taxes), and dust clouds (during construction). * **Mobile Optimization:** Use `BoxGeometry` and `CylinderGeometry` for procedural generation where possible to reduce asset loading. Limit shadow casting to the main directional light only. ### 2. Audio Requirements * **BGM:** A looping track featuring medieval instrumentation (lutes, heavy drums, brass). It should shift between a "Management Mode" (calm, regal) and "Battle Mode" (fast-paced, percussion-heavy). * **Sound Effects (SFX):** * **UI:** Satisfying "clunk" for stone buttons, paper/scroll rustling for menus. * **Gameplay:** Hammering sounds (Building), Sword clashing/Arrow loose (Combat), Thunder rumble (Angry Gods event), Coin jingle (Income). ### 3. Gameplay Loop * **Core Concept:** A turn-based or tick-based Castle Management & Defense Simulator. * **Resource Management:** The player must balance three core resources displayed in the UI: **Gold** (for building), **Population** (workers/soldiers), and **Defense** (Castle HP). * **The Cycle:** 1. **Management Phase:** Player spends Gold to repair walls, buy archers/soldiers, or expand the castle (increasing max HP). 2. **Event Phase:** A random event occurs based on the "Age/Turn". * *Enemy Attack:* Goblins or rival armies attack. Defense score is calculated against Enemy Attack power. * *Calamity:* Angry Gods strike lightning (Castle HP damage) or Plague (Population drop). 3. **Resolution:** If Castle HP > 0, the player survives to the next day and collects taxes (Gold). If HP <= 0, Game Over. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Landscape Mode (to accommodate the castle width and side menus). * **Touch Controls:** * **Raycaster:** Implement raycasting for tapping on the castle to open the "Upgrade/Repair" context menu. * **Camera:** One-finger drag to pan slightly; Two-finger pinch to zoom in/out. * **UI Layout:** * **HUD:** Top bar displaying Gold, Pop, and HP. * **Action Bar:** Bottom of the screen with large, thumb-friendly buttons (min 60px height) for: [Repair], [Recruit Army], [Next Turn]. * **Feedback:** Visual shake effect on the camera (`camera.position` jitter) when the castle takes damage. Haptic feedback (via `navigator.vibrate`) on button presses and damage events. 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 Castles is a comprehensive empire building strategy game that combines castle management, tower defense, and kingdom simulation into one epic gaming experience. With a solid 3.0 rating from thousands of players, this free browser-based game challenges you to build, defend, and expand a medieval empire while facing constant threats from angry gods, goblin invasions, and natural calamities.

Set in a richly detailed medieval world, Age of Castles puts you in the role of a kingdom ruler who must balance resource management, military strategy, and diplomatic decisions. The game's unique blend of strategy genres creates an engaging experience that keeps players coming back for more challenging scenarios.

Core Features

Multi-Genre Strategy Gameplay

Age of Castles masterfully combines four distinct gaming genres:

  • Empire Building : Construct and expand your medieval kingdom from a small castle to a mighty empire
  • Tower Defense : Strategically place defensive structures to repel goblin armies and mythical creatures
  • Tycoon Elements : Manage resources, trade routes, and economic growth to fund your expansion
  • War Strategy : Lead military campaigns and defend your territories against various threats

Dynamic Threat System

Unlike simple tower defense games, Age of Castles features a complex threat ecosystem:

  • Goblin Invasions : Waves of intelligent enemies that adapt to your defensive strategies
  • Divine Wrath : Angry gods unleash supernatural challenges that test your kingdom's resilience
  • Natural Calamities : Earthquakes, plagues, and disasters that require quick thinking and resource management
  • Political Intrigue : Navigate complex relationships with neighboring kingdoms and mythical entities

Comprehensive Castle Management

Your castle serves as the heart of your empire, requiring careful attention to:

  • Resource Production : Manage food, gold, stone, and magical resources
  • Population Growth : Balance citizen happiness with military needs
  • Infrastructure Development : Build roads, markets, temples, and defensive fortifications
  • Technology Research : Unlock new buildings, units, and magical abilities

Game Mechanics

Strategic Depth

Age of Castles offers layers of strategic gameplay that evolve as your empire grows:

Early Game : Focus on basic resource gathering, small-scale defense, and establishing your first settlements

Mid Game : Expand territory, develop advanced military units, and engage in diplomacy with other powers

Late Game : Command vast armies, wield powerful magic, and face epic challenges from divine entities

Adaptive AI System

The game features intelligent enemy AI that learns from your strategies, ensuring each playthrough presents new challenges. Goblin armies will adapt their attack patterns based on your defensive setups, while divine interventions become more complex as your empire grows in power.

Operation Guide

Age of Castles uses intuitive point-and-click controls optimized for browser gameplay:

  • Mouse Navigation : Click and drag to move around your kingdom map
  • Building Construction : Select building types from menus and place them strategically on your territory
  • Unit Management : Click on military units to give movement and attack orders
  • Resource Monitoring : Access detailed resource panels to track your kingdom's economic health
  • Technology Trees : Navigate research menus to unlock new capabilities and structures

Getting Started Tips

  1. Prioritize Defense : Early goblin raids can cripple unprepared kingdoms
  2. Balance Resources : Don't focus solely on military - civilian infrastructure is equally important
  3. Explore Carefully : New territories offer resources but also bring new threats
  4. Plan for Disasters : Keep emergency reserves for when calamities strike
  5. Study Enemy Patterns : Learn from failed defenses to improve your strategies

Why Play Age of Castles

Completely Free Gaming Experience

Age of Castles offers a full-featured strategy gaming experience without any cost. No hidden fees, no pay-to-win mechanics - just pure strategic gameplay accessible to everyone.

Browser-Based Convenience

Play instantly without downloads or installations. The game runs smoothly in any modern web browser, making it perfect for quick gaming sessions or extended empire-building marathons.

Rich Strategic Complexity

Few free games offer the depth found in Age of Castles. The combination of empire building, tower defense, and resource management creates a uniquely challenging experience that rewards both tactical thinking and long-term planning.

Endless Replayability

With randomized events, adaptive AI, and multiple victory conditions, no two games of Age of Castles play exactly the same. Each kingdom you build faces unique challenges and opportunities.

Perfect for Strategy Fans

Whether you love the resource management of city builders, the tactical combat of tower defense games, or the grand scope of empire simulators, Age of Castles delivers satisfying gameplay across all these genres.

Experience the ultimate test of leadership in Age of Castles - where every decision shapes the fate of your medieval empire!

Frequently Asked Questions (FAQ)