4
Creating the Application
The Space-Truckers application needs to be capable of maintaining and transitioning between a set of discrete states that correspond with different screens, such as a Menu screen and a Game screen. Transitions between application states typically occur as a result of user interaction (e.g., the user selects a menu item) or as part of something such as an application launch or exit. Here, we derive our basic application flow, which we then use to build a basic framework for presenting and transitioning between arbitrary screens.
In the first chapter, we saw the complete Space-Truckers game in all its glory and beauty. We then immediately went on to create the loading screen’s animation in the Playground before slowing ...
Get Going the Distance with Babylon.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.