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.
20 lines (19 loc) • 548 B
TypeScript
import { Entity } from '../../EntityComponentSystem/Entity';
import { Action } from '../Action';
import { Color } from '../../Color';
export declare class Flash implements Action {
id: number;
private _graphics;
private _duration;
private _stopped;
private _started;
private _entity;
private _material;
private _total;
private _currentDuration;
constructor(entity: Entity, color: Color, duration?: number);
update(elapsed: number): void;
isComplete(): boolean;
stop(): void;
reset(): void;
}