The Red Scarf: ein 3D-Spiel mit Claude Code, Tripo und Godot

The Red Scarf: ein 3D-Spiel mit Claude Code, Tripo und Godot

Erstelle einen spielbaren 3D-Bosskampf in Godot 4 mit Claude Code, Tripo CLI und einem Godot-MCP-Server: KI-generierte 3D-Ressourcen, GLB-Import, Spielprogrammierung, Tests und Optimierung.

Louis Li
FortgeschrittenSonstige

Am Anfang standen ein Junge mit rotem Schal und eine verlassene amerikanische Kleinstadt der 1980er-Jahre. Eine gesichtslose Statue reißt die Gebäude in den Himmel. Aus dieser Idee wurde eine spielbare Third-Person-Action-Demo in Godot.

Claude half beim Planen, Programmieren und Testen; Tripo lieferte Konzeptbilder, Modelle, Skelettaufbau und Animationen. Ich leitete das Projekt und prüfte das zusammengesetzte Spiel in Godot.

Dieses Tutorial zeigt einen vollständigen Ablauf zur KI-gestützten 3D-Spielentwicklung: Claude plant und schreibt GDScript, Tripo CLI erzeugt spielfertige 3D-Ressourcen, und Godot MCP lässt Claude das Godot-Projekt untersuchen, ausführen und debuggen.

Projektkonfiguration

  • Engine: Godot 4.7.2, Forward+
  • KI-Programmierassistent: Claude Code
  • Bilderzeugung: Tripo-Bilderzeugung
  • 3D-Erzeugung: Modelle der P- und H-Serie von Tripo
  • Projekt: The Red Scarf, eine kurze Third-Person-Demo mit Bosskampf
The Red Scarf: der spielbare Bosskampf.
The Red Scarf: der spielbare Bosskampf.

So spielt sich die fertige Demo

Der Junge betritt die Stadt über die Main Street. Auf dem Platz setzt eine gesichtslose Statue eine Schockwelle frei und zieht die Gebäude spiralförmig um sich herum.

Der Spieler erklimmt die schwebenden Geschäfte durch Springen, Schweben und Schalsprünge. Das Parieren eines leuchtenden Projektils durchbricht kurz den Schild der Statue; geworfene Gegenstände aus der Umgebung verursachen Schaden. Nach drei Runden kann der Junge die Statue erreichen und versiegeln.

1. Werkzeuge und Projekt einrichten

1.1 Claude Code ein Projektgedächtnis geben

Ich hielt das Godot-Projekt, die Entwurfsdokumente, Konzepte, Tripo-Modelle und Skripte zusammen. Im Stammverzeichnis hielt CLAUDE.md die Regeln fest, die Claude Code über mehrere Sitzungen hinweg befolgen sollte.

Die Datei enthielt die Grundlagen:

  • Spiel, Ton und visuelle Richtung beschreiben.
  • Ressourcenregeln auflisten, etwa einheitlicher Stil und keine unerwünschten Symbole oder Texte.
  • Vor großen Änderungen einen Plan verlangen.
  • Einen Verlauf der Prompts führen.
  • Wiederkehrende Stolperfallen und Projektkonventionen bei ihrer Entdeckung festhalten.

Ich ergänzte dieselbe Datei um wiederkehrende Korrekturen: Umlaufrichtung der Mesh-Dreiecke, Modellausrichtung, Animationsnamen und Zielregeln für Schalsprünge. Spätere Sitzungen konnten sie wiederverwenden.

1.2 Tripo CLI für 3D-Spielressourcen mit Claude Code verbinden

Um 3D-Spielressourcen über die Befehlszeile zu erzeugen, bat ich Claude, Tripo CLI zu installieren und einzurichten. Dadurch wurde der Tripo-Ressourcenprozess wiederholbar und innerhalb des Godot-Projekts leichter automatisierbar.

Projekt-Prompt

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

1.3 Einen Godot-MCP-Server für Claude Code einrichten

