Prev: 54704 Up: Map Next: 54758
54730: Draw Character In Doorway
Draws the character frame at the location of one of the three (open) doors. This is direct function, hence is only used when the door is open (it doesn't utilise the door buffer).
Draw_CharacterInDoorway 54730 CALL Character_Address Retrieve the memory location for the character frame from the passed index in A.
54733 EX DE,HL
54734 LD B,88 Sets the height and width.
54736 LD C,6
54738 LD A,(52762) Retrieves the currently in-focus door from Door_Frame_Reference.
54741 LD HL,16514 Work out which screen position to use for the currently focused door;
A Screen Address
1 $4082
2 $408D
3 $4098
Jump to Copy_Routine to draw the character and handle the return.
54744 DEC A
54745 JR Z,Copy_Routine
54747 DEC A
54748 LD HL,16525
54751 JR Z,Copy_Routine
54753 LD HL,16536
54756 JR Copy_Routine
Prev: 54704 Up: Map Next: 54758