i'm using Turbo C++ 3, rather old compiler. the old EGVGA.BGI Driver. just using basic graphics here. fillellipse and such. i have a pretty basic question..most of you could probably help.
I've done the menu, and drawn the pong table, and i have the paddle working. I need to know how to make it so the ball is able to move at the same time as you are able to control the paddle, and for the computer controlled paddle to be running at the same time. this paddle will just be moving according to the movements of the ball. any hints will be appreciated.
if (ch==PADDLE_DOWN_CODE) MovePaddle(DOWN);
if (ch==PADDLE_UP_CODE) MovePaddle(UP);
Is there any way possible for 2 player mode, or is it impossible to hit more than one key at one time? For the controls of both players.
I'd suggest a test program calling kbhit() and getch(), and you pressing several keys at once to see what happens