Skip to content

1681-engine / index / blocksShot

Function: blocksShot() ​

ts
function blocksShot(
   grid, 
   tx, 
   ty
): boolean;

Defined in: src/net/movement.ts:77

Whether a shot in flight stops on this tile: solid, and not ground a shot flies over (shotOverTiles).

Parameters ​

ParameterType
gridCollisionGrid
txnumber
tynumber

Returns ​

boolean

Released under the MIT License.