Prev: C6B5 Up: Map Next: C6CC
C6B6: Build Room
Used by the routine at RunGame.
Builds the room that the player has gone into, and puts the player into it. The room is built in the buffer and the whole room is drawn on the next pass of the main loop.
BuildRoom C6B6 LD IX,$A76F Start with the first object record, ObjectsTable, which is the legs of the player.
C6BA CALL ClearScreenBuffer Call ClearScreenBuffer to clear the buffer.
C6BD CALL BuildRoomScenery Call BuildRoomScenery to make the scenery of the room.
C6C0 CALL PlacePlayerAtDoor Call PlacePlayerAtDoor to put the player at the door that it came through.
C6C3 CALL MarkRoomVisited Call MarkRoomVisited to note that the room has been visited.
C6C6 LD A,$01 Set the flag in RoomRedrawFlag, to say that the room has to be drawn.
C6C8 LD ($A711),A
C6CB RET Return.
Prev: C6B5 Up: Map Next: C6CC