![]() |
Routines |
| Prev: 723F | Up: Map | Next: 7286 |
|
Handles room 02 logic. The current level in B controls which objects are initialised or updated on each pass.
|
||||||||||||||||||||
| Handler_Room02 | 7265 | LD A,B | Copy the current level into A. | |||||||||||||||||
|
Add a cat for any level other than level 02.
|
||||||||||||||||||||
| 7266 | LD IX,$DAD0 | IX=Sprite04_3Wide_X_Position. | ||||||||||||||||||
| 726A | CP $02 | Is this level 02? | ||||||||||||||||||
| 726C | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||
| 726D | CALL NZ,Handler_Cat | Call Handler_Cat if this is not level 02. | ||||||||||||||||||
| 7270 | POP AF | Restore the current level from the stack. | ||||||||||||||||||
|
Add the parachute if this is level 05 or higher.
|
||||||||||||||||||||
| 7271 | LD IX,$DAD8 | IX=Sprite06_3Wide_X_Position. | ||||||||||||||||||
| 7275 | PUSH AF | Stash the current level on the stack. | ||||||||||||||||||
| 7276 | CP $04 | Is this level 04? | ||||||||||||||||||
| 7278 | CALL NC,Handler_Parachute_Descent | Call Handler_Parachute_Descent if this is level 05 or higher. | ||||||||||||||||||
| 727B | POP AF | Restore the current level from the stack. | ||||||||||||||||||
|
Add the helicopter if this is level 04 or higher.
|
||||||||||||||||||||
| 727C | LD IX,$DAD4 | IX=Sprite05_3Wide_X_Position. | ||||||||||||||||||
| 7280 | CP $03 | Call Handler_Helicopter if this is level 04 or higher. | ||||||||||||||||||
| 7282 | CALL NC,Handler_Helicopter | |||||||||||||||||||
| 7285 | RET | Return. | ||||||||||||||||||
| Prev: 723F | Up: Map | Next: 7286 |