j'ai un jeu de pong et il ya des erreurs,
pouvez-vous me les corriger svp ??
Voici le code :
- Code: Select all
:ClrHome
:Disp "","","****************"," PINGPONG"," BY D. JacKaL","****************"
:Pause
:Lbl T
:ClrHome
:Disp "HOW MANY ROUNDS"
:Disp "(0-9)"
:Input Q
:If Q9 or Q0:Then:Goto T:End
:0üR:0üW
:Lbl B
:ClrHome
:5üA:4üB:2üX
:1üI:4üY
:R+1üR
:2-(int (4rand))üJ
:If R=Q+1:Then:Goto C:End
:ClrHome
:Disp "ROUND NO."
:1üN
:Repeat N15
:N+.3üN
:Output(2,int N,R)
:End
:ClrHome
:1üL:1üK
:Output(B,16,"I")
:Output(B+1,16,"I")
:Output(B-1,16,"I")
:Repeat X15 or X2
:AüD:BüE:XüO:YüL
:getKeyüK
:If K=25 and B2
:Then:B-1üB:Output(B+2,16," "):End
:If K=34 and B7
:Then:B+1üB:Output(B-2,16," "):End
:If K=73:Then:Pause :End
:If K=74:Then:Goto Z:End
:If A2:Then
:If AY:Then
:A-1üA:Output(A+2,1," "):End
:End
:If A7:Then
:If AY:Then
:A+1üA:Output(A-2,1," "):End
:End
:int (X+I)üX
:int (Y+J)üY
:If X3:Then
:If Y=A:Then:úIüI:End
:If Y=A-1:Then:úIüI:J-1üJ:End
:If Y=A+1:Then:úIüI:J+1üJ:End
:End
:If X14:Then
:If Y=B:Then:úIüI:End
:If Y=B-1:Then:J-1üJ:úIüI:End
:If Y=B+1:Then:J+1üJ:úIüI:End
:End
:If abs J2:Then:.5*JüJ:End
:If Y7:Then:úabs (J)üJ:8üY:End
:If Y2:Then:abs JüJ:1üY:End
:If Y÷2 or Yù7:Then
:If abs J1:Then:(4-X)/abs (4-X)üJ:End
:End
:Output(L,O," ")
:If Y6:Then // - - //
:6üY // Code rajouté par un pote !! //
:End // - - //
:Output(Y,X,R)
:If AøD:Then
:Output(A-1,1,"I")
:Output(A,1,"I")
:Output(A+1,1,"I")
:End
:If BøE:Then
:Output(B-1,16,"I")
:Output(B,16,"I")
:Output(B+1,16,"I")
:End
:End
:ClrHome
:If X5:Then:W+1üW:End
:If RøQ:Then
:Menu("PING PONG","CONTINUE",B,"QUIT",E)
:Lbl E:ClrHome:Goto Z
:End
:Lbl C
:ClrHome
:Output(1,1,"YOU WERE"
:Output(2,1,W)
:Output(2,3," FOR ")
:Output(2,8,Q)
:Pause
:Menu("PINGPONG","PLAY AGAIN",T,"QUIT",X)
:Lbl X
:ClrHome
:Lbl Z
Merci d'avance !!!!
