![]() |
Routines |
| Prev: 29604 | Up: Map | Next: 29690 |
Handles room 9 logic. The current level in B controls which objects are initialised or updated on each pass.
|
||||||||||||||||||||||
| Handler_Room09 | 29665 | LD A,B | Copy the current level into A. | |||||||||||||||||||
| 29666 | CP 1 | Return if this is level 1. | ||||||||||||||||||||
| 29668 | RET Z | |||||||||||||||||||||
|
Add the helicopter for any level other than level 3.
|
||||||||||||||||||||||
| 29669 | LD IX,56016 | IX=Sprite04_3Wide_X_Position. | ||||||||||||||||||||
| 29673 | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||||
| 29674 | CP 3 | Call Handler_Helicopter if this is not level 3. | ||||||||||||||||||||
| 29676 | CALL NZ,Handler_Helicopter | |||||||||||||||||||||
| 29679 | POP AF | Restore the current level from the stack. | ||||||||||||||||||||
|
Add the parachute if this is level 3 or higher.
|
||||||||||||||||||||||
| 29680 | LD IX,56024 | IX=Sprite06_3Wide_X_Position. | ||||||||||||||||||||
| 29684 | CP 3 | Call Handler_Parachute_Descent if this is level 3 or higher. | ||||||||||||||||||||
| 29686 | CALL NC,Handler_Parachute_Descent | |||||||||||||||||||||
| 29689 | RET | Return. | ||||||||||||||||||||
| Prev: 29604 | Up: Map | Next: 29690 |