← PlaybookGame hoàn chỉnh · platformer 3D · máy tính

LANTERNMOSS HOLLOW

Pell thu thập hạt sáng khắp một thung lũng rêu phủ lúc hoàng hôn, rồi giậm nát con bọ cơ khí Brassback. Do Claude Code làm bằng một bản nháp của prompt Playbook; chúng tôi chỉ tự sửa một lỗi.

Chơi ngay

Di chuyển bằng WASD, Space để nhảy (giữ để nhảy cao hơn), nhấp chuột trái khi đang ở trên không để dậm xuống.

Chỉ chơi được trên máy tính. Nhấp vào game để bắt đầu; chuột xoay camera. G chuyển giữa mô hình Tripo và khối xám, 1 đổi skin của Pell còn 2 đổi skin của Brassback.

Khối xám, mô hình và sáu skin

Bản khối xám ở giai đoạn 2, mô hình Tripo ở giai đoạn 5, và ba skin cho mỗi nhân vật Pell và Brassback: classic, Wood và một skin làm từ ảnh của chính chúng tô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ụ. Brassback đã gồm chín 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

Pell và Brassback là asset chủ lực: nhiều tam giác hơn, texture 4K kèm normal map và metal-rough map.

Brassback · Wood

Brassback · Wood

Cùng một lưới, được đổi texture theo style Wood của Tripo. Nhấn 2 để chuyển.

Brassback · gỉ đồng

Brassback · gỉ đồng

Style lấy từ mẫu gỉ đồng do chúng tôi tự làm. Nó không có metal-rough map nên trông hơi bóng như thủy tinh.

Pell · ba skin

Pell · ba skin

Classic, Wood và một skin len đan làm từ mẫu chúng tôi tạo ra. Nhấn 1 để chuyển.

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

13 lượt trao đổi trong hai phiên, khoảng 2 giờ 13 phút thời gian chạy agent, $43 chi phí agent và 1.010 credit Tripo. Lượt dài nhất là lượt thay mô hình: 44 phút và 145 lần gọi công cụ.

  1. Agent tự nghĩ ra tên gọi, bối cảnh và phong cách “hộp đồ chơi lúc hoàng hôn”. Bản khối xám có Brassback gồm chín bộ phận gắn bản lề, một bảng chỉnh thông số và ba bot.

    • Chỉ dành cho máy tính, theo câu trả lời của chúng tôi: không có điều khiển cảm ứng và không có bố cục cho điện thoại
    • Một bot thắng, một bot cứ đâm vào tường, một bot đánh cận chiến; chuyển động được kiểm tra ở 60, 120 và 144 Hz
    • Pell và Brassback được đánh dấu là nhân vật chủ lực, mỗi bên có một danh sách chi tiết riêng
    Thiết kế, rồi bản khối xám
  2. 8 mục, 12 tệp GLB. Pell: HD Model, texture 4K kèm PBR, retopology xuống 10k, rig, bảy chuyển động từ thư viện và một chuyển động Text to Motion. Brassback: HD Model tạo theo từng phần, retopology xuống 20k. Mỗi nhân vật chủ lực còn có style Wood và một style từ ảnh của chính chúng tôi.

    • 1.010 credit, khoảng 50 phút khi chạy song song hai tài khoản
    • Sáu đạo cụ tốn 660 credit trong số đó, mỗi món 110
    • Một bước làm ngoài trang hướng dẫn: ảnh của Pell vẽ anh hai lần, mặt trước và mặt sau
    Hai nhân vật chủ lực trong Tripo
  3. Cả 8 animation được ghép theo tên, còn 11 mảnh của Brassback được gom theo tên và vị trí. Agent hỏi trước khi đổi 9 thông số va chạm. Thế giới quanh các mô hình vẫn là khối xám.

    • Nó đo mặt trên của Brassback thành một dốc 2,28 → 1,6 m và đề xuất đổi thành mặt bậc thang
    • Skin chỉ thay texture, và mai gỉ đồng vỡ thành những mảnh như thủy tinh
    • Bản sửa tay biến dáng đứng yên đút tay túi quần của Pell thành một con bù nhìn
    Đưa mô hình vào
  4. Chúng tôi báo bốn điều mình thấy. Agent dựng một thế giới hoàng hôn bằng code, trả lại dáng đứng yên ban đầu, và sau lần báo thứ hai về skin thì phát hiện mỗi skin có UV riêng. Sau đó nó nén bản dựng, rồi dựng lại mà không dùng WebAssembly khi máy chủ chặn nó.

    • 75,8 MB mô hình → bản dựng 24,9 MB; 11,0 MB được tải trước khung hình đầu tiên
    • Giờ khiên vỡ sau 4 trong 8 hạt sáng, theo yêu cầu của chúng tôi
    • Trên tripo.page, một bot thắng với 3 trái tim còn lại và gỡ hết cả 8 bộ phận, 0 lỗi
    Chơi thử, nén, xuất bản

