Prev: 44921 Up: Map Next: 45163
45141: Handle Mouse Second Part
The handler for the second part of a robot mouse (object 11). It takes its position from the first part, which comes before it in the table of objects, and sits 12 lower. When the first part is moving it makes a noise and is redrawn.
Input
IX The address of the object
Follow the first part and redraw if it moves.
HandleMouseSecondPart 45141 CALL SetPixelAdjustments_Mouse Call SetPixelAdjustments_Mouse.
45144 CALL CopyPreviousPosition Call CopyPreviousPosition.
45147 LD A,(IX-23) Return if the first part is not moving.
45150 OR (IX-22)
45153 OR (IX-21)
45156 RET Z
45157 CALL PlayMouseSound Call PlayMouseSound.
45160 JP SetWipeAndDrawFlags Jump to SetWipeAndDrawFlags.
Prev: 44921 Up: Map Next: 45163