Ed_Maximized Posted October 27, 2006 Share Posted October 27, 2006 great job. I modded it a bit. lol YOUTUBE STYLE Youtube_game.zip I like the idea... It could be used in many ways!!! ShapedGUI Creator : Shaped gui the easy way!!!Txt2au3 : the easy way to include text files into your program without fileinstall_GUICreateWithTiledBackground : Put a GIF in the background of your formsSQLite Database BrowserAnimated GIF UDF : Put animations in your GUI's Link to comment Share on other sites More sharing options...
locomaestro Posted January 2, 2007 Share Posted January 2, 2007 My first too well then here its my game took me a while a little editin need to do but here it is. here is the code , well it wasnt done in autoit Code:set window onshow windowrandomize timer()set display mode 800,600,16set window size 480,600sync onsync rate 0hide mousecls rgb(0,0,0)draw to frontdim wirex(100000)dim wirey(100000)dim wireshow(100000)start:load image "graphics\title.bmp",1for t=1 to 8load image "graphics\wire"+str$(t)+".bmp",t+1next tload image "graphics\wiretool.bmp",11load image "graphics\toolother.bmp",12load image "graphics\shock.bmp",13load image "graphics\shock.bmp",14load image "graphics\shock.bmp",15load image "graphics\tooldetect.bmp",16load image "graphics\chances.bmp",17load image "graphics\base1.bmp",50load image "graphics\base2.bmp",51load image "graphics\title.bmp",52load sound "sounds\buzzer.wav",1load music "sounds\title.mid",1load music "sounds\music1.mid",2load music "sounds\music2.mid",3load music "sounds\music3.mid",4load music "sounds\music4.mid",5load music "sounds\music5.mid",6load music "sounds\gameover.mid",7load music "Sounds\complete.mid",8title:level=0for t=1 to 8if music playing(t)=1 then stop music tnext tplay music 1buzz=0loop sound 1titlex:for t=1 to 1000if sprite exist(t)=1 then delete sprite tnext tcls rgb(0,0,0)paste image 52,320,75,0set window title "****Welcome to Buzz Wire****"set text font "Westminster"set text to boldset text size 32ink rgb(255,255,0),rgb(255,255,0)text 220,275,"<Space Bar> Start a New Game"set text size 28ink rgb(255,255,255),rgb(255,255,255)text 150,350,"Welcome to Buzz Wire, programmed for the PC by"text 150,380,"Nigel Stephen...."ink rgb(0,255,0),rgb(0,255,0)text 150,465,"<Mouse> Controls Buzzer During Game,"text 150,495,"<Enter> Exit Game...."if mouseclick()=1 or inkey$()=" " then stop sound 1:goto 1if inkey$()=chr$(13) then endbuzz=buzz+1if buzz>20 then buzz=20if buzz=20 then stop sound 1ink rgb(255,255,255),rgb(255,255,255)ty=100for t=1 to 4for tx=0 to 800 step 20td=tyty=ty-rnd(20)+rnd(20)if ty<80 then ty=80if ty>120 then ty=120line tx-20,td,tx,tynext txnext tsyncgoto titlex1:for t=1 to 1000if sprite exist(t)=1 then delete sprite tnext tfor t=1 to 8if music playing(t)=1 then stop music tnext tscrx=0:scry=0no=0nox=20noxx=20x=0:y=0xx=0:yy=0detect=0leveltype=0cl=2clx=2tmrgo=0for t=1 to 100000wirex(t)=0wirey(t)=0wireshow(t)=0next tchance=15levelx=0level=level+1if level=1 then lvltype=1:levelx=0:stop music 1:play music 2if level=2 then lvltype=1:levelx=0:chance=14:stop music 2:play music 3if level=3 then lvltype=1:levelx=0:chance=12if level=4 then lvltype=1:levelx=0:chance=10:stop music 3:play music 4if level=5 then lvltype=2:levelx=1:chance=8if level=6 then lvltype=2:levelx=1:chance=5:stop music 4:play music 5if level=7 then lvltype=2:levelx=1:chance=5if level=8 then lvltype=2:levelx=1:chance=4:stop music 5:play music 6if level=9 then goto completefor ty=580 to 250 step -5no=no+1wirex(no)=150wirey(no)=tynext tytx=150ty=250si=0:sii=1game1:if rnd(20)=0 then si=rnd(1)if ty<150 then si=1if ty>450 then si=0if si=0 then tx=tx+5:ty=ty-5if si=1 then tx=tx+5:ty=ty+5if tx>875 then goto game2no=no+1wirex(no)=txwirey(no)=tyif levelx=1 then if rnd(100)=0 and tx>100 then gosub wiregoto game1wire:tspi=0:tspii=-5tgo=0tmr=0wirex:tmr=tmr+1:if tmr=2 then tmr=0if tmr=0 then if rnd(20)=0 then tspi=-5+rnd(10)rem if tmr=0 then if rnd(50)=0 then tspii=-5+rnd(10)ty=ty+tspitx=tx+tspiiif tx<50 then goto wirex2tmr=tmr+1:if tmr>50+rnd(100) then si=rnd(1):goto wirex2no=no+1wirex(no)=txwirey(no)=tygoto wirexwirex1:tmr=tmr+1:if tmr=2 then tmr=0:tii=tii+1tx=tx+tiiif ti=0 then ty=ty-5if ti=1 then ty=ty+5if tii>0 then goto wirex2no=no+1wirex(no)=txwirey(no)=tygoto wirex1wirex2:returngame2:for tyy=ty to 580 step 5no=no+1wirex(no)=txwirey(no)=tyynext tyywirespr=1+levelxx=wirex(20)-18yy=wirey(20)shock=02:cls rgb(0,0,0)s=xx:d=yyx=mousemovex()y=mousemovey()xx=xx+xyy=yy+yscrx=380-xxscry=250-yyif scrx>0 then scrx=0if scrx<-225 then scrx=-225if scry<-100 then scry=-100set window title "Buzz Wire Level :- "+str$(level)+" Chances :- "+str$(chance)if levelx=0 then paste image 50,scrx+2,scry+500,0if levelx=1 then paste image 51,scrx+110,scry+562,0if ok=1 then sprite no+12,-500,-500,11if ok=0 then sprite no+12,-500,-500,13+rnd(2)paste sprite no+12,scrx+xx,scry+yyok=0spr=10okgo=0cl=2tmrgo=tmrgo+1if tmrgo=2 then tmrgo=0:clx=clx+1:if clx=9 then clx=2cl=clxfor t=1 to nospr=spr+1if lvltype=2 then cl=cl-1:if cl=1 then cl=8if lvltype=0 then sprite spr,scrx+wirex(t),scry+wirey(t),wiresprif lvltype=1 then sprite spr,scrx+wirex(t),scry+wirey(t),8if lvltype=2 then sprite spr,scrx+wirex(t),scry+wirey(t),clif lvltype=1 or lvltype=2 then if spr>noxx then sprite spr,scrx+wirex(t),scry+wirey(t),wiresprif detect=spr then nox=sprif nox>noxx and nox<noxx+20 then noxx=noxrem if sprite collision(no+3,spr) then ok=1next trem noxx=noxsprite no+13,scrx+xx,scry+yy,12sprite no+14,scrx+xx+12,scry+yy+18,16set sprite no+14,1,1hide sprite no+14detect=sprite collision(no+14,0)if detect>0 and detect<no+10 then ok=1if ok=0 then xx=s:yy=dif ok=0 then if sound playing(1)=0 then play sound 1:chance=chance-1if chance=0 then goto gameoverrem if ok=1 then stop sound 1rem sprite no+2,xx,yy,12rem if ok=0 then xx=s:yy=dif xx>wirex(no)-50 and xx<wirex(no)+50 and yy>wirey(no)-50 and yy<wirey(no)+50 then goto lvlfor tx=0 to (chance-1)*20 step 20paste image 17,tx,0,0next txif inkey$()=chr$(13) then endsyncgoto 2lvl:for t=1 to no+14if sprite exist(t)=1 then delete sprite tnext tgoto 1gameover:for t=1 to 1000if sprite exist(t)=1 then delete sprite tnext tfor t=1 to 8if music playing(t)=1 then stop music tnext ttmr=0play music 7gameoverx:cls rgb(0,0,0)set text font "Westminster"set text size 64ink rgb(255,255,196),rgb(255,255,196)center text 400,250,"Game Over!"ink rgb(255,255,255),rgb(255,255,255)center text 401,249,"Game Over!"tmr=tmr+1if mouseclick()=1 or inkey$()=" " then goto titlesyncif tmr<40 then goto gameoverxgoto titlecomplete:for t=1 to 1000if sprite exist(t)=1 then delete sprite tnext tfor t=1 to 8if music playing(t)=1 then stop music tnext ttmr=0play music 8completex:cls rgb(0,0,196)ti=20ty=480ink rgb(255,255,255),rgb(255,255,255)box 0,0,799,599ink rgb(0,0,196),rgb(0,0,196)box 2,2,794,594ink rgb(0,255,0),rgb(0,255,0)for t=1 to 20ti=ti-1ty=ty-tiline 0,ty,800,tynext tfor tx=0 to 900 step 20line tx,280,tx-100,380next txset text font "Westminster"set text size 64ink rgb(rnd(255),rnd(255),rnd(255)),rgb(rnd(255),rnd(255),rnd(255))center text 400,250,"****Congratulations!****"ink rgb(rnd(255),rnd(255),rnd(255)),rgb(rnd(255),rnd(255),rnd(255))if rnd(2)>0 then ink rgb(255,255,0),rgb(255,255,0)center text 401,249,"****Congratulations!****"ink rgb(255,255,255),rgb(255,255,255)ty=285for t=1 to 4for tx=0 to 800 step 20td=tyty=ty-rnd(20)+rnd(20)if ty<250 then ty=250if ty>310 then ty=310line tx-20,td,tx,tynext txnext ttmr=tmr+1syncif mouseclick()=1 then play sound 1:goto titleif tmr<200 then goto completexgoto title/code Link to comment Share on other sites More sharing options...
i386 Posted January 2, 2007 Share Posted January 2, 2007 Very nice game. Simple, yet basic. I like it! Spoiler "...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor "Mess with the best, die like the rest!!" -Hackers "This above all to thine own self be true." -William Shakespeare "Corruption is only as corrupted as the individual makes it out to be." -i386 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now