{"by":"htdt","descendants":205,"id":47400868,"kids":[47407804,47404077,47405419,47403789,47405457,47404220,47407910,47406235,47405443,47405818,47408170,47423986,47403862,47405197,47410418,47485452,47409593,47417285,47440683,47407329,47406332,47422246,47447265,47403870,47407721,47407668,47403969,47416070,47405190,47407857,47428221,47404581,47419042,47415287,47407819,47410400,47409353,47407557,47406299,47405627,47428845,47437279,47403856,47413155,47409764,47412769,47407904,47404944,47408325,47403310,47404012,47404962],"score":337,"text":"I’ve been working on this for about a year through four major rewrites. Godogen is a pipeline that takes a text prompt, designs the architecture, generates 2D&#x2F;3D assets, writes the GDScript, and tests it visually. The output is a complete, playable Godot 4 project.<p>Getting LLMs to reliably generate functional games required solving three specific engineering bottlenecks:<p>1. The Training Data Scarcity: LLMs barely know GDScript. It has ~850 classes and a Python-like syntax that will happily let a model hallucinate Python idioms that fail to compile. To fix this, I built a custom reference system: a hand-written language spec, full API docs converted from Godot&#x27;s XML source, and a quirks database for engine behaviors you can&#x27;t learn from docs alone. Because 850 classes blow up the context window, the agent lazy-loads only the specific APIs it needs at runtime.<p>2. The Build-Time vs. Runtime State: Scenes are generated by headless scripts that build the node graph in memory and serialize it to .tscn files. This avoids the fragility of hand-editing Godot&#x27;s serialization format. But it means certain engine features (like `@onready` or signal connections) aren&#x27;t available at build time—they only exist when the game actually runs. Teaching the model which APIs are available at which phase — and that every node needs its owner set correctly or it silently vanishes on save — took careful prompting but paid off.<p>3. The Evaluation Loop: A coding agent is inherently biased toward its own output. To stop it from cheating, a separate Gemini Flash agent acts as visual QA. It sees only the rendered screenshots from the running engine—no code—and compares them against a generated reference image. It catches the visual bugs text analysis misses: z-fighting, floating objects, physics explosions, and grid-like placements that should be organic.<p>Architecturally, it runs as two Claude Code skills: an orchestrator that plans the pipeline, and a task executor that implements each piece in a `context: fork` window so mistakes and state don&#x27;t accumulate.<p>Everything is open source: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;htdt&#x2F;godogen\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;htdt&#x2F;godogen</a><p>Demo video (real games, not cherry-picked screenshots): <a href=\"https:&#x2F;&#x2F;youtu.be&#x2F;eUz19GROIpY\" rel=\"nofollow\">https:&#x2F;&#x2F;youtu.be&#x2F;eUz19GROIpY</a><p>Blog post with the full story (all the wrong turns) coming soon. Happy to answer questions.","time":1773677249,"title":"Show HN: Claude Code skills that build complete Godot games","type":"story","url":"https://github.com/htdt/godogen"}