We will now use our first particle system. These particles will represent the explosion caused by dropping a bomb. What we'll do first is create the logic for the bomb, and then have the game create a particle system.
The game will start with three bombs, each time the player touches the screen with two fingers, one bomb will be dropped, and this bomb will destroy every enemy on the screen. So what we have to do is detect a two finger touch on the screen, create the particle system, remove every active enemy, and update the remaining bombs label. So, let's get on with it.
GameLayer, and name it
canLaunchBomb. This will help us to prevent the player from dropping three bombs ...