Step 4

Coding the enemy/player collision


Next add the following code, to allow our player to collide with the asteroids.

The camera shake block can be found in the Scene section.

Coding the enemy/laser collision


Next add the following code, to allow our laser to destroy the asteroids.

The camera shake block can be found in the Scene section.

Testing the code


Next, go ahead and test out the code. The core game should now be complete! Think of some other things you can add to the game to further enhance/improve it and make it your own!