We should challenge the player by spawning more than one enemy. In order to do so, we will repeat enemy instantiation with a loop.
Right now, SpawnEnemyWave spawns exactly 3 enemies, but if we’re going to dynamically increase the number of enemies that spawn during gameplay, we need to be able to pass information to that method.
Once the player gets rid of all the enemies, they’re left feeling a bit lonely. We need to destroy enemies that fall, and spawn a new enemy wave once the last one is vanquished!
Now that we control the amount of enemies that spawn, we should increase their number in waves. Every time the player defeats a wave of enemies, more should rise to take their place.
Our game is almost complete, but we’re missing something. Enemies continue to spawn with every wave, but the powerup gets used once and disappears forever, leaving the player vulnerable. We need to spawn the powerup in a random position with every wave, so the player has a chance to fight back.