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.
22 lines (21 loc) • 524 B
TypeScript
import { Vector } from '../Math/vector';
/**
* An enum that describes the sides of an axis aligned box for collision
*/
export declare enum Side {
None = "None",
Top = "Top",
Bottom = "Bottom",
Left = "Left",
Right = "Right"
}
export declare namespace Side {
/**
* Returns the opposite side from the current
*/
function getOpposite(side: Side): Side;
/**
* Given a vector, return the Side most in that direction
*/
function fromDirection(direction: Vector): Side;
}