只支持桌面端。点击游戏开始,鼠标转镜头。按 G 在 Tripo 模型和灰盒之间切换,1 换 Pell 的皮肤,2 换 Brassback 的。
← Playbook 首页成品游戏 · 3D 跳台 · 仅桌面端
先玩一局
WASD 移动,空格跳(按住跳得更高),空中左键下砸。
灰盒、模型和六套皮肤
第 2 阶段的灰盒、第 5 阶段的 Tripo 模型,以及 Pell 和 Brassback 各三套皮肤:classic、Wood 和一套用我们自己的图做的风格。
灰盒 · 第 2 阶段

方块和圆柱。Brassback 已经是 9 个有名字的部件,各绕自己的铰链转。
Tripo 模型 · 第 5 阶段

Pell 和 Brassback 是主角资产:面数更高,4K 贴图带法线和金属粗糙度。
Brassback · Wood

同一个网格用 Tripo 的 Wood 风格重新贴图。按 2 切换。
Brassback · 铜绿

用我们自己的铜绿小样做的风格。它没有金属粗糙度贴图,看起来有点像玻璃。
Pell · 三套皮肤

classic、Wood,以及用我们生成的毛线小样做的针织皮肤。按 1 切换。
逐阶段看这次是怎么做出来的
两个会话共 13 轮,agent 实际运行约 2 小时 13 分钟,花费 $43,Tripo 用了 1010 积分。最长的一轮是换资产:44 分钟,145 次工具调用。
名字、设定和「黄昏玩具盒」画风都是 agent 自己起的。灰盒里 Brassback 是 9 个带铰链的部件,还有调参面板和三个 bot。
- 按我们的回答只做桌面端:没有触控,也不做手机布局
- 一个 bot 通关、一个往墙上撞、一个近身打;在 60、120、144 Hz 下检查了运动是否平滑
- Pell 和 Brassback 标为主角,各写了一份细节清单

8 个条目、12 个 GLB。Pell:HD 模型、4K 贴图加 PBR、重拓扑到 1 万面、绑骨、7 个动作库动作和 1 个 Text to Motion。Brassback:HD 模型按部件生成,重拓扑到 2 万面。两个主角各加了 Wood 和一套用我们自己的图做的风格。
- 1010 积分,两个账号并行约 50 分钟
- 6 件道具占了其中 660,每件 110
- 有一步在步骤页之外:Pell 的图把他画了两遍,正面和背面

8 个动画全部按名字匹配上,Brassback 的 11 块按名字和位置归组。改 9 个碰撞数值前先来问了我们。模型周围的世界还是灰盒。
- 它量出 Brassback 的顶面是 2.28 → 1.6 m 的斜坡,提议改成阶梯式顶面
- 换皮只换了贴图,铜绿外壳碎成了玻璃片
- 手臂穿模修正把 Pell 手插口袋的待机姿势掰成了稻草人

我们报了四次看到的现象。agent 用代码搭了黄昏世界,把待机姿势改回原样;我们第二次报皮肤问题后,它查出每套皮肤的 UV 都不一样。之后压缩构建,托管方禁止 WebAssembly,它又重新构建了一次。
- 75.8 MB 模型 → 24.9 MB 构建;首屏前加载 11.0 MB
- 按我们的要求,收满 8 颗 glowseed 中的 4 颗就能破盾
- 在 tripo.page 上 bot 通关,剩 3 颗心、8 个部件全打掉,错误 0

六个阶段之外
这次试了提示词的主角档:两个资产比其他的精细得多,各有三套皮肤,整个世界也要做得像成品。选一个主题。
主角资产
把细节花在两个资产上
最多两个条目标为主角。它们的预算更高,4K 贴图带法线和金属粗糙度,出图提示词还要写材质、贴花和磨损。
- Pell 的三角面
- 9,428
- Brassback 的三角面
- 21,975
- Pell / Brassback 的积分
- 180 / 170
- Pell:HD 模型、4K 贴图加 PBR、重拓扑到 1 万面,再绑骨、加动作。
- Brassback:HD 模型按部件生成、4K 贴图加 PBR、重拓扑到 2 万面,开 Pack UV 让所有部件共用一个材质。
- 主角的提示词会加上材质、小细节、贴花,以及镜头最常看到那一面的磨损。
- 近看有极限:Pell 的脸在 1 m 内能看到棱面,Brassback 甲壳和机身的切口从上方看是黑的。


最多标两个主角:玩家和主要敌人。写清它们的材质、贴花和磨损,给 4K 贴图并带法线和金属粗糙度。正面和背面
出图把主角画了两遍
提示词要求写「背面,也就是镜头最常看到的一面」的细节,图像模型就把正面和背面两个视图并排画了出来。
- 张图里有两个人
- 8 / 8
- 步在步骤页之外
- 1
- 拿这种图点 Generate 3D,会生成两个连在一起的人。
- 我们的 Studio 助手把正面和背面裁开,改用多视图生成。
- 多视图做出的模型,Texture 面板要先上传图片才给风格选项:上传你当初生成它的那张图。

把背面细节写成单个人物正面视图的一部分,不要要求画背面视图或多个视图。皮肤
每套皮肤都有自己的 UV
用风格重新贴图,形状不变,但 UV 可能变;Pack UV 每次导出还会重新打包。把某套皮肤的贴图直接贴到默认网格上,就会错位。
- classic 和 Wood 相同的 UV
- 99.9%
- classic 和铜绿相同的 UV
- 0%
- 次报现象后才找到原因
- 2
- 就连不拆件、不开 Pack UV 的 Pell,各风格之间也只有 92–94% 的 UV 相同。
- 同一版本开 Pack UV 导出两次,UV 0% 相同;关掉 Pack UV 则 100% 相同。
- agent 一开始怪法线贴图,我们发了 Studio 截图后它才查到 UV。
- 风格版没有金属粗糙度贴图,所以 Wood 和铜绿看起来比 classic 平。