Ngoài sáu giai đoạn

Lần chạy này thử cấp asset chủ lực của prompt: hai asset chi tiết hơn hẳn phần còn lại, mỗi asset có ba skin, trong một thế giới trông như đã hoàn thiện. Chọn một chủ đề.

Asset chủ lực

Dồn chi tiết vào hai asset

Tối đa hai mục được đánh dấu là chủ lực. Chúng có ngân sách cao hơn, texture 4K kèm normal map và metal-rough map, cùng một prompt ảnh liệt kê vật liệu, decal và vết mòn.

tam giác trên Pell
9,428
tam giác trên Brassback
21,975
credit cho Pell / Brassback
180 / 170
  • Pell: HD Model, texture 4K kèm PBR, retopology xuống 10k tam giác, rồi rig và thêm chuyển động.
  • Brassback: HD Model tạo theo từng phần, texture 4K kèm PBR, retopology xuống 20k tam giác, Pack UV để mọi bộ phận dùng chung một vật liệu.
  • Prompt của một asset chủ lực có thêm vật liệu, chi tiết nhỏ, decal và vết mòn ở phía camera hay nhìn thấy nhất.
  • Giới hạn lộ ra khi nhìn gần: mặt Pell bị góc cạnh trong khoảng 1 m, và đường cắt giữa mai và thân của Brassback đen sì khi nhìn từ trên xuống.
Trái: boss từ một lần chạy trước, không có asset chủ lực. Phải: Brassback, cùng ánh sáng.
Trái: boss từ một lần chạy trước, không có asset chủ lực. Phải: Brassback, cùng ánh sáng.
Len đan, miếng vá khâu và khóa giày vẫn rõ nét ở khoảng cách chừng 2 m.
Len đan, miếng vá khâu và khóa giày vẫn rõ nét ở khoảng cách chừng 2 m.
Nói với agent của bạn
Chỉ đánh dấu tối đa hai asset chủ lực: người chơi và kẻ địch chính. Mô tả vật liệu, decal và vết mòn của chúng, rồi cho chúng texture 4K kèm normal map và metal-rough map.

Trước và sau

Khi ảnh vẽ nhân vật chủ lực hai lần

Khi yêu cầu thêm chi tiết “ở mặt sau, phía camera hay nhìn thấy nhất”, mô hình ảnh đã vẽ cạnh nhau một góc nhìn mặt trước và một góc nhìn mặt sau.

ảnh có hai hình người
8 / 8
bước làm ngoài trang hướng dẫn
1
  • Generate 3D trên một ảnh như vậy sẽ tạo ra hai hình người dính vào nhau.
  • Trợ lý Studio của chúng tôi cắt riêng mặt trước và mặt sau rồi tạo từ hai góc nhìn.
  • Mô hình tạo từ nhiều góc nhìn sẽ yêu cầu một ảnh trước khi đưa ra các style texture: hãy tải lên chính bức ảnh bạn đã dùng để tạo ra nó.
Ảnh ứng viên nào cũng vẽ Pell hai lần, mặt trước và mặt sau.
Ảnh ứng viên nào cũng vẽ Pell hai lần, mặt trước và mặt sau.
Nói với agent của bạn
Hãy mô tả mặt sau như một phần của cùng một góc nhìn chính diện của một nhân vật duy nhất; đừng bao giờ yêu cầu góc nhìn từ phía sau hay nhiều góc nhìn.

Skin

Mỗi skin mang UV riêng

Đổi texture theo một style giữ nguyên hình dạng nhưng có thể làm UV dịch chuyển, và Pack UV lại sắp xếp lại chúng ở mỗi lần xuất. Gắn texture của một skin lên lưới mặc định sẽ làm hỏng nó.

UV giống nhau, classic và Wood
99.9%
UV giống nhau, classic và gỉ đồng
0%
lần báo lỗi trước khi tìm ra nguyên nhân
2
  • Ngay cả Pell, không chia bộ phận và không dùng Pack UV, cũng chỉ có 92–94% UV giống nhau giữa các style.
  • Xuất cùng một phiên bản hai lần với Pack UV cho UV giống nhau 0%; tắt Pack UV thì khớp 100%.
  • Ban đầu agent đổ lỗi cho normal map. Nó chỉ tìm ra UV sau khi chúng tôi gửi ảnh chụp màn hình Studio.
  • Các phiên bản style không có metal-rough map, nên Wood và gỉ đồng trông phẳng hơn classic.
