STUG (.io) - Multiplayer Tank Battle Game

Seele01-Flash
By
STUG (.io) is an intense multiplayer tank warfare game where players battle in real-time combat. Customize your tank, unlock powerful vehicles, and use strategic killstreaks to dominate the battlefield.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "STUG - Mobile Tank Warfare". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly 3D aesthetic with "Toon Shading" (Cel-shaded) to match the cartoonish 2D vector art style of the reference image. Use vibrant, saturated colors (Military Green, Ocean Blue, Sand Yellow). * **Tank Models**: Create a modular tank composed of two distinct meshes: the **Hull** (chassis) and the **Turret**. The Turret must rotate independently of the Hull. Apply a camouflage texture (procedural noise or simple texture map). * **Environment**: A top-down battlefield arena. The ground should be a tile-able dirt/grass texture. Include obstacles: * *Soft Cover*: Wooden crates (destructible). * *Hard Cover*: Concrete barriers/walls (indestructible). * *Foliage*: Low-poly trees or bushes for concealment logic. * **VFX**: Muzzle flashes (yellow/orange cones), smoke particles upon firing, and debris particles when a tank explodes. * **Mobile Optimization**: Use `InstancedMesh` for environmental obstacles and projectiles to reduce draw calls. Limit shadow casting to the main player and immediate enemies. ### 2. Audio Requirements * **BGM**: An energetic, marching-band style track with snare drums and brass, looped. It should sound heroic but arcade-like. * **Sound Effects (SFX)**: * *Engine*: A constant low-frequency rumble that increases in pitch when moving. * *Turret*: A mechanical servo "whirring" sound when aiming. * *Combat*: Heavy "Thud-Boom" for cannon fire; "Clang" for metallic impacts; "Crumble" for destroying crates. * *UI*: Crisp clicks for button presses. ### 3. Gameplay Loop * **Core Mechanics**: A fast-paced Top-Down Shooter. The player spawns in a random location on the map. * **Tank Physics**: The tank uses "Tank Controls" (rotate hull left/right, move forward/backward). It should carry momentum (drift slightly when stopping) and have recoil when firing. * **Combat Logic**: * Projectiles have travel time (not hit-scan). * Shells deal damage on impact. * Rear armor takes more damage than front armor (critical hits). * **Winning/Losing**: Reduce enemy HP to 0 to score a kill. If Player HP reaches 0, show a "Destroyed" screen with a "Respawn" button. * **Bot Behavior**: Simple AI tanks that patrol, detect the player within a certain radius, rotate their turret to aim, and fire. ### 4. Mobile Controls & Interaction * **Screen Orientation**: Locked to **Landscape** mode. * **Twin-Stick Control Scheme**: * **Left Stick (Virtual Joystick)**: Controls Hull movement (Up/Down for throttle, Left/Right for hull rotation). * **Right Stick (Virtual Joystick)**: Controls Turret rotation. Dragging to the edge engages "Auto-fire" or releasing the stick fires a shot. * **Action Buttons**: * **Boost Button**: A large circular button near the Right Stick to activate a temporary speed boost (simulating the 'Shift' key). * **Repair/Ability**: A smaller button for a cooldown-based repair kit. * **Camera**: Top-down Orthographic or high-angle Perspective camera that smoothly follows the player's tank with a slight delay (lerp) to emphasize speed. * **Feedback**: * Screen shake on firing and impact. * Haptic feedback (vibration) when taking damage or destroying an enemy. * Floating damage numbers pop up on hit. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

STUG (.io) is a thrilling multiplayer tank battle game that combines fast-paced combat with strategic warfare elements. In this top-down battlefield experience, you'll engage in intense tank-vs-tank combat against players from around the world. The game features a comprehensive progression system with vehicle customization, research upgrades, and tactical killstreak rewards that keep every battle fresh and exciting.

Core Features

Real-Time Multiplayer Combat

Engage in epic tank battles with players worldwide in real-time multiplayer matches. Each battle is unique, with dynamic gameplay that requires both tactical thinking and quick reflexes to outmaneuver your opponents.

Extensive Vehicle System

Unlock and purchase various tank types, each with unique strengths and capabilities. From heavily armored assault tanks to fast reconnaissance vehicles, choose the perfect war machine for your playstyle.

Tank Customization & Research

Personalize your tank with custom paint schemes, decals, and upgrades. Use the research system to unlock advanced technologies, improving your tank's armor, firepower, and mobility to gain battlefield advantages.

Strategic Killstreak System

Earn powerful killstreak rewards by eliminating enemy tanks. Deploy airstrikes, call in reinforcements, or activate special abilities that can turn the tide of battle in crucial moments.

Team-Based Warfare

Coordinate with teammates using the built-in alert system. Strategic teamwork and communication are essential for victory in larger battles where coordination can mean the difference between triumph and defeat.

Game Mechanics

STUG (.io) features intuitive top-down tank combat with realistic physics and ballistics. Players must consider factors like tank positioning, terrain advantages, and ammunition management while engaging in fast-paced battles across diverse battlefields.

Operation Guide

Master these essential controls to dominate the battlefield:

  • Movement : Use WASD keys to navigate your tank across the terrain
  • Combat : Left-click to fire your main gun at enemy targets
  • Boost : Hold Shift for temporary speed boost to escape danger or close distance
  • Killstreaks : Press 1, 2, or 3 to activate earned killstreak abilities
  • Team Communication : Middle mouse button alerts teammates to specific locations
  • Vehicle Control : Space bar engages handbrake for wheeled vehicles

Strategic Tips

  • Position your tank behind cover to avoid enemy fire
  • Use boost strategically to flank enemies or retreat when damaged
  • Coordinate with teammates using the alert system
  • Save killstreaks for crucial moments in battle
  • Learn each vehicle's strengths and weaknesses

Why Play STUG (.io)

This game offers the perfect blend of accessible gameplay and strategic depth. Whether you're a casual player looking for quick tank battles or a competitive gamer seeking tactical warfare, STUG (.io) delivers intense multiplayer action that keeps you coming back. The free-to-play model means you can jump into battle immediately, while the progression system provides long-term goals and rewards.

The game's browser-based platform ensures you can play anywhere without downloads, making it ideal for quick gaming sessions or extended tank warfare campaigns with friends.

Frequently Asked Questions (FAQ)