The Red Scarf: jogo 3D com Claude Code, Tripo e Godot

The Red Scarf: jogo 3D com Claude Code, Tripo e Godot

Aprenda a criar um combate 3D jogável contra um chefe no Godot 4 com Claude Code, Tripo CLI e um servidor Godot MCP: recursos 3D gerados por IA, importação GLB, programação, testes e otimização.

Louis Li
AvançadoOutros

Comecei com um menino de cachecol vermelho e uma cidade americana deserta dos anos 1980. Uma estátua sem rosto arranca os edifícios e os leva para o céu. A ideia virou uma demo de ação em terceira pessoa jogável no Godot.

Claude ajudou a planejar, programar e testar; Tripo forneceu imagens conceituais, modelos, rigging e animação. Eu dirigi o projeto e revisei o jogo montado no Godot.

Este tutorial apresenta um fluxo completo de desenvolvimento de jogos 3D com auxílio de IA: usar Claude para planejar e escrever GDScript, Tripo CLI para gerar recursos 3D prontos para jogos e Godot MCP para permitir que Claude inspecione, execute e depure o projeto Godot.

Configuração do projeto

  • Motor: Godot 4.7.2, Forward+
  • Assistente de programação com IA: Claude Code
  • Geração de imagens: geração de imagens do Tripo
  • Geração 3D: modelos das séries P e H do Tripo
  • Projeto: The Red Scarf, uma breve demo de combate contra chefe em terceira pessoa
The Red Scarf: o combate jogável contra o chefe.
The Red Scarf: o combate jogável contra o chefe.

Como é jogar a demo finalizada

O menino entra na cidade pela Main Street. Na praça, uma estátua sem rosto libera uma onda de choque e puxa os prédios para uma espiral ao seu redor.

O jogador sobe pelas lojas flutuantes pulando, pairando e usando o salto de cachecol. Aparar um projétil luminoso rompe brevemente o escudo da estátua; arremessar objetos próximos causa dano. Após três rodadas, o menino pode alcançar e selar a estátua.

1. Configurar as ferramentas e o projeto

1.1 Dar ao Claude Code uma memória do projeto

Mantive juntos o projeto Godot, os documentos de design, os conceitos, os modelos Tripo e os scripts. Na raiz, CLAUDE.md registrava as regras que Claude Code deveria seguir entre sessões.

O arquivo cobria o essencial:

  • Descrever o jogo, o tom e a direção visual.
  • Listar regras dos recursos, como estilo consistente e ausência de símbolos ou textos indesejados.
  • Exigir um plano antes de mudanças grandes.
  • Manter um histórico de prompts.
  • Registrar problemas recorrentes e convenções do projeto conforme forem descobertos.

Adicionei ao mesmo arquivo as correções recorrentes: ordem dos vértices da malha, orientação dos modelos, nomes de animações e regras dos alvos do salto de cachecol. Sessões posteriores podiam reutilizá-las.

1.2 Conectar Tripo CLI ao Claude Code para criar recursos de jogos 3D

Para gerar recursos de jogos 3D pela linha de comando, pedi ao Claude que instalasse e configurasse Tripo CLI. Isso tornou o processo de recursos do Tripo repetível e mais fácil de automatizar dentro do projeto Godot.

Prompt do projeto

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

1.3 Configurar um servidor Godot MCP para Claude Code

Claude Code podia editar diretamente cenas Godot em texto e GDScript. Um servidor Godot MCP conectado pelo Model Context Protocol permitia executar o jogo, capturar telas, inspecionar logs e simular entradas, tornando o assistente uma ferramenta prática de desenvolvimento no Godot 4.

Verifiquei a conexão pedindo ao Claude que informasse a cena aberta e a árvore de nós, depois conferi a porta MCP e o projeto com minha configuração.

Ponto de verificação do fluxo: Claude Code cuida do planejamento e do código, Tripo CLI da geração de recursos de texto para 3D e Godot MCP da inspeção do editor e da execução. Separar essas funções facilita diagnosticar falhas.

Prompt do projeto

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. Reduzir a ideia a um jogo testável

