Summary
We’ve accomplished a lot in this chapter. Starting with the Babylon.js GUIE, a basic DialogBox
was designed and saved to both the snippet server and JSON. After learning how to use it in conjunction with the ADT, we implemented the reusable DialogBox
component and tested it by adding the Route Planning confirmation dialog.
Armed with those initial results, we turned to the scoring system used in Space-Truckers and the logic needed to calculate each area of the scoring game. The data to accomplish this became apparent throughout, so we made the needed modifications to the Space-Trucker Application to capture scoring data. Because we already have the foundational dialog structure in place, it’s easy to create the Scoring Dialog from both captured and sample scoring data.
It’s not enough to simply display the scores in our Scoring Dialog, though, so we employed another new feature in v5 of Babylon.js: coroutines. Hosted and managed by any BablyonJS.Observable...