Summary
You should now be well equipped to create almost any 2D game you want. You've learned about vectors and how to work with them, resulting in a nice, reusable Vector2 class. You also looked into basic physics for creating things like ballistic cannonballs. Collision detection is also a vital part of most games, and you should now know how to do it correctly and efficiently via a SpatialHashGrid. You explored a way to keep your game logic and objects separated from the rendering by creating GameObject and DynamicGameObject classes that keep track of the state and shape of objects. You covered how easy it is to implement the concept of a 2D camera via OpenGL ES, all based on a single method called glOrthof(). You learned about texture atlases, ...
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