File size: 539 Bytes
670a607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import CanvasFrameManager from './canvasframemanager.js';

class CanvasFrameManagerPlugin extends Phaser.Plugins.BasePlugin {

    constructor(pluginManager) {
        super(pluginManager);
    }

    start() {
        var eventEmitter = this.game.events;
        eventEmitter.on('destroy', this.destroy, this);
    }

    add(scene, key, width, height, cellWidth, cellHeight, fillColor) {
        return new CanvasFrameManager(scene, key, width, height, cellWidth, cellHeight, fillColor);
    }
}

export default CanvasFrameManagerPlugin;