← プレイブック完成ゲーム · 見下ろし型シューター · 難しい

PIT NINE

スクラップ置き場のアリーナに立つスカベンジャー。ロボット猟犬の2ウェーブを倒すと、ボスのForemanが現れます。銃、ミサイルポッド、装甲を1つずつ撃ち落とし、最後にコアを撃ちます。Claude Codeがプレイブックのプロンプトで作ったゲームで、直し方は一度も指示していません。

プレイする

WASDで移動、マウスで照準、Spaceでローリング。

ゲームはグレーボックスで始まります。下の黄色いボタンを押すか、ゲーム内で M を押すとTripoの3Dモデルを読み込みます。モデル表示中に L を押すと、全体がTripoのMecha Popスタイルに切り替わります。

1つのゲーム、3つの見た目

同じモデルのグレーボックス、Tripoのデフォルトテクスチャ、Mecha Popテクスチャ。切り替えても、壊れたパーツは壊れたままです。

グレーボックス · ステージ2

グレーボックス · ステージ2

箱と円柱だけ。ボスはこの時点で名前付きパーツのグループになっていて、各パーツが自分のヒンジを軸に回ります。

Tripoモデル · ステージ5

Tripoモデル · ステージ5

ForemanはTripoの3Dモデル1つをパーツに分割したもの。銃、ミサイルポッド、装甲は撃つと外れます。

Mecha Pop · ボタン1つ

Mecha Pop · ボタン1つ

すべてのアセットにTripoのMecha Popスタイルで2つ目のテクスチャを付けました。ゲームはファイルをその場で差し替えます。

ステージごとの制作過程

10ターン、エージェント稼働約3時間、エージェント費用$47、Tripoクレジット1,130。最も長いターンは差し替えで、75分、ツール呼び出し120回以上でした。

  1. エージェントはボスのパーツ表(各パーツの役割、ヒンジの位置、壊れたときに失う攻撃)を書き、スタイル切り替えを最初から組み込んだグレーボックス、19項目のメカニクスチェック、2つのボットを作りました。

    • ボーンを持つ人型は主人公だけ。猟犬とボスはパーツで構成
    • 立ち止まっていると20秒でやられました。ボットは最初のフレームから動くためです。ウェーブ1はやさしいチュートリアルに変更
    • 設計で左右の銃が逆になっていた件を含め、自分のバグを5つ見つけました
    設計、そしてグレーボックス
  2. 各アセットは画像、Smart Mesh P2.0、テクスチャ、そしてMecha Popテクスチャの順。Segmentで猟犬とForemanはそれぞれ106と111ピースに分かれ、手作業のマージで減ったのは約1割でした。

    • 8アセット × 2つの見た目 = 16 GLBファイル
    • 1,130クレジット、約50分
    Tripoでパーツとスタイル
  3. すべてのピースがtripo_part_Nで届きました。エージェントは猟犬をどのプレースホルダーと重なるかでグループ化。Foremanではそれが通用せず、ラベル付きレンダリングからピースを振り分け、すねと足を1つで含むピースを切り分けました。

    • モデルごとに約100枚のテクスチャを1枚にまとめ、Foremanは10ドローコールで描画
    • テクスチャ213 → 105 MB、スマホでは37 MB
    • ゲームプレイの数値6つは変更前に確認
    モデルを入れる:名前のない100ピース
  4. グレーボックスの状態色でテクスチャ付きモデルが白っぽく光り、ヒットの手応えが弱く、脚がマウスを追っていました。見たままを伝えると、エージェントは色を狭い範囲に抑え、ヒットフィードバックを追加し、体を分けました。脚は走る方向に、背骨は照準に向きます。

    • 猟犬が色付きになる時間91% → 17%、脚と走行方向のずれ25° → 7°
    • 火花、ヒットマーカー、合成した効果音。自分で入れた当たり判定のリグレッションも発見
    • 24 MBの静的ビルドをtripo.pageで公開。メカニクスは両方の見た目で19/19
    テストプレイ、そして公開

6つのステージの先へ

チュートリアルではモデルを分割せず、2つ目の見た目も付けません。ここではボスが1パーツずつ壊れ、猟犬にはボーンがなく、すべてのアセットに2つのスタイルがあります。トピックを選んでください。

Segment

モデルをパーツに分割する

Segmentは生成したモデルを複数のピースに切り分け、各ピースはGLB内で独立したメッシュになります。撃たれたForemanの銃が外れるのはこの仕組みです。

