Skip to content

five-on-it / apps/client/src/renderer/boat-wake

apps/client/src/renderer/boat-wake ​

What a boat leaves on the water, every frame, for every boat on screen (the player's and everyone else's): a wake of foam from both corners of its stern, spreading outward and left behind, thicker the faster it goes; above a fast trot, spray thrown off both sides of its bow that falls back into the water. Nothing out of the water (a boat aground, in the air, sunk) and nothing at a crawl. The foam owed between frames is remembered by boat, and forgotten a second after a boat was last seen.

Variables ​

Functions ​