Batch Index du Forum
S’enregistrerRechercherFAQMembresGroupesConnexion
Répondre au sujet Page 1 sur 1
aide mini-jeux
Auteur Message
Répondre en citant
Message aide mini-jeux 
Message supprimé ...



Dernière édition par SKYSEVEN33 le Sam 23 Avr 2016 - 19:30; édité 1 fois
Visiter le site web du posteur
Message Publicité 
PublicitéSupprimer les publicités ?


Répondre en citant
Message Re: aide mini-jeux 
SKYSEVEN33 a écrit:
Mon mini-jeux a un problème,d’où vient il ?
Merci d'avance

Code:
@echo off
TITLE Mouv By PL
setlocal enabledelayedexpansion
color F0
set x=1&set y=1
set score=0
set "x-1-y-1= "&set "x-1-y-2= "&set "x-1-y-3= "&set "x-1-y-4= "&set "x-1-y-5= "&set "x-1-y-6= "&set "x-1-y-7= "&set "x-1-y-8= "&set "x-1-y-9= "&set "x-1-y-10= "
set "x-2-y-1= "&set "x-2-y-2= "&set "x-2-y-3= "&set "x-2-y-4= "&set "x-2-y-5= "&set "x-2-y-6= "&set "x-2-y-7= "&set "x-2-y-8= "&set "x-2-y-9= "&set "x-2-y-10= "
set "x-3-y-1= "&set "x-3-y-2= "&set "x-3-y-3= "&set "x-3-y-4= "&set "x-3-y-5= "&set "x-3-y-6= "&set "x-3-y-7= "&set "x-3-y-8= "&set "x-3-y-9= "&set "x-3-y-10= "
set "x-4-y-1= "&set "x-4-y-2= "&set "x-4-y-3= "&set "x-4-y-4= "&set "x-4-y-5= "&set "x-4-y-6= "&set "x-4-y-7= "&set "x-4-y-8= "&set "x-4-y-9= "&set "x-4-y-10= "
set "x-5-y-1= "&set "x-5-y-2= "&set "x-5-y-3= "&set "x-5-y-4= "&set "x-5-y-5= "&set "x-5-y-6= "&set "x-5-y-7= "&set "x-5-y-8= "&set "x-5-y-9= "&set "x-5-y-10= "
set "x-6-y-1= "&set "x-6-y-2= "&set "x-6-y-3= "&set "x-6-y-4= "&set "x-6-y-5= "&set "x-6-y-6= "&set "x-6-y-7= "&set "x-6-y-8= "&set "x-6-y-9= "&set "x-6-y-10= "
set "x-7-y-1= "&set "x-7-y-2= "&set "x-7-y-3= "&set "x-7-y-4= "&set "x-7-y-5= "&set "x-7-y-6= "&set "x-7-y-7= "&set "x-7-y-8= "&set "x-7-y-9= "&set "x-7-y-10= "
set "x-8-y-1= "&set "x-8-y-2= "&set "x-8-y-3= "&set "x-8-y-4= "&set "x-8-y-5= "&set "x-8-y-6= "&set "x-8-y-7= "&set "x-8-y-8= "&set "x-8-y-9= "&set "x-8-y-10= "
set "x-9-y-1= "&set "x-9-y-2= "&set "x-9-y-3= "&set "x-9-y-4= "&set "x-9-y-5= "&set "x-9-y-6= "&set "x-9-y-7= "&set "x-9-y-8= "&set "x-9-y-9= "&set "x-9-y-10= "
set "x-10-y-1= "&set "x-10-y-2= "&set "x-10-y-3= "&set "x-10-y-4= "&set "x-10-y-5= "&set "x-10-y-6= "&set "x-10-y-7= "&set "x-10-y-8= "&set "x-10-y-9= "&set "x-10-y-10= "

:Menu
cls
echo.
echo.
echo.      1.COMMENCER
echo.      2.AIDE
echo.      3.QUITTER
echo.
set /p menu=
if %menu%==1 goto :life
if %menu%==2 goto :Help
if %menu%==3 exit
goto :Menu

