'*** X-box hunting By Demoneye 2002 open window 640,512 label start setrgb 0,0,0,0 clear screen gosub setup gosub loop label setup setrgb 1,255,255,255 text 210,200,"X-Box Shooting!" text 180,300,"Press X to Continue" repeat pad=peek("port1") until (and(pad,16384)>0) x=320 y=256 time=60 speed=7 dx=0 dy=int(ran(320))+100 ammo=700 return label loop setdrawbuf dw dw=1-dw setdispbuf dw setrgb 0,100,100,255 clear window gosub background gosub X_Box gosub move_aim sec=sec+1 if sec=60 then sec=0 time=time-1 speed=speed+0.1 fi if time<0 goto time_out goto loop label move_aim pad=peek("port1") if and(pad,16)>0 y=y-5 if and(pad,64)>0 y=y+5 if and(pad,32)>0 x=x+5 if and(pad,128)>0 x=x-5 if ammo>0 and and(pad,16384)>0 then bul=1 ammo=ammo-1 setrgb 1,200,150,0 fill circle x,y,5 fi setrgb 1,0,0,0 circle x,y,15 line x-20,y to x+20,y line x,y-20 to x,y+20 if bul=1 and xdx-10 and y>dy-10 and y0 then text 200,20,"**A M M O L O W!!**" fi if ammo<=0 then ammo=0 text 160,20,"**A M M O D E P L E T E D**" fi return label X_Box dx=dx+speed dy=dy-1 if dx>640 then dx=0:dy=int(ran(320))+100 miss=miss+1 fi setrgb 1,100,100,100 fill rect dx-10,dy-10 to dx+10,dy+10 setrgb 1,50,50,50 line dx-10,dy-10 to dx+10,dy+10 line dx+10,dy-10 to dx-10,dy+10 setrgb 1,0,200,0 fill circle dx,dy,4 return label time_out repeat setdrawbuf dw dw=1-dw setdispbuf dw setrgb 0,0,0,0 clear window setrgb 1,255,255,255 text 170,100,"You destroyed "+str$(score)+" X-Boxs" text 170,200,"You missed "+str$(miss)+" X-Boxs" if score<=miss then text 170,300,"Too many got away!" text 170,400,"Microsoft will dominate the industry!" fi if score>miss then text 170,300,"They're goin' down!" text 170,400,"Sony will prosper!" fi pad=peek("port1") until (and(pad,16384)>0) goto start return