Browse Source

change input returns

main
fdai7184 2 years ago
parent
commit
b7f964faea
  1. 10
      src/input.c

10
src/input.c

@ -44,19 +44,19 @@ char getInput(){
switch(key){ switch(key){
case 'w': case 'w':
printf("W");
return 'u';
break; break;
case 'a': case 'a':
printf("A");
return 'l';
break; break;
case 's': case 's':
printf("S");
return 'd';
break; break;
case 'd': case 'd':
printf("D");
return 'd';
break; break;
case 'q': case 'q':
printf("quit");
return 'q';
break; break;
case 'p': case 'p':
printf("\033[31mgame paused, p to continue"); printf("\033[31mgame paused, p to continue");

Loading…
Cancel
Save