- Basic Lightning Game
- 05 Apr 2007 05:20:13 pm
- Last edited by TheStorm on 09 Apr 2007 08:11:54 am; edited 3 times in total
I've been working on this game for a while and i think i'm ready to release the first version of it but can any one take a look and give some suggestions
Code:
Code:
::DCS
:"EFEFDFDFEFF7D5E3
::A
:HIGHSCOR
::
:11→dim(∟LHS
:If not(∟LHS(1
:{1,21,52,51,1,30,57,58,55,50,66→LHS
:ClrDraw:AxesOff
:0→Xmin:94→Xmax:0→Ymin:62→YMax
:For(A,0,62
:Horizontal(A
:End
:StorePic 1
:Lbl C
:DelVar SDelVar DRecallPic 1
:Text({-}1,8,6,"LIGHTNING v2.1
:Line(5,55,5,47,0
:Line(6,55,89,55,0
:Line(5,45,89,45,0
:Text(19,25,"BY JON STURM
:Line(24,37,24,43,0
:Line(25,37,66,37,0
:Text({-}1,29,6,"1- PLAY
:Text({-}1,37,6,"2- WATCH
:Text({-}1,45,6,"3- SCORES
:Text({-}1,53,6,"4- EXIT
:{83,82,81,81,81,81,82,83,83,83,83,83,83,82,81,80,79,78,78,78,78,79,80,81,82,83,83,83,83,82,81,80,81,82,83,82,81,80,79,78,77,78,79,80,79,78,77,78,79,80,81,82,83,82,81,80,80,80,80,79,78,77→{L1}
:For(N,0,61
:Pxl-Off(N,{L1}(N+1
:End
:DelVar {L1}
:Lbl Z
:Repeat K:getKey→K:End
:If K=92
:Goto 1
:If K=93
:Goto 2
:If K=94
:Goto 4
:If K=82 or K=45 or K=22
:Goto 3
:Goto Z
:Lbl 4
:∟LHS→{L2}
:"Lightning→Str3
:1→H:prgmHIGHSCOR
:Goto C
:Lbl 1
:1→D
:Lbl 2
:DelVar L
:47→P
:RecallPic 1
:Repeat getKey=45
:If D
:P→G
:If not(D
:randInt(4,90→G
:For(V,61,0,{-}3
:randInt({-}1,1→A
:G+3A(G+3A>0 and G+3A<95→W
:Line(G,V+3,W,V,0
:W→G
:If D
:Then
:getKey→C
:If C=26 or C=24 or V≥60
:Then
:P→M
:P+2((C=26 and P<91)-(C=24 and P>3)→P
:Pt-On(M,10,2:Line(M,9,M,3:Line(M+1,6,M+3,8:Line(M-1,6,M-3,8:Line(M-1,2,M-3,0:Line(M+1,2,M+3,0
:Pt-Off(P,10,2:Line(P,9,P,3,0:Line(P+1,6,P+3,8,0:Line(P-1,6,P-3,8,0:Line(P-1,2,P-3,0,0:Line(P+1,2,P+3,0,0
:End
:If V≤13 and abs(P-W)≤5
:Then
:1→L:Goto A
:End
:End
:End
:Lbl A
:Line(G+1,V+1,G+3,V+3,0:Line(G-1,V+1,G-3,V+3,0:Line(G-3,V,G-4,V+1,0:Line(G+3,V,G+4,V+1,0
:StorePic 2:ClrDraw:RecallPic 2
:If L
:Goto G
:ClrDraw:RecallPic 1
:S+1→S
:End
:If not(D
:Goto C
:Lbl G
:If S>∟LHS(1
:Then
:DelVar H
:prgmHIGHSCOR
:DelVar ∟LHS
:{L1}→∟LHS
:S→∟LHS(1
:Goto 4
:Else
:Text(15,24," Ha Ha You Lose!
:End
:Text(23,25," Your Score= ",S
:Pause
:Goto C
:Lbl 3
:ClrHome:ClrDraw:AxesOn
:DelVar Pic1DelVar Pic2DelVar Str3