![]() |
Routines |
| Prev: 29247 | Up: Map | Next: 29318 |
|
Handles room 2 logic. The current level in B controls which objects are initialised or updated on each pass.
|
||||||||||||||||||||
| Handler_Room02 | 29285 | LD A,B | Copy the current level into A. | |||||||||||||||||
|
Add a cat for any level other than level 2.
|
||||||||||||||||||||
| 29286 | LD IX,56016 | IX=Sprite04_3Wide_X_Position. | ||||||||||||||||||
| 29290 | CP 2 | Is this level 2? | ||||||||||||||||||
| 29292 | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||
| 29293 | CALL NZ,Handler_Cat | Call Handler_Cat if this is not level 2. | ||||||||||||||||||
| 29296 | POP AF | Restore the current level from the stack. | ||||||||||||||||||
|
Add the parachute if this is level 5 or higher.
|
||||||||||||||||||||
| 29297 | LD IX,56024 | IX=Sprite06_3Wide_X_Position. | ||||||||||||||||||
| 29301 | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||
| 29302 | CP 4 | Is this level 4? | ||||||||||||||||||
| 29304 | CALL NC,Handler_Parachute_Descent | Call Handler_Parachute_Descent if this is level 5 or higher. | ||||||||||||||||||
| 29307 | POP AF | Restore the current level from the stack. | ||||||||||||||||||
|
Add the helicopter if this is level 4 or higher.
|
||||||||||||||||||||
| 29308 | LD IX,56020 | IX=Sprite05_3Wide_X_Position. | ||||||||||||||||||
| 29312 | CP 3 | Call Handler_Helicopter if this is level 4 or higher. | ||||||||||||||||||
| 29314 | CALL NC,Handler_Helicopter | |||||||||||||||||||
| 29317 | RET | Return. | ||||||||||||||||||
| Prev: 29247 | Up: Map | Next: 29318 |