Claude Code konnte textbasierte Godot-Szenen und GDScript direkt bearbeiten. Ein über das Model Context Protocol verbundener Godot-MCP-Server erlaubte ihm, das Spiel auszuführen, Screenshots aufzunehmen, Protokolle zu prüfen und Eingaben zu simulieren. So wurde der Assistent zu einem praktischen Entwicklungswerkzeug für Godot 4.

Ich überprüfte die Verbindung, indem ich Claude nach der geöffneten Szene und dem Knotenbaum fragte und anschließend MCP-Port und Projekt mit meiner Konfiguration abglich.

Kontrollpunkt im Ablauf: Claude Code übernimmt Planung und Code, Tripo CLI die Erzeugung von 3D-Ressourcen aus Text und Godot MCP die Untersuchung von Editor und Laufzeit. Diese Rollen zu trennen erleichtert die Fehlerdiagnose.

Projekt-Prompt

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. Die Idee auf ein testbares Spiel reduzieren

2.1 Den Entwurf schreiben und dann kürzen

Claudes erster Entwurf umfasste die Stadt, Bewegung, Bossangriffe und den Levelablauf, enthielt für eine kurze Demo aber zu viele Phasen und Schalfähigkeiten.

Projekt-Prompt

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.

Ich kürzte ihn auf den kleinsten Ablauf, der sich noch wie dieses Spiel anfühlte:

Projekt-Prompt

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.

Ich reduzierte den Kampf auf eine Bossphase: parieren, um den Schild zu brechen, während des verwundbaren Zeitfensters Gegenstände werfen und die schwebende Stadt als Bewegungsherausforderung nutzen. Jede verbleibende Aktion musste diesem Ablauf dienen.

2.2 Die Stadt aus Daten aufbauen

Claude schrieb ein Node-Skript, um ein parametrisiertes SVG der ovalen Stadt zu erzeugen: Main Street, zwölf Geschäfte, Wohnstraßen, Parks, Parkplätze und ein Platz.

Dasselbe Skript exportierte JSON für Godots Blockprototyp, Gebäude, Straßen, Lampen und Bäume. Konzeptgrafiken und spielbarer Level nutzten dadurch denselben Grundriss.

Ich änderte jeweils nur einen Parameter, etwa Parkplatzgröße, Hinterhoftiefe oder Ladeneingänge, damit sich jede Änderung leicht prüfen ließ.

Projekt-Prompt

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.
Der parametrisierte Stadtplan als Quelle für den Grundriss.
Der parametrisierte Stadtplan als Quelle für den Grundriss.

2.3 Eine visuelle Richtung festlegen

Ich nutzte den Grundriss als strikte Referenz für eine Illustration von oben und behielt Straßen, Grundstücke, Gebäudegrundflächen, Bäume und den Stadtumriss bei.

Die erste 45-Grad-Ansicht sah wie eine gekippte Karte aus. Die Referenz vor der erneuten Erzeugung lokal zu drehen ergab einen überzeugenden Blickwinkel.

Projekt-Prompt

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.

Anhand des endgültigen Plans und der Vogelperspektive erstellte Claude die Ressourcenliste und trennte Tripo-Modelle von in Godot gebauten Objekten. Polygonbudget-Stufen hielten etwa dreißig Konzepte und dreißig Modelle innerhalb des Budgets.

Projekt-Prompt

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.
Die Stilreferenz der Stadt aus der Vogelperspektive.
Die Stilreferenz der Stadt aus der Vogelperspektive.

3. Eine Ressource prototypisieren, bevor die übrigen entstehen

3.1 Ein repräsentatives Gebäude testen

Ich testete den Ablauf zunächst an einem Supermarkt und prüfte den visuellen Stil, die Eignung als Modellierungsreferenz und die passende Tripo-Modellfamilie.

  • Passt das Konzeptbild zur visuellen Richtung der Stadt?
  • Liefert das Bild eine saubere Modellierungsreferenz?
  • Welche Tripo-Modellfamilie erzeugt die passende Geometrie?

