← PlaybookGame hoàn chỉnh · top-down shooter · khó

PIT NINE

Một người nhặt phế liệu trong đấu trường bãi sắt vụn: hai đợt chó máy, rồi đến Foreman. Hãy bắn súng, ổ phóng tên lửa và giáp của nó rơi ra từng bộ phận một, rồi đánh vào lõi. Do Claude Code làm bằng prompt Playbook; chúng tôi chưa từng chỉ cho nó cách sửa bất cứ điều gì.

Chơi ngay

Di chuyển bằng WASD, ngắm bằng chuột, Space để lăn.

Game mở ra ở dạng khối xám. Nhấn nút màu vàng bên dưới game, hoặc phím M trong game, để tải các mô hình Tripo; khi đã bật mô hình, L sẽ đổi toàn bộ sang diện mạo Mecha Pop của Tripo.

Một game, ba diện mạo

Bản khối xám, texture mặc định của Tripo và texture Mecha Pop trên cùng các mô hình. Bộ phận đã bị phá vẫn giữ nguyên trạng thái khi bạn chuyển đổi.

Khối xám · giai đoạn 2

Khối xám · giai đoạn 2

Các khối hộp và hình trụ. Boss đã là một nhóm bộ phận có tên, mỗi bộ phận xoay quanh bản lề riêng.

Mô hình Tripo · giai đoạn 5

Mô hình Tripo · giai đoạn 5

Foreman là một mô hình Tripo được tách thành các bộ phận; súng, ổ phóng tên lửa và giáp rơi ra khi bạn bắn trúng.

Mecha Pop · một nút bấm

Mecha Pop · một nút bấm

Mỗi asset có thêm một texture thứ hai theo style Mecha Pop của Tripo. Game thay các tệp ngay tại chỗ.

Lượt chạy diễn ra thế nào, theo từng giai đoạn

10 lượt trao đổi, khoảng 3 giờ thời gian chạy agent, $47 chi phí agent và 1.130 credit Tripo. Lượt dài nhất là lượt thay mô hình: 75 phút và hơn 120 lần gọi công cụ.

  1. Agent viết một bảng bộ phận cho boss (mỗi bộ phận làm gì, nằm ở bản lề nào, mất đòn tấn công nào khi bị phá), rồi dựng bản khối xám đã có sẵn nút đổi style, 19 bài kiểm tra cơ chế và hai bot.

    • Chỉ nhân vật chính là người có xương; chó máy và boss được dựng từ các bộ phận
    • Chúng tôi vẫn chết sau 20 giây dù đứng yên: bot di chuyển ngay từ khung hình đầu tiên. Đợt 1 được chỉnh thành một phần hướng dẫn nhẹ nhàng
    • Nó tự tìm ra năm lỗi của chính mình, trong đó có việc súng trái và súng phải bị đổi chỗ trong bản thiết kế
    Thiết kế, rồi bản khối xám
  2. Với mỗi asset: ảnh, Smart Mesh P2.0, texture, rồi một texture Mecha Pop. Segment cắt chó máy và Foreman thành 106 và 111 mảnh; gộp tay chỉ giảm được khoảng một phần mười.

    • 8 asset × 2 diện mạo = 16 tệp GLB
    • 1.130 credit, khoảng 50 phút
    Bộ phận và style trong Tripo
  3. Mọi mảnh đều có tên tripo_part_N. Agent gom chó máy theo việc mỗi mảnh chồng lên khối giữ chỗ nào; với Foreman cách đó thất bại, nên nó xếp các mảnh dựa trên ảnh render có gán nhãn và cắt một mảnh chứa cả ống chân lẫn bàn chân.

    • Khoảng 100 texture trên mỗi mô hình được gộp thành một; Foreman được vẽ trong 10 lượt gọi
    • Texture từ 213 → 105 MB, còn 37 MB trên điện thoại
    • Đã hỏi trước khi đổi 6 thông số gameplay
    Đưa mô hình vào: 100 mảnh không tên
  4. Màu trạng thái của bản khối xám khiến các mô hình có texture sáng nhợt, đòn đánh có cảm giác yếu và chân cứ đi theo chuột. Chúng tôi mô tả điều mình thấy; agent giới hạn màu ở những vùng nhỏ, thêm phản hồi khi trúng đòn và tách thân ra: chân theo hướng chạy, cột sống xoay theo hướng ngắm.

    • Chó máy bị nhuộm màu 91% → 17% thời gian; chân lệch khỏi hướng chạy 25° → 7°
    • Tia lửa, dấu trúng đòn và âm thanh tổng hợp; nó bắt được lỗi hồi quy hitbox của chính mình
    • Bản dựng tĩnh 24 MB trên tripo.page; cơ chế 19/19 ở cả hai diện mạo
    Chơi thử, rồi xuất bản

