The Red Scarf:用 Claude Code、Tripo 與 Godot 製作 3D 遊戲

The Red Scarf:用 Claude Code、Tripo 與 Godot 製作 3D 遊戲

學習如何使用 Claude Code、Tripo CLI 和 Godot MCP 伺服器,在 Godot 4 中製作可玩的 3D Boss 戰,涵蓋 AI 生成 3D 資產、GLB 匯入、玩法指令碼、測試與最佳化。

Louis Li
進階其他

我從一個戴紅圍巾的男孩和一座荒無人煙的 1980 年代美國小鎮開始構思。一尊無面雕像將建築撕離地面、捲上天空。這個想法最終變成了 Godot 中可玩的第三人稱動作演示。

Claude 協助規劃、編寫指令碼和測試;Tripo 提供概念圖、模型、繫結和動畫。我負責指導專案,並在 Godot 中檢查組裝後的遊戲。

本教程展示一套完整的 AI 輔助 3D 遊戲開發流程:用 Claude 規劃並編寫 GDScript,用 Tripo CLI 生成可用於遊戲的 3D 資產,再透過 Godot MCP 讓 Claude 檢查、執行和除錯 Godot 專案。

專案配置

  • 引擎:Godot 4.7.2,Forward+
  • AI 程式設計助手:Claude Code
  • 影象生成:Tripo 影象生成
  • 3D 生成:Tripo P 系列與 H 系列模型
  • 專案:The Red Scarf,一段簡短的第三人稱 Boss 戰演示
The Red Scarf:可玩的 Boss 戰。
The Red Scarf:可玩的 Boss 戰。

完成後的演示玩起來是什麼樣

男孩沿著主街進入小鎮。來到廣場時,一尊無面雕像釋放衝擊波,將建築拉入圍繞自身的螺旋。

玩家透過跳躍、懸浮和圍巾躍遷攀上漂浮的商店。彈反發光投射物可以短暫打破雕像護盾;投擲附近物體則能造成傷害。經過三輪戰鬥,男孩就能接近並封印雕像。

1. 配置工具和專案

1.1 為 Claude Code 建立專案記憶

我將 Godot 專案、設計文件、概念圖、Tripo 模型和指令碼放在一起。根目錄下的 CLAUDE.md 記錄了 Claude Code 在不同會話中應遵循的規則。

其中包含以下要點:

  • 描述遊戲、基調和視覺方向。
  • 列出資產規則,例如保持風格一致,避免不需要的符號或文字。
  • 大幅修改前必須先制定計劃。
  • 保留提示詞歷史。
  • 發現反覆出現的陷阱和專案約定時及時記錄。

我也把反覆用到的修復方法加入同一檔案:網格繞序、模型朝向、動畫名稱和圍巾躍遷目標規則。之後的會話便能複用這些經驗。

1.2 將 Tripo CLI 連線到 Claude Code,製作 3D 遊戲資產

為了從命令列生成 3D 遊戲資產,我讓 Claude 安裝並配置 Tripo CLI。這樣,Tripo 資產流水線就可以重複執行,也更容易在 Godot 專案內自動化。

專案提示詞

text
Help me install and configure Tripo CLI: npm install -g tripo-cli

1.3 為 Claude Code 配置 Godot MCP 伺服器

Claude Code 可以直接編輯文字形式的 Godot 場景和 GDScript。透過模型上下文協議連線的 Godot MCP 伺服器,讓它能夠執行遊戲、截圖、檢查日誌並模擬輸入,從而成為實用的 Godot 4 開發工具。

我讓 Claude 報告當前開啟的場景和節點樹,再將 MCP 埠和專案與自己的配置核對,以確認連線正常。

流程檢查點: Claude Code 負責規劃和程式碼,Tripo CLI 負責文字生成 3D 資產,Godot MCP 負責編輯器和執行階段檢查。明確區分這些職責,能讓故障更容易定位。

