Asteroids (without Asteroids)
Sprite | Images |
---|---|
sprLazer | ![]() |
sprShip | ![]() |
It is critical both origins are set to Middle Centre, and that both sprites are facing right (right = default direction = 0):![]() |
Object | Sprite | Properties |
---|---|---|
objLazer | sprLazer | Visible |
objShip | sprShip | Visible |
room layout:

objShip | Key Down → Create event |
---|---|
![]() |
objShip | Key Down → Step event |
---|---|
![]() |
objShip | Key Down → Left event |
---|---|
![]() |
objShip | Key Down → Right event |
---|---|
![]() |
objShip | Key Down → Up event |
---|---|
![]() |
objShip | Key Press → Space event |
---|---|
![]() |
extension activities:
- Add asteroids that are spawned using objSpawner from previous examples.
- The spawned asteroids should explode when they are hit with a lazer beam.
- When the ship collides with an asteroid, it should lose health.
- Display health bar, scoring (asteroids destroyed), and lives (start with 3).
- Are there other improvements you could make to this game?