War of Sticks - Strategy Tower Defense Game

Seele01-Flash
By
War of Sticks is an engaging strategy tower defense game where you lead a stick kingdom to freedom from the oppressive Red Empire. Combine resource management, army building, and tactical combat in this epic liberation campaign.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**War of Sticks**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Side-Scrolling Battle View. The aesthetic should replicate clean vector art using 3D models. Use **Toon Shading (Cell Shading)** or unlit materials to mimic the flat, vibrant look of the reference image. * **Character Models**: * **Base Mesh**: Stylized 3D stick figures constructed from simple cylindrical geometries (not realistic humans). * **Team Colors**: Player units are **Blue** (cyan capes/highlights); Enemy units are **Red** (Red Empire). * **Classes**: * *Miner*: Carrying a pickaxe and a bag. * *Shielder*: Wearing a Spartan-style helmet and carrying a large round shield (as seen in the image). * *Archer*: Equipped with a bow and quiver. * *Wizard*: Wearing a pointed hat and holding a staff. * **Environment**: * A horizontal lane system. * **Left Side**: Player Base/Statue (Must be defended). * **Right Side**: Enemy Base/Statue (Target to destroy). * **Background**: Parallax scrolling layers with stylized mountains and a vibrant yellow/orange sky to match the promotional art. * **Resources**: Gold mines positioned near the player's base. * **Performance**: Use InstancedMesh for units to handle large armies (50+ units) on mobile devices without frame drops. Low polygon count for all assets. ### 2. Audio Requirements * **BGM**: An epic, orchestral "War March" loop involving snare drums and brass instruments to build tension, but kept lighthearted/cartoonish. * **Sound Effects**: * **UI**: A satisfying "Pop" or "Click" sound when purchasing units. * **Combat**: Sword clangs, arrow "whoosh" sounds, magical "zaps", and punch impacts. * **Mining**: Rhythmic "pickaxe hitting stone" sounds when miners are working. * **Victory/Defeat**: A trumpet fanfare for victory; a sad trombone for defeat. ### 3. Gameplay Loop * **Economy & Management**: * The game runs in real-time. * Player clicks "Train Miner". Miners spawn, walk to the Gold Mine, perform a mining animation, and return to the base to deposit Gold. * **Unit Production**: * Player spends Gold to spawn combat units (Shielders, Archers, Barbarians, Wizards). * **Auto-Battle Logic**: Once spawned, combat units automatically march to the **Right**. * **Combat System**: * Units stop when they encounter an enemy unit or building. * **Rock-Paper-Scissors Balance**: Shielders block arrows; Barbarians break shields; Wizards deal area damage. * Units have HP bars floating above their heads. * **Win/Loss Condition**: * **Win**: Destroy the Enemy Statue on the far right. * **Loss**: Enemy units destroy the Player Statue on the far left. ### 4. Mobile Controls & Interaction * **Camera Control**: Since the battlefield is wider than the screen, implement **Touch & Drag (Swipe)** functionality to pan the camera left and right along the battlefield. * **UI Layout (HUD)**: * **Unit Shop**: A fixed bar at the **Bottom of the screen** (more ergonomic for thumbs than top-left). * **Buttons**: Large, square buttons (min 60x60px) representing each unit type with their cost displayed. * **Resource Counter**: Large, readable text at the Top Center displaying current Gold amount. * **Feedback**: * **Haptic Feedback**: Trigger a short vibration when a unit is purchased or a tower is destroyed. * **Visual Feedback**: Buttons should scale down slightly when pressed. Floating text numbers (e.g., "-50 Gold", "+10 Gold") should appear when spending or earning resources. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About War of Sticks

War of Sticks is a captivating strategy tower defense game that combines resource management with tactical warfare. As the commander of a stick kingdom under the oppression of the Red Empire, your mission is to lead your people to freedom through strategic planning, resource allocation, and military prowess.

This free-to-play browser game offers an immersive experience where every decision matters. From mining operations to military campaigns, you'll need to balance economic development with defensive preparations to achieve ultimate victory.

Core Features

Strategic Resource Management

The foundation of your kingdom's success lies in efficient resource management. Train miners to collect precious gold from the earth, then strategically invest these earnings into military units and defensive structures. Every gold piece spent brings you closer to liberation.

Diverse Military Units

Build a formidable army with multiple unit types, each serving unique tactical purposes: - Miners : Essential workers who collect gold to fund your operations - Shielders : Heavily armored front-line defenders perfect for absorbing enemy attacks - Archers : Ranged specialists who can eliminate threats from a safe distance - Barbarians : Fierce melee fighters with devastating close-combat abilities - Wizards : Magical units wielding powerful spells to turn the tide of battle

Tower Defense Elements

Utilize stones collected by your miners to construct defensive towers. These structures provide crucial protection for your kingdom while you build up your forces. Strategic tower placement can mean the difference between victory and defeat.

Progressive Upgrade System

Every unit and building in your kingdom can be upgraded to reach maximum potential. Invest in improvements to increase effectiveness, unlock new abilities, and strengthen your overall military capability.

Gameplay Mechanics

Economic Foundation

Success begins with establishing a strong economic base. Train multiple miners to ensure steady gold income, as this precious resource fuels every aspect of your military campaign. Balance immediate needs with long-term investments for sustained growth.

Military Strategy

Develop tactical approaches suited to different combat scenarios. Use shielders to protect vulnerable ranged units, position archers for maximum coverage, and deploy barbarians for aggressive pushes. Wizards provide magical support that can change battle outcomes.

Defensive Planning

Stone collection and tower construction form your defensive backbone. Plan tower locations carefully to create overlapping fields of fire and protect key strategic points. Upgraded towers become increasingly powerful deterrents against enemy advances.

Operation Guide

Mouse Controls

The game features intuitive mouse-based controls accessible to players of all skill levels: - Left Click : Select units, buildings, and activate purchase buttons - Purchase Buttons : Located in the upper-left corner for easy access - Unit Management : Click to train miners, soldiers, and other military units - Building Construction : Select tower locations and upgrade existing structures

Mobile Touch Controls

For mobile players, simple finger taps replace mouse clicks: - Tap : Select and activate all game elements - Touch Interface : Optimized button layout for smartphone and tablet screens - Responsive Design : Seamless experience across all mobile devices

Why Play War of Sticks

Completely Free Experience

Enjoy the full War of Sticks experience without any cost. No hidden fees, no premium content locks – everything is available from the moment you start playing.

Cross-Platform Compatibility

Play seamlessly across multiple devices. Start a campaign on your computer during lunch break, then continue the battle on your phone during your commute. Progress saves automatically across all platforms.

Engaging Strategic Depth

Unlike simple clicking games, War of Sticks rewards careful planning and strategic thinking. Each decision impacts your kingdom's fate, creating genuine stakes and meaningful player agency.

Perfect Session Length

Whether you have five minutes or an hour, War of Sticks adapts to your schedule. Quick sessions allow for resource collection and unit training, while longer plays enable major military campaigns.

Accessibility for All Players

Simple controls and clear visual design make the game accessible to strategy newcomers, while deep mechanics provide sufficient challenge for experienced tacticians.

Frequently Asked Questions (FAQ)