This is the code repository for Learning Android Game Development, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
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.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02. Chapter 1 does now have code as it has basic installation steps.
The code will look like the following:
<TextView
android:text="Hello World!"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/TextView"
tools:text="helloWorld" android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
This book is aimed at those who want to get started with native development with Android. It also gives a ready introduction to the latest version of Android, Android N, and guides the reader through the process of going from developing a simple app to a complex 3D game in a matter of 10 simple chapters.