The fifteen buildings share a single plan: 201 rows of 32 tiles. Table 0x5500 says which kind of row goes in
each one and each kind is 32 tiles at 0x71DF (there are 103 kinds). When the view changes, pinta_edificio
(0x54BD) copies the 20 visible rows to the name table that is not on screen, and the interrupt swaps tables on the
next frame: the game always draws on the back one (0x3800 or 0x3C00) and is never seen half drawn.
On top of the plan it paints, every time, the lifts, the red doors left, the broken lamps and the doors being opened.
| where | what | |
|---|---|---|
| the red doors | 0x058C, 16 bytes per building | one bit for each of the 118 doors (table 0x48ED) |
| the basement lift | 0x0557, first byte | which of the last five goes six rows further down, to the car |
| the long cars | 0x0557, second byte | one bit for each of the last five lifts: the marked ones get a 0x13 car and stop 12 rows higher |
| building | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| red doors | 4 | 5 | 6 | 6 | 7 | 8 | 8 | 8 | 9 | 9 | 10 | 10 | 11 | 12 | 14 |
Painted with the in-game patterns and colours as the game decompresses them, with each building's red doors placed
the way pinta_rojas (0x52F9) places them. They do not show the lift cars, which the game draws separately
depending on where each one is (tools/mapas.py, with the ROM: make imagenes).
![]() |
![]() |
![]() |
![]() |
![]() |
| 0 | 1 | 2 | 3 | 4 |
![]() |
![]() |
![]() |
![]() |
![]() |
| 5 | 6 | 7 | 8 | 9 |
![]() |
![]() |
![]() |
![]() |
![]() |
| 10 | 11 | 12 | 13 | 14 |
Eleven, at 0xC260 (13 bytes each), set up from table 0x0536: top row, bottom row and column. They go up and down
on their own between their two ends, with a long wait at each floor, and each step takes 8 frames. Inside a stopped
car, up and down send it wherever you press; the enemies do the same with their virtual joypad. If a car comes down
on someone, it stops and turns back while the crush countdown lasts (bajo_ascensor, 0x3126).
| lift | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| top row | 0x13 | 0x61 | 0x6D | 0x79 | 0x7F | 0x85 | 0x9D | 0x9D | 0xA9 | 0x9D | 0xA3 |
| bottom row | 0x55 | 0x6D | 0x79 | 0x9D | 0x8B | 0x9D | 0xC1 | 0xC1 | 0xC1 | 0xC1 | 0xC1 |
| column | 14 | 14 | 2 | 26 | 14 | 2 | 22 | 18 | 14 | 10 | 6 |
The 118 doors are at 0x48ED: row, column and a third byte with the side they open towards (bit 7) and their bit number in the red-door table (bits 0-6). The 36 lamps, at 0x4D2A, with their row, column and bit in 0xC032 (lit = 1). Enemies only come out of doors that are not red and are in view.