クレジット(初回無料)
40
モデル1つあたり
約1分
Balancedで分かれたピース数
68–111
  • 3段階:Simple(3–6パーツ)、Balanced(6–15)、Detailed。数は目安で、今回Balancedでは68、106、111ピースになりました。
  • SegmentにはTriangleメッシュで、リグを入れていないモデルが必要です。リグの前に分割してください。
  • 画像から進むたびにTopologyがQuad・5,000に戻るので、モデルごとにTriangleを設定し直します。
  • パーツはテクスチャ生成後も残ります。テスト用のメカは68メッシュ、68枚の小さなテクスチャ、合計約1 MBになりました。
  • パーツごとに単色で、パーツ間に隙間を空けて描いた機械ほど、狙いどおりのパーツに近く分かれます。
プレビューでは機体が約9つの領域に分かれています。
プレビューでは機体が約9つの領域に分かれています。
Balancedで実際には68ピースになり、すべてtripo_part_Nという名前でした。
Balancedで実際には68ピースになり、すべてtripo_part_Nという名前でした。
エージェントに伝える
Mark each asset as a person, a prop or a machine made of parts. For machines, ask for one flat colour per part with gaps between parts.

マージとグループ化

ざっくりマージして、残りはコードで

Studioではピースを手作業でマージできます。数十回クリックしたあと、残りはピースの位置をもとにコードでグループ化しました。

マージ後のForemanのピース数
111 → 103
Foremanのドローコール
10
猟犬1体あたりのドローコール
6
  • 複数のピースを選ぶには、3DビューでCmdを押しながらクリックします(WindowsではCtrl)。リストのクリックでは選べず、Shiftは選択解除になります。
  • テクスチャ付きモデルでもマージでき、マージしたピースはGLBでもまとまったままです。
  • 猟犬は、各ピースがグレーのプレースホルダーとどれだけ重なるかでグループ化しました。Foremanは比率の差が大きすぎたため、エージェントがラベル付きのレンダリングを出して大きなブロックに分け、ボルトは最も近いブロックにまとめました。
  • 左前脚のすねと左後ろ足を1つで含むピースがあり、エージェントが2つに切り分けました。背面のボルトが装甲にくっついていたので、外して移しました。
  • パーツごとに小さなテクスチャが付いていて、モデル1つで約100枚。エージェントがモデルごとに1枚のアトラスにまとめました。
  • ミサイルポッドのフタは独立したピースではなかったため、開く動きはごまかさずに省きました。
猟犬を6パーツに近づけるようマージしているところ。
猟犬を6パーツに近づけるようマージしているところ。
Studioでパーツを選択すると、移動・回転・拡大縮小のギズモが出ます。
Studioでパーツを選択すると、移動・回転・拡大縮小のギズモが出ます。
エージェントに伝える
List every tripo_part_N with its position and size, group them into the parts in the design doc, and show me a labelled render before you wire them up.

ゲーム中のパーツ

ヒンジ、当たり判定、パーツ破壊

各パーツは設計書のヒンジを軸に回り、それぞれ当たり判定とHPを持ち、壊れると攻撃が1つ減ります。

当たり判定に収まる装甲の割合
22% → 48%
銃口の実際の位置
3.0 → 2.1 m
変更前に確認した数値
6
  • 当たり判定は最初グレーの箱に合わせていました。モデルに合わせ直すと、装甲の判定は装甲板の22%から48%に広がり、銃口は3.0 mから2.1 mに移りました。
  • 自分の変更で体当たりが届かなくなった(停止半径3.6 m)あと、エージェントは体当たりを4.2 mに変える前にもう一度確認してきました。
  • 銃がコンセプト画像と逆の色で出てきたので、色ではなく位置で命名しています。
  • 被弾したパーツを揺らすと、当たり判定が使うピボットまで動き、コアが機体にめり込んで、ボス戦が60秒から107–158秒に延びました。今は見た目のメッシュだけを揺らしています。
  • 銃、ミサイル、猟犬はファイル内で−Xを向いていたので、+Zを向くよう回転させました。
ゲーム中のForeman。銃、ミサイルポッド、装甲は別々のパーツです。
ゲーム中のForeman。銃、ミサイルポッド、装甲は別々のパーツです。
エージェントに伝える
Refit every hit zone to the real model and show me the numbers before and after. Animate only the visible mesh, never the pivot the hit test uses.

