Sorry, won't let me edit my code!This one shows the score.
hide mouse
sync on
top:
make object cone 1,0.5
color backdrop rgb(0,0,0)
color object 1,rgb(50,50,250)
position object 1,x,-0.5,z
do
center text 320,200,\"Welcome to INH\'s racing game.\"
center text 320,220,\"Dodge the boxes. How fast can you win?\"
center text 320,240,\"Press space to begin. Good luck!\"
if spacekey()=1 then goto letsgo
sync
loop
letsgo:
m=2
a=timer()
do
color object 1,rgb(50,50,250)
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
b=timer()-a
p=rnd(3.9)
make object cube 2,0.5
position object 2,x,0.5,z
if p>1.9 and p<3 then position object 2,x,0.8,z
if p<2 then position object 2,x-0.8,0.8,z
if p>2 then position object 2,x+0.8,0.8,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>1.9 and p<3 then position object 2,x,0.6,z
if p<2 then position object 2,x-0.8,0.6,z
if p>2 then position object 2,x+0.8,0.6,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>1.9 and p<3 then position object 2,x,0.4,z
if p<2 then position object 2,x-0.8,0.4,z
if p>2 then position object 2,x+0.8,0.4,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>1.9 and p<3 then position object 2,x,0.2,z
if p<2 then position object 2,x-0.8,0.2,z
if p>2 then position object 2,x+0.8,0.2,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>1.9 and p<3 then position object 2,x,0,z
if p<2 then position object 2,x-0.8,0,z
if p>2 then position object 2,x+0.8,0,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>1.9 and p<3 then position object 2,x,-0.2,z
if p<2 then position object 2,x-0.8,-0.2,z
if p>2 then position object 2,x+0.8,-0.2,z
rem m=2
if m=2 and leftkey()=1 then position object 1,-0.8,-0.5,z : m=1
if m=2 and rightkey()=1 then position object 1,0.8,-0.5,z : m=3
rem m=1
if m=1 and rightkey()=1 then position object 1,0,-0.5,z : m=2
rem m=3
if m=3 and leftkey()=1 then position object 1,-0,-0.5,z : m=2
wait 1*100
if p>2=1.9 and p<3 then position object 2,x,-0.2,z
if p<2 then position object 2,x-0.8,-0.4,z
if p>2 then position object 2,x+0.8,-0.4,z
if m=p
color object 1,rgb(250,0,0)
wait 1*2000
delete object 2
else
delete object 2
endif
time=time+1
if time=30 then goto ending
sync
loop
ending:
c=b/1000
delete object 1
do
print \"Well done, you did it in aprox. \",c,\" seconds\"
print \"Thanks for playing. Press space to try again.\"
if spacekey()=1 then goto top
wait 1*0.01
cls
sync
loop
Thanks.
The below sentance is true.
The above sentance is false.
Paradox!