Spaces:
Build error
Build error
File size: 525 Bytes
670a607 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import {
HexagonGridAlign,
QuadGridAlign
} from './gridalign.js';
class GridAlignPlugin extends Phaser.Plugins.BasePlugin {
constructor(pluginManager) {
super(pluginManager);
}
start() {
var eventEmitter = this.game.events;
eventEmitter.on('destroy', this.destroy, this);
}
hexagon(items, options) {
return HexagonGridAlign(items, options);
}
quad(items, options) {
return QuadGridAlign(items, options);
}
}
export default GridAlignPlugin; |