Prev: 9117 Up: Map Next: 915F
9147: Enter Room
Used by the routine at StartGame.
Enters the room held in PlayerRoom: records the visit, clears the play area and draws the room frame, the side panel attributes and the inventory. Then jumps to the main loop.
EnterRoom 9147 LD A,($EA91) Fetch the room of the player from PlayerRoom.
914A CALL VisitRoom Call VisitRoom to mark the room as visited.
914D CALL ClearPlayArea Call ClearPlayArea to clear the play area.
9150 CALL DrawRoomFrame Call DrawRoomFrame to draw the frame of the room.
9153 CALL DrawSidePanelAttrs Call DrawSidePanelAttrs to set the attributes of the side panel.
9156 CALL DrawInventory Call DrawInventory to draw the inventory.
9159 CALL SoundsEntry Call SoundsEntry to play the sound for entering a room.
915C JP MainLoop Jump to MainLoop to run the main loop.
Prev: 9117 Up: Map Next: 915F