Ngoài sáu giai đoạn

Hướng dẫn sáu giai đoạn không bao giờ tách một mô hình hay cho nó diện mạo thứ hai. Ở đây boss rã ra từng mảnh, chó máy không có bộ xương và mỗi asset có hai style. Chọn một chủ đề.

Segment

Tách một mô hình thành các bộ phận

Segment cắt một mô hình đã tạo thành nhiều mảnh, và mỗi mảnh trở thành một lưới riêng trong GLB. Nhờ vậy Foreman mất một khẩu súng khi bạn bắn nó rơi ra.

credit, lần đầu miễn phí
40
mỗi mô hình
~1 min
mảnh từ Balanced
68–111
  • Ba mức: Simple (3–6 bộ phận), Balanced (6–15) và Detailed. Số lượng chỉ mang tính danh nghĩa: ở đây Balanced cho ra 68, 106 và 111 mảnh.
  • Segment cần một lưới Triangle và một mô hình chưa được rig. Hãy tách trước khi rig.
  • Topology đặt lại về Quad và 5.000 mỗi lần bạn bắt đầu từ một ảnh, nên hãy đặt lại Triangle cho từng mô hình.
  • Các bộ phận vẫn còn sau khi texture: mech thử nghiệm ra 68 lưới với 68 texture nhỏ, tổng cộng khoảng 1 MB.
  • Cỗ máy được vẽ mỗi bộ phận một màu, có khoảng hở giữa các bộ phận, sẽ được tách sát nhất với các bộ phận bạn muốn.
Bản xem trước gom cỗ máy thành khoảng chín vùng.
Bản xem trước gom cỗ máy thành khoảng chín vùng.
Balanced thực tế trả về 68 mảnh, mỗi mảnh được đặt tên tripo_part_N.
Balanced thực tế trả về 68 mảnh, mỗi mảnh được đặt tên tripo_part_N.
Nói với agent của bạn
Đánh dấu từng asset là một con người, một đạo cụ hay một cỗ máy gồm nhiều bộ phận. Với cỗ máy, hãy yêu cầu mỗi bộ phận một màu phẳng và có khoảng hở giữa các bộ phận.

Gộp và gom nhóm

Gộp sơ sơ, để code lo phần còn lại

Studio cho phép bạn gộp các mảnh bằng tay. Sau vài chục cú nhấp, phần còn lại được gom nhóm bằng code theo vị trí của từng mảnh.

mảnh của Foreman sau khi gộp
111 → 103
draw call cho Foreman
10
draw call cho mỗi chó máy
6
  • Để chọn nhiều mảnh, hãy giữ Cmd và nhấp vào chúng trong khung nhìn 3D (Ctrl trên Windows). Nhấp vào danh sách không có tác dụng, và Shift sẽ bỏ chọn.
  • Merge cũng dùng được trên mô hình đã có texture, và các mảnh đã gộp vẫn giữ nguyên là một trong GLB.
  • Chó máy được gom theo mức mỗi mảnh chồng lên khối giữ chỗ màu xám của nó. Tỷ lệ của Foreman khác quá nhiều, nên agent render các góc nhìn có gán nhãn, tách nó thành những khối lớn và gắn các con bu-lông vào khối gần nhất.
  • Một mảnh chứa cả ống chân trước trái lẫn bàn chân sau trái; agent cắt nó làm đôi. Các bu-lông ở phía sau bị dính vào giáp và đã được chuyển đi chỗ khác.
  • Mỗi bộ phận đi kèm các texture nhỏ riêng, khoảng 100 cái cho mỗi mô hình. Agent đóng gói chúng vào một atlas cho mỗi mô hình.
  • Nắp ổ phóng tên lửa không phải là một mảnh riêng, nên animation mở nắp bị bỏ đi thay vì làm giả.
