Prev: BC56 Up: Map Next: BC83
BC70: The update routine for the robot appearing (graphics 56 to 62)
Reached through UPDATES. As a life starts or he comes through a doorway both of the robot's records begin as graphic 56 with their real graphic kept at +$10 (EXIT_LOW_U, NEW_GAME_START; the start records at START_LEGS). This steps the graphic on by one every other turn, on the turns TURNS is odd, with a sound worked out from the frame (MATERIALISE_SOUND), until PLAYER_APPEARED finishes. Seven frames of two turns each. As Knight Lore's upd_120_to_126.
Input
IX the record
PLAYER_APPEARING BC70 CALL DRAW_AT_L12_D8 the drawing nudge: X -12, Y -8
BC73 LD A,(TURNS) only when bit 0 of TURNS is set
BC76 CPL
BC77 AND $01
BC79 RET NZ
BC7A INC (IX+$00) the next frame, its sound, and mark it to be drawn
BC7D CALL MATERIALISE_SOUND
BC80 JP SET_WIPE_AND_DRAW_FLAGS
Prev: BC56 Up: Map Next: BC83