Prev: EC00 Up: Map Next: F400
F000: The Warehouse (teleport: 56)
Used by the routine at 8684.
the_warehouse
The first 512 bytes are the attributes that define the layout of the cavern.
F000 DEFB $16,$00,$00,$00,$00,$00,$00,$00 Attributes
F008 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F010 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F018 DEFB $00,$00,$00,$00,$00,$16,$16,$16
F020 DEFB $16,$00,$00,$00,$00,$00,$00,$00
F028 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F030 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F038 DEFB $00,$00,$00,$00,$00,$00,$00,$16
F040 DEFB $16,$00,$00,$00,$00,$00,$00,$00
F048 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F050 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F058 DEFB $00,$00,$00,$00,$00,$00,$00,$16
F060 DEFB $16,$00,$00,$00,$00,$00,$00,$00
F068 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F070 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F078 DEFB $00,$00,$00,$00,$00,$00,$00,$16
F080 DEFB $16,$00,$00,$00,$00,$00,$06,$00
F088 DEFB $00,$06,$00,$00,$00,$06,$00,$00
F090 DEFB $06,$00,$00,$00,$00,$00,$06,$00
F098 DEFB $06,$00,$00,$00,$00,$00,$00,$16
F0A0 DEFB $16,$04,$04,$44,$44,$44,$44,$44
F0A8 DEFB $44,$44,$00,$00,$44,$44,$44,$44
F0B0 DEFB $44,$44,$44,$00,$00,$44,$44,$44
F0B8 DEFB $00,$44,$44,$00,$00,$04,$04,$16
F0C0 DEFB $16,$44,$44,$21,$44,$44,$44,$44
F0C8 DEFB $44,$44,$00,$00,$44,$44,$44,$44
F0D0 DEFB $44,$44,$44,$00,$00,$44,$44,$44
F0D8 DEFB $44,$44,$44,$00,$00,$44,$44,$16
F0E0 DEFB $16,$44,$44,$44,$44,$44,$44,$44
F0E8 DEFB $44,$44,$00,$00,$44,$44,$44,$00
F0F0 DEFB $44,$44,$44,$00,$00,$44,$44,$44
F0F8 DEFB $44,$44,$21,$00,$00,$44,$44,$16
F100 DEFB $16,$44,$44,$00,$00,$44,$44,$44
F108 DEFB $44,$44,$00,$00,$44,$44,$20,$20
F110 DEFB $20,$20,$20,$00,$00,$44,$44,$44
F118 DEFB $44,$44,$44,$00,$00,$44,$44,$16
F120 DEFB $16,$00,$44,$00,$00,$44,$44,$44
F128 DEFB $44,$44,$00,$00,$44,$44,$44,$44
F130 DEFB $44,$44,$44,$00,$00,$44,$44,$44
F138 DEFB $44,$44,$44,$00,$00,$44,$44,$16
F140 DEFB $16,$44,$44,$00,$00,$44,$44,$44
F148 DEFB $44,$44,$00,$00,$44,$44,$44,$44
F150 DEFB $44,$44,$44,$00,$44,$44,$21,$44
F158 DEFB $44,$44,$44,$00,$00,$44,$44,$16
F160 DEFB $16,$44,$44,$00,$00,$44,$44,$44
F168 DEFB $44,$21,$00,$00,$44,$44,$44,$44
F170 DEFB $44,$44,$44,$44,$44,$44,$44,$44
F178 DEFB $44,$44,$00,$00,$00,$44,$44,$16
F180 DEFB $16,$44,$44,$00,$00,$44,$44,$44
F188 DEFB $44,$44,$00,$00,$44,$44,$44,$44
F190 DEFB $44,$44,$44,$44,$44,$44,$44,$44
F198 DEFB $44,$44,$44,$00,$00,$44,$44,$16
F1A0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
F1A8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F1B0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F1B8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
F1C0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
F1C8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F1D0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
F1D8 DEFB $00,$00,$00,$04,$04,$04,$04,$16
F1E0 DEFB $16,$04,$04,$04,$04,$04,$04,$04
F1E8 DEFB $04,$04,$04,$04,$04,$04,$04,$04
F1F0 DEFB $04,$04,$04,$04,$04,$04,$04,$04
F1F8 DEFB $04,$04,$04,$04,$04,$04,$04,$16
The next 32 bytes are copied to 8000 and specify the cavern name.
F200 DEFM " The Warehouse " Cavern name
The next 72 bytes are copied to 8020 and contain the attributes and graphic data for the tiles used to build the cavern.
background_16 floor_16 crumbling_floor_16 wall_16 conveyor_16 nasty1_16 nasty2_16 extra_16
F220 DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Background
F229 DEFB $04,$FF,$FF,$DB,$6E,$C5,$40,$00,$00 Floor
F232 DEFB $44,$FF,$AA,$55,$AA,$55,$AA,$55,$AA Crumbling floor
F23B DEFB $16,$FF,$99,$BB,$FF,$FF,$99,$BB,$FF Wall
F244 DEFB $20,$F0,$66,$F0,$66,$00,$00,$00,$00 Conveyor
F24D DEFB $06,$44,$28,$94,$51,$35,$D6,$58,$10 Nasty 1
F256 DEFB $21,$42,$D7,$FE,$65,$A6,$7D,$EE,$D7 Nasty 2
F25F DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Extra (unused)
The next seven bytes are copied to 8068-806E and specify Miner Willy's initial location and appearance in the cavern.
F268 DEFB $30 Pixel y-coordinate * 2 (see 8068)
F269 DEFB $03 Animation frame (see 8069)
F26A DEFB $01 Direction and movement flags: facing left (see 806A)
F26B DEFB $00 Airborne status indicator (see 806B)
F26C DEFW $5C61 Location in the attribute buffer at 5C00: (3,1) (see 806C)
F26E DEFB $00 Jumping animation counter (see 806E)
The next four bytes are copied to 806F and specify the direction, location and length of the conveyor.
F26F DEFB $01 Direction (right)
F270 DEFW $780E Location in the screen buffer at 7000: (8,14)
F272 DEFB $05 Length
The next byte is copied to 8073 and specifies the border colour.
F273 DEFB $02 Border colour
The next byte is copied to 8074, but is not used.
F274 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
F275 DEFB $23 Item 1 at (5,24)
F276 DEFW $5CB8
F278 DEFB $60
F279 DEFB $FF
F27A DEFB $24 Item 2 at (7,15)
F27B DEFW $5CEF
F27D DEFB $60
F27E DEFB $FF
F27F DEFB $25 Item 3 at (9,1)
F280 DEFW $5D21
F282 DEFB $68
F283 DEFB $FF
F284 DEFB $26 Item 4 at (10,19)
F285 DEFW $5D53
F287 DEFB $68
F288 DEFB $FF
F289 DEFB $23 Item 5 at (11,26)
F28A DEFW $5D7A
F28C DEFB $68
F28D DEFB $FF
F28E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal16
F28F DEFB $4C Attribute
F290 DEFB $FF,$FF,$80,$01,$BF,$FD,$A0,$05 Graphic data
F298 DEFB $A5,$A5,$A5,$A5,$A5,$A5,$A5,$A5
F2A0 DEFB $A5,$A5,$A5,$A5,$AF,$F5,$A5,$A5
F2A8 DEFB $A5,$A5,$A5,$A5,$A5,$A5,$FF,$FF
F2B0 DEFW $5C3D Location in the attribute buffer at 5C00: (1,29)
F2B2 DEFW $603D Location in the screen buffer at 6000: (1,29)
The next eight bytes are copied to 80B4 and define the item graphic.
item16
F2B4 DEFB $30,$48,$88,$90,$68,$04,$0A,$04 Item graphic data
The next byte is copied to 80BC and specifies the initial air supply in the cavern.
F2BC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
F2BD DEFB $80 Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
F2BE DEFB $C2 Horizontal guardian 1: y=13, initial x=5, 5<=x<=8, speed=slow
F2BF DEFW $5DA5
F2C1 DEFB $68
F2C2 DEFB $00
F2C3 DEFB $A5
F2C4 DEFB $A8
F2C5 DEFB $05 Horizontal guardian 2: y=13, initial x=12, 12<=x<=25, speed=normal
F2C6 DEFW $5DAC
F2C8 DEFB $68
F2C9 DEFB $00
F2CA DEFB $AC
F2CB DEFB $B9
F2CC DEFB $FF,$00,$00,$00,$00,$00,$00 Horizontal guardian 3 (unused)
F2D3 DEFB $00,$00,$00,$00,$00,$00,$00 Horizontal guardian 4 (unused)
F2DA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
F2DB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
F2DD DEFB $41 Vertical guardian 1: x=3, initial y=64, 64<=y<102, initial y-increment=2
F2DE DEFB $00
F2DF DEFB $40
F2E0 DEFB $03
F2E1 DEFB $02
F2E2 DEFB $40
F2E3 DEFB $66
F2E4 DEFB $06 Vertical guardian 2: x=10, initial y=64, 3<=y<96, initial y-increment=-3
F2E5 DEFB $01
F2E6 DEFB $40
F2E7 DEFB $0A
F2E8 DEFB $FD
F2E9 DEFB $03
F2EA DEFB $60
F2EB DEFB $47 Vertical guardian 3: x=19, initial y=48, 0<=y<64, initial y-increment=1
F2EC DEFB $02
F2ED DEFB $30
F2EE DEFB $13
F2EF DEFB $01
F2F0 DEFB $00
F2F1 DEFB $40
F2F2 DEFB $43 Vertical guardian 4: x=27, initial y=0, 4<=y<96, initial y-increment=4
F2F3 DEFB $03
F2F4 DEFB $00
F2F5 DEFB $1B
F2F6 DEFB $04
F2F7 DEFB $04
F2F8 DEFB $60
F2F9 DEFB $FF Terminator
The next 6 bytes are unused.
F2FA DEFB $00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
the_warehouse_guardian0 the_warehouse_guardian1 the_warehouse_guardian2 the_warehouse_guardian3 the_warehouse_guardian4 the_warehouse_guardian5 the_warehouse_guardian6 the_warehouse_guardian7
F300 DEFB $55,$55,$FF,$FF,$FF,$FF,$08,$10 Guardian graphic data
F308 DEFB $08,$10,$08,$10,$F8,$1F,$55,$55
F310 DEFB $FF,$FF,$FF,$FF,$08,$10,$08,$10
F318 DEFB $08,$10,$58,$15,$FF,$FF,$FF,$FF
F320 DEFB $00,$00,$55,$55,$FF,$FF,$FF,$FF
F328 DEFB $08,$10,$F8,$1F,$08,$10,$3F,$FE
F330 DEFB $38,$1E,$08,$10,$5F,$F5,$FF,$FF
F338 DEFB $FF,$FF,$00,$00,$FF,$FF,$00,$00
F340 DEFB $00,$00,$00,$00,$FF,$FF,$55,$55
F348 DEFB $FF,$FF,$FF,$FF,$08,$10,$38,$1E
F350 DEFB $3F,$FE,$08,$10,$F8,$1F,$5F,$F5
F358 DEFB $FF,$FF,$FF,$FF,$00,$00,$00,$00
F360 DEFB $00,$00,$55,$55,$FF,$FF,$F8,$1F
F368 DEFB $08,$10,$55,$55,$FF,$FF,$FF,$FF
F370 DEFB $78,$1D,$F8,$1F,$F8,$1F,$08,$10
F378 DEFB $55,$55,$FF,$FF,$FF,$FF,$00,$00
F380 DEFB $7E,$00,$99,$00,$FF,$00,$DB,$00
F388 DEFB $E7,$00,$7E,$00,$24,$00,$24,$00
F390 DEFB $24,$00,$42,$00,$42,$00,$42,$00
F398 DEFB $81,$00,$81,$00,$C3,$00,$C3,$00
F3A0 DEFB $00,$00,$1F,$80,$26,$40,$3F,$C0
F3A8 DEFB $36,$C0,$39,$C0,$1F,$80,$10,$80
F3B0 DEFB $20,$40,$20,$40,$40,$20,$40,$20
F3B8 DEFB $80,$10,$80,$30,$C0,$30,$C0,$00
F3C0 DEFB $00,$00,$00,$00,$00,$00,$07,$E0
F3C8 DEFB $09,$90,$0F,$F0,$0D,$B0,$0E,$70
F3D0 DEFB $07,$E0,$08,$10,$10,$08,$20,$04
F3D8 DEFB $40,$02,$80,$01,$C0,$03,$C0,$03
F3E0 DEFB $00,$00,$01,$F8,$02,$64,$03,$FC
F3E8 DEFB $03,$6C,$03,$9C,$01,$F8,$01,$08
F3F0 DEFB $02,$04,$02,$04,$04,$02,$04,$02
F3F8 DEFB $08,$01,$0C,$01,$0C,$03,$00,$03
Prev: EC00 Up: Map Next: F400