This is my 4H project for Computer Science in the Block Based Programming category.
For this project, I created a game called Squirrel Pong using the website Scratch. Here are some of the conditions that I had to use to make the game work correctly:
- When building this game, I used an infinite loop in order to make the ball move around the screen.
- I also used if statements in order to tell the ball to bounce off of the squirrel and wall.
- I used an if statement to change the score each time the ball hit the squirrel.
- I used an if loop to stop the game if the ball ever hits the red line.
- I found a bug when the game was done and had to use a set command to move the ball back the original spot or the game would be glitched.
- When you click on the green flag, it resets the game, the ball position, and your score.