Chapter 5. Scenes at the Highest Level
Games usually consist of more than one stage, as completing levels is a key point when trying to keep players engaged. On the other hand, we all enjoy reading a book that has us looking forward to knowing what happens in the next chapter, or watching a TV series that makes us suffer when we are waiting for the next episode to be released.
In the video games industry, we also have the chance to create amazing stories that will be developed by linking stages and guiding the player through the storyline, so as developers we need a way to interweave the levels of our games.
The current chapter will teach us how to create transitions between the different scenes of a game and how to configure each of them by loading its corresponding data from external files.
Additionally, as the state of the game must be maintained as the player progresses, we will learn how to store the needed information in order to show the advances achieved.
As this chapter will...