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

Understanding the Android project structure


So, in our last chapter, we successfully set up our Android Studio with the required components to start working on our project right away. Let's get started. In order to learn about the Android project structure, we must first open up a new project.

Creating your first Android Studio project

Open your Android Studio, and click on Start a new Android Studio project, as shown in the following screenshot:

Once you start a new project, you will see the following screenshot:

In this screen, fill in the details of your first Android app:

  • Application name is the name of your app, which will appear on the icon of your phone when it is installed.
  • Company Domain is an identifier for your app. Make sure that you keep this common throughout your apps for better organization and convention.
  • Package name is another important unique identifier for your app. We learned about this in our first chapter and saw its naming conventions. Refer to that part if you have any...