Prev: 29690 Up: Map Next: 29753
29715: Handler: Room 11
Handles room 11 logic. The current level in B controls which objects are initialised or updated on each pass.
Levels Baddies
1 None
2 None
3 Helicopter
4 Helicopter, Balloon
5+ Balloon, UFO
Input
B Current level
Handler_Room11 29715 LD A,B Copy the current level into A.
29716 CP 3 Return if this is below level 3.
29718 RET C
Add the helicopter for levels 3 and 4.
29719 LD IX,56024 IX=Sprite06_3Wide_X_Position.
29723 PUSH AF Stash the current level on the stack.
29724 CP 5 Call Handler_Helicopter if this is not level 5.
29726 CALL NZ,Handler_Helicopter
29729 POP AF Restore the current level from the stack.
29730 CP 3 Return if this is level 3.
29732 RET Z
Add the balloon for level 4 and above.
29733 LD IX,56028 IX=Sprite07_3Wide_X_Position.
29737 PUSH AF Stash the current level on the stack.
29738 CALL Handler_Balloon Call Handler_Balloon.
29741 POP AF Restore the current level from the stack.
29742 CP 4 Return if this is level 4.
29744 RET Z
Add the UFO if this is level 5.
29745 LD IX,56024 IX=Sprite06_3Wide_X_Position.
29749 CALL Handler_UFO Call Handler_UFO.
29752 RET Return.
Prev: 29690 Up: Map Next: 29753