Bonjour chers amis,
j'ai l'honneur de vous présenter un autre petit jeu de ma création le MINSTEP. C'est un petit jeu où on est un petit + qui se fait courser par trois * il faut survivre le plus longtemps possible. Il fait 1036 octets et est optimisable (hésitez pas ). J'espère que ça vous plaira. Il faut utiliser les touches directionnel et 'enter' pour le mettre en pause.
Et maintenant en exclusivité la version 2 avec un niveau facile en plus (une mine en moins), et un bug réparé!
Le lien : http://www.4shared.com/file/ID-MJnYD/MINSTEP.html
j'ai l'honneur de vous présenter un autre petit jeu de ma création le MINSTEP. C'est un petit jeu où on est un petit + qui se fait courser par trois * il faut survivre le plus longtemps possible. Il fait 1036 octets et est optimisable (hésitez pas ). J'espère que ça vous plaira. Il faut utiliser les touches directionnel et 'enter' pour le mettre en pause.
Et maintenant en exclusivité la version 2 avec un niveau facile en plus (une mine en moins), et un bug réparé!
Le lien : http://www.4shared.com/file/ID-MJnYD/MINSTEP.html
- Code:
:Lbl M
:ClrHome
:4→A:8→B:1→C:1→D:1→E:8→G:16→H:16→F:DelVar UDelVar VDelVar WDelVar S1→J:1→N
:3→dim(ᴸMINS // ᴸ c'est le petit L dans [liste], MINS s'écrit avec alpha plus les lettres
:Lbl D
:Menu("MINSTEP","JOUER",0,"NIVEAU",1,"RECORDS",3,"QUITTER",2
:Lbl 3
:Disp "RECORD:","","FACILE:","NORMAL:","DIFFICILE:"
:Output(3,8,ᴸMINS(1
:Output(4,8,ᴸMINS(2
:Output(5,11,ᴸMINS(3
:Pause
:Goto D
:Lbl 1
:Menu("NIVEAU","FACILE",A,"NORMAL",B,"DIFFICILE",C
:Lbl A
:DelVar N
:Goto D
:Lbl B
:1→N
:Goto D
:Lbl C
:2→N
:Goto D
:Lbl 0
:While J
:ClrHome
:Output(A,B,"+
:If not(U
:Output(C,D,"*
:If not(V) and N
:Output(E,F,"*
:If not(W
:Output(G,H,"*
:getKey→K
:B-(K=24 and B>1)+(K=26 and B<16→B
:A-(K=25 and A>1)+(K=34 and A<8→A
:If K=105
:Then
:Output(4,6,"PAUSE
:Pause
:End
:If N≤2
:randInt(1,3)→T // entAléat dans [maths]
:If N=2
:randInt(1,2)→T
:If T=1:Then
:C+(A>C and not(U))-(A<C and not(U→C
:E+(A>E and not(V) and N)-(A<E and N and not(V→E
:G+(A>G and not(W))-(A<G and not(W→G
:End
:If T=2:Then
:D+(B>D and not(U))-(B<D and not(U→D
:F-(B<F and not(V) and N)+(B>F and N and not(V→F
:H+(B>H and not(W)-(B<H and not(W→H
:End
:S+1→S
:If not(U
:(E=C and F=D and N or C=G and D=H→U
:If not(V
:(E=C and F=D or E=G and F=H→V
:If not(W
:(G=E and H=F and N or G=C and H=D→W
:If U or V or W
:Then
:U+(U≠0)→U
:V+(V≠0)→V
:W+(W≠0)→W
:End
:If U
:Output(C,D,"X
:If V and N
:Output(E,F,"X
:If W
:Output(G,H,"X
:If U≥9
:Then
:DelVar U
:1→C:1→D
:End
:If V≥9
:Then
:DelVar V
:1→E:16→F
:End
:If W≥9
:Then
:DelVar W
:8→G:16→H
:End
:If A=C and B=D or A=E and B=F and N or A=G and B=H
:0→J
:End
:ClrHome
:Pause "BOOOOOOOOOOOOOM!
:Output(4,4,"GAME OVER
:If S>ᴸMINS(N+1
:S→ᴸMINS(N+1
:Pause
:ClrHome
:Disp " GAME OVER // 3 espaces avant
:Disp "SCORE:",S,"BEST:",ᴸMINS(N+1
:Pause
:Goto M
:Lbl 2
Dernière édition par ashtrail le Sam 5 Oct 2013 - 18:24, édité 8 fois