diff --git a/examples/cutjigsawimage/jigsaw-piece-canvas.bat b/examples/cutjigsawimage/jigsaw-piece-canvas.bat deleted file mode 100644 index a59bcb11b8..0000000000 --- a/examples/cutjigsawimage/jigsaw-piece-canvas.bat +++ /dev/null @@ -1,4 +0,0 @@ -set main=./examples/cutjigsawimage/jigsaw-piece-canvas.js -cd .. -cd .. -npm run watch \ No newline at end of file diff --git a/examples/cutjigsawimage/jigsaw-piece-canvas.js b/examples/cutjigsawimage/jigsaw-piece-canvas.js deleted file mode 100644 index 9834e08d0a..0000000000 --- a/examples/cutjigsawimage/jigsaw-piece-canvas.js +++ /dev/null @@ -1,55 +0,0 @@ -import phaser from 'phaser/src/phaser.js'; -import JigsawPieceCanvas from '../../plugins/actions/CutJigsawImage/generateframes/jigsawpiece/JigsawPieceCanvas'; - -class Demo extends Phaser.Scene { - constructor() { - super({ - key: 'examples' - }) - } - - preload() { - this.load.image('classroom', 'assets/images/backgrounds/classroom.png'); - } - - create() { - var piece = new JigsawPieceCanvas(this, { - width: 130, height: 130, - edgeWidth: 15, edgeHeight: 15, - key: 'classroom', - }) - - this.add.existing(piece); - - piece - .drawPiece({ - scrollX: -15, scrollY: -15, - edgeMode: '1100' - }) - //.drawPiece({ - // scrollX: 85, scrollY: -15, - // edgeMode: '1122' - //}) - .setPosition(400, 300) - - piece.preFX.setPadding(2); - piece.preFX.addGlow(0xff0000, 2, 0); - - } - - update() { } -} - -var config = { - type: Phaser.AUTO, - parent: 'phaser-example', - width: 800, - height: 600, - scale: { - mode: Phaser.Scale.FIT, - autoCenter: Phaser.Scale.CENTER_BOTH, - }, - scene: Demo -}; - -var game = new Phaser.Game(config); \ No newline at end of file