Gộp chó máy lại về gần sáu bộ phận của nó.
Gộp chó máy lại về gần sáu bộ phận của nó.
Bộ phận được chọn sẽ hiện gizmo di chuyển, xoay và co giãn trong Studio.
Bộ phận được chọn sẽ hiện gizmo di chuyển, xoay và co giãn trong Studio.
Nói với agent của bạn
Liệt kê mọi tripo_part_N kèm vị trí và kích thước, gom chúng thành các bộ phận trong tài liệu thiết kế, và cho tôi xem một ảnh render có gán nhãn trước khi bạn nối chúng vào game.

Bộ phận khi chơi

Bản lề, vùng trúng đòn, bung ra từng mảnh

Mỗi bộ phận xoay quanh một bản lề lấy từ tài liệu thiết kế, có vùng trúng đòn và HP riêng, và làm boss mất đi một đòn tấn công khi bị phá.

phần giáp nằm trong vùng trúng đòn
22% → 48%
vị trí thật của họng súng
3.0 → 2.1 m
thông số nó đã hỏi trước khi đổi
6
  • Ban đầu các vùng trúng đòn được khớp với những khối hộp xám. Trên mô hình thật, vùng giáp tăng từ 22% lên 48% của tấm giáp, và họng súng dịch từ 3,0 xuống 2,1 m.
  • Sau khi thay đổi của chính nó khiến cú húc không còn với tới được (bán kính dừng 3,6 m), agent đã hỏi lại trước khi dời cú húc ra 4,2 m.
  • Các khẩu súng ra màu ngược với ảnh concept, nên chúng được gọi tên theo vị trí chứ không theo màu.
  • Việc rung một bộ phận bị trúng đã làm dịch điểm xoay mà bài kiểm tra trúng đòn dùng; lõi trượt vào trong thân và trận đánh kéo dài từ 60 giây thành 107–158 giây. Giờ chỉ lưới nhìn thấy được mới rung.
  • Súng, tên lửa và chó máy quay về hướng −X trong tệp của chúng và đã được xoay lại để hướng về +Z.
Foreman khi chơi: súng, ổ phóng tên lửa và giáp là các bộ phận riêng.
Foreman khi chơi: súng, ổ phóng tên lửa và giáp là các bộ phận riêng.
Nói với agent của bạn
Khớp lại mọi vùng trúng đòn với mô hình thật và cho tôi xem các con số trước và sau. Chỉ làm animation cho lưới nhìn thấy được, đừng bao giờ động vào điểm xoay mà bài kiểm tra trúng đòn dùng.

Rig bốn chân

Vì sao chó máy không có bộ xương

Tripo có thể rig một mô hình bốn chân trên web, nhưng chỉ kèm một chuyển động có sẵn và nó đã thất bại. Chó máy được làm thành sáu bộ phận chuyển động bằng code.

xương từ Rig → Other
15
chuyển động có sẵn: Walk
1
credit đã tốn, không dùng được gì
40
  • Rig → Other dựng một bộ xương bốn chân trong chưa đầy hai phút với 20 credit.
  • Lần xuất Walk đầu tiên không có animation; lần thử thứ hai trả về “An error occurred while running task”.
  • Text to Motion (20 credit) tạo ra một chuyển động của hình người, không thể áp dụng cho chó máy.
  • API của Tripo rig được nhiều dạng cơ thể hơn trang web hiện nay, kể cả loại bốn chân.
  • Trong game, mỗi chó máy gồm một thân, một đầu và bốn chân; code làm chân vung lên, còn đầu phát sáng đỏ khi nó lao tới và cam khi nó vồ.
Rig → Other cho chó máy một bộ xương gồm 15 xương; một xương chân sau nằm lệch góc.
Rig → Other cho chó máy một bộ xương gồm 15 xương; một xương chân sau nằm lệch góc.
Walk, chuyển động có sẵn duy nhất, thất bại hai lần. Text to Motion chỉ tạo ra chuyển động của hình người.
Walk, chuyển động có sẵn duy nhất, thất bại hai lần. Text to Motion chỉ tạo ra chuyển động của hình người.
Nói với agent của bạn
Bất cứ thứ gì không phải hình người thì không có bộ xương: hãy tách nó thành các bộ phận và cho các bộ phận đó chuyển động bằng code.

Texture style

Một diện mạo thứ hai từ cùng một lưới

