Prev: D1E2 Up: Map Next: D1EF
D1E6: Build the room the player is in
Used by the routine at game_loop.
Called at the start of each life and whenever the player walks into another room (game_loop). Before the old room's objects are thrown away, the collectable objects in records 2 and 3 are written back to the special object table (update_special_objs) -- unless no frame of this game has been played yet ($5BB2), in which case there is no old room.
Input
IX object 0, the player's legs; its +$08 is the room to build
build_screen_objects D1E6 LD A,($5BB2) skip the save on the first build of a game
D1E9 AND A
D1EA JR Z,build_room
D1EC CALL update_special_objs
Prev: D1E2 Up: Map Next: D1EF