← Playbook 首页成品游戏 · 俯视角射击 · 难

PIT NINE

拾荒者在废料场竞技场里先打两波机械猎犬,再打巨型机甲 Foreman:把炮、导弹舱和护甲逐个打掉,最后打核心。Claude Code 按 Playbook 提示词做完,我们从没告诉它该怎么修。

先玩一局

WASD 移动,鼠标瞄准,空格翻滚。

游戏以灰盒开局。点游戏下方的黄色按钮,或在游戏里按 M,加载 Tripo 模型;模型打开后按 L 把整局换成 Tripo 的 Mecha Pop 风格。

一个游戏,三种样子

灰盒、Tripo 默认贴图、同一批模型的 Mecha Pop 贴图。切换时,打坏的部件仍然是坏的。

灰盒 · 第 2 阶段

灰盒 · 第 2 阶段

方块和圆柱。Boss 在灰盒阶段就是一组有名字的部件,每块绕自己的铰链转。

Tripo 模型 · 第 5 阶段

Tripo 模型 · 第 5 阶段

Foreman 是一个 Tripo 模型拆出来的部件;炮、导弹舱和护甲打坏就掉下来。

Mecha Pop · 一个按钮

Mecha Pop · 一个按钮

每件资产在 Tripo 里多贴一套 Mecha Pop 风格,游戏原地换文件。

逐阶段看这次是怎么做出来的

10 轮对话,agent 实际运行约 3 小时,花费 $47,Tripo 用了 1130 积分。最长的一轮是换资产:75 分钟,120 多次工具调用。

  1. agent 给 Boss 写了部件表(每块做什么、铰链在哪、打掉后少哪种攻击),灰盒里就带了风格开关、19 项机制检查和两个 bot。

    • 只有主角是绑骨的人,猎犬和 Boss 都由部件组成
    • 我们站着不动 20 秒就死了:bot 第一帧就在走位。第一波改成了温和的教学波
    • 它自己找出 5 个 bug,包括设计稿里左右炮写反了
    设计稿,然后灰盒
  2. 每件资产:出图、Smart Mesh P2.0、贴图,再贴一套 Mecha Pop。Segment 把猎犬和 Foreman 拆成 106 块和 111 块,手动合并只减少了约十分之一。

    • 8 件 × 2 套外观 = 16 个 GLB
    • 1130 积分,约 50 分钟
    在 Tripo 拆件换风格
  3. 每块导出后都叫 tripo_part_N。agent 按和哪个占位体重叠来给猎犬归组;Foreman 上这招失效,它就按标注过的渲染图归组,还把一块同时含小腿和脚的零件切开了。

    • 每个模型约 100 张贴图合成一张,Foreman 只要 10 次绘制
    • 贴图 213 → 105 MB,手机上 37 MB
    • 改 6 个玩法数值前先来问
    换资产:上百个无名零件
  4. 灰盒的状态染色让贴图模型整体发白,打击感弱,腿跟着鼠标转。我们只描述现象;agent 把状态色收到小范围,加了命中反馈,并把身体拆开:腿朝跑的方向,脊椎扭向瞄准点。

    • 猎犬被染色的时间 91% → 17%;腿与跑向的偏差 25° → 7°
    • 火花、命中标记、代码合成音效;还抓到了自己引入的判定框回归
    • 24 MB 静态包发到 tripo.page;两种外观机制检查都 19/19
    试玩,然后发布

六个阶段之外

主干从不拆模型,也不给模型换第二套外观。这里的 Boss 会一块块被打掉,猎犬没有骨架,每件资产都有两种风格。选一个主题看。

拆件

把模型拆成部件

Segment 把生成的模型切成若干块,每块在 GLB 里都是独立的 mesh。Foreman 的炮能被打掉,靠的就是这个。