2.1 Escrever o design e depois enxugá-lo

O primeiro design do Claude cobria a cidade, o movimento, os ataques do chefe e o fluxo do nível, mas tinha fases e habilidades de cachecol demais para uma demo curta.

Prompt do projeto

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.

Reduzi tudo ao menor ciclo que ainda mantinha a identidade do jogo:

Prompt do projeto

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.

Limitei o combate a uma fase do chefe: aparar para romper o escudo, arremessar objetos na janela de vulnerabilidade e usar a cidade flutuante como desafio de movimento. Cada movimento restante precisava servir a esse ciclo.

2.2 Construir a cidade a partir de dados

Claude escreveu um script Node para gerar um SVG parametrizado da cidade oval: Main Street, doze lojas, ruas residenciais, parques, estacionamentos e uma praça.

O mesmo script exportava JSON para o protótipo de blocos do Godot, prédios, ruas, postes e árvores. Assim, a arte conceitual e o nível jogável compartilhavam uma disposição.

Eu alterava um parâmetro por vez, como tamanho do estacionamento, profundidade dos quintais ou entradas das lojas, para facilitar a revisão de cada mudança.

Prompt do projeto

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.
O plano parametrizado da cidade usado como fonte da disposição.
O plano parametrizado da cidade usado como fonte da disposição.

2.3 Definir uma direção visual

Usei a disposição como referência rigorosa para uma ilustração vista de cima, preservando ruas, lotes, plantas dos edifícios, árvores e o contorno da cidade.

A primeira vista de 45 graus parecia um mapa inclinado. Girar a referência localmente antes de gerar novamente produziu um ângulo convincente.

Prompt do projeto

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.

A partir do plano final e da imagem aérea, Claude listou os recursos, separando modelos Tripo de objetos construídos no Godot. Faixas de contagem de faces mantiveram cerca de trinta conceitos e trinta modelos dentro do orçamento.

Prompt do projeto

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.
A referência de estilo da cidade vista de cima.
A referência de estilo da cidade vista de cima.

3. Prototipar um recurso antes de criar os demais

3.1 Testar um edifício representativo

Testei primeiro o fluxo em um supermercado, verificando o estilo visual, sua adequação como referência de modelagem e a família de modelos Tripo correta.

  • A imagem conceitual combina com a direção visual da cidade?
  • A imagem oferece uma referência de modelagem limpa?
  • Qual família de modelos Tripo produz a geometria correta?

A primeira imagem tinha prateleiras visíveis, luz quente incorporada, uma máquina de vendas parecida com uma marca e uma fundação grande demais.

Atualizei as regras compartilhadas: fechar as janelas com tábuas, apagar as luzes, usar iluminação de referência branca neutra e manter a fundação alinhada às paredes.

Prompt do projeto

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
Primeiro conceito do MART.
Primeiro conceito do MART.
Conceito revisado do MART.
Conceito revisado do MART.

3.2 Comparar famílias de modelos antes de ampliar a produção

Com a mesma imagem do supermercado e limites de faces controlados, a série P produziu arestas duras mais limpas; a série H tinha triângulos mais uniformes e superfícies mais suaves.

Para este jogo, escolhi:

  • Usar P1 em prédios, veículos e objetos que se beneficiam de superfícies duras bem definidas.
  • Usar H v3.1 em formas orgânicas, como a estátua e os pedaços de chão flutuantes.
  • Usar P2 no menino, pois o personagem precisava de topologia limpa para rigging.

Essa foi uma escolha para este jogo, não uma classificação universal dos modelos.

Comparação dos modelos MART das séries H e P no Godot.
Comparação dos modelos MART das séries H e P no Godot.

Prompt do projeto

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 Gerar os recursos restantes da cena

Depois de aprovar o protótipo, gerei os recursos restantes. Cada um tinha categoria, pasta, predefinição de modelo e orçamento de faces.

O lote tinha três verificações:

