跳到正文
Simon Willison·· 4 小时前AI 评分44

Claude Opus 5.5 在 Claude Code 中做出用「鸟鸣」联网的双手机 Pong 游戏

Chirp Pong

AI 导读

Claude Opus 5.5 Extra 在 Claude Code 中构建了一款双人竞技 Pong 类游戏,两台手机通过麦克风发送音频「chirp」、由 Web 麦克风 API 解析来同步游戏状态,无需网络连接。该实验验证了在静态 HTML 中实现双设备音频联网游戏的可行性,并加入了图形与玩法上的变化。

正文

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.

来源:Simon Willison · simonwillison.net