Stalingrad Tower Defense

Seele01-Flash
By
Stalingrad Tower Defense is an intense WWII-themed strategy game where you defend Soviet territory against enemy invasion. Build factories, deploy defensive weapons, and create an impenetrable wall of fire to protect Mother Russia.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Stalingrad Defense: Winter Front**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, stylized "War Diorama" aesthetic. The scene should look like a tactical board game coming to life. * **Camera**: Use an **Orthographic Camera** positioned at a high angle (isometric view, approx 45 degrees) to ensure grid precision for tower placement. * **Terrain**: A fixed grid map (e.g., 10x10 or 12x8). The ground should be a snowy texture (white/light blue-grey) with a distinct dark grey paved road (the enemy path) winding from start to finish. * **Models**: * **Towers**: Blocky, color-coded structures. * *Factory (Economy)*: Industrial brown building with smoke particles. * *Machine Gun Nest*: Green, fast firing. * *Cannon*: Grey, slow but heavy damage. * **Enemies**: Simple geometric representations of German tanks (grey boxes with barrels) and infantry (small cylinders). * **Environment**: Ruined buildings or snow-covered pine trees on non-path tiles for decoration. * **Performance**: Use `InstancedMesh` for enemies and projectiles to ensure 60FPS on mobile devices. Use simple basic materials (Lambert or Phong) to reduce lighting calculation overhead. ### 2. Audio Requirements * **BGM**: A solemn but driving orchestral track featuring snare drums and low brass, evoking a "Soviet March" or "Winter War" atmosphere. * **Sound Effects (SFX)**: * *Construction*: A mechanical "wrench" or "thud" sound when placing a building. * *Shooting*: Distinct sounds for machine guns (rapid high-pitch) vs. cannons (deep boom). * *Impact*: A metallic "clank" or explosion sound when enemies are hit. * *UI*: Crisp clicks for button presses; a loud alarm buzzer if the base takes damage. ### 3. Gameplay Loop * **Core Logic**: Standard Tower Defense with an economic twist. * **Resources**: Player starts with limited "Supplies" (Money). * **The Twist**: Players MUST build **Factories** to generate Supplies over time. Without Factories, they cannot afford enough weapons to survive later waves (referencing the "Hard" tag). * **Enemies**: Wave-based system. Waves get progressively harder (Infantry -> Light Tanks -> Heavy Panzers). Enemies follow a pre-defined array of waypoints along the road. * **Win/Loss**: * **Loss**: If 10 enemies reach the end of the path (Base Health reaches 0). * **Win**: Survive all defined waves (e.g., 5 waves for this demo). * **Towers**: * *Factory*: Generates +10 Supplies every 5 seconds. * *Turret*: Low range, high fire rate. * *Cannon*: Long range, splash damage, slow fire rate. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** enforced. * **Control Scheme**: "Select then Place" workflow to prevent misclicks on small screens. 1. Tap a Unit Icon from the UI menu (bottom of screen) to select it. 2. Tap a valid grid tile on the map to place the building. 3. Tap an existing tower to see its range (visualized by a semi-transparent ring). * **UI Layout**: * **Top Bar**: Current Wave, Base Health (Heart Icon), Supplies (Gear Icon). * **Bottom Bar**: Large, thumb-friendly buttons (min-height 60px) for selecting towers/factories, displaying cost clearly. * **Feedback**: * **Visual**: When trying to place a tower on the road or an obstacle, flash the grid tile Red. If valid, flash Green. * **Haptic**: Trigger `navigator.vibrate(50)` on successful build or when base takes damage (if supported). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Stalingrad Tower Defense brings the intensity of World War II's Eastern Front to your browser in this challenging strategy tower defense experience. Set during one of history's most pivotal battles, you take command of Soviet defenses against advancing enemy forces. The game combines classic tower defense mechanics with historical warfare themes, offering players a strategic challenge that requires careful planning and resource management.

Core Features

Strategic Factory Management

The heart of your defense lies in building and managing different types of factories. Each factory serves a crucial purpose:

  • Money Factories : Generate the resources needed to fund your defensive operations
  • Weapons Factories : Produce the firepower necessary to stop enemy advances
  • Tank Factories : Create heavy armored units for maximum defensive capability

Challenging Difficulty Level

Rated as a "Hard" difficulty game, Stalingrad Tower Defense doesn't pull any punches. Enemy waves become increasingly difficult, requiring strategic thinking and efficient resource allocation. Every decision matters when the fate of your territory hangs in the balance.

Historical WWII Setting

Immerse yourself in the atmosphere of one of history's most significant battles. The game captures the desperate defensive spirit of the Eastern Front, where every factory, every weapon, and every strategic decision could determine the outcome of the war.

Gameplay Mechanics

Tower Defense Strategy

As enemy forces advance across multiple paths, you must strategically place your defensive structures to create overlapping fields of fire. The key is building a "defensive wall of fire" that no enemy unit can penetrate.

Resource Economics

Balancing your economy is crucial for success. You need steady income from money factories to fund expansion, while simultaneously investing in weapons production to maintain your defensive capabilities.

Operation Guide

Mouse Controls : The game uses intuitive mouse-based controls for all actions - Left Click : Select and place buildings, manage factories - Right Click : Cancel actions or deselect items - Mouse Movement : Navigate the battlefield and access different areas - Scroll : Zoom in/out for better tactical overview (if supported)

Basic Strategy Tips

  1. Start by establishing a solid economic foundation with money factories
  2. Gradually transition to weapons and tank production as threats increase
  3. Position defensive structures to cover multiple enemy paths
  4. Monitor resource flow and adjust factory production accordingly
  5. Prioritize upgrades that maximize defensive efficiency

Why Play This Game

Perfect for Strategy Enthusiasts

If you enjoy games that challenge your tactical thinking and resource management skills, Stalingrad Tower Defense offers exactly that experience. The combination of economic planning and defensive strategy creates engaging gameplay that rewards smart decision-making.

Accessible Yet Challenging

While the game is rated as difficult, its mouse-only control scheme makes it accessible to players of all skill levels. The challenge comes from strategic depth rather than complex controls, making it perfect for both casual players seeking a challenge and strategy veterans.

Free Browser Gaming

Enjoy this complete tower defense experience without any cost. No downloads, installations, or payments required - simply open your browser and start defending Mother Russia.

Historical Gaming Experience

For players interested in WWII history, this game offers an engaging way to experience the strategic challenges faced during one of the war's most crucial battles, albeit in an entertaining gaming format rather than a historical simulation.

Frequently Asked Questions (FAQ)