Game for desktop browsers,

Where the Light Holds

A maze tower defense game for desktop browsers. There is no install, account or timer between waves: you build the maze at your own pace and send the next wave when you are ready.

A green moor seen from above, with rows of firepots forming a maze, towers beside the lanes and a line of dark foes walking through it
waves in 5 chapters
40
towers
9
maps
4

I made this game for myself: something quick to pick up that I could keep open in a browser tab alongside other work. Between waves the board sits still for as long as you like, so you can lay out a maze, step away and send the next wave when you come back.

You build the maze out of firepots and place towers along it. Foes take the shortest path to your hall, so a longer road gives your towers more time to work. Later chapters start bending that rule: hounds jump over firepots unless a tower blocks them, and wraiths fly straight to the hall where catapults can’t reach them.

There are 40 waves in five chapters, nine towers and four maps. Each chapter brings in one new idea, mixes it with everything before it and ends with a boss built around that idea.

Try it Walkers and jumpers

Walkers go round firepots. Jumpers leap them when the way round is longer. Only a tower stops both.

The first version was set at night, and foes avoided the light of your towers. It looked good but played badly: the towers needed foes close, and the rule pushed them away. I replaced it with a daylight board that’s much easier to read, and used jumpers and flyers to keep the pathfinding interesting.

Under the hood

  • TypeScript, Vite and Preact
  • Canvas 2D rendering
  • A deterministic simulation with unit tests
  • Procedural sound with WebAudio
  • Deployed as a static site on Cloudflare Workers
Next project Ink Magic