# Battle Drones - a vibe coded RTS with audio-based multiplayer

DevFeed: [Battle Drones - a vibe coded RTS with audio-based multiplayer](<https://devfeed.tech/articles/battle-drones-a-vibe-coded-rts-with-audio-based-multiplayer-91255.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Oct/20/battledrones/>)

Author: Simon Willison

Published: 2026-10-20T19:34:19Z

Content type: article

Language: en

Sources: [Simon Willison](<https://devfeed.tech/sources/simon-willison.md>), [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [browser-game](<https://devfeed.tech/topics/browser-game.md>), [multiplayer](<https://devfeed.tech/topics/multiplayer.md>), [3D](<https://devfeed.tech/topics/3d.md>), [generative-ai-tools](<https://devfeed.tech/topics/generative-ai-tools.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [PWA](<https://devfeed.tech/topics/pwa.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [3d](<https://devfeed.tech/tags/3d.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-2-287](<https://devfeed.tech/tags/ai-2-287.md>), [alert](<https://devfeed.tech/tags/alert.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [arctic](<https://devfeed.tech/tags/arctic.md>), [area](<https://devfeed.tech/tags/area.md>), [audio](<https://devfeed.tech/tags/audio.md>), [based](<https://devfeed.tech/tags/based.md>), [browser](<https://devfeed.tech/tags/browser.md>), [build](<https://devfeed.tech/tags/build.md>), [can](<https://devfeed.tech/tags/can.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-320](<https://devfeed.tech/tags/claude-320.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [claude-code-132](<https://devfeed.tech/tags/claude-code-132.md>), [code](<https://devfeed.tech/tags/code.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [coding-agents-261](<https://devfeed.tech/tags/coding-agents-261.md>), [drones](<https://devfeed.tech/tags/drones.md>), [game-design](<https://devfeed.tech/tags/game-design.md>), [game-design-26](<https://devfeed.tech/tags/game-design-26.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [generative-ai-2-029](<https://devfeed.tech/tags/generative-ai-2-029.md>), [llms](<https://devfeed.tech/tags/llms.md>), [llms-1-995](<https://devfeed.tech/tags/llms-1-995.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [projects](<https://devfeed.tech/tags/projects.md>), [projects-560](<https://devfeed.tech/tags/projects-560.md>), [vibe-coding](<https://devfeed.tech/tags/vibe-coding.md>), [vibe-coding-102](<https://devfeed.tech/tags/vibe-coding-102.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Battle Drones is a browser based RTS built through 12 major iterations and 321 coding agent commits, mainly with Claude Code. It runs on mobile and desktop, with 3D units, multiple game modes, six maps across five biomes, random map generation, AI opponents, and agent vs. agent battles. The author says more than 1,000 simulated playtests helped rebalance gameplay; in 1,200 AI skirmishes, games still undecided after 25 minutes fell from 14% to 0.9%. Nearby multiplayer synchronizes game state through audio between devices within microphone range, avoiding a server, but the modem sounds gave one player a headache. The author then added online play through a stateless WebSockets relay on Fly.io, estimated to cost at most $2.19 per month if continuously hot. The project is static HTML and JavaScript and works offline as a Progressive Web App. The author notes that deterministic simulation was needed to prevent small cross-browser math differences from desynchronizing replays.

## Source excerpt

My latest vibe coded game experiment is a Command & Conquer style RTS (Real Time Strategy) game called Battle Drones (play it here). Unlike my previous experiments, this one is actually fun to play. I'm somewhat embarrassed to admit that I got there by telling Claude to "Make it a LOT more fun". It also supports multiplayer between nearby devices using audio to synchronize game state! Here's what I've built so far, and some of the things I learned along the way. Battle Drones How I built this v1: the initial prototype v2: full sprites v3: varied terrain v4: the fun update v5: Battle Drones goes 3D v8: Archipelago v10: Goliath, and agent battles Agent battles v11: Random Maps v12: Multiplayer via sound Some thoughts Update: Online multiplayer support Battle Drones My initial goal was to build an RTS game I could play on my phone, in the style of Command & Conquer. I have fond memories of the 1995 original (I liked Red Alert too) and wanted to recapture a little bit of the magic. After 12 major iterations (and 321 commits by coding agents, mainly Claude Code) I now have a browser-based game that works on mobile and desktop, has multiple play modes, several maps (including a random map generator) and even supports multiplayer for two devices within microphone range of each other. (Update: also online multiplayer; the audio multiplayer induced headaches!) Here's a video demo of Battle Drones running in a desktop browser: Features so far include: 9 buildings, 7 ground vehicles, 6 aerial vehicles, 3 infantry units - all 3D models, which you can browse here Fog of war Different weapons are needed to target aerial or ground vehicles Six maps, across five biomes - temperate, desert, arctic, volcanic, tropical A random map generator Skirmish mode - red vs. blue on a rotationally symmetrical map Last Stand mode - one player holds out against as many waves of enemies as possible Area effect weapons: Barrage, EMP, Drop Pod, Sky Hammer Crate drops with bonus resources In-game mus