Gamejam· 来源· @ShipOnGamejam · X·· 2 小时前同新闻AI 评分72
同一新闻,精选展示《Gamejam 发布为浏览器游戏添加完整手柄支持的 Prompt 与实践指南》
正文 · 原文
Plug a controller into a typical browser game and nothing happens. Or the character runs, but every menu still needs the mouse.
Real gamepad support means the whole game works with a controller:
- A clear highlight in every menu
- Bottom button confirms, right button goes back
- Settings change with left and right
- An on-screen keyboard for names
- Hints that show the buttons in your hands
- The game pauses if the controller disconnects
We wrote one prompt that adds all of it and tested it in Claude Code on a small three.js game.
The prompt and the full checklist are in the article below 👇
来源:Gamejam · x.com