five-on-it / apps/client/src/ui/map-view / edgeArrow
Function: edgeArrow()
edgeArrow(
target,w): {angle:number;x:number;y:number; } |undefined
Defined in: apps/client/src/ui/map-view.ts:125
The arrow at the edge of a window centred on the player that points the way to a target off the map (rad on the canvas, 0 along +x of the canvas, positive down); undefined while the target lies on the map, where its own marker shows it.
Parameters
target
x
number
z
number
w
Returns
{ angle: number; x: number; y: number; } | undefined