Okay, here's a game I made a few weeks ago. I made it to mess around with 2d. It's probably the worse thing I've ever made. But hey, it's twenty lines! See how many times you "Dont fall"!
set text size 76 : text 150,150, "Dont Fall" : wait 500 : player_Score=-1 : circle 8,8,8 : get image 1, 0,0,20,20 :cls : ink rgb(200,40,40),0 : box 0,0,50, 20 : get image 2, 0,0, 100, 40 : cls : box 0,0, 30,20 : get image 3, 0,0,60,40 : cls
start:
x=10 : y=0 : inc player_score : cls : print "Fallen ",player_score," times"
c=0 :f=1 :j=0 :i=0 : sync on :
do
if leftkey()=1 then x=x-3
if rightkey()=1 then x=x+3
if spacekey()=1 and c=1 then j=1
sprite 1, x,y, 1 : sprite 2, 20, 200, 2 : sprite 3, 265, 330, 3 : oldx=x : oldy=y
if j=1 then c=0 : inc i
if i=>1 then y=y-5
if i=15 then i=0 : j=0
if j=1 then f=0 else f=1
if sprite hit(1,2)>0 then f=0 : x=oldx : y=oldy
if sprite collision(1,0)>0 then f=0 : c=1
if f=1 then y=y+5
if x=>650 then x=1
if x=<0 then x=650
playery=sprite y(1) : if playery=>500 then goto start
sync : loop
For DBC!
Badmonkey91@hotmail.com