Game Development Reference
In-Depth Information
Figure 5-24.
Positioning the asteroids
EXERCISE 5.1
Implement a rule that when there are no more carrots on the screen, the actor is destroyed.
EXERCISE 5.2
Implement a rule that when the asteroid collides with the spaceship, the game is reset.
EXERCISE 5.3
Implement a rule that when the asteroid collides with a bullet, it disappears from the screen and
comes back again from the top in a random X-axis position.
To see the answers to these three exercises, open the file named
Carrot_Invaders_step3.gameproj
.
Search WWH ::
Custom Search