1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| M=_Newimage(800,600,32):e=2:f=80:screen M:dim P(8192,2048):dim T(-100to 8192,2048):g(1)=300:x(1)=10:for i=1to 8192:tt=0
II:
randomize timer:Z=rnd*10:if Z<4then W=2
if Z>6then w=-2
if Z>=4and Z<=6then W=0
v=v+1*w:if abs(v)>250or abs(v)<10then goto II:
for j=(350+v)to 600
if j<1then j=1
T(i,j)=1
if tt=0and rnd*100<0.004and j<589then P(I,J)=1:tt=1
next j,i
cls:X3=1:G3=25:do:_limit 60:cls:IF _KEYDOWN(18432)THEN Q=Q+5
IF _KEYDOWN(20480)THEN Q=Q-5
IF h=0AND _KEYDOWN(32)THEN H=1:xx=x(1)+2:yy=g(1)-45:Q1=Q
for i=1+c to 800+c step 2:for j=1to 800step 2
if t(i,j)=1then pset(i-c,j)
if P(i,j)=1 then
_printstring(i-c,j),"O":if abs(x(1)-i)<=30and abs(g(1)-10-j)<=30then P(i,j)=0:l=l+1:PLAY"MBL64O5DCABC":end if
next j,i:IF H=1and b=0THEN
T=T+0.06:X=xx-c+(COS(Q1*(3.14)/180)*f)*T:Y=yy+(-1*((SIN(Q1*(3.14)/180)*f*T))+(.5*9.8*T^2))*(300/150):_printstring(x,y),".":if x<0or x>8100or y>598 or y<=10 then h=0:t=0
if t(X+c,y)=1and h=1then C1=c:b=3:U=30:END IF
if b=3then
for i=1to 360:for j=1to int(rnd*U):T(x+c1+j*cos(i*(3.14)/180),y+j*sin(i*(3.14)/180))=0:next j,i:p=p+2:circle(X,y),p:if p>u then p=0:b=0:h=0:t=0:end if
for i=1to 2:if x(1)>=400and m=1and c>=0and(800+c)<8192then c=c+1*o*e*2
if c<0 then c=0
if c>7390then c=7390
if _keydown(19712)and x(1)<8100and r=0then x(1)=x(1)+1*e:m=1:O=1:d=1
if _keydown(19200)and x(1)>0then x(1)=x(1)-1*e:m=1:O=-1:d=2
for j=5 to 10:if d=1 then
if t(x(1)+j,g(1)-20-j)=1then x(1)=x(1)-1*e:if c>0then c=c-1*e
elseif d=2 then
if t(x(1)-j,g(1)-20-j)=1 then x(1)=x(1)+1*e:if c>0then c=c+1*e:end if
next:if x(i)<20then x(i)=20
if x(i)>8100then x(i)=8100
if g(i)<590then g(i)=g(i)+2*e
circle(x(1)-c,g(1)-12),8:if t(x(1),g(1))=1 then g(1)=g(1)-2*e
if m=1 and t(x(i)+1*e,g(i))=1then g(i)=g(i)-2*e
if m=1 and t(x(i)-1*e,g(i))=1then g(i)=g(i)-2*e
next:?"Ppites :"+str$(l):LINE(x(1)-c+2,g(1)-35)-(x(1)-c+2+18*COS(Q*(3.14)/180),g(1)-35-18*SIN(Q*(3.14)/180)),_RGB(255,0,0):for i=12 to 40:circle(x(1)-c,g(1)-35),8,_rgb(255,255,255):line(x(1)-c,g(1)-25)-(X(1)-c,g(1)-25):next:m=0:_display:loop |
Partager