跳到正文
Simon Willison·· 2 天前AI 评分18

Chirp Pong:用手机麦克风音频联网的双人 Pong 游戏实验

Chirp Pong

AI 导读

Simon Willison 用 Claude Code 中的 Claude Opus 5.5 Extra 做了一个双人竞技 Pong 类游戏实验,两台手机以静态 HTML 运行,联网代码通过麦克风发送 chirp 音频传递游戏状态,由 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.

来源:Simon Willison · simonwillison.net