Simon Willison·· 3 小時前AI 評分33
Chirp Pong:以手機麥克風聲訊進行雙人遊戲的實驗
Chirp Pong
AI 導讀
Simon Willison 用 Claude Opus 5.5 Extra in Claude Code 製作 Chirp Pong,測試兩部手機能否透過麥克風收發聲訊傳送遊戲狀態。這個以靜態 HTML 運行的 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