Trench War

Seele01-Flash
By
Trench War is a free strategic tower defense game that combines tactical warfare with resource management. Command different military units including snipers, riflemen, and machine gunners to defend your trenches and defeat enemy forces.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Trench War: 1917 Strategy**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **Low-Poly / Stylized 3D** aesthetic with a gritty, desaturated color palette (muddy browns, military greens, steel grays) to simulate a WWI battlefield. * **Camera & View**: Implement an **Orthographic Camera** fixed from a side-view perspective (2.5D), creating a "diorama" look. The player's trench is on the Left, the Enemy trench is on the Right. * **Environment**: * **Ground**: A textured plane representing "No Man's Land" with craters, barbed wire (static meshes), and sandbags. * **Background**: Several layers of parallax scrolling silhouettes (ruined cities, smoke stacks) with a heavy grey fog effect to limit draw distance and improve mobile performance. * **Lighting**: Ambient grey lighting with dynamic point lights for muzzle flashes and explosions. * **Units**: Simple geometric character models with distinct silhouettes to identify classes: * *Rifleman*: Standard helmet, rifle. * *Machine Gunner*: Bulkier model, holding heavy gun. * *Sniper*: Slim model, long rifle, camo element. * **Optimization**: Use `InstancedMesh` for projectiles and repeated environment props (barbed wire) to reduce draw calls on mobile devices. ### 2. Audio Requirements * **BGM**: A suspenseful, rhythmic **military march** featuring snare drums and low brass. It should loop seamlessly. * **Sound Effects (SFX)**: * *UI*: Metallic "clank" for button presses; "Cash register" sound when buying units. * *Combat*: Distinct gunshot sounds for each unit type (Sniper = loud crack, MG = rapid fire). * *Interaction*: A loud **Whistle** sound when the player commands units to "Charge". * *Atmosphere*: Distant explosions and wind howling in the background. ### 3. Gameplay Loop * **Core Mechanic**: A "Tug of War" lane strategy game. 1. **Resource**: Player passively generates "Gold" over time. 2. **Recruitment Phase**: Player taps UI buttons to buy units. Units spawn and wait in the **Player's Trench** (Safe Zone). 3. **Attack Phase**: Player presses the **"CHARGE"** button. All units currently in the trench climb out and move right across No Man's Land, auto-attacking enemies within range. 4. **Support**: Player can pay a high cost to call a **Mortar Strike** (AOE damage on a tapped location). * **Unit Logic**: * *Rock-Paper-Scissors Balance*: Snipers outrange MGs; MGs suppress/kill Riflemen quickly; Riflemen are cheap and overwhelm Snipers. * **Win/Loss Condition**: * *Win*: Friendly units reach the right edge of the screen (Enemy Bunker) and deplete its HP to 0. * *Loss*: Enemy units reach the player's trench (Left edge) and destroy the base. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** is mandatory for the wide battlefield view. * **UI Layout (Touch Friendly)**: * **Unit Shop**: A horizontal bar at the bottom center. Buttons must be at least **60x60px** for easy thumb tapping. * **Charge Button**: A large, distinct button (e.g., red with a whistle icon) on the bottom right. * **Mortar Strike**: A cooldown button on the bottom left. * **Interaction**: * **Tap**: Select units to buy. * **Drag/Tap**: To target the Mortar Strike. * **Feedback**: * **Haptic Feedback**: Trigger a short vibration when a unit dies or a bunker takes damage. * **Visual Juice**: Screen shake (camera shake) on mortar explosions. Floating text numbers for damage and gold earned. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Trench War is an intense strategic tower defense game that puts you in command of military forces during epic trench warfare battles. With an impressive 4.6/5 rating, this free browser-based game challenges players to build armies, manage resources, and execute tactical strategies to achieve victory.

Set in a world of perpetual conflict, you'll take control of one side in the global war effort. Unlike simple action games, Trench War rewards careful planning, strategic thinking, and tactical execution. Every decision matters as you build your military force and engage in epic battles.

Core Features

Strategic Military Gameplay

Trench War offers deep strategic gameplay that combines tower defense mechanics with real-time tactical decisions. You'll need to balance offensive pushes with defensive positioning, making every battle a test of your military acumen.

Diverse Unit Types

Command various specialized military units: - Snipers : Long-range precision units for strategic elimination - Riflemen : Versatile infantry units for balanced combat - Machine Gunners : Heavy firepower specialists for suppressive fire - Mortar Strikes : Devastating artillery support for breaking enemy lines

Free-to-Play Excellence

Enjoy complete access to all game features without any payment required. Trench War is completely free, playable directly in your browser without downloads or installations.

Cross-Platform Compatibility

Seamlessly play on desktop computers, laptops, tablets, and mobile devices. The HTML5 technology ensures smooth gameplay across all platforms.

Gameplay Mechanics

Resource Management

Success in Trench War requires careful resource allocation. You'll need to balance spending on different unit types while saving for crucial moments when heavy artillery or specialized units can turn the tide of battle.

Tactical Combat System

Each battle presents unique challenges requiring different tactical approaches. Analyze enemy positions, choose optimal unit compositions, and time your attacks perfectly to maximize effectiveness.

Progressive Strategy

The game rewards both quick tactical decisions and long-term strategic planning. Master the art of knowing when to defend your trenches and when to launch aggressive offensives.

Operation Guide

Basic Controls

  • Mouse/Touch : Point and click on desktop or tap on mobile devices
  • Unit Selection : Choose units from the bottom menu interface
  • Unit Deployment : Purchase and deploy units directly into battle
  • Combat Commands : Select deployed units to order charges against enemies
  • Special Attacks : Call in mortar strikes for area damage

Strategic Tips

  1. Start with Basics : Begin with your three core units - snipers, riflemen, and machine gunners
  2. Resource Planning : Save resources for critical moments and powerful unit combinations
  3. Positioning Matters : Consider unit placement carefully for maximum tactical advantage
  4. Timing is Key : Learn when to defend and when to launch offensive pushes
  5. Unit Synergy : Combine different unit types for devastating tactical combinations

Why Play Trench War

Trench War stands out in the crowded strategy game market by offering genuine tactical depth without overwhelming complexity. The game perfectly balances accessibility for newcomers with strategic depth that will challenge experienced players.

The free-to-play model means you can dive into intense military strategy without any financial commitment. The browser-based platform ensures you can command your forces anywhere, anytime, without downloads or installations.

Whether you prefer careful defensive strategies or aggressive blitzkrieg tactics, Trench War accommodates multiple playstyles while rewarding strategic thinking and tactical execution. The more you invest in learning the game's nuances, the more rewarding your victories become.

Frequently Asked Questions (FAQ)