Prev: 50176 Up: Map Next: 52224
51200: The Vat (teleport: 236)
Used by the routine at 34436.
the_vat
The first 512 bytes are the attributes that define the layout of the cavern.
51200 DEFB 77,0,0,0,0,0,0,0 Attributes
51208 DEFB 0,0,0,0,0,0,77,77
51216 DEFB 77,77,77,77,77,77,77,77
51224 DEFB 77,77,77,77,77,77,77,77
51232 DEFB 77,0,0,0,0,0,0,0
51240 DEFB 0,0,0,0,0,0,0,0
51248 DEFB 0,0,0,0,0,0,0,0
51256 DEFB 0,0,0,0,0,0,0,77
51264 DEFB 77,0,0,0,0,0,0,0
51272 DEFB 0,0,0,0,0,0,0,0
51280 DEFB 0,0,0,0,0,0,0,0
51288 DEFB 0,0,0,0,0,0,0,77
51296 DEFB 77,0,0,0,0,0,0,0
51304 DEFB 0,0,0,0,0,0,0,70
51312 DEFB 70,77,2,2,2,2,2,2
51320 DEFB 2,2,2,2,2,2,0,77
51328 DEFB 77,0,0,0,0,0,0,0
51336 DEFB 0,0,0,0,0,0,0,0
51344 DEFB 0,77,2,2,2,2,2,2
51352 DEFB 2,2,2,2,2,2,2,77
51360 DEFB 77,0,0,0,0,0,0,4
51368 DEFB 4,4,4,4,0,0,70,70
51376 DEFB 70,77,2,2,2,2,2,2
51384 DEFB 2,2,2,2,22,2,2,77
51392 DEFB 77,70,70,70,0,0,0,0
51400 DEFB 0,0,0,0,0,0,0,0
51408 DEFB 0,77,2,2,0,2,2,2
51416 DEFB 2,2,2,2,2,2,2,77
51424 DEFB 77,0,0,0,0,0,0,0
51432 DEFB 0,0,0,0,0,0,0,0
51440 DEFB 0,77,2,2,2,2,2,2
51448 DEFB 2,2,2,0,2,2,2,77
51456 DEFB 77,70,0,0,0,0,0,0
51464 DEFB 0,0,0,0,0,0,0,0
51472 DEFB 0,77,2,2,2,2,2,22
51480 DEFB 2,2,2,2,2,2,2,77
51488 DEFB 77,0,0,0,0,0,0,0
51496 DEFB 0,0,0,0,0,0,70,70
51504 DEFB 70,77,2,2,2,2,2,2
51512 DEFB 2,2,2,2,2,2,2,77
51520 DEFB 77,70,70,70,70,70,70,70
51528 DEFB 70,70,70,70,0,0,0,0
51536 DEFB 0,77,2,0,2,2,2,2
51544 DEFB 2,2,2,2,22,2,2,77
51552 DEFB 77,0,0,0,0,0,0,0
51560 DEFB 0,0,0,0,0,0,0,0
51568 DEFB 0,77,2,2,2,2,2,2
51576 DEFB 2,2,2,2,2,2,0,77
51584 DEFB 77,0,0,0,0,0,0,0
51592 DEFB 0,0,0,0,0,0,77,77
51600 DEFB 77,77,2,2,2,2,2,22
51608 DEFB 2,2,2,2,2,2,2,77
51616 DEFB 77,0,0,0,0,0,0,0
51624 DEFB 0,70,70,70,0,0,77,0
51632 DEFB 0,0,0,0,0,0,0,0
51640 DEFB 0,0,0,0,0,0,0,77
51648 DEFB 77,0,0,0,0,0,0,0
51656 DEFB 0,0,0,0,0,0,77,0
51664 DEFB 0,0,0,0,0,0,0,0
51672 DEFB 0,0,0,0,0,0,0,77
51680 DEFB 77,70,70,70,70,70,70,70
51688 DEFB 70,70,70,70,70,70,77,77
51696 DEFB 77,77,77,77,77,77,77,77
51704 DEFB 77,77,77,77,77,77,77,77
The next 32 bytes are copied to 32768 and specify the cavern name.
51712 DEFM " The Vat " Cavern name
The next 72 bytes are copied to 32800 and contain the attributes and graphic data for the tiles used to build the cavern.
background_6 floor_6 crumbling_floor_6 wall_6 conveyor_6 nasty1_6 nasty2_6 extra_6
51744 DEFB 0,0,0,0,0,0,0,0,0 Background
51753 DEFB 70,255,255,219,110,197,64,0,0 Floor
51762 DEFB 2,255,170,85,170,85,170,85,170 Crumbling floor
51771 DEFB 77,34,255,136,255,34,255,136,255 Wall
51780 DEFB 4,244,102,244,0,0,0,0,0 Conveyor
51789 DEFB 21,68,40,148,81,53,214,88,16 Nasty 1 (unused)
51798 DEFB 22,165,66,60,219,60,126,165,36 Nasty 2
51807 DEFB 0,0,0,0,0,0,0,0,0 Extra (unused)
The next seven bytes are copied to 32872-32878 and specify Miner Willy's initial location and appearance in the cavern.
51816 DEFB 208 Pixel y-coordinate * 2 (see 32872)
51817 DEFB 0 Animation frame (see 32873)
51818 DEFB 0 Direction and movement flags: facing right (see 32874)
51819 DEFB 0 Airborne status indicator (see 32875)
51820 DEFW 23970 Location in the attribute buffer at 23552: (13,2) (see 32876)
51822 DEFB 0 Jumping animation counter (see 32878)
The next four bytes are copied to 32879 and specify the direction, location and length of the conveyor.
51823 DEFB 0 Direction (left)
51824 DEFW 28839 Location in the screen buffer at 28672: (5,7)
51826 DEFB 5 Length
The next byte is copied to 32883 and specifies the border colour.
51827 DEFB 4 Border colour
The next byte is copied to 32884, but is not used.
51828 DEFB 0 Unused
The next 25 bytes are copied to 32885 and specify the location and initial colour of the items in the cavern.
51829 DEFB 19 Item 1 at (3,30)
51830 DEFW 23678
51832 DEFB 96
51833 DEFB 255
51834 DEFB 20 Item 2 at (6,20)
51835 DEFW 23764
51837 DEFB 96
51838 DEFB 255
51839 DEFB 21 Item 3 at (7,27)
51840 DEFW 23803
51842 DEFB 96
51843 DEFB 255
51844 DEFB 22 Item 4 at (10,19)
51845 DEFW 23891
51847 DEFB 104
51848 DEFB 255
51849 DEFB 19 Item 5 at (11,30)
51850 DEFW 23934
51852 DEFB 104
51853 DEFB 255
51854 DEFB 255 Terminator
The next 37 bytes are copied to 32911 and define the portal graphic and its location.
portal06
51855 DEFB 11 Attribute
51856 DEFB 255,255,129,129,129,129,129,129 Graphic data
51864 DEFB 129,129,129,129,129,129,255,255
51872 DEFB 255,255,129,129,129,129,129,129
51880 DEFB 129,129,129,129,129,129,255,255
51888 DEFW 23983 Location in the attribute buffer at 23552: (13,15)
51890 DEFW 26799 Location in the screen buffer at 24576: (13,15)
The next eight bytes are copied to 32948 and define the item graphic.
item06
51892 DEFB 48,72,136,144,104,4,10,4 Item graphic data
The next byte is copied to 32956 and specifies the initial air supply in the cavern.
51900 DEFB 63 Air
The next byte is copied to 32957 and initialises the game clock.
51901 DEFB 128 Game clock
The next 28 bytes are copied to 32958 and define the horizontal guardians.
51902 DEFB 69 Horizontal guardian 1: y=1, initial x=15, 15<=x<=29, speed=normal
51903 DEFW 23599
51905 DEFB 96
51906 DEFB 0
51907 DEFB 47
51908 DEFB 61
51909 DEFB 67 Horizontal guardian 2: y=8, initial x=10, 2<=x<=10, speed=normal
51910 DEFW 23818
51912 DEFB 104
51913 DEFB 7
51914 DEFB 2
51915 DEFB 10
51916 DEFB 6 Horizontal guardian 3: y=13, initial x=17, 17<=x<=29, speed=normal
51917 DEFW 23985
51919 DEFB 104
51920 DEFB 0
51921 DEFB 177
51922 DEFB 189
51923 DEFB 255,0,0,0,0,0,0 Horizontal guardian 4 (unused)
51930 DEFB 255 Terminator
The next two bytes are copied to 32987 and 32988 but are not used.
51931 DEFB 0,0 Unused
The next 28 bytes are copied to 32989 and define the vertical guardians.
51933 DEFB 255,0,0,0,0,0,0 Vertical guardian 1 (unused)
51940 DEFB 0,0,0,0,0,0,0 Vertical guardian 2 (unused)
51947 DEFB 0,0,0,0,0,0,0 Vertical guardian 3 (unused)
51954 DEFB 0,0,0,0,0,0,0 Vertical guardian 4 (unused)
The next 7 bytes are unused.
51961 DEFB 0,0,0,0,0,0,0 Unused
The next 256 bytes are copied to 33024 and define the guardian graphics.
the_vat_guardian0 the_vat_guardian1 the_vat_guardian2 the_vat_guardian3 the_vat_guardian4 the_vat_guardian5 the_vat_guardian6 the_vat_guardian7
51968 DEFB 24,0,28,0,10,128,15,128 Guardian graphic data
51976 DEFB 12,0,28,0,30,0,29,0
51984 DEFB 60,0,62,0,62,0,110,0
51992 DEFB 68,0,66,0,129,0,0,0
52000 DEFB 0,0,0,0,6,0,7,0
52008 DEFB 2,160,3,224,3,128,7,0
52016 DEFB 7,128,7,64,15,0,15,128
52024 DEFB 15,128,27,128,51,0,64,192
52032 DEFB 0,0,0,0,0,0,0,0
52040 DEFB 1,128,1,192,0,168,0,248
52048 DEFB 0,224,1,192,1,224,1,208
52056 DEFB 3,192,3,224,7,224,62,248
52064 DEFB 0,0,0,0,0,96,0,112
52072 DEFB 0,42,0,62,0,56,0,112
52080 DEFB 0,120,0,116,0,240,0,248
52088 DEFB 1,248,1,176,3,12,4,0
52096 DEFB 0,0,0,0,6,0,14,0
52104 DEFB 84,0,124,0,28,0,14,0
52112 DEFB 30,0,46,0,15,0,31,0
52120 DEFB 31,128,13,128,48,192,0,32
52128 DEFB 0,0,0,0,0,0,0,0
52136 DEFB 1,128,3,128,21,0,31,0
52144 DEFB 7,0,3,128,7,128,11,128
52152 DEFB 3,192,7,192,7,224,31,124
52160 DEFB 0,0,0,0,0,96,0,224
52168 DEFB 5,64,7,192,1,192,0,224
52176 DEFB 1,224,2,224,0,240,1,240
52184 DEFB 1,240,1,216,0,204,3,2
52192 DEFB 0,24,0,56,1,80,1,240
52200 DEFB 0,48,0,56,0,120,0,184
52208 DEFB 0,60,0,124,0,124,0,118
52216 DEFB 0,34,0,66,0,129,0,0
Prev: 50176 Up: Map Next: 52224