Prev: 27434 Up: Map Next: 27460
27437: Handler: Player Sprite
Used by the routines at Handler_GameOver, 29457, Handler_Fuel and Handler_GhostRider.
Handler_PlayerSprite 27437 LD A,(30754) Load A with *Speed.
27440 LD E,13 Set the sprite offset in E (13 bytes).
27442 BIT 7,A Check the direction bit.
27444 JR NZ,SetPlayerSpriteDirection Jump to SetPlayerSpriteDirection if the player is moving fowards.
27446 LD E,18 Set an alternate sprite offset for the left-facing sprite (18 bytes).
SetPlayerSpriteDirection 27448 LD C,7 Set WHITE to C.
27450 LD HL,30771 Fetch PlayerPosition_Y in D.
27453 LD D,(HL)
27454 INC L Fetch PlayerSpriteID in A.
27455 LD A,(HL)
27456 CALL DrawSpriteObject Call DrawSpriteObject.
27459 RET Return.
Prev: 27434 Up: Map Next: 27460