Tank Trouble - Online Multiplayer Tank Battle Game

Seele01-Flash
By
Tank Trouble is a thrilling online multiplayer tank battle game where you navigate maze-like battlefields, shoot missiles, and outmaneuver opponents. Play solo against AI or challenge up to 2 friends in intense tank warfare.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Tank Trouble Mobile**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Minimalist "Vector 3D" aesthetic. Use simple geometry (cubes/cylinders) with flat shading or cel-shading to mimic the original 2D flash game look but with depth. * **The Maze**: A procedurally generated grid-based maze (white or light grey walls) on a dark grey background. Walls must be distinct to clearly indicate collision surfaces. * **The Tanks**: Low-poly distinct tanks. Player tank (e.g., Green) and AI tank (e.g., Red). Tanks should have a separate turret mesh and a base mesh. * **Visual Feedback**: * **Trajectory Lines**: Since mobile screens are small, draw a faint dashed line showing the potential bullet trajectory (including 1 bounce) to assist aiming. * **Explosions**: Simple particle systems (expanding spheres or cubes) when a tank is hit. * **Mobile Optimization**: Use `THREE.InstancedMesh` for the maze walls to reduce draw calls. Limit shadow casting to the tanks only, or bake shadows for the maze. ### 2. Audio Requirements * **BGM**: A suspenseful, low-tempo electronic military track (looping). * **Sound Effects (SFX)**: * **Movement**: A continuous, low-pitch humming/rumbling sound when the tank moves. * **Firing**: A punchy "thud" or "pow" sound. * **Ricochet (Crucial)**: A high-pitched metallic "ping" whenever a bullet hits a wall. This provides essential feedback on the bouncing mechanic. * **Explosion**: A crunched 8-bit style boom. * **Power-up**: A retro arcade "chime" when collecting items. ### 3. Gameplay Loop * **Objective**: Destroy the enemy tank (AI "Laika") before it destroys you. * **Core Mechanic - Bouncing Bullets**: * Bullets travel in a straight line at constant speed. * Bullets **must** reflect perfectly off walls (angle of incidence = angle of reflection). * Bullets persist for a specific duration (e.g., 10 seconds) or a max number of bounces (e.g., 5). * **Friendly Fire**: Players can destroy themselves if their own bullet bounces back. * **The AI (Laika)**: The enemy tank should use raycasting to detect the player and calculate simple bounce shots. * **Power-ups**: Randomly spawn items in the maze: * *Laser*: Extends the aiming trajectory line. * *Gatling Gun*: Rapid fire but shorter bullet life. * *Frag Bomb*: Bullet explodes into shrapnel upon impact. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** (strictly enforced via CSS or camera aspect ratio). * **Control Scheme (Virtual Joystick)**: * **Left Thumb**: A Virtual Analog Stick. Pushing the stick rotates the tank body; the tank automatically moves forward in the direction it faces if the stick is pushed past a deadzone. * **Right Thumb**: A large "Fire" button (min 64x64px). * **Camera**: Use an **Orthographic Camera** positioned directly overhead (Top-Down). This removes perspective distortion, making it easier for the player to judge geometric bounce angles on a small screen. * **Haptics**: Trigger `navigator.vibrate(50)` on shooting and `navigator.vibrate(200)` on explosion/death. * **UI**: Minimal HUD showing "P1 Score" vs "CPU Score" in the top corners. A "Restart" button overlaid on the center screen only after a round ends. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Tank Trouble

Tank Trouble is a classic online tank battle game that combines strategic movement with intense combat action. Navigate through intricate maze-like battlefields while engaging in explosive tank warfare. Whether you're battling against the clever AI opponent Laika in solo mode or challenging friends in multiplayer combat, Tank Trouble delivers non-stop action and strategic gameplay that keeps players coming back for more.

The game features simple yet engaging mechanics where positioning, timing, and quick reflexes determine victory. With its distinctive maze-based combat system and ricocheting missile mechanics, Tank Trouble offers a unique twist on traditional tank warfare games.

Core Features

Multiple Game Modes

  • Solo Mode : Face off against Laika, a master AI opponent with advanced tactics
  • Multiplayer Mode : Battle up to 2 friends simultaneously for epic 3-player warfare
  • Local Multiplayer : Perfect for gaming sessions with friends on the same device

Dynamic Combat System

  • Ricocheting Missiles : Master the art of bouncing shots off walls to hit enemies
  • Special Power-ups : Collect rockets, scatter bombs, and double cannons for tactical advantages
  • Strategic Positioning : Use maze walls for cover and tactical positioning

Engaging Gameplay Elements

  • Maze-like Battlefields : Navigate through complex layouts that change the dynamics of each battle
  • Physics-based Combat : Realistic missile physics with wall bouncing mechanics
  • Quick Matches : Fast-paced rounds perfect for casual gaming sessions

Game Mechanics

Tank Trouble's unique appeal lies in its missile ricocheting system. Unlike traditional shooting games, your missiles bounce off walls, creating opportunities for creative shots and unexpected eliminations. However, be careful - your own missiles can eliminate your tank if they bounce back at you!

The maze-like battlefields add another layer of strategy. Use walls for protection, plan your escape routes, and position yourself for the perfect shot. Power-ups spawn throughout the battlefield, providing temporary advantages like enhanced firepower or special ammunition types.

Operation Guide

Solo Mode Controls

  • Arrow Keys : Navigate your tank through the maze
  • Spacebar : Fire missiles at enemies
  • Strategy : Find enemies quickly and shoot from safe positions before they target you

Multiplayer Mode Controls

  • Player 1 : WASD keys for movement, Q key for shooting
  • Player 2 : Arrow keys for movement, Spacebar for shooting
  • Player 3 : Mouse controls for both movement and shooting

Gameplay Tips

  • Master the ricocheting system to hit enemies around corners
  • Collect power-ups strategically to gain temporary advantages
  • Always be aware of your missile's trajectory to avoid self-elimination
  • Use maze walls for tactical positioning and cover

Why Play Tank Trouble

Tank Trouble stands out as one of the most accessible yet challenging tank games available online. Its simple controls make it easy for anyone to start playing, while the strategic depth keeps experienced players engaged. The multiplayer functionality makes it perfect for competitive gaming with friends, while solo mode offers excellent practice against challenging AI.

The game requires no downloads or installations - simply open your browser and start battling immediately. With its timeless gameplay mechanics and engaging combat system, Tank Trouble provides endless entertainment for tank warfare enthusiasts and casual gamers alike.

Perfect for quick gaming sessions, Tank Trouble combines the excitement of combat with the mental challenge of navigating complex mazes while planning strategic attacks.

Frequently Asked Questions (FAQ)