mirror of
https://github.com/Steffo99/iiiiil-gioco.git
synced 2024-11-25 01:14:19 +00:00
Aggiunto comando per saltare un turno.
This commit is contained in:
parent
b75cc21b67
commit
a78f312478
1 changed files with 7 additions and 1 deletions
8
main.cpp
8
main.cpp
|
@ -93,7 +93,8 @@ void move(int player[2])
|
|||
//Rileva i tasti freccia
|
||||
while(waiting)
|
||||
{
|
||||
if(getch() == 224)
|
||||
unsigned char input = getch();
|
||||
if(input == 224)
|
||||
{
|
||||
switch(getch())
|
||||
{
|
||||
|
@ -135,6 +136,11 @@ void move(int player[2])
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if(input == 115) //S
|
||||
{
|
||||
//Salta un turno
|
||||
waiting = false;
|
||||
}
|
||||
}
|
||||
player[0] = player_x;
|
||||
player[1] = player_y;
|
||||
|
|
Loading…
Reference in a new issue