![]() |
Routines |
| Prev: 29665 | Up: Map | Next: 29715 |
Handles room 10 logic. The current level in B controls which objects are initialised or updated on each pass.
|
||||||||||||||||||||||
| Handler_Room10 | 29690 | LD A,B | Copy the current level into A. | |||||||||||||||||||
| 29691 | CP 3 | Return if this is below level 3. | ||||||||||||||||||||
| 29693 | RET C | |||||||||||||||||||||
|
Add the helicopter for any level other than level 4.
|
||||||||||||||||||||||
| 29694 | LD IX,56024 | IX=Sprite06_3Wide_X_Position. | ||||||||||||||||||||
| 29698 | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||||
| 29699 | CP 4 | Call Handler_Helicopter if this is not level 4. | ||||||||||||||||||||
| 29701 | CALL NZ,Handler_Helicopter | |||||||||||||||||||||
| 29704 | POP AF | Restore the current level from the stack. | ||||||||||||||||||||
|
Add the balloon for level 4 and above.
|
||||||||||||||||||||||
| 29705 | LD IX,56028 | IX=Sprite07_3Wide_X_Position. | ||||||||||||||||||||
| 29709 | CP 3 | Call Handler_Balloon if this is not level 3. | ||||||||||||||||||||
| 29711 | CALL NZ,Handler_Balloon | |||||||||||||||||||||
| 29714 | RET | Return. | ||||||||||||||||||||
| Prev: 29665 | Up: Map | Next: 29715 |