TO PLAY THE GAME: ------------------------- Move your mouse to move the paddle left and right. Don't miss the ball else it will be game over! Every time you hit the ball you score an extra point. VARIABLE DEBUG: ---------------------- The score in this game isn't currently working. We've created a variable with the label 'score' but there is nothing in the scripts to change the score when the player hits the ball. You need to fix this. Clue: use the 'change score by 1' block (in Data) somewhere in the code stack for the ball sprite. MAKE THE GAME EVEN BETTER: ---------------------------------------- 1. Can you find a way to switch to a different backdrop when it's game over? 2. Can you hide the ball and paddle when it is game over? 3. Can you change the game so that the paddle is controlled using the left and right cursor keys? (Tip: see the code stack for paddle2 in Lis Bundock's original 'Pong Tennis 2 Player' project to see how you can do this). MEGA CHALLENGES FOR THE BRAVE/FOOLISH: ---------------------------------------------------------- 1. Can you turn this into a two-player game (i.e. with two paddles and a score for each player)? 2. Or can you give the player three 'lives' so that if they miss the ball a new ball appears until all three lives have been used.
This activity was originally devised by Lis Bundock, Jeremy Burton. Start by trying to get the variable score to work properly. Then think about how it could be developed further.