br>
position camera 300,50,300 : point camera 500,50,500<br>
set point light 0,500,300,500 : set ambient light 20<br>
set normalization on : sync on : sync rate 60<br>
while mouseclick()=0<br>
 if inkey$()="-" then set static portals on<br>
 if inkey$()="=" then set static portals off<br>
 if inkey$()="[" then set static objects wireframe on<br>
 if inkey$()="]" then set static objects wireframe off<br>
 control camera using arrowkeys 0,2,4<br>
 x#=object position x(d) : y#=object position y(d) : z#=object 