Das erste Bild zeigte sichtbare Regale, fest eingerechnetes warmes Licht, einen markenähnlichen Verkaufsautomaten und ein zu großes Fundament.

Ich aktualisierte die gemeinsamen Regeln: Fenster vernageln, Beleuchtung ausschalten, neutrales weißes Referenzlicht nutzen und Fundamente bündig mit den Wänden halten.

Projekt-Prompt

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
Erstes MART-Konzept.
Erstes MART-Konzept.
Überarbeitetes MART-Konzept.
Überarbeitetes MART-Konzept.

3.2 Vor der Skalierung Modellfamilien vergleichen

Bei demselben Supermarktbild und kontrollierten Flächenlimits erzeugte die P-Serie sauberere harte Kanten; die H-Serie hatte gleichmäßigere Dreiecke und weichere Oberflächen.

Für dieses Spiel wählte ich:

  • P1 für Gebäude, Fahrzeuge und Requisiten verwenden, die von klaren harten Oberflächen profitieren.
  • H v3.1 für organische Formen wie die Statue und schwebende Bodenstücke verwenden.
  • P2 für den Jungen verwenden, da die Figur eine saubere Topologie für den Skelettaufbau benötigte.

Das war eine Entscheidung für dieses Spiel und keine allgemeingültige Modellrangliste.

Vergleich der MART-Modelle aus H- und P-Serie in Godot.
Vergleich der MART-Modelle aus H- und P-Serie in Godot.

Projekt-Prompt

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 Die restlichen Szenenressourcen erzeugen

Nachdem der Prototyp die Prüfung bestanden hatte, erzeugte ich die übrigen Ressourcen. Jede hatte eine Kategorie, einen Ordner, eine Modellvorgabe und ein Flächenbudget.

Für den Stapel gab es drei Prüfungen:

Projekt-Prompt

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.
  • Jedes Bild auf ein einzelnes Objekt, sauberen Hintergrund, keine versehentlichen Texte und keine empfindlichen Teile prüfen.
  • Fehlgeschlagene Aufgaben einzeln wiederholen.
  • Den Fortschritt in einer Prüfpunktdatei festhalten.

Ich erzeugte einzelne Fehlerfälle neu: eine Tankstelle mit einem Loch in der Rückwand, einen fehlenden Wasserturm und lose Supermarktgeometrie.

Projekt-Prompt

text
node tools/tripo/tripo.mjs model cpt/assets/town/mart.png --preset tier_a --face-limit 4000 --out models/town/mart.glb
Konzeptbilder für die Szenenressourcen.
Konzeptbilder für die Szenenressourcen.

3.4 Die Figur separat erstellen

Der Junge brauchte Konzeptgrafiken, Modellierung, Skelettprüfung, Skelettaufbau und Animationsübertragung. Ich hielt den Schal getrennt, um unerwünschte Hautgewichtungen zu vermeiden und seine Greif- und Versiegelungsaktionen zu erhalten.

Projekt-Prompt

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.

Ich führte zuerst die kostenlose Skelettprüfung aus. Die Animationsliste umfasste Leerlauf, Gehen, Laufen, Springen, Fallen, Werfen, Parieren, Schalsprung, Treffer, Niederlage, Versiegeln und Sieg. Mehr als fünf Animationen auf einmal zu übertragen schlug fehl; deshalb verwendete ich drei kleinere Aufträge und kombinierte sie in Godot.

Projekt-Prompt

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.

Ich prüfte die Figurenansichten vor der Stapelverarbeitung manuell auf gespiegelte Hände und als Sonnenbrille fehlinterpretierte Haare.

Das Figurenkonzept des Jungen vor Modellierung und Skelettaufbau.
Das Figurenkonzept des Jungen vor Modellierung und Skelettaufbau.

3.5 Importe und Qualitätsprüfungen vereinheitlichen