把每套风格的 UV 和默认文件比一比。不一样的,就用那个风格文件自己的网格,切成同样的部件或绑到同一套骨骼。部件
9 个部件,11 块,3 个粘在一起
Brassback 列了 9 个部件。按部件生成选 Simple,出来 11 块,机身、左甲壳和锅炉粘成了一块。
- 列出的部件 → 块数
- 9 → 11
- 个部件粘成一块
- 3
- 个材质,所有部件共用
- 1
- agent 按名字和中心点归组,并把每块归到哪里打印出来核对。
- 阀门轮按位置属于机身,但锅炉掉了它就会悬空;agent 把它改归锅炉,并说明了原因。
- 按区域切开会在甲壳和机身交界处留下黑色切面,从上方看得到。
- 每个材质的部件合并成一个网格,减少绘制调用。


主角的部件清单控制在 6 个以内。如果清单上的两个部件出来成了一块,告诉 agent 是哪两个。世界
世界也是画面的一部分
资产清单只列了物件,地面、天空和关卡边缘一直是灰盒,直到我们说整个游戏要和角色一样精致。
- 个地面和天空的 Tripo 条目
- 0
- 次报现象就修好了
- 1
- 模型之外都是代码:渐变天空、草地、一圈石头、萤火虫、雾海。
- 近处站得住;远处的岛和岩石是纯色低多边形,比主角差一截。
- 一盏带阴影的主光、一张环境图和辉光,让颜色不发灰。


在资产清单里写清地面、天空和关卡边缘怎么做:做成 Tripo 条目,还是用代码搭,别让任何东西停在灰盒。手臂
本来就贴着身体的姿势别去改
提示词让 agent 测量手臂陷进身体多深,再往外转。Pell 穿着厚毛衣,测到的深度其实是袖子压在毛衣上,修正反而把他的手从口袋里拽了出来。
- 测到的深度,其实只是接触
- 39 / 47 mm
- 修正的上限
- 12°
- 现在允许的隐藏接触
- 2 cm
- 我们说待机姿势像稻草人,agent 就把它改回了 Tripo 原来的样子。
- 修正现在最多把手臂转 12°,并忽略 2 cm 以内的隐藏接触。

袖子压在衣服上的几毫米不用管;手本来就该贴着身体的姿势(插口袋、叉腰)不要改。Text to Motion
空中动作生成成了站着跺脚
下砸动作是空中团身再往下踩,用一句 Text to Motion 描述。Tripo 返回的是站在地上跺脚。
- 积分生成这个动作
- 20
- 积分重新套用
- 0
- Studio 把它改名为 Tuck Jump with Stamp,放在 AI Animation 标签下。
- 换了贴图后,在那里再点一次就能免费重新套用。
- agent 最后改用 jump_down 的一段拼出了下砸。

Text to Motion 适合地面上的动作。空中的动作,让 agent 从动作库里的跳跃动作里截一段。构建和托管
压缩之后,又去掉 WebAssembly 重做
压缩把模型从 75.8 MB 降到 22 MB,但改变了骨骼读取初始姿势的方式;之后 tripo.page 又拦下了 WebAssembly 解码器。
- 最终构建,模型原本 75.8 MB
- 24.9 MB
- 首屏前加载
- 11.0 MB
- Pell 在空中下沉,只在压缩包里
- 1.1 m
- 压缩包里每个空中动作都把 Pell 往地下推了约 1.1 m。bot 照样通关,所以没有测试发现。这个是我们自己修的:保存骨骼原始变换再还原。
- 托管方只允许运行页面自己的脚本,网格解码器(WebAssembly)和一个 data: 字体都被拦下,大部分模型退回了灰盒。
- 我们只告诉 agent 现象和托管规则,它改用量化几何、不再需要解码器,把同样的规则加进自己的预览服务器,还顺手修了快速切皮肤时的竞态。

试玩压缩后的构建,不只是开发版,并对比压缩前后的动画。如果托管方有严格的内容安全策略(CSP),本地测试时也带上同样的响应头。这次踩的坑
哪里出了问题、为什么、怎么修的。大部分已经记成下一版提示词的修改建议。
主角的图把角色画了两遍
提示词要求写背面细节,图像模型就把正面和背面并排画出来。把背面写成单个正面视图的一部分,或者重新生成。
皮肤能加载,但看起来碎了或像迷彩
风格版的 UV 可能不同,Pack UV 每次导出还会变。每套皮肤加载自己的网格和贴图,不要只换贴图。
风格版看起来比默认版平
风格版没有金属粗糙度贴图,法线贴图也换了一张。心里有数,或者比较外观前先看每个文件有哪些贴图。
清单上的两个部件出来成了一块
按部件生成选 Simple,9 个部件里有 3 个粘在一起。主角部件控制在 6 个以内,并告诉 agent 哪几个粘了,让它按区域切开。
角色很精致,世界却不是
资产清单里没有地面和天空。在资产清单里就把它们写进去,做成 Tripo 条目或用代码搭。
压缩后的构建玩起来不一样
量化网格改变了骨骼的初始姿势,所有空中动作都往下沉;严格的托管方还拦下了 WebAssembly 解码器。重玩压缩包,并在托管方的 CSP 下测试。
把它贴进你的 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.
