Homework 6
2 min readFeb 26, 2021
Catch The Ball, 2/26/21
Pseudocode:
- elements: bucket, ball falling, scorekeeper, game over, balls in bucket.
- Make a bucket that moves left and right.
- Display “Score” in the middle of the screen.
- Have score count up each time a ball is made in the bucket. If you miss the ball have the score start back at 0. Count++ adds a count to score everytime the distance is true. Count = 0 everytime distance goes past the bucket which is in the restart function.
- Display game over and click to restart. All in an if function for (IsGameOver).
- Have balls build in the bucket each time the score goes up. I was not able to figure this part out, but left it with what I had tried so far.
Art References:
References: