This is only my second 20 liner. my first was really bad, and i havnt tried to make another one in a long time. This one took me around 1 hour, is compacted into 15 lines, but was something aroud 75 before.
controls:use arrowkeys to move your player around
objective; you are the green box. dodge the red boxes. get purple boxes to raise your score. final score is the product of time and purple boxes
sync on : sync rate 200;ink rgb(0,255,0),0:line 0,0,0,20:line 20,0,20,20:line 0,0,20,0:line 0,20,20,20;get image 1,0,0,21,21:cls;ink rgb(255,0,0),0:line 0,0,0,20:line 20,0,20,20:line 0,0,20,0:line 0,20,20,20;get image 2,0,0,21,21
cls:ink rgb(255,0,255),0:line 0,0,0,20:line 20,0,20,20:line 0,0,20,0:line 0,20,20,20;get image 3,0,0,21,21:cls
start:set text to normal;set text size 10;color backdrop rgb(0,0,0);x#=250:y#=250:sprite 1,x#,y#,1
ey1=-5-rnd(50);ex1=rnd(465);ey2=-5-rnd(50);ex2=rnd(465);ey3=-5-rnd(50);ex3=rnd(465);ey4=-5-rnd(50);ex4=rnd(465);ey5=-5-rnd(50);ex5=rnd(465);ey6=-5-rnd(50);ex6=rnd(465)
px=rnd(465);py#=-5-rnd(50);h#=100;s=0;do;t=t+1;ink rgb(0,0,255),0
line 0,0,0,300;line 500,0,500,300;line 0,0,500,0;line 0,300,500,300
ey1=ey1+1;if ey1=>260;ey1=-5;ex1=rnd(500);endif;sprite 2,ex1,ey1,2;ey2=ey2+1;if ey2=>260;ey2=-5;ex2=rnd(500);endif;sprite 3,ex2,ey2,2;ey3=ey3+1;if ey3=>260;ey3=-5;ex3=rnd(500);endif;sprite 4,ex3,ey3,2;ey4=ey4+1
if ey4=>260;ey4=-5;ex4=rnd(500);endif;sprite 5,ex4,ey4,2;ey5=ey5+1;if ey5=>260;ey5=-5;ex5=rnd(500);endif;sprite 6,ex5,ey5,2;ey6=ey6+1;if ey6=>260;ey6=-5;ex6=rnd(500);endif;sprite 7,ex6,ey6,2
py#=py#+.1;if py#=>260;py#=-5;px=rnd(500);endif;sprite 8,px,py#,3
if sprite hit(1,2);h#=h#-1;endif;if sprite hit(1,3);h#=h#-1;endif;if sprite hit(1,4);h#=h#-1;endif;if sprite hit(1,5);h#=h#-1;endif;if sprite hit(1,6);h#=h#-1;endif;if sprite hit(1,7);h#=h#-1;endif
if sprite hit(1,8);s=s+1;py#=-5;px=rnd(500);endif
if h#=<0;do;set text to bold;set text size 40;text 100,100,"YOU LOST!";set text to normal;set text size 20;text 100,160,"YOU GOT THIS MANY BRICKS "+str$(s);text 100,180,"MULTIPLIED BY YOUR TIME WITCH IS "+str$(t)
fs=s*t;text 100,200,"EQUALS YOR FINAL SCORE WITCH IS "+str$(fs);if returnkey()=1;s=0;t=0;h#=100;goto start;endif;sync;loop
endif;ink rgb(50,100,200),0;text 20,400,"HEALTH="+str$(h#);text 20,412,"TIME="+str$(t);text 20,422,"PURPLE BRICKS RECIEVED="+str$(s);sprite 1,x#,y#,1;scale sprite 1,155
if upkey()=1:y#=y#-.5;endif;if downkey()=1;y#=y#+.5;endif;if rightkey()=1;x#=x#+.5;endif;if leftkey()=1;x#=x#-.5;endif;if x#=<0;x#=0;endif;if x#=>470;x#=470:endif;if y#=<0;y#=0;endif;if y#=>260:y#=260;endif;sync;loop
enjoy!
c&c are welcome, and oh. this was made using dbp