i forgot to add zom_getch
This commit is contained in:
parent
8764bd17db
commit
a7ec60390c
2 changed files with 5 additions and 2 deletions
|
@ -15,6 +15,9 @@ int zom_screxit(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int zom_putcharat(int x, int y, char chara){
|
int zom_putcharat(int x, int y, char chara){
|
||||||
mvaddch(y, x, chara);
|
mvaddch(y, x, chara); //flipped to match screen coords
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
char zom_getch(void){
|
||||||
|
return getch();
|
||||||
|
}
|
||||||
|
|
|
@ -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.xold = debugent_y.x;
|
||||||
debugent_y.yold = debugent_y.y;
|
debugent_y.yold = debugent_y.y;
|
||||||
|
|
||||||
switch (getch()) {
|
switch (zom_getch()) {
|
||||||
case 'a':
|
case 'a':
|
||||||
player.x--;
|
player.x--;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue