ZXHydrofool Compendium A fan guide built from the game's own code
Contents
  1. Overview
  2. Controls
  3. Where you start
  4. The screen
  5. Draining the Deathbowl
  6. Rust and oil
  7. The Deathbowl
  8. Characters
  9. Level maps
  10. Game over
  11. Trivia
  12. Notes for game makers
  13. About this guide
  14. Still to explore

Hydrofool

ZX Spectrum, 1987

Hydrofool is an isometric arcade adventure set inside the Deathbowl, a giant aquarium of 216 rooms stacked six levels deep. Somewhere in its depths are four plugs. Pull them all, in the right order, and the Deathbowl drains.

You're rusting all the while. The Rustometer fills in about six minutes, and only the oil cans scattered through the tank hold it back.

Controls

On the title screen, 1-4 choose keyboard, Kempston, Sinclair or cursor controls, 5 switches between music and sound effects, and A-D start a game (see Where you start).

On the keyboard, every key on a row does the same thing (#7EBE):

Q W E R T Left
A S D F G Down
Y U I O P Up
H J K L ENTER Right
Bottom two rows (CAPS SHIFT to SPACE) Fire
SYMBOL SHIFT + 1 Quit to the menu
SYMBOL SHIFT + 0 Pause (0 resumes)

The directions are the game's own names for its joystick bits. In the isometric view each one moves you along a diagonal of the floor.needs verification

Menu: Deathbowl A to D, controls 1 to 4
The title screen. Below the menu is a real room of the Deathbowl (room 2).

Where you start

The four letters on the title screen, each named after a song, start you in four different rooms (table at #8567). Tested by starting a game with each.

KeyTitleRoomLevelRoom type
AReturn to Sender823Deathbowl
BJail House Rock1926Deathbowl
CO Sole O Mio261Baby Whale
DHeartbreak Hotel1324Deathbowl

The screen

A red Deathbowl room with the panel below
Starting in room 82 (option A).
Oil can and numberOil cans left (starts at 42). See Rust and oil.
Room nameThe kind of room you're in, one of ten (below).
NoticeA joke notice, one of seven: FEEDING PROHIBITED, BATHING NOT ALLOWED, DONT TAP THE GLASS, NOW WASH YOUR HANDS, NOT DRINKING WATER, DONT BITE THE FISH, PLEASE GO QUIETLY.
Number on the rightYour score.
RustometerHow rusty you are. When it fills, the game is over.

Draining the Deathbowl

Each level's entry in a small table (#7281) names its plug room. Four levels have one; levels 1 and 4 don't. Each plug room holds the plug itself, item #6B, found nowhere else. Pulling a plug adds one to your plug count (#94FD).

Plug roomWhere
50level 2, row 3, column 2
101level 3, row 5, column 5
155level 5, row 2, column 5
216level 6, row 6, column 6

The game ends with the plugs when you go down out of the bottom level. If four plugs have been pulled by then, you win:

THE FOURTH PLUG PULLED
JUST LIKE YOU PLANNED
SO - SEE YOU SOON
- IN WUNDERLAND!

Otherwise you get the game's hint:

HYDROFOOL - DONT GO SO FAST
THE WISE MAN PULLS
THE LAST PLUG LAST

The last plug room, 216, is the bottom corner of the bottom level, so leave it until the end.needs verification

The endings and the plug rooms come from the code (#87A3, #8A97); a full winning game hasn't been played through in the emulator yet.

Rust and oil

The Rustometer (#6502) goes up one step about every 4 seconds and the game ends when it reaches 82: about six minutes from clean. (Tested: standing still from a fresh start, the game ended at 5 minutes 50 seconds.)

Touching an oil can uses one from your stock (the number by the can on the panel, starting at 42) and runs the Rustometer back down to zero in about a second (#6622, #6580). Tested: the count went from 42 to 41 and the Rustometer from 4 to 0. Rust also stops in rooms 1 and 2.

The player beside an oil can
Picking up an oil can in a Piranha room.

The Deathbowl

The tank is 216 rooms on six levels, each a 6 x 6 grid. Rooms are numbered from 1 at the top-left of the top level, so a room's neighbours are always 1 and 6 away, and the room above or below is 36 away. Each room's record (table at #6CCF) has four door bits: north (-6), east (+1), south (+6) and west (-1). You move between levels by floating up out of a room (to the room 36 lower) or sinking down through it (36 higher) (#8A6B, #8A87). In testing, the player floated up from room 82 to room 46 in the first ten seconds of a game.

Entering a room for the first time adds 0.5% to DEATHBOWL DIVINED (#6743).

Room typeRooms
Deathbowl71
Baby Whale27
Jellyfish22
Wolf Fish22
Sea Slug21
Anemone15
Oyster13
Piranha11
Seahorse10
Plug Room4
The player floating upwards
The first seconds of a game from room 82: the player rises out of the top of the room.

Characters

The creatures in each kind of room, animated in the frame order the game uses (logged frame by frame in an emulator). The game draws each room in one colour, so these colours are just for this page. What each creature does to you is still to be worked out.

You The player

Your diver. Standing still it bobs through frames 2, 3, 2, 4, 2, 3, 10, 4. There are only two sets of frames, front and back; the game mirrors them for the other two directions.

Facings
4 (2 sets of frames, mirrored)

Jellyfish Creature

Pulses through three frames, and turns round by mirroring them. Seen in Jellyfish rooms.

Rooms of its type
22

Baby Whale Creature

Two frames each way (41-42 and 43-44). Seen in Baby Whale rooms.

Rooms of its type
27

Seahorse Creature

Two frames, flipping to face its way. Seen in Seahorse rooms.

Rooms of its type
10

Sea Slug Creature

Rises out of a flat blob in four frames, waits, then sinks back down. Seen in Sea Slug rooms.

Rooms of its type
21

Wolf Fish Creature

A big fish with two frames each way (31-32 and 33-34). Seen in Wolf Fish rooms.

Rooms of its type
22

Piranha Creature

A shoal of small fish, drawn as one sprite (frames 15, 16, 20 and 29). Seen in Piranha rooms.

Rooms of its type
11
The diver facing four ways
Your four facings: front, front mirrored, back, back mirrored.
An anemone waving
Anemone (Anemone rooms).
A spinning whirlpool
The whirlpool in every plug room.
A plug
The object beside it in the plug rooms (sprite 72).
An oil can
An oil can.
Rising bubbles
Bubbles.
Sparkles
Sparkles, in many rooms.

Level maps

Every room as the game draws it, captured by starting a game in each room in an emulator. Yellow bars between rooms are doors; a hollow marker is a door with no matching door on the other side (or one that leads off the level). Plug rooms are outlined. Open an image for full size.

Map of level 1
Level 1: rooms 1-36. No plug on this level.
Map of level 2
Level 2: rooms 37-72. The plug room is 50.
Map of level 3
Level 3: rooms 73-108. The plug room is 101.
Map of level 4
Level 4: rooms 109-144. No plug on this level.
Map of level 5
Level 5: rooms 145-180. The plug room is 155.
Map of level 6
Level 6: rooms 181-216. The plug room is 216.

Game over

At the end the game tallies your run: how much of the Deathbowl you divined, your score, and the plugs, goodies and gnomes you collected (#86CC).

Deathbowl divined 1.9%, score, plugs, goodies, gnomes
The tally after a short game.

Trivia

  • The four starting points are named after songs: Return to Sender, Jail House Rock, O Sole O Mio and Heartbreak Hotel.
  • The scene under the title menu is a real room of the game, room 2. Room 1 is where the score tally appears.
  • The whole tank is one table of 216 variable-length room records. To find room n, the game skips the first n-1 records one by one.
  • Seven joke notices rotate on the panel, from DONT TAP THE GLASS to NOW WASH YOUR HANDS.
  • Rooms named Deathbowl make up a third of the tank (71 rooms).
  • The tape loads all of memory in one turbo block, under a loader that counts down on screen. The game only starts once the loader gives up waiting for more tape.

Notes for game makers

The techniques and ideas in Hydrofool that are worth learning from, with addresses for anyone reading along in the disassembly.

For developers

  • A world as arithmetic. Numbering 216 rooms in a 6 x 6 x 6 block means neighbours are just -6, +1, +6, -1 and up and down are -36 and +36. No exit tables at all: four door bits per room are enough.
  • Rooms from templates. Each room record names one of 16 layout templates (#72B1), then lists items placed on its floor grid as (cell, item) pairs. Most rooms take only 4 bytes.
  • Variable-length records. The room table stores each record's length in its first byte and finds a room by skipping records. That is slow but compact, and it only runs when you change rooms.
  • Whole keyboard rows. Reading a half-row and testing "any key pressed" gives five generous controls with no key redefinition (#7EBE).
  • Strings after the CALL. The print routine reads its text, including print positions, from the bytes that follow the CALL (#850E).
  • Image and mask pairs. Every sprite is drawn with a matching solid mask, found through a table (#6C06): image n uses the mask the table gives for n, so many images can share one mask.
  • Mirroring in place. To face the other way, the game flips a sprite's stored graphic itself and notes the new direction in a bit of its header (#7E4F). Only one direction is stored, and it is only flipped when the facing changes.
  • Isometric in two lines. A position (x, y, height) becomes the screen point column 128 - 2x + 2y and row 152 + x + y - height, less a per-object offset (#97BA).
  • Decimal counters. Score, oil, plugs and the explored percentage are BCD, so printing them needs no division.

For designers

  • A clock you can refill. The Rustometer gives the game a soft time limit, and the oil cans turn exploring into a race between them.
  • Order matters. The plugs aren't just collectables: the last one ends the game, so the player has to plan a route, and the game says so in a verse.
  • A depth to explore. Floating up and sinking down give the tank a third dimension; "Deathbowl divined" shows how much you've seen.
  • Choose your start. Four starting points on different levels give each game a different first map.
  • Personality in the panel. Rotating joke notices make an aquarium of hostile fish feel like a place.

About this guide

Cheat codes: every keyboard read was checked: there is no cheat code. The input routine has an unused autopilot (#617B): any value poked there replaces the controls, and the diver walks by himself (tested with a poke); nothing in the game sets it.

Everything here comes from a disassembly of the tape and from running it in an emulator: the room table, the plug table, the controls, the endings and the Rustometer. The room pictures were made by starting a game in every room. Facts marked needs verification come from the code but haven't been confirmed in play.

Hydrofool belongs to its original creators. This is an unofficial fan guide.

Still to explore

Parts of the game this guide hasn't worked out yet. They're the next things to dig into in the code.

AreaWhat we knowStill to find out
Goodies and gnomesThe tally counts both (#938C, #8B8E).What they look like, where they are and what they give you.
The creaturesTheir sprites and animations are on this page.How each one moves, which hurt you, and what protects you.
Other itemsRooms also hold objects drawn with sprites 54, 62, 64, 68, 116 and 118.What they are; some may be the goodies.
The scoreEvery game in testing started at 153; it rose by 2 in the second an oil can was picked up.What scores, and why it starts at 153.
Going up and downFloating up goes 36 rooms back, sinking 36 forward. Items #66 and #6A, which take an extra byte, are placed 36 times across the rooms.Where exactly you can rise or sink, and whether those items are the passages.
One-way doors37 doors have no matching door on the other side.Whether they really work one way.
Rooms 1 and 2No doors; room 2 is under the title menu, room 1 shows the tally; floating up from room 1 leads to room 2, and sinking from room 2 returns you to your start.How a player reaches them, and what they are for.
Pulling a plugThe count goes up when the plug room's state reaches 15 (#94F4).What you do to pull one, tested in play.
SoundMusic or effects can be chosen on the menu.What the tunes are.