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) • 723 B
TypeScript
import { Component } from '../EntityComponentSystem/Component';
import { IsometricMap } from './IsometricMap';
export interface IsometricEntityComponentOptions {
columns: number;
rows: number;
tileWidth: number;
tileHeight: number;
}
export declare class IsometricEntityComponent extends Component {
/**
* Vertical "height" in the isometric world
*/
elevation: number;
readonly columns: number;
readonly rows: number;
readonly tileWidth: number;
readonly tileHeight: number;
/**
* Specify the isometric map to use to position this entity's z-index
* @param mapOrOptions
*/
constructor(mapOrOptions: IsometricMap | IsometricEntityComponentOptions);
}