Book Image

Learning AndEngine

By : Martin Varga
Book Image

Learning AndEngine

By: Martin Varga

Overview of this book

AndEngine is a very popular open source OpenGL (open graphics library) Android game engine, used to create mobile games quickly while maintaining the ability to fully customize them. This book will guide you through the whole development process of creating a mobile game for the Android platform using one of the most popular and easy-to-use game engines available today. Beginning with the very basics, you will learn how to install AndEngine, gather graphics, add sound and music assets, and design game rules. You will first design an example game and enhance it by adding various features over the course of the book. Each chapter adds more colors, enhances the game, and takes it to the next level. You will also learn how to work with Box2D, a popular 2D physics engine that forms an integral part of some of the most successful mobile games. By the end of the book, you will be able to create a complete, interactive, and fully featured mobile game for Android and publish it to Google Play.
Table of Contents (19 chapters)
Learning AndEngine
About the Author
About the Reviewers


When we speak about application or game localization (or L10N, which means L followed by 10 letters and N), we generally mean supporting multiple languages. Another term is internationalization (or I18N), which means adapting the game to different regions. An example of I18N would be supporting both metric and imperial systems of units or supporting multiple date formats.

Localization in Android is very simple. The first step is to keep all the strings separate from the code. Instead of hardcoding Hello world!, we put this string into an XML resource file called strings.xml. This file is located at res/values/.


Keeping the strings separated from the code is a good practice even when we support only one language.

When we created the application, the Eclipse new app wizard already put some strings there. The following code shows how the file should look:

<?xml version="1.0" encoding="utf-8"?>

  <string name="app_name">LearningAndEngine</string...