have now added options of choosing amounts of lines and difficulty
sync on
sync rate 60
hide mouse
dim screenstate(screen width(),screen height())
verystart:
cls
input "How many lines would you like? (1-3)>",lines
if lines<1 or lines>3 then gosub verystart
input "Difficulty(0(hardest)-50(easiest))>",difficulty
if difficulty<0 or difficulty>50 then gosub verystart
cls
start:
time_start=timer()
for x=1 to screen width()
for y=1 to screen height()
screenstate(x,y)=0
next y
next x
x=320
if lines>1 then x2=320
if lines>2 then x3=220
y=240
if lines>1 then y2=340
if lines>2 then y3=340
xvel=0
yvel=-1
do
if rightkey() and xvel=>0
xvel=1
yvel=0
endif
if upkey() and yvel<=0
xvel=0
yvel=-1
endif
if leftkey() and xvel=<0
xvel=-1
yvel=0
endif
if downkey() and yvel>=0
xvel=0
yvel=1
endif
if timer()>gametime
inc x,xvel
if lines>1 then inc x2,xvel
if lines>2 then inc x3,xvel
inc y,yvel
if lines>1 then inc y2,yvel
if lines>2 then inc y3,yvel
if y>screen height() then y=0
if lines>1 then if y2>screen height() then y2=0
if lines>2 then if y3>screen height() then y3=0
if y<0 then y=screen height()
if lines>1 then if y2<0 then y2=screen height()
if lines>2 then if y3<0 then y3=screen height()
if x>screen width() then x=0
if lines>1 then if x2>screen width() then x2=0
if lines>2 then if x3>screen width() then x3=0
if x<0 then x=screen width()
if lines>1 then if x2<0 then x2=screen width()
if lines>2 then if x3<0 then x3=screen width()
if screenstate(x,y)=1 or lines>1 and screenstate(x2,y2)=1 or lines>2 and screenstate(x3,y3)=1
time_stop=timer()
run_time=time_stop-time_start
center text screen width()/2,10,"COLLISION!!!"
set cursor screen width()/2-20,21
print "Your score=",run_time
sync
wait key
cls
goto verystart
else
screenstate(x,y)=1
if lines>1 then screenstate(x2,y2)=1
if lines>2 then screenstate(x3,y3)=1
dot x,y
if lines>1
dot x2,y2
endif
if lines>2
dot x3,y3
endif
endif
gametime=timer()+difficulty
endif
sync
loop
EDIT now with a better scoring system based onthe difficulty and colourful lines
sync on
sync rate 60
hide mouse
dim screenstate(screen width(),screen height())
verystart:
cls
input "How many lines would you like? (1-3)>",lines
if lines<1 or lines>3 then gosub verystart
input "Difficulty 0(hardest) - 50 (easiest)>",difficulty
if difficulty<0 or difficulty>50 then gosub verystart
cls
start:
time_start=timer()
for x=1 to screen width()
for y=1 to screen height()
screenstate(x,y)=0
next y
next x
x=320
if lines>1 then x2=320
if lines>2 then x3=220
y=240
if lines>1 then y2=340
if lines>2 then y3=340
xvel=0
yvel=-1
do
time_so_far=timer()
score_take=(difficulty+1)/10
set cursor 0,0
run_time=time_so_far-time_start
ink rgb(0,0,0),0
box 0,0,50,20
ink rgb(rnd(155)+100,rnd(155)+100,rnd(155)+100),0
print ((run_time/1000)*lines)/(score_take+1)
if rightkey() and xvel=>0
xvel=1
yvel=0
endif
if upkey() and yvel<=0
xvel=0
yvel=-1
endif
if leftkey() and xvel=<0
xvel=-1
yvel=0
endif
if downkey() and yvel>=0
xvel=0
yvel=1
endif
if timer()>gametime
inc x,xvel
if lines>1 then inc x2,xvel
if lines>2 then inc x3,xvel
inc y,yvel
if lines>1 then inc y2,yvel
if lines>2 then inc y3,yvel
if y>screen height() then y=0
if lines>1 then if y2>screen height() then y2=0
if lines>2 then if y3>screen height() then y3=0
if y<0 then y=screen height()
if lines>1 then if y2<0 then y2=screen height()
if lines>2 then if y3<0 then y3=screen height()
if x>screen width() then x=0
if lines>1 then if x2>screen width() then x2=0
if lines>2 then if x3>screen width() then x3=0
if x<0 then x=screen width()
if lines>1 then if x2<0 then x2=screen width()
if lines>2 then if x3<0 then x3=screen width()
if screenstate(x,y)=1 or lines>1 and screenstate(x2,y2)=1 or lines>2 and screenstate(x3,y3)=1
time_stop=timer()
run_time=time_stop-time_start
center text screen width()/2,10,"COLLISION!!!"
set cursor screen width()/2-20,21
print "Your score=",((run_time/1000)*lines)/(score_take+1)
sync
wait key
cls
goto verystart
else
screenstate(x,y)=1
if lines>1 then screenstate(x2,y2)=1
if lines>2 then screenstate(x3,y3)=1
dot x,y
if lines>1
dot x2,y2
endif
if lines>2
dot x3,y3
endif
endif
gametime=timer()+difficulty
endif
sync
loop
The happenings of tommorow are behind us now