The Red Scarf: un gioco 3D con Claude Code, Tripo e Godot

The Red Scarf: un gioco 3D con Claude Code, Tripo e Godot

Scopri come creare un combattimento 3D giocabile contro un boss in Godot 4 con Claude Code, Tripo CLI e un server Godot MCP: risorse 3D generate dall’IA, importazione GLB, programmazione, test e ottimizzazione.

Louis Li
AvanzatoAltro

Sono partito da un ragazzo con una sciarpa rossa e una cittadina americana deserta degli anni Ottanta. Una statua senza volto strappa gli edifici e li trascina in cielo. L’idea è diventata una demo d’azione giocabile in terza persona in Godot.

Claude ha aiutato a pianificare, programmare e testare; Tripo ha fornito immagini concettuali, modelli, rigging e animazioni. Io ho diretto il progetto e controllato il gioco assemblato in Godot.

Questo tutorial mostra un processo completo di sviluppo di giochi 3D assistito dall’IA: usare Claude per pianificare e scrivere GDScript, Tripo CLI per generare risorse 3D pronte per il gioco e Godot MCP per consentire a Claude di ispezionare, eseguire e correggere il progetto Godot.

Configurazione del progetto

  • Motore: Godot 4.7.2, Forward+
  • Assistente di programmazione IA: Claude Code
  • Generazione di immagini: generazione di immagini Tripo
  • Generazione 3D: modelli delle serie P e H di Tripo
  • Progetto: The Red Scarf, una breve demo di combattimento contro un boss in terza persona
The Red Scarf: il combattimento giocabile contro il boss.
The Red Scarf: il combattimento giocabile contro il boss.

Come si gioca la demo completata

Il ragazzo entra in città lungo Main Street. Nella piazza, una statua senza volto rilascia un’onda d’urto e attira gli edifici in una spirale intorno a sé.

Il giocatore risale i negozi fluttuanti saltando, librandosi e usando il salto della sciarpa. Parare un proiettile luminoso rompe brevemente lo scudo della statua; lanciarle oggetti vicini le infligge danni. Dopo tre round, il ragazzo può raggiungere e sigillare la statua.

1. Configurare strumenti e progetto

1.1 Dare a Claude Code una memoria del progetto

Ho tenuto insieme il progetto Godot, i documenti di progettazione, i concept, i modelli Tripo e gli script. Nella cartella principale, CLAUDE.md registrava le regole che Claude Code doveva seguire tra una sessione e l’altra.

Conteneva gli elementi essenziali:

  • Descrivere il gioco, il tono e la direzione visiva.
  • Elencare le regole per le risorse, come stile coerente e assenza di simboli o testi indesiderati.
  • Richiedere un piano prima delle modifiche importanti.
  • Conservare una cronologia dei prompt.
  • Registrare gli errori ricorrenti e le convenzioni del progetto man mano che emergono.

Ho aggiunto allo stesso file le correzioni ricorrenti: ordine dei vertici della mesh, orientamento dei modelli, nomi delle animazioni e regole dei bersagli del salto della sciarpa. Le sessioni successive potevano riutilizzarle.

1.2 Collegare Tripo CLI a Claude Code per le risorse del gioco 3D

Per generare risorse di gioco 3D dalla riga di comando, ho chiesto a Claude di installare e configurare Tripo CLI. Questo ha reso il processo di creazione delle risorse Tripo ripetibile e più facile da automatizzare nel progetto Godot.

Prompt del progetto

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

1.3 Configurare un server Godot MCP per Claude Code

Claude Code poteva modificare direttamente le scene Godot testuali e GDScript. Un server Godot MCP collegato tramite Model Context Protocol gli permetteva di eseguire il gioco, acquisire schermate, ispezionare i log e simulare input, trasformando l’assistente in uno strumento pratico di sviluppo per Godot 4.

Ho verificato la connessione chiedendo a Claude di indicare la scena aperta e l’albero dei nodi, quindi confrontando la porta MCP e il progetto con la mia configurazione.

Punto di controllo del processo: Claude Code gestisce pianificazione e codice, Tripo CLI genera risorse da testo a 3D e Godot MCP ispeziona editor ed esecuzione. Separare questi ruoli facilita la diagnosi degli errori.

Prompt del progetto

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. Ridurre l’idea a un gioco verificabile