四足リグ

猟犬にボーンがない理由

TripoのWeb版でも四足モデルにリグを入れられますが、付いてくるプリセットモーションは1つだけで、それも失敗しました。猟犬は6パーツにして、コードで動かしています。

Rig → Otherのボーン数
15
プリセットモーション:Walk
1
使ったクレジット、成果なし
40
  • Rig → Otherは2分以内、20クレジットで四足のボーンを作りました。
  • 1回目のWalkのエクスポートにはアニメーションがなく、2回目は「An error occurred while running task」が返りました。
  • Text to Motion(20クレジット)で作ったのは人型のモーションで、猟犬には適用できませんでした。
  • TripoのAPIは、現在のWeb版より多くの体型(四足を含む)のリグに対応しています。
  • ゲーム内の猟犬は胴体、頭、4本の脚でできています。脚はコードで振り、頭は溜め中に赤、飛びかかるときにオレンジに光ります。
Rig → Otherで猟犬に15本のボーンが入りましたが、後ろ脚のボーン1本の角度がおかしいです。
Rig → Otherで猟犬に15本のボーンが入りましたが、後ろ脚のボーン1本の角度がおかしいです。
唯一のプリセットWalkは2回とも失敗。Text to Motionは人型のモーションしか作りませんでした。
唯一のプリセットWalkは2回とも失敗。Text to Motionは人型のモーションしか作りませんでした。
エージェントに伝える
Anything that is not a humanoid gets no skeleton: split it into parts and move the parts in code.

スタイルテクスチャ

同じメッシュで2つ目の見た目

同じモデルにスタイルプリセットでもう一度テクスチャを付けると、形が同じ2つ目のバージョンができます。ボタン1つで16ファイルすべてを切り替えます。

スタイル付きテクスチャの追加クレジット
+5
アセット × 見た目 = 16 GLB
8 × 2
テクスチャメモリ
213 → 105 MB
  • 2Kテクスチャは10クレジット、スタイル付きなら15。パネルの初期値は8Kで30クレジットです。
  • スタイルは次のテクスチャ生成でも引き継がれます。なしに戻すには、選択中のスタイルをもう一度クリックします。
  • まずデフォルトの見た目をエクスポートし、スタイル付きでテクスチャを付け直してから、それもエクスポートします。リグ入りキャラクターは2回目のエクスポート前にモーションを適用し直す必要があります。
  • 読み込むのは今の見た目だけで、テクスチャも縮小しています。213 MBが105 MBに、スマホでは37 MBになりました。
  • 戦闘中に見た目を切り替えても、外れたパーツは外れたままです。
  • Edit内のMagic Brushでテクスチャの一部を描き直せます(プレビュー1回5クレジット)。このゲームでは使っていません。
テクスチャスタイル:Mecha Pop、classic、Wood。自分のスタイル画像もアップロードできます。
テクスチャスタイル:Mecha Pop、classic、Wood。自分のスタイル画像もアップロードできます。
同じ戦闘をMecha Popで。
同じ戦闘をMecha Popで。
エージェントに伝える
Give every asset a second style from Tripo’s presets. Load only the look in use, and keep broken parts broken when the look changes.

Text to Motion

ライブラリにないモーション

回避ローリングはライブラリになかったので、Text to Motionで1文で書きました。

生成モーション1つあたりのクレジット
20
文字がクリップ名になる
64
Multi-stageでつなげるモーション数
5
  • 説明はモーション名とコロンで始めます:「roll: a small character dives forward into a quick shoulder roll…」。
  • Studioはカードに独自のタイトル(Shoulder Roll and Crouch)を付けました。GLB内のクリップ名は説明の先頭64文字になるので、名前を最初に置きます。
  • 生成したモーションはカードとして残り、たとえばテクスチャを付け直したあとに再適用してもクレジットはかかりません。
  • Multi-stage Motionは最大5つのモーションを1つのクリップにつなげます。今回は未検証で、コンボに使えそうです。
1行で書いたローリング。20クレジットかかります。
1行で書いたローリング。20クレジットかかります。
エージェントに伝える
For any motion not in the library, write one Text to Motion line that starts with the motion name and a colon.

走りと照準

脚は走る方向、銃は別の方向

ツインスティックシューターでは、走る方向と撃つ方向が別になります。エージェントは体を分け、脚は走る方向に、上半身は照準に向けました。