Ein Importschritt ergänzte gewichtete Normalen und harte Kanten an Wänden, die zu weich wirkten. Texturlimits unterschieden sich je nach Ressource, mit Ausnahmen für Jungen, Schal, Statue und Bäume.

Ich prüfte Maßstab, Ausrichtung, Wände, Dächer und unerwünschte Symbole, bevor ich die Modelle aus dem Testverzeichnis in die spielbare Szene verschob. Produktionsressourcen mussten ohne gemeldete Probleme sein.

Projekt-Prompt

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. Die Demo schichtweise aufbauen

4.1 Mit einem spielbaren Blockprototyp beginnen

Ein Godot-Werkzeugskript las die Stadt-JSON und erstellte einen spielbaren Blockprototyp mit farbigen Kollisionskästen, Boden, Startpunkt und schwebender Anordnung. Inspektor-Steuerungen und ein Befehlszeilenskript bauten ihn nach Datenänderungen neu auf.

Swap In Models ersetzte anschließend die Kästen an denselben Positionen durch Tripo-Ressourcen. Beide Versionen verwendeten dieselben Grundrissdaten.

Die Geschäfte bildeten die erklimmbare Spirale, die Häuser blieben im Hintergrund. Ein Bericht prüfte Überschneidungen, Kopffreiheit, Dachabstände und die Erreichbarkeit der Plattformen.

Spielbarer Blockprototyp.
Spielbarer Blockprototyp.
Derselbe Grundriss mit Tripo-Modellen.
Derselbe Grundriss mit Tripo-Modellen.

Projekt-Prompt

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 Bewegung und den prozeduralen Schal ergänzen

Die Steuerung hatte Zustände für Boden, Luft, Schweben und Schalsprung. Offen zugängliche Einstellungen und ein grundlegender Funktionstest halfen, jede Bewegung abzustimmen und zu prüfen.

Projekt-Prompt

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.

Der modellierte Halswickel wirkte zu steif, deshalb erzeugte Code sowohl den Wickel als auch das Schalende. Dasselbe Ende konnte hängen, sich ausstrecken, greifen, die Statue umwickeln und loslassen, ohne separate Modelle oder Animationen.

Der erste Wickel sah wegen der Dreiecksumlaufrichtung und umgekehrter Normalen umgestülpt aus. Claude korrigierte das Mesh und hielt die Ursache in CLAUDE.md fest.

Projekt-Prompt

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.
Prüfungen des prozeduralen Halswickels in Godot.
Prüfungen des prozeduralen Halswickels in Godot.

4.3 Den Schalsprung zielgerichtet wirken lassen

Der erste Schalsprung schwang wie ein Enterhaken. Ich änderte ihn so, dass er zu einem gewählten Landepunkt beschleunigt. Eine rote Aura, Staub, eine Spur und ein Landepuls machten die Bewegung verständlich.

Frühe Ziele auf Vordächern konnten den Jungen durch ein Gebäude schicken oder einklemmen. Ich ergänzte Lande- und Flugwegprüfungen. Ein gültiges Ziel musste:

  • an einer echten Dachkante liegen;
  • darüber ausreichend freien Raum haben;
  • der Figur genügend Platz zum Stehen bieten;
  • einen Flugweg durch das Zielgebäude vermeiden.

Ein Bericht prüfte jedes Gebäude aus zwölf Richtungen und verlangte null ungültige Greifpunkte.

Projekt-Prompt

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.
Der endgültige Schalsprung zu einer Dachkante.
Der endgültige Schalsprung zu einer Dachkante.

4.4 Den Bosskampf verbinden

Der Ablauf umfasste Hauptmenü, Einführung, aufsteigende Stadt, Kontrollpunkt, Bosskampf mit drei Lebenssegmenten und Ende.

Die Statue warf Gegenstände, darunter einen leuchtenden, der pariert werden konnte. Eine Parade öffnete ihren Schild für etwa sieben Sekunden. Spätere Angriffe ergänzten eine Fächersalve und ein meteorartiges Auto; Sichtprüfungen verhinderten Würfe durch Gebäude.

