Challenges
For those of you who want to do more with this project, there are still plenty of things you can do, especially after finishing the rest of this book. Here are some ideas to get your mind thinking:
- Add in feedback whenever the player hits an enemy—perhaps an animation or a change of sprites.
- Give the player lives, and each time he is hit by an enemy, have him lose one life. Add a GUI Text to display lives as well.
- Once you learn how to use a Game State Manager, create a main menu, pause screen, and restart button.
- Add in Xbox control and mobile touch support.
- As a learning experiment, convert the player shooting behaviour code to use co-routines to enable/disable being able to shoot. Discuss the advantages/disadvantages towards this method.