Prev: C349 Up: Map Next: C369
C357: Show a random transformation sprite
Used by the routine at chk_and_init_transform.
Picks one of the four transformation sprites (types 92 to 95) at random, never the one already showing, so the figure always changes.
Input
IX the player's bottom record
rand_legs_sprite C357 LD A,R the refresh register plus the random seed
C359 LD C,A
C35A LD A,($5BA5)
C35D ADD A,C
C35E AND $03 92 to 95
C360 OR $5C
C362 CP (IX+$00) if it is the current one, take its neighbour
C365 JR NZ,set_transform_sprite
C367 XOR $01
Prev: C349 Up: Map Next: C369