---
title: "霧鎖山門"
url: "https://aigamehub.app/en/games/guizang-game-skill-330730"
source: "https://github.com/op7418/guizang-game-skill"
source_type: "github"
play_url: "https://op7418.github.io/guizang-game-skill/"
platform: "both"
login_required: false
pricing: "free"
origin: "original"
ai_tools: ["Claude Code", "Codex", "Tripo", "即梦", "Suno"]
game_languages: ["zh-cn"]
author: "歸藏(guizang.ai)"
author_handle: "op7418"
category: "Action"
categories: ["action", "adventure"]
tags: ["3D", "AI生成素材", "three.js", "仙俠", "單一HTML", "武俠"]
added: "2026-11-12T12:38:25.997Z"
updated: "2026-11-12T12:38:25.997Z"
locale: "en"
content_locale: "en"
---

# 霧鎖山門

A top-down 3D action game demo with a xianxia theme: one scene, one wave of minor enemy encounter, and a two-phase boss fight, including story and voice acting.

## Description

《霧鎖山門》 is a top-down 3D action game playable directly in the browser. In a single scene, the player first faces a wave of minor enemies, then challenges a boss with two phases, a get-up transition, and dialogue. Combat includes a three-hit combo, dodge, block, deflect, execution, as well as drinking medicine, sword control, and the ultimate “萬劍歸宗.” The visuals are made with three.js and WebGL, featuring grass swaying in the wind, layered fog and snow-covered distant mountains, and water reflections; there is also background music, ambient sound, sound effects, and multiple voice lines. An online version is provided (mobile has a touch joystick and buttons; settings allow adjusting graphics quality and key bindings), a single offline HTML version of about 33MB, and a streamlined version built for mini-program container limitations.

## Original post

歸藏 Game Skill：让 AI 从零做出能在浏览器里玩的 3D 动作游戏，附可玩演示《雾锁山门》。Agent skill for Claude Code / Codex that builds a playable browser 3D action game with AI-generated assets (three.js, single-HTML). Playable demo included.

Topics: 3d-game, action-game, agent-skills, ai-agents, ai-generated, browser-game, claude-code, claude-skills, codex, game-development, gamedev, html5-game, threejs, tripo, vibe-coding, webgl, wuxia