Chỉ thay texture: mai gỉ đồng vỡ thành những mảnh như thủy tinh.
Chỉ thay texture: mai gỉ đồng vỡ thành những mảnh như thủy tinh.
Đã sửa: mỗi skin tải lưới trong tệp riêng của nó cùng với texture.
Đã sửa: mỗi skin tải lưới trong tệp riêng của nó cùng với texture.
Nói với agent của bạn
So UV của từng style với tệp mặc định. Chỗ nào khác nhau, hãy dùng chính lưới trong tệp của style đó, cắt thành cùng các bộ phận hoặc gắn vào cùng bộ xương.

Bộ phận

Chín bộ phận, mười một mảnh, ba mảnh dính liền

Brassback được liệt kê gồm chín bộ phận. Khi tạo theo từng phần ở mức Simple, nó ra 11 mảnh, trong đó thân, mai trái và nồi hơi dính thành một.

bộ phận đã liệt kê → mảnh
9 → 11
bộ phận dính thành một mảnh
3
vật liệu cho mọi bộ phận
1
  • Agent gom các mảnh theo tên và tâm của chúng, rồi in ra mảnh nào được xếp vào đâu.
  • Bánh van nằm trong hộp của thân nhưng sẽ lơ lửng khi nồi hơi rơi xuống; nó chuyển bánh van sang nồi hơi và giải thích lý do.
  • Cắt theo vùng để lại một mặt đen ở chỗ mai gặp thân, nhìn thấy được từ phía trên.
  • Các bộ phận được gộp thành một lưới cho mỗi vật liệu để giữ số draw call ở mức thấp.
Tạo theo từng phần: 11 mảnh được đặt tên tripo_part_N.
Tạo theo từng phần: 11 mảnh được đặt tên tripo_part_N.
Khi chơi, các mai và nồi hơi vẫn bung ra được: agent cắt chúng ra khỏi mảnh dính liền theo vùng.
Khi chơi, các mai và nồi hơi vẫn bung ra được: agent cắt chúng ra khỏi mảnh dính liền theo vùng.
Nói với agent của bạn
Giữ danh sách bộ phận của một asset chủ lực ở mức sáu hoặc ít hơn. Nếu hai bộ phận đã liệt kê lại ra thành một mảnh, hãy nói cho agent biết đó là bộ phận nào.

Thế giới

Thế giới cũng là một phần của diện mạo

Danh sách asset chỉ có các vật thể, nên mặt đất, bầu trời và rìa màn chơi vẫn là khối xám cho đến khi chúng tôi nói cả game phải đẹp ngang các nhân vật.

mục Tripo cho mặt đất và bầu trời
0
lần báo lỗi để sửa
1
  • Mọi thứ quanh các mô hình đều là code: bầu trời chuyển màu, cỏ, một vòng đá, đom đóm, một biển sương mù.
  • Nhìn gần vẫn ổn; các hòn đảo và tảng đá ở xa là những khối low-poly phẳng, kém các asset chủ lực một bậc.
  • Một đèn chính có đổ bóng, một environment map và hiệu ứng phát sáng giữ cho màu sắc không bị xám xịt.
Sau khi thay mô hình: các mô hình hoàn chỉnh trong một thế giới xanh trơn.
Sau khi thay mô hình: các mô hình hoàn chỉnh trong một thế giới xanh trơn.
Một lượt sau: bầu trời hoàng hôn, cỏ, vòng đá, đom đóm và sương mù, tất cả đều dựng bằng code.
Một lượt sau: bầu trời hoàng hôn, cỏ, vòng đá, đom đóm và sương mù, tất cả đều dựng bằng code.
Nói với agent của bạn
Trong danh sách asset, hãy ghi rõ mặt đất, bầu trời và rìa màn chơi sẽ được làm thế nào, bằng một mục Tripo hay dựng bằng code, để không còn gì nằm lại ở dạng khối xám.

Cánh tay

Giữ nguyên những tư thế vốn có tiếp xúc

Prompt yêu cầu agent đo xem tay có lún vào thân không và xoay chúng ra ngoài. Trên chiếc áo len dày của Pell, độ sâu đo được thực ra là tay áo tì lên lớp len, và bản sửa lại kéo tay anh ra khỏi túi quần.

độ sâu đo được thực ra chỉ là tiếp xúc
39 / 47 mm
giới hạn của phần chỉnh sửa
12°
tiếp xúc ẩn hiện được cho phép
2 cm
  • Chúng tôi nói dáng đứng yên trông như một con bù nhìn; agent trả nó về đúng như Tripo đã tạo ra.
  • Giờ phần chỉnh sửa chỉ xoay một cánh tay tối đa 12° và bỏ qua phần tiếp xúc ẩn đến 2 cm.
Tay đút túi, giữ nguyên như Tripo đã tạo ra.
Tay đút túi, giữ nguyên như Tripo đã tạo ra.
Nói với agent của bạn
Bỏ qua vài milimét tay áo tì lên quần áo, và đừng bao giờ đổi tư thế mà tay vốn phải chạm vào người.

Text to Motion

