Prev: 55088 Up: Map Next: 55141
55096: Change Room
Used by the routines at Game_Loop, Handler_Enemies and Handler_Combination.
Loads the room in A.
Change_Room 55096 CALL Initialise_Rooms Call Initialise_Rooms.
55099 CALL Print_CollectionBar Call Print_CollectionBar.
55102 LD BC,150 Write 150 to *PauseTimer.
55105 LD (25712),BC
55109 LD A,255 Write 255 to *Pendulum_Position.
55111 LD (56003),A
55114 LD A,(25725) Jump to Game_Loop if *GameCompleteFlag is zero.
55117 OR A
55118 JR Z,Game_Loop
55120 LD A,(25762) Jump to Game_Loop if *CurrentRoom is not zero.
55123 OR A
55124 JR NZ,Game_Loop
55126 LD A,29 Call Dispatch_Events with event 29.
55128 CALL Dispatch_Events
55131 LD HL,(25634) Write 18 to the door pointed to by *ReferenceDoors.
55134 LD (HL),18
55136 LD A,1 Write 1 to *Player_Lives.
55138 LD (25780),A
Continue on to Game_Loop.
Prev: 55088 Up: Map Next: 55141