|
@ -8,15 +8,6 @@ int kbhit(void); |
|
|
char getch(void); |
|
|
char getch(void); |
|
|
void Pausieren(); |
|
|
void Pausieren(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*int main(int argc, char ** argv){ |
|
|
|
|
|
printf("wasd or arrows to control snake, q to quit, p to pause game."); |
|
|
|
|
|
while(1){ |
|
|
|
|
|
getInput(); |
|
|
|
|
|
} |
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** getInput gets the userinput and reacts to input of w,a,s,d, arrow keys, p or q |
|
|
/** getInput gets the userinput and reacts to input of w,a,s,d, arrow keys, p or q |
|
|
* utilises getch() and kbhit, no parameters, no returns |
|
|
* utilises getch() and kbhit, no parameters, no returns |
|
|
*/ |
|
|
*/ |
|
|