Asteroids
Asteroids Part 1
Introduction
Step 1: Create Lives Variables
Step 2: Make More Variables
Step 3: Set Our Variables
Step 4: Ship Starting Position and Controls
Step 5: Game Over IF Statement 1
Step 6: Game Over IF Statement 2
Step 7: Game Over
Step 8: Ship Up Movement
Step 9: Ship Left Movement
Step 10: Ship Down Movement
Step 11: Ship Right Movement
Step 12: Bullet Start Position 1
Step 13: Bullet Start Position 2
Step 14: Create Bullet Clone
Step 15: Bullet Fire Direction
Step 16: Bullet Movement
Step 17: Bullet Collision IF 1
Step 18: Bullet Collision IF 2
Step 19: Bullet Collision IF 3
1 of 4
Previous Lesson
Next Lesson
Step 18: Bullet Collision IF 2
Asteroids
Step 18: Bullet Collision IF 2
Goal:
Let’s begin by setting up the two conditions the bullet can collide with.
Steps:
From
Sensing,
place a
touching color
block.
From
Sensing,
place a
touch mouse-pointer
block.
Code:
Previous Lesson
Back to Course
Next Lesson