author-game-levels
它能做什么
这个技能指导智能体在一块平坦的游戏区域上为 Three.js 游戏构建关卡。适合希望每条路线、每个竞技场和每盏灯都能帮助玩家明白该做什么的游戏设计师和开发者。
适用场景
- ✓你想为 Three.js 游戏设计新关卡或竞技场的时候。
- ✓关卡让人困惑,玩家不知道该往哪里走的时候。
- ✓你想在关卡中放置清晰的遭遇区、拾取物和目标的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/author-game-levels/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请设计一个平坦的竞技场关卡,包括清晰的路线、一个遭遇区,以及一个玩家容易拿到的拾取物。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会用稳定的区域 ID 设置关卡数据,把视觉效果与碰撞和导航分开,并让每个空间都有明确的用途。它会在桌面和移动设备上检查试玩过程。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Author Game Levels
Treat architecture as gameplay communication. Every route, arena, gate, prop, and light must help the player read movement, threats, objectives, or state.
Enforce one gameplay plane
Keep all collision, navigation, encounter routes, objectives, pickups, and player movement on one accessible plane.
- Do not add stairs, ramps, raised platforms, drop-offs, cliffs, bridges, ledges, pits, or vertical traversal.
- Do not change gameplay elevation for shortcuts, arenas, hazards, rewards, or visual variety.
- If visual height is requested later, keep it non-walkable background dressing. It must not alter navigation, camera occlusion, threat visibility, targetability, or player movement.
Separate level systems
Maintain explicit, independently testable layers for:
- authored level data and stable zone/anchor IDs;
- visual geometry and non-walkable background dressing;
- simplified collision geometry;
- flat navigation data and movement clearance;
- encounter, enemy, gate, reset, pickup, objective, and exit zones.
Share stable IDs and transforms between layers, but never infer collision, navigation, or encounter boundaries from decoration alone.
Lay out readable play
- Define the architectural purpose of each space: traversal, orientation, combat, recovery, reward, transition, or objective.
- Preserve clear movement, camera, and dodge corridors at the intended play distance.
- Keep threats, pickups, exits, gates, and interaction targets visible before commitment.
- Telegraph encounters through visible arena shape, approach, state change, and stable zone anchors.
- Deliberately place arenas, gates, checkpoints, retry spawns, and reset paths. Prevent soft locks, duplicate rewards, hidden re-entry, and enemies pursuing through unrelated zones.
- Use landmarks, lighting, contrast, and composition to guide without hiding hazards or making the route ambiguous.
Motivate every local light
Attach every local torch, lantern, brazier, or similar light spatially to a visible emitter. Its position, range, color, intensity, shadowing, and occlusion behavior must match what that emitter appears able to produce.
- Forbid unexplained floating local lights.
- Keep a source-to-light inventory with emitter ID, light ID, attachment transform, type, range, color/intensity, occlusion intent, enabled state, and fallback behavior.
- Move the light with a moving emitter. Disable or remove its local contribution when the emitter is disabled, hidden, destroyed, or unloaded.
- Document ambient or world lighting separately. Use it for deliberate global visibility or mood, never to fake a torch or other local source.
Validate data and geometry
- Assert that all walkable collision, navigation vertices/links, encounter anchors, gates, objectives, pickups, exits, and reset points remain on the configured gameplay plane within a small tolerance.
- Reject walkable slopes, out-of-plane links, vertical shortcuts, elevated spawn points, and level data that implies height-changing traversal.
- Check collision/nav agreement, route clearance, zone containment, deterministic gate/reset behavior, stable anchor references, and persistence of level progress.
- Validate source-to-light inventory completeness, emitter/light attachment, range/color intent, and moving or disabled emitter state transitions.
Prove traversal in the browser
Run deterministic route, collision, navigation, encounter, reset, and lighting fixtures, then traverse every critical and optional route in the repository-approved browser.
- On desktop and mobile, verify uninterrupted flat movement, dodge clearance, camera framing, threat/pickup/exit visibility, encounter telegraphs, gates, retry paths, and touch controls.
- Exercise moving and disabled emitter cases and confirm no light remains detached or unexplained.
- Inspect dense views for occlusion, console health, frame time, draw calls, memory stability, and long-session lighting cost.
- Report new failures separately from existing baseline issues.
常见问题
它允许楼梯或斜坡吗?
不允许。技能强制使用单一的平坦游戏平面,不设楼梯、斜坡、台阶或落差。
关卡的视觉效果可以有高度吗?
可以,但只能作为不可行走的背景装饰,且不改变游戏玩法。
关卡如何测试?
技能要求在桌面和移动设备上都进行试玩。
详情
作者的原始描述
Author or revise readable, flat-world Three.js game levels. Use for movement and camera routes, collision and navigation, encounter zones, landmarks, objectives, pickups, motivated lighting, visibility, deterministic level data, or desktop and mobile playthrough verification.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13351
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。