Skip to content

1681-engine / index / simplifyPath

Function: simplifyPath() ​

ts
function simplifyPath(path): TilePoint[];

Defined in: src/nav/straightenPath.ts:83

Drops the tiles a straight line already covers, so a trail is drawn as a few long legs rather than tile by tile.

Parameters ​

ParameterType
pathreadonly TilePoint[]

Returns ​

TilePoint[]

Released under the MIT License.