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, ...

Get Beginning Android 4 Games Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.