Back to AI game news
AI game news

Build 3D browser games with Three.js using Guizang’s frame-by-frame debugging skill

By GameSlash

Guizang shows how Codex and Claude Code can revisit a scene, step through frames and check gameplay after code changes, with a Three.js demo that ships as one HTML file.

Guizang’s Mist-Locked Gate cover with the Chinese title over a snowy path
Image by the game creator © Guizang / GitHub · Mist-Locked Gate cover from the project README

Guizang (歸藏) released Guizang Game Skill on GitHub, a guide and set of scripts for building Three.js action games with coding agents such as Codex and Claude Code. Its example, Mist-Locked Gate, is a top-down Chinese fantasy action game with one area, one enemy encounter and a two-phase boss. Guizang says the offline build packs models, textures, music and voice acting into a single HTML file of about 33 MB.

Three.js developers can use the debugging workflow from the start of a project. The agent can use a URL parameter to open a stage, advance a set number of frames, read the game state and take screenshots at specific moments, such as the frame when a sword strike connects. That gives it a repeatable way to compare the same moment after changing an animation or visual effect. Read the steps in SKILL.md.

The guide also explains how to give hits more impact. One technique is to freeze only the attacker and the character being hit for a moment while other enemies keep moving. Input is buffered during that pause, so the player can continue a combo or dodge when it ends. Read the combat guide.

Guizang used Jimeng to create concept images, then sent them to Tripo to make and rig 3D models for animation. He reports that this gave him better results than generating models directly from text. Read the creator's notes.

Mist-Locked Gate gameplay showing a combo effect in a snowy area
Image by the game creator © Guizang / GitHub · A combo attack in the Mist-Locked Gate demo

Guizang says he playtested the demo seven times and gave the AI five to ten issues to fix each round. The workflow has been used end to end on one demo. The skill's documentation and scripts are licensed under AGPL-3.0, while the creator reserves rights to the demo's art, models and audio.

Open the Mist-Locked Gate demo · See Guizang's gameplay GIF and screenshots

View source