Clan Wars - Free Strategy Tower Defense Game

Seele01-Flash
By
Clan Wars is a free online strategy tower defense game where you command goblin armies to destroy enemy strongholds. Build units, upgrade defenses, and engage in tactical warfare in this addictive browser-based war game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Clan Wars". 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 rendered with an Orthographic Camera to maintain the classic "flat" gameplay feel but with modern depth. * **Color Palette**: Earthy, goblin-centric tones. Ground should be a textured dirt path (Browns), background should be a parallax scrolling forest (Greens/Dark Greens). * **Units**: * **Player (Left Side)**: Green Goblins. Differentiate classes (Grunt, Tank, Ranged) using simple geometry changes (e.g., Grunt has a spear, Tank has a shield, Ranged has a bow). * **Enemy (Right Side)**: Red/Dark Goblins. Same geometry but distinct red textures/materials. * **Hero Unit**: Larger scale, distinctive gold armor or particle effect aura. * **Bases**: * **Player Base**: A wooden/stone fortress on the far left. * **Enemy Base**: A dark metal/spiked fortress on the far right. * **Performance Optimization**: * Use `THREE.InstancedMesh` for unit rendering to handle large armies (50+ units) without FPS drops on mobile. * Implement object pooling for projectiles and unit spawns. * Use simple Phong materials; avoid expensive real-time shadows; use baked shadows (dark circles under units). ### 2. Audio Requirements * **BGM**: A rhythmic, tribal war-drum track. It should feel mischievous yet aggressive (Goblin theme). Loop seamlessly. * **Sound Effects (SFX)**: * **Spawn**: A distinct "pop" or "grunt" sound. * **Combat**: Metal clashing, wood thudding (low fidelity retro style). * **Gold**: A satisfying high-pitched coin "ching" sound for passive income ticks. * **Base Hit**: A low bass "boom" + screen shake effect. * **Win/Loss**: Trumpet fanfare for win, sad trombone/collapse sound for loss. ### 3. Gameplay Loop * **Core Mechanic**: Tug of War. Units spawn and automatically move along the X-axis towards the opposing base. * **Combat Logic**: * Units detect enemies within a `range` threshold. * Upon contact, movement stops, and an attack animation/timer begins. * `HP = HP - (AttackerDamage - DefenderDefense)`. * **Economy System**: * **Gold**: Accumulates automatically over time (`Gold += PassiveRate`). Killing enemies grants bonus gold. * **Reputation**: A stat that acts as a multiplier for the Passive Gold Rate. Increases as the player destroys enemy units. * **Upgrade System**: * Allow spending Gold to upgrade: Unit Attack, Unit Defense, Base HP, and Gold Generation Rate. * **Win/Loss Condition**: * **Win**: Enemy Base HP <= 0. * **Loss**: Player Base HP <= 0. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** (Required for the lane-based view). * **UI Layout**: * **Bottom HUD (Action Bar)**: A row of large, tappable icons (min 44x44px) for spawning units. * **Top HUD**: Gold counter, Reputation meter, and Health Bars for both bases (Left vs Right). * **Upgrade Menu**: A toggle button (or tab) that overlays the unit spawn bar with upgrade options. * **Touch Feedback**: * **Visual**: Buttons should depress/highlight on touch. Floating text ("+10 Gold", "-5 HP") appears in the 3D world when events happen. * **Haptic**: Trigger `navigator.vibrate(10)` when a unit spawns or gold is collected. Trigger `navigator.vibrate([50, 50, 50])` when the player's base takes damage. * **Camera Control**: Allow single-finger horizontal swipe to pan the camera between the two bases, but keep the UI fixed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Clan Wars is an engaging strategy tower defense game that combines tactical warfare with resource management. With a solid 4.3/5 rating from thousands of players, this free browser game offers hours of strategic combat where you lead goblin armies in epic battles to destroy enemy strongholds while defending your own.

This game stands out in the strategy genre by combining traditional tower defense mechanics with real-time unit spawning and upgrade systems. Unlike typical mining-based strategy games, Clan Wars features an automatic gold generation system that keeps the action flowing continuously.

Core Features

Strategic Unit Management

  • Diverse Unit Types : Unlock various goblin units as you progress, each with unique abilities and combat roles
  • Hero Units : Access powerful hero characters that can turn the tide of battle
  • Automatic Progression : Units march automatically across the battlefield, allowing you to focus on strategy

Advanced Upgrade System

  • Unit Upgrades : Enhance attack and defense capabilities of your goblin army
  • Stronghold Fortification : Upgrade your base's damage output and defensive capabilities
  • Reputation System : Earn increased gold rewards through successful battles and strategic victories

Dynamic Combat Mechanics

  • Tug-of-War Gameplay : Experience strategic push-and-pull mechanics as armies clash
  • Defensive Strategies : Utilize stronghold defenses when enemies breach your lines
  • Resource Management : Balance gold spending between unit spawning and upgrades

Game Mechanics

The core gameplay revolves around spawning goblin units from your stronghold, watching them march toward enemy territory, and engaging in tactical combat. Success depends on your ability to balance offensive unit creation with defensive upgrades and strategic timing.

Gold and Economy System

Unlike traditional strategy games, Clan Wars features an innovative economy where gold generates automatically over time. Additional income comes from defeating enemy units and achieving battle objectives. The reputation system rewards skilled players with bonus gold generation, creating a rewarding progression loop.

Experience and Progression

As you complete battles and achieve victories, you'll gain experience points that unlock new unit types and abilities. This progression system ensures that each playthrough offers new strategic possibilities and keeps the gameplay fresh and engaging.

Operation Guide

Basic Controls

  • Unit Spawning : Click on unit icons to deploy goblin warriors using your available gold
  • Upgrades : Access upgrade menus to enhance unit stats and stronghold capabilities
  • Strategic Planning : Monitor gold income and enemy movements to time your deployments

Winning Strategies

  1. Balance Your Army : Mix different unit types for optimal battlefield effectiveness
  2. Upgrade Wisely : Prioritize upgrades based on your opponent's strategy
  3. Timing is Key : Deploy units at strategic moments to maximize impact
  4. Defend and Attack : Maintain strong defenses while building offensive capabilities

Why Play This Game

Perfect for Strategy Enthusiasts

Clan Wars offers the perfect blend of accessibility and depth. New players can jump in immediately thanks to intuitive controls, while experienced strategists will appreciate the nuanced upgrade systems and tactical decision-making required for advanced play.

Completely Free Experience

Enjoy full access to all game features without any payment requirements. The entire strategic experience is available through your web browser, making it perfect for quick gaming sessions or extended strategic campaigns.

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, laptops, tablets, and smartphones. The browser-based design ensures you can continue your goblin campaigns anywhere with an internet connection.

Engaging Progression System

The combination of experience-based unlocks, reputation rewards, and upgrade paths creates a satisfying sense of advancement that keeps players returning for more strategic battles.

Frequently Asked Questions (FAQ)