專案提示詞

text
Compare the Godot MCP servers that are available right now and pick the one that fits this
project best (Godot 4.7, Claude Code, editor control plus running and inspecting the game).
Explain your choice, then install it into the_red_scarf/ and configure it at project scope
(.mcp.json in the project root). Turn telemetry off.

2. 將想法縮減為可測試的遊戲

2.1 先寫設計,再縮小範圍

Claude 的初版設計涵蓋小鎮、移動、Boss 攻擊和關卡流程,但對於短演示而言,階段和圍巾能力都太多了。

專案提示詞

text
I'm making a game demo with Claude, Tripo and Godot. Here's the idea:

The player is a boy in a bright red scarf, a gray hoodie, blue denim shorts and bright yellow
basketball sneakers. The scarf is a supernatural object: he can hover with it, move quickly
between platforms, grab objects and throw them, and use it as a whip.
The game starts on the main street of a mid-1980s American small town: one main road, houses
and shops on both sides (post office, gym, diner and so on). In the central plaza stands a
statue of a man in a suit whose face has been erased. It is a hostile supernatural object.
When the boy arrives, it releases a shockwave and slowly rises into the sky. The houses around
it are torn out of the ground and end up as floating platforms at different heights. The player
jumps between them, blocks the objects the statue hurls with telekinesis, fights back, and
finally reaches the statue and seals it with the scarf.

Write a short design doc in design/game_design.md: building types, the boss's attacks in two
phases, the boy's attacks, defense and movement moves, and the level flow.
Show me your plan first. Ask me if anything is unclear.

我將其縮減為仍然保留這款遊戲特色的最小迴圈:

專案提示詞

text
Simplify the combat:
1. The boss has only one phase.
2. Remove the scarf shield and the scarf whip.
3. New loop: the player moves across floating buildings and can only break the statue's shield
   by parrying its attacks (right click / RT, like a fighting-game parry). Once the shield is
   down, the player throws objects at it to deal damage.

我把戰鬥縮減為一個 Boss 階段:彈反破盾,在暴露視窗投擲物體,並以漂浮小鎮作為移動挑戰。保留下來的每個動作都必須服務於這個迴圈。

2.2 用資料搭建小鎮

Claude 編寫了 Node 指令碼,生成橢圓形小鎮的引數化 SVG:主街、十二家商店、住宅道路、公園、停車場和廣場。

同一指令碼還為 Godot 的灰盒、建築、道路、路燈和樹木匯出 JSON。因此,概念圖與可玩關卡共用同一份佈局。

我每次只修改一個引數,例如停車場大小、後院深度或商店入口,方便檢查每一項變化。

專案提示詞

text
Here's the town I have in mind. The street grid is a grid inside an oval outline:
- The long axis of the oval is the widest street, Main St, lined with functional buildings
  like the post office and the gym.
- The other streets run perpendicular to Main St on both sides, lined with houses.
- The center of the oval is a round plaza; the statue stands on a concrete pedestal in the middle.
- Asphalt streets with lane markings. Raised concrete sidewalks in front of the shops, with
  American red ash street trees at regular intervals.

Design the town structure, fill in the details I didn't mention and improve the design.
Draw it as a top-down plan with a Node script (tools/townplan/gen_town_svg.mjs) that generates
an SVG from parameters kept at the top of the file.
作為佈局來源的引數化小鎮平面圖。
作為佈局來源的引數化小鎮平面圖。

2.3 確立視覺方向

我將佈局用作俯視插畫的嚴格參考,保留道路、地塊、建築輪廓、樹木和小鎮外形。

最初的 45 度檢視像一張傾斜的地圖。先在本地旋轉參考圖再重新生成,才獲得了可信的視角。

專案提示詞

text
Strict layout reference: image[1]. Keep every road, block, building footprint, lot, park,
parking lot, tree and the oval outline exactly as in image[1]. North up. Add, remove, move or
resize nothing. Only restyle it as a finished top-down orthographic illustration of a quiet
mid-1980s American small town in autumn.

[...town contents: main street, roundabout and statue, twelve shops seen as flat roofs only,
all facing the main street, houses, parks, parking lots, red ash trees, a water tower...]

Style: stylized non-photorealistic game environment, simple hard-edged geometry, flat slightly
exaggerated colors, light weathering, no grime. Warm late-afternoon sun from the west.

No vehicles, people, text, lettering, flags, or national or religious symbols. The statue has no face.

根據最終平面圖和鳥瞰圖,Claude 列出資產清單,將 Tripo 模型與 Godot 內製作的物體分開。透過面數分級,大約三十張概念圖和三十個模型得以控制在預算內。

專案提示詞

text
The town concept art is done. Using the final plan (v6), list every asset we need, split into
"generate with Tripo" and "build in the engine". Then write a concept-image prompt for each
Tripo asset in design/asset_prompts.md.
- Shops on Main St should vary more, with clearly different heights, so the opening walk has
  an interesting skyline.
- Split scene assets into tiers (S / A / B / C) by importance and size, give each tier a model
  and a triangle budget (hard cap 10,000 per asset), and estimate the total for the scene.
小鎮的鳥瞰風格參考圖。
小鎮的鳥瞰風格參考圖。

3. 製作其餘資產前,先驗證一個原型

3.1 測試一棟有代表性的建築

我先用一家超市測試流水線,檢查視覺風格、作為建模參考的適用性,以及應該選擇的 Tripo 模型系列。

  • 概念圖是否符合小鎮的視覺方向?
  • 圖片是否提供了乾淨明確的建模參考?
  • 哪個 Tripo 模型系列能生成合適的幾何結構?

第一張圖裡有可見的貨架、烘焙進去的暖光、像品牌產品的自動售貨機,以及過大的地基。

我更新了共用規則:用木板封住窗戶、關閉燈光、使用中性白光參考照明,並讓地基與牆面齊平。

專案提示詞

text
Use image[1] only as a reference for color palette, materials and rendering style. Do not copy
its content or camera.

A single isolated one-story small-town supermarket from the mid-1980s: a wide, low box about
16 meters wide, 14 meters deep and 5 meters tall. The front is a long row of large plate-glass
windows with a pair of glass doors in the middle, under a flat red-and-white striped metal awning.
Above the awning, a tall flat sign panel runs the full width of the roofline, painted with bold
color bands and a simple shopping-cart pictogram, no letters. Pale yellow painted brick walls,
a flat roof with two boxy rooftop AC units. A plain red vending machine stands beside the doors.
All windows and glass doors are boarded up with weathered wooden planks, so no interior is
visible. All lights, signs and neon tubes are switched off. The building sits on a thin flat
concrete slab exactly the size of its footprint, flush with the walls on every side.

Three-quarter front view from slightly above, the whole building in frame, centered on a plain
light gray background, neutral white daylight with soft even lighting and no warm tint, no cast
shadows, no ground beyond the slab.

Style: simplified realism with hard-edged, clean forms, mid-1980s American, slightly saturated
comic-book colors, light weathering, no grime.

No text, no letters, no logos, no flags, no national or religious symbols, no people, no vehicles
第一版 MART 概念圖。
第一版 MART 概念圖。
修改後的 MART 概念圖。
修改後的 MART 概念圖。

3.2 擴大製作規模前比較模型系列

使用相同超市圖片並控制面數限制時,P 系列生成的硬邊更乾淨;H 系列的三角面分布更均勻,表面更柔和。

在這款遊戲中,我選擇:

  • 建築、車輛和道具使用 P1,發揮其乾淨硬表面的優勢。
  • 雕像、漂浮地塊等有機形態使用 H v3.1。
  • 男孩使用 P2,因為角色繫結需要乾淨的拓撲。

這是針對本遊戲做出的選擇,並非通用的模型排名。

