Activity 1
Make a laser move across the screen
until it is outside the play area then destroy
it.
Hint: You will need to set the horizontal speed, not
the vertical speed, for the laser.
Save it as moveacross Activity 2
Try setting both the horizontal and vertical speeds.
What do you think will happen? Activity 3
Make the laser beam in 8 directions,
depending on which key is pressed. For example,
pressing the A key will beam the laser left, S key will beam
the laser left and upwards, D key will beam the laser straight
upwards etc.
Activity 4
How could you make the laser beam in even more directions? |