← Playbook 首頁成品遊戲 · 清版動作 · 困難

LANTERN ALLEY

漫畫英雄 Volt 清理街巷:四波小混混,最後是老大 Big Anvil。三段連拳、踢腿、跑動攻擊。Claude Code 依照 Playbook 提示詞完成,我們只說「繼續」或描述看到的狀況。

先玩玩看

J 出拳、K 踢腿、WASD 移動、Shift 奔跑。

遊戲一開始是灰盒。按下它下方的黃色按鈕,或在遊戲中按 V,就會載入 Tripo 角色;之後兩個方向都能即時切換。

同一場戰鬥,Tripo 之前與之後

每個機制都先用膠囊體做出來,並測試過可以玩。第 5 階段換上模型,完全沒有動到玩法程式碼。

灰盒 · 第 2 階段

灰盒 · 第 2 階段

會隨狀態變色的膠囊體:被打中是粉紅色,唯一被允許攻擊的敵人身上有紅色圈圈。

Tripo 角色 · 第 5 階段

Tripo 角色 · 第 5 階段

六位綁定骨架的格鬥角色,搭配動作庫的動畫。黑色描邊和平塗著色是用程式碼加上去的。

在 Tripo Studio 裡 · 第 4 階段

在 Tripo Studio 裡 · 第 4 階段

Volt 完成 Auto Rig,並從動作庫套上拳擊和踢腿。全程沒有用到 3D 軟體。

一個階段一個階段看這次怎麼做出來

23 輪對話,agent 實際執行約 3 小時 20 分鐘,agent 費用 $45,Tripo 點數 1,190。我們從沒告訴 agent 該怎麼修。

  1. agent 問了五個問題,寫了一頁附攻擊表的設計文件,接著用 Three.js 的膠囊體做出整場戰鬥,還有一個用同樣按鍵來玩的 bot。

    • 每個攻擊都列出它的動畫、傷害,以及命中發生在動畫的哪個比例位置
    • bot 5 戰 5 勝;灰盒 11 分鐘做完,花了 $2
    • 我們說「站著不動 30 秒會損失 70 HP」;它先量測,再把前幾波放慢
    設計,接著做灰盒
  2. 我們照著 agent 寫的步驟清單做:圖片、Smart Mesh P2.0、貼圖,再替四位格鬥角色做 Auto Rig 並套用動作庫的動畫。

    • 890 點數,約 37 分鐘
    • 4 位綁定骨架的角色共 29 個動畫,外加 4 個道具
    在 Tripo 做八件素材
  3. 我們只說了「檔案放進去了」。agent 發現動畫被改了名、一個踢腿朝向側面,以及攻擊比灰盒慢了 4–6 倍。它量出每一拳打中的影格,並在改任何數字之前先問過我們。

    • 一個實驗頁面把每個模型和它的佔位物件並排渲染
    • 命中時間窗根據真實影格重新調整;bot 用模型 3 戰 3 勝
    換上模型:三個隱藏的陷阱
  4. 被打倒的小混混變成黑色剪影,在 120 Hz 筆電上走路會卡頓,連段打起來也不像連段。我們各自描述了狀況;agent 找出原因,並在一輪內修好。

    • 每場戰鬥的完整連段:1 → 9
    • 依 agent 寫的提示詞,在 Tripo 做了兩位新角色:多花 300 點數
    • 最終:6 位綁定骨架的角色、bot 6/6、46 項檢查;19 MB 的靜態建置版本發布到 tripo.page
    試玩,然後發布

六個階段之外

主線教學的範例只替一位滑雪者綁定骨架、配三個動作。六位格鬥角色需要很多主線教學沒涵蓋的東西:替一批角色綁定骨架、動作庫、帶動畫匯出、按影格對準命中、卡通描邊,以及貼圖預算。選一個主題。

替一批角色綁定骨架

六位格鬥角色,一套骨架

每位格鬥角色都用同一種綁定方式:Humanoid、Mixamo 預設、Auto Rig。因為骨架一致,任何角色都能播放其他角色的動作。

綁定每個角色的點數
20
每個檔案的骨骼數
65
角色 → 骨架配置
6 → 1
  • 挑候選圖時要想著綁定骨架:雙臂水平、雙手張開,雙腿之間要有明顯的空隙。
  • 適合綁定骨架的比例:頭不超過身高的三分之一,手臂長度到大腿中段,身體不比肩膀寬,四肢與身體之間留有空隙。
  • 任何掛在身上的東西都會保持僵硬。Sprat 的頭巾尾巴讓每段動畫偏離中心 30 cm,所以 agent 讓每位格鬥角色以臀部為中心。
  • Boss 只是比較大的人形。這款遊戲沒有測試 Other 綁定類型,所以沒有任何東西依賴它。
  • 新動作還沒做出來之前,格鬥角色會互借動作:Sprat 用 Volt 的高踢,Boss 用 Slab 的過頂重擊。
  • 之後再加的兩位格鬥角色,每位花 150 點數:模型 100、貼圖 30、綁定骨架 20。
