The mummies and the trap walls

The mummies

The enemies are the 22-bytes-per-entry list starting at 0xE16A, with the count at 0xE164. mueve_los_enemigos (0x6F5C) walks the list and dispatches each one by its state through tabla_6f78, which has nine entries.

Each mummy has a type, and there are five. The type is the third byte of its descriptor plus the number of times the game has been finished, clamped at 4 — so the valley gets harder every time you go round it. The table at 0x6D3C gives each type its speed in the high nibble and its colour in the low one, and both were checked against the sprite attribute table of a running machine:

type speed colour how many use it
0 5 white 10
1 5 light red 4
2 10 dark blue 9
3 10 red 7
4 11 dark yellow 4

Mummies also look for a route: busca_camino (0x734A) scans both ways, walks down up to five rows of the column classifying what it finds, and keeps the shorter of the two.

busca_enemigo_que_toca (0x5C84) handles collisions with the player. Only mummies of type 0 to 3 and type 7 kill, they must be on the same screen, and if either of the two is in state 3 the other must be as well. When the hit counts, sound effect 0x1D plays and 0xE053 goes to zero, which is the signal that the explorer has died.

The trap walls

There is a sixth list, nine bytes per entry, at 0xE3FF: the trap walls. A block of bricks comes loose from the ceiling and works its way down a column every 32 frames, killing whatever it catches — the probe at 0x68DA returns true for patterns 0x19 and 0x1A, and from there it leaves by the same door as the mummies, effect 0x1D and 0xE053 to zero.

They are in the level descriptor, two bytes each, and they are not on the map until they trigger: thirteen of them across the fifteen pyramids. This page used to say the list's identity could not be confirmed. It can now: the descriptor gives them their own block, and this is MurosTrampa in Manuel Pazos' disassembly.