smixi wrote:Sinon je trouve pas de tutoriel au niveau des appVar.
Si tu parles un peu anglais, je te conseille celui-ci. Il ne parle pas que des appvars donc il te faut naviguer un peu mais il est très clair

smixi wrote:Sinon je trouve pas de tutoriel au niveau des appVar.
![]() Pokemon Topaze (Axe) discussion and download links here | (19:29:36) noelnadal: plus sérieusement, j'ai très peu de problèmes (22:45:44) Clifward: J'aime rire du malheur des autres ![]() (2017.11.18 - 17:07:12) Fireworks: Hayleia !!!!! (2017.11.18 - 17:07:19) TI-Bot: Fireworks has been logged out (Kicked). (2017.11.18 - 17:07:22) TI-Bot: Ban of user Fireworks revoked. (2017.11.18 - 17:07:25) TI-Bot: Fireworks logs into the Chat. (2017.11.18 - 17:07:28) Fireworks: <3 (2017.11.18 - 17:07:31) Fireworks: 208 |
nikitouzz wrote:par contre il y a plusieurs variables donc je ne vois pas l'utilitées à quoi sert X ?
smixi wrote:Y'a un bug que je n'arrive pas à corriger, dans le menu, quand j'appuis sur 'Clr' dans le 'menu', ca lance une partie au lieu de quitter :/. Sinon je trouve pas de tutoriel au niveau des appVar. Merci d'avance.
![]() Pokemon Topaze (Axe) discussion and download links here | (19:29:36) noelnadal: plus sérieusement, j'ai très peu de problèmes (22:45:44) Clifward: J'aime rire du malheur des autres ![]() (2017.11.18 - 17:07:12) Fireworks: Hayleia !!!!! (2017.11.18 - 17:07:19) TI-Bot: Fireworks has been logged out (Kicked). (2017.11.18 - 17:07:22) TI-Bot: Ban of user Fireworks revoked. (2017.11.18 - 17:07:25) TI-Bot: Fireworks logs into the Chat. (2017.11.18 - 17:07:28) Fireworks: <3 (2017.11.18 - 17:07:31) Fireworks: 208 |
:.ATAPE
:fix 5
:data(47,0,95,47,47,65,32,32,0,32)->oBB
:LBL B
:Asm(EF4645) //sert a effacer l'ecran visible
:clrdraw
:text(1,,"1jouer)2option)3credit")
:while 1
:returnIf getKey(15)
:If getKey(18)
:fix 4
:text(25,32,"SMIXI")
:fix 5
:pause 3600
:End
:Dispgraph
:EndIf getKey(34)
:0->S
:500->T
:while 1
:clrdraw
:S++
:rand^5+1->Z
:1->P
:for(16)
:circle({Z-1+oBB->r2},{r2+5},select(P,+1,P))
:Dispgraph
:End
:while 1
:text(44,30,T--Dec)
:Dispgraph
:EndIf getKey=Z or (T=0) or (Z=5 and getKey(9))
:End!If T
:clrdraw
:text(30,+2,"score:",Sdec)
:while1
:dispgraph
:EndIf getkey(9) or getkey(15)
:Goto B
D'après ce que j'ai compris (j'ai peut-être mal compris aussi), X est un flag qui permet de sortir de deux boucles à la fois. Lorsque la condition de sortie est réalisée, X est mis à 1 et les deux "Repeat X=1 or qqch" terminent.
:.ATAPE
:
:"vTAPHS"→Pic1HS
:UnArchive Pic1HS
:!If GetCalc(Pic1HS)→Θ
: Return!If GetCalc(Pic1HS,20)→Θ
: 5→{Θ}
:0→{Θ+1}
:0→{Θ+2}
:0→{Θ+3}
:1→{Θ+10}
:End
:...
:{Θ}=Option temp
:{Θ+1}=HS 500
:{0+2}=HS 1000
:{Θ+10}=Mode jeu
:{Θ+3}=mode survie HS
:A=aleat(1-5)
:B=score
:X=flag fin temp
:G=temps
:U=vitesse
:V=regle vitesse
:...
:0→A→B→X→U→V
:{Θ+10}?100→U
:
:.MENU
:ClrDrawDispGraph
:While 1
: Text(1,1,"1=JOUER)2=OPTION)3=REGLES")
: .JOUER
: If getKey(34)
: ClrDrawDispGraph
: Text(43,32,"3")
: Pause 1800
: Text(43,32,"2")
: Pause 1800
: Text(43,32,"1")
: Pause 1800
: MAX()
:End
:
:.OPTION
:If getKey(26)
: ClrDrawDispGraph
:While 1
: Text(14,32,"TEMPS:
: Text(42,32,"< ",{Θ}*100►Dec,"> ")
:
: If {Θ}>1 and getKey(2)
: {Θ}-1→{Θ}
: Pause 180
:End
:
:If {Θ}<25 and getKey(3)
: {Θ}+1→{Θ}
:Pause 180
:End
:
:If getKey(55)
: 1-{Θ+10}→{Θ+10}
:Pause 360
:End
:
:If {Θ+10}
: 100→U
:Text(42,45,"SURVIE")
:Else
:0→U
:Text(42,45,"NORMAL")
:End
:
:Text(15,45,"MODE:")
:EndIf getKey(9) or getKey(15)
: {Θ}*100→G
:ClrDrawDispGraph
:End
:
:.REGLES
:If getKey(18)
: ClrDrawDispGraph
:Text(35,60,"SMIXI")
:Pause 3200
:End
:
:.SCORE
:If getKey(43)
: ClrDrawDispGraph
:Text(20,15,"NORMAL-500 : ",{Θ+1}►Dec)
:Text(20,25,"NORMAL-1000 : ",{Θ+2}►Dec)
:Text(20,35,"SURVIE : ",{Θ+3)►Dec)
:Text(18,50,"APPUYER SUR ENTRER"
:While 1
:EndIf getKey(9) or getKey(15)
: ClrDrawDispGraph
:End
:
:EndIf getKey(15)
:
:Archive Pic1HS
:Return
:.Fin du jeu
:
:
:
:. Fonction
:.-------------
:Lbl MAX
:While 1
: AL()
: TOU()
: B++
:EndIf X=1 or getKey(15)
: ClrDrawDispGraph
:
:.OPTI possible
:If (B>{Θ+1}) and ({Θ}=5) and ({Θ+10}=0)
: B→{Θ+1}
:HS()
:End
:If (B>{Θ+2}) and ({Θ}=10) and ({Θ+10}=0)
: B→{Θ+2}
:HS()
:End
:If B>{Θ+3} and {Θ+10}=1
: B→{Θ+3}
:HS()
:End
:
:Text(30,32,"SCORE:",B►Dec)
:Pause 1800
:While 1
:EndIf getKey(9) or getKey(15)
: 0→X→A→B→V
:{Θ}*100→G
:{Θ+10}?100→U
:{Θ+10}??0→U
:ClrDrawDispGraph
:Return
:
:.Touche
:Lbl TOU
:
:Repeat X=1 or getKey(A) or getKey(A+4) or getKey(15)
: Text(44,30,G--►Dec)
: Pause 18
: G??1→X
:
:
: If {Θ+10} and (getKey≠A or getKey≠A+4)
: 1→X
:End
:
:End
:!If getKey(1) xor getKey(2) xor getKey(3) xor getKey(4) xor getKey(9)
: 1→X
:End
:Return
:
:.Alea
:Lbl AL
:
:∆List(47,0,95,47,47)→GDB1X
:∆List(65,32,32,0,32)→GDB1Y
:rand^5+1→A
:.affichage des fleches
:CER({A+GDB1X-1},{A+GDB1Y-1})
:Return
:
:Lbl CER
:ClrDraw
:.ViTEsse
:If {Θ+10}
: U>30?U--
:U≤30?V++
:V=5?0→V+U-1→U
:End
:
:For(P,1,15)
: Circle(r1,r2,P)
: DispGraph
: Pause 4+U
:End
:Return
:
:Lbl HS
:Text(15,39,"NOUVEAU HIGHSCORE !"
:
smixi wrote:- si je fait {o}->{o+1} ca marche ?
smixi wrote:- comment je fait pour mettre un score superieur a 255 dans une appvar ?
![]() Pokemon Topaze (Axe) discussion and download links here | (19:29:36) noelnadal: plus sérieusement, j'ai très peu de problèmes (22:45:44) Clifward: J'aime rire du malheur des autres ![]() (2017.11.18 - 17:07:12) Fireworks: Hayleia !!!!! (2017.11.18 - 17:07:19) TI-Bot: Fireworks has been logged out (Kicked). (2017.11.18 - 17:07:22) TI-Bot: Ban of user Fireworks revoked. (2017.11.18 - 17:07:25) TI-Bot: Fireworks logs into the Chat. (2017.11.18 - 17:07:28) Fireworks: <3 (2017.11.18 - 17:07:31) Fireworks: 208 |
Bien sûr que ça marche
Pourquoi ça ne marcherait pas ?
smixi wrote:J'ai le droit de mélanger valeur a 2 octets et valeur a 1 octet, ou mettre r veut dire au compilateur " tu dois lire cette octet avec celui qui suit" ?
![]() Pokemon Topaze (Axe) discussion and download links here | (19:29:36) noelnadal: plus sérieusement, j'ai très peu de problèmes (22:45:44) Clifward: J'aime rire du malheur des autres ![]() (2017.11.18 - 17:07:12) Fireworks: Hayleia !!!!! (2017.11.18 - 17:07:19) TI-Bot: Fireworks has been logged out (Kicked). (2017.11.18 - 17:07:22) TI-Bot: Ban of user Fireworks revoked. (2017.11.18 - 17:07:25) TI-Bot: Fireworks logs into the Chat. (2017.11.18 - 17:07:28) Fireworks: <3 (2017.11.18 - 17:07:31) Fireworks: 208 |
Return to Langages alternatifs
Users browsing this forum: ClaudeBot [spider] and 6 guests