Skip to content

Smash

Original alpha quality instructions can be found here.

The completed code for this game is available here.

About
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

controls

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:

create project

Step 2 - Create the paddle sprite and move

The completed code for this step is available here.

create paddle

Step 3 - Adding the ball

The completed code for this step is available here.

create ball

Step 4 - Serving the ball

The completed code for this step is available here.

serve ball

Step 5 - Hitting the ball with the paddle

The completed code for this step is available here.

hit the ball

Step 6 - Dropping the ball

The completed code for this step is available here.

dropping the ball

Step 7 - Creating the blocks

The completed code for this step is available here.

new blocks

call new blocks

Step 8 - Smashing the blocks

The completed code for this step is available here.

smash blocks

Step 9 - Completing the level

The completed code for this step is available here.

new level

Extending the game

Challenges

Randomly assign different colours to the blocks.