Moving the paddle with the mouse works, but users on a laptop may find the trackpad a bit difficult to use. We're going to use the left and right arrow keys for our movement:
The complexion of our game has changed. If you did the hero exercise, your paddle sprite probably has a smaller surface to hit the ball than the original paddle. The arrow keys restrict how fast the sprite moves across the stage.
Each time we pressed the key, the sprite stepped to the left or right depending on which arrow we used. The move 50 steps block moved five times as far with one keystroke than the move 10 steps block.
A video game just wouldn't be any fun without some music, but before we can add music, we need to find some. You can use an MP3 from your music collection, search Creative Commons, or use a site such as free-loops.com. If you're musically inclined, you could build your music loop using the sounds we learned about in Chapter 5.
If you don't have a favorite sound, don't worry. Scratch includes a library of sounds you can use.
3.147.59.198