Voici un jeu utilisant le principe de flappy bird
laisser des commentaires s'il y a des problèmes
laisser des commentaires s'il y a des problèmes
- Code:
:Float
:ClrHome
:Output(2,1,"FLAPPY BIRD v1.0
:Output(4,4,"BY KLEIN"
:Output(6,3,"PRESS ENTER
:Output(7,5,"TO PLAY
:Pause
:Lbl A
:Menu("FLAPPY BIRD v1.0","PLAY",1,"BEST SCORES",2,"OPTIONS",3,"HELP",4,"QUIT",5
:Lbl 2
:ClrHome
:Output(2,4,"BEST SCORES
:Output(4,3,"1er
:Output(5,3,"2e
:Output(6,3,"3e
:Output(4,8,ᴸBIRD(2)
:Output(5,8,ᴸBIRD(3)
:Output(6,8,ᴸBIRD(4)
:Output(4,13,"pts
:Output(5,13,"pts
:Output(6,13,"pts
:Pause
:Goto A
:Lbl 4
:ClrHome
:Disp "PRESS 2nde TO
:Disp "FLY AND PASS
:Disp "BETWEEN PIPES
:Disp "
:Disp "PRESS ANNUL TO
:Disp "QUIT THE GAME
:Pause
:Goto A
:Lbl 1
:If ᴸBIRD(1)=0:Then:Goto 3:Else:Goto J
: Lbl 3
: ClrHome
: Disp "CHOOSE YOUR BIRD
: Input "SYMBOL: ",Str1
: 1→ᴸBIRD(1)
: Goto A
:End
:Lbl J
:ClrHome
:6→Y
:Repeat K=21
: getKey→K
: Output(Y,6,Str1
:End
:Y-2→Y:0→S
:While 1
: randInt(0,5)→H
: 9-(5-H)→M
: For(L,15,1,‾1
: Output(1,2,S
: For(A,1,H
: Output(A,L,"[]
: End
: For(C,8,M,‾1
: Output(C,L,"[]
: End
: getKey→K
: If K=45:Goto 5
: If K=0 and Y=8
: Goto 6
: If K=21 and Y≥3
: Then
: Y-2→Y
: Output(Y,6,Str1
: Output(Y+2,6,"
: End
: If K=0:Then
: Y+1→Y
: Output(Y,6,Str1
: Output(Y-1,6,"
: End
: For(A,1,H
: Output(A,L+1," "
: End
: For(C,8,M,‾1
: Output(C,L+1,"
: End
: If L=6 or L=5
: Then
: If (Y≥1 and Y≤H) or (Y≥M and Y≤8):Goto 6:End
: If L=1:Then
: Output(1,1,"
: Output(2,1,"
: Output(3,1,"
: Output(4,1,"
: Output(5,1,"
: Output(6,1,"
: Output(7,1,"
: Output(8,1,"
: End
: If L+1=6:S+1→S
: Output(Y,6,"
: End
:End
:Lbl 5
:ClrHome
:Stop
:Lbl 6
:ClrHome
:Output(2,5,"GAME OVER
:Output(4,5,"YOU LOSE!
:Output(6,5,"SCORE:
:Output(6,12,S
:Pause
:If S≥ᴸBIRD(4) and S≤ᴸBIRD(3)
:Then
: S→ᴸBIRD(4
:End
:If S≥ᴸBIRD(3) and S≤ᴸBIRD(3
:Then
: ᴸBIRD(3→ᴸBIRD(4:S→ᴸBIRD(3
:End
:If S>ᴸBIRD(2
:Then
: ᴸBIRD(3→ᴸBIRD(4:ᴸBIRD(2→ᴸBIRD(3:S→ᴸBIRD(2
:End
:Goto A