跳到正文
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:

  1. A clear highlight in every menu
  2. Bottom button confirms, right button goes back
  3. Settings change with left and right
  4. An on-screen keyboard for names
  5. Hints that show the buttons in your hands
  6. 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