grid-engine
Version:
Phaser3 plugin for grid based movement on a 2D game board.
21 lines (20 loc) • 508 B
TypeScript
export interface Movement {
init(): void;
update(delta: number): void;
getInfo(): MovementInfo;
}
/** Automatic movement information. */
export interface MovementInfo {
/** Type of movement */
type: string;
/**
* Configuration of movement. This is custom for every automatic movement
* type
*/
config?: Record<string, any>;
/**
* Current state of movement. This is custom for every automatic movement
* type
*/
state?: Record<string, any>;
}