Skip to content

1681-engine / index / CollisionGrid

Interface: CollisionGrid ​

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

Properties ​

bodyHalfHeight ​

ts
readonly bodyHalfHeight: number;

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


bodyHalfWidth ​

ts
readonly bodyHalfWidth: number;

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

Half the moving body's collision box, px.


height ​

ts
readonly height: number;

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


shotOver? ​

ts
readonly optional shotOver?: Uint8Array<ArrayBufferLike>;

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

1 = a solid tile a shot flies over (shotOverTiles), row-major; absent when the ground was not given.


solid ​

ts
readonly solid: Uint8Array;

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

1 = solid, row-major.


tileSize ​

ts
readonly tileSize: number;

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


width ​

ts
readonly width: number;

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

Released under the MIT License.