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

Chapter 8. Adding an Explosion and Creating a UI

Congratulations on having made it so far! By now, you must be equipped with almost all of the basics needed for you to get started on your journey of game development. This chapter will serve as a finishing touch for our game, and we will complete our explosion part by adding an explosion to our game scene. Once we are done with that, we will create a simple UI for our game that will include displaying our score and distance on the screen. So, buckle up! You are about to finish the game we started. We will be learning the following in this chapter:

  • Adding an explosion to our game
  • Creating a tutorial with instructions for the player
  • Displaying the score on the screen with our UI

However, before we move on to our UI, let's first finish up with our explosion effect.