In Part 3 we look inside the class that implements an ApplicationListener interface. This is a special interface in which certain methods are called at certain points.
Previously we created three projects in Eclipse (IDE): test-game, test-game-android, test-game-desktop. "test-game" is the main project. It contains the source code of our game. "test-game-desktop" and "test-game-android" provide us witrh the opportunity to run this code on the target platforms. The codes in the projects for android and desktop are very simple, and usually consist of single files. For example, let's look at the code of "test-game-desktop":
Now let's look at the code of "test-game-android":
But the most important is the "test-game" code, because this is where we classify actions. And now let's look inside the class that implements the ApplicationListener interface where we describe every aspect of it.
In our next tutorial we will look inside such important classes as SpriteBatch, Texture and TextureRegion.
You can find Part 2 of this tutorial here.
What do you think about How to Make Android Games. Part 3.? Please, leave your comments in the section below.
Share this article with your friends: