Integrating with the Application
By constructing the playground driving demo, we’ve uncovered the techniques and basic design approach to use for the application code. The structure of our code is such that we should be able to simply lift and shift key pieces of functionality straight into the application’s code base, but only after we make modifications to prepare the way.
Playground logic aside, there are various hooks in SpaceTruckerApplication
that need to be added or modified to get the driving phase to work properly, some of which include the ability to load into the driving game without going through Route Planning. Our basic input controls will need to be adapted to the input system of Space-Truckers, as well as the converse need to add new pieces of functionality to the input system. All of this starts with de-structuring and bringing in code from the Playground.
Splitting Up the Playground
spaceTruckerDrivingScreen
is where the primary logic will reside...