:Mouv
if !x-%x%-y-%y%!==!%life%! set /A score+=1&goto :life
set x-%x%-y-%y%=0
cls
echo.                        score : %score%
echo. ÚÄÄÄÄÄÄÄÄÄÄ¿
echo. ³%x-1-y-1%%x-1-y-2%%x-1-y-3%%x-1-y-4%%x-1-y-5%%x-1-y-6%%x-1-y-7%%x-1-y-8%%x-1-y-9%%x-1-y-10%³
echo. ³%x-2-y-1%%x-2-y-2%%x-2-y-3%%x-2-y-4%%x-2-y-5%%x-2-y-6%%x-2-y-7%%x-2-y-8%%x-2-y-9%%x-2-y-10%³
echo. ³%x-3-y-1%%x-3-y-2%%x-3-y-3%%x-3-y-4%%x-3-y-5%%x-3-y-6%%x-3-y-7%%x-3-y-8%%x-3-y-9%%x-3-y-10%³
echo. ³%x-4-y-1%%x-4-y-2%%x-4-y-3%%x-4-y-4%%x-4-y-5%%x-4-y-6%%x-4-y-7%%x-4-y-8%%x-4-y-9%%x-4-y-10%³
echo. ³%x-5-y-1%%x-5-y-2%%x-5-y-3%%x-5-y-4%%x-5-y-5%%x-5-y-6%%x-5-y-7%%x-5-y-8%%x-5-y-9%%x-5-y-10%³
echo. ³%x-6-y-1%%x-6-y-2%%x-6-y-3%%x-6-y-4%%x-6-y-5%%x-6-y-6%%x-6-y-7%%x-6-y-8%%x-6-y-9%%x-6-y-10%³
echo. ³%x-7-y-1%%x-7-y-2%%x-7-y-3%%x-7-y-4%%x-7-y-5%%x-7-y-6%%x-7-y-7%%x-7-y-8%%x-7-y-9%%x-7-y-10%³
echo. ³%x-8-y-1%%x-8-y-2%%x-8-y-3%%x-8-y-4%%x-8-y-5%%x-8-y-6%%x-8-y-7%%x-8-y-8%%x-8-y-9%%x-8-y-10%³
echo. ³%x-9-y-1%%x-9-y-2%%x-9-y-3%%x-9-y-4%%x-9-y-5%%x-9-y-6%%x-9-y-7%%x-9-y-8%%x-9-y-9%%x-9-y-10%³
echo. ³%x-10-y-1%%x-10-y-2%%x-10-y-3%%x-10-y-4%%x-10-y-5%%x-10-y-6%%x-10-y-7%%x-10-y-8%%x-10-y-9%%x-10-y-10%³
echo. ÀÄÄÄÄÄÄÄÄÄÄÙ
echo.
echo %x% %y% - %score%
choice.exe /c:hbdg /n

if %errorlevel%==4 goto :left
if %errorlevel%==3 goto :right
if %errorlevel%==2 goto :down
if %errorlevel%==1 goto :up
goto :Mouv


:down
if not %x%==10 set "x-%x%-y-%y%= "&set /a x+=1
goto :Mouv

:up
if not %x%==1 set "x-%x%-y-%y%= "&set /a x-=1
goto :Mouv

:right
if not %y%==10 set "x-%x%-y-%y%= "&set /a y+=1
goto :Mouv

:left
if not %y%==1 set "x-%x%-y-%y%= "&set /a y-=1
goto :Mouv

:life
set /a lifex=%random%%%11
set /a lifey=%random%%%11
if %lifex%==0 goto :life
if %lifey%==0 goto :life
set x-%lifex%-y-%lifey%=2&set life=x-%lifex%-y-%lifey%
goto :Mouv


:Help
cls
echo.
echo.
echo.   UP : h      DOWN: b   
echo.   RIGHT : d   LEFT : g

pause>nul&goto :Menu


Bonjour, choice ne supporte pas les flèches directionnelles, les touches hbdg sont les lettres H, B, D et G du clavier, si on veut supporter les flèches du clavier, il faut voir avec batbox ou une autre commande similaire.

Aussi, comme tu l'as dis Mr. Green :
Pensez à [CODE]




______________________________________________________
Partager permet le savoir. Le savoir permet de partager de nouveau savoirs.
Répondre en citant
Message aide mini-jeux 
Un bonjour n'aurais pas été de trop ...




______________________________________________________
Coucou, tu veux voir mon Site Web ?? Mort de Rire
Visiter le site web du posteur Skype
Message aide mini-jeux 


Montrer les messages depuis:
Répondre au sujet Page 1 sur 1
  



Index | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Copyright 2008 - 2016 // Batch