<div align="center"> <img src="media/icon.png" width="96" alt="雾锁山门"> # 歸藏 Game Skill **让 AI 从零做出一个能在浏览器里玩的 3D 动作游戏** [English](README.en.md) · 简体中文 [![试玩演示](https://img.shields.io/badge/试玩演示-雾锁山门-c9a45c?style=for-the-badge)](https://op7418.github.io/guizang-game-skill/) [![License](https://img.shields.io/badge/License-AGPL--3.0-blue?style=for-the-badge)](LICENSE) [![Stars](https://img.shields.io/github/stars/op7418/guizang-game-skill?style=for-the-badge&color=e9dcae)](https://github.com/op7418/guizang-game-skill/stargazers) <a href="https://op7418.github.io/guizang-game-skill/"><img src="media/demo.gif" width="720" alt="雾锁山门战斗演示"></a> *上面这段是演示游戏《雾锁山门》里的实机画面。[点这里直接玩](https://op7418.github.io/guizang-game-skill/)，电脑和手机都能打开，不用安装。* </div> --- ## 这是什么 一个给 AI 编程助手（Claude Code、Codex 等）用的 Skill。装上之后，对它说"做一个武侠题材的俯视角 3D 动作游戏"，它会按一套走通过的流程去做：先问清楚你要什么，接上你手头的素材生成工具，自己推进画面、自己截图核对，最后把游戏打包成一个网页文件。 Skill 里写的不是理论，是我用 Fable 5.2 花一个下午做出《雾锁山门》的过程中踩过的坑，和最后留下来的做法。那次大约 6 小时、4.5 亿 Token（其中一部分是 Opus 5.5 跑的测试），很多都花在了返工和试错上。这个 Skill 的目的就是让你和你的 AI 少走这些弯路。 ## 演示游戏：雾锁山门 <table> <tr> <td width="38%"><img src="media/cover.jpg" alt="标题画面"></td> <td> 一个仙侠题材的俯视角 3D 动作游戏：一个场景、一段小怪遭遇战、一场 Boss 战，有剧情和配音。**所有创意都是 AI 自己定的**，我只说了要做国风仙侠。 - **画面**：大片随风起伏的草，分层的雾、雪和远山，覆水石台上的反光。渲染流程是在 three.js 上自己搭的，只用兼容性最好的 WebGL，所以手机、电脑、小程序类容器里都能跑 - **角色与场景**：5 个带骨骼的 3D 角色、2 把武器、12 种场景道具、5 种掉落物。先用即梦出设定图，再用 Tripo 转成模型，提示词都是 AI 自己写的 - **战斗**：三段连招、闪避、格挡、弹反、处决，还有饮药、御剑和大招"万剑归宗"。Boss 有二阶段、起身过场和台词 - **声音**：8 条配音、配乐、环境音和音效 - **体积**：原始素材将近 100MB，打包后是一个约 33MB 的 HTML，里面包含全部模型、贴图、音乐和配音 </td> </tr> </table> <table> <tr> <td><img src="media/shot_combo.jpg" alt="连招"></td> <td><img src="media/shot_skill.jpg" alt="剑诀"></td> <td><img src="media/shot_ult.jpg" alt="万剑归宗"></td> </tr> <tr> <td align="center">三段连招</td> <td align="center">剑诀</td> <td align="center">万剑归宗</td> </tr> </table> 演示的三种形态，都是同一份源码打出来的： | 形态 | 说明 | |---|---| | [在线版](https://op7418.github.io/guizang-game-skill/) | 先渲染出场景再边跑边加载；手机有触屏摇杆和按钮；设置里可以调画质、换高清材质、改按键 | | 单文件版 | 一个约 33MB 的 HTML，没有任何网络请求 | | 小程序容器版 | 按小红书小工具的限制（不能联网、不能用 WASM、包体 10MiB）单独构建，约 8MiB | ## 这个 Skill 帮你做什么 直接让 AI"做个 3D 游戏"，通常会得到一个方块灰模、手感发飘、要自己搭环境才能跑的东西。装上这个 Skill 之后： 1. **开工前先问清楚**。参考、视角、氛围、范围，以及你手头有哪些素材工具和多少额度。它不会闷头写一个方块模型出来，上来就把你给的工具接上 2. **自己验证，不用你反复试**。第一天就装好自测工具：逐帧推进画面、直达某一关的网址参数、F3 诊断面板。它自己截图核对，再告诉你哪些看过、哪些只是没报错 3. **战斗手感有章可循**。出招前摇和后摇、命中顿帧、分级击退、格挡与弹反、敌人轮流进攻而不是一拥而上、闪避能打断动作。打击感从哪来，都写进去了 4. **一份踩坑清单**。方向键卡住、预设动画把角色甩离原地、泛光过曝、镜头被屋顶挡住、打包后角色缩小一半……每条都有症状、原因和做法 5. **三种打包方式**。把很大的模型和素材压到很小：单个 HTML、先出画面再加载的静态站点、受限容器的离线包 ## 安装 把这个仓库的链接发给你的 AI，让它安装即可。或者手动： ```bash git clone https://github.com/op7418/guizang-game-skill ~/.claude/skills/guizang-game-skill ``` Codex 等其它工具，克隆到它们各自的 skills 目录。 然后直接说需求，比如： ``` 做一个武侠题材的俯视角网页 3D 动作游戏，一个场景、一波小怪、一个 Boss。 我有 Tripo 和即梦可以用。 ``` ## 需要准备 | 东西 | 用途 | 没有的话 | |---|---|---| | Node.js 18+ | 本地服务器和打包 | 必需 | | [Tripo](https://www.tripo3d.ai/) | 图片转 3D 模型、骨骼绑定 | 改用免费模型和程序化几何体，画面会打折扣 | | [即梦](https://jimeng.jianying.com/) 或其它出图工具 | 角色设定图、图标、题字、配音 | 改用免费素材 | | [Suno](https://su
