Adding a Custom Loading UI
As we start to gain some traction and therefore momentum, we first have to let our engines rev up before we can think about shifting gears. A short exercise in code management is just the thing to get those RPMs up! Once we’ve hit our sweet spot, we’re going to cruise straight into leveraging that work to build our loading screen. Remember, as we progress through the metaphorical gearbox of complexity, we’ll be seeing fewer details such as the following while at the same time covering greater amounts of ground.
Solo Exercise: Refactoring the StartScene to Extract the AstroFactory
To lay the groundwork for this and some future features, we want to extract all the logic involved in creating new planets that aren’t specific to the scene from the startScene. That logic goes into a new astroFactory class. The essentials of this refactoring are straightforward, but the key to it all is going to be creating an array of planetary...