3D DDTank Turn-Based Artillery Sandbox Game Development3D DDTank Turn-Based Artillery Sandbox Game Development Share FavoriteDevelop a browser-based 3D turn-based artillery battle game inspired by classic DDTank featuring a true 3D diorama and destructible terrain.Code & DataCodingDesignPrompt CopyReferencing the classic turn-based gameplay of early DDTank, create a 3D battle game playable directly in a web browser. Start by making a complete match loop functional: enter from the main menu, support Solo Training, 1v1 vs. AI, and Local 2-Player pass-and-play modes, and fully implement movement, aiming, firing, hit detection, match settlement, and restart. Preserve the core fun of the original game—reading wind direction, adjusting launch angles, charging power to fire, hitting opponents, and destroying terrain—while building the stage as a true 3D sandbox with genuine thickness and foreground-to-background depth rather than a flat backdrop with pasted characters. [Map & Win/Loss Conditions] Start by building a floating island map: - Both sides feature thick layers of grass and rock connected in the middle by a destructible thin wooden bridge. - Include gentle slopes, thin ledges, and low platforms on the islands; background elements such as windmills, lighthouses, and distant mountains may be added, provided they never obstruct characters, projectile trajectories, or impact points. - Players can win either by depleting the opponent's HP through direct/splash attacks or by blasting away the terrain beneath them so they fall into a pit or plunge off the map. - When solid ground remains at the bottom of a crater, characters should land safely and continue acting; if the terrain is blasted completely through, the character falls out of bounds and is eliminated regardless of remaining HP. - Clearly distinguish between HP depletion and out-of-bounds falling in the match settlement screen. [Controls & Match Flow] - Provide left/right movement, launch angle adjustment, and hold-Spacebar-to-charge / release-to-fire controls, with wind direction and strength dynamically affecting projectile trajectories. - For the initial build, use 12 seconds per turn, an adjustable angle range of 12°–82°, and roughly 1.12 seconds to reach full charge as baseline defaults, tuning them later based on actual playtesting feel. - Include three tactical options—Standard Shell, Digger Shell, and Paper Airplane: 1. Standard Shell: Detonates automatically on first impact, damaging characters and carving terrain. 2. Digger Shell: Deals lower direct damage but carves a significantly larger terrain crater. 3. Paper Airplane: Used to reposition or escape deep craters, with clear remaining-use or cooldown indicators. - Characters, projectile trajectories, terrain collisions, and AI must strictly share the exact same physics and rule set. - When paused or when the browser window loses focus, freeze the turn timer, projectile flight, and AI logic; upon resuming, never trigger buffered inputs held prior to pausing. [Characters, Actions & Stats] - Start each player with 100 HP and 100 Action Stamina, consuming 20 stamina per game unit moved. - Standard Shell: 32 direct hit damage, up to 20 splash damage, and a 0.75 terrain carving radius. - Digger Shell: Limited uses per match, costs 35 stamina, deals 16 direct damage, and has a 1.05 terrain carving radius. - Paper Airplane: Consumes stamina and ends the current action; its landing spot must be a valid location where the character can genuinely stand. - All values above are baseline test parameters and must be centralized in a unified configuration file rather than scattered across rendering or animation scripts. - Turn order must be transparent and explainable, implemented via cumulative action time (CTB/timeline): aiming duration, movement distance, and item usage each add delay before the next turn, allowing an opponent to act consecutively if a player expends excessive resources. Also retain a fixed alternating mode for tutorials, and clearly display the upcoming actor. - When the maximum turn limit is reached, determine the winner first by surviving player count, then by remaining HP, declaring a draw if tied; restarting restores all terrain and character states while swapping first-turn priority. - AI must share the exact same wind, item, landing prediction, and terrain rules as human players, actively recognizing fragile bridge hazards, crater entrapment, and self-fall risks rather than reading cheated fake hit outcomes. [Terrain & Hit Detection] - Ensure visible 3D terrain meshes and underlying collision/ground-support checks read from the exact same mutable data source. - Resolve damage and terrain carving strictly at the actual point of projectile contact; repeated hits on the same spot must deepen craters, adjacent craters must merge seamlessly, and subsequent projectiles must pass unobstructed through hollowed-out voids. - Characters immediately enter a falling state when losing underfoot support: they land safely if a valid platform exists below, or continue falling if unsupported—never allow invisible floors to catch a character. - Character hits, terrain destruction, explosion VFX, health bar updates, and floating damage numbers must be driven by the exact same event so visual explosions never desync from actual hit registration. - Represent the map using a mutable voxel/terrain grid where each cell simultaneously defines destructible earth, empty space, and indestructible bedrock. - Upon terrain impact, execute updates in strict order: update the underlying occupancy grid first, then synchronize visual cross-section meshes, character footing support, projectile colliders, the minimap, and the AI's map state. - When multiple characters are affected simultaneously, resolve all falling states and eliminations first before evaluating win/loss conditions and advancing the turn. - Training mode must allow reproducing four benchmark scenarios: blasting a crater with a solid floor, blasting completely through the crater floor, collapsing the thin wooden bridge, and firing subsequent shells cleanly through the newly created gap. [References & UI/UX] - Study early DDTank battle screenshots and gameplay footage frame by frame across match start, movement, wind reading, angle adjustment, power charging, firing, turn transitions, and settlement; also reference Worms W.M.D for turn timers, projectile follow-cameras, and camera reset pacing. - Build and compare two genuinely distinct HUD layouts on the exact same map and aiming scenario: - Layout A: Concentrates wind, angle, power, and last-shot markers along the screen edges. - Layout B: Places key aiming and power gauges diegetically near the active character. - Test both versions inside live 3D matches to check whether readouts clip off-screen during projectile tracking or obscure trajectories/landing zones before finalizing the HUD design. - Immediately upon entering a match, players must clearly see the active character, wind direction/strength, launch angle, power gauge, HP, stamina, and remaining items. - After missing a first shot, retain previous angle, power, wind, and actual landing markers so players can calibrate their next shot. - Provide distinct audio-visual feedback for hits, terrain carving, crater drops, out-of-bounds falls, turn switches, and match results; ensure pause, focus loss, restart, and local 2-player turn handoffs work reliably. [Art, Modeling & Animation] - Compare multiple genuinely distinct art directions upfront: draw foreground/midground/background layering from paper-cut dioramas, silhouette clarity and pose readability from Chinese shadow puppetry, and visual wind cues (fluttering flags and drifting leaves) from Ukiyo-e prints—translating these principles into true 3D composition rather than a mere palette swap. - Use Seedream to generate environment concepts, character poses, layered scenery assets, terrain cross-sections, team emblems, item icons, and VFX elements, integrating curated outputs directly into the game. - Model main characters, weapons, and multi-angle props using Tripo or Blender. - Design two original chibi-style character sets with distinct silhouettes, outfits, and team color schemes, rigged with genuine skeletal animations covering: idle, walk, charge, fire, hit-react, fall, land, and victory/defeat poses. - Model weapons, shells, and paper airplanes as modular attachments so switching gear updates both the character's held model and the in-match projectile. - Inspect face normals, foot-sole origins, skin weights, and hand grip sockets in Blender before importing into the engine to test slope traversal, gear swaps, and firing alignment—ensuring projectile muzzle exit, impact point, and explosion VFX align accurately. - Maintain consistent visual styling and material language across grass, rock strata, wooden bridge cross-sections, clouds, wind indicators, menus, icons, and settlement screens. - Frame the default camera from a slightly elevated lateral 3D battle angle that clearly displays character positions, high-arc trajectories, island depth, bridge thickness, and blasted terrain cross-sections. Zoom in slightly during aiming, follow and pull back dynamically during projectile flight, return smoothly to frame both players afterward, and highlight winner and loser poses during settlement. - Give Standard Shells, Digger Shells, and Paper Airplanes distinct silhouettes, trails, debris, and short sound effects without letting VFX obscure landing points or ledge hazards. [Development & Acceptance Testing] - Follow an iterative pipeline: build a playable greybox prototype first to validate controls, ballistics, terrain destruction, crater falls, and win/loss rules before integrating character models, skeletal animations, environment art, and HUD. - Run live browser matches to sequentially verify at least 10 core scenarios: missing the first shot, calibrating the next shot using last-impact markers, direct hit damage, repeated crater deepening, collapsing the wooden bridge, falling safely into a bottomed crater, falling out of bounds through open air, pause/unfocus recovery, match settlement, and restart—completing full playthroughs in both 1v1 vs. AI and Local 2-Player modes. - Capture before-and-after comparison screenshots or normal-speed gameplay recordings for bug fixes; continue iterating if clipping, floating feet, misaligned weapon grips, or desynced trajectory/explosion VFX appear. - Formal acceptance testing must also verify: 1. HP reaching zero and falling out of bounds trigger distinct elimination logic and settlement messages. 2. A single projectile resolves hit and damage only once. 3. Characters still supported by valid terrain are never falsely flagged as falling. 4. Projectiles flying through blasted-out terrain voids never collide with ghost geometry from the original terrain. 5. Shrinking the browser viewport never causes the HUD to obscure characters or landing points. - Log the map version, random seed, and per-turn angle, power, wind, hit results, and terrain grid mutations so any match can be deterministically replayed. - Deliver the playable browser game, complete source project, startup instructions, asset attribution/source list, and actual verification test results.