External Exam Download Resources Web Applications Games Recycle Bin

Target Practise

SpriteImages
sprExplosion               
Download sprExplosion images here: sprExplosion.zip
sprSpaceShip
sprTarget
sprProjectile
sprBackground
It is critical all sprite origins are set to Middle Centre. For the explosion animation, you can import multiple images into the one sprite:


ObjectSpriteProperties
objTargetsprTargetVisible
objSpaceShipsprSpaceShipVisible
objProjectilesprProjectileVisible

room layout:

objSpaceShipKey Down → Up event

objSpaceShipKey Down → Down event

objSpaceShipKey Press → Space event

objProjectileCreate event

objTargetCollision → objProjectile event

objTargetAnimation End event

extension activities:

  1. Add the wave spawner object objSpawner from the previous example to spawn waves of targets.
  2. Add scoring, lives and health to this example where possible.
  3. Add another room - "level 2" - with a different background. Hint: The Go To Room block is fairly easy to use here, after a win condition has been satisifed: