Developer diaries

Developer Diary: Three Heroes and One Castle in Crypt Caper

Sixty rooms, three floors and three heroes who each see a different castle. How we designed Crypt Caper and made sure nobody can lock themselves out.

Crypt Caper is a top-down castle explorer: 60 rooms over three floors, three relics, three guardians and a gate that only opens when you bring it all three shards. It's our tribute to the castle games of 1983, with every room, monster and line of text made new. This is how it came together.

Three heroes, three castles

The first decision was that the hero you pick should change the game, not just the sprite. The Knight throws an axe, the Wizard fires a bolt that bounces off walls and the Squire has a fast sling. More importantly, each one has a different way through the castle's secret passages. The Knight slips behind tapestries, the Wizard steps through mirrors and the Squire squeezes past crates.

That gives each class its own short cuts, so a route that works for the Knight is no use to the Wizard. Play all three and you learn the castle three times.

Relics and guardians

We wanted the ending to need a plan, not just luck. Each of the Sun, Moon and Star shards is guarded by a creature that only one relic can banish: the Lantern sends off the Grey Wraith, the Chisel the Stone Gargoyle and the Salt Jar the Bog Witch. You can only carry four things, and keys go on a ring of their own, so every trip through the castle is a small puzzle about what to take and where to leave the rest.

Your candle adds the pressure. It burns down as you walk and drops sharply when a monster touches you, so wandering costs you and food matters.

A castle you can always finish

Big adventure games of the 1980s could trap you: drop down a trapdoor without the right key and the game was over, but nobody told you. We built Crypt Caper so that can't happen. Keys are placed so every locked door can always be reached in some order, and trapdoors only drop you into parts of the castle where you can get back to the start without a key.

The castle was first designed and played as a browser game. A script then took its layout, placed every object again on the Spectrum's 8-pixel grid in four room shapes, and checked that every item, stair and passage could still be reached. Only then did it go into the tape.

Writing it for the Spectrum

Crypt Caper is written in Z80 assembly and doesn't call the Sinclair ROM at all. It has its own font, its own keyboard reading and its own interrupt handler, which is why it starts instantly in Specz's quick start as well as from a real tape. Rooms are drawn in perspective in one bright outline colour on black, which keeps colour clash out of the way: a trick explained in our guide to attribute clash.

To test it, a scripted run collects four keys and three relics, banishes all three guardians, carries the shards to the Moon Gate and wins, once as each hero, through both the 48K and 128K loaders.

A waltz for every floor

On a 128K, the AY chip plays "Danse Macabre for Three Heroes" on the title screen and a slow, creeping waltz called "Corridors" in the game. It follows you round the castle: each floor has its own key and pace, so you can hear where you are. On a 48K the game is exactly as it was first written, with the beeper. Our article on beeper and AY music explains how one tape does both.

Play it

Crypt Caper is the slowest burner in the arcade and the one that rewards a pencil most. Draw a map, pick a hero and start exploring. If flip-screen games are new to you, the history of the ZX Spectrum explains where they came from.

More from the journal

Developer diaries ·

New to Spectrum Arcade: Gold Top Grand Prix

Race Dot Dawson's milk float against three rival milkies round eight circuits of Pennyford at dawn, and spend your gold tops at the Dairy Depot. Here's how we made it.

New games and guides, straight to your inbox

Hear first when a new Spectrum game lands in the arcade. No spam, and you can unsubscribe whenever you like.