2020-04-12 16:12:08 +02:00
|
|
|
export class Sprite extends Phaser.GameObjects.Sprite {
|
|
|
|
constructor(scene: Phaser.Scene, x: number, y: number, texture: string, frame?: number | string) {
|
|
|
|
super(scene, x, y, texture, frame);
|
|
|
|
scene.sys.updateList.add(this);
|
|
|
|
scene.sys.displayList.add(this);
|
|
|
|
}
|
2021-09-06 14:27:54 +02:00
|
|
|
}
|