Skip to content

Documentation / @debuffjp/tilemap / MoveOptions

Interface: MoveOptions ​

Defined in: collide.ts:25

Properties ​

dropThrough? ​

optional dropThrough?: boolean

Defined in: collide.ts:27

Pass through one-way platforms (e.g. while holding down to drop).


oneWayTolerance? ​

optional oneWayTolerance?: number

Defined in: collide.ts:33

How far (in pixels) a falling body may already be inside a one-way tile and still land on it, snapping up to its top. Set it to the platform art's thickness so a jump that visually reaches the plank catches it. Default 0.