Texture lại cùng một mô hình bằng một style có sẵn sẽ cho ra phiên bản thứ hai với cùng hình dạng. Một nút bấm đổi cả 16 tệp.

credit cho một texture có style
+5
asset × diện mạo = 16 GLB
8 × 2
bộ nhớ texture
213 → 105 MB
  • Một texture 2K tốn 10 credit, 15 nếu kèm style. Bảng điều khiển mặc định là 8K với 30.
  • Style được nhớ cho lần texture tiếp theo. Muốn quay về không dùng style, hãy nhấp lại vào style đang chọn.
  • Hãy xuất diện mạo mặc định trước, rồi texture lại với style và xuất bản đó. Nhân vật đã rig cần áp dụng lại các chuyển động trước lần xuất thứ hai.
  • Chỉ diện mạo đang dùng được tải, và texture được thu nhỏ: 213 MB thành 105, còn 37 MB trên điện thoại.
  • Bộ phận đã bị phá vẫn giữ nguyên trạng thái khi bạn đổi diện mạo giữa trận.
  • Magic Brush, nằm trong Edit, vẽ lại một phần texture (5 credit cho mỗi bản xem trước). Không dùng trong game này.
Các style texture: Mecha Pop, classic, Wood, hoặc tải lên ảnh style của riêng bạn.
Các style texture: Mecha Pop, classic, Wood, hoặc tải lên ảnh style của riêng bạn.
Cùng trận đánh đó ở diện mạo Mecha Pop.
Cùng trận đánh đó ở diện mạo Mecha Pop.
Nói với agent của bạn
Cho mỗi asset một style thứ hai từ các style có sẵn của Tripo. Chỉ tải diện mạo đang dùng, và giữ nguyên các bộ phận đã bị phá khi đổi diện mạo.

Text to Motion

Một chuyển động mà thư viện không có

Cú lăn né không có trong thư viện, nên nó được viết thành một câu trong Text to Motion.

credit cho mỗi chuyển động được tạo
20
ký tự của nó trở thành tên clip
64
chuyển động trong một chuỗi Multi-stage
5
  • Hãy bắt đầu phần mô tả bằng tên chuyển động và dấu hai chấm: “roll: a small character dives forward into a quick shoulder roll…”.
  • Studio đặt cho thẻ một tiêu đề riêng, Shoulder Roll and Crouch. Trong GLB, clip được đặt tên theo 64 ký tự đầu tiên của phần mô tả, vì vậy tên chuyển động phải đứng đầu.
  • Các chuyển động đã tạo được giữ lại dưới dạng thẻ; áp dụng lại một chuyển động, ví dụ sau khi đổi texture, không tốn gì.
  • Multi-stage Motion nối tối đa năm chuyển động thành một clip. Chưa thử ở đây; là ứng viên cho các combo.
Cú lăn, được mô tả trong một dòng. Tốn 20 credit.
Cú lăn, được mô tả trong một dòng. Tốn 20 credit.
Nói với agent của bạn
Với bất kỳ chuyển động nào thư viện không có, hãy viết một dòng Text to Motion bắt đầu bằng tên chuyển động và dấu hai chấm.

Chạy và ngắm

Chân chạy một hướng, súng chĩa một hướng khác

Trong game twin-stick shooter, bạn chạy một hướng và bắn một hướng khác. Agent tách thân ra: chân theo hướng chạy, thân trên xoay theo hướng ngắm.

chân lệch khỏi hướng chạy
25° → 7°
m/s trượt chân
2.5 → 0.72
mm cánh tay nằm trong thân
33.7 → 4.0
  • Phần thân trên xoay qua ba xương sống về phía điểm ngắm.
  • Ngắm về phía sau khi đang chạy sẽ phát animation chạy ngược; chạy ngang sẽ làm hông xoay.
  • run phát nhanh hơn 1,57× để khớp với 3,82 m/s, và phần hông của nó, vốn lệch 0,94 m về phía trước trong clip, đã được căn lại vào giữa.
  • Agent đo từng khung hình xem cánh tay lún sâu vào thân đến mức nào.
Chạy một hướng, bắn một hướng khác.
Chạy một hướng, bắn một hướng khác.
Nói với agent của bạn
Tách nhân vật ra: chân phát animation chạy theo hướng di chuyển, cột sống xoay thân trên về hướng ngắm. Hãy đo mức trượt chân và mức cánh tay xuyên vào thân.

