i forgot to add zom_getch

This commit is contained in:
zombie maniac 2022-03-04 11:21:54 -05:00
parent 8764bd17db
commit a7ec60390c
Signed by: nbrooks211
GPG key ID: F43C85C0DF0C334E
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,9 @@ int zom_screxit(void) {
return 0;
}
int zom_putcharat(int x, int y, char chara){
mvaddch(y, x, chara);
mvaddch(y, x, chara); //flipped to match screen coords
return 0;
}
char zom_getch(void){
return getch();
}

View file

@ -39,7 +39,7 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
debugent_y.xold = debugent_y.x;
debugent_y.yold = debugent_y.y;
switch (getch()) {
switch (zom_getch()) {
case 'a':
player.x--;
break;