Skip to main content

StrategyPointer

@zylem/game-lib


@zylem/game-lib / core / StrategyPointer

Interface: StrategyPointer

Defined in: packages/game-lib/src/lib/camera/behaviors/strategy-pan.ts:10

Pointer for edge scrolling. x/y are 0..1 from the top-left, unless centered is set, in which case they are −1..1 with −1 at the left and top (the shape of inputs.p1.pointer.centerX/Y).

Properties​

centered?​

optional centered?: boolean

Defined in: packages/game-lib/src/lib/camera/behaviors/strategy-pan.ts:13


x​

x: number

Defined in: packages/game-lib/src/lib/camera/behaviors/strategy-pan.ts:11


y​

y: number

Defined in: packages/game-lib/src/lib/camera/behaviors/strategy-pan.ts:12