five-on-it / apps/client/src/renderer/armour-view / createArmourView
Function: createArmourView()
createArmourView(
scene):object
Defined in: apps/client/src/renderer/armour-view.ts:114
The armoured's looks of a scene: the jets' water, the nitro's flames and the bull bars.
Parameters
scene
Scene
Returns
counts
Get Signature
get counts():
object
What the tests read: the drops of water and the flames alive, and the bull bars drawn.
Returns
object
bars
bars:
number
flames
flames:
number
water
water:
number
update()
update(
views,dt,now):void
Draws this frame's jets, flames and bars for the cars among views, dt seconds after the last frame, at now (s).
Parameters
views
readonly CarView[]
dt
number
now
number
Returns
void