1
Fork 0
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:
Steffo 2015-12-30 15:41:36 +01:00
parent b75cc21b67
commit a78f312478

View file

@ -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;