Prompt do projeto

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.
  • Conferir se cada imagem tem um único objeto, fundo limpo, nenhum texto acidental e nenhuma peça frágil.
  • Repetir individualmente as tarefas que falharam.
  • Registrar o progresso em um arquivo de controle.

Gerei novamente os casos com falha: um posto de gasolina com um buraco na parede traseira, uma torre de água ausente e geometria solta no supermercado.

Prompt do projeto

text
node tools/tripo/tripo.mjs model cpt/assets/town/mart.png --preset tier_a --face-limit 4000 --out models/town/mart.glb
Imagens conceituais dos recursos da cena.
Imagens conceituais dos recursos da cena.

3.4 Criar o personagem separadamente

O menino precisava de arte conceitual, modelagem, verificação do esqueleto, rigging e redirecionamento de animações. Mantive o cachecol separado para evitar pesos de pele indesejados e preservar as ações de agarrar e selar.

Prompt do projeto

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.

Executei primeiro a verificação gratuita do esqueleto. A lista de animações incluía repouso, caminhada, corrida, salto, queda, arremesso, aparar, salto de cachecol, receber golpe, derrota, selar e vitória. Redirecionar mais de cinco de uma vez falhou, então usei três tarefas menores e as combinei no Godot.

Prompt do projeto

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.

Revisei manualmente as vistas do personagem para detectar mãos espelhadas e cabelo confundido com óculos escuros antes de usá-lo no lote.

Conceito do menino antes da modelagem e do rigging.
Conceito do menino antes da modelagem e do rigging.

3.5 Padronizar importações e verificações de qualidade

Uma etapa de importação adicionou normais ponderadas e arestas duras às paredes que pareciam suaves demais. Os limites de textura variavam conforme o recurso, com exceções para o menino, o cachecol, a estátua e as árvores.

Verifiquei escala, orientação, paredes, telhados e símbolos soltos antes de mover os modelos do diretório de testes para a cena jogável. Os recursos de produção precisavam ter zero problemas relatados.

Prompt do projeto

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. Construir a demo em camadas

4.1 Começar com um protótipo de blocos jogável

Um script de ferramenta do Godot lia o JSON da cidade para construir um protótipo jogável com caixas de colisão coloridas, chão, ponto de surgimento e disposição flutuante. Controles do inspetor e um script de linha de comando o reconstruíam após mudanças nos dados.

Depois, Swap In Models substituía as caixas por recursos Tripo nas mesmas posições. Ambas as versões usavam os mesmos dados de disposição.

As lojas formavam a espiral escalável; as casas permaneciam ao fundo. Um relatório verificava sobreposições, altura livre, distância entre telhados e alcance das plataformas.

Protótipo de blocos jogável.
Protótipo de blocos jogável.
A mesma disposição com modelos Tripo.
A mesma disposição com modelos Tripo.

Prompt do projeto

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 Adicionar movimento e o cachecol procedural

O controlador tinha estados de chão, ar, flutuação e salto de cachecol. Parâmetros expostos e um teste básico de funcionamento ajudaram a ajustar e verificar cada movimento.

Prompt do projeto

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.

A parte modelada ao redor do pescoço parecia rígida demais, então o código gerou tanto a volta quanto a ponta. A mesma ponta podia pender, alcançar, agarrar, envolver a estátua e soltar, sem modelos ou animações separados.

A primeira volta parecia estar do avesso por causa da ordem dos vértices dos triângulos e das normais invertidas. Claude corrigiu a malha e registrou a causa em CLAUDE.md.

Prompt do projeto

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.
Verificações do cachecol procedural ao redor do pescoço no Godot.
Verificações do cachecol procedural ao redor do pescoço no Godot.

4.3 Dar intenção ao salto de cachecol

O primeiro salto de cachecol balançava como um gancho. Mudei para que acelerasse em direção a um ponto de pouso escolhido, com aura vermelha, poeira, rastro e pulso de aterrissagem para tornar o movimento legível.

Os primeiros alvos nos toldos podiam levar o menino através de um prédio ou prendê-lo. Adicionei verificações de pouso e trajetória. Um alvo válido precisava:

  • ficar em uma borda real do telhado;
  • ter espaço livre suficiente acima;
  • oferecer espaço para o personagem ficar em pé;
  • evitar uma trajetória que atravessasse o prédio de destino.

