Prev: 73FA Up: Map Next: 7439
7413: Handler: Room 0B
Handles room 0B logic. The current level in B controls which objects are initialised or updated on each pass.
Levels Baddies
01 None
02 None
03 Helicopter
04 Helicopter, Balloon
05+ Balloon, UFO
Input
B Current level
Handler_Room11 7413 LD A,B Copy the current level into A.
7414 CP $03 Return if this is below level 03.
7416 RET C
Add the helicopter for levels 03 and 04.
7417 LD IX,$DAD8 IX=Sprite06_3Wide_X_Position.
741B PUSH AF Stash the current level on the stack.
741C CP $05 Call Handler_Helicopter if this is not level 05.
741E CALL NZ,Handler_Helicopter
7421 POP AF Restore the current level from the stack.
7422 CP $03 Return if this is level 03.
7424 RET Z
Add the balloon for level 04 and above.
7425 LD IX,$DADC IX=Sprite07_3Wide_X_Position.
7429 PUSH AF Stash the current level on the stack.
742A CALL Handler_Balloon Call Handler_Balloon.
742D POP AF Restore the current level from the stack.
742E CP $04 Return if this is level 04.
7430 RET Z
Add the UFO if this is level 05.
7431 LD IX,$DAD8 IX=Sprite06_3Wide_X_Position.
7435 CALL Handler_UFO Call Handler_UFO.
7438 RET Return.
Prev: 73FA Up: Map Next: 7439