跳到正文
原文
Simon Willison·· 3 小时前AI 评分13

Chirp Pong:用手机麦克风音频传输状态的双人对战游戏

Chirp Pong

AI 导读

一个实验性双人游戏 Chirp Pong 验证了在两台独立手机上用静态 HTML 运行、通过麦克风发送 chirp 音频完成联网的可行性,游戏状态由音频噪声传输并借 Web 麦克风 API 解析。该项目在 Claude Code 中使用 Claude Opus 5.5 Extra 构建,在 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