They come in thousands. Hold the line.
Play Swarmline — free, in your browser
A living swarm pours down an endless road and you are the only thing standing in it. Your line of troopers runs and fires automatically — all you control is where it stands, how tightly it holds, and when it breaks. Hold FOCUS and the line condenses into a lance: piercing fire that punches through armour and melts a corridor straight up the road, at the cost of a narrow escape window. Let go and it fans into a sweeping net that mows loose swarm off the flanks. Gates still do math on your numbers — green adds, gold multiplies, red subtracts, and a red gate can be shot green before you reach it — but the road between them is now a flood. Bloaters detonate when they die, and one well-placed shot in a dense pack can rip a hole through hundreds. Armoured husks shrug off spread fire, spitters lob mortars at wherever you are standing, and brood callers knot the swarm around themselves. Every few hundred metres a Hivemother walks the road, venting fresh curtains of brood until you break its nodes and burn its core. Charge the SURGE meter and you can send a wave of your own straight up the lane. How far can you hold?
Your line runs and shoots on its own. What you control is position and shape — steer with a drag or the arrow keys, and hold FOCUS to change how the line fights.
Spread (the default) is wide, sweeping fire. It is how you clear loose swarm across the road and how you cover several lanes at once, but individual shots stop at the first body they hit.
FOCUS condenses the line into a lance. Shots pierce through several enemies, damage goes up, and your silhouette gets small enough to thread a gap — but you turn slower, so commit early.
Gates do math on your numbers: +N adds troopers, x2 and x3 multiply, −N subtracts. They come in pairs and you can only take one. A red gate is a target, not a wall — pour fire into it and it climbs toward green.
Bloaters are the bright green ones. Killing one detonates it, and the blast kills everything packed around it. Wait until they drift into a crowd and the chain does the work for you.
Armoured husks take almost nothing from spread fire and fold to a focused lance. Spitters hang back and mark the ground before a mortar lands. Brood callers pull the swarm into a knot and vent more of it.
Kills charge the SURGE meter. Releasing it sends a wave up the whole width of the road — it shreds the swarm, shatters blocks, and takes a chunk out of a Hivemother.
Score is banked per kill and multiplied by how fast you are killing right now, plus distance, gates and bosses. The run ends when the last trooper falls.
Four difficulties, chosen on the start card and again on the death screen: SKIRMISH, HOLD, OVERRUN and LAST STAND. They change how much swarm arrives, how hard it is to put down and how big a line you start with — never what you are allowed to do. Every weapon, gate and Hivemother is on every setting, and there is one leaderboard: a harder setting multiplies your score, an easier one scales it down.
Swarmline is the one game in the arcade that puts thousands of independent agents on screen at once, and it only works because the swarm is simulated in three layers. A scripted brood anchor decides where a group of enemies is heading, group cohesion keeps that group together, and individual separation and avoidance stop any two bodies stacking up.
The drawing is cut down just as hard. Every enemy is stamped from a small cache of pre-drawn sprites instead of being drawn from scratch each frame, which is the difference between a few hundred enemies and three thousand. The simulation, the player's line and the pacing never touch the screen at all, so the test suite can play whole swarms with nothing drawn.
Your own troopers are stored so that each one's position in the list is its place in the formation. That is why the line closes ranks over a casualty without any extra bookkeeping. When something lands, the gap tears open in the troopers nearest to the hit rather than at an arbitrary spot, and the rest tighten behind it.
Contact with the swarm is a rate-limited bleed, not one trooper lost per body touching you. An early version removed a trooper for every body in reach, and a line of two hundred was gone inside a second, which made a big line impossible to ever keep. Standing in a flood still kills you, but it takes the few seconds you need to steer out.
Early on, the swarm felt almost impossible to hit. The cause was a collision test that mixed two kinds of distance: sideways across the road is measured in small units, forward along it in metres. A bullet travels about a metre and a half between simulation steps, so a single shared hit radius spent almost all of its allowance on that forward gap and left a sliver for the sideways one, while enemies were sliding sideways faster than that. The biggest, slowest, most valuable targets turned out to be the hardest to hit.
The fix was to give each kind of enemy its own sideways hit window and to size the forward window to exactly one step of a bullet's travel. A test now checks that a bigger body always has a bigger window.
Your volley grows more than tenfold between the starting line of 28 and a full line of 1,000, but the swarm used to ramp up only with distance travelled, so a player who grew fast simply outran the waves sized for them. Past a few hundred troopers nothing could threaten you, and the easier settings felt identical to the hard ones.
The swarm's answer is now calculated from the same weapon formulas the player uses, so the two cannot drift apart: the more firepower you have, the more arrives, up to a cap of just over four times a starting wave. Retune the weapons and the swarm follows automatically.
A chain of bloater detonations is meant to be the high point of a run, and an early version turned it into a blank screen. Every blast adds a glow, glows add together, and forty overlapping ones summed to solid white. Glows now draw from a fixed light budget, strongest first, and the rest are dropped, so the cascade still reads as fire and not as a white flash.
Waves follow the same thinking. A brood is fed onto the road over several seconds rather than dropped as a clump, since a 400-strong brood placed all at once used to evaporate in under a second, and the pacing moves through calm, build, swarm, chaos and recovery so there is room to breathe between the worst moments.
Swarmline is a free browser-based swarm survival game. A living swarm of thousands pours down an endless road and your line of troopers fires automatically while you steer it, change its shape, and pick the gates that grow or shrink it. The run ends when your last trooper falls, and your score goes on the global leaderboard.
Yes, Swarmline is completely free to play in your browser. No download, no signup, no paywall.
Holding FOCUS condenses your line into a tight lance. Your shots pierce through several enemies instead of stopping at the first, damage goes up, and your silhouette gets small enough to thread a gap — but you turn more slowly. Releasing it fans the line back into a wide sweeping net that clears loose swarm across the road. Choosing between the two, moment to moment, is the core of the game.
Kills charge the SURGE meter at the bottom of the screen, and chains charge it faster. When it is full, one button sends a wave the full width of the road: it shreds the swarm in its path, shatters number blocks and takes a large bite out of a Hivemother. It is worth far more released into a full road than into a quiet one.
Bloaters are the bright green swarm members, and they detonate when killed. The blast kills whatever is packed around them, which can set off other bloaters in turn. Shooting one in open road is worth a handful of kills; shooting the same one after it has drifted into the middle of a dense wave can take out hundreds at once.
Gates arrive in side-by-side pairs and you can only pass through one. Green +N gates add troopers, gold x2 and x3 gates multiply your line, and red −N gates subtract. Red gates can be shot: every bullet that hits one raises its value, so with enough sustained fire a −15 flips into a green bonus before you reach it.
The Hivemother is the boss that walks the road every few hundred metres. It is not simply a large enemy — it vents fresh curtains of brood while it advances and reshapes the swarm around itself. Its core barely takes damage while its orbiting nodes are alive, so you break the nodes first; each one you destroy blows a hole in the brood nearby, and killing the Hivemother clears the field.
Each kill banks points for that enemy type, multiplied by how fast you are killing at that moment, and distance, gates passed and bosses killed all add on top. It is an endless run — difficulty keeps escalating until your line is wiped, and higher scores rank higher on the leaderboard.
Yes — four settings, picked on the start card and again on the death screen, so you can change your mind the moment a run ends. SKIRMISH gives you room to learn the shapes, HOLD is the intended balance, OVERRUN sends more of the swarm sooner, and LAST STAND does not let up. Difficulty only changes what the swarm does to you: every weapon, gate, set piece and Hivemother is available on all four. There is a single leaderboard, and your score is scaled by the setting you played — LAST STAND pays 1.9x, SKIRMISH 0.7x.
Yes. Drag anywhere on the screen to steer the line, hold the FOCUS button to condense it, and tap SURGE when the meter is full. Firing is automatic. On desktop you can also steer with the arrow keys or A and D, hold Shift to focus, and press Space to surge.
Also in: Free Browser Games for a Short Work Break, Free Retro Arcade Games in Your Browser (16-bit, Pixel Art, No Download) · All collections
All 48 free browser games · Collections · About · Updates · Contact · Terms · Privacy