`turn syncronise on and set it to 40
sync on
sync rate 40
`make the first box and color it
make object box 1,1,1,1
color object 1,rgb(255,0,255)
`make the second box and color it
make object box 2,1,1,1
color object 2,rgb(100,150,100)
`-------------------------------------------------------------------------------------------------------------------------------------------------------------
` MAIN LOOP
`-------------------------------------------------------------------------------------------------------------------------------------------------------------
`start the main loop
do
`position the objects and cameras and point the camera
position object 1,-5,0,1p#
position object 2,5,0,2p#
position camera 0,10,-10
point camera 0,0,0
`set the contols for the boxes
if upkey()=1 then 1p#=1p#+0.5
if downkey()=1 then 1p#=1p#-0.5
if keystate(31)=1 then 2p#=2p#-0.5
if keystate(17)=1 then 2p#=2p#+0.5
`make the boundarys of the movement area
if 1p#<-6 then 1p#=-6
if 1p#>6 then 1p#=6
if 2p#<-6 then 2p#=-6
if 2p#>6 then 2p#=6
`syncronise and loop
sync:loop
666