Phản hồi khi trúng đòn

Phản hồi và âm thanh, tất cả bằng code

Các khối xám chỉ cần rất ít để tạo cảm giác bị đánh trúng; mô hình có texture cần nhiều hơn hẳn. Tia lửa, dấu trúng đòn và mọi âm thanh đều được thêm bằng code, không cần tệp âm thanh nào.

mức thay đổi trên màn hình khi trúng chó máy, 0–255
4.6 → 13.6
tương tự khi trúng boss
9.9 → 22.4
tệp âm thanh
0
  • Một tia chớp và tia lửa tại điểm trúng; bộ phận bị trúng rung lên và phát sáng màu cam trong giây lát; một dấu thập trên màn hình, to hơn và màu đỏ khi hạ gục hoặc phá được một bộ phận; thanh máu boss nhấp nháy.
  • Mọi âm thanh đều được tổng hợp bằng code: tiếng kim loại va chạm, một nốt cao hơn khi trúng lõi, tiếng thịch khi trúng chó máy, tiếng đạn bị chặn, tiếng súng và tiếng nổ. Nút Sound sẽ tắt chúng.
  • Agent đo mức thay đổi theo pixel quanh điểm trúng trước và sau, thay vì đoán.
Phản hồi khi trúng đòn: tia lửa, một dấu trúng đòn, bộ phận bị trúng rung lên.
Phản hồi khi trúng đòn: tia lửa, một dấu trúng đòn, bộ phận bị trúng rung lên.
Nói với agent của bạn
Đo mức màn hình thay đổi quanh một cú trúng, rồi thêm tia lửa, dấu trúng đòn và âm thanh tổng hợp bằng code. Chỉnh lại toàn bộ phản hồi sau khi đã thay các mô hình vào.

Những lỗi gặp trong lần chạy này

Điều gì đã hỏng, vì sao, và cách sửa. Prompt Playbook mới hơn đã xử lý được phần lớn.

Tên bộ phận gõ trong Tripo Studio biến mất trong GLB

Bộ phận đã đổi tên vẫn được xuất thành tripo_part_N. Hãy ghi chú lại vị trí của từng bộ phận, rồi để agent gom các mảnh bằng code theo vị trí.

Segment cắt ra nhiều mảnh hơn hẳn số bạn đã liệt kê

Balanced tách các mô hình thành 106–111 mảnh, và gộp tay chỉ bớt được khoảng một phần mười. Agent gom phần còn lại bằng code, nên gộp sơ sơ là đủ.

Nhân vật đã rig mất animation sau khi texture lại

Texture lại một mô hình đã rig sẽ làm mất animation, và bản xuất chỉ còn xương. Hãy áp dụng lại chúng trong Animate trước khi xuất; việc này không tốn credit.

Mô hình có texture trông bạc màu

Những màu dùng để đánh dấu trạng thái trên khối xám sẽ phủ cả mô hình có texture. Hãy giữ màu trạng thái ở một vùng nhỏ, và làm texture sáng lên thay vì thêm màu trắng.

Một bộ phận bị phá trông rỗng ruột

Các mảnh được tách ra chỉ là những lớp vỏ mỏng. Hãy lấp khoảng hở, vẽ cả hai mặt hoặc đặt thứ gì đó tối phía sau; agent đã làm tối các mặt bên trong.

Bot thắng, người mới thì chết

Bot di chuyển và né ngay từ khung hình đầu tiên. Hãy thử cả một người chơi đứng yên hoặc chỉ chú ý nửa vời, và chỉnh đợt đầu tiên cho họ.

Tự làm game của bạn

Dán đoạn này vào agent lập trình

Mở một thư mục trống trong Claude Code hoặc Codex rồi dán vào. Nó hỏi năm câu, sau đó dựng game theo từng giai đoạn và dừng lại sau mỗi giai đoạn để bạn chơi thử.

Prompt
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.
Xem trên GitHub
Mecha Pop · một nút bấm

Tạo mô hình cho game của riêng bạn

Mô tả một nhân vật hoặc thả vào một hình ảnh, Tripo Studio sẽ trả cho bạn một mô hình sẵn sàng cho game, đã rig và có animation nếu cần chuyển động. Tài khoản mới được tặng credit miễn phí.

Tạo mô hình đầu tiên miễn phí ↗
Hoặc làm theo hướng dẫn sáu giai đoạn →