War of Legends - Ancient Chinese Strategy Game

Seele01-Flash
By
War of Legends is an immersive free-to-play real-time strategy game set in ancient China. Build mighty empires, command legendary armies, and engage in epic battles inspired by Chinese mythology.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**War of Legends: Dynasty Tactics**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A stylized, low-poly 3D interpretation of ancient Chinese mythology. Use an **Isometric Camera View** (fixed angle, orthographic projection preferred for clarity). * **Environment:** A floating island or tile-based terrain map featuring jade-green grass, bamboo forests, and misty mountains in the background (skybox). * **Structures:** Distinct low-poly building models: A central "Imperial Palace" (Main Base) with curved gold roofs, "Barracks" (Red timber), and "Resource Nodes" (Stone quarries, Rice paddies). Use simple geometric shapes with hand-painted style textures. * **Characters:** Simple capsule-based or low-poly humanoid meshes representing units: * *Heroes:* Larger scale, glowing aura, distinct colors (e.g., Gold/Red). * *Troops:* Smaller, instanced meshes (Spearmen, Archers) to allow for large numbers without performance drops. * **Performance Optimization:** Use `THREE.InstancedMesh` for trees and troop units to reduce draw calls. Limit dynamic lights; use baked lighting or ambient light with a single directional light for shadows. Texture atlas usage is mandatory. ### 2. Audio Requirements * **BGM (Background Music):** A loopable track featuring traditional Chinese instruments (Guzheng, Erhu, Dizi flute) blended with orchestral percussion. The music should shift from "Serene/Atmospheric" during building phases to "Rhythmic/Intense" (Taiko drums) during combat. * **Sound Effects (SFX):** * *UI:* A crisp "wooden block" clack or "scroll paper" rustle when tapping menus. * *Construction:* Hammering and sawing sounds when placing buildings. * *Combat:* Metallic clashes, arrow "whoosh" sounds, and a heavy "Gong" sound upon Victory or Defeat. * *Ambience:* Wind chimes and subtle wind sounds. ### 3. Gameplay Loop * **Resource Management:** The player generates Gold and Food over time (ticking loop). * **Base Building:** Player taps a grid tile -> Selects a building from a bottom UI menu -> Building constructs instantly with a "poof" particle effect. * **Unit Production:** Tap Barracks -> Select "Train Army" -> Spends Food -> Units appear near the barracks. * **Combat System (RTS Lite):** * **Selection:** Tap a Hero/Unit to select (Green selection ring). * **Movement/Attack:** Tap an enemy unit or location to move/attack. * **Logic:** Simple rock-paper-scissors damage logic (Cavalry beats Archers, Archers beat Infantry, Infantry beats Cavalry). * **Win Condition:** Destroy the enemy's "Main Hall" building. * **Lose Condition:** The player's "Imperial Palace" is destroyed. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Landscape Mode (forced via CSS/JS check). * **Camera Controls:** * *Pan:* Single-finger drag to move the camera across the map. * *Zoom:* Two-finger pinch to zoom in/out. * **Interaction (Touch Events):** * Use `Raycaster` mapped to `touchstart` events, not `click`, to eliminate the 300ms delay. * Implement a "Long Press" to inspect unit details. * **UI Design:** * **HUD:** Large, thumb-friendly buttons (minimum 44x44px) placed at the bottom corners of the screen (Build Menu left, Unit Commands right). * **Feedback:** Visual "ripple" effect on the ground where the player taps. Screen shake (camera jitter) when a building explodes. * **Haptics:** Trigger `navigator.vibrate(50)` on valid building placement and `navigator.vibrate([50, 50, 50])` when the base takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

War of Legends brings the rich world of ancient Chinese mythology to life in this captivating real-time strategy experience. With a solid 3.2/5 rating from players, this free-to-play browser game invites you to step into the role of a legendary ruler, commanding vast armies and building powerful empires in a world where myth and strategy collide.

Set against the backdrop of ancient China's most legendary tales, War of Legends combines classical strategic gameplay with immersive mythological elements. Players must master the art of war while navigating the complex political landscape of ancient Chinese civilization.

