File: new_room_v.html

package info (click to toggle)
agistudio 1.2.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,600 kB
  • ctags: 1,506
  • sloc: cpp: 16,676; makefile: 53
file content (36 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<HTML>
<HEAD>
<TITLE>new.room.v</TITLE></HEAD>
<BODY>
<h1>new.room.v</h1>
<B>Category</B><p>
<a href="control_commands.html">Control flow commands</a><p>
<B>Syntax</B><p>
<p>
new.room(vROOMNO);<p>
<B>Description</B><p>
<p>
Switches to a new room, vROOMNO.<p>
The following things automatically happen when this command is used:<p>
<ul>
<li>All objects are unanimated
<li>All resources except logic 0 are discarded
<li>player.control command is executed
<li>unblock command is executed
<li>horizon is set to 36
<li>v1 (prev_room_no) is set to the value of v0 (room_no)
<li>v0 (room_no) is assigned to the new room number
<li>v16 (ego_view_no) is set to the view number assigned to ego
<li>The logic for the new room is loaded (logic vROOMNO)
<li>If ego was touching an edge of the screen, it is placed on the opposite side
<li>Flag 5 (new_room) is set (this is reset after the first cycle in the new room)
<li>Execution jumps to the start of logic 0
</ul>
<B>See also</B><p>
<a href="new_room.html">new.room</a><p>
<a href="player_control.html">player.control</a><p>
<a href="unblock.html">unblock</a><p>
<a href="set_horizon.html">set.horizon</a><p>
<a href="special_variables.html">Special variables</a><p>
<a href="special_flags.html">Special flags</a><p>
</BODY></HTML>