Build a Highly Realistic Interactive Tank Destruction Experience
Create a complete, polished, browser-based interactive experience in which the player controls a highly realistic main battle tank and can fire its cannon at a destructible house.
This is primarily a test of advanced frontend engineering, real-time interaction, visual quality, mechanical simulation, physical destruction, animation, sound design, performance optimization, and attention to detail.
Do not create a simple arcade game, low-poly prototype, static animation, or basic object-disappearance effect. The final experience should feel like a small, cinematic vehicle and destruction simulator.
Do not explain which technologies you selected. Decide the most suitable implementation approach yourself and focus on delivering the finished experience.
Scene and Atmosphere
Place the tank in a realistic outdoor military testing ground containing:
Uneven dirt terrain with slopes, tire marks, rocks, grass patches, mud, and scattered debris
A detailed two-story house positioned at a useful firing distance
Concrete foundations, brick exterior walls, wooden roof supports, windows, doors, interior floors, furniture, and visible structural elements
Natural environmental lighting with realistic shadows
The tank can move forward, reverse, turn gradually, and perform a pivot turn
Track links visibly circulate around the wheels
Track movement corresponds to the tank’s actual speed
Tracks conform as closely as practical to the terrain and wheel positions
Road wheels move vertically over bumps
Suspension compresses and rebounds according to terrain height and vehicle weight
The hull pitches, rolls, sways, and settles naturally
Acceleration and braking communicate the tank’s enormous mass
Sharp turns produce lateral body movement and visible track resistance
Slopes affect movement, balance, and acceleration
Dirt, dust, mud, and small stones react beneath the tracks
The tank should not instantly stop, accelerate, rotate, or change direction
Prevent obvious physics failures such as floating tracks, wheels passing through the terrain, endless bouncing, uncontrolled spinning, or the tank becoming airborne from minor collisions.
Turret and Cannon Mechanics
Allow the player to aim independently from the tank’s driving direction.
The aiming system should include:
Smooth turret rotation with believable rotational inertia
Cannon elevation and depression
A third-person aiming reticle
A zoomed gunner-style aiming view
Clear indication of the current barrel direction
Optional distance information without cluttering the interface
A short delay while the heavy turret catches up with sudden aim changes
Aiming instability while the tank is moving
Gradual stabilization after the tank stops
The cannon should always fire in the exact physical direction of the barrel rather than toward an invisible cursor target.
Firing Sequence
Make every shot feel extremely powerful.
When the cannon fires, include a synchronized sequence of effects:
The barrel rapidly recoils into the mantlet.
The recoil mechanism absorbs the movement.
The barrel returns to its original position with controlled damping.
The turret and hull react to the firing force.
The suspension compresses and oscillates slightly.
A bright but brief muzzle flash appears.
Expanding gases, smoke, sparks, and dust emerge from the muzzle.
Ground dust is pushed outward near the tank.
The cannon blast produces a strong layered sound.
A delayed environmental echo follows.
Nearby grass, loose objects, smoke, and dust react to the pressure wave.
The spent firing effects fade naturally rather than disappearing instantly.
Avoid oversized fireballs. The firing effect should emphasize pressure, smoke, recoil, dust, sound, and mechanical force.
Include a visible reload state. The player must not be able to fire continuously without delay.
Projectile Physics
The shell must exist as a physical projectile traveling from the cannon to the target.
Simulate:
High initial velocity
A visible but subtle trajectory
Travel time over distance
Gravity affecting long-range shots
Collision with the first solid surface along its path
Impact angle influencing the visible damage
Different results when striking brick, glass, wood, roof tiles, ground, or structural supports
A small cinematic projectile-follow camera that can be toggled without interrupting gameplay
Do not represent the shot as an instant ray followed by a generic explosion.
Destructible House
The house must be constructed from meaningful physical sections rather than being one indestructible model or a pre-made collapse animation.
The player should be able to damage different areas independently:
Exterior brick walls
Interior walls
Windows and frames
Doors
Roof tiles
Wooden roof beams
Floor sections
Concrete foundation
Support columns or load-bearing wall sections
Furniture and interior objects
Damage must remain persistent after each shot.
A shell striking one corner should not automatically destroy the entire house. Begin with localized destruction, then allow larger failure only when enough important structural support has been removed.
Impact and Material Response
Each impact should produce effects appropriate to the material.
Brick and Masonry
Local penetration or crater formation
Bricks breaking into irregular fragments
Mortar dust
Cracks spreading outward from the impact
Sections above damaged support beginning to sag or fall
Loose bricks continuing to drop after the initial impact
Wood
Splintering
Beams snapping at stressed points
Broken boards rotating and colliding naturally
Roof sections losing support when beams fail
Glass
Rapid fracture
Shards with varied sizes
Remaining cracked glass around the frame
Pieces falling both inside and outside the building
Concrete
Dense fragments
Smaller chips
Grey dust
Localized cracking and spalling
Greater resistance than wood or brick
Ground Impact
A crater or disturbed soil
Dirt thrown outward
A lingering dust cloud
Small stones and nearby debris reacting to the impact
Avoid breaking every object into identical cubes. Fragment size, shape, mass, and behavior should vary.
Structural Collapse
The house should demonstrate progressive structural failure.
Examples:
Destroying a non-critical wall causes only local damage.
Removing a supporting corner causes the structure above it to sag.
Damaging several connected supports may cause part of the upper floor to collapse.
Destroying roof beams causes roof tiles and roof sections to fall.
Falling floors and beams can strike lower parts of the house and create secondary damage.
Debris should collide with other debris, the ground, the house, and the tank.
Some walls may remain standing even after severe damage.
The final debris pile should reflect the direction and location of the collapse.
Use physical constraints, structural relationships, staged fracture, and secondary collisions to make destruction understandable.
Do not make the entire building vanish, switch to a destroyed model, or collapse in the same predetermined way after every shot.
Dust, Smoke, and Debris
Use layered environmental effects:
Short, dense impact dust
Fine airborne dust that lingers
Smoke from the cannon
Small fragments moving faster than heavy debris
Heavy wall sections falling with substantial weight
Dust expanding through windows and broken openings
Debris creating additional dust when hitting the ground
Particles affected by gravity and wind
Reduced visibility inside dense dust clouds
Gradual clearing after the collapse
Maintain visual clarity. Dust should enhance scale without hiding every impact.
Camera System
Provide several polished camera modes:
Third-person chase camera behind the tank
Orbit camera
Gunner aiming camera
Close cinematic turret camera
Optional projectile-follow camera
Free inspection camera after major destruction
The camera should:
Avoid clipping through the tank and terrain
Smoothly follow movement
Use restrained shake during firing and large impacts
React more strongly near destruction and less strongly at a distance
Allow the player to inspect mechanical movement and structural damage closely
Do not use constant excessive camera shake.
Interaction and Controls
Support intuitive controls for:
Driving forward and backward
Steering and pivot turning
Rotating the turret
Elevating the cannon
Firing
Zooming
Switching cameras
Resetting the tank
Rebuilding the house
Pausing the simulation
Toggling a slow-motion impact mode
Toggling an inspection or debug overlay
Display a compact control guide when the experience begins, then allow it to be hidden.
Interface Design
Create a minimal military test-range interface rather than a generic game HUD.
Possible elements include:
Reload status
Camera mode
Tank speed
Cannon elevation
Approximate target distance
Current projectile state
Structural integrity indication for the targeted building section
Simulation quality controls
Reset and rebuild controls
Keep the center of the screen visually clean.
Use strong typography, restrained colors, subtle transparent panels, and smooth interface transitions. The interface must remain readable against smoke, sky, terrain, and dark tank surfaces.
Audio
Create a layered audio experience:
Deep engine idle
Engine load changing during acceleration and climbing
Track links rattling
Suspension and hull creaking
Metal vibration
Turret motor movement
Cannon firing
Mechanical recoil
Distant echo
Shell impact
Brick, timber, concrete, and glass breaking differently
Heavy debris hitting the ground
Smaller pieces continuing to settle
Wind and distant environmental ambience
Audio volume and character should react to distance and camera position.
Performance and Stability
The experience must remain responsive even after repeated destruction.
Use appropriate strategies to prevent debris, particles, collision checks, shadows, and physical objects from causing severe performance degradation.
Include selectable simulation presets such as:
Cinematic
Balanced
Performance
Lower presets may reduce fragment count, particle density, shadow quality, or debris lifetime, but they must preserve the fundamental tank and destruction behavior.
Clean up very small or inactive debris only after it has settled. Do not remove large visible structural pieces while the player is inspecting them.
Required Demonstration Scenario
The completed experience should support this sequence:
The player starts behind the tank.
The tank drives across uneven ground.
Individual road wheels and suspension visibly respond.
The tracks rotate and interact with the terrain.
The tank stops near a firing position.
The turret rotates independently toward the house.
The player aims at the lower corner of the building.
The cannon fires with recoil, muzzle blast, dust, sound, and hull reaction.
The shell physically travels to the house.
The corner is locally penetrated and broken.
Debris and dust emerge from the impact.
The upper wall remains briefly unsupported.
Cracks and structural movement become visible.
Part of the upper floor and roof progressively collapses.
Falling debris causes secondary impacts.
Dust fills the damaged rooms and exits through windows.
The remaining building sections settle into a stable damaged state.
The player can drive closer and inspect the persistent destruction.
Quality Requirements
The final result must feel intentionally designed and technically ambitious.
Prioritize:
Tank mechanical realism
Track and suspension behavior
Cannon recoil and firing force
Physical projectile travel
Material-specific impact response
Localized and progressive building destruction
Debris weight and collision behavior
Cinematic but restrained visual effects
Responsive controls
Stable performance
Do not substitute these systems with videos, static images, pre-rendered sequences, simple CSS animations, random particle explosions, or superficial visual tricks.
Deliver a complete working experience, not a design document, implementation tutorial, wireframe, or partially functional mock-up.
to make this building better i need you to follow this skill, i want you to use this skill:
name: frontend-design
description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
license: Complete terms in LICENSE.txt
Frontend Design
Approach this as the design lead at a small studio known for giving every client a visual identity that could not be mistaken for anyone else's. This client has already rejected proposals that felt templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take one real aesthetic risk you can justify.
Ground it in the subject
If the brief does not pin down what the product or subject is, pin it yourself before designing: name one concrete subject, its audience, and the page's single job, and state your choice. If there's any information in your memory about the human's preferences, context about what they're building, or designs you've made before – use that as a hint. The subject's own world, its materials, instruments, artifacts, and vernacular, is where distinctive choices come from. Build with the brief's real content and subject matter throughout.
Design principles
For web designs, the hero is a thesis. Open with the most characteristic thing in the subject's world, in whatever form makes sense for it: a headline, an image, an animation, a live demo, an interactive moment. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the template answer, only use if that's truly the best option.
Typography carries the personality of the page. Pair the display and body faces deliberately, not the same families you would reach for on any other project, and set a clear type scale with intentional weights, widths, and spacing. Make the type treatment itself a memorable part of the design, not a neutral delivery vehicle for the content.
Structure is information. Structural devices, numbering, eyebrows, dividers, labels, should encode something true about the content, not decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence - like a real process or a typed timeline where order carries information the reader needs. Question if choices like numbered markers actually make sense before incorporating them.
Leverage motion deliberately. Think about where and if animation can serve the subject: a page-load sequence, a scroll-triggered reveal, hover micro-interactions, ambient atmosphere. An orchestrated moment usually lands harder than scattered effects; choose what the direction calls for. However, sometimes less is more, and extra animation contributes to the feeling that the design is AI-generated.
Match complexity to the vision. Maximalist directions need elaborate execution; minimal directions need precision in spacing, type, and detail. Elegance is executing the chosen vision well.
Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
Process: brainstorm, explore, plan, critique, build, critique again
For calibration: AI-generated design right now clusters around three looks: (1) a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta accent; (2) a near-black background with a single bright acid-green or vermilion accent; (3) a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns. All three are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. Just like a human designer who's hired, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
Work in two passes. First, brainstorm a short design plan based on the human's design brief: create a compact token system with color, type, layout, and signature. Color: describe the palette as 4–6 named hex values. Type: the typefaces for 2+ roles (a characterful display face that's used with restraint, a complementary body face, and a utility face for captions or data if needed). Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Signature: the single unique element this page will be remembered by that embodies the brief in an appropriate way.
Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan exactly and deriving every color and type decision from it.
When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and a element-based selector like .cta). This can happen often with paddings/margins between sections.
Try to do a lot of this planning and iteration in your thinking, and only show ideas to the user when you have higher confidence it'll delight them.
Restraint and self-critique
Spend your boldness in one place. Let the signature element be the one memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Not taking a risk can be a risk itself! Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected. Critique your own work as you build, taking screenshots if your environment supports it – a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creators have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
More on writing in design
Words appear in a design for one reason: to make it easier to understand, and therefore easier to use. They are design material, not decoration. Bring the same intentionality to copy that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
Write from the end user's side of the screen. Name things by what people control and recognize, never by how the system is built. A person manages notifications, not webhook config. Describe what something does in plain terms rather than selling it. Being specific is always better than being clever.
Use active voice as default. A control should say exactly what happens when it's used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
Keep the register conversational and tuned: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each element do exactly one job. A label labels, an example demonstrates, and nothing quietly does double duty.
I’m going to inspect the current project structure and key entry files so I can replace the app with a complete interactive tank destruction experience and update the page title appropriately.
I’ve identified a minimal Vite app. Next I’m checking the global stylesheet so I can replace it with a deliberate simulation-oriented visual system and ensure the new experience owns the full viewport.
I’ve confirmed the stylesheet is empty aside from Tailwind import. I’m going to check the TypeScript settings before generating the simulation files so I can keep the implementation compatible and avoid type issues.
I’ve verified strict TypeScript settings. Next I’m installing the 3D runtime packages needed to build the interactive simulation, cameras, lighting, and scene rendering cleanly inside the React app.
I’m replacing the placeholder App with the full simulation: a 3D proving-ground scene, a detailed tank with tracked movement and turret mechanics, a modular destructible house with persistent damage and collapse logic, multiple cameras, UI, audio synthesis, and quality controls.
I’ve written the full App implementation and hit a small TypeScript syntax issue in the terrain math. I’m fixing those exponentiation expressions before moving on to the styling layer.
I’m correcting the terrain height expressions so the simulation file passes strict TypeScript parsing.
I’ve cleared the syntax issue; now I’m resolving strict-mode warnings and the camera typing so the large simulation file stays build-safe under the project’s TypeScript rules.
I’m reading the unused helper area so I can remove dead code cleanly instead of leaving strict-mode warnings in place.
I’m checking the camera rig section where the remaining type warning is coming from so I can fix the PerspectiveCamera access correctly.
I’m removing the dead helpers/constants and tightening the camera rig to use the perspective camera type explicitly so the scene logic remains strict and clean.
I’m removing the remaining unused helpers and applying the perspective-camera cast directly inside the camera rig where the FOV is adjusted.
I’m deleting the last unused local-space helper and then patching the camera frame loop to stop using an unused callback parameter and to update FOV through a PerspectiveCamera reference.
I’m patching the camera rig callback and FOV assignment now that the unused helpers are gone.
I’ve added the typed camera reference; I’m now swapping the FOV update to use it so the type warning disappears too.
I’m replacing the empty global stylesheet with a full-screen visual system for the range simulator: atmosphere, HUD panels, range-card geometry, reticle, guide, responsive layout, and non-interfering overlay behavior for mouse aiming.
I’m updating the document title so the served experience matches the finished simulator rather than the starter template.
I’ve finished the main code and styling passes and updated the title. Next I’m running the project build so I can catch and fix any remaining type or bundling issues before handing over the simulator.
The build passes, but I’m making two polish fixes before stopping: synchronizing dynamic scene lists more reliably and moving the cannon barrel through an actual recoil transform instead of leaving that motion tied to render-time values.
I’ve added the recoil group reference; now I’m wiring it into the tank frame update and barrel mesh hierarchy so the recoil actually animates in-world.
I’m moving the barrel meshes into the new recoil group so the visual cannon assembly follows the animated recoil offset consistently.
I’m adding a lightweight render-sync pulse so new particles, debris, and house state changes appear promptly without relying on rare incidental rerenders.
I’ve added the sync timer reference; I’m now wiring it into the scene frame loop and removing the old weak rerender heuristic.
I’m removing the revision-based remounting from the heavy 3D scene pieces so the sync pulse triggers rerenders without rebuilding the terrain or house tree every fraction of a second.
I’ve converted the revision state to a rerender pulse only; now I’m removing the last places where the old revision key was still referenced in the scene render.
I’ve finished the recoil and rerender-sync polish. I’m running one final build to confirm the simulator still compiles cleanly after those adjustments.
Built the tank destruction simulator and replaced the starter app with:
A full-screen 3D proving-ground experience in src/App.tsx
Procedural terrain, atmosphere, cameras, UI, audio synthesis, tank systems, shells, debris, and a modular destructible house
A custom military test-range visual design in src/index.css
An updated page title in index.html
Confirmed it builds successfully with npm run build.