Prev: A98B Up: Map Next: A9C3
A99F: Start Robot
Used by the routines at WinRound and StartGame.
Starts a new life. The robot is given the type that makes it wait, the number of lives goes down by one, the battery is filled up and the robot is shown on the map of the sectors.
StartRobot A99F LD A,$58 Set the type of the robot to 58, which makes it wait.
A9A1 LD ($9690),A
A9A4 LD A,$20 Set its timer to 20 frames.
A9A6 LD ($9696),A
A9A9 LD HL,$968B Point HL at Lives.
A9AC DEC (HL) ...and take one off.
A9AD XOR A Clear the controls.
A9AE LD ($9625),A
A9B1 LD A,$74 Fill up the battery.
A9B3 LD ($963B),A
A9B6 LD DE,($9691) Fetch the X position of the robot...
A9BA LD HL,($9693) ...and the Y position.
A9BD CALL UpdateRobotMarker Draw the robot on the map of the sectors using UpdateRobotMarker.
A9C0 JP RechargeBattery Flash the panel using RechargeBattery.
Prev: A98B Up: Map Next: A9C3