綁定面板:Humanoid 搭配 Mixamo 預設。Auto Rig 花 20 點數,約 30 秒。
綁定面板:Humanoid 搭配 Mixamo 預設。Auto Rig 花 20 點數,約 30 秒。
Sprat 四張候選圖中的兩張。「頭巾綁在頭上」讓每一張都多了一條僵硬的尾巴。
Sprat 四張候選圖中的兩張。「頭巾綁在頭上」讓每一張都多了一條僵硬的尾巴。
告訴你的 agent
所有格鬥角色都使用同一種 Humanoid 綁定,所以任何動作片段都能在任何角色上播放。列出每個角色需要哪些動作,以及哪些可以借用。

動作庫

依動作的實際樣子挑,不要看名字

Tripo 的動作庫有拳擊、踢腿、受擊反應和倒地。名稱只是標籤,所以套用前要先看過每個動作。

套用動作和匯出的點數
0
四位角色的動作片段數
29
一個「slash」的長度
6.58 s
  • 動作庫可以多選。卡片角落的圓圈代表這個動作已套用到這個模型;每點一次,都要花幾秒重新套用。
  • 搜尋只會在目前的群組裡找。先切到 All:停在 Recently Used 時,永遠搜不到新動作。
  • Recently Used 是整個帳號共用的,並不代表目前這個模型的狀況。只有匯出對話框會列出已套用的動作。
  • 動作庫的動作比遊戲需要的長很多:idle 15.33 秒、cheer 12.08 秒、slash 6.58 秒。遊戲只播放其中一段,而且更快。
  • 之後再替已綁定骨架的角色加動作是免費的。run 是一次加上去的,並以同樣的名稱再匯出一次。
「defeat」,取樣範圍是動畫的 0 到 0.85:主角只是搖晃,不會倒下。
「defeat」,取樣範圍是動畫的 0 到 0.85:主角只是搖晃,不會倒下。
「defeat_02」才是最後倒在地上的那一個。
「defeat_02」才是最後倒在地上的那一個。
告訴你的 agent
清單裡的每個動作,都描述它必須長什麼樣子、大概可以多長,讓我在套用前先檢查動作庫的預覽。

帶動畫匯出

連同動作一起匯出格鬥角色

已綁定骨架的格鬥角色,要在匯出對話框改三個設定,才會把動作一起帶出來。預設值會把它們漏掉。

預設匯出的動作數
0
對話框裡的貼圖尺寸
8K → 2K
run 動作裡臀部的前偏
0.55 m
  • Number of Animations 一開始是 0。打開它,選 Select All,再取消勾選你不用的動作。
  • 「Animation stay in Place」要選了動作才會出現。請打開它,否則走路和跑步會把身體帶離碰撞體。
  • Stay in place 只去掉位移,沒去掉偏移:在 run 裡,臀部整段都在前方 0.55 m。agent 量出來後,以臀部為中心重新置中。
  • 第一次匯出時,貼圖解析度預設是 8K。改成 2K 之後,對話框就記住了。
  • Export 按鈕有時第一次點擊沒反應,對話框還停著。再點一次就好。
Export:GLB、2K 貼圖、開啟骨架、選取所有動作、開啟 stay in place。
Export:GLB、2K 貼圖、開啟骨架、選取所有動作、開啟 stay in place。
之後再加 run:在動作庫套用,再以同樣的名稱重新匯出。
之後再加 run:在動作庫套用,再以同樣的名稱重新匯出。
告訴你的 agent
每個 GLB 都列出裡面的動作片段和長度,並檢查每段動作中臀部是否偏離原點。

命中時機

命中落在某一影格,而不是某次按鍵

agent 做了一個實驗頁面,把每個動作片段播放在模型上,旁邊是它的灰色膠囊體,再逐格讀取手和腳的骨骼。

偏離正前方:前踢其實是側踢
81–88°
刺拳打中時頭部的位移
13 → 30 cm
混入受擊動作的時間
0.04 s
  • 每個攻擊的命中都固定在動畫的同一個比例位置;改變的是播放速度,不是時間表。
  • front_kick_01 其實是側踢。只有那個動作片段轉了 −85°。
  • Walk 和 run 以角色實際移動的速度播放,腳才不會滑。
  • 受擊反應一開始是平靜的站姿。從撞擊的瞬間開始、混合 0.04 秒,會讓一記刺拳把頭推動 30 cm,而不是 13 cm。
  • 灰色膠囊體使用同樣的動作長度,所以兩種外觀的打法一致。
box_02,取樣範圍是動畫的 0 到 0.85。拳頭要到最後才打中。
box_02,取樣範圍是動畫的 0 到 0.85。拳頭要到最後才打中。
重新調整時間後,踢腿和受擊同時發生。
重新調整時間後,踢腿和受擊同時發生。
告訴你的 agent
做一個實驗頁面,把每個動作片段播放在模型上,旁邊放它的佔位物件。逐格讀取手和腳的骨骼,告訴我每個攻擊真正命中的時間。

賽璐珞著色

