UNPKG

@phaser-plus/perspective2d

Version:

Create games with a linearly transformed projection

41 lines (40 loc) 979 B
export default GameObject2D; declare class GameObject2D extends GameObject { /** * * @param {Scene} scene * @param {World} context */ constructor(scene: Scene, context: World); /** * @private * @type {World} */ private context; transform: Math.Vector2; pivot: Math.Vector2; get projection(): import("@phaser-plus/core/lib/structs/Matrix2").default; /** * * @param {number} x * @param {number} y */ setTransform(x: number, y: number): GameObject2D; setTransformX(x: any): GameObject2D; setTransformY(y: any): GameObject2D; /** * * @param {string} tag */ addTag(tag: string): GameObject2D; /** * * @param {string} tag */ removeTag(tag: string): GameObject2D; removeTags(): void; } import { GameObject } from "@phaser-plus/core"; import { Math } from "phaser"; import { Scene } from "@phaser-plus/core"; import World from "./World";