Blasteroids

This game, patterned after the classic asteroids
It is composed of 6 functions:
There are also 2 external functions that are called:

Functions

init

This function will initialize and define variables used later

quitEventDetected

Function features

playerWasHit

Function features

drawAsteroids

Function features

drawCannonBall

Function features

main loop

Function features

Here is a video capturing the game play: video