Smash
Original alpha quality instructions can be found here.
The completed code for this game is available here.
Classic breakout on MakeCode Arcade. Score points by smashing blocks. Lose lives by dropping the ball. The game ends when all lives are lost.
Controls D pad - moves paddle A button - serves ball
Learning outcome
Step 1 - Create a new game
Navigate to the MakeCode Arcade website at the following address https://arcade.makecode.com and create a new game called smash as shown below:
Step 2 - Create the paddle sprite and move
The completed code for this step is available here.
Step 3 - Adding the ball
The completed code for this step is available here.
Step 4 - Serving the ball
The completed code for this step is available here.
Step 5 - Hitting the ball with the paddle
The completed code for this step is available here.
Step 6 - Dropping the ball
The completed code for this step is available here.
Step 7 - Creating the blocks
The completed code for this step is available here.
Step 8 - Smashing the blocks
The completed code for this step is available here.
Step 9 - Completing the level
The completed code for this step is available here.
Extending the game
Challenges
Randomly assign different colours to the blocks.