In pong, how can I make the two paddles move independtly of each other? At the moment, when player 1 presses a letter on the keyboard, player 2 can't move and vice versa. I have used a simple getchar()
Code:while ( ( c = getchar()) != 'Q' ){ if ( c == 'k' ) RIGHT_paddle_up(); else if ( c == 'm' ) RIGHT_paddle_down(); else if (c == 's') LEFT_paddle_up(); else if (c == 'x') LEFT_paddle_down(); }



LinkBack URL
About LinkBacks