Một chuyển động trên không lại ra tư thế đứng

Cú dậm, gồm co người trên không rồi giáng chân xuống, được viết thành một dòng Text to Motion. Tripo trả về một cú giậm chân trên mặt đất.

credit cho chuyển động
20
credit để áp dụng lại
0
  • Studio đổi tên nó thành Tuck Jump with Stamp và xếp vào AI Animation.
  • Sau khi đổi texture, nhấp lại vào nó ở đó là áp dụng được miễn phí.
  • Thay vào đó, agent dựng cú dậm từ một đoạn của jump_down.
Cú dậm xuống được viết trong Text to Motion. Kết quả chạy thành một cú giậm chân khi đứng.
Cú dậm xuống được viết trong Text to Motion. Kết quả chạy thành một cú giậm chân khi đứng.
Nói với agent của bạn
Dùng Text to Motion cho các chuyển động trên mặt đất. Với chuyển động giữa không trung, hãy nhờ agent cắt từ một animation nhảy có sẵn trong thư viện.

Bản dựng và host

Nén xong, rồi dựng lại không dùng WebAssembly

Việc nén giảm mô hình từ 75,8 xuống 22 MB, nhưng làm đổi cách các xương đọc tư thế nghỉ, rồi tripo.page lại chặn bộ giải mã WebAssembly.

bản dựng cuối, từ 75,8 MB mô hình
24.9 MB
trước khung hình đầu tiên
11.0 MB
Pell lún xuống khi ở trên không, chỉ ở bản dựng đã nén
1.1 m
  • Trong bản dựng đã nén, mọi chuyển động trên không đều đẩy Pell lún khoảng 1,1 m xuống đất. Bot vẫn thắng nên không bài kiểm tra nào phát hiện ra. Lỗi này chúng tôi tự sửa, bằng cách khôi phục transform gốc của các xương.
  • Máy chủ chỉ chạy script từ chính trang đó, nên bộ giải mã lưới (WebAssembly) và một phông chữ data: bị chặn, và phần lớn mô hình quay về khối xám.
  • Chỉ được cho biết triệu chứng và quy tắc của máy chủ, agent chuyển sang geometry lượng tử hóa không cần bộ giải mã, thêm đúng các quy tắc đó vào server xem trước của chính nó, và tiện thể sửa một lỗi tranh chấp khi đổi skin.
Trên tripo.page, một bot vượt màn với 3 trái tim còn lại và gỡ hết cả 8 bộ phận.
Trên tripo.page, một bot vượt màn với 3 trái tim còn lại và gỡ hết cả 8 bộ phận.
Nói với agent của bạn
Hãy chơi thử bản dựng đã nén, đừng chỉ chơi bản dev, và so sánh animation trước và sau. Nếu host của bạn có Content Security Policy nghiêm ngặt, hãy thử cục bộ với đúng header đó.

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. Phần lớn giờ đã thành ghi chú cho phiên bản prompt tiếp theo.

Ảnh nhân vật chủ lực vẽ nhân vật hai lần

Một prompt yêu cầu chi tiết ở mặt sau sẽ khiến mô hình ảnh vẽ mặt trước và mặt sau cạnh nhau. Hãy mô tả mặt sau như một phần của cùng một góc nhìn chính diện, hoặc tạo lại.

Skin tải được nhưng trông vỡ nát hoặc loang lổ như ngụy trang

Các phiên bản style có thể có UV khác nhau, và Pack UV làm chúng đổi ở mỗi lần xuất. Hãy tải lưới riêng của từng skin cùng texture của nó thay vì hoán đổi texture.

Các phiên bản style trông phẳng hơn bản mặc định

Chúng không có metal-rough map và có một normal map mới. Hãy chấp nhận điều đó, hoặc kiểm tra các map có trong từng tệp trước khi so sánh diện mạo.

Hai bộ phận đã liệt kê lại ra thành một mảnh

Tạo theo từng phần ở mức Simple đã làm dính ba trong chín bộ phận. Giữ bộ phận của một asset chủ lực ở mức sáu hoặc ít hơn, và nói cho agent biết bộ phận nào bị dính để nó cắt theo vùng.

Nhân vật trông đã hoàn thiện, còn thế giới thì chưa

Không có gì trong danh sách asset nói đến mặt đất hay bầu trời. Hãy yêu cầu chúng ngay trong danh sách asset, dưới dạng mục Tripo hoặc dựng bằng code.

Bản dựng đã nén chơi khác bản gốc

Lưới lượng tử hóa làm đổi tư thế nghỉ của các xương và khiến mọi chuyển động trên không bị lún; một máy chủ nghiêm ngặt còn chặn cả bộ giải mã WebAssembly. Hãy chơi lại bản dựng đã nén và thử nó dưới CSP của máy chủ.

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
Pell · ba skin

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 →