2.1 Scrivere il progetto, poi ridurlo

Il primo progetto di Claude comprendeva la città, il movimento, gli attacchi del boss e lo svolgimento del livello, ma aveva troppe fasi e abilità della sciarpa per una demo breve.

Prompt del progetto

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.

L’ho ridotto al ciclo più piccolo che conservava l’identità del gioco:

Prompt del progetto

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.

Ho limitato il combattimento a una fase del boss: parare per rompere lo scudo, lanciare oggetti durante la finestra di vulnerabilità e usare la città fluttuante come sfida di movimento. Ogni mossa rimasta doveva servire questo ciclo.

2.2 Costruire la città a partire dai dati

Claude ha scritto uno script Node per generare un SVG parametrico della città ovale: Main Street, dodici negozi, strade residenziali, parchi, parcheggi e una piazza.

Lo stesso script esportava JSON per il prototipo a blocchi di Godot, edifici, strade, lampioni e alberi. Il concept artistico e il livello giocabile condividevano così la stessa disposizione.

Modificavo un parametro alla volta, come dimensioni dei parcheggi, profondità dei cortili o ingressi dei negozi, per controllare facilmente ogni cambiamento.

Prompt del progetto

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.
La pianta parametrica della città usata come fonte della disposizione.
La pianta parametrica della città usata come fonte della disposizione.

2.3 Definire una direzione visiva

Ho usato la disposizione come riferimento rigoroso per un’illustrazione dall’alto, mantenendo strade, lotti, ingombri degli edifici, alberi e contorno della città.

La prima vista a 45 gradi sembrava una mappa inclinata. Ruotare localmente il riferimento prima di rigenerarlo ha prodotto un’angolazione convincente.

Prompt del progetto

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.

Dalla pianta finale e dall’immagine a volo d’uccello, Claude ha elencato le risorse, separando i modelli Tripo dagli oggetti costruiti in Godot. Fasce di conteggio delle facce hanno mantenuto circa trenta concept e trenta modelli entro il budget.

Prompt del progetto

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.
Il riferimento stilistico della città a volo d’uccello.
Il riferimento stilistico della città a volo d’uccello.

3. Prototipare una risorsa prima di creare le altre

3.1 Provare un edificio rappresentativo

Ho provato prima il processo su un supermercato, controllando lo stile visivo, l’idoneità come riferimento di modellazione e la famiglia di modelli Tripo corretta.

  • L’immagine concettuale corrisponde alla direzione visiva della città?
  • L’immagine offre un riferimento di modellazione pulito?
  • Quale famiglia di modelli Tripo produce la geometria adatta?

La prima immagine aveva scaffali visibili, luce calda incorporata, un distributore che sembrava di marca e fondamenta sovradimensionate.

Ho aggiornato le regole comuni: chiudere le finestre con assi, spegnere le luci, usare illuminazione bianca neutra di riferimento e mantenere le fondamenta a filo dei muri.

Prompt del progetto

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
Primo concept di MART.
Primo concept di MART.
Concept rivisto di MART.
Concept rivisto di MART.

3.2 Confrontare le famiglie di modelli prima di ampliare la produzione

Con la stessa immagine del supermercato e limiti di facce controllati, la serie P produceva spigoli netti più puliti; la serie H aveva triangoli più uniformi e superfici più morbide.

Per questo gioco ho scelto:

  • Usare P1 per edifici, veicoli e oggetti che traggono vantaggio da superfici rigide ben definite.
  • Usare H v3.1 per forme organiche come la statua e i frammenti di terreno fluttuante.
  • Usare P2 per il ragazzo, perché il personaggio richiedeva una topologia pulita per il rigging.

Era una scelta per questo gioco, non una classifica universale dei modelli.

Confronto dei modelli MART delle serie H e P in Godot.
Confronto dei modelli MART delle serie H e P in Godot.

Prompt del progetto

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 Generare le restanti risorse della scena

Dopo l’approvazione del prototipo, ho generato le risorse rimanenti. Ciascuna aveva una categoria, cartella, preimpostazione del modello e budget di facce.

Il lotto prevedeva tre controlli:

Prompt del progetto

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.
  • Verificare che ogni immagine abbia un solo oggetto, uno sfondo pulito, nessun testo accidentale e nessuna parte fragile.
  • Riprovare singolarmente le attività fallite.
  • Registrare i progressi in un file di controllo.

