Book Image

Learning Android Game Development

By : Nikhil Malankar
Book Image

Learning Android Game Development

By: Nikhil Malankar

Overview of this book

In this book, we’ll start with installing Android studio and its components, and setting it up ready for Android N. We teach you how to take inputs from users, create images and interact with them, and work with sprites to create animations. You’ll then explore the various collision detection methods and use sprites to create an explosion. Moving on, you’ll go through the process of UI creation and see how to create buttons as well as display the score and other parameters on screen. By the end of the book, you will have a working example and an understanding of a 2D platform game like Super Mario and know how to convert your 2D games to 3D games.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
4
Creating Sprites and Interactive Objects

Summary


In this chapter, we learned about how to transition from a 2D to a 3D game along with concepts of OpenGL. We also learned how to create our main activity along with our own renderer. After this, we learned how to define a basic shape.

To summarize, we covered the following topics in this chapter. We got introduced to OpenGL ES and took a look at the coordinates system in the same. We learned how to create a blank scene and the process of rendering. We then created our basic renderer and defined our triangle shape.

In our next chapter, we will learn how to render our defined shape on the screen and rotate it. We will also learn how to create a 3D pyramid in the next chapter, and by the end of the next chapter, you will complete this book and  also have a foundation for creating a 2D and 3D game.