Build or improve playable 2D/2.5D/3D video games in PHOENIX using Kira and La Forja; research references, original art, character and boss animation, level design, physics, audio, game QA, and deliver a real running artifact. Use for "haz un juego tipo Contra", game characters, enemies, bosses, sprites, platformer, shooter, 2D/3D levels, soundtracks, or broken game mechanics.
Install
npx skillscat add arisnachy/phoenix-harnes/phoenix-game-studio Install via the SkillsCat registry.
PHOENIX GAME STUDIO · La Forja
Política universal vigente: un juego, un motor de autoría y una experiencia en chat
Esta sección sustituye las antiguas rutas rápidas que convertían automáticamente todos los juegos de chat a HTML5. Kira debe resolver la intención natural, no exigir nombres de motores ni de herramientas.
- Retro ligero, tablero o lógica (Tetris, Snake, Pong, Pac-Man clásico, ajedrez, damas, Sudoku, 2048, cartas simples): motor interno HTML5 autocontenido, con reglas completas, arte adecuado, controles, accesibilidad, guardado cuando corresponda y prueba real. Publicar por
phoenix_gameusandofile_pathy manifiesto válido. - Acción, plataformas, combate, aventuras, RPG, carreras complejas, simulación, 2.5D, 3D y géneros híbridos: Godot como motor único de autoría y ejecución. Crear escenas, scripts, atlas/rigging, IA, efectos, sonido y niveles. Producir exportaciones desktop y Web desde el mismo proyecto. No convertir silenciosamente un Godot en otro juego HTML5 independiente para cumplir la publicación.
- Un clásico con requisitos avanzados (Snake 3D, ajedrez con mundo 3D/multijugador, Pac-Man con física avanzada) usa Godot. El género no obliga siempre al mismo motor; cuentan las mecánicas y la complejidad solicitadas.
- Todos los juegos aptos para Web deben mostrarse dentro del chat. Para retro utiliza
phoenix_gameconfile_pathHTML. Para Godot exporta el mismo proyecto con exportación Web monohilo Compatibility (HTML+JS+WASM+PCK) y publica mediantephoenix_gamecongodot_export_dirapuntando a la carpeta real, ubicada dentro del workspace. Phoenix aloja los archivos bajo URL aislada y el visor Godot los carga en iframe con origen opaco. El recibo demuestra que el paquete es estructuralmente correcto, no que el juego ya pasó pruebas de audio, visuales o controles en navegador. - Jamás sustituir personajes bonitos por cajas/figuras improvisadas en una entrega declarada profesional. Sprite sheets o modelos originales/licenciados, animaciones verificadas, hitboxes sincronizadas, audio probado y escenarios usados en ejecución, no solo listados en manifiestos.
- Universalidad de Phoenix: Game Studio es una habilidad más del arnés. No imponer sistemas de combate, jefes ni estética de acción a juegos abstractos, educativos, deportivos, de mesa o puzzles.
Comando de decisión (sin instalar herramientas):
node apps/cli/config/agent-presets/code/skills/game-development/scripts/game-tools.mjs route --genre "Snake" --delivery chat --quality production
node apps/cli/config/agent-presets/code/skills/game-development/scripts/game-tools.mjs route --genre "RPG 3D" --delivery chat --quality productionPara el motor retro: crear archivo HTML desde la intención del usuario → manifiesto original → pruebas de reglas/teclas/táctil/pantallas → llamada real a phoenix_game con file_path → confirmar que el iframe interactivo aparece. Para juegos complejos: Godot → importación/escenas → pruebas jugables → exportación compatible → comprobación de bundle → publicación real cuando el visor lo soporte. Si el usuario pidió un juego completo, la demo no satisface el encargo aunque esté publicada.
Continuidad: una misión interrumpida reanuda desde archivos y pruebas existentes, sin recrear el proyecto o repetir investigación del esquema de publicación. Kira mantiene interacción humana durante el proceso y comunica impedimentos reales sin inventar funciones.
Kira: Godot Game Studio automático y verificable (ruta principal 2D/3D)
El usuario autorizó configurar Godot para videojuegos. En misiones posteriores, Kira debe usar el ejecutable real y no quedarse en imágenes, una recomendación de instalación o el manifiesto de phoenix_game. El comando canónico y reproducible es:
node apps/cli/config/agent-presets/code/skills/game-development/scripts/game-tools.mjs route --genre "beat-em-up" --delivery desktop --quality production
node examples/game-studio/godot/bootstrap.mjs doctor
node examples/game-studio/godot/bootstrap.mjs setup --project "RUTA/NUEVO-JUEGO" --allow-install- Para un juego nuevo 2D/2.5D/3D no trivial, decide motor de autoría usando
route; si es Godot ejecutasetupcon autorización de instalación ya concedida en la misión. El script descubre Godot 4 en PATH, accesos de WinGet o rutas autorizadas, llama al gestor oficialwingetsolamente si falta, crea una escena y comprueba la importación, el scripttests/smoke.gdy la ejecución headless. Nunca inventes que WinGet o Godot funcionan: debes disponer del JSON final converified:truey las tres comprobaciones. - Si el proyecto ya existe, el bootstrap no sobrescribe ni sustituye escenas, sprites, audios ni scripts. Antes de editar un juego existente, inspecciona su motor/versión, estructura y necesidades; si carece de prueba
tests/smoke.gd, escribe una específica y ejecútala. Nunca forces la demo encima del proyecto original. - Para 3D, detecta e instala bajo autorización Blender; para mapas 2D Tiled; para sonido FFmpeg. Usa el mismo
game-tools.mjs doctor/ensure --target X --allow-instally verifica cada versión. No instales todo al inicio de Phoenix. - El starter se encuentra en
examples/game-studio/godot/startery es prototipo técnico, no un videojuego de arte final. Kira debe convertir los diseños del héroe, mínimo tres enemigos, jefe, escenarios, armas, partículas y sonidos a recursos Godot reales:AnimatedSprite2DoAnimationPlayer, scripts con daño/hitboxes, escenas, recursos de audio originales/licenciados e importaciones reales. Sustituye las primitivas del starter; no las presentes como resultado artístico. - Usa el editor Godot AI MCP cuando esté disponible y realmente conectado. Para Godot AI v4 se requiere editor 4.7+ y
uvx; si no está listo continúa usando comandos oficiales de Godot, archivos y pruebas; no afirmes conexión MCP ficticia. Tras instalar el addon con el script fijado, la activación en el editor y la autorización del puente siguen siendo necesarias. Ejecutaeditor_state,scene_get_hierarchy,animation_create,project_run,editor_screenshotylogs_readcuando el servidor real responda. - Dentro del chat: conservar la fuente Godot única y exportar Web real. Usar
phoenix_gamecongodot_export_dir, no generar una segunda versión HTML5. Verificar el paquete y comprobar que el reproductor web realmente funciona; una pantalla cargada no certifica calidad. - Gate definitivo: (1) Godot instalado y versión leída, (2) escena importada, ejecutada y smoke completo, (3) assets y animaciones aprobados integrados, (4) capturas del editor y partida real, (5) armas/jefes/sonido y export revisados. No declarar producción completa solo por
verified:true, que únicamente prueba el andamiaje técnico.
Godot AI v4 MCP · uso real del editor por Kira
Aplica en juegos Godot, después de elegir engine=godot con el router. El antiguo mcp-godot-game-dev es una entrada genérica y puede seguir desactivada: NO concluyas que Godot AI está conectado solo porque Godot aparece instalado. Para obtener edición de escenas en vivo utiliza el servidor autenticado Godot AI, namespace godot-ai, que el propio editor configura como cliente DeepSeek Harness en $DSH_HOME/cordis.patch.yml. Phoenix usa @phoenix-ai/dsh-mcp-client, mientras que el instalador oficial escribe paquete heredado de DeepSeek Harness; el adaptador de Phoenix convierte únicamente ese alias, preservando comandos, args, puertos y capabilities generados por Godot.
Ruta de preparación, nunca en el arranque general de Phoenix:
game-tools.mjs doctor --target godotygame-tools.mjs doctor --target uv. Godot AI v4 exige Godot 4.7+, no basta la comprobación genérica de Godot 4.x. Si no están listos,game-tools.mjs ensure --target godot|uv --allow-installsolamente con autorización para instalar. Godot 4.5 y complemento v3 de la Asset Library que compartió el usuario no son el mismo protocolo: no afirmes compatibilidad sin migración verificada. Si el paquete instala una versión insuficiente, no declares listo.godot-ai-addon.mjs plan --project "RUTA_PROYECTO". En proyectos nuevos y autorizados:godot-ai-addon.mjs install --project "RUTA_PROYECTO" --allow-install; utiliza el ZIP de la release oficial v4.3.0 con SHA-256 fijado, validación de rutas de ZIP y extracción aislada. Nunca sobrescribasaddons/godot_aini la migraciónaddons/.godot_ai_update; en instalaciones anteriores usa Update/Migrate del dock oficial.- Abre el proyecto en Godot 4.7+, activa Godot AI en
Project Settings > Pluginsy, en el dock Godot AI, selecciona DeepSeek Harness > Configure. Este paso requiere editor vivo; no basta crearplugin.cfg. La versión 4 exponegodot-ai attachautenticado por stdio, no URL HTTP simple ni tokens manuales. El dock configura versión y puertos. No inventes flags deuvx, puertos o capabilities. - Ejecuta
godot-ai-bridge.mjs doctor --project "RUTA_PROYECTO"y, tras revisar el registro de la conexión emitido por el dock,godot-ai-bridge.mjs sync --allow-config-edit. El adaptador modifica únicamentename: 'paquete heredado de DeepSeek Harness'del registromcp-godot-ai, reemplazándolo por@phoenix-ai/dsh-mcp-client; falla cerrado ante duplicados, forma inválida o HTTP sin autenticación. Si el dock actualiza o reconfigura su entrada, ejecuta sync nuevamente. Reinicia/reconecta el HOST de Phoenix para cargar el registro MCP; no rehagas eluvxni dupliques servidores. - Prueba MCP real: ejecuta
editor_state,scene_get_hierarchyylogs_readdel namespace godot-ai. Si hay varias sesiones, usasession_activatecon el proyecto correcto. Comprueba que el servidor y el proyecto son los esperados antes de escribir. Si falla, reportano-connected-editory diagnostica la configuración sin declararlo conectado.
Secuencia real de creación y QA:
- Preparar
GAME_PLAN.mdyart-biblecon referencias del género, atlas reales aprobados para héroe, tres enemigos y jefe, escenas y audio original/licenciado. Kira debe crear/integrar todos esos recursos en la escena; herramientas MCP no crean espontáneamente una dirección artística. - Usar
scene_manage/scene_open,node_create,script_create/script_attach,animation_create/animation_manage,input_map_manage,camera_manage,filesystem_manageybatch_executesegún convenga. Probar queAnimatedSprite2D/AnimationPlayerefectivamente consumen atlas aprobados; sin sprites no usarSprite2Dde rectángulos como arte final. - Ejecutar
test_run,project_run,game_managepara entradas y movimientos,editor_screenshotcon modogameylogs_read. Inspeccionar físicamente capturas reales contra arte de referencia y comprobar sonido con escucha humana cuando sea posible. Reiterar correcciones reales de combate, jefes, escenario y mezcla hasta superar el gate. Un estado MCP connected otest_run successno acredita calidad audiovisual, ni convierte automáticamente un proyecto Godot en HTML único jugable en Phoenix. - Mantener seguridad: servidor en loopback autenticado, no copiar ni imprimir capabilities locales; no usar endpoint HTTP sin autenticación, no instalar plugins de fuentes ambiguas, no modificar escenas ajenas sin contexto ni autorizar por defecto programas en una máquina ajena. La telemetría del complemento puede deshabilitarse con
GODOT_AI_DISABLE_TELEMETRY=true.
Para la documentación del servidor consulta https://github.com/hi-godot/godot-ai y el catálogo docs/TOOLS.md. La release fijada y el SHA provienen del repositorio oficial; el instalador de Phoenix NO afirma funcionamiento hasta verificar una sesión MCP y gameplay.
Selección real del motor y herramientas (antes del primer preset)
No presupongas Canvas ni Godot. Decide por género y destino del resultado. Primero ejecuta el router determinista y presenta el plan:
node apps/cli/config/agent-presets/code/skills/game-development/scripts/game-tools.mjs route --genre "beat-em-up" --delivery desktop --quality production- Entrega Windows/macOS/Linux con combate 2D/2.5D complejo, animación de personajes y escenarios profesionales: usa Godot 4 con proyecto nativo reproducible, escenas
AnimatedSprite2D/AnimationPlayer,TileMapLayer,Camera2D, cuerpos físicos, enemigos que navegan por profundidad, música y efectos importados. Usa Tiled para mapas, atlases y propiedades de colisión; FFmpeg para convertir/codificar audio. En 3D usa también Blender para rigging/modelos. No generes sprites con rectángulos si se pidió arte representacional. - Entrega retro dentro del chat: usar
phoenix_gamecon HTML autocontenido. Entrega compleja dentro del chat: proyecto original Godot + exportación Web multiarchivo; solo afirmar juego visible cuando el host de bundles de Godot esté disponible y la ejecución haya sido probada. Nunca fabricar un segundo juego HTML5 como supuesto export de Godot. - Puzles y arcades pequeños: evita descargar un motor pesado; HTML5/Canvas puede ser el motor final y aún requerirá arte/sonido según el usuario.
Aprovisionamiento automático bajo demanda: después del routing, por cada herramienta en tools ejecuta doctor --target NOMBRE. Si falta, ejecuta ensure --target NOMBRE --allow-install solo si la misión autorizó instalar software; en ausencia de autorización consulta y espera. El ensure está limitado a gestores oficiales y destinos aprobados (Godot, Blender, Tiled, FFmpeg). No ejecutes ensure al arrancar Phoenix ni en una misión que no crea juegos. Verifica después con doctor; si winget instala una herramienta pero no aparece hasta reiniciar el terminal, conserva el estado NO LISTO, identifica la ruta PHOENIX_GODOT_BIN, PHOENIX_BLENDER_BIN, PHOENIX_TILED_BIN o PHOENIX_FFMPEG_BIN y revalida. Nunca supongas que el equipo del usuario ya está configurado ni declares instalado algo que no comprobaste. La autorización general del usuario debe persistir solo a través del mecanismo seguro de preferencias de Phoenix que esté realmente disponible; no fabriques consentimiento.
Puerta previa a producción artística: mantén una art-bible única (siluetas diferenciadas del héroe/enemigos/jefe, paleta, escala, perspectiva, estados, fondos y mezcla sonora). Ejecuta el plan de assets, produce y valida cada atlas/tileset/audio antes de importarlo al motor; comprueba coordenadas, transparencia, AnimationPlayer o AnimatedSprite2D, eventos de sonido y capturas de gameplay. Un Godot instalado o un project.godot creado no significa que un buen juego exista. Prueba movimiento real del protagonista/enemigos y ataques del jefe, no solo importación sin errores.
Ruta de calidad obligatoria para beat-em-up y juegos complejos (Godot)
- Investigar referencias visuales y mecánicas con respeto de licencias; preparar dirección artística original y personajes completos: protagonista, enemigos variados, jefe y escenarios por capas. Ninguna figura de prueba geométrica se presenta como acabado.
- Crear proyecto Godot real:
CharacterBody2D/CharacterBody3D,AnimationTree/AnimationPlayer, armas con sockets y origen correcto, hitboxes/hurtboxes activadas en fotogramas precisos,NavigationAgent2D/NavigationAgent3D, controles, físicas, IA, audio y cámara adecuados. - Conectar las decisiones de IA al estado real (percepción, orientación, persecución, rango, anticipación, recuperación, daño) y verificar en Godot que ataques del héroe/enemigos y animaciones coinciden.
- Crear fondos,
TileMapLayer/Parallax2Dy sistemas equivalentes 3D con colisión, profundidad, visibilidad y elementos integrados; no usar fondos como imágenes aisladas sin escena jugable. - Mezclar audio en buses Godot para música, ambiente, FX y voces; auditar picos, disparos sucesivos y variaciones de sonidos; comprobar reproducción, no solo nombres de archivos.
- Ejecutar importación, smoke y partida real con controles, enemigos, jefe, escenario y sonido; registrar evidencia de animación/sonido/fps. El archivo
brawler-kit.jsqueda como referencia de mecánicas heredadas, no como motor alternativo del juego Godot. - Para chat, exportar desde el mismo Godot, ejecutar
web-export-preflight.mjsy publicar conphoenix_gameusandogodot_export_dir. El servidor rechaza paquetes incompletos, archivos peligrosos y symlinks; el visor limita la ejecución al iframe. Realizar pruebas visuales/auditivas y de controles antes de declarar finalizado.
Publicación nativa Godot Web en Phoenix
- Entrada natural: «haz un juego de ...», sin exigir al usuario seleccionar el motor o conocer rutas.
- En Godot, obtener un proyecto jugable con escenas, recursos y lógica completa. Exportar Web desde Godot 4.3+ con Compatibility/WebGL2, monohilo; no usar C# para Web Godot 4. Comprobar disponibilidad real de export templates y de Godot.
- Guardar la exportación en
juego/web(o carpeta equivalente) dentro del workspace de la misión:index.html,index.js,index.wasm,index.pcky demás recursos que referencie el export. No renombrar archivos individualmente. - Invocar
phoenix_gamecontitleygodot_export_dirapuntando a esa carpeta, sinhtmlnifile_pathni manifiesto HTML autónomo. El servidor devuelve el artefactoapplication/vnd.phoenix.game+godot-web. El juego aparece dentro de la conversación en su iframe aislado cuando el navegador admite el export. - Verificar el arranque real, teclado/táctil, música, efectos, movimientos, enemigos, jefes, transiciones y export web. El preflight solo valida estructura; cuando WebGL2 no esté disponible o aparezca un error, informar exactamente y conservar el proyecto exportable. No prometer calidad comercial sin evidencia.
Preflight-first del publicador HTML interno (solo retro y juegos sencillos)
Before generating an HTML artifact or contacting the publisher, Kira must prepare a truthful, genre-specific JSON manifest for the actual game: schemaVersion:1, title, genre, gameType, controls, level, audio and only the player/enemy/boss/asset fields that correspond to implemented mechanics. Use examples/game-studio/jungle-echo.manifest.json or lumen-circuit.manifest.json as the schema reference, never as fake evidence of work. Track every requested component in the finite game-art production plan.
On the first call to phoenix_game, prefer file_path pointing to the newly authored standalone HTML game in the agent workspace; if the manifest is separate, supply manifest_json containing complete authored JSON as a string. The publisher deterministically inserts the exact required <script id="phoenix-game-manifest" type="application/json"> before the close of </body>, and rechecks controls, level, audio and art. A manifest already embedded in HTML works unchanged; if correct JSON exists without the exact script id, the publisher repairs that wrapper. The publisher refuses contradictory or missing JSON and never invents enemies, levels, controls or asset data. There should never be a first upload rejected solely for forgetting the HTML manifest wrapper.
Do not waste another Kira/La Forja turn saying "Phoenix requires JSON; I will now add it": the tool schema and this skill already provide the contract. Fix missing actual fields before tool publication and show any genuine remaining failure clearly. Passing the structural gate is not proof of playtesting, visual quality or soundtrack.
Mandatory complete cast and world — hero atlas is not a game
For representational action games, Kira must not stop after generating a single protagonist sheet. Before requesting artwork, finalize the real entity list (all protagonist states, every enemy family, an animated boss with all phases, weapons, projectile sprites, powers/pickups, scenery at each parallax depth, props/interactive obstacles, VFX and music/SFX). Execute node examples/game-studio/plan-game-assets.mjs manifest.json plan.json to create the finite production worklist; assign real deliverables to La Forja (motion/characters, gameplay/world, audio/QA), with at most three actual workers and one integration owner. A pending task or beautiful standalone PNG is NOT finished game evidence.
For art.mode="production" run-and-gun, the publisher requires art.hero; per-entity art.enemies[] and art.bosses[], including real phaseAnimations for each phase; art.backgrounds[] matching all level.layers[].id; and art.weapons[], art.projectiles[], art.powers[], art.props[], art.effects[]. Each entry must identify a distinct, embedded original PNG and appear in actual Canvas drawing calls. Enemies and bosses need sprite-grid data and states, and boss phase frames must map to real atlas indices. Use stable art bible and matching sprite scales across the whole game. Integrate moving, jumping, aiming, shooting, enemy AI, boss phases, collisions, pickups, parallax and sound before delivery. A game missing categories cannot be called production complete even if the character reference art looks excellent; mark it as prototype and continue only until the requested acceptance gate is truly satisfied.
The gate is code-structural, not visual inspection: review screenshots of the rendered protagonist, enemies, boss and world alongside the approved art. Reject boxes, palettes, empty backgrounds and unused sheets when the user requested detailed art. If generation/import is blocked, report the real blocker and keep the incomplete status instead of faking results. Genre-specific games without combat should not get phantom bosses or weapons.
Regla obligatoria de reutilización y uso real de assets
Antes de generar sprites, escenarios, spritesheets, música o efectos, inspecciona los archivos existentes y conserva un inventario assets.json con images/audio y pares id/path. Ejecuta node examples/game-studio/plan-game-assets.mjs manifest.json plan.json assets.json. El plan verifica bytes locales: reusable-needs-integration evita regenerar el archivo, pero NO acredita que aparezca en la partida. Revisa existingAssets.unbound e invalid, vincula cada recurso al elemento real en art y al runtime y corrige IDs sin generar sustitutos.
Genera recursos en incrementos pequeños: antes de crear cada nuevo lote, conecta lo ya creado al animador/dibujo/sonido, arranca el juego y prueba el comportamiento. Ejecuta embed-game-assets.mjs y luego prepare-game.ts: el empaquetador rechaza imágenes y audio sin una ruta de consumo detectable. El preflight es estructural; valida visualmente movimiento, enemigos, jefe, capas parallax y sonidos reales en el navegador/engine. No sigas generando si los recursos existentes sirven. Detente una vez superada la aceptación sin nuevas rondas de auditoría.
Preset-to-play contract (enforced by Kira for every illustrated action game)
Presets are input resources, not a complete game. After a user approves a protagonist, enemy, boss, effect or stage image, Kira MUST store its original exported PNG bytes, create transparent frame-atlas poses, and bind the image ID to an actual runtime actor. Use examples/game-studio/embed-game-assets.mjs before publishing. An isolated concept portrait or a metadata-only art object never passes acceptance. The same rule applies when generated art arrives from Canva, an image model, Figma, Godot or an MCP integration.
- Default playable 2D foundation: start from
examples/game-studio/jungle-echo.html(prototype), reusingexamples/game-studio/game-kit.jsfor realdrawSpriteState(ctx, image, atlas, state, seconds, ...),advanceBoss(boss, hero, dt, fire), andactivateAbility(actor, elapsed, cooldown). Do not silently replace the approved sprite withdrawHumanoid, rectangles or a generic drawing. Such fallback is acceptable only when explicitly markedart.mode=prototype; never report production art as finished. - Hero: actually load
art.hero.imageId, map real frame indices inart.hero.animations, route input/physics to the animation state (idle/run/jump/fall/attack/hurt/death plus requested magic/whip/other powers), and use the appropriate changing atlas frame every tick. Coordinate the hand, weapon, muzzle, projectile and hitbox; do not merely translate one still image. - Enemy and boss roster: for each
enemies[].idandbosses[].id, look up its distinctart.enemies[]orart.bosses[]atlas. Use bossphaseAnimationsand actualadvanceBossAI, with movement, readable windup, attack emissions, projectile collision, alternate patterns, health thresholds and genuine death cleanup. A stationary HP rectangle with attacks only described in JSON is blocked. - Effects and scenery: draw each
art.backgrounds[]layer at its declared parallax ratio and integrateart.weapons[],art.projectiles[],art.powers[],art.props[],art.effects[]via runtimedrawImagecalls. Tie VFX to combat events; unused embedded assets FAIL. - Abilities are gameplay mechanics: define input, resource/cooldown, anticipation, damage or effect, particle effect and concrete sound cue. Exercise each ability with input tests and runtime animation frames. Always include an attack-capable protagonist and two real boss attack patterns when the genre/request is combat-oriented.
- Recorded sound and voices: when the requested soundtrack and action effects have been authored and embedded, use `audio.mode="sampled-production"` in the published manifest; the Game Studio tool enforces actual embedded audio elements for every cue, music and declared voice and a playback route. Otherwise mark the audio as a prototype and tell the user what samples are still missing. For requested polished sound, prefer original, licensed WAV/OGG/MP3 cues and soundtrack. Embed bytes using an asset manifest such as
{"images":[{"id":"hero-art","path":"art/hero.png"}],"audio":[{"id":"phoenix-audio-shoot","path":"audio/shot.wav"},{"id":"phoenix-audio-whip","path":"audio/whip.wav"},{"id":"phoenix-audio-power","path":"audio/magic.ogg"},{"id":"phoenix-audio-boss","path":"audio/boss-hit.wav"},{"id":"phoenix-audio-music","path":"audio/battle-theme.ogg"},{"id":"phoenix-audio-voice-victory","path":"audio/victory.ogg"}]}. Attach each corresponding cue to the in-game action, with play/pause, looping soundtrack and mute. Handle browser autoplay restrictions by unlocking audio only after a user interaction. Never label an oscillator/beep as a professional gunshot, whip, orchestral score or human voice. If original/authorized voice recordings were not created or imported, mark voices as not available and do not claim they exist. - Proof gate: run
pnpm exec vitest run examples/game-studio/testsandpnpm exec tsx examples/game-studio/prepare-game.ts game.html manifest.json checked.html(on actual generated files), then execute the playable game in the available browser. Inspect real frame captures of hero idle/run/attack, each enemy action, boss windup/attacks/phase transition/death, power effects, camera movement and sound-trigger timing. Structural preflight is not enough; actual visual and audible QA needs real capture/listening and evidence. Missing screenshots, missing sound playback, missing licensed samples or unavailable browser must be reported as unverified, never silently replaced by an invented success. - Kira completion rule: no "finished" answer with hero-only image, frozen boss, no combat powers or silent action game when these were requested. Continue within the authorized bounded workflow to deliver a testable slice; when genuinely blocked, give the runnable partial artifact, state exactly which resources or capability are missing, and do not misrepresent it as finished. After the final status, stop HARDNESS and agents universally.
Mandatory first-pass game publishing handshake
Game Studio does not need Kira to discover the contract by repeated failed publication. Start from the shipped genre-matching manifest example in examples/game-studio/jungle-echo.manifest.json or lumen-circuit.manifest.json. Kira must create a truthful manifest from the actual game source, not invent bosses, sprites, events or levels to satisfy validation. The real publisher is the model tool phoenix_game (not image_generation and not phoenix_canvas), and it expects complete inlined HTML in the html argument. For local packaging use:
node examples/game-studio/embed-game-assets.mjs input.html images.json with-assets.html
pnpm exec tsx examples/game-studio/prepare-game.ts with-assets.html manifest.json publishable.htmlThe first command inserts the exact local PNG bytes as hidden <img id="..."> data:image/png;base64 before gameplay scripts. The latter validates and adds one <script id="phoenix-game-manifest" type="application/json"> if missing; it does not invent source content. When no images are required (board/puzzle) omit the first command. JSON is structural metadata, not a boot dependency; a blank view can instead mean a JavaScript exception, image load, blocked resource, CSP or invalid renderer. Distinguish those causes. Publish exactly once after preflight succeeds, then verify actual running gameplay and screenshot. Retry only the failing stage, bounded to two repairs.
For representational characters, generated concept art must become a rendered, animated sprite atlas. phoenix_game requires explicit art.mode: production with an actual embedded art.hero atlas, designReference, source-correct frame indices and art.backgrounds drawn with drawImage; or prototype with an explicit visible limitation. The contract catches unused images and fake metadata but cannot inspect visual identity, anatomical correctness or audio. Compare approved design to real frame captures; if the playable character still looks like an unrelated primitive, do not call the mission complete. Preserve the reference art supplied by the user without silently changing subject, proportions or outfit.
1. Research before art
- If the user references a game such as Contra, search for publicly available original gameplay footage and screenshots (not just its cover): protagonist proportions, animations/poses, run/jump/shoot/aim, enemy taxonomy, boss telegraphs and phases, parallax, scrolling, encounter pacing, HUD, explosion timing, soundtrack and sound effects.
- Record concrete source URLs and observations in a short reference table. Distinguish researched facts from design choices. Web search failure must not be represented as research completed; continue with explicit uncertainty.
- Abstract mechanics and art direction from these references. Do not copy copyrighted character designs, tiles, audio, maps, logos, names, or unlicensed sprites. New games must have original identities.
- Choose one unified art bible BEFORE generating batches of assets: canvas resolution, palette, outline, pixel density, shading, animation fps, silhouettes, collision bounds, camera scale, layers, material cues, lighting and audio style.
- Asset sourcing: use self-generated original art or verified CC0/compatible licenses. Track provenance/attribution per file. Do not assume a search result permits reuse.
Genre router — never force every game into a shooter
Select a concrete gameplay loop before drawing assets. The manifest may declare gameType: run-and-gun, platformer, top-down-action, racing, puzzle, strategy, rpg, rhythm, simulation, 3d, or custom. Genre-specific preflight checks are implemented in packages/client/ui-conversation/src/client/chat/game-studio-quality.ts. custom must declare mechanics. A genre label does not create the gameplay logic automatically.
- Platformer/action: movement tuning, collision, coyote time and jump buffering if required, authored animation cycles, attack anticipation and camera motion.
- Racing: steering/braking physics, lap/track geometry, collision, opponents, camera dynamics and engine audio, not forced bullets or jump animations.
- Puzzle/strategy: deterministic rules, undo/restart, solvable or generated levels with verified solutions, keyboard/touch interaction, clear win/lose logic, adversarial tests.
- RPG/adventure: stateful inventory, dialogue, quests, persistence, combat only when designed, controllable NPCs and safe save/load.
- Rhythm/music: event timestamps tied to audio clock, latency calibration and input scoring; WebAudio playback must be tested after a user gesture.
- 3D/simulation: scene graph and 3D assets, rig/animation controllers, camera, lights, physics/collisions and disposal; use WebGL-compatible inlined/bundled resources for chat and deliver native project files if necessary. Do not pretend Canvas 2D is a 3D engine.
- When the requirement spans several genres or engines, build one playable genre-specific vertical slice first, measure it, then generalize a reusable system.
Character and asset production — coordinate the full body
For a polished original character, build a character turnaround/model sheet in the chosen art style, then derive independently visible action poses. The standard is joint continuity, consistent anatomy/proportions, anchored feet, coordinated torso balance, hands contacting the gun/tool, barrel direction matching projectile velocity, arm recoil, transition anticipation and clear silhouettes at gameplay scale. Audit walk cycles frame by frame, including alternating foot contact and swing, rather than accepting moving rectangles.
- Choose sprite atlas for frame-by-frame pixel/hand-painted 2D or 2-bone skeletal IK for flexible articulated motion. Mix these only with explicit skinning/masks, aligned pivots, depth ordering and visible quality checks.
- Use original art generation or licensed assets when image capabilities are available; isolate transparent backgrounds, preserve proportions between every frame, define source atlas coordinates and anchor points, and optimize texture memory. A prompt to an image model is not proof that the sprite sheet is consistent.
- Include idle, movement, airborne, attack, hurt, death and genre-specific interaction where relevant. Provide directions (horizontal/vertical/diagonal or eight-way where requested), equipment-hand attachment, synchronized hitboxes and state transitions. For a 3D rig, validate bone hierarchy, inverse kinematics constraints, retargeting and root motion.
- Game-kit reference:
examples/game-studio/game-kit.jsexposes zero-dependency two-bone IK, articulated figure drawing, directional aim, deterministic animation frames, parallax mapping and a simple enemy decision primitive. Embed this script into a self-contained HTML artifact. It is a functional base, not high-resolution original art or advanced navigation AI. - Author original sound effects/music or use correctly licensed sources; tie audio to actual action events, manage volume, overlap, mute and user-gesture unlock. Procedural oscillator tones are temporary game audio, not a substitute for professional composed and mixed music.
Cross-genre evidence and limits
The source-controlled examples demonstrate two different genres: jungle-echo.html (run-and-gun with 2-bone limb animation, diagonal aiming, parallax, enemy telegraphs and procedural WebAudio) and lumen-circuit.html (interactive puzzle with connection checking, pointer and keyboard controls). Test the actual game requested — an example passing does not prove all genres work. The deterministic manifest audit checks only JSON structure and packaging; it does not see rendered quality, correctness of asset transitions, or heard audio. For delivery collect real browser screenshots/video or engine frame captures, animation state and directional tests, AI behavior tests, audio evidence and hardware-specific performance before stating production quality.
2. Bounded specialist work in the same Kira conversation
Kira owns the approved objective, handles research and integration, and launches at most THREE actual workers concurrently:
- Art / motion: original protagonist, enemy families, spritesheets with matching frames, animations, VFX, design coherence and atlas export.
- Combat / level: physics, aim/fire, jump feel, platform coordinates, player/enemy finite-state machines, collision, boss phases, encounter pacing, camera.
- Audio / QA: score and cues, actual audio playback on user gesture, visual/motion inspections, interaction tests, frame-time checks and bug reports.
A worker's message is not proof of tool execution. Require actual outputs, file paths, integration commit or observed playback/screenshot as appropriate. Reuse finished assets, avoid duplicated investigation, and stop workers once the acceptance gate is satisfied. No endless follow-up audit or HARDNESS loop after Kira closes.
3. Production contracts (mandatory for run-and-gun; adapt to other genres)
- Protagonist: consistent silhouette, texture/rig/spritesheet, idle/run/jump/fall/shoot/hurt/death states, readable timings and transitions, jump physics, aiming while airborne, landing anticipation and recoil. Draw actual temporal frames (not a static sprite translated across the screen). If an advanced engine is available prefer animation blending where needed.
- Enemies: distinct roles, silhouettes and states (move/attack/hurt/death), navigation, anticipation, reactions, finite health and collision, rate-limited spawning and avoid unfair offscreen shooting.
- Boss: at least two observable phases with attack telegraphs, weak points, different patterns, HP indicator and death sequence. Attack patterns must have an avoidable path.
- Scenario: sky/background/midground/foreground layers with 0..1 parallax scroll factors, playable tile/geometry/platform data, safe checkpoints and collision, responsive camera, contrast/readability. Don't use one giant picture as the level.
- Audio: score plan, jump/shoot/hit/explosion/boss cues, user-gesture unlock for browser audio, mute, independent volume/priority where practical, no undefined external URL. Verify speakers/headphones only with actual audio probes; code inspection alone cannot confirm perceived audio quality.
- Visual polish: particles, muzzle flash, hit flash, dust, lighting/weather only where they improve feedback; do not obscure hitboxes or controls.
- Optimization: delta/fixed timestep, disposal of animation loops, input on focus, mobile fallback where requested, bounded entities and particles. Prefer offline assets stored locally and predictable free tools.
4. Publicación Phoenix por motor (sin sustituciones)
- Solo para retro/mesa/lógica internos: un archivo HTML/Canvas/WebAudio autocontenido con MIME
application/vnd.phoenix.game+html, sin recursos de red, dentro de iframe aislado. En juegos Godot no se permite reemplazar la exportación Web por HTML de mecánicas diferentes. - Para juegos Godot y 3D: entregar proyecto fuente y exportación multiarchivo compatibles, validar WASM/PCK/JS y su ejecución real antes de afirmar que el visor del chat funciona. El publicador HTML interno todavía no sirve bundles de Godot.
- The first vertical slice is one polished playable level, one hero, two/three enemy varieties, one multi-phase boss, sound. Build more levels only after the slice passes.
- Include a
<script id="phoenix-game-manifest" type="application/json">block (escaped JSON) inside the artifact HTML. Contract:
Do not fake these fields: every listed state/phase/cue/layer must have corresponding implemented behavior.{ "schemaVersion": 1, "title": "Original Game Title", "genre": "run-and-gun", "references": [{"title":"researched footage", "url":"https://..."}], "player": { "states": ["idle","run","jump","fall","shoot","hurt","death"], "animations": {"idle":4,"run":8,"jump":2,"fall":2,"shoot":3,"hurt":2,"death":6} }, "enemies": [{"id":"scout","states":["move","attack","hurt","death"]}], "bosses": [{"id":"boss-01","phases":["approach","barrage"]}], "level": { "layers":[{"id":"sky","scrollFactor":0},{"id":"trees","scrollFactor":0.4},{"id":"front","scrollFactor":0.8}], "platforms":[{"x":0,"y":400,"width":900}] }, "controls":{"move":"Arrows/A-D","jump":"Space","shoot":"J"}, "audio":{"cues":["jump","shoot","hit","explosion","boss"],"music":"original loop"}, "sources":[{"path":"index.html","license":"original"}] }
5. Verification and stop conditions
- Run the game, not merely review source. Inspect at least one gameplay screenshot plus a short animation sequence. Verify visible changes between idle/run/jump/fall/shoot/hurt, actual enemy attack/death and both boss phases.
- Exercise keyboard and optional touch controls, collision/fall/landing, scrolling, combat, restart, mute; inspect console errors. For automated browser tests use actual browser events and captured frames, not synthetic "passed" text. Use real engine/WebAudio output if validating playback.
- Run deterministic code/schema checks and scene/resource license checks. Record any test that could not be run (especially Windows playback) as unverified.
- Repair only broken requirements with bounded passes (2 per failed gate) and report any residual blockers; no silent low-quality fallback. For a fully completed artifact, Kira stops HARDNESS and workers: never reopen autonomous evaluation after the acceptance gate.
- Deliver: playable artifact or project path; brief screenshot/animation evidence; controls; list of proven tests, unverified aspects, third-party attribution, exact SHA if published.
Starter/reference: examples/game-studio/jungle-echo.html. It is an original technical baseline, not licensed Contra artwork or a claim of final-quality art. Always improve the art according to the requested style.
Auditoría de producción por fases (antes de entregar)
Al crear un juego premium, genera el manifiesto real con production.storyDriven, story.premise/ending/beats, production.levelCount, especificaciones enemies[].behavior, bosses[].phases (objetos con id/startHealthRatio) y bosses[].attacks (telegraphSeconds, recoverySeconds, counterplay), levels[] con entry/exit y geometría obligatoria, y audio.tracks[] por nivel y jefe (id, source, license, mood). Solo exige estas secciones cuando el género y el encargo las necesitan: no imponer jefes a puzles. Primero implementa una porción jugable que pruebe el movimiento y el combate; después produce e integra sprites, escenarios y música definitivos.
Ejecuta node examples/game-studio/plan-game-assets.mjs manifest.json plan.json [assets.json]. Inspecciona productionReview.designIssues, missingAssetBindings, missingPlaytests y phases. El informe marca incomplete hasta que cada recurso se conecte a un objetivo del runtime y exista prueba de su uso: assetBindings[] requiere familia/id, source, runtimeTarget, proof y executed; playtests[] requiere id, passed, runner y artifact. Un JSON autodeclarado no equivale a una prueba independiente. No declarar juego comercial listo hasta comprobar realmente Godot/HTML ejecutable, recorridos, enemigos/jefes, animaciones usadas, imágenes de gameplay y reproducción de audio con revisión visual/auditiva. El informe no certifica lanzamientos por sí solo.