UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

24 lines (23 loc) 844 B
import { Entity } from '../../EntityComponentSystem/Entity'; import { Action } from '../Action'; /** * @deprecated use moveTo({pos: Vector, duration: number, easing: EasingFunction}) */ export declare class EaseTo implements Action { easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number; id: number; private _tx; private _motion; private _currentLerpTime; private _lerpDuration; private _lerpStart; private _lerpEnd; private _initialized; private _stopped; constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number); private _initialize; update(elapsed: number): void; isComplete(): boolean; reset(): void; stop(): void; }