Core Features

Free-to-Play Strategy Experience

War of Legends offers a complete strategy gaming experience at no cost. Jump into battles, build your empire, and command armies without any upfront payment. The game provides hours of engaging content accessible directly through your web browser.

Ancient Chinese Mythology Theme

Immerse yourself in a world inspired by Chinese legends and folklore. The game features:

  • Legendary Heroes : Recruit famous figures from Chinese history and mythology
  • Mythical Creatures : Command dragons, phoenixes, and other legendary beasts
  • Ancient Weapons : Equip your armies with traditional Chinese weapons and armor
  • Cultural Authenticity : Experience authentic Chinese architectural styles and cultural elements

Real-Time Strategic Warfare

Engage in dynamic battles where timing and strategy determine victory:

  • Live Combat Systems : Make tactical decisions in real-time during battles
  • Resource Management : Gather and manage essential resources to fuel your war machine
  • Territory Expansion : Conquer new lands to expand your empire's influence
  • Diplomatic Options : Form alliances or declare war based on strategic needs

Empire Building Mechanics

Build and customize your ancient Chinese empire:

  • City Development : Construct and upgrade various buildings to strengthen your realm
  • Economic Management : Balance military spending with economic growth
  • Population Management : Keep your citizens happy and productive
  • Infrastructure Development : Build roads, walls, and other strategic structures

Gameplay Guide

Getting Started

Begin your journey as a minor lord with a small territory. Your initial goals include:

  1. Establish Your Base : Build essential structures like barracks, farms, and workshops
  2. Train Your First Army : Recruit soldiers and begin military training
  3. Gather Resources : Collect wood, stone, food, and gold to fund expansion
  4. Explore the Map : Send scouts to discover neighboring territories and resources

Combat Strategy

Success in War of Legends requires mastering both individual unit tactics and large-scale strategic thinking:

  • Unit Types : Learn the strengths and weaknesses of infantry, cavalry, and ranged units
  • Formation Fighting : Arrange your troops in effective battle formations
  • Terrain Advantage : Use hills, rivers, and forests to gain tactical benefits
  • Siege Warfare : Master the art of attacking and defending fortified positions

Resource Management

Efficient resource management is crucial for long-term success:

  • Food Production : Maintain adequate food supplies to support your growing population
  • Military Funding : Balance military expenses with economic development
  • Trade Networks : Establish trade routes with other players or neutral factions
  • Resource Optimization : Upgrade production buildings to maximize output

Operation Instructions

War of Legends features intuitive controls designed for both new and experienced strategy players:

  • Mouse Navigation : Use mouse clicks to select units, buildings, and menu options
  • Drag Selection : Click and drag to select multiple units simultaneously
  • Right-Click Commands : Right-click to issue movement and attack orders
  • Keyboard Shortcuts : Access frequently used commands through hotkeys
  • Camera Controls : Use arrow keys or mouse edge-scrolling to navigate the map

Detailed in-game tutorials guide new players through the essential mechanics, while advanced players can access comprehensive help documentation for complex strategies.

Why Play War of Legends

Unique Cultural Experience

Unlike typical Western fantasy strategy games, War of Legends offers an authentic journey into Chinese mythology and history. Experience legendary stories, meet famous historical figures, and command armies inspired by ancient Chinese military traditions.

Strategic Depth

The game provides multiple layers of strategic gameplay, from individual battle tactics to long-term empire management. Whether you prefer aggressive expansion or defensive development, War of Legends accommodates various playstyles.

Active Community

Join thousands of players in a vibrant online community. Participate in large-scale alliance warfare, trade with other civilizations, and compete in regular tournaments and events.

Continuous Updates

The game receives regular content updates, including new mythological creatures, historical campaigns, and gameplay features that keep the experience fresh and engaging.

Browser Accessibility

No downloads or installations required - simply open your web browser and begin your conquest. The game runs smoothly on most modern computers and supports various operating systems.

Frequently Asked Questions (FAQ)