Asteroids
Step 18: Change the Receive Code for Big Asteroid 2
Step 19: Small Asteroid 1 Start Code
Step 20: Spawn Code
Step 21: Small Asteroid Start Code 1
Step 22: Small Asteroid Start Code 2
Step 23: Small Asteroid Direction
Step 24: Show Small Asteroids
Step 25: Move Small Asteroids
Step 26: Small Asteroid Bullet Collision 1
Step 27: Small Asteroid Bullet Collision 2
Step 28: Small Asteroid Ship Collision 1
Step 29: Small Asteroid Ship Collision 2
Step 30: Delete Small Asteroid and Bounce on Edge
Step 31: Duplicate Code
Step 32: Changes to Small_2.1 code 1
Step 33: Changes to Small_2.1 code 2
Step 34: Duplicate Small_2.1 Code
4 of 4
Previous Lesson
Next Lesson
Step 28: Small Asteroid Ship Collision 1
Asteroids
Step 28: Small Asteroid Ship Collision 1
Goal:
Let’s set up the code for the small Asteroid when it hits the ship.
Steps:
From
Control
place an
IF
block.
From
Sensing,
place a
touching
block in the
IF
and set it to
ship.
Code:
Previous Lesson
Back to Course
Next Lesson