Worms.js — a Worms-inspired browser game with destructible terrain and online multiplayer

output

I’d like to share Worms.js — a simplified browser version of Worms Armageddon.

I wanted something playable in a browser that felt close to the original, so I decided to build it myself.

Right now it has two weapons — Bazooka and Grenade — plus destructible terrain, wind, explosions and knockback, fall damage, water, teams of 1–3 worms, a bot, hot-seat, and online lobbies through invite links. There’s no sound, and I don’t plan to add it.

It’s built with TypeScript, React, Next.js, Three.js and React Three Fiber, with WebGL rendering and custom GLSL shaders.

For online play, players connect directly through WebRTC whenever possible. Cloudflare Workers and Durable Objects handle lobbies, signaling, reconnect/recovery, and fallback when a direct connection isn’t possible. Everything runs on the free tier, so online play may temporarily become unavailable if the quota runs out.

I’d like to bring the physics closer to Worms Armageddon. Does anyone know of documented or reverse-engineered formulas and constants for projectile trajectories, wind, blast damage, or knockback? I’ve tuned some of these by feel, so references or measurements would be really helpful.

Online seems to work reasonably well in my own tests, but I’d love to hear how it works for people on different networks, especially across regions. If you feel like trying a match with a friend, let me know whether you could connect and how it played.

The game is free. This is an unofficial fan project and is not affiliated with Team17.

Play in your browser
Source on GitHub

3 Likes

I created my own version of a worms game called maggots, at https://maggots.vercel.app. It’s probably best played on 2 player mode for a real challenge.

How did you implement multiplayer? Are there any decent free solutions, or did you set up your own server?