build-mobile-threejs-games
它能做什么
这个技能帮助 AI 智能体为手机和平板构建并测试 3D 网页游戏。适合希望触屏控制和屏幕在竖屏与横屏下都能正常工作的游戏制作者。
适用场景
- ✓你希望网页游戏在手机上能用触屏控制的时候。
- ✓你需要游戏界面和按钮在竖屏和横屏下都能正常显示的时候。
- ✓游戏在移动设备上运行缓慢、需要性能检查的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-mobile-threejs-games/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让我的 3D 网页游戏在手机上易于操作,有大的触屏按钮和清晰的屏幕。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为每种屏幕方向设置触屏移动、动作按钮和布局。然后,它会在手机尺寸的视图中测试游戏,并检查速度和电量消耗。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Build Mobile Three.js Games
Treat mobile as a primary control and performance surface.
Controls
Provide a clear movement control, reachable primary actions, target selection, cancel/reset paths, and non-drag alternatives for inventory. Keep controls out of unsafe areas, avoid overlapping action zones, and show feedback for held, unavailable, and queued actions.
Responsive HUD
Design for representative portrait and landscape viewports. Keep vital status, target data, inventory, tooltips, and dialogs legible without covering the playfield. Support orientation changes without resetting gameplay state.
Performance and QA
Use device-appropriate quality defaults and adaptive decorative effects. Test touch targets, multi-touch, long sessions, audio unlock, pause/background return, reduced motion, low-end quality, and actual mobile-size viewports in the repository-approved browser.
常见问题
智能体会在手机上测试什么?
它会检查触控目标、多指输入、音频启动、从后台返回的情况以及减少动态效果的设置。它还会检查长时间游玩的情况。
旋转手机时,游戏会保持不变吗?
技能说明,屏幕方向变化不应重置游戏进度。智能体需要在屏幕旋转时保持当前的游戏状态。
这需要专门的手机应用吗?
不需要。它面向在手机网页浏览器中运行的游戏。
详情
作者的原始描述
Build, tune, or test a Three.js game for mobile web. Use for touch movement, action controls, target selection, touch inventory, safe areas, portrait/landscape layouts, responsive HUD, battery/performance budgets, and real mobile browser QA.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13360
- 许可证
- 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 模型,然后制作在网页上运行流畅的轻量版本。