From aa47928ff8d2a687868f3aea53e2791c57bb39c6 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Wed, 8 Feb 2023 21:33:28 +0100 Subject: [PATCH] add controll text to add to later main --- src/input.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/input.c b/src/input.c index ce3f93b..46c3697 100644 --- a/src/input.c +++ b/src/input.c @@ -9,6 +9,7 @@ char getch(void); /*int main(int argc, char ** argv){ +printf("wasd or arrows to control snake, q to quit, p to pause game."); while(1){ getInput(); } @@ -60,9 +61,9 @@ void getInput(){ } pause(){ -while(getch()!='p'){ - sleep(1); -} + while(getch()!='p'){ + sleep(1); + } }