1

Coding #2

For my second coding project I decided to use scratch again. I think that scratch provides you all the blocks useful for making a game.

I wanted to make a pong game. I started off with the tutorial. I know there is a tutorial for a pong game but from my experiences on scratch I decided I could make one without the tutorial.

First I found a back round I liked and a paddle and ball. Next I made it so that you could move the paddle with the arrow keys. I then made the ball move, bounce off the walls, and bounce off the paddle. Now I had my base. Next I would start adding some of the parts that you don’t really need but I would like to have.

The most important of the ideas I had to make my game better is the lava at the bottom of the screen. So I made that first. I drew a red line at the bottom of the back round and filled it in with red. Then, I clicked on the ball and went to scripts. I coded, “If touching color red Stop all.” This means that if the ball gets by the paddle and touches the lava then you lose and have to start over.

But in a game where you can lose, it’s only fair that you can win too. The first step I took is making a variable called score. I made it so that at the beginning it would set score to zero. Then I made it so that if it was touching paddle it would change score by 1, so every time you hit the ball your score would be added by 1. Then I made another back round. I wrote, “YOU WIN,” I named this back round you win. Then I went back to scripts and made it that if your score is 30 it would change the backdrop to you win. In other words, if you hit the ball 30 time then you win.

These are the full details of how I made my game. If you don’t understand it then play it. If you do understand it, well, still play it. Hope you like it! Here it is:

wlemerond25

One Comment

  1. I like how there are no glitches in the game and you created it by yourself. When I used the tutorial it failed but you did it by yourself and didn’t fail. Good job.

Leave a Reply

Your email address will not be published. Required fields are marked *