Um relatório verificava cada prédio de doze direções e exigia zero pontos de agarrar inválidos.

Prompt do projeto

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.
O salto de cachecol final em direção à borda de um telhado.
O salto de cachecol final em direção à borda de um telhado.

4.4 Conectar o combate contra o chefe

O percurso incluía o menu principal, a introdução, a cidade subindo, o ponto de controle, o combate contra o chefe em três segmentos e o final.

A estátua lançava objetos, incluindo um luminoso que podia ser aparado. Uma aparada abria seu escudo por cerca de sete segundos. Ataques posteriores acrescentavam uma rajada em leque e um carro semelhante a um meteoro, enquanto verificações de visibilidade impediam arremessos através de prédios.

Prompt do projeto

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.

Com a vida em zero, surgia um alvo de salto de cachecol na estátua. O jogador apertava repetidamente selar para preencher um anel; parar fazia o preenchimento cair.

O escudo da estátua está ativo.
O escudo da estátua está ativo.
Uma aparada bem-sucedida abre a janela de dano.
Uma aparada bem-sucedida abre a janela de dano.

5. Refinar, testar e exportar

5.1 Adicionar o tratamento visual da cena

Depois que o combate funcionou, acrescentei detalhes de chão, grama, árvores, iluminação, pós-processamento e efeitos. Um único sombreador aditivo suave dava uma aparência consistente à aura, aos anéis, aos projéteis e aos rastros.

Prompt do projeto

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.

Verifiquei as mudanças pela câmera do jogador para detectar ruas piscando, portas bloqueadas e postes mal posicionados.

Prompt do projeto

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 antes do refinamento.
Main Street antes do refinamento.
Main Street depois do refinamento.
Main Street depois do refinamento.

5.2 Adicionar áudio e retorno da interface

Comecei com áudio sintetizado e depois substituí a maior parte por músicas e efeitos CC0 com os devidos créditos. Mantive sons sintetizados quando nenhum clipe adequado servia.

Prompt do projeto

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.

O HUD mostrava controles específicos do contexto até o jogador usar cada movimento. O primeiro arremesso luminoso desacelerava brevemente o tempo para ensinar a aparada.

Prompt do projeto

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.
Dicas iniciais de controles para teclado e controle.
Dicas iniciais de controles para teclado e controle.

5.3 Executar a verificação completa de regressão

Antes da exportação, Claude reconstruiu as cenas, executou relatórios e jogou do menu até o final, incluindo uma aparada real, morte e reinício, selamento e capturas de tela.

Prompt do projeto

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.

A partida completa encontrou erros de orientação, efeitos ausentes e reinicializações do ponto de controle após mudanças no movimento ou no tempo.

Prompt do projeto

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.

A primeira exportação para Windows tinha 1.15 GB, principalmente texturas. Remover recursos não usados e modelos antigos e usar uma compressão menor para mapas de normais reduziu o tamanho para 755.5 MB.

Prompt do projeto

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 do projeto

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

O que eu levaria para o próximo projeto

O fluxo que eu repetiria é:

  1. Descrever o resultado desejado.
  2. Criar um protótipo pequeno.
  3. Inspecioná-lo na execução real.
  4. Transformar cada problema recorrente em uma regra ou relatório.
  5. Só então ampliar a produção.

Eu reutilizaria o mesmo padrão: uma fonte para a disposição da cidade, pontos de controle para lotes de recursos, regras geométricas para o salto de cachecol e um teste completo do combate contra o chefe.

Para uma demo semelhante, comece com um personagem, um percurso e um inimigo. Teste um recurso representativo antes de gerar lotes e transforme problemas recorrentes em verificações que possam ser repetidas.

Tripo Studio

Coloque este tutorial em prática

Abra o Tripo Studio e experimente o fluxo de trabalho que você está aprendendo aqui.

Este tutorial foi útil?

Ajude-nos a melhorar este conteúdo.