Browse Source

gameover when game over

main
fdai7184 2 years ago
parent
commit
d83e87b448
  1. 6
      src/Main.c

6
src/Main.c

@ -29,6 +29,9 @@ int main(int argc, char ** argv){
while(winb==0 && quit==0 && looseb==0){ while(winb==0 && quit==0 && looseb==0){
Umgebung(realU); Umgebung(realU);
richtung = getInput(); richtung = getInput();
if(richtung == 'q'){
break;
}
testint = update1(realU, richtung); testint = update1(realU, richtung);
@ -37,7 +40,8 @@ int main(int argc, char ** argv){
} }
printf("\033[31mgame over \n");
printf("\033[0m");
//Name abfragen //Name abfragen
//Setup //Setup

Loading…
Cancel
Save