Summary

Again, you have traveled far! We implemented a basic input class, then modified our sprite class to handle UI. This unified approach allows one class to handle sprites as game objects as well as sprites as part of the user interface. The same approach to see if a button has been pushed, can also be used for collision detection for a game object too. Then you learned how to create a state machine to handle the various states that the game may be in.

In the next chapter, we will learn to detect when game objects collide.

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

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