Chirp Pong — 使用麦克风和音频进行网络化游戏
Chirp Pong – uses microphones and audio for networked game play

原始链接: https://simonwillison.net/2026/Oct/15/chirp-pong/

另一个游戏实验——我想看看是否可行在两个独立的手机上用静态 HTML 运行双人游戏,网络代码使用通过麦克风发送的 chirp 声音。看起来可行!构建一个双人竞技的类似 pong 的游戏,两名玩家将手机靠近彼此,游戏状态通过 Web 麦克风 API 可以解读的音频噪声传输——但要加入图形和玩法上的变化,使其比 pong 更有趣、更相互交织 Claude Opus 5.5 Extra in Claude Code。

Chirp Pong 是 Simon Willison 的实验性双人 pong 类游戏,两部邻近手机通过麦克风音频 chirp 交换游戏状态。它以静态 HTML 运行,包含玩法变体,由 Claude 构建,并在 Apache 2.0 下开源。Hacker News 评论者讨论了一种有趣的重放攻击:一个孩子录制并重放游戏音频来干扰游戏。Simon 和其他人讨论了缓解措施,指出仅签名无法防止重放;计数器或循环重放窗口可能有帮助,但音频带宽限制使强健保护不切实际。帖子还提到可能的模拟/连续编码、一个未回答的带宽测试、Simon 称为“吵闹且烦人”的聊天应用想法,以及一个关于 token 使用的问题。
相关文章

原文

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.

联系我们 contact @ memedata.com