You can almost play infinitely just by going in one direction and dropping cakes.
One way you could solve I think would be to change randomly the position of the target of the projectiles. This would prevent the player from avoiding everything just by running away from the danger