Prev: 51076 Up: Map Next: 51112
51081: Run Door Frame
The handler of the object types 7 and 9, which are the frames of the doors in the walls. They only have to be placed on the screen: the doors themselves are the object types 6 and 8, run by HandleNearArch.
Input
IX Object record
Choose the sprite offsets for this frame.
RunDoorFrame 51081 BIT 6,(IX+7) Jump to RunDoorFrame_Mirrored if the frame is mirrored.
51085 JR NZ,RunDoorFrame_Mirrored
51087 LD A,(IX+0) Fetch the type.
51090 CP 9 Jump to RunDoorFrame_TypeNine if it is type 9.
51092 JR Z,RunDoorFrame_TypeNine
51094 LD HL,64505 Set the offsets for type 7, which are 249 horizontally and 251 vertically.
51097 JP StorePixelAdjustments Jump to StorePixelAdjustments to set them.
Use the offsets for a mirrored frame.
RunDoorFrame_Mirrored 51100 LD HL,64761 Set the offsets for a mirrored frame, which are 249 horizontally and 252 vertically.
51103 JP StorePixelAdjustments Jump to StorePixelAdjustments to set them.
Use the offsets for type 9.
RunDoorFrame_TypeNine 51106 LD HL,64496 Set the offsets for type 9, which are 240 horizontally and 251 vertically.
51109 JP StorePixelAdjustments Jump to StorePixelAdjustments to set them.
Prev: 51076 Up: Map Next: 51112