I am in the process of writing an old invaders game of sorts. When I ran into a problem, I was using
when I realized then when I reach the getch statement, my programs halts. And waits for user input, that is a very serious problem. How can I get around this.Code:key = getch ( ); switch ( key ) { case '4': //go left break; case '6': //go right break; case '8': //go up break; case '2': //go down break; }
p:s: the enemy ships and their bullets only move when I move.