Routines |
Prev: 51702 | Up: Map | Next: 51854 |
Follows checks from the previous routine at 51702.
|
||||
Sets a couple of bytes/flags in the connecting door table at 26512 to indicate Maroc's entry point for this door.
|
||||
51813 | LD A,(60230) | Door set number in the connecting room data at 26512 | ||
51816 | LD (60084),A | Copy to working data buffer | ||
51819 | LD A,(60234) | Door's vertical pixel position | ||
51822 | DEC A | Very minor vertical adjustment (-1 pixel) | ||
51823 | LD (60276),A | Store as new room vertical entry position | ||
51826 | LD HL,(60228) | Address pointer for door set number in the connecting room data at 26512 | ||
51829 | LD (60085),HL | Copy to working data buffer | ||
51832 | INC HL | |||
51833 | INC HL | |||
51834 | INC HL | |||
51835 | LD (HL),0 | Set the 4th byte of the relevant door set (in the table at 26512) to 0. This is the standard event collision identifier for Maroc (touching a doorway space). | ||
51837 | LD A,255 | Room number set to 255 - signifies that the next room number will need calculating (using the door connector table at 26512) | ||
51839 | LD (60080),A | |||
51842 | LD A,(60238) | Door properties byte | ||
51845 | AND 15 | Keep bits 0-3 | ||
51847 | OR 128 | Set bit 7 - used to flag that Maroc has entered through this door | ||
51849 | LD (60149),A | The byte stored here will be put in byte 3 of the connecting door set at 26512, in the routine at 50656 | ||
51852 | JR 51955 | Jump to end of door routine checks |
Prev: 51702 | Up: Map | Next: 51854 |