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 5: Game Over IF Statement 1
Asteroids
Step 5: Game Over IF Statement 1
Goal:
Let’s start coding the Game Over conditions for our game.
Steps:
From
Control,
place an
IF
block
From
Operators,
place a
<(less than)
block.
Set the second space in the <(less than) block to
0
.
Code:
Previous Lesson
Back to Course
Next Lesson