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.
25 lines (24 loc) • 644 B
TypeScript
import { Entity } from '../../EntityComponentSystem/Entity';
import { Action } from '../Action';
export declare class Follow implements Action {
id: number;
private _tx;
private _motion;
private _followTx;
private _followMotion;
x: number;
y: number;
private _current;
private _end;
private _dir;
private _speed;
private _maximumDistance;
private _distanceBetween;
private _started;
private _stopped;
constructor(entity: Entity, entityToFollow: Entity, followDistance?: number);
update(elapsed: number): void;
stop(): void;
isComplete(): boolean;
reset(): void;
}