1681-engine / index / TiledCollisionOptions
Interface: TiledCollisionOptions ​
Defined in: src/tilemap/collision.ts:5
Extends ​
Omit<CollisionGridOptions,"ground">
Properties ​
bodyHalfHeight? ​
ts
optional bodyHalfHeight?: number;Defined in: src/net/movement.ts:42
Inherited from ​
CollisionGridOptions.bodyHalfHeight
bodyHalfWidth? ​
ts
optional bodyHalfWidth?: number;Defined in: src/net/movement.ts:41
Half the moving body's collision box, px (default BODY_HALF_WIDTH × BODY_HALF_HEIGHT, a 10×6 foot box).
Inherited from ​
CollisionGridOptions.bodyHalfWidth
shotOverTiles? ​
ts
optional shotOverTiles?: Iterable<number, any, any>;Defined in: src/net/movement.ts:39
Tile ids nothing walks but a shot flies over (water, lava…): solid for bodies, open for shots.
Inherited from ​
CollisionGridOptions.shotOverTiles
solid? ​
ts
optional solid?:
| string
| {
property: string;
};Defined in: src/tilemap/collision.ts:12
What makes a cell solid:
- a layer name: every non-empty cell of that tile layer is solid (a hidden "collision" layer is the usual way);
{ property }: a cell is solid when its tile has that custom property set to true, on any tile layer. Default: the layer named "collision" if there is one, else tiles with asolidproperty.