Prev: B059 Up: Map Next: B063
B05A: Toggle Sprite
Used by the routines at MoveHunter and MovePellet.
Flips the lowest bit of an entity's type, which switches it between two sprites. This is the handler for entity types 02 to 07. Types 06 and 07 are the battery and share one picture. Nothing sets types 02 to 05.
Input
IX Entity
ToggleSprite B05A LD A,(IX+$00) Fetch the type of the entity...
B05D XOR $01 ...flip the lowest bit...
B05F LD (IX+$00),A ...and store it.
B062 RET Return.
Prev: B059 Up: Map Next: B063