Simon Willison·· 3 小时前AI 评分27
Chirp Pong:用手机麦克风声波实现双人联机游戏的实验
Chirp Pong
AI 导读
Simon Willison 借助 Claude Opus 5.5 Extra in Claude Code 制作 Chirp Pong,实现了两部手机间通过麦克风声波传输游戏状态的双人 Pong 类游戏。游戏运行于静态 HTML,Web microphone API 可解析音频信号,并加入图形与玩法变化。
正文
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