Projekt-Prompt

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.

Bei null Lebenspunkten erschien an der Statue ein Schalsprungziel. Der Spieler drückte wiederholt Versiegeln, um einen Ring zu füllen; beim Aufhören sank der Füllstand.

Der Schild der Statue ist aktiv.
Der Schild der Statue ist aktiv.
Eine erfolgreiche Parade öffnet das Schadensfenster.
Eine erfolgreiche Parade öffnet das Schadensfenster.

5. Verfeinern, testen und exportieren

5.1 Die visuelle Szenengestaltung ergänzen

Nachdem der Kampf funktionierte, ergänzte ich Bodendetails, Gras, Bäume, Beleuchtung, Nachbearbeitung und Effekte. Ein weicher additiver Shader gab Aura, Ringen, Projektilen und Spuren ein einheitliches Aussehen.

Projekt-Prompt

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.

Ich prüfte Änderungen aus der Spielerkamera auf flackernde Straßen, versperrte Türen und falsch platzierte Lampen.

Projekt-Prompt

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.
Main Street vor der Verfeinerung.
Main Street vor der Verfeinerung.
Main Street nach der Verfeinerung.
Main Street nach der Verfeinerung.

5.2 Audio und Rückmeldungen der Oberfläche ergänzen

Ich begann mit synthetischem Audio und ersetzte den Großteil später durch mit Quellenangaben versehene CC0-Musik und -Effekte. Synthetische Klänge blieben dort, wo kein passender Ausschnitt geeignet war.

Projekt-Prompt

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.

Das HUD zeigte kontextabhängige Steuerungshinweise, bis der Spieler jede Bewegung verwendete. Der erste leuchtende Wurf verlangsamte kurz die Zeit, um das Parieren zu erklären.

Projekt-Prompt

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.
Anfängliche Steuerungshinweise für Tastatur und Gamepad.
Anfängliche Steuerungshinweise für Tastatur und Gamepad.

5.3 Die vollständige Regressionsprüfung ausführen

Vor dem Export baute Claude die Szenen neu auf, führte Berichte aus und spielte vom Menü bis zum Ende, einschließlich echter Parade, Tod und Neustart, Versiegelung und Screenshots.

Projekt-Prompt

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.

Der vollständige Durchlauf entdeckte Ausrichtungsfehler, fehlende Effekte und zurückgesetzte Kontrollpunkte nach Bewegungs- oder Timingänderungen.

Projekt-Prompt

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.

Der erste Windows-Export war 1.15 GB groß, größtenteils Texturen. Ungenutzte Ressourcen und alte Modelle zu entfernen und eine kompaktere Normalenkompression zu verwenden reduzierte ihn auf 755.5 MB.

Projekt-Prompt

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.

Projekt-Prompt

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

Was ich ins nächste Projekt mitnehmen würde

Diesen Ablauf würde ich wiederholen:

  1. Das gewünschte Ergebnis beschreiben.
  2. Einen kleinen Prototyp erstellen.
  3. Ihn in der tatsächlichen Laufzeit untersuchen.
  4. Jedes wiederkehrende Problem in eine Regel oder einen Bericht umwandeln.
  5. Erst dann die Produktion ausweiten.

Ich würde dasselbe Muster wiederverwenden: eine Quelle für den Stadtgrundriss, Wiederaufnahmepunkte für Ressourcenstapel, Geometrieregeln für den Schalsprung und einen vollständigen Bosskampftest.

Für eine ähnliche Demo sollte man mit einer Figur, einem Weg und einem Gegner beginnen. Eine repräsentative Ressource vor der Stapelerzeugung testen und wiederkehrende Probleme in wiederholbare Prüfungen umwandeln.

Tripo Studio

Setze dieses Tutorial in die Praxis um

Öffne Tripo Studio und probiere den Workflow aus diesem Tutorial selbst aus.

War dieses Tutorial hilfreich?

Hilf uns, diesen Inhalt zu verbessern.