My Games Project
Programming with Scratch
-On the third week of Computer Science I learned how to make a game on Scratch.
-In order for the player on the left side or also known as Player1 in this case,
The game was ping pong.It involves two "paddles" (the black lines that are circled in red in the following image)...
to move his or her paddle I needed to program the paddle
to keys on the key board. Bellow is an image to that very code.
-Even though both players in this case have the same capabilities,
they have different coding as well.
Bellow is the coding for the right side player.
-The coding for the ball is much longer than the paddles
the ball has much more work in its hands. It needs to be given all the "if"
such as "if the ball hits blue turn 90".
These "if" statements are essential to the game because all
the possibilities must be laid out within the coding.
If you were to program a game and not lay out the possibilities
you would kill the whole illusion of playing a "life like" game.
Bellow is an image of the "if" statements for the ball...