Tank Mania - Heavy Armor Delivery Challenge

Seele01-Flash
By
Tank Mania is an action-packed tank driving game where you navigate armored vehicles through treacherous terrain. Deliver dangerous cargo while blasting obstacles with your cannon in this physics-based challenge.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Tank Mania". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A **2.5D Side-Scrolling** physics game. Use a locked side-view camera (Orthographic or Perspective with fixed Z-depth) following the player. * **The Tank (Player):** Create a composite low-poly tank model consisting of a chassis, separate rotating wheels (for track simulation), and a rotatable turret with a barrel. The tank must carry a visible "Cargo" object on its back (a crate or missile) that relies on physics balance. * **Terrain:** Generate an uneven, hilly terrain using a heightmap or procedural noise. The ground should have "dirt" and "grass" colors. * **Obstacles:** Include destructible environment elements like low-poly civilian cars, brick walls, and wooden crates that react to physics (BoxGeometry). * **VFX:** Use simple particle systems (PointsMaterial) for: * Cannon muzzle flash. * Explosions (orange/yellow particles expanding outward). * Dust clouds when tank tracks hit the ground hard. * **Mobile Optimization:** Use `InstancedMesh` for repetitive environmental objects (trees, rocks) to reduce draw calls. Limit shadow casting to the main tank only. ### 2. Audio Requirements * **BGM:** A heavy, driving Industrial Rock track (looping) to simulate intensity. * **Sound Effects (SFX):** * **Engine:** Low-frequency rumbling that changes pitch based on speed. * **Cannon:** A loud, bass-heavy "thud" and blast sound. * **Impact:** Metal crunching sounds when crushing cars or crashing. * **Failure:** A sad trombone or explosion sound if the tank flips or cargo explodes. ### 3. Gameplay Loop * **Core Mechanic:** The player must drive the tank from the start point (Left) to the finish line (Right) over rough terrain without flipping the tank or dropping the sensitive cargo. * **Physics:** Integrate a physics engine (like **Cannon.js** or **Oimo.js**). The tank needs a suspension system (RaycastVehicle or similar) to handle bumpy hills. * **Combat:** The player can aim and fire the cannon to destroy obstacles (cars, walls) blocking the path. Destroyed objects should break into smaller pieces or be pushed aside. * **Win Condition:** Reach the finish flag with the cargo intact. * **Fail Condition:** The tank flips upside down (detect rotation > 90 degrees), or the cargo takes too much damage/falls off. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape Mode** forced. * **Touch Controls (On-Screen UI):** * **Left Hand:** Two large buttons for **Brake/Reverse** and **Tilt Back** (Air control). * **Right Hand:** Two large buttons for **Accelerate** and **Tilt Forward** (Air control). * **Action Button:** A distinct "Fire" button to shoot the cannon (aiming can be auto-leveled or slight auto-aim towards nearest obstacle). * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on collisions and `navigator.vibrate(100)` on cannon fire. * **Responsiveness:** Prevent default browser touch behaviors (scrolling/zooming) on the canvas (`touch-action: none`). UI buttons should be at least 48x48px with high contrast. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Tank Mania combines intense tank combat with challenging physics-based driving. When regular delivery trucks can't handle the job, it's time to bring in heavy armor! Navigate your powerful tank through dangerous landscapes, delivering deadly cargo while obliterating any obstacles that stand in your way.

This free online game features explosive action and strategic gameplay, earning a solid rating from players who love military vehicle challenges. The unique tilty physics system adds an extra layer of difficulty, making each delivery mission a thrilling test of skill and precision.

Core Features

Heavy Armor Combat

Command a fully-armed tank equipped with a devastating cannon. When obstacles block your path, blast them to smithereens! The destructible environment responds to your firepower, creating dynamic solutions to navigation challenges.

Physics-Based Driving

Master the unique tilty truck mechanics that govern your tank's movement. Balance speed with control as you navigate treacherous terrain, steep inclines, and dangerous drops. Every bump and explosion affects your vehicle's stability.

Dangerous Cargo Missions

Transport volatile materials through hostile environments. Your cargo is too dangerous for ordinary vehicles – only heavily armored tanks can safely deliver these explosive payloads to their destinations.

Challenging Landscapes

Traverse diverse terrains including rocky mountains, desert valleys, and industrial zones. Each environment presents unique obstacles requiring different tactical approaches and driving strategies.

Gameplay Mechanics

Tank Mania challenges players to think strategically about both movement and combat. You'll need to:

  • Navigate Carefully : The tilty physics mean sudden movements can cause your tank to flip or lose cargo
  • Time Your Shots : Use your cannon strategically to clear paths and eliminate threats
  • Manage Momentum : Build speed for jumps while maintaining control on difficult terrain
  • Protect Your Cargo : Deliver dangerous materials safely despite explosive obstacles

Operation Guide

The game supports both mouse and keyboard controls for maximum accessibility:

  • Mouse Control : Point and click navigation with intuitive targeting for cannon fire
  • Keyboard Control : Traditional WASD or arrow key movement with spacebar for shooting
  • In-Game Tutorial : Detailed instructions appear during gameplay to guide new players

The control system is designed to be responsive while accounting for the realistic physics that make tank handling challenging and rewarding to master.

Why Play Tank Mania

Tank Mania offers a unique blend of driving simulation and combat action that's rare in browser games. The combination of military vehicles, explosive gameplay, and physics-based challenges creates an engaging experience that keeps players coming back.

The game is completely free to play with no downloads required – simply open your browser and start commanding your tank through dangerous missions. Whether you're a fan of military games, driving challenges, or physics puzzlers, Tank Mania delivers explosive entertainment.

Perfect for players who enjoy games like Hill Climb Racing but want more firepower, or military simulation fans looking for arcade-style action. The game runs smoothly on all modern devices and browsers, making it accessible anywhere you want to experience heavy armor action.

Frequently Asked Questions (FAQ)