higgsfield-game-generation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHiggsfield Game Generation
Higgsfield 游戏生成
Create a coherent, playable web game and deliver the URL, or produce only the requested game assets. Higgsfield CLI owns generation, 3D action discovery, deployment, and optional marketplace publication.
创建连贯可玩的网页游戏并交付URL,或仅生成请求的游戏资产。Higgsfield CLI负责生成、3D动作识别、部署以及可选的市场发布操作。
Bootstrap
初始化准备
Before work begins:
- If is unavailable, install it:
higgsfieldbashcurl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh - If reports an expired or missing session, ask the user to run
higgsfield account status, then continue after confirmation.higgsfield auth login - For a full game, confirm works before generating assets. This is the delivery capability check.
higgsfield game deploy --help - Locate this installed skill directory and set it explicitly:
Never recreate bundled scripts from memory.bash
export GAME_SKILL="/absolute/path/to/higgsfield-game-generation" test -f "$GAME_SKILL/scripts/pipeline.py" python3 "$GAME_SKILL/scripts/pipeline.py" --help
开始工作前:
- 若不可用,执行安装:
higgsfieldbashcurl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh - 若显示会话过期或缺失,请让用户运行
higgsfield account status,确认完成后再继续。higgsfield auth login - 若要生成完整游戏,在生成资产前确认可正常运行,这是交付能力检查步骤。
higgsfield game deploy --help - 找到已安装的技能目录并显式设置:
切勿凭记忆重新创建捆绑脚本。bash
export GAME_SKILL="/absolute/path/to/higgsfield-game-generation" test -f "$GAME_SKILL/scripts/pipeline.py" python3 "$GAME_SKILL/scripts/pipeline.py" --help
Route the request
请求路由
- Full playable game — follow the full workflow below.
- Assets only — read , then the matching asset reference. Do not deploy a game.
references/stylization.md - Design only — read ; return the requested design artifact and asset manifest.
references/game-design-system.md - Existing game iteration — inspect the supplied source, preserve its architecture and unchanged assets, amend the manifest, rebuild, verify, and redeploy with its existing game ID.
- Trailer or promotional video — use , not this skill.
higgsfield-generate - Native mobile/desktop/console runtime — explain that this skill ships browser games; offer a web build unless the user supplied another toolchain.
- 完整可玩游戏 — 遵循下方完整工作流程。
- 仅生成资产 — 阅读,然后参考匹配的资产文档,无需部署游戏。
references/stylization.md - 仅设计 — 阅读;返回请求的设计产物和资产清单。
references/game-design-system.md - 现有游戏迭代 — 检查提供的源代码,保留其架构和未修改的资产,更新清单,重新构建、验证并使用现有游戏ID重新部署。
- 预告片或宣传视频 — 使用,而非本技能。
higgsfield-generate - 原生移动/桌面/主机端运行时 — 说明本技能仅交付浏览器游戏;除非用户提供了其他工具链,否则可提供网页构建版本。
Full game workflow
完整游戏工作流程
1. Plan
1. 规划
Read first and in full. Resolve the game profile, delivery context, core loop, win/lose/restart behavior, performance budgets, input methods, and language handling.
references/game-design-system.mdCreate with one row per visual or audio asset:
design/assets.csvcsv
id,role,type,description,size/ratio,style line ref,sourceRead whenever Players is not solo. Local same-screen multiplayer remains client-side; online multiplayer requires the platform server module.
references/multiplayer.mdRead before producing any visual, including procedural canvas art. Derive one STYLE FORMULA and insert it byte-for-byte into every visual prompt. If the brief already fixes the style, state the formula and continue. If several materially different styles fit, show concise options and wait for selection.
references/stylization.mdNo game code or generated visual should exist before the manifest and STYLE FORMULA.
首先完整阅读。确定游戏配置文件、交付场景、核心循环、胜负/重启机制、性能预算、输入方式和语言处理方案。
references/game-design-system.md创建,每行对应一个视觉或音频资产:
design/assets.csvcsv
id,role,type,description,size/ratio,style line ref,source当玩家数量不为单人时,阅读。本地同屏多人游戏仅在客户端运行;在线多人游戏需要平台服务器模块。
references/multiplayer.md在生成任何视觉内容(包括程序画布艺术)前,阅读。推导一个STYLE FORMULA(风格公式)并逐字节插入到每个视觉提示中。如果需求已明确固定风格,说明该公式后继续。若有几种差异较大的风格均符合需求,展示简洁选项并等待用户选择。
references/stylization.md在完成清单和STYLE FORMULA之前,不得编写任何游戏代码或生成任何视觉内容。
2. Generate assets and build
2. 生成资产并构建
Start independent generation jobs together, then write the game while those jobs run. Inspect every model contract before first use:
bash
higgsfield model list --json
higgsfield model get <job_type>
higgsfield generate create <job_type> ... --wait --jsonMedia flags accept local paths or prior upload/job IDs. Keep job JSON in project files when chaining; do not dump IDs into the user-facing reply.
Read the reference matching each manifest row:
| Asset | Required reference |
|---|---|
| Static sprites, backgrounds, UI | |
| Spritesheets / 2D animation | |
| Repeating ground, walls, tiles, PBR maps | |
| Any 3D model or animation | |
| Music, SFX, voice | |
For 3D animation selection:
bash
higgsfield preset list animation-action --query walk --json
higgsfield preset list animation-action --group Fighting --category Punching --jsonWhen multiple actions fit, show their preview URLs and let the user choose. Pass the chosen integer as only after checking the target model schema.
--animation_action_idRead last, but before writing game code. Assemble the source ZIP with and exactly one root code module ( or ). Use relative asset paths and keep in the shipped project.
references/build-game.mdindex.htmllogic.jsserver.jsdesign/assets.csvGeneration failures get at most two retries. After that, use the best valid result and compensate in code, or amend the manifest honestly.
同时启动独立的生成任务,然后在任务运行期间编写游戏代码。首次使用前检查每个模型契约:
bash
higgsfield model list --json
higgsfield model get <job_type>
higgsfield generate create <job_type> ... --wait --json媒体标志接受本地路径或之前的上传/任务ID。链式调用时将任务JSON保存在项目文件中;切勿在面向用户的回复中输出ID。
阅读与清单每行匹配的参考文档:
| 资产 | 所需参考文档 |
|---|---|
| 静态精灵图、背景、UI | |
| 精灵表 / 2D动画 | |
| 可重复地面、墙体、 tiles、PBR贴图 | |
| 任何3D模型或动画 | |
| 音乐、SFX、语音 | |
选择3D动画时:
bash
higgsfield preset list animation-action --query walk --json
higgsfield preset list animation-action --group Fighting --category Punching --json当有多个动作符合需求时,展示它们的预览URL并让用户选择。仅在检查目标模型架构后,将选中的整数作为传入。
--animation_action_id最后阅读,但需在编写游戏代码之前完成。将源代码打包为包含和恰好一个根代码模块(或)的ZIP文件。使用相对资产路径,并将包含在交付的项目中。
references/build-game.mdindex.htmllogic.jsserver.jsdesign/assets.csv生成失败最多重试两次。若仍失败,使用最佳有效结果并通过代码补偿,或如实更新清单。
3. Verify and deliver
3. 验证与交付
Run the local game over HTTP, not :
file://bash
python3 -m http.server 8000Verify the complete loop, restart, missing assets, console errors, responsive canvas, non-Latin keyboard layout through , touch-only play when mobile is in scope, declared gamepad controls, fixed-timestep behavior, and multiplayer in two sessions when applicable.
event.codePackage from the directory that contains the required root files:
bash
zip -r /absolute/path/to/game.zip . -x '*.DS_Store' 'node_modules/*' '.git/*'
higgsfield game deploy /absolute/path/to/game.zip \
--title "<public title>" \
--description "<player-facing description>" \
--thumbnail "<optional https 16:9 image URL>" \
--favicon "<optional https 1:1 image URL>" \
--jsonFor an update, add ; never omit it after an update failure, because that would create a different game.
--game-id <existing_game_id>Deployment creates the playable URL. Publishing to the public marketplace is a separate external action and requires explicit user intent:
bash
higgsfield game publish <game_id> \
--name "<optional listing name>" \
--description "<optional listing description>" \
--cover-url "<optional https 16:9 URL>" \
--logo-url "<optional https 1:1 URL>" \
--jsonRe-open the returned playable URL and repeat the critical smoke path. Deliver the URL returned by CLI; never construct it manually.
通过HTTP而非运行本地游戏:
file://bash
python3 -m http.server 8000验证完整循环、重启功能、缺失资产、控制台错误、响应式画布、通过支持非拉丁语键盘布局、移动端场景下的纯触摸操作、声明的游戏手柄控制、固定时间步长行为,以及适用时的双会话多人游戏功能。
event.code从包含所需根文件的目录打包:
bash
zip -r /absolute/path/to/game.zip . -x '*.DS_Store' 'node_modules/*' '.git/*'
higgsfield game deploy /absolute/path/to/game.zip \
--title "<public title>" \
--description "<player-facing description>" \
--thumbnail "<optional https 16:9 image URL>" \
--favicon "<optional https 1:1 image URL>" \
--json若为更新,添加;更新失败后切勿省略该参数,否则会创建一个新的游戏。
--game-id <existing_game_id>部署操作会生成可玩URL。发布到公共市场是独立的外部操作,需要用户明确意图:
bash
higgsfield game publish <game_id> \
--name "<optional listing name>" \
--description "<optional listing description>" \
--cover-url "<optional https 16:9 URL>" \
--logo-url "<optional https 1:1 URL>" \
--json重新打开返回的可玩URL并重复关键冒烟测试路径。交付CLI返回的URL;切勿手动构造。
Reference order
参考文档顺序
For full games:
references/game-design-system.md- when Players is not solo
references/multiplayer.md references/stylization.md- Conditional asset references
references/build-game.md
Read each selected reference completely. Do not load unrelated references.
Supporting references opened only when their owning route requires them:
- — online client protocol.
references/client-reference.md - — platform room-kernel contract.
references/kernel-reference.md - — turn-based/event-driven rules module.
references/logic-reference.md - — raw Meshy fallback only.
references/meshy-api.md - — mandatory before any image-to-3D submit.
references/meshy-input-rules.md - — non-humanoid procedural rigs.
references/procedural-animation.md
对于完整游戏:
references/game-design-system.md- 当玩家数量不为单人时,
references/multiplayer.md references/stylization.md- 条件性资产参考文档
references/build-game.md
完整阅读每个选定的参考文档。不要加载无关的参考文档。
仅当对应的请求路由需要时,才打开支持性参考文档:
- — 在线客户端协议。
references/client-reference.md - — 平台房间内核契约。
references/kernel-reference.md - — 回合制/事件驱动规则模块。
references/logic-reference.md - — 仅作为Meshy原始 fallback。
references/meshy-api.md - — 在提交任何图像转3D操作前必须阅读。
references/meshy-input-rules.md - — 非人形程序绑定。
references/procedural-animation.md
UX rules
UX规则
- Mirror the user's language; keep generation prompts in English.
- User updates are short and describe the game, not internal gates, phase numbers, job IDs, or tool mechanics.
- Ask only when the answer materially changes the game. Do not batch unrelated questions.
- Preserve one visual system across generated and procedural assets.
- Do not request secrets in chat. Raw Meshy fallback may use a user-configured environment key only when the native Higgsfield 3D model is unavailable.
- Do not publish publicly unless the user requested marketplace publication.
- 镜像用户使用的语言;生成提示保持为英文。
- 向用户更新时内容简短,描述游戏本身,而非内部关卡、阶段编号、任务ID或工具机制。
- 仅当答案会实质性改变游戏时才提问。不要批量提出无关问题。
- 在生成的资产和程序资产中保持统一的视觉系统。
- 不要在聊天中请求密钥。仅当原生Higgsfield 3D模型不可用时,Meshy原始fallback才可使用用户配置的环境密钥。
- 除非用户请求市场发布,否则不要公开发布。
Output
输出
- Design-only: requested design artifact plus .
design/assets.csv - Assets-only: usable files/result URLs and their manifest roles.
- Full game: verified playable URL, a one-line gameplay summary, and marketplace URL only when explicitly published.
- 仅设计:返回请求的设计产物加上。
design/assets.csv - 仅资产:返回可用文件/结果URL及其清单角色。
- 完整游戏:返回经过验证的可玩URL、一行游戏玩法摘要,以及仅当明确发布时的市场URL。