Skip to content

five-on-it / apps/client/src/ui/mission-route

apps/client/src/ui/mission-route ​

The route line the minimap draws to the mission's target (GAME_DESIGN §9.3, §16): over the level's roads (@foi/world's roadRoute, the client's own: the AI's planning stays the server's), from where the player is to the target the tracker points at (the nearest of a group's). Worked out again only when the target moves, or when the player has gone REROUTE_DISTANCE from where the last one started, and at most every REROUTE_MS: a step of the HUD stays cheap. No React, no Babylon.

Interfaces ​

Variables ​

Functions ​