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

Claude Opus 5.5 用音频"啁啾"实现双手机对战 Pong 游戏

Chirp Pong

AI 导读

Claude Opus 5.5 在 Claude Code 中构建了一款双人竞技 Pong 类游戏,两台手机通过麦克风发送"啁啾"音频传输游戏状态,由 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