Hiding and retrieving layers
There are a few different options we have for screen management in our games; a screen being a menu screen, loading screen, gameplay screen, and more. We can use multiple activities to act as each screen, we can use the more obvious Scene
object to act as each screen in our game, or we can use Entity
objects to act as each screen. While the majority of developers tend to follow the multiple activities or multiple Scene
objects to act as different game screens, we're going to be taking a quick look into using Entity
objects to act as the different screens in our games.
Using Entity
objects to act as the various screens of our game has many benefits over the other two approaches mentioned. The entity approach allows us to apply many different screens, or layers to our game at the same time. Unlike with using multiple activities or Scene
objects to act as different screens in our game, we can visually display a number of screens on the device using Entity
objects...