Ho rigenerato i singoli casi falliti: una stazione di servizio con un buco nel muro posteriore, una torre dell’acqua mancante e geometria staccata nel supermercato.

Prompt del progetto

text
node tools/tripo/tripo.mjs model cpt/assets/town/mart.png --preset tier_a --face-limit 4000 --out models/town/mart.glb
Immagini concettuali delle risorse della scena.
Immagini concettuali delle risorse della scena.

3.4 Creare il personaggio separatamente

Il ragazzo richiedeva concept artistico, modellazione, controllo dello scheletro, rigging e trasferimento delle animazioni. Ho mantenuto separata la sciarpa per evitare pesi di deformazione indesiderati e preservare le sue azioni di presa e sigillo.

Prompt del progetto

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.

Ho eseguito prima il controllo gratuito dello scheletro. L’elenco delle animazioni includeva inattività, camminata, corsa, salto, caduta, lancio, parata, salto della sciarpa, colpo subito, sconfitta, sigillo e vittoria. Trasferirne più di cinque insieme non funzionava, così ho usato tre attività più piccole e le ho combinate in Godot.

Prompt del progetto

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.

Ho controllato manualmente le viste del personaggio per individuare mani specchiate e capelli scambiati per occhiali da sole prima di usarlo nel lotto.

Il concept del ragazzo prima della modellazione e del rigging.
Il concept del ragazzo prima della modellazione e del rigging.

3.5 Standardizzare importazioni e controlli di qualità

Una fase di importazione aggiungeva normali pesate e spigoli netti ai muri che sembravano troppo morbidi. I limiti delle texture variavano per risorsa, con eccezioni per ragazzo, sciarpa, statua e alberi.

Ho controllato scala, orientamento, muri, tetti e simboli estranei prima di spostare i modelli dalla cartella di prova alla scena giocabile. Le risorse di produzione dovevano avere zero problemi segnalati.

Prompt del progetto

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. Costruire la demo a strati

4.1 Iniziare con un prototipo a blocchi giocabile

Uno script strumento di Godot leggeva il JSON della città per costruire un prototipo giocabile con scatole di collisione colorate, terreno, punto di comparsa e disposizione fluttuante. I controlli nell’inspector e uno script da riga di comando lo ricostruivano dopo le modifiche ai dati.

Swap In Models sostituiva poi le scatole con risorse Tripo nelle stesse posizioni. Entrambe le versioni usavano gli stessi dati di disposizione.

I negozi formavano la spirale da scalare; le case restavano sullo sfondo. Un rapporto controllava sovrapposizioni, spazio sopra la testa, distanza tra tetti e raggiungibilità delle piattaforme.

Prototipo a blocchi giocabile.
Prototipo a blocchi giocabile.
La stessa disposizione con modelli Tripo.
La stessa disposizione con modelli Tripo.

Prompt del progetto

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 Aggiungere movimento e sciarpa procedurale

Il controller aveva stati a terra, in aria, sospeso e di salto della sciarpa. I parametri esposti e un test di funzionamento di base aiutavano a regolare e verificare ogni movimento.

Prompt del progetto

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.

La parte modellata intorno al collo sembrava troppo rigida, quindi il codice ha generato sia l’avvolgimento sia la coda. La stessa coda poteva pendere, allungarsi, afferrare, avvolgere la statua e rilasciare senza modelli o animazioni separati.

Il primo avvolgimento sembrava rovesciato per l’ordine dei vertici dei triangoli e le normali invertite. Claude ha corretto la mesh e registrato la causa in CLAUDE.md.

Prompt del progetto

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.
Controlli della sciarpa procedurale intorno al collo in Godot.
Controlli della sciarpa procedurale intorno al collo in Godot.

4.3 Rendere intenzionale il salto della sciarpa

Il primo salto della sciarpa oscillava come un rampino. L’ho modificato affinché accelerasse verso un punto di atterraggio scelto, con aura rossa, polvere, scia e impulso all’atterraggio per rendere leggibile il movimento.

I primi bersagli sulle pensiline potevano mandare il ragazzo attraverso un edificio o intrappolarlo. Ho aggiunto controlli di atterraggio e traiettoria. Un bersaglio valido doveva:

  • trovarsi su un bordo reale del tetto;
  • avere spazio libero sufficiente sopra di sé;
  • offrire spazio al personaggio per stare in piedi;
  • evitare una traiettoria che attraversasse l’edificio di destinazione.

