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

Chapter 9. Adding a Menu and Splash Scene

A splash scene is very important, not only because it shows your logo or any other logos you want to show, but it also gives the players something to look at while loading the resources in the background.

A menu scene serves as the entry point to the game. Even if your game is really simple, there should be a screen that at least says Tap to Start. It can actually be the game scene, paused and displaying the text. Nevertheless, it should be there.

In this chapter, we are going to add a splash and menu scene to our game. We will also learn how to load the resources in the background. We are going to create a loading scene as well as a transition from the menu to the game scene and back. We will also add an option to enable and disable sound that will be available from our menu scene.

While it may sound counterintuitive to add the scenes that the user sees at the start of the game only now after we have almost finished the game, it's actually the preferred...