脚と走行方向のずれ
25° → 7°
足の滑り(m/s)
2.5 → 0.72
腕が体にめり込む深さ(mm)
33.7 → 4.0
  • 上半身は3本の背骨のボーンを通して照準点にひねります。
  • 走りながら後ろを狙うとrunを逆再生し、横に走るときは腰をひねります。
  • runは3.82 m/sに合わせて1.57倍速で再生し、クリップ内で0.94 m前にずれていた腰を中央に戻しました。
  • エージェントは腕が体にどれだけめり込むかを1フレームずつ計測しました。
走る方向と撃つ方向が別々。
走る方向と撃つ方向が別々。
エージェントに伝える
Split the character: legs play the run toward the movement, the spine turns the upper body toward the aim. Measure foot sliding and arm clipping.

ヒットフィードバック

フィードバックと音はすべてコードで

グレーの箱なら少しの演出で当たった感じが出ますが、テクスチャ付きモデルはずっと多く必要です。火花、ヒットマーク、すべての効果音はコードで追加し、音声ファイルは使っていません。

猟犬ヒット時の画面変化(0–255)
4.6 → 13.6
ボスヒット時の同じ値
9.9 → 22.4
音声ファイル
0
  • ヒット位置にフラッシュと火花。被弾パーツは揺れて一瞬オレンジに光り、画面に×印が出て、撃破やパーツ破壊では大きな赤い×になります。ボスのHPバーも脈打ちます。
  • 効果音はすべてコードで合成しています:金属音、コアに当たったときの高い音、猟犬への鈍い音、弾かれた弾、銃声、爆発。Soundボタンでオフにできます。
  • エージェントは勘に頼らず、ヒット位置周辺のピクセル変化を変更前後で計測しました。
ヒットフィードバック:火花、ヒットマーク、被弾パーツの揺れ。
ヒットフィードバック:火花、ヒットマーク、被弾パーツの揺れ。
エージェントに伝える
Measure how much the screen changes around a hit, then add sparks, a hit mark and sounds synthesised in code. Retune all feedback after swapping in models.

今回のつまずき

何がうまくいかなかったか、なぜか、どう直したか。新しいプレイブックのプロンプトでほとんどカバーしています。

Tripo Studioで付けたパーツ名がGLBで消える

名前を変えたパーツも、エクスポートするとtripo_part_Nのままです。代わりに各パーツの位置をメモしておき、エージェントに位置でピースをコードでグループ化させましょう。

Segmentがリストよりはるかに多く切り分ける

Balancedではモデルが106–111ピースに分かれ、手作業のマージで減ったのは約1割だけでした。残りはエージェントがコードでグループ化したので、ざっくりマージすれば十分です。

リグ入りキャラクターがテクスチャ付け直し後にアニメーションを失う

リグ入りモデルにテクスチャを付け直すとアニメーションが消え、エクスポートにはボーンしか残りません。エクスポート前にAnimateで再適用してください。クレジットはかかりません。

テクスチャ付きモデルが白っぽく見える

グレーの箱で状態を示していた色が、テクスチャ付きモデル全体を覆ってしまいます。状態色は狭い範囲にとどめ、白を足すのではなくテクスチャ自体を明るくします。

外れたパーツが中空に見える

分割したピースは薄い殻です。隙間を閉じる、両面を描画する、または後ろに暗いものを置きます。エージェントは内側の面を暗くしました。

ボットは勝つのに、初心者はやられる

ボットは最初のフレームから動いて回避します。立ち止まったままのプレイヤーや、半分しか集中していないプレイヤーでもテストし、最初のウェーブはその人たちに合わせて調整しましょう。

自分のゲームを作ろう

これをコーディングエージェントに貼り付ける

Claude CodeかCodexで空のフォルダを開き、貼り付けてください。5つの質問をしたあと、ステージごとにゲームを作り、各ステージの終わりで止まるので、その都度プレイできます。

プロンプト
Help me make a small 3D browser game, step by step. I have never made a game before.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

自分のゲーム用のモデルを作る

キャラクターを説明するか画像を入れると、Tripo Studioがゲームにそのまま使えるモデルを返します。動かす必要があれば、リグとアニメーション付きです。新規アカウントには無料クレジットがあります。

最初のモデルを無料で作る ↗
または6ステージのチュートリアルに沿って進める →