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
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Scene diagram


A scene diagram is useful when designing the skeleton of the application. For now, the scene is just a screen that is part of our game. We want to have a few different screens in our game, that is, different scenes. A typical game contains at least a splash scene, a menu scene, and a game scene. A splash scene is usually used to load resources in the background while showing a badge or logo of the game author.

We can add a loading scene between the menu and the game or between different levels or stages of the game. Some games will also have a special scene for game settings, final score, hall of fame, and so on.

We will keep our scenes to a minimum. The following is a simple diagram that shows transitions from one scene to another. Notice the Back label. That means the user taps the back button on the device.

The splash and loading scenes are very simple and we do not need to spend time designing them right now. We could design our menu scene, but it won't benefit us much at...