Prev: D000 Up: Map Next: D800
D400: The Endorian Forest (teleport: 146)
Used by the routine at 8684.
the_endorian_forest
The first 512 bytes are the attributes that define the layout of the cavern.
D400 DEFB $16,$00,$00,$00,$00,$00,$00,$00 Attributes
D408 DEFB $00,$00,$00,$04,$00,$44,$44,$44
D410 DEFB $16,$00,$04,$00,$04,$44,$44,$44
D418 DEFB $44,$44,$44,$44,$44,$44,$44,$16
D420 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D428 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D430 DEFB $16,$00,$00,$00,$00,$04,$00,$00
D438 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D440 DEFB $16,$44,$44,$44,$44,$44,$44,$00
D448 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D450 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D458 DEFB $00,$00,$00,$44,$44,$44,$44,$16
D460 DEFB $16,$00,$00,$04,$00,$00,$00,$00
D468 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D470 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D478 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D480 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D488 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D490 DEFB $16,$44,$44,$44,$44,$00,$00,$00
D498 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D4A0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D4A8 DEFB $44,$02,$02,$02,$02,$02,$02,$02
D4B0 DEFB $16,$00,$00,$00,$00,$00,$00,$44
D4B8 DEFB $44,$44,$44,$44,$44,$44,$44,$16
D4C0 DEFB $16,$44,$44,$44,$44,$00,$00,$00
D4C8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D4D0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D4D8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D4E0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D4E8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D4F0 DEFB $16,$44,$44,$44,$44,$44,$44,$44
D4F8 DEFB $02,$02,$02,$00,$00,$00,$00,$16
D500 DEFB $16,$44,$44,$44,$44,$44,$00,$00
D508 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D510 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D518 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D520 DEFB $16,$04,$00,$00,$00,$00,$00,$00
D528 DEFB $00,$44,$44,$44,$44,$44,$44,$44
D530 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D538 DEFB $00,$00,$00,$00,$00,$44,$44,$16
D540 DEFB $16,$44,$44,$44,$44,$02,$02,$00
D548 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D550 DEFB $16,$44,$44,$44,$44,$44,$44,$44
D558 DEFB $00,$00,$00,$00,$00,$00,$04,$16
D560 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D568 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D570 DEFB $16,$00,$00,$00,$00,$00,$00,$04
D578 DEFB $02,$02,$02,$00,$00,$00,$00,$16
D580 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D588 DEFB $05,$05,$05,$05,$05,$05,$05,$05
D590 DEFB $05,$05,$00,$00,$00,$00,$00,$00
D598 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D5A0 DEFB $16,$44,$44,$44,$00,$00,$00,$00
D5A8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D5B0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D5B8 DEFB $00,$00,$00,$00,$44,$44,$44,$16
D5C0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
D5C8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D5D0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
D5D8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
D5E0 DEFB $05,$05,$05,$05,$05,$05,$05,$05
D5E8 DEFB $05,$05,$05,$05,$05,$05,$05,$05
D5F0 DEFB $05,$05,$05,$05,$05,$05,$05,$05
D5F8 DEFB $05,$05,$05,$05,$05,$05,$05,$05
The next 32 bytes are copied to 8000 and specify the cavern name.
D600 DEFM " The Endorian Forest " 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_9 floor_9 crumbling_floor_9 wall_9 conveyor_9 nasty1_9 nasty2_9 extra_9
D620 DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Background
D629 DEFB $44,$7C,$FF,$EF,$1E,$0C,$08,$08,$08 Floor
D632 DEFB $02,$FC,$FF,$87,$0C,$08,$08,$08,$00 Crumbling floor
D63B DEFB $16,$4A,$4A,$4A,$52,$54,$4A,$2A,$2A Wall
D644 DEFB $43,$F0,$66,$F0,$66,$00,$00,$00,$00 Conveyor (unused)
D64D DEFB $45,$44,$28,$94,$51,$35,$D6,$58,$10 Nasty 1 (unused)
D656 DEFB $04,$48,$B2,$5D,$12,$70,$AE,$A9,$47 Nasty 2
D65F DEFB $05,$FF,$FF,$CA,$65,$92,$28,$82,$00 Extra
The next seven bytes are copied to 8068-806E and specify Miner Willy's initial location and appearance in the cavern.
D668 DEFB $40 Pixel y-coordinate * 2 (see 8068)
D669 DEFB $00 Animation frame (see 8069)
D66A DEFB $00 Direction and movement flags: facing right (see 806A)
D66B DEFB $00 Airborne status indicator (see 806B)
D66C DEFW $5C81 Location in the attribute buffer at 5C00: (4,1) (see 806C)
D66E DEFB $00 Jumping animation counter (see 806E)
The next four bytes are copied to 806F and specify the direction, location and length of the (unused) conveyor.
D66F DEFB $00 Direction (left)
D670 DEFW $7013 Location in the screen buffer at 7000: (0,19)
D672 DEFB $01 Length
The next byte is copied to 8073 and specifies the border colour.
D673 DEFB $02 Border colour
The next byte is copied to 8074, but is not used.
D674 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
D675 DEFB $03 Item 1 at (2,21)
D676 DEFW $5C55
D678 DEFB $60
D679 DEFB $FF
D67A DEFB $04 Item 2 at (1,14)
D67B DEFW $5C2E
D67D DEFB $60
D67E DEFB $FF
D67F DEFB $05 Item 3 at (6,12)
D680 DEFW $5CCC
D682 DEFB $60
D683 DEFB $FF
D684 DEFB $06 Item 4 at (8,18)
D685 DEFW $5D12
D687 DEFB $68
D688 DEFB $FF
D689 DEFB $03 Item 5 at (1,30)
D68A DEFW $5C3E
D68C DEFB $60
D68D DEFB $FF
D68E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal09
D68F DEFB $1E Attribute
D690 DEFB $FF,$FF,$F8,$8F,$88,$91,$AA,$91 Graphic data
D698 DEFB $AA,$95,$8A,$85,$90,$91,$D5,$B9
D6A0 DEFB $D5,$55,$D1,$45,$89,$39,$89,$03
D6A8 DEFB $A8,$AB,$AA,$AB,$8A,$89,$FF,$FF
D6B0 DEFW $5DAC Location in the attribute buffer at 5C00: (13,12)
D6B2 DEFW $68AC Location in the screen buffer at 6000: (13,12)
The next eight bytes are copied to 80B4 and define the item graphic.
item09
D6B4 DEFB $08,$08,$3E,$5F,$5F,$47,$61,$3E Item graphic data
The next byte is copied to 80BC and specifies the initial air supply in the cavern.
D6BC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
D6BD DEFB $F8 Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
D6BE DEFB $46 Horizontal guardian 1: y=7, initial x=9, 9<=x<=14, speed=normal
D6BF DEFW $5CE9
D6C1 DEFB $60
D6C2 DEFB $00
D6C3 DEFB $E9
D6C4 DEFB $EE
D6C5 DEFB $C2 Horizontal guardian 2: y=10, initial x=12, 8<=x<=14, speed=slow
D6C6 DEFW $5D4C
D6C8 DEFB $68
D6C9 DEFB $00
D6CA DEFB $48
D6CB DEFB $4E
D6CC DEFB $43 Horizontal guardian 3: y=13, initial x=8, 4<=x<=26, speed=normal
D6CD DEFW $5DA8
D6CF DEFB $68
D6D0 DEFB $00
D6D1 DEFB $A4
D6D2 DEFB $BA
D6D3 DEFB $05 Horizontal guardian 4: y=5, initial x=18, 17<=x<=21, speed=normal
D6D4 DEFW $5CB2
D6D6 DEFB $60
D6D7 DEFB $00
D6D8 DEFB $B1
D6D9 DEFB $B5
D6DA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
D6DB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
D6DD DEFB $FF,$00,$00,$00,$00,$00,$00 Vertical guardian 1 (unused)
D6E4 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 2 (unused)
D6EB DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 3 (unused)
D6F2 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 4 (unused)
The next 7 bytes are unused.
D6F9 DEFB $00,$00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
the_endorian_forest_guardian0 the_endorian_forest_guardian1 the_endorian_forest_guardian2 the_endorian_forest_guardian3 the_endorian_forest_guardian4 the_endorian_forest_guardian5 the_endorian_forest_guardian6 the_endorian_forest_guardian7
D700 DEFB $70,$00,$50,$00,$7C,$00,$34,$00 Guardian graphic data
D708 DEFB $3E,$00,$3E,$00,$18,$00,$3C,$00
D710 DEFB $7E,$00,$7E,$00,$F7,$00,$FB,$00
D718 DEFB $3C,$00,$76,$00,$6E,$00,$77,$00
D720 DEFB $1C,$00,$14,$00,$1F,$00,$0D,$00
D728 DEFB $0F,$80,$0F,$80,$06,$00,$0F,$00
D730 DEFB $1B,$80,$1B,$80,$1B,$80,$1D,$80
D738 DEFB $0F,$00,$06,$00,$06,$00,$07,$00
D740 DEFB $07,$00,$05,$00,$07,$C0,$03,$40
D748 DEFB $03,$E0,$03,$E0,$01,$80,$03,$C0
D750 DEFB $07,$E0,$07,$E0,$0F,$70,$0F,$B0
D758 DEFB $03,$C0,$07,$60,$06,$E0,$07,$70
D760 DEFB $01,$C0,$01,$40,$01,$F0,$00,$D0
D768 DEFB $00,$F8,$00,$F8,$00,$60,$00,$F0
D770 DEFB $01,$F8,$03,$FC,$07,$FE,$06,$F6
D778 DEFB $00,$F8,$01,$DA,$03,$0E,$03,$84
D780 DEFB $03,$80,$06,$80,$0F,$80,$0B,$00
D788 DEFB $1F,$00,$1F,$00,$06,$00,$0F,$00
D790 DEFB $1F,$80,$3F,$C0,$7F,$E0,$6F,$60
D798 DEFB $1F,$00,$5B,$80,$70,$C0,$21,$C0
D7A0 DEFB $00,$E0,$01,$A0,$03,$E0,$02,$C0
D7A8 DEFB $07,$C0,$07,$C0,$01,$80,$03,$C0
D7B0 DEFB $07,$E0,$07,$E0,$0E,$F0,$0D,$F0
D7B8 DEFB $03,$C0,$06,$E0,$07,$60,$0E,$E0
D7C0 DEFB $00,$38,$00,$68,$00,$F8,$00,$B0
D7C8 DEFB $01,$F0,$01,$F0,$00,$60,$00,$F0
D7D0 DEFB $01,$F8,$01,$D8,$01,$D8,$01,$B8
D7D8 DEFB $00,$F0,$00,$60,$00,$60,$00,$E0
D7E0 DEFB $00,$0E,$00,$1A,$00,$3E,$00,$2C
D7E8 DEFB $00,$7C,$00,$7C,$00,$18,$00,$3C
D7F0 DEFB $00,$7E,$00,$7E,$00,$EF,$00,$DF
D7F8 DEFB $00,$3C,$00,$6E,$00,$76,$00,$EE
Prev: D000 Up: Map Next: D800