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