Prev: 9BA7 Up: Map Next: 9CF7
9CC5: Handle Rex dead - Main routine
Used by the routines at A26C, CDD2, CE74, CEE5, CF59 and CFB5.
9CC5 LD A,($A20A) Return if Rex is inmortal
9CC8 OR A
9CC9 RET NZ
9CCA CALL $A2DB Initialize time bar loop counters
9CCD LD A,$01 Set Rex dead
9CCF LD ($A1EE),A
9CD2 LD A,$32 Set Rex explosion counter
9CD4 LD ($A1EF),A
9CD7 LD HL,$9CF7 Set address pointer for Rex explosion data to compute position
9CDA LD ($A1F0),HL
9CDD LD A,($A268) Jump forward if FINAL BOSS dead
9CE0 OR A
9CE1 JP NZ,$9CE7
9CE4 CALL $9731 Destroy all enemy projectiles
9CE7 CALL $BAB8 Handle weapon energy loss
9CEA LD A,$63 Reset shield power
9CEC LD ($A1E6),A
9CEF LD A,($A1FC) Jump forward to configure teleporting Rex if lives > 0
9CF2 OR A
9CF3 CALL NZ,$9E3D
9CF6 RET
Prev: 9BA7 Up: Map Next: 9CF7