rework de tout le code
This commit is contained in:
51
main.cpp
51
main.cpp
@@ -25,6 +25,7 @@ int main() {
|
||||
bool quitter = false; //Quitter le jeu
|
||||
int nbMot3lettre = 15; //Nombre de mot pr<70>sent dans le fichier
|
||||
int temp = 0; //TODO: Variable temporaire
|
||||
string motRandom; // Mot random
|
||||
|
||||
while (quitter == false) {
|
||||
curseur(false);
|
||||
@@ -34,33 +35,33 @@ int main() {
|
||||
int choixMenu = _getch();
|
||||
|
||||
switch (choixMenu) {
|
||||
case '1':
|
||||
afficherMenu("AfficheMenu/TaxonOption1.txt");
|
||||
delai();
|
||||
curseur(true);
|
||||
system("cls");
|
||||
background(temp);
|
||||
choisirMot("Mots/mot3lettres.txt", nbMot3lettre);
|
||||
afficherMenuJouer();
|
||||
break;
|
||||
case '1':
|
||||
afficherMenu("AfficheMenu/TaxonOption1.txt");
|
||||
delai();
|
||||
curseur(true);
|
||||
system("cls");
|
||||
background(temp);
|
||||
motRandom = choisirMot("Mots/mot3lettres.txt", nbMot3lettre);
|
||||
afficherMenuJouer();
|
||||
break;
|
||||
|
||||
case '2':
|
||||
afficherMenu("AfficheMenu/TaxonOption2.txt");
|
||||
delai();
|
||||
curseur(true);
|
||||
system("cls");
|
||||
temp = demanderBackground();
|
||||
background(temp);
|
||||
break;
|
||||
case '2':
|
||||
afficherMenu("AfficheMenu/TaxonOption2.txt");
|
||||
delai();
|
||||
curseur(true);
|
||||
system("cls");
|
||||
temp = demanderBackground();
|
||||
background(temp);
|
||||
break;
|
||||
|
||||
case '3':
|
||||
afficherMenu("AfficheMenu/TaxonOption3.txt");
|
||||
delai();
|
||||
background('1');
|
||||
afficherMenu("AfficheMenu/Quitter.txt");
|
||||
quitter = true;
|
||||
break;
|
||||
}
|
||||
case '3':
|
||||
afficherMenu("AfficheMenu/TaxonOption3.txt");
|
||||
delai();
|
||||
background('1');
|
||||
afficherMenu("AfficheMenu/Quitter.txt");
|
||||
quitter = true;
|
||||
break;
|
||||
}
|
||||
|
||||
system("PAUSE>0");
|
||||
system("cls");
|
||||
|
||||
Reference in New Issue
Block a user