Browse Source

refactoring:remove other unreachable code

main
fdai7184 2 years ago
parent
commit
ce401b6237
  1. 5
      src/input.c

5
src/input.c

@ -41,19 +41,14 @@ char getInput(){
switch(key){ switch(key){
case 'w': case 'w':
return 'u'; return 'u';
break;
case 'a': case 'a':
return 'l'; return 'l';
break;
case 's': case 's':
return 'd'; return 'd';
break;
case 'd': case 'd':
return 'd'; return 'd';
break;
case 'q': case 'q':
return 'q'; return 'q';
break;
case 'p': case 'p':
printf("\033[31mgame paused, p to continue"); printf("\033[31mgame paused, p to continue");
printf("\033[0m"); printf("\033[0m");

Loading…
Cancel
Save