Prev: D730 Up: Map Next: D765
D738: Change Room
Used by the routines at Game_Loop, Handler_Enemies and Handler_Combination.
Loads the room in A.
Change_Room D738 CALL Initialise_Rooms Call Initialise_Rooms.
D73B CALL Print_CollectionBar Call Print_CollectionBar.
D73E LD BC,$0096 Write 96 to *PauseTimer.
D741 LD ($6470),BC
D745 LD A,$FF Write FF to *Pendulum_Position.
D747 LD ($DAC3),A
D74A LD A,($647D) Jump to Game_Loop if *GameCompleteFlag is zero.
D74D OR A
D74E JR Z,Game_Loop
D750 LD A,($64A2) Jump to Game_Loop if *CurrentRoom is not zero.
D753 OR A
D754 JR NZ,Game_Loop
D756 LD A,$1D Call Dispatch_Events with event 1D.
D758 CALL Dispatch_Events
D75B LD HL,($6422) Write 12 to the door pointed to by *ReferenceDoors.
D75E LD (HL),$12
D760 LD A,$01 Write 01 to *Player_Lives.
D762 LD ($64B4),A
Continue on to Game_Loop.
Prev: D730 Up: Map Next: D765