1
Fork 0
mirror of https://github.com/Steffo99/iiiiil-gioco.git synced 2024-11-21 23:44:21 +00:00

Piccole modifiche al codice

balu plis
This commit is contained in:
Steffo 2016-01-21 20:58:02 +01:00
parent 638063814b
commit 7ae1a2852c

View file

@ -742,15 +742,16 @@ int main()
cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl; cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl;
cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl; cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl;
titolo= rand()%10; titolo= rand()%10;
cout << "\n\n Citazione all'avvio: "<< splash[titolo] <<endl; cout << "\n\n Citazione all'avvio: "<< splash[titolo] << endl;
cout << "\n\n\n\n Premi INVIO per entrare nel menu!"<<endl; cout << "\n\n\n\n Premi INVIO per entrare nel menu!" << endl;
char a=getchar(); getch();
while(1) while(true)
{ {
char selection = getch();
system("cls"); system("cls");
if(cursorpos==1) if(cursorpos==1)
{ {
cout << " "<<endl; cout << " " << endl;
cout << " 000000" << endl; cout << " 000000" << endl;
cout << " 000000 0000 0000 0000 0000 0000 000 000000 0000 000000 000000 000000"<< endl; cout << " 000000 0000 0000 0000 0000 0000 000 000000 0000 000000 000000 000000"<< endl;
cout << " 00 000 00 000000 000000 000000"<< endl; cout << " 00 000 00 000000 000000 000000"<< endl;
@ -761,7 +762,7 @@ int main()
cout << "\n\n > NUOVA PARTITA <"<<endl; cout << "\n\n > NUOVA PARTITA <"<<endl;
cout << "\n OPZIONI"<<endl; cout << "\n OPZIONI"<<endl;
} }
if(cursorpos==2) else if(cursorpos==2)
{ {
cout << " "<<endl; cout << " "<<endl;
cout << " 000000" << endl; cout << " 000000" << endl;
@ -771,25 +772,25 @@ int main()
cout << " 00 0000 0000 0000 0000 0000 000 00 00 0000 00 00 000 00 00"<< endl; cout << " 00 0000 0000 0000 0000 0000 000 00 00 0000 00 00 000 00 00"<< endl;
cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl; cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl;
cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl; cout << " 000000 0000 0000 0000 0000 0000 000000 000000 0000 000000 000000 000000"<< endl;
cout << "\n\n NUOVA PARTITA "<<endl; cout << "\n\n NUOVA PARTITA " << endl;
cout << "\n > OPZIONI <"<<endl; cout << "\n > OPZIONI <" << endl;
} }
a=getch(); selection = getch();
if(a==72) if(selection==72)
{ {
cursorpos=cursorpos-1; cursorpos--;
} }
if(a==80) else if(selection==80)
{ {
cursorpos=cursorpos+1; cursorpos++;
} }
if (a==13)//PRESSIONE ENTER SU ELEMENTI MENU else if(selection==13)//PRESSIONE ENTER SU ELEMENTI MENU
{ {
if (cursorpos==1)//AVVIO GIOCO if(cursorpos==1)//AVVIO GIOCO
{ {
break; break;
} }
if (cursorpos==2) else if(cursorpos==2)
{ {
system("cls"); system("cls");
cout << "Modificare tipo blocco? (S/N)"<<endl; cout << "Modificare tipo blocco? (S/N)"<<endl;