I'm in a high school C++ class right now for summer and my group's final project is to make a game using C++. We decided on Pong.
We created 2 versions, the first uses a two dimensional character array to represent the playing area while the second uses 966 individual characters to represent a 14x69 playing area. Both of these versions work fine, it's just that the first version is A LOT shorter.
The main problem we're having is that every time the player (user) wants to move the paddle up or down, he has to push the key and then enter everytime. So to move it up 3 times, you have to push "q, enter, q, enter, q, enter" or "q, q, q, enter".
If you guys could help, that'd be awesome. Even our teacher (who holds a PhD in Computer Science) is not sure how to have it work in realtime on our school's system. The thing is due Friday (tomorrow), so if you guys could help us by then, it'd be cool. It has to work on our school's system, on which some header files don't work, like <conio.h>
Here are the source codes - main version (2D char array) ||| longer 966 individual char
We created 2 versions, the first uses a two dimensional character array to represent the playing area while the second uses 966 individual characters to represent a 14x69 playing area. Both of these versions work fine, it's just that the first version is A LOT shorter.
The main problem we're having is that every time the player (user) wants to move the paddle up or down, he has to push the key and then enter everytime. So to move it up 3 times, you have to push "q, enter, q, enter, q, enter" or "q, q, q, enter".
If you guys could help, that'd be awesome. Even our teacher (who holds a PhD in Computer Science) is not sure how to have it work in realtime on our school's system. The thing is due Friday (tomorrow), so if you guys could help us by then, it'd be cool. It has to work on our school's system, on which some header files don't work, like <conio.h>
Here are the source codes - main version (2D char array) ||| longer 966 individual char