Extra Features
Before we conclude this chapter, here are some suggestions on what you can do next in this dodgeball project:
- Make it so that the normal
Wall
class we created in a previous chapter doesn't block the enemy's line of sight. This way, the enemy will always throw dodgeballs at the player, which should still be blocked from going through this wall. - Add a new feature that will allow the player to visualize where the dodgeball thrown by the enemy character will impact first, using the concept of Sweep Traces.
- Add a new type of wall that blocks the player character, the enemy character, and the dodgeballs, but that also takes damage from dodgeballs and gets destroyed when it runs out of health points.
There is a whole world of possibilities for expanding the scope of this project. You are encouraged to use the skills you've learned, and to do further research, to build new features and add more complexity to your game.