Simon Willison·· 18 天前AI 评分18
Claude Opus 5.5 在 Claude Code 中做出用声音联网的双人 Pong 游戏
Chirp Pong
AI 导读
Simon Willison 用 Claude Opus 5.5 Extra 在 Claude Code 中做了一个双人竞技 Pong 类游戏实验,两台手机各自运行静态 HTML,通过麦克风发送"啁啾"声、由 Web 麦克风 API 解析来传输游戏状态,验证了这种纯音频联网方式可行。
摘要与补充说明
游戏要求两名玩家把手机靠近,并在画面和玩法上加入了比 Pong 更复杂有趣的改动。
正文
中文译文正在整理,以下为来源原文。
Another game experiment - I wanted to see if it was feasible to have a two player game on two separate phones running in static HTML where the networking code uses chirps sent via the microphone. It seems to work!
Build a two player competitive pong like game where two players use their phones close to each other and the game state is sent via audio noises which the web microphone API can interpret - but add graphical and gameplay twists to make it a lot more fun and intertwine than pong
Claude Opus 5.5 Extra in Claude Code.