I love to download Brick Breaker game in my mobile to play. It is fun and exciting with this simple game. How about we try to make brick breaker in Scratch? Let explore the game creation.
Create A Brick Breaker Game
- In the game, we need tennis ball, brick and paddle.
- Create a Tennis Ball to have it move around.
- Set the tennis move 10 steps if on edge then bounce.
- If touch paddle sprite, broadcast bounce.
- Bounce event is 180 – direction, this direction is when the bounce hit the brick angle. Then move x by 10 steps.
- Check if the ball goes less than y position -140, which is lower than the paddle, then broadcast game over.
- In the paddle code, set the rotation style to don’t rotate.
- Move the paddle to mouse pointer and move x step by 10. Keep the y position at -140.
- Set the score to 0.
- Generate a bricks of 4 rows and 7 columns.
- Set X to -200 and change y to -30 at each rows.
- When the ball hit the brick, add the score by 1 and broadcast bounce.
- Game over sprite and show when game over event is triggered.
- Set the Win sprite when Score hit 28 and stop all script.
In summary, let play the game and try the bricks hit by the tennis ball with paddle.
Thanks for reading and enjoy your day.