From d83e87b44861f17c21b4b9bb140ea6a76dcf9cb7 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 22:43:00 +0100 Subject: [PATCH] gameover when game over --- src/Main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Main.c b/src/Main.c index c5ab0a2..1161e2c 100644 --- a/src/Main.c +++ b/src/Main.c @@ -29,6 +29,9 @@ int main(int argc, char ** argv){ while(winb==0 && quit==0 && looseb==0){ Umgebung(realU); richtung = getInput(); + if(richtung == 'q'){ + break; + } testint = update1(realU, richtung); @@ -37,7 +40,8 @@ int main(int argc, char ** argv){ } - + printf("\033[31mgame over \n"); + printf("\033[0m"); //Name abfragen //Setup