积分,第一次免费
40
每个模型
约 1 分钟
Balanced 拆出的块数
68–111
  • 三档:Simple(3–6 块)、Balanced(6–15 块)、Detailed。块数只是标称,这次 Balanced 拆出了 68、106 和 111 块。
  • Segment 要求 Triangle 网格,而且模型还没绑骨。先拆件,再绑骨。
  • 每次从图片进入 Smart Mesh,Topology 都会重置成 Quad、5000,每个模型都要重新选 Triangle。
  • 贴图后部件还在:测试机甲导出为 68 个 mesh、68 张小贴图,总共约 1 MB。
  • 机器按「每个部件一种颜色、部件之间留缝」出图,拆出来最接近你想要的部件。
预览把机甲分成大约 9 个区域。
预览把机甲分成大约 9 个区域。
Balanced 实际拆出 68 块,每块都叫 tripo_part_N。
Balanced 实际拆出 68 块,每块都叫 tripo_part_N。
对 agent 说
Mark each asset as a person, a prop or a machine made of parts. For machines, ask for one flat colour per part with gaps between parts.

合并与归组

手动大致合并,剩下的交给代码

Studio 里可以手动合并碎块。点了几十下之后,剩下的由代码按每块所在的位置归组。

合并后 Foreman 的块数
111 → 103
Foreman 的 draw call
10
每只猎犬的 draw call
6
  • 多选要在 3D 视图里按住 Cmd 点(Windows 上是 Ctrl)。点列表不行,按 Shift 会取消选择。
  • 已贴图的模型也能合并,合并结果会保留到 GLB。
  • 猎犬按每块和灰色占位的重叠程度归组。Foreman 比例差太多,agent 渲染了带标注的视图,手工分成几个大块,螺栓就近归并。
  • 有一块同时包含左前小腿和左后脚,agent 把它切成两块;机身背后的螺栓粘在护甲上,也拆了下来。
  • 每个部件自带几张小贴图,每个模型约 100 张。agent 把它们打成每个模型一张图集。
  • 导弹舱盖不是单独的一块,开盖动作就直接放弃,没有硬做。
把猎犬往 6 个部件合并。
把猎犬往 6 个部件合并。
在 Studio 里选中部件,会出现移动、旋转、缩放手柄。
在 Studio 里选中部件,会出现移动、旋转、缩放手柄。
对 agent 说
List every tripo_part_N with its position and size, group them into the parts in the design doc, and show me a labelled render before you wire them up.

部件玩法

铰链、判定区、被打掉

每个部件绕设计稿里的铰链转动,有自己的判定区和血量,被打掉时带走一种攻击。

护甲被判定区覆盖的比例
22% → 48%
炮口的真实位置
3.0 → 2.1 m
改之前先请示的数值
6
  • 判定区一开始按灰盒拟合。换成模型后,护甲判定区从覆盖 22% 扩到 48%,炮口从 3.0 m 挪到 2.1 m。
  • 它自己的改动让冲撞够不着人(停止半径 3.6 m),agent 又请示了一次,才把冲撞距离改到 4.2 m。
  • 两门炮的颜色和概念图相反,所以按位置命名,不按颜色。
  • 被打的部件一抖,判定用的轴心也跟着动,核心被推进机身,Boss 战从 60 秒拖到 107–158 秒。现在只抖显示用的网格。
  • 枪、导弹和猎犬在文件里朝 −X,都转成了朝 +Z。
游戏里的 Foreman:炮、导弹舱、护甲都是独立部件。
游戏里的 Foreman:炮、导弹舱、护甲都是独立部件。
对 agent 说
Refit every hit zone to the real model and show me the numbers before and after. Animate only the visible mesh, never the pivot the hit test uses.

四足绑骨

猎犬为什么没有骨架

Tripo 网页端能给四足模型绑骨,但只配了一个预设动作,而且失败了。猎犬最后改成 6 个部件,在代码里动。

Rig → Other 的骨骼数
15
预设动作:Walk
1
花掉的积分,没有可用结果
40
  • Rig → Other 两分钟内生成了四足骨架,20 积分。
  • 第一次导出 Walk 没有动画;第二次提示「An error occurred while running task」。
  • Text to Motion(20 积分)生成的是人形动作,套不到猎犬上。
  • Tripo 的 API 支持的绑骨身体类型比网页端多,包括四足。
  • 游戏里每只猎犬是身体、头和四条腿;代码摆动腿,蓄力时头部发红光,扑出时发橙光。
