Tank Wars - 3D Turn-Based Tank Warfare Game

Seele01-Flash
By
Tank Wars delivers explosive 3D turn-based tank warfare with strategic gameplay, featuring 5 unique tanks, devastating power-ups, and multiple game modes including single-player campaign and up to 4-player battles.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Tank Wars". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a vibrant, semi-realistic "toy soldier" aesthetic similar to the provided screenshot. Use smooth, low-poly models with rounded edges. * **Color Palette:** High saturation. Use bright sky blues (`#87CEEB`), vibrant grass greens (`#7CFC00`), and clean white for clouds. Tanks should be distinct primary colors (Green vs. Red/Blue) with a plastic-like specular highlight. * **Terrain:** Generate a procedurally generated rolling hill terrain (using Perlin noise or heightmaps) to create elevation challenges for aiming. Add scattered stylized trees (spheres stacked on cylinders) and rocks as obstacles. * **Mobile Optimization:** Use `THREE.InstancedMesh` for environmental props (trees/grass) to reduce draw calls. Limit real-time shadows to the active player's tank and the projectile; use baked ambient occlusion for the terrain if possible. ### 2. Audio Requirements * **BGM:** A lighthearted, military-march style track using snare drums and brass, but with a playful, cartoonish tempo (similar to Worms or Team Fortress 2). * **Sound Effects (SFX):** * **Movement:** A mechanical "clanking" and engine rumble loop when the tank moves. * **Turret:** A servo-motor sound when adjusting aim angle. * **Firing:** A satisfying, bass-heavy "THUMP" followed by a whistling projectile sound. * **Impact:** A comedic explosion sound. * **UI:** Soft "clicks" for button presses and a "fanfare" sound for victory. ### 3. Gameplay Loop * **Core Mechanics:** A turn-based artillery battle game (1v1 or 1vAI). * **Turn Logic:** 1. **Move Phase:** Player has limited "Fuel" to reposition the tank using the left controls. 2. **Aim Phase:** Player adjusts the turret angle (vertical) and rotation (horizontal). 3. **Fire Phase:** Player holds the fire button to build up "Power" (visualized by a charging bar) and releases to shoot. 4. **Resolution:** The camera follows the projectile. On impact, calculate radial damage based on proximity to the target. Switch turn. * **Win Condition:** Reduce the opponent's HP to 0. * **Physics:** Implement simple projectile motion physics affecting the shell (gravity and wind). Wind speed/direction should change randomly between turns and be displayed in the UI. ### 4. Mobile Controls & Interaction * **Movement (Left Screen):** Implement a Virtual Joystick or D-Pad on the bottom-left for tank positioning (A/D logic). * **Aiming (Screen Drag):** Allow the user to drag anywhere on the screen (outside UI elements) to rotate the camera and turret aim. * **Firing (Right Screen):** * A large, circular "FIRE" button on the bottom-right. * **Interaction:** *Touch Down* starts the power meter oscillation or charge; *Touch Up* releases the shell. * **UI Elements:** * **Power-ups:** Row of square icons (44x44px min) at the top-center for selecting ammo types (Keys 1-4 mapped to touch). * **Zoom:** Support "Pinch-to-Zoom" gesture to switch between close-up tank view and tactical map view. * **Orientation:** Force Landscape mode for a wider field of view. * **Feedback:** Trigger `navigator.vibrate(50)` on firing and explosions for tactile feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Tank Wars

Tank Wars is an action-packed 3D turn-based strategy game that brings the ultimate tank warfare experience to your browser. This explosive battle game combines strategic thinking with thrilling combat mechanics, offering players the chance to engage in intense tank battles across meticulously designed battlefields. Whether you're commanding solo missions or facing off against friends in multiplayer combat, Tank Wars delivers non-stop tactical action.

Core Features

Diverse Tank Arsenal

Choose from 5 unique tank models , each with distinct characteristics, armor levels, and firepower capabilities. From agile light tanks perfect for quick strikes to heavily armored behemoths that dominate through sheer firepower, every tank offers a different strategic approach to battlefield dominance.

Strategic Turn-Based Combat

Unlike fast-paced arcade shooters, Tank Wars emphasizes tactical decision-making . Each turn requires careful consideration of positioning, angle calculation, and power adjustment. Plan your shots, anticipate enemy movements, and execute devastating attacks with precision timing.

Devastating Power-Ups System

Gain the upper hand with game-changing power-ups that can turn the tide of battle: - Explosive rounds for maximum damage - Shield generators for enhanced protection - Speed boosters for tactical repositioning - Multi-shot capabilities for area denial

Multiple Game Modes

  • Single-Player Campaign : Master tank warfare through progressively challenging missions
  • 2-Player Battles : Head-to-head combat with friends or AI opponents
  • 4-Player Mayhem : Epic multiplayer battles supporting up to 4 commanders
  • Custom Matches : Create your own battle scenarios

Stunning 3D Graphics

Experience tank warfare like never before with high-quality 3D visuals that bring every explosion, terrain feature, and tactical maneuver to life. The colorful, detailed environments provide both visual appeal and strategic depth.

Game Strategy & Tactics

Mastering Battlefield Control

Success in Tank Wars requires more than accurate shooting. Terrain positioning plays a crucial role - use hills for cover, exploit elevation advantages, and control strategic chokepoints. Each map offers unique tactical opportunities for skilled commanders.

Angle and Power Calculation

Perfect your artillery skills by mastering the physics-based projectile system . Adjust your cannon angle and power settings to account for distance, wind conditions, and obstacles. Precision shooting separates novice tankers from battlefield legends.

Operation Instructions

Tank Wars features intuitive controls designed for both desktop and mobile platforms:

Movement & Aiming: - W/S Keys : Adjust cannon elevation (aim up/down) - A/D Keys : Navigate your tank left and right across the battlefield - Enter : Toggle zoom for better targeting precision

Combat Operations: - Spacebar : Fire your main cannon and control projectile trajectory - Number Keys (1-4) : Quick-select available power-ups and special ammunition

Mobile Support : Touch controls are fully optimized for smartphone and tablet gameplay, ensuring smooth tank operations across all devices.

Why Choose Tank Wars

Completely Free Warfare

No payment required - Tank Wars is completely free to play with all tanks, maps, and game modes available from the start. No hidden costs, no premium content locks, just pure tank combat entertainment.

Cross-Platform Accessibility

Play anywhere, anytime on web browsers (desktop and mobile) or Android devices . No downloads required for browser play - simply visit the game page and start commanding your tank forces immediately.

Perfect for All Skill Levels

Whether you're a strategy game veteran or new to tactical combat, Tank Wars offers: - Tutorial missions for beginners - Progressive difficulty in campaign mode - Competitive multiplayer for experienced players - Casual quick battles for short gaming sessions

Social Gaming Excellence

Tank Wars shines in multiplayer scenarios . Challenge friends to tactical duels, organize tournament-style competitions, or team up against AI opponents. The turn-based format makes it perfect for both serious strategic sessions and casual gaming with friends.

Addictive Progression System

Master each tank type, unlock advanced tactics, and climb the ranks through campaign victories. Every battle teaches new strategic lessons, keeping gameplay fresh and engaging for hundreds of hours.

Frequently Asked Questions (FAQ)