Summary
This chapter covered the methods of rendering images, and you made a framework to manage sprites and move them around the screen at a consistent rate. With this work, most games should be doable with your current system. In the next couple of chapters, adding user input and sounds will make a quality game possible. You work on advanced graphics topics later, when you use OpenGL to speed up graphics for complex games and add an animation framework to your Sprite class. All this code is written with the goal of being reusable and applicable to any number of games.
To cap off this chapter, make sure all the code and examples run properly on your system. If you made any mistakes, you can download the code for Chapter 2 from the website associated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access