Skip to content

five-on-it / apps/client/src/renderer/roads / buildRoads

Function: buildRoads() ​

buildRoads(scene, level, root): object

Defined in: apps/client/src/renderer/roads.ts:100

Draws the level's roads under root: the ribbons (road<i>) and the paint (road-paint, road-paint-yellow). Returns how many ribbons it drew and what the paint came to.

Parameters ​

scene ​

Scene

level ​

LevelData

root ​

TransformNode

Returns ​

object

drawn ​

drawn: number

paint ​

paint: RoadPaintView