Upgrading animatedtiles plugin to trigger an event when an animation occurs and setting the scene to dirty state
This commit is contained in:
parent
1283e86ce8
commit
eb526f5b67
3 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue