
本教學介紹結合 Claude Opus 5.5、Godot 和 Tripo CLI,製作可玩的 GTA 風格城市原型的實用流程。流程將玩法原型開發與 3D 資產製作分開:Claude 建構並測試 Godot 專案,Tripo 則生成角色、車輛和環境資產,之後再匯入場景。
你可以在網頁版 Tripo Studio 生成模型,也可以透過 Tripo Studio MCP 將 Claude Code 連接至你的 Studio 帳號,生成並處理 3D 資產;下文的批次流程則使用 Tripo CLI。
這種分工讓迭代更快、更可靠。你可以先用基本幾何體驗證城市配置和核心互動,再逐一以可用於製作的 GLB 資產替換佔位物件,無須重建整個專案。
這個流程能製作什麼

完成本教學後,你將取得一個 Godot 4 專案,可以執行具備以下功能的 GTA 風格濱海城市原型:
- 包含道路、隧道、高架結構和水岸區域的城市街道。車輛雙向循環行駛,玩家可以按
F進入並駕駛車輛。 - 使用 Tripo 從參考圖生成、完成綁骨並配有七個動畫的可操控角色。
- 按
V切換第三人稱與第一人稱視角,按T切換日夜環境。 - 圓形小地圖,以及顯示時間、生命值、護甲、金錢和通緝等級的 HUD。
為什麼結合使用 Tripo 和 Claude Opus 5.5?
兩種工具的職責互補。Claude Opus 5.5 透過 Godot MCP 連接 Godot,建立場景和 GDScript,執行專案並檢查結果,負責將遊戲構想變成可運作的原型。Tripo 負責資產製作:角色、車輛和道具都可以透過 Tripo CLI 生成 GLB 檔案,角色還可在同一流程中完成綁骨和動畫製作。
資產製作也可在 Tripo Studio 網頁版完成,或透過 Tripo Studio MCP 讓 Claude Code 使用你的 Studio 帳號執行;本教學的具體批次操作以 Tripo CLI 為例。
先使用基本幾何體,及早測試城市配置和玩法。原型運作正常後,在相同資源路徑下用 Tripo 資產替換佔位物件。如果某項資產生成任務失敗,可以單獨重試,不影響場景的其他部分。
開始之前
- 安裝生成工具: 執行
npm install -g tripo-cli安裝 Tripo CLI。本教學使用 CLI 批次生成資產。 如果選擇 Studio 流程,可直接在 Tripo Studio 網頁版製作資產,或依照 Tripo Studio MCP 指南 連接 Claude Code。 - 完成 Tripo 驗證: 執行
tripo login,在瀏覽器中完成授權。使用tripo whoami和tripo balance確認帳號與可用點數。請勿將 API 金鑰貼到聊天或專案檔案中。 - 準備 Godot 專案: 安裝 Godot 4,準備一張角色參考圖,並確保 Claude 可存取專案目錄。
- 連接 Godot MCP: Godot MCP 讓 Claude 連接 Godot 編輯器,建立節點、編輯場景並執行專案。安裝 Node.js 18 或更新版本後,在 Claude Code 中執行
claude mcp add godot -- npx @coding-solo/godot-mcp。使用其他 MCP 用戶端時,將npx @coding-solo/godot-mcp加入設定。在要求 Claude 修改場景前,確認 MCP 已連接 Godot。
步驟 1:使用 Claude 建構遊戲原型
首先讓 Claude Opus 5.5 僅使用 Godot 節點、基本幾何體、材質、燈光、相機和腳本,建構可執行的 GTA 風格濱海城市原型。此階段著重城市灰盒、道路、建築、隧道、高架道路、水岸、佔位車輛、日夜切換,以及第一、第三人稱相機控制。目標是在引入最終 3D 資產前驗證構圖與互動。
Inspect the current Godot project and build a runnable GTA-style coastal city prototype. Use only native Godot nodes and primitive geometry such as BoxMesh, PlaneMesh, and CylinderMesh, together with road meshes, collision bodies, materials, lights, cameras, and GDScript. Create walkable roads, buildings, elevated roads, tunnels, a waterfront and water surface, placeholder palm trees and street lamps, and simple placeholder vehicles. First complete an explorable city blockout with basic collision, a day/night toggle, and first-person/third-person camera switching. Run the project and verify that the overall scene and interactions match the reference image. Create all nodes, scripts, and scenes inside the Godot project. Save the scene as res://scenes/neon_coast.tscn and keep the structure ready for Tripo-generated GLB assets to replace nodes or resources at matching names and paths. Do not rebuild unrelated systems and do not generate or import final 3D models at this stage.
繼續之前先執行場景。確認玩家能在城市中移動、碰撞運作正確,相機與日夜控制正常,為資產和環境完善階段建立穩定的玩法基礎。
步驟 2:使用 Tripo CLI 生成並匯入 3D 資產
以下步驟示範使用 Tripo CLI 批次生成。如果你偏好 Studio,可在 Tripo Studio 網頁版分別製作角色、車輛和道具,或透過 Tripo Studio MCP 讓 Claude Code 使用你的 Studio 帳號生成及處理這些資產。將完成的 GLB 檔案匯出至 res://assets/tripo/,再進行相同的 Godot 檢查。
向 Claude 提供角色參考圖與資產清單,讓它批次提交 Tripo CLI 任務、等待完成並檢查每個結果。角色使用圖生 3D,再處理材質、綁骨和動畫。車輛與道具作為獨立資產生成。不要試圖用一張城市截圖生成整座城市;獨立資產更容易測試、替換和重試。
- 角色:
hero_male。 - 車輛:
car_sedan、car_sports和car_convertible。 - 道具:
hotel_facade、motel_sign、palm_tree和street_lamp。
Use Tripo CLI to prepare the assets for this Godot project. Generate hero_male from the provided character reference image, then complete its materials, rig, and these seven animations: idle, walk, run, sprint, jump_start, jump, and jump_land. Generate car_sedan, car_sports, car_convertible, hotel_facade, motel_sign, palm_tree, and street_lamp as separate assets. Save the task status, final model, and failure information for every item. Confirm that each final GLB exists, then organize the assets under matching directories in res://assets/tripo/. If a task fails, retry only that task instead of repeating the entire batch.
角色模型及動畫應由 Tripo 生成,一起存放在 hero_male 目錄中。如果使用 Tripo Studio 而非 CLI,也可參考 Tripo DCC Bridge for Godot,將資產直接傳入 Godot。
驗收檢查: 檢查每項任務的 CLI 狀態與最終 GLB。在 Godot 中預覽角色、轎車和棕櫚樹,檢查貼圖、比例與朝向,再逐一播放 hero_male 的全部七個動畫。
步驟 3:完善城市、交通與日夜效果
此階段先不要接入角色。以 CityStreetStylizedPack 環境為基礎,完善海灘與水面,放置 palm_tree、street_lamp、hotel_facade 和 motel_sign,加入 HOTEL DIXON、OCEAN DRIVE、JUICE CAFE、Vice Beach、BAR 和 BURGER 等招牌。
加入 car_sedan、car_sports 和 car_convertible,統一比例、朝向、車道、碰撞、車燈與雙向循環交通。在步驟 1 的日夜系統上完善兩套環境,保留 T 作為切換鍵。白天應保留道路與建築細節;夜晚則突出霓虹燈、霧、車燈和路面反射。
Complete the city in the neon_coast scene without connecting the character yet. Use CityStreetStylizedPack as the base environment. Add the waterfront and water surface, place palm_tree, street_lamp, hotel_facade, and motel_sign, and add signs for HOTEL DIXON, OCEAN DRIVE, JUICE CAFE, Vice Beach, BAR, and BURGER. Use car_sedan, car_sports, and car_convertible to create two-way looping traffic. Correct the vehicle scale, orientation, lane placement, collision, and headlights. Refine the existing T-controlled day/night environments: preserve road and building detail during the day, and emphasize neon, fog, headlights, and road reflections at night. Run the scene and check each part before connecting the character.
步驟 4:加入角色、相機與 HUD
城市與交通通過驗收後,再將 hero_male 作為帶有膠囊碰撞體的 CharacterBody3D 加入場景。接入步驟 2 生成的 idle、walk、run、sprint、jump_start、jump 和 jump_land 動畫,再校準腳部與地面的接觸。
將步驟 1 的相機改為跟隨角色的相機。使用第三人稱 SpringArm3D,讓玩家按 V 在第一、第三人稱間切換。角色靠近車輛時,按 F 應能進入車輛並駕駛。最後加入圓形小地圖,以及時間、生命值、護甲、金錢和通緝等級 HUD,並檢查日夜模式下的可讀性。



The city, roads, vehicles, and day/night environments are complete. Now connect res://assets/tripo/hero_male to the project. Add the character as a CharacterBody3D, calibrate the feet and capsule collision body, and connect the idle, walk, run, sprint, jump_start, jump, and jump_land animations. Use a third-person SpringArm3D that follows the character, and let V switch between first-person and third-person views. When the character is near a vehicle, pressing F should enter vehicle-driving mode. Add a circular minimap, a time display, health and armor bars, money, and a wanted-level HUD. Preserve the completed city, traffic, and day/night logic; do not rebuild the scene.

步驟 5:執行最終日夜驗收
執行 res://scenes/neon_coast.tscn,測試角色移動、跳躍、相機切換、車輛交通、按 F 上車、碰撞與日夜效果。比較最終白天與夜晚視圖,整體檢查角色、街道、HUD、燈光與反射。




最終檢查清單
- 專案可從
res://scenes/neon_coast.tscn開啟並執行。 - 角色能移動、跳躍,並在全部七個動畫間切換。
V切換相機視角,T切換環境。- 車輛雙向循環行駛,玩家可按
F上車。 - 匯入 GLB 的碰撞、比例、朝向、燈光與材質正確。
- 日夜場景中的小地圖與 HUD 均清晰可讀。
透過這個流程,Claude 可負責專案結構與玩法迭代,Tripo 則提供 3D 內容。最終得到一個模組化原型,便於檢查、測試,並擴充更多車輛、任務、角色和城市街區。



