Tunes
The tune played on the title screen is The Blue Danube by Johann Strauss II. The tune played during gameplay is In the Hall of the Mountain King by Edvard Grieg.
Taking a BREAK
The game quits if BREAK - that is, CAPS SHIFT and SPACE - is pressed (see 34801).
6031769
If you type the digits 6031769 at any point during the game, a cheat mode is activated that enables Willy to teleport to any cavern; a boot appears next to Willy's remaining lives to show that the cheat mode has been activated.
For example, to teleport to The Vat, hold down keys '2' and '3', and then press '6' to activate the teleporter. For a list of all the caverns and their teleport codes, see the Caverns page.
The number 6031769 comes from Matthew Smith's driving licence, "with an error in it and twisted round a bit" (as he put it in an interview for issue 48 of Retro Gamer magazine).
Stuck on 16
In The Sixteenth Cavern, Willy can get stuck if he enters the area below the portal before collecting all the items outside that area:
stuck_on_16
If that happens, he will have to wait until the air runs out before getting a second chance to escape from the cavern.
See also No way out of The Warehouse.
No swordfish for cheats
The game ending - with Willy above ground and the portal in The Final Barrier changed to the swordfish graphic - is not shown if cheat mode is activated (see 36919).
Unused crumbling floor
The crumbling floor tile in Skylab Landing Bay is unique to that cavern, and also not used.
crumbling_floor_13
To place a couple of these tiles in the cavern in order to see them crumble:
POKE 58811,10: POKE 58812,10: POKE 58930,10
Unused conveyors
Every cavern definition contains a conveyor definition, and every conveyor has non-zero length and is animated by the routine at 37125. But there are two caverns in which the conveyor is hidden or otherwise unusable.
The first unused conveyor is of length 1, defined at (0,19) in The Endorian Forest (see 54895). Instead of a conveyor, the space is occupied by a background tile.
To show the conveyor:
POKE 54291,67
The other unused conveyor is of length 3, defined at (9,7) in Amoebatrons' Revenge (see 63087). Instead of a conveyor, the space is occupied by a platform, whose third row of pixels is animated as if it were a conveyor (which is a bug).
To replace the platform with conveyor tiles:
POKE 62759,4: POKE 62760,4: POKE 62761,4
Note that this conveyor moves left to right, and so if it were activated it would make the cavern unfinishable. To make the conveyor move right to left:
POKE 63087,0
The persistent item
The item below the portal in The Sixteenth Cavern does not disappear if Willy leaves it till last and collects it by falling on it from above. The reason for this is that the portal is opened as soon as Willy collects the item, and the screen is not refreshed before he moves on to the next cavern.
persistent_item
Light logic
At times it might seem as if the light beam in Solar Power Generator moves around at random, but in fact its movements are predictable and always follow these simple rules (see 36211):
In addition, for every frame that the light beam is in contact with Willy, the air supply is reduced by an extra eight or twelve units - four for each of the two or three cells of Willy's sprite that the beam touches - making nine or thirteen units in total. For every eight units of air consumed, one vertical line of pixels is removed from the right end of the air bar (see 35388).
Top half twice
When The Final Barrier is drawn to the screen buffer at 28672, the graphic data for the top half of the cavern (at 40960) is copied twice: once after the first (pointless) run through the loop at 35468, and again after the second run through the loop has drawn the bottom half of the cavern.
Bottom half twice
After Willy has jumped through the portal in The Final Barrier to the ground above, and the celebratory sound effect and colour-cycling effect have finished, the bottom half of Willy's sprite can be been dangling below the swordfish graphic (where the portal was) while the remaining air supply decreases to zero.
bottom_half_twice
This happens because the section of code at 36926 draws Willy above ground, but does not remove him from the portal entrance. And although his residual bottom half is hidden briefly by setting the appropriate attribute values to 0 (INK 0: PAPER 0), it is left on display with an attribute value of 1 (INK 1: PAPER 0) after the colour-cycling effect has finished.
Item graphics
The commonest item graphic is the key, which appears in Central Cavern, The Menagerie, Abandoned Uranium Workings, Processing Plant, The Vat, Wacky Amoebatrons, The Warehouse, Amoebatrons' Revenge, Solar Power Generator and The Final Barrier.
item00
Next is the banana, which appears in Miner Willy meets the Kong Beast and Return of the Alien Kong Beast:
item07
The other eight caverns have their own unique item graphics:
Item counts
Thirteen of the twenty caverns have a full set of five items.
Miner Willy meets the Kong Beast, Skylab Landing Bay and The Sixteenth Cavern each have four items.
The Bank and Solar Power Generator both have three items.
There are no caverns that have exactly two items.
Wacky Amoebatrons and Amoebatrons' Revenge both have only one item.
Extra items
The Bank has five items defined, but only three of them are used; The Sixteenth Cavern also has five items defined, but only four of them are used.
The two extra items in The Bank are at (6,19) and (13,30), shown here in bright white:
the_bank_extra_items
The extra item in The Sixteenth Cavern is at (5,26) - in the path of the cyan guardian - shown here in bright white:
the_sixteenth_cavern_extra_items
The fastest guardians
There are three guardians that move four pixels up or down every frame - faster than any other guardians in the game: the white Skylab in Skylab Landing Bay, the magenta guardian in The Warehouse, and the cyan guardian in Amoebatrons' Revenge.
Guardian colours
The most common guardian colour is yellow (21 instances), and the least common colour is black (only one instance, in Eugene's Lair).
As for the other colours, there are 3 blue guardians, 10 red guardians, 12 magenta guardians, 13 green guardians, 14 cyan guardians, and 5 white guardians.
Guardian counts
The cavern with the most guardians is Amoebatrons' Revenge, which has eight (the maximum).
The cavern with the least guardians is Central Cavern, which has only one.
Guardians need a clear path
The guardian-drawing code kills Willy if a guardian collides with anything that's already been drawn in the cavern. This means, for example, that Willy is killed if a guardian hits a nasty, a wall or the floor.
See this happen by placing a wall block in the path of the guardian in Central Cavern:
POKE 45327,22
Off on the wrong foot
In some caverns, Willy starts off facing the wall, and so has to turn round before navigating his way out:
To make Willy start off facing the other way:
Variable air supply
The initial air supply varies from cavern to cavern by small amounts, because of differences in the initial value of the game clock at 32957 - 128, 240, 248 or 252 - which is copied from byte 701 of the cavern definition.
The caverns with the greatest initial air supply are Central Cavern, The Cold Room, Ore Refinery, The Bank and The Final Barrier, which initialise the game clock to 252.
Next are The Endorian Forest, Skylab Landing Bay and The Sixteenth Cavern, which initialise the game clock to 248.
Then it's Solar Power Generator, which initialises the game clock to 240.
The other 11 caverns initialise the game clock to 128, which means the cell at the right end of the air bar in those caverns starts off with only three white pixel columns instead of seven.
Repeating caverns
There are six caverns in which the guardians all return to their original locations at the same time at least once before the air runs out:
Note that normal speed horizontal guardians are not drawn to the screen at their initial locations when Willy enters a cavern, because they are moved once before the cavern is first drawn; the same is true for each vertical guardian, unless its initial position is at the top of its path and it is initially moving up, or its initial position is at the bottom of its path and it is initially moving down - in these cases it remains stationary for one frame before changing direction.
No way out of The Warehouse
If too many of the crumbling floors have disappeared in The Warehouse, Willy won't be able to reach the portal. For example:
no_way_out
If that happens, he will have to wait until the air runs out before getting a second chance to escape from the cavern.
See also Stuck on 16.
The unreachable million
The score (at least, the part of it that is printed - see 33829) rolls around to zero when it hits a million.
Horizontal Skylabs?
There are three horizontal guardians defined in Skylab Landing Bay, but they're not used. We can only wonder what they might have looked like before being replaced by the Skylabs.
Out of bounds
There are two vertical guardians that start off in a location that they never return to.
The first one is the bright magenta guardian in The Warehouse. It starts off at pixel y-coordinate 0 - the very top of the cavern - but does not go above y=4 again after it has started moving (see 62194).
The second one is the blue vertical guardian in Solar Power Generator. It starts off at pixel y-coordinate 80 - touching the platform that Willy is standing on initially - but does not go below y=79 again after it has started moving (see 64235).
Source code remnants
Before the game starts for the first time, the 512-byte cavern buffer at 32768 contains source code remnants (shown below). The DB directives define part of the title screen tune data at 33902. There are more source code remnants at 37708.
32768 DEFM "50,171,192,50,48,68"
32787 DEFW 790 790 DB "50,48,68,50,171,192,50,136,137"
32789 DEFB 34
32790 DEFM 9,"DB",9,"50,48,68,50,171,192,50,136,137"
32824 DEFW 800 800 DB "50,136,137,50,114,115,50,76,77"
32826 DEFB 34
32827 DEFM 9,"DB",9,"50,136,137,50,114,115,50,76,77"
32861 DEFW 810 810 DB "50,7?????????????92,50,38,48"
32863 DEFB 32
32864 DEFM 9,"DB",9,"50,7"
32872 DEFB 0,0,0,0,0,0,0,0,0,0,0,0,0
32885 DEFM "92,50,38,48"
32896 DEFW 820 820 DB "50,38,4??50,171,192,50,48,68"
32898 DEFB 32
32899 DEFM 9,"DB",9,"50,38,4"
32910 DEFB 255,0
32912 DEFM "50,171,192,50,48,68"
32931 DEFW 830 830 DB "50,48,????0,171,19??50,136,137"
32933 DEFB 34
32934 DEFM 9,"DB",9,"50,48,"
32944 DEFB 0,0,0,0
32948 DEFM "0,171,19"
32956 DEFB 0,0
32958 DEFM "50,136,137"
32968 DEFW 840 840 DB "50,136,137,???114,115,50,76,77"
32970 DEFB 34
32971 DEFM 9,"DB",9,"50,136,137,"
32986 DEFB 255,0,0
32989 DEFM "114,115,50,76,77"
33005 DEFW 850 850 ?B "50,76,77,50,171,203,50,38,51"
33007 DEFB 32
33008 DEFM 9,255,"B",9,"50,76,77,50,171,203,50,38,51"
33040 DEFW 860 860 DB "50,38,51,50,171,203,50,51,64"
33042 DEFB 32
33043 DEFM 9,"DB",9
33047 DEFM "50,38,51,50,171,203,50,51,64"
33075 DEFW 870 870 DB "50,51,64,50,171,203,50,128,129"
33077 DEFB 34
33078 DEFM 9,"DB",9,"50,51,64,50,171,203,50,128,129"
33112 DEFW 880 880 DB "50,128,129,50,102,103,50,86,87"
33114 DEFB 34
33115 DEFM 9,"DB",9,"50,128,129,50,102,103,50,86,87"
33149 DEFW 890 890 DB "50,64,65,50,128,171,50,32,43"
33151 DEFB 32
33152 DEFM 9,"DB",9,"50,64,65,50,128,171,50,32,43"
33184 DEFW 900 900 DB "50,32,43,50,128,171,50,43,51"
33186 DEFB 32
33187 DEFM 9,"DB",9,"50,32,43,50,128,171,50,43,51"
33219 DEFW 910 910 DB "50,43,51,50,128,171,50,128,129"
33221 DEFB 34
33222 DEFM 9,"DB",9,"50,43,51,50,128,171,50,128,129"
33256 DEFW 920 920 DB "50,128,129,50,102............."
33258 DEFB 34
33259 DEFM 9,"DB",9,"50,128,129,50,102"