External Exam Download Resources Web Applications Games Recycle Bin

Asteroids (without Asteroids)

SpriteImages
sprLazer
sprShip
It is critical both origins are set to Middle Centre, and that both sprites are facing right (right = default direction = 0):


ObjectSpriteProperties
objLazersprLazerVisible
objShipsprShipVisible

room layout:

objShipKey Down → Create event

objShipKey Down → Step event

objShipKey Down → Left event

objShipKey Down → Right event

objShipKey Down → Up event

objShipKey Press → Space event

extension activities:

  1. Add asteroids that are spawned using objSpawner from previous examples.
  2. The spawned asteroids should explode when they are hit with a lazer beam.
  3. When the ship collides with an asteroid, it should lose health.
  4. Display health bar, scoring (asteroids destroyed), and lives (start with 3).
  5. Are there other improvements you could make to this game?