new.room.v
Category
Control flow commands
Syntax
new.room(vROOMNO);
Description
Switches to a new room, vROOMNO.
The following things automatically happen when this command is used:
- All objects are unanimated
- All resources except logic 0 are discarded
- player.control command is executed
- unblock command is executed
- horizon is set to 36
- v1 (prev_room_no) is set to the value of v0 (room_no)
- v0 (room_no) is assigned to the new room number
- v16 (ego_view_no) is set to the view number assigned to ego
- The logic for the new room is loaded (logic vROOMNO)
- If ego was touching an edge of the screen, it is placed on the opposite side
- Flag 5 (new_room) is set (this is reset after the first cycle in the new room)
- Execution jumps to the start of logic 0
See also
new.room
player.control
unblock
set.horizon
Special variables
Special flags