Computer Science Canada Basic Pong Game Score Card |
Author: | theturingrookie [ Thu Jun 18, 2015 11:19 am ] | ||
Post subject: | Basic Pong Game Score Card | ||
What is it you are trying to achieve? To keep track of score in pong What is the problem you are having?[/size i can't seem to get track of the score. I made an if statement that if the y variable of the ball touches maxy then it is a point for the other player. [size=14]Describe what you have tried to solve this problem <Answer Here> Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | Insectoid [ Thu Jun 18, 2015 3:53 pm ] |
Post subject: | RE:Basic Pong Game Score Card |
Well first of all, maxy is the top of the screen. Doesn't the ball have to touch the left or right sides to score a point? |