Prev: 55522 Up: Map Next: 55613
55594: Goldfish Game: Animate Player
Used by the routine at GoldfishGame.
GoldfishGame_AnimatePlayer 55594 LD IX,56334 IX=GoldfishGame_PlayerAttributes.
Move onto the next frame.
55598 LD A,(IX+6) Retrieve the frame/ sprite ID from *GoldfishGame_PlayerSpriteID.
55601 ADD A,2 Add 2 to the current frame/ sprite ID, as the player swimming graphic is made using 2 UDG characters.
55603 CP 48 If the frame/ sprite ID value is under 48 then jump to GoldfishGame_SetPlayerFrame (the last frame/ sprite ID is 46).
55605 JR NZ,GoldfishGame_SetPlayerFrame
Reset the sprite ID back to the first frame/ sprite ID.
55607 LD A,32 A=32 (base sprite ID).
GoldfishGame_SetPlayerFrame 55609 LD (IX+6),A Write the updated frame/ sprite ID back to *GoldfishGame_PlayerSpriteID.
55612 RET Return.
Prev: 55522 Up: Map Next: 55613