描邊和卡通著色放在程式碼裡

漫畫風格不是畫進貼圖裡的。Tripo 生成平塗顏色;遊戲再加上黑色描邊和硬邊的光。

加上描邊後的三角面
52k → 105k
烘進貼圖的陰影
0
  • 每件素材的提示詞共用一行風格描述:平塗顏色、沒有漸層、均勻光線、沒有烘進去的陰影。
  • 畫進貼圖裡的描邊,貼圖縮小時會變模糊,也無法在角色轉身時跟著輪廓走。
  • 描邊是每個身體稍大一點的黑色複製品,由內向外翻轉繪製。它會讓三角面翻倍,所以預算要把它算進去。
  • 卡通著色把受光的材質換成幾條硬邊的光帶。
  • 所有灰色佔位物件一開始共用同一個描邊材質,所以讓一個敵人淡出,所有描邊都跟著淡出。agent 替每個敵人配了自己的描邊材質。
同一個提示詞產生的主角候選圖:平塗顏色、均勻光線、沒有烘進去的陰影。
同一個提示詞產生的主角候選圖:平塗顏色、均勻光線、沒有烘進去的陰影。
遊戲中:描邊和卡通著色都來自程式碼。
遊戲中:描邊和卡通著色都來自程式碼。
告訴你的 agent
把描邊和賽璐珞著色留在程式碼裡。請 Tripo 做平塗顏色、均勻光線、沒有烘進去的陰影,並把描邊算進三角面預算。

貼圖記憶體

預算在貼圖,不在三角面

在生成任何東西之前,agent 先算出戰鬥最忙時刻的記憶體用量。三角面沒問題;貼圖有問題。

貼圖記憶體,全部貼圖 → 手機
470 → 22 MB
每張貼圖的點數,8K → 2K
30 → 10
發布後的整個建置版本
19 MB
  • 在最忙的時刻,也就是第 3 波,模型加起來有 52k 個三角面,而光是七張 2K 顏色貼圖就約 157 MB。
  • 如果再加上法線貼圖和粗糙度貼圖,就會到約 470 MB。
  • 載入時遊戲會縮小貼圖:格鬥角色 1024、道具 512,加起來約 22 MB。
  • 再加兩位格鬥角色後增加到 34 MB;agent 寫它們的提示詞時回報了新的總量。
  • 貼圖面板預設是 8K,要 30 點數;2K 是 10。這款遊戲為縮成 1024 的貼圖付了 8K 的價錢。
agent 在生成前先算過一次,加了兩位格鬥角色後又算了一次。
agent 在生成前先算過一次,加了兩位格鬥角色後又算了一次。
更新後畫面上有五位格鬥角色。
更新後畫面上有五位格鬥角色。
告訴你的 agent
生成之前,先算出最忙時刻的三角面和貼圖記憶體,並告訴我手機上你打算縮小什麼。

這次踩到的坑

哪裡出了問題、為什麼,以及怎麼修好的。新版 Playbook 提示詞已經涵蓋其中大部分。

動畫清單列出的片段名稱,不在檔案裡

動作庫顯示 hit_to_body,但檔案裡是 hit_to_body_01;defeat 會變成 defeat_02 或 defeat_03。請 agent 在比對之前,先列出每個 GLB 裡真正的片段名稱,再用最接近的名稱來比對。

出拳看起來沒問題,卻打不中

動作庫的攻擊比灰盒的時間慢 4–6 倍,一個 6.6 秒的 slash 根本到不了它的命中時間窗。agent 逐格讀取手和腳的骨骼,找出每一擊真正命中的時間,再以同樣的比例重新調整命中。

被打倒的敵人變成黑色的形狀

漫畫描邊是身體稍大一點的黑色複製品。身體淡出後,就不再遮住那份複製品。淡出期間把描邊關掉就修好了。

在 120 Hz 螢幕上走路會卡頓

遊戲邏輯以固定的 60 Hz 步進執行,渲染器畫的是最後一步,所以在 120 Hz 上每隔一格就停住不動。改成在兩步之間補間繪製就修好了。bot 看不出這種問題;提示詞現在要求在 60 和 120 Hz 下都要順暢移動。

測試結果在一輪結束時消失

在 headless 的 agent 執行中,留在背景的工作會在 agent 回覆時被停掉。請告訴它,回答之前要等每個測試都跑完。

你要求更多敵人招式,得到的卻是新行為,不是新動畫

agent 偏好重複使用手上現有的東西:換色、借來的動作片段、新的 AI 行為模式。如果你要新模型或新動畫,就說「在 Tripo 做」,它會替你寫提示詞。

做你自己的遊戲

把這段貼進你的 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 上查看
在 Tripo Studio 裡 · 第 4 階段

為你自己的遊戲做模型

描述一個角色或丟一張圖片進去,Tripo Studio 就會給你可以直接放進遊戲的模型;需要動的話,也會綁好骨架、套好動畫。新帳號有免費點數。

免費做出你的第一個模型 ↗
或跟著六個階段的教學做 →