![]() |
Routines |
| Prev: 50869 | Up: Map | Next: 50892 |
|
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 | 50870 | LD IX,42863 | Start with the first object record, ObjectsTable, which is the legs of the player. | |
| 50874 | CALL ClearScreenBuffer | Call ClearScreenBuffer to clear the buffer. | ||
| 50877 | CALL BuildRoomScenery | Call BuildRoomScenery to make the scenery of the room. | ||
| 50880 | CALL PlacePlayerAtDoor | Call PlacePlayerAtDoor to put the player at the door that it came through. | ||
| 50883 | CALL MarkRoomVisited | Call MarkRoomVisited to note that the room has been visited. | ||
| 50886 | LD A,1 | Set the flag in RoomRedrawFlag, to say that the room has to be drawn. | ||
| 50888 | LD (42769),A | |||
| 50891 | RET | Return. | ||
| Prev: 50869 | Up: Map | Next: 50892 |