Tanks - Classic Strategy Tank Battle Game

Seele01-Flash
By
Tanks is a classic turn-based strategy game where you control powerful tanks in artillery combat. Battle AI opponents or challenge friends in explosive duels with precise angle-based shooting mechanics.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Poly-Tanks: Artillery Duel**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly 3D aesthetic rendered with an **Orthographic Camera** to simulate a 2D side-scrolling perspective (2.5D). The colors should be vibrant and saturated (bright green terrain, cyan sky). * **Terrain**: Procedurally generated rolling hills (using Perlin noise or sine waves) with a grassy texture. The terrain must support "destruction" logic (visually creating craters or lowering vertices upon explosion). * **Characters**: * **Player Tank**: A chunky, stylized green tank with two distinct meshes: the **Body** (chassis) and the **Turret** (barrel). * **Enemy Tank**: Similar model but red/darker color for the AI or Player 2. * **Decorations**: Low-poly pine trees scattered in the background, fluffy white clouds moving slowly across the sky. * **VFX**: * Simple particle systems for smoke trails behind projectiles. * Flash/Spark particles upon firing. * Expanding sphere/debris particles for explosions. * Floating text for damage numbers. ### 2. Audio Requirements * **BGM**: A lighthearted, military-march style track (snare drums and brass) that loops seamlessly. * **SFX**: * **UI**: Soft 'click' for button presses, cash register sound for shop purchases. * **Tank**: Mechanical servo sound when adjusting turret angle, engine rumble when moving. * **Combat**: distinct "Thud" for firing, high-pitched whistling for incoming shells, and a bass-heavy "Boom" for impacts. ### 3. Gameplay Loop * **Turn-Based System**: The game alternates turns between Player 1 and Enemy (AI/Player 2). * **Combat Mechanics**: * The active player has limited "Fuel" to move left/right. * The player adjusts **Angle (0-180 degrees)** and **Power (0-100%)**. * **Wind Factor**: Random wind strength changes each turn, affecting projectile trajectory. * **Firing**: Launch a projectile that follows a parabolic arc affected by gravity and wind. * **Hit Detection**: * Direct Hit: High damage. * Splash Damage: Damage based on distance from the explosion center. * Terrain Deformation: Explosions lower the terrain height at the impact point. * **Progression**: * Players earn "Gold" for hitting enemies. * **Inter-round Shop**: A modal UI between rounds to buy "Repair Kits" (restore HP) or "Nukes" (larger explosion radius). * **Win Condition**: Reduce the opponent's HP to 0. ### 4. Mobile Controls & Interaction * **Layout**: Landscape orientation is mandatory. * **Movement Controls**: Two large buttons on the bottom-left screen: `[< Move Left]` and `[Move Right >]`. * **Aiming & Firing**: * On the bottom-right: Two Slider Bars (HTML Range inputs styled nicely). * Slider 1: **Angle** (Visual feedback: Turret rotates in real-time). * Slider 2: **Power** (Visual feedback: A short trajectory line shows predicted path). * A large, circular, distinct **[FIRE]** button located comfortably near the right thumb zone. * **Camera Logic**: The camera must smoothly pan to follow the projectile when fired, then snap back to the active tank for the next turn. * **Feedback**: * Trigger `navigator.vibrate(200)` on explosion impact. * Screen shake effect (camera jitter) when a shell hits near the player. * **UI Sizing**: All interactive buttons must have a minimum touch target of 48x48px with sufficient padding to prevent miss-clicks. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Tanks is a beloved classic strategy game that has captivated players with its perfect blend of tactical thinking and explosive action. With an impressive 4.59/5 rating, this turn-based tank combat game challenges you to become the ultimate tank commander through precise artillery strikes and strategic upgrades.

In this engaging battlefield experience, you'll control heavily armed tanks across varied terrain, calculating angles and power to deliver devastating blows to your opponents. Whether you're facing intelligent AI enemies or battling friends in head-to-head duels, every shot counts in this game of skill and strategy.

Core Features

Strategic Turn-Based Combat

Experience the thrill of tactical warfare where timing and precision matter more than quick reflexes. Plan your attacks carefully, considering wind conditions, terrain obstacles, and enemy positioning.

Multiple Game Modes

  • Single Player Campaign : Battle against AI opponents with varying difficulty levels
  • Two-Player Mode : Challenge friends in intense tank duels
  • Progressive Difficulty : Face increasingly challenging opponents as you advance

Tank Customization System

Earn money through victories to upgrade your tank and purchase powerful items: - Weapon Upgrades : Enhance firepower and explosive damage - Special Ammunition : Unlock unique projectile types - Tank Improvements : Boost armor and mobility - Strategic Items : Access special equipment for tactical advantages

Cross-Platform Accessibility

  • HTML5 Technology : Play directly in your browser without downloads
  • Mobile Compatible : Enjoy seamless gameplay on phones and tablets
  • Embeddable : Perfect for gaming websites and platforms
  • All Ages Content : Family-friendly entertainment suitable for everyone

Gameplay Mechanics

Tanks features intuitive yet deep gameplay mechanics that are easy to learn but challenging to master. The game revolves around artillery-style combat where precise angle calculation and power adjustment determine victory or defeat.

Terrain Destruction

Watch as your explosive shells reshape the battlefield! Terrain destruction adds a dynamic element to combat, creating new strategic opportunities and challenges as the landscape changes with each explosive impact.

Physics-Based Combat

Realistic ballistics simulation makes every shot feel authentic. Consider gravity, trajectory, and environmental factors to land the perfect shot on your target.

Operation Guide

Basic Controls

  • Left/Right Arrow Keys : Move your tank across the battlefield
  • Up/Down Arrow Keys : Adjust your cannon's firing angle
  • Page Up/Page Down : Increase or decrease firing power
  • Q and E Keys : Cycle through available weapons and items
  • Spacebar : Fire your selected weapon
  • Mouse : Navigate menus and purchase upgrades

Winning Strategies

  1. Master Angle Calculation : Practice judging distances and adjusting angles for different terrain types
  2. Power Management : Learn optimal power levels for various shot distances
  3. Item Usage : Strategically deploy special items for maximum tactical advantage
  4. Terrain Awareness : Use hills and obstacles as cover while creating clear firing lines
  5. Upgrade Priority : Focus on upgrades that complement your playing style

Between-Match Progression

After each battle, visit the upgrade shop to spend earned gold on new equipment. Click the upgrade boxes to purchase items that will give you an edge in future battles.

Why Play Tanks

Timeless Appeal

As a classic strategy game, Tanks offers gameplay that never gets old. The combination of skill-based shooting and strategic planning creates endless replayability.

Perfect for All Skill Levels

  • Beginners : Simple controls and gradual difficulty progression
  • Experienced Players : Deep strategy elements and challenging AI opponents
  • Competitive Gamers : Two-player mode for head-to-head battles

Completely Free Experience

Enjoy the full game without any cost. No hidden fees, no pay-to-win mechanics – just pure strategic tank combat entertainment.

Social Gaming

The two-player mode makes Tanks perfect for friendly competitions. Challenge colleagues, family members, or friends to see who has the best tactical skills.

Accessible Anywhere

With HTML5 technology and mobile compatibility, you can enjoy tank battles whether you're at your desktop computer or on the go with your mobile device.

Frequently Asked Questions (FAQ)