Un rapporto controllava ogni edificio da dodici direzioni e richiedeva zero punti di aggancio non validi.

Prompt del progetto

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.
Il salto finale della sciarpa verso il bordo di un tetto.
Il salto finale della sciarpa verso il bordo di un tetto.

4.4 Collegare il combattimento contro il boss

Il percorso comprendeva menu principale, introduzione, città che si solleva, punto di controllo, combattimento contro il boss in tre segmenti e finale.

La statua lanciava oggetti, incluso uno luminoso che si poteva parare. Una parata apriva lo scudo per circa sette secondi. Gli attacchi successivi aggiungevano una raffica a ventaglio e un’auto simile a una meteora, mentre i controlli di visibilità impedivano lanci attraverso gli edifici.

Prompt del progetto

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.

A salute zero, appariva sulla statua un bersaglio per il salto della sciarpa. Il giocatore premeva ripetutamente sigilla per riempire un anello; fermarsi faceva calare il riempimento.

Lo scudo della statua è attivo.
Lo scudo della statua è attivo.
Una parata riuscita apre la finestra per infliggere danni.
Una parata riuscita apre la finestra per infliggere danni.

5. Rifinire, testare ed esportare

5.1 Aggiungere il trattamento visivo della scena

Quando il combattimento funzionava, ho aggiunto dettagli del terreno, erba, alberi, illuminazione, post-elaborazione ed effetti. Un unico shader additivo morbido dava un aspetto coerente ad aura, anelli, proiettili e scie.

Prompt del progetto

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.

Ho controllato le modifiche dalla telecamera del giocatore per individuare strade tremolanti, porte bloccate e lampioni fuori posto.

Prompt del progetto

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 prima della rifinitura.
Main Street prima della rifinitura.
Main Street dopo la rifinitura.
Main Street dopo la rifinitura.

5.2 Aggiungere audio e risposte dell’interfaccia

Ho iniziato con audio sintetizzato, poi ne ho sostituito gran parte con musica ed effetti CC0 accompagnati dai crediti. Ho mantenuto i suoni sintetizzati dove nessuna clip adatta funzionava.

Prompt del progetto

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.

L’HUD mostrava i comandi specifici del contesto finché il giocatore non usava ogni mossa. Il primo lancio luminoso rallentava brevemente il tempo per insegnare la parata.

Prompt del progetto

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.
Suggerimenti iniziali dei comandi per tastiera e controller.
Suggerimenti iniziali dei comandi per tastiera e controller.

5.3 Eseguire il controllo completo di regressione

Prima dell’esportazione, Claude ha ricostruito le scene, eseguito i rapporti e giocato dal menu al finale, includendo una parata reale, morte e riavvio, sigillo e schermate.

Prompt del progetto

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.

La partita completa ha rilevato errori di orientamento, effetti mancanti e azzeramenti del punto di controllo dopo modifiche al movimento o ai tempi.

Prompt del progetto

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.

La prima esportazione Windows occupava 1.15 GB, soprattutto texture. Rimuovere risorse inutilizzate e vecchi modelli e usare una compressione più compatta delle mappe delle normali ha ridotto il totale a 755.5 MB.

Prompt del progetto

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.

Prompt del progetto

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

Cosa porterei nel prossimo progetto

Il processo che ripeterei è:

  1. Descrivere il risultato desiderato.
  2. Creare un piccolo prototipo.
  3. Esaminarlo nell’esecuzione reale.
  4. Trasformare ogni problema ricorrente in una regola o un rapporto.
  5. Solo allora ampliare la produzione.

Riutilizzerei lo stesso schema: una fonte per la disposizione della città, punti di ripresa per i lotti di risorse, regole geometriche per il salto della sciarpa e un test completo del combattimento contro il boss.

Per una demo simile, inizia con un personaggio, un percorso e un nemico. Prova una risorsa rappresentativa prima di generare lotti e trasforma i problemi ricorrenti in controlli ripetibili.

Tripo Studio

Metti in pratica questo tutorial

Apri Tripo Studio e prova il flusso di lavoro che stai imparando qui.

Questo tutorial ti è stato utile?

Aiutaci a migliorare questo contenuto.