Summary

I'm sure you can now understand that most games would not be possible without collision detection. Collision detection allows objects in the game to interact with each other. We used collision detection to get pickups and detect whether we ran into an enemy.

We also discussed the essential task of boundary checking. Boundary checking is a special form of collision detection that checks to see whether an object has reached the screen boundaries. Another type of boundary checking is used to manage the scene background.

In the next chapter, we will wrap up the game by adding some finishing touches, including a heads-up display!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.20.236