<img src="http://i50.tinypic.com/2jaybmq.jpg" border="0" />
When user presses the space bar a rocket is spawned and fired towards the right.
If however, the player has bonus BulleyType type then two more rockets are spawned and fired at an angle.
My problem is that the user must have a rocket in their supply. As it stands the extra two rockets are not spawned if (section 35) they had only one rocket. The first bit of code (section 35) reduces rockets by one.
One way I can get around it is to set up another variable "just fired" which is set to true in the first section and tested in the second session instead of testing for rockets >= 1.
However, is there are more elegant way to do this? If so how?