Upgrading animatedtiles plugin to trigger an event when an animation occurs and setting the scene to dirty state

This commit is contained in:
David Négrier 2021-06-22 14:21:15 +02:00
parent 1283e86ce8
commit eb526f5b67
3 changed files with 5 additions and 3 deletions

View file

@ -479,6 +479,8 @@ export class GameScene extends DirtyScene implements CenterListener {
this.initCamera();
this.animatedTiles.init(this.Map);
this.events.on('tileanimationupdate', () => this.dirty = true);
this.initCirclesCanvas();
// Let's pause the scene if the connection is not established yet