Chapter 9. Screen Transitions
In this chapter, you will learn about screen transitions, a technique to create a smooth user experience, while switching from one screen to another over a certain period of time. You will be introduced to a technique known as Render to Texture (RTT) that allows easy composition of two individually rendered screens. Normally, transition effects make use of linear and nonlinear interpolation to create interesting and natural-looking results. LibGDX provides a class that implements a wide variety of common interpolation algorithms, which are suitable not only for transition effects but also for any values that should follow a certain behavior over time.
Moreover, in Chapter 7, Menus and Options, you learned how to create and manage several screens that can be shown and hidden using LibGDX's Game
class. We will expand on this idea in this chapter by adding a feature to use transition effects for switching our screens. With reference to our game,...