Rig → Other 给猎犬生成 15 根骨骼,一根后腿骨斜得不对。
Rig → Other 给猎犬生成 15 根骨骼,一根后腿骨斜得不对。
唯一的预设 Walk 失败了两次;Text to Motion 只生成了人形动作。
唯一的预设 Walk 失败了两次;Text to Motion 只生成了人形动作。
对 agent 说
Anything that is not a humanoid gets no skeleton: split it into parts and move the parts in code.

风格贴图

同一个网格,第二套外观

给同一个模型用风格预设再贴一次图,就得到形状相同的第二个版本。一个按钮切换全部 16 个文件。

带风格贴图多花的积分
+5
资产 × 外观 = 16 个 GLB
8 × 2
贴图显存
213 → 105 MB
  • 2K 贴图 10 积分,带风格 15。面板默认 8K、30 积分。
  • 风格会被记住,下次贴图还是它。要回到无风格,在弹窗里再点一次已选中的风格。
  • 先导出默认外观,再带风格贴一次图并导出。已绑骨的角色要在第二次导出前重新套动作。
  • 只加载当前外观,贴图再缩小:213 MB 降到 105 MB,手机上 37 MB。
  • 战斗中切换外观,已打掉的部件仍然是掉的。
  • Edit 下的 Magic Brush 可以局部重画贴图(每次预览 5 积分)。这个游戏没用。
贴图风格:Mecha Pop、classic、Wood,也可以上传自己的风格图。
贴图风格:Mecha Pop、classic、Wood,也可以上传自己的风格图。
同一场战斗,Mecha Pop 外观。
同一场战斗,Mecha Pop 外观。
对 agent 说
Give every asset a second style from Tripo’s presets. Load only the look in use, and keep broken parts broken when the look changes.

Text to Motion

动作库里没有的动作

动作库里没有翻滚,所以在 Text to Motion 里用一句话描述出来。

每个生成动作的积分
20
个字符会成为动画名
64
Multi-stage 最多串的动作数
5
  • 描述以动作名加冒号开头:「roll: a small character dives forward into a quick shoulder roll…」。
  • Studio 给卡片起了自己的标题 Shoulder Roll and Crouch;GLB 里的动画名却是描述的前 64 个字符,所以名字要放最前面。
  • 生成的动作会留成卡片,之后再套用(比如重新贴图后)不花积分。
  • Multi-stage Motion 能把最多 5 个动作串成一段。这次没测,可以留给连招。
一句话描述的翻滚,20 积分。
一句话描述的翻滚,20 积分。
对 agent 说
For any motion not in the library, write one Text to Motion line that starts with the motion name and a colon.

跑动与瞄准

腿往一边跑,枪指向另一边

双摇杆射击里,跑的方向和射的方向常常不同。agent 把身体拆成两半:腿跟跑向,上半身转向瞄准点。

腿偏离跑向的角度
25° → 7°
脚底打滑,m/s
2.5 → 0.72
手臂穿进身体,mm
33.7 → 4.0
  • 上半身通过三节脊椎骨转向瞄准点。
  • 边跑边朝身后瞄时,run 倒着播;侧向跑时扭髋。
  • run 加速到 1.57 倍以匹配 3.82 m/s,动作里前偏 0.94 m 的髋部也重新居中了。
  • agent 逐帧量了手臂穿进身体有多深。
往一边跑,朝另一边射。
往一边跑,朝另一边射。
对 agent 说
Split the character: legs play the run toward the movement, the spine turns the upper body toward the aim. Measure foot sliding and arm clipping.

打击反馈

反馈和音效全在代码里

灰盒不需要多少反馈就有打中的感觉,贴图模型需要多得多。火花、命中标记和所有音效都是代码加的,没有一个音频文件。

