Book Image

Learning Android Game Development

By : Malankar
Book Image

Learning Android Game Development

By: 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 (11 chapters)
4
Creating Sprites and Interactive Objects

Collision Detection and Basic Artificial Intelligence

You learned an overview on how to play animations in our game, and now we are going to go a step further into this exciting journey of game development by learning one of the most complex yet crucial concepts required to make our game feel realistic. By adding animations, we can make our game look realistic, but it is also important for a game to feel realistic because that is what makes it fun to play. In this chapter, we will be taking a look at the following two concepts in further detail:

  • Collision detection
  • Artificial intelligence

Thus, this chapter will be divided into two main sections. The studies of collision detection and artificial intelligence are in themselves quite vast topics. For the sake of simplicity to serve our purpose, we will be taking a look at the most basic version of these topics to get an entry level understanding for...