ProjectsBattleBGM
A guest round of BattleBGM on the Old School RuneScape map, zooming in, locking in a guess in Asgarnia, and seeing how close it was

Multiplayer game

BattleBGM

Guess where the game music plays

battlebgm.comSource is private
7,859hostile requests, no server errors
1runtime dependency in the browser
About 4,700approved tracks across three games

BattleBGM is a multiplayer game where you hear a piece of music from a game you know and guess where on its map it plays. It covers Old School RuneScape, MapleStory, and World of Warcraft, and it has free play, daily and weekly rounds, custom lobbies, and ranked 1v1 matches.

How it works

The browser plays short clips and sends a guess, and the server does everything that has to be trusted. It scores each round, hands out clips with nothing in them that names the answer, and keeps the state of every lobby. The client is written without a framework, and a QR code library is its only runtime dependency.

The mode picker, with Free Play, Daily, Weekly, and Score Attack. Daily and Weekly ask a guest to log in.
The mode picker as a guest sees it. Daily and Weekly ask for a log in.

Lobbies are the part that has to keep working while people come and go. A lobby has one writer, so two players acting at once can't corrupt its state, and the state sits in Redis so a restart doesn't end a game. A route fuzzer run sent 7,859 hostile requests and got no server errors back.

Behind the game is a catalog of about 4,700 approved tracks across the three games, which a Python tool prepares as short clips. The site has been live since September 8, 2026, and the source is private.

Highlights

  1. One writer for each lobbyEvery change to a lobby goes through a single writer, and its state lives in Redis, so a restarted server rebuilds the lobbies and players reconnect to them.
  2. The answer stays on the serverScoring happens on the server, and a clip arrives with no title or source attached, so the answer never reaches the browser early.
  3. Smoother map zoom in FirefoxA first zoom into the Victoria Island map drew stepped, choppy frames in Firefox. Building the images ahead of time cut them by two thirds or more.

Built with

  • TypeScript
  • Fastify
  • PostgreSQL
  • Redis
  • WebSocket
  • Python

Details

Started
Status
Live since September 8, 2026
Source
Private