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.
15 lines (14 loc) • 441 B
TypeScript
import { AffineMatrix } from '../../Math/affine-matrix';
export declare class TransformStack {
private _pool;
private _transforms;
private _currentTransform;
save(): void;
restore(): void;
translate(x: number, y: number): AffineMatrix;
rotate(angle: number): AffineMatrix;
scale(x: number, y: number): AffineMatrix;
reset(): void;
set current(matrix: AffineMatrix);
get current(): AffineMatrix;
}