integrate AnimatedTiles plugin
This commit is contained in:
parent
880da51e5d
commit
a3c372a633
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,7 @@ export class GameScene extends ResizableScene implements CenterListener {
|
|||
file: file.src
|
||||
});
|
||||
});
|
||||
this.load.scenePlugin('AnimatedTiles', 'resources/plugins/AnimatedTiles.js', 'animatedTiles', 'animatedTiles');
|
||||
this.load.on('filecomplete-tilemapJSON-'+this.MapKey, (key: string, type: string, data: unknown) => {
|
||||
this.onMapLoad(data);
|
||||
});
|
||||
|
@ -360,6 +361,8 @@ export class GameScene extends ResizableScene implements CenterListener {
|
|||
//initialise camera
|
||||
this.initCamera();
|
||||
|
||||
(this as any).animatedTiles.init(this.Map); // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
// Let's generate the circle for the group delimiter
|
||||
let circleElement = Object.values(this.textures.list).find((object: Texture) => object.key === 'circleSprite-white');
|
||||
if (circleElement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue