7

Processing Route Data

Although we won’t be looking at the transition between route planning and route driving quite yet, in the big picture of where things stand, generating a route is an integral piece of the Space-Truckers gameplay. In this chapter, we’re going to stick with the previous practice of taking a brief detour into a tangential topic – in this case, that topic will be spiffing up the Sun rendering with some Particle Systems.

Following our detour into particle systems, we’ll dive straight into how to capture, crunch, and consolidate the data from route planning into a rich set of encounters based on location, which will then drive player challenges in the next phase.

What makes this all possible is a technique that has its roots ...

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.