CabinGame/Program/src/Components/door.ts

24 lines
396 B
TypeScript
Raw Normal View History

import { Point } from "../Datatypes/point"
import { Texture } from "pixi.js"
// Door component
export class Door {
open: boolean
openPosition: Point
closedPosition: Point
openTex: Texture
closedTex: Texture
reset() {
this.open = false
this.openPosition = null
this.closedPosition = null
this.openTex = null
this.closedTex = null
}
}