Prev: B18C Up: Map Next: B1AE
B19C: The update routine for the thing that chases the player (graphics 76 to 79)
Object template 16: a crackle of sparks that heads for the robot at four units a turn in U and in V, falls, and runs through its four frames every turn, with a note pitched by its position. Nothing here makes it deadly; it pushes what it runs into like anything else that moves.
Measured in the simulator in room $9C: it came at him four units a turn along U, pushed him before it until both were stopped, and went on cycling its frames there.
Input
IX the object
SPARK_CHASER B19C CALL DRAW_AT_L12_D4 the drawing nudge
B19F LD BC,$0404 four units a turn at the player, in U and in V
B1A2 CALL MOVE_TOWARDS_PLAYER
B1A5 CALL DEC_DZ_AND_UPDATE_UVZ fall, and move
B1A8 CALL NEXT_FRAME_MOD4 the next of its four frames
B1AB JP SOUND_AND_DRAW a note pitched by U, V and Z, and redraw it
Prev: B18C Up: Map Next: B1AE