Tower Defense Game

This tower defense game has you build harpoons, mortars and foghorns beside a beach path to stop six waves of crabs, jellies and urchins before they reach the lighthouse.

Players
1
Works on phone
Yes
Length
About 3 minutes

Make a game like this with Claude Code

How to play

  • Press 1, 2 or 3, or tap a tower card, then click or tap open sand to build. A tower costs gold: Harpoon 55, Foghorn 70, Mortar 90.
  • Click a tower to select it. U upgrades it twice at most, and S sells it for 70 percent of what you spent on it.
  • Space or the Call next wave button sends the next wave early and pays 1 gold for each second left on the clock. F switches the speed between 1x, 2x and 4x.

Tips

  • Build the first Harpoon on the inside of a bend. A post there sees both legs of the path, so it keeps firing longer than one beside a straight stretch.
  • Urchins have armour 6, so a plain Harpoon hit of 13 damage does 7 to one. Put a Mortar on the path: its 34-damage shell does 28 to an urchin and splashes the crabs around it.
  • A Foghorn halves the speed of everything within 4.4 metres for 1.8 seconds, so it makes every other tower in range fire longer. Build it where the path doubles back.

About Tower Defense Game

Tower Defense Game, called Lowtide Light on its title screen, is a six-wave round on one beach. Crabs, moon jellies and spine urchins come out of a storm outfall on the left and follow a path with six turns to a striped lighthouse on the right. You start with 170 gold and 20 lives. A walker that reaches the lighthouse costs 1 life, or 3 if it is an urchin.

The waves are 7 jellies, 14 crabs, 10 jellies with 6 crabs, 2 urchins with 8 jellies, 24 crabs, and a last wave of 5 urchins, 12 jellies and 12 crabs: 100 walkers in all. Each wave is tougher than the one before, and a walker in wave 6 has three times the health it would have had in wave 1.

The result screen shows your score. Each kill is worth ten times its gold reward, and a win adds 50 for every life you have left. A lost round shows the wave you reached out of six.

What is a tower defense game?

Wikipedia describes tower defense as a strategy subgenre where the aim is to defend a player's territories or possessions by obstructing enemy attackers. In this one you do that with three kinds of tower placed beside the path.

When did tower defense games arrive in the browser?

Wikipedia dates the first stand-alone browser tower defense games to 2007 and credits the boom mainly to the rise of Adobe Flash.

Is this tower defense game free?

Yes. It plays free in your browser from one 801 kB file, with no download and no account.

What does this tower defense game need to run?

A browser with WebGL. It draws the beach in 3D with three.js r180, and the kit's playtest ran it with graphics drawn in software, so a graphics card is not required, though a recent phone or laptop gives the smoothest picture.

Tower Defense Game in play: a Foghorn's ring slows a pack of moon jellies at the left bend of a sand path while a Mortar and two Harpoon posts cover the bends ahead, with a striped lighthouse at the right edge and the sea along the bottom.
Wave 3 of 6 with all 20 lives and 5 towers, played by the kit's autoplay bot. The three tower cards sit at the bottom.

About the rules and tools

  • Wikipedia: Tower defense. Source of the definition used on this page, and of the 2007 date for the first stand-alone browser tower defense games.
  • three.js. The 3D library the kit's tower defense starter draws with. This game runs on it at revision r180, read from the loaded game.

Software credits

How this game was made

The beach, towers, walkers, lighthouse, words and sounds were written for this game. The kit's autoplay bot lost the first test round. We raised the starting gold from 150 to 170 and stopped the bot calling waves early, and it then played a full round to a win with a score of 6,440, so a win and a loss are both reachable. The build time and cost cover the whole working window, which includes a few minutes of other work.

This was the prompt:

Make a tower defense game in the One-Shot Games kit: a harbour at low tide where crabs, jellies and urchins walk up the beach toward a lighthouse. Three tower types, six waves, gold and lives, a win screen and a lose screen, and it must work with touch. Our own name, art and look.
Build time
25.4 minutes
Model cost
$2.60
Game file
801.2 kB

Claude Sonnet 5.5 wrote and tested this game in Claude Code with the One-Shot Games kit. The kit measured the time and the cost. Open the build measurements.

Make one like this

One email a week. Unsubscribe anytime.