打中猎犬时的画面变化,0–255
4.6 → 13.6
打中 Boss 时
9.9 → 22.4
音频文件
0
  • 命中处闪光加火花;被打的部件抖动并短暂发橙光;屏幕上出现命中叉,击杀或打掉部件时变成更大的红叉;Boss 血条跳动。
  • 所有音效都由代码合成:金属叮声、打中核心的高音、猎犬的闷响、挡弹、枪声和爆炸。Sound 按钮可以关掉。
  • agent 量了命中点周围像素改前改后的变化,而不是凭感觉调。
打击反馈:火花、命中标记、被打的部件抖动。
打击反馈:火花、命中标记、被打的部件抖动。
对 agent 说
Measure how much the screen changes around a hit, then add sparks, a hit mark and sounds synthesised in code. Retune all feedback after swapping in models.

这次踩过的坑

出了什么问题、为什么、怎么修的。新版 Playbook 提示词已经覆盖了其中大部分。

在 Tripo Studio 里给部件改的名字,GLB 里没有

改过名的部件导出后仍叫 tripo_part_N。改为记下每个部件的位置,让 agent 在代码里按位置归组。

Segment 拆出的块数远多于清单

Balanced 拆成 106–111 块,手动合并只少了约十分之一。剩下的由 agent 在代码里归组,所以大致合并一下就够了。

已绑骨的角色重新贴图后,动作没了

给已绑骨的模型重新贴图会丢掉动作,导出只剩骨骼。导出前回 Animate 重新套一遍,不花积分。

贴图模型看起来发白

灰盒里标状态用的颜色会盖住整个贴图模型。状态色只用在小范围,受击时提亮贴图本色,不要叠白。

打掉的部件看起来是空心的

拆出来的块是薄壳。把缺口封上、渲染双面,或在后面垫一层深色;这次 agent 是把内面涂暗。

bot 全胜,新手却一开局就死

bot 第一帧就开始走位闪避。还要测一个站着不动、或只打一半注意力的玩家,按他们调第一波。

做你自己的游戏

把它贴进你的 coding agent

在 Claude Code 或 Codex 里打开一个空目录,把提示词贴进去。它会先问 5 个问题,再一个阶段一个阶段地做,每个阶段结束都会停下来让你先玩。

提示词
Help me make a small 3D browser game, step by step. I have never made a game before.

Before you write any code, ask me up to 5 short questions in one message: what the game is about, the one thing the player does, keyboard or phone or both, the art style, and anything I already have. Wait for my answers.

Once I have answered, start a git repository, save this whole prompt word for word to AGENTS.md, and add a CLAUDE.md that only says to read AGENTS.md. Keep a short PROGRESS.md: what is done, what we decided and what is next. Read both at the start of every stage, and commit at the end of every stage that works, so we can go back if a later change breaks something; each time, tell me the one command that takes us back to it.

Then work in stages. Stop at the end of every stage, tell me how to try it, and wait for my feedback:

1. Design — write GDD.md, one page: core loop, controls (keyboard and touch), win and lose, camera, and a table of every object on screen with an id, its size in metres and which way it faces. Keep it to one level and one core loop. Make up your own characters, names and level layout; do not copy any existing game, and do not make anything look like a well-known game character or item either. For every character that animates, list its states (for example idle, run, attack, hurt, knocked down) and when it switches between them, and say whether it is a person or another kind of body (an animal, a robot dog, a bug); only people get bones, so a body that is not a person is built from parts that move in code. If characters fight, write for each attack: which animation it uses, how much damage it does, and at what fraction of the animation the hit lands and ends. If a machine or object has parts that move, can be shot off or break apart, list its parts: what each part does, where it hinges, how much it can take, and what changes when it breaks. If parts can be swapped between machines or characters, give all of them the same set of slots, and for each slot write one attach point (where it sits, measured from the centre of the feet) and which way a part faces on that point.

