3D 弹弹堂回合制炮战沙盘游戏开发3D 弹弹堂回合制炮战沙盘游戏开发 分享 收藏开发一款参考早期《弹弹堂》回合制玩法、具备真实 3D 沙盘与可破坏地形的浏览器对战游戏。代码与数据编程设计提示词 复制请参考早期《弹弹堂》的回合制玩法,制作一款可在浏览器中游玩的 3D 对战游戏。先把一局完整对局跑通:从菜单进入,支持单人训练、1v1 人机对战与同机双人对战,完整实现走位、瞄准、发射、命中、结算与重开。保留原版看风向、调角度、蓄力发射、攻击对手与破坏地形的核心乐趣;在此基础上,将场景打造成真正具备厚度与前后层次的 3D 沙盘,而非贴着人物的平面背景。 【地图与胜负】 先制作一张浮空岛地图: - 两侧为具备真实厚度的草地与岩层,中间由一座可炸断的薄木桥连接。 - 岛上设置缓坡、薄边与低平台;背景可加入风车、灯塔和远山,但严禁遮挡人物、弹道与落点。 - 玩家既可通过攻击对手削减其生命值,也可炸毁其脚下地形,使对手掉入坑底或坠出地图。 - 坑底存在有效支撑时,角色应能稳妥落地并继续行动;若地面被彻底打穿,角色即便仍有剩余生命值也会直接坠落出局。 - 生命耗尽与跌落出界需分别给出明确的结算原因。 【操作与对局】 - 提供左右移动、调节发射角度、按住空格蓄力并松手发射的操作方式,风向与风力将实时影响弹道轨迹。 - 首版参数建议以 12 秒为一回合、12°—82° 为可调角度范围、约 1.12 秒蓄满为基准起点,后续再根据实际试玩手感微调。 - 提供普通弹、破土弹与纸飞机三种手段: 1. 普通弹:首次碰撞后自动引爆,可命中角色并削减地形。 2. 破土弹:直接伤害较低,但具备更大的削地范围。 3. 纸飞机:用于快速转移站位或从深坑脱困,需提供明确的使用次数或冷却提示。 - 角色、弹道、地形碰撞与 AI 必须严格共用同一套物理与判定规则。 - 暂停或浏览器窗口失焦时,冻结回合计时、弹体飞行与 AI 决策;恢复后严禁补发此前按住的操作指令。 【角色、行动与数值】 - 初始设定可按每人 100 点生命值、100 点行动体力起步,每移动 1 个游戏单位消耗 20 点体力。 - 普通弹:直击伤害 32 点,范围溅射伤害最高 20 点,削地半径 0.75。 - 破土弹:每局使用次数受限,消耗 35 点体力,直击伤害 16 点,削地半径 1.05。 - 纸飞机:消耗体力并占用当前行动,落点必须是角色确实能够站立的有效位置。 - 上述数值均为便于测试的初值,必须统一收口至全局配置文件中,严禁硬编码散落在画面或动画脚本里。 - 回合顺序需具备清晰的可解释性,可基于累计行动时间(CTB/行动条)机制实现:瞄准耗时、移动距离与道具使用各自增加下一次行动的等待值;单回合消耗较多时,对手将有机会获得连续行动。同时保留教学用的固定交替模式,并在界面中清楚显示下一位行动者。 - 达到最大行动上限时,依次比较存活人数与剩余生命值,若完全相同则判为平局;重开后完整恢复地形与角色状态,并自动交换先手。 - AI 与玩家共用风向、道具、落点预测与地形规则,必须能够自主识别薄桥风险、坑底受困状态与自身坠落危险,严禁直接读取作弊式的虚假命中结果。 【地形与命中】 - 确保可见的 3D 地形模型与底层碰撞、站立支撑判定使用同一份可实时修改的数据源。 - 炮弹命中时,严格按实际接触点结算伤害与削地;连续炮击同一位置时,弹坑应持续加深,相邻弹坑可被打通,后续炮弹能够直接穿过已挖空的区域。 - 角色失去脚下支撑时立即进入下落状态:下方存在有效平台则稳妥着陆,无支撑则持续下落,严禁出现隐形地板托住角色的 Bug。 - 角色受击、地形破坏、爆炸效果、血条变动与伤害飘字必须由同一事件统一驱动,杜绝“视觉上炸到了、判定上未命中”的割裂现象。 - 地图可采用可修改的体素/地形网格表示,单个网格单元同时决定可破坏地形、空洞与不可破坏基岩部分。 - 地形受击后,按严格顺序执行:先更新底层占用网格数据,再同步刷新 3D 画面切面、角色脚下支撑状态、弹道碰撞体、小地图与 AI 读取的地图副本。 - 多名角色同时受到波及时,先统一结算所有人的下落与淘汰状态,再判定整体胜负与回合换手。 - 训练场模式需支持一键或独立场景复现以下典型用例:打出有底凹坑、继续打穿坑底、炸断中间薄桥,以及后续炮弹顺利穿过已炸开的缺口。 【参考与 UI/UX】 - 调研早期《弹弹堂》战斗截图与实况录像,逐帧拆解开局、走位、看风、调角度、蓄力、发射、换手与结算流程;同时参考《Worms W.M.D》的回合倒计时、弹体跟拍运镜与镜头回位节奏。 - 基于同一张地图与同一个瞄准局面,设计并对比两套截然不同的 HUD 界面方案: - 方案 A:将风向、角度、力度与上次落点标记集中在屏幕边缘。 - 方案 B:将部分核心瞄准与蓄力信息环绕布置在当前行动角色附近。 - 将两套方案均接入真实 3D 对局中进行实测对比,重点检查弹体跟拍时读数是否出画、UI 元素是否遮挡弹道或落点,随后确定最终方案。 - 玩家进场后必须能一眼看清当前行动者、风向风力、发射角度、蓄力力度、生命值、剩余体力与可用道具数量。 - 第一发打偏后,界面需保留上次发射的角度、力度、风向及实际落点标记,辅助玩家修正下一发弹道。 - 命中、削地、落坑、坠落、回合切换与胜负结算均需配备清晰可辨的视听反馈;暂停、失焦、重开与同机双人换手交互也必须流畅可靠。 【美术、建模与动作】 - 前期对比多种风格鲜明的美术方向:可从分层透视纸雕/立体书(Diorama)学习前中后景层次,从中国皮影戏学习人物剪影轮廓与动作辨识度,从浮世绘版画观察风力如何通过旗帜飘动与飞叶轨迹进行视觉化表达;需将这些观察真正转化为 3D 空间构图,而非仅仅替换一组配色。 - 结合 AI 图像生成工具(如 Seedream)探索场景概念图、角色站姿、前中后景贴图、地形切面纹理、队伍徽记、道具图标与特效素材,筛选后真正集成进游戏工程。 - 主角、武器装备及需要多角度展示的道具可使用 Tripo 或 Blender 制作 3D 模型。 - 设计两套在剪影轮廓、服饰造型与队伍配色上高度可区分的原创 Q 版角色,并绑定真实骨骼动画,完整覆盖:待机、走位、蓄力、发射、受击、下落、着陆与胜负结算动作。 - 武器、炮弹与纸飞机独立建模成件,更换装备后,角色手中的模型与局内发射的道具模型需同步变化。 - 模型导出前先在 Blender 中严格检查正反面朝向、脚底原点对齐、骨骼权重与手部持握挂点,再导入游戏实测斜坡行走、装备切换与实际开炮效果,确保弹体离手位置、命中点与爆炸特效精准对齐。 - 制作草地、岩层、木桥断面、云层、风向装饰、菜单界面、功能图标与结算画面时,保持全套视觉造型与材质质感的一致性。 - 镜头默认采用轻俯侧向 3D 对战视角:既能清晰观察人物站位与高抛弹道,也能展现浮空岛的前后厚度、桥面结构与炸开后的地层切面。瞄准时适度推近,弹体飞行时动态跟拍并适当拉远视野,随后平滑回位至可同时辨认双方的全局对局画面;结算阶段则分别给到胜方与败方特写镜头。 - 为普通弹、破土弹与纸飞机设计差异化的弹体轮廓、飞行尾迹、地形碎片与短促音效,同时确保粒子特效绝不遮挡落点与地形危险边界。 【开发与验收】 - 采用分阶段迭代开发:先搭建可完整打完一局的 3D 灰盒原型,将操作控制、抛物线弹道、地形破坏、角色落坑与胜负判定全链路打通;随后逐步接入正式角色模型、骨骼动画、环境场景、美术贴图与 HUD 界面。 - 在真实浏览器环境中开局测试,至少依次完整验证以下 10 项核心流程:第一发射偏、依据上次落点修正命中、直接命中扣血、连续挖坑加深、炸断木桥、有底落坑站稳、无底坠落出局、暂停与失焦恢复、对局结算以及重置重开;且 1v1 人机对战与同机双人模式均需完整走通。 - 保留问题修复前后的同场景对比截图或正常倍速实机录像;若发现模型遮挡、脚底悬空、武器握持错位、弹道与爆炸特效不同步等问题,必须持续排查修复。 - 正式验收还需覆盖以下边界用例: 1. 生命值归零与坠出地图边缘必须触发两种不同的淘汰判定与结算文案。 2. 单发炮弹只能结算一次命中与伤害,严禁重复扣血。 3. 角色脚底仍有有效地形支撑时,严禁误判为坠落。 4. 炮弹飞经已被炸空的地形区域时,严禁撞上残留的隐形原地形碰撞体。 5. 浏览器视口尺寸缩小时,自适应 HUD 严禁遮挡角色与弹道落点。 - 完整记录地图版本号、随机种子、每回合行动的角度、力度、风向、命中结果与地形网格变更日志,确保任意一局对战均可精确复盘。 - 最终交付物应包含:可直接在浏览器运行的游戏成品、完整源代码工程、本地启动与构建说明、美术/音效素材来源清单,以及逐项对应的实际测试验证报告。Prompt 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.