Prev: 36638 Up: Map Next: 36778
36753: Set Berk's horizontal position to match level 1's entry door
Used by the routine at 36638.
36753 CALL 34864 Copy start addresses of current level's data blocks to 34236 and clean up old data
36756 LD A,33 Load IY with address of complex state data for first entity that has class of 33 (entry door)...
36758 CALL 54019 ...
36761 LD IX,(34240) Load IX with start address of current level's complex state data for Berk
36765 LD A,(IY+5) Load A with x-coordinate of left of entry door...
36768 INC A ...and add one
36769 LD (IX+5),A Adjust Berk's horizontal position so that his left side is at coordinate in A...
36772 ADD A,5 ...and his right side is 5 characters to the right of this...
36774 LD (IX+7),A ...
36777 RET Return
Prev: 36638 Up: Map Next: 36778