2. Greybox — build it with Three.js and Vite, no game engine. Use only boxes, cylinders and capsules, sized from the table. Keep everything about how objects look in one place: a registry from id to a builder function, so a 3D model can replace any placeholder later without touching gameplay code. Build an object with parts as a group of named child placeholders, one per part, each turning around its own hinge, and let gameplay find parts by name. If parts can be swapped, hang each swappable part on a named attach point; swapping a part means hanging another part on that point and scaling it to fit the slot, and gameplay still finds parts by name. Every placeholder faces +Z. If the player jumps, make it feel good: a jump pressed just before landing still counts, a jump just after walking off a ledge still works, and holding the button jumps higher. If the player fights, make it feel good: a button pressed during an attack queues the next one, a hit freezes both fighters for a split second and pushes the target back, a character that was just hit cannot be hit again at once, and enemies take turns attacking instead of all at once. Show states on the placeholders (a colour or a lean) so I can see them. Put every number I might want to tune (speeds, sizes, camera, timings) in one config file, and add a hidden debug panel, opened with a key, with sliders for those numbers and readouts of FPS, draw calls, bounding boxes and each character's current state. Moving characters must look smooth on both 60 Hz and 120 Hz screens. Done when I can play a full round and restart, on desktop and on a phone. If a later change adds a new state, add it to GDD.md and tell me which animation it needs.

3. Asset list — write assets.json with one entry per id: its kind (prop, person or parts), size in metres (height for people, longest edge for everything else), a polygon budget in triangles (at least 500; at least 10000 for parts), and one English image prompt. Give every prompt the same art-style sentence, describe the shape and proportions it must have to fit its size, give visible details to the side the camera sees most (for a vehicle the player follows, its back) while still asking for one view of one object, and end it with "single isolated object, centered, on a plain white background". The ground, sky and edge of the level are part of the look too: say how each will be made (a Tripo entry or built in code), so none of them stays greybox. At most 8 entries; if several enemies share a shape, they share one entry, and one that differs only in colour gets a texture prompt on that entry instead of a new entry. A texture prompt repaints the whole model, so describe the whole object with every colour, not "the same but red"; a prop in one plain colour is tinted in code instead.

   - A person that animates must stand in a T-pose, facing the camera, with its head no more than a third of its height, arms long enough to reach mid-thigh, a body no wider than its shoulders, space between the arms, legs and body, and nothing loose that would flap or stick out (scarves, long hair, bandana tails, capes). Give it a list of animations taken only from these names in the Tripo library: idle, walk, run, jump, jump_down, fall, box_01, box_02, box_03, front_kick_01, slash, shoot, hit_to_body_01, hit_to_head, defeat_02, cheer. The name is only a label, so pick by what the motion is: jump has a long crouch before take-off, jump_down is a drop through the air, fall is tripping over onto the ground, defeat_02 is being knocked down, and the attacks are much slower than a game needs.

      If no name fits, write a one-line description of the motion instead, starting with its name and a colon (for example "dodge: a small character rolls forward and gets back up"); this works for people only, and it is reliable for motions on the ground; a motion in mid-air often comes out standing. Anything that only spins, bobs, squashes or flashes is animated in code, not in Tripo. A person who stays seated (a driver, a rider) keeps its legs and hips posed in code and uses animations for the upper body only; Text to Motion does not make good seated poses.

   - An object with parts (a machine, an animal or robot animal, anything that breaks apart) is one model that Tripo will split. List its parts in plain words (for example "left_cannon", "armour_plate", "front_left_leg"), at most 10, and if parts can be swapped, say which slot each part fits. Write the image prompt so that any central body is clearly its own piece, and every part in one main colour of its own, with a gap between parts. Parts that walk or swing are moved in code at their hinges, not rigged.

   - Mark at most two entries as hero: the player's character or vehicle and the main enemy, the ones the camera stays close to. A hero's image prompt keeps its name, colours and art-style sentence and adds what it is made of (painted metal, knitted wool, rubber), small details (rivets, stitching, buckles), decals or wear, and detail on the side the camera sees most, described as part of one front view of a single figure; never ask for a back view or several views. A hero gets 10000 triangles for a person and 15000–20000 for a model with parts; keep a hero's parts list to 6 or fewer, because Tripo merges neighbouring parts and cannot reduce small pieces much.

   - If I want more looks for the game (for example a skin switch, or an elite enemy), give the entry up to 4 styles, each one of classic, Wood (dark old wood), another style Tripo Studio lists under Create Your Own Texture Style, or "own image: [a close-up swatch of the material: colours and surface, no creature or object]" if I will make my own style picture and upload it; or "none". Pick only styles that suit the art style, and tell me what each will look like. Each style costs one more texture generation in Tripo.

   Add up the triangles and texture memory for the busiest moment on screen and say whether a phone can handle it. A Tripo model that is not a hero has colour textures only: one at the chosen resolution, or one per piece for a split model, smaller for small pieces. A hero has three 4K textures (colour, normal and metal-rough), shared by all its pieces. Count a split model that is not a hero at 1.5 times its budget, because filling its gaps adds triangles.

4. Models — first ask me whether the Tripo MCP (https://studio.tripo3d.ai/mcp?from=vgh-prompt-agent) is connected in this session. If it is, make these entries yourself through it: every prop, every object with parts, and every hero or person that does not animate. Generate each one from its prompt and keep it within its polygon budget; for a hero, use the high-detail model and then reduce it to the budget. Before the first job, tell me roughly how many credits the list will cost and wait for my yes. Run one job at a time and wait until it finishes; a high-detail job can take ten minutes. Export GLB, save each file straight from the link the MCP returns (do not retype the link) into public/assets with the entry's file name, and check that it loads. If the MCP is not connected, or an entry fails twice, leave that entry to me.

   My turn — give me one table with a row per entry you did not make (people that animate always come to me, because the MCP cannot export their animations yet): id, kind, hero or not, prompt, polygon budget, file name, animations or parts, and styles or texture prompt (or "none"). Then tell me to make them in Tripo Studio (https://studio.tripo3d.ai/workspace/generate?from=vgh-prompt-agent) by following these steps, which cover every kind of entry, heroes, styles, colour versions and export: https://github.com/TripoGrowthLab/vibe-gaming-interactive-playbook/blob/main/prompt/tripo-studio-steps.md . Wait until I say they are in.

5. Swap — load each GLB in place of its placeholder (models made through the MCP are compressed with meshopt, so load them with the MeshoptDecoder): scale it to the size in the list (people by height), sit it on the ground, and add an environment map so materials are not black. Keep every map a model comes with (colour, normal, metal-rough) and its metal and roughness values; only a model with a colour map alone gets roughness 1 and metalness 0. Render every model next to its placeholder and check it faces the same way; rotate it if it does not. Do this again whenever a model is replaced: a new version can face another way and has new UVs, so its style and colour files must be made again from it. First list what is really inside each file: animation names (Tripo often renames them: defeat_02 can come out as defeat_03, and a Text to Motion clip is named after the start of its description) and, for split models, every piece with its name, size and position. Match animations by the closest name. Match pieces by name first; a piece still called tripo_part_N belongs to a part only if its centre sits inside that part's placeholder, and to the body otherwise, so group them in code; print the pieces of each part and check them on a render before you move any hinge. The sizes stored in the file are not reliable, so recompute each bounding box before you measure anything. The order of meshes changes from file to file, so always match pieces by node name. Tell me what you matched and what is missing. Every piece keeps the whole model's origin: move each part's pivot to its hinge before you turn it, and since a few pieces may still have small holes, make sure nothing looks see-through when a part comes off (close it, show both sides, or put something dark behind it). Merge the pieces of each part into one mesh when they share one material (a hero with parts comes that way) or when draw calls hurt on a phone. If parts can be swapped between machines, line up where each part joins with its slot's attach point and scale it to fit the slot. When a swapped part has a different height, such as another machine's legs, seat everything above it on the new part's real height and hinges, not the old part's or the placeholder's, so nothing floats or sinks. If an entry has style versions, they have the same shape, but Tripo can change their UVs: compare each style's UVs with the default file's, and where they differ, use that style file's own mesh with its textures, cut into the same parts or bound to the same skeleton. List which maps each style file has; a style may come without a metal-rough map. Look at each version and tell me if one does not match its prompt, and add a button that switches skins, loading each style only the first time it is chosen. Never pair the shape data of one file with another file. Put a close-up of each model in the game next to how it looks in Tripo Studio; if colours look washed out or flat, fix the lighting (one main light that casts shadows, less flat ambient light, the right colour space), not the textures.

   Look at the frames of every animation before you use it: pick the part you need, find the moment a punch or kick really lands, and check arms and feet do not go through the body or clothes. Tripo animations are the same for every body shape, so on a character with a big head, a round belly or thick clothes the arms often sink into the hips or chest when they hang down and pass through the head when they go up. Measure this in code instead of judging it from small frames: in every frame of every animation, work out where the arm vertices really are and test whether they are inside the rest of the body (a winding-number test stays right on clothes and open meshes), using the T-pose as zero. Also look at close-ups from the front and from a 3/4 angle, including the armpits. If an arm goes in, fix it in code: after each animation frame, turn the upper arm outward at the shoulder just enough to clear the body (hips, belly, chest and head); ignore a few millimetres of sleeve resting on clothes, and never change a pose where the hands are meant to touch the body (pockets, hips). Tell me the worst depth for every animation before and after the fix.

   Play character animations by name with an AnimationMixer, blending between states, and keep the character in place so only gameplay code moves it: "stay in place" can still leave the body ahead of or behind its feet, so check the hips over the whole clip and centre them. Match walk and run playback speed to how fast the character really moves so the feet do not slide. If a character must do two things at once (run and shoot), play the legs from one animation and the upper body from another: the legs always face where it runs, the upper body twists toward the aim, and it backpedals when aiming behind. When one model is used by several characters at once, clone it with SkeletonUtils so each has its own skeleton. Check where characters stop and touch things using the models' real sizes, not the placeholders', colliding with simple shapes that follow each model's visible surface (a capsule for every character; for a rounded top, step it down and keep it inside the visible edge, so no one stands in the air) and never with a model's mesh itself; fit the shapes to the models, never stretch a model unevenly to fit an old shape, and measure every frame of a crash or knockdown so no character ends up inside what it hit. On a phone held upright, measure over a full round how much of the screen height the player takes up and how much of the screen is empty sky or background, and tell me the smallest and largest of each. Keep a button that switches between greybox and models. The colour tints and white hit flashes that showed states on the placeholders wash out painted models, so on models glow only the part that matters and brighten its own colours instead of adding white; then check that a landed hit is still easy to see and hear (a flash or sparks at the spot, a jolt of the part, a sound). Effects that shake a part must not move the point used for hit detection. Do not change gameplay code, not even to fix a bug; if timings, sizes or triggers need new numbers, tell me what and why, and wait for my yes. Tell me which files, animations or pieces did not load and why.

6. Publish — as a build step, shrink every GLB with glTF Transform (meshopt geometry, WebP textures no larger than they ever appear on screen) and load them with the matching decoders, leaving the files in public/assets as they are. Play a full round on the small files to check that every animation, piece and style still works. Compression changes a rigged model's bind matrices, so play every animation on both the small and the original files and compare how high the feet sit above the ground; anything measured from the bind pose (such as skeleton.pose()) should use the bones' own starting positions instead. Then tell me the total download size and how long the first screen takes to appear on a phone. Then help me put it on a free static host and give me the link. Ask me before you create any account, repository or public page.

Test your own work before you hand it to me: run the build, open the game, check the console for errors, and tell me exactly what you checked. If the game has fights or levels, write a small bot that plays a full round and report what it hit and whether it won, and a second one that plays badly (holds forward into walls and obstacles) to check nothing gets stuck. Wait for every test to finish before you reply; never start a test with & or in the background. Use only a browser that is already installed on this machine; never download one. If you cannot test something, tell me what to try myself. If something does not work, say so.
在 GitHub 上查看
Mecha Pop · 一个按钮

给你自己的游戏做模型

写一句描述或丢一张图,Tripo Studio 就给你一个能直接进游戏的模型;要动的角色还能绑骨、套动作。新账号有免费积分。

免费做你的第一个模型 ↗
或者跟着六个阶段的教程做 →