Asteroids are controlled by a state machine.

State 0 is the break between waves, there are two wave states that run
for different durations and have different spawn periods.

There seems to be some unused code for changing the spawn period based
on whether the player has a defence drone or not, but as far as I can tell
in a short period (TODO investigate properly) it's not used.

The timings are determined by the player shield level:
(these are set in AsteroidGenerator::Initialize)

state    duration (sec)    spawn period (sec)
           min/max              min/max

0/1 shield bubbles:

idle        5 / 10           Not Applicable
firing 1    8 / 16              1.8/2.2
firing 2    5 /  8              1.6/1.4

2 shield bubbles:

idle        5 / 10           Not Applicable
firing 1   10 / 20              1.0/1.8
firing 2    5 / 10              0.9/1.3

3 shield bubbles:

idle       12 / 15           Not Applicable
firing 1   16 / 28              0.9/1.4
firing 2    8 / 13              0.9/1.3

(The longer idle time is not a typo)

4+ shield bubbles:

idle       12 / 15           Not Applicable
firing 1   16 / 30              0.72/1.35
firing 2    8 / 11              0.54/0.95

Asteroids are fired in sequence at your ship and the enemy's ship, so with
another ship present the effective times are halved.

This is not reset when the enemy is killed, so every second asteroid is
effectively wasted at that point.

Asteroids pick a random side of the screen, and use that to pick the starting
position of the asteroid:
* Left: x=-400, y=rand(0-800)
* Right: x=800, y=rand(0-400)
* Top: x=rand(0-800), y=-400
* Bottom: x=rand(0-800), y=800
