Browse Source

add controll text to add to later main

main
fdai7184 2 years ago
parent
commit
aa47928ff8
  1. 7
      src/input.c

7
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);
}
}

Loading…
Cancel
Save