在 Godot 中比較 H 系列與 P 系列 MART 模型。
在 Godot 中比較 H 系列與 P 系列 MART 模型。

專案提示詞

text
The current models are all clean and fairly flat. For performance, would P1 suit the buildings
better than H3.1? Run a comparison: generate MART with P1 at 4000 faces and with H v3.1 at
6000 faces, import both into a test folder, and render them side by side from the storefront,
front, corner and top views (shaded and wireframe). Then tell me which one to use and why.

3.3 生成剩餘場景資產

原型透過檢查後,我生成了其餘資產。每項資產都有類別、資料夾、模型預設和麵數預算。

這次批次製作設有三項檢查:

專案提示詞

text
Generate concept images for all remaining scene assets the same way as MART, using the prompts
in design/asset_prompts.md and cpt/town_birdseye.png as the style reference.
Check balance first. Save each image under cpt/assets/<category>/.
Check every image against the checklist in asset_prompts.md (single object, clean background,
no text or symbols, matches the bird's-eye style, no thin fragile parts).
Retry failed tasks individually; never rerun the whole batch.
Record progress in design/batch_checkpoint.md so we can resume if we stop halfway.
When done, list what succeeded, what failed and what needs my review.
  • 檢查每張圖片:單一物體、乾淨背景、無意外文字,也沒有脆弱部件。
  • 只單獨重試失敗的任務。
  • 在檢查點檔案中記錄進度。

我單獨重新生成了失敗項:後牆有洞的加油站、缺失的水塔,以及幾何結構鬆散的超市。

專案提示詞

text
node tools/tripo/tripo.mjs model cpt/assets/town/mart.png --preset tier_a --face-limit 4000 --out models/town/mart.glb
場景資產概念圖。
場景資產概念圖。

3.4 單獨製作角色

男孩需要概念圖、建模、繫結檢查、繫結和動畫重定向。我把圍巾單獨處理,避免不需要的蒙皮權重,並保留抓取和封印動作。

專案提示詞

text
A full-body cartoon-style boy in a standard T-pose, arms extended horizontally, legs straight. He wears a gray hoodie with the hood up. His face is shrouded in shadow, eyes hidden, with only his mouth and grayish-brown bangs visible. He has a long red scarf wrapped around his neck, with both hanging ends draped down behind his back, not in front. He wears dark blue denim shorts ending above the knee so his knees are exposed, with buttoned flap pockets on both the left and right sides. He wears oversized yellow sneakers and has relatively thin legs. Cartoon character design, clean 3D model.

我先執行免費繫結檢查。動畫清單包括待機、行走、奔跑、跳躍、下落、投擲、彈反、圍巾躍遷、受擊、戰敗、封印和勝利。一次重定向超過五個動畫會失敗,因此我分成三個較小的任務,再到 Godot 中合併。

專案提示詞

text
The boy model is ready at models/boy/boy_body.glb. Rig it and add the animations the demo
needs. Run the free rig check first. List the animations you plan to use, mapped to Tripo
presets, before generating anything.

批次製作前,我手動檢查角色各檢視,確認沒有手部映象或把頭髮誤認成墨鏡的問題。

建模和繫結前的男孩角色概念圖。
建模和繫結前的男孩角色概念圖。

3.5 規範匯入和品質檢查

匯入步驟為看起來過於柔軟的牆面新增加權法線和硬邊。貼圖大小限制隨資產而變化,男孩、圍巾、雕像和樹木採用例外設定。

將模型從測試目錄移入可玩場景前,我檢查了比例、朝向、牆面、屋頂和多餘符號。正式資產必須做到報告中零問題。

專案提示詞

text
When I inspect the models, the normals are smoothed across every edge, so flat walls look soft
and cheap. I want something like Blender's Weighted Normal modifier.
Write a Godot import hook that recomputes weighted normals on import (area-weighted, edges
sharper than 30 degrees become hard edges, keep the normal map), plus a setup script that
attaches the hook to a list of GLBs and limits texture size (4K, or 2K for small assets) with
VRAM compression. Don't apply it to the boy, the scarf, the statue or trees.
Render before/after comparisons so I can judge the result.

4. 分層搭建演示

4.1 從玩法灰盒開始

Godot 工具指令碼讀取小鎮 JSON,搭建可玩的灰盒,包括帶碰撞的彩色方塊、地面、出生點和漂浮佈局。資料變化後,透過檢視器控制元件和命令列指令碼重新構建。

隨後,Swap In Models 將方塊替換為同位置的 Tripo 資產。兩個版本使用相同的佈局資料。

商店組成可攀爬的螺旋,住宅留在背景中。一份報告檢查重疊、頭頂空間、屋頂間距和平臺可達性。

玩法灰盒。
玩法灰盒。
相同佈局替換為 Tripo 模型後的效果。
相同佈局替換為 Tripo 模型後的效果。

專案提示詞

text
Build a gameplay-only blockout:
- Export the town plan as JSON (gen_town_svg.mjs --json) and write an @tool script
  (Scripts/town/town_builder.gd) that reads it and generates the ground, a colored box with
  collision for every shop and house (heights from the design doc), and the player spawn at
  the west entrance.
- Add inspector buttons: Build Town, Preview Tree, Reset To Ground, Swap In Models.
- Also add a command-line build script so you can rebuild the scene headless.
- Swap In Models replaces each box with res://Assets/Models/<model>.glb, scaled to the lot
  and rotated to face the street, keeping the position.
Show me screenshots from the street and from above.

4.2 新增移動與程式化圍巾

控制器具有地面、空中、懸浮和圍巾躍遷狀態。開放的設定項和冒煙測試幫助調整並檢查每個動作。

專案提示詞

text
Start the player controller in the blockout scene. Use the rigged boy model directly, no capsule
placeholder.
- CharacterBody3D with states: ground, air, hover (hold jump midair, drains scarf energy), scarf leap.
- Third-person over-the-shoulder camera, keyboard + mouse and gamepad input maps.
- AnimationTree state machine built by a generator script (Scripts/tools/build_player_scene.gd),
  not by hand in the editor.
- All feel parameters exported so I can tune them in the inspector.
- An automated smoke test that spawns the player, runs, jumps, hovers and scarf leap, and saves
  screenshots.

建模出來的頸部圍巾顯得太僵硬,所以我改用程式碼生成圍巾繞頸部分和尾部。同一條尾部能夠垂落、伸出、抓取、纏繞雕像和鬆開,無需分別製作模型或動畫。

第一版圍巾因三角面繞序和法線翻轉而看起來內外顛倒。Claude 修復了網格,並把原因記錄到 CLAUDE.md。

專案提示詞

text
The neck scarf looks too stiff. Try generating it procedurally instead of using the Tripo model:
- ScarfWrap: three thick, soft knitted loops around the neck, rebuilt every frame from the neck,
  head and spine bones, pushed out by capsules on the head, neck, chest and upper arms, fuller at
  the back so it fills the gap between the hood and the shoulders, with a little spring lag.
- ScarfTail: a Verlet chain hanging from the knot at the back, with thickness, stiff enough not
  to stretch, colliding with body capsules. Reaching out to grab props, hanging from anchors and
  wrapping the statue all use the same tail (reach(point) / release()).
- Both share one wool material with the red knit texture and a soft sheen at grazing angles.
Keep the per-frame cost low and tell me the measured time.
在 Godot 中檢查程式化圍巾繞頸效果。
在 Godot 中檢查程式化圍巾繞頸效果。

4.3 讓圍巾躍遷具有明確方向感

最初的圍巾躍遷像抓鉤一樣擺盪。我將其改為朝選定落點加速,並用紅色光暈、塵土、拖尾和落地脈衝,讓運動過程更清晰。

早期位於遮陽棚上的目標點可能讓男孩穿過建築或卡住。我加入了落點和飛行路徑檢查。有效目標必須:

  • 位於真實的屋頂邊緣;
  • 上方有足夠淨空;
  • 留出讓角色站立的空間;
  • 飛行路徑不會穿過目標建築。

一份報告從十二個方向檢查每棟建築,並要求無效抓取點數量為零。

專案提示詞

text
Change how the scarf leap feels. Right now it swings like Spider-Man. Instead, the boy knows wherehe's going and moves straight to the target. While moving, rotate his model so his feet point at the target, as if his feet were pulling his whole body toward it.
Drop the scarf from the scarf leapand sell the power with effects: a red aura when the scarf leapstarts, a puff of dust and a small energy pulse at the start point, a trail along a small arc,then the aura fades on landing with a small shockwave at the contact point.
The speed is not constant: a little slow at first, then accelerating hard, never slowing down until it arrives.
最終朝屋頂邊緣躍遷的圍巾躍遷。
最終朝屋頂邊緣躍遷的圍巾躍遷。

4.4 串聯 Boss 戰

完整流程包括主選單、開場、小鎮升空、檢查點、三段血量的 Boss 戰和結局。

雕像投擲物體,其中發光物體可以彈反。彈反會讓護盾開啟約七秒。後續攻擊加入扇形齊射和流星般墜落的汽車,同時透過可見性檢查阻止投擲穿過建築。

專案提示詞

text
Finish all playable content for a first complete version:
- A basic main menu, pause menu and ending screen with buttons.
- The intro: "The Oval Town" title card; when the player enters the plaza, the statue shakes,
  lifts off its pedestal, a "The Statue" title card, then a shockwave pushes the boy back along the ground. Buildings fly up into the spiral tree. One checkpoint at the end of this sequence.
- The boss fight: shield, parry window about 0.25 s, about 7 s exposed window, damage only from
  throws while exposed, 3 health segments, attacks unlocked by remaining health: single throw,
  fan volley (only the glowing one can be parried), car meteor shower.
- Sealing: when its health reaches 0, a scarf leap point appears on the statue; scarf leap to it and
  press the seal button repeatedly.
- A full-flow automated test that plays the whole game with a real parry, three rounds of throws,
  a death and restart, the seal and the ending, saving screenshots at each stage.
Show me the plan first, then build it.

血量歸零時,雕像上會出現圍巾躍遷目標點。玩家反覆按下封印鍵來填滿圓環;停止按鍵則會回落。

雕像的護盾處於啟用狀態。
雕像的護盾處於啟用狀態。
成功彈反後,傷害視窗開啟。
成功彈反後,傷害視窗開啟。

5. 潤色、測試與匯出

5.1 新增場景視覺處理

戰鬥正常運作後,我加入地面細節、草、樹木、燈光、後期處理和特效。一個柔和的疊加著色器,讓光暈、圓環、投射物和拖尾擁有統一外觀。

專案提示詞

text
Polish: add the final details to the rest of the town based on the concept art (streets, parks,lane markings and so on). If details are missing or unclear, generate reference images of parts of the town first.
Street layout and lane markings should be as plausible as possible; use Tripo to generate textures if needed. The road surfaces must never flicker.
Add NPR style procedural grass on the lawns.

我從玩家鏡頭檢查變化,尋找道路閃爍、門口被擋和路燈錯位的問題。

專案提示詞

text
Render with ACES tone mapping. Add post-processing: bloom, ambient occlusion, SSIL, depth of
field, film grain, motion blur, chromatic aberration, FXAA, and an FSR 2 option, all in an
Options menu. Bloom, AO, SSIL and DOF have Off / Low / Medium / High; FSR 2 has Off / Native AA /
Quality / Balanced / Performance; motion blur, chromatic aberration and film grain are toggles.
Also add VSync and resolution.
The film grain should closely emulate Super 8 film. Godot has no built-in film grain or motion
blur, so implement them as Compositor effects.
潤色前的主街。
潤色前的主街。
潤色後的主街。
潤色後的主街。

5.2 新增音訊和介面反饋

我先使用合成音訊,之後將大部分替換為標明來源的 CC0 音樂和音效。沒有合適片段的地方仍保留合成聲音。

專案提示詞

text
Find CC0 music and sound effects to replace the synthesized ones. Music should be synthwave /
analog synth. Prefer less popular sources so the game feels unique. Where nothing fits, keep
the synthesized sound. Verify the license on every page and generate a credits file.

HUD 顯示與當前情境對應的操作提示,直到玩家實際使用該動作。第一次發光投擲物出現時,時間短暫放慢,用於教會玩家彈反。

專案提示詞

text
Add interactive hints the first time each move is needed (move, jump, hover, dash, rush, Scarf Leap, grab, throw, parry), for a more explicit and intuitive guide to the controls. Each hint stays until the player actually does the move, then it is ticked off.
鍵盤和手柄的首次操作提示。
鍵盤和手柄的首次操作提示。

5.3 執行完整迴歸檢查

匯出前,Claude 重新構建場景、執行報告,並從選單玩到結局,涵蓋真實彈反、死亡與重開、封印和截圖。

專案提示詞

text
Before we export, do a full pass:
1. Rerun every generator in order (build_blockout --float --swap, build_player_scene,
   build_game) and make sure the main scene is the main menu.
2. Run every report (tree_report, grapple_point_report, street_report, lamp_probe,
   audio_probe, skin_gap_report) and both automated tests. Everything must pass.
3. Play the game through MCP from the main menu to the ending, take screenshots at each stage
   and read the game log for errors and warnings.
Report: what passed, what failed, and anything I should check by hand.

完整試玩發現了朝向錯誤、特效缺失,以及移動或時序變化後的檢查點重置問題。

專案提示詞

text
Generate an icon for the game: a wrapped red scarf, vector minimalist style, white background.
Use it as the game app's icon. On the main menu, add a version number based on the date
(like "build 261019.1") in the top right corner.

第一次 Windows 匯出大小為 1.15 GB,主要是貼圖。刪除未用資產和舊模型,並採用佔用更小的法線貼圖壓縮後,體積降至 755.5 MB。

專案提示詞

text
Export a Windows build of the game. Set up a Windows Desktop export preset for the_red_scarf (embed the PCK, the game icon, product name "The Red Scarf"). Check that the export templates for Godot 4.7.2 are installed; if not, tell me how to install them instead of guessing.
Exclude test scenes, test scripts and Assets/Models/_test/. Write a script that sets the build number and exports, run the exported exe once, and report the build size and any errors.

專案提示詞

text
The game is over 1 GB. Can we reduce its storage size? First find out what takes the space.

https://cdn-blog.holymolly.ai/media/production/the-red-scarf-claude-code-tripo-godot-the-red-scarf-final-gameplay-and-windows-build-demonstration-video-0c0497c40997.mp4

下一次專案中我會沿用什麼

我會重複採用的流程是:

  1. 描述預期結果。
  2. 製作一個小原型。
  3. 在真實執行環境中檢查。
  4. 將每個反覆出現的問題變成規則或報告。
  5. 最後再擴大規模。

我會繼續使用同樣的方法:小鎮佈局只有一個資料來源,資產批次有檢查點,圍巾躍遷有幾何規則,再加上完整的 Boss 戰測試。

製作類似演示時,先從一個角色、一條路線和一個敵人開始。批次製作前測試代表性資產,並把反覆遇到的問題轉化成可重複執行的檢查。

Tripo Studio

把教程裡的方法,變成你的作品

打開 Tripo Studio,親手嘗試本篇教程中的創作流程。

這篇教學對你有幫助嗎?

協助我們持續改善內容。