mobs use defensive spells properly

This commit is contained in:
ntr
2019-01-06 17:48:03 +11:00
parent badd7a8aba
commit 1d9a057775
5 changed files with 40 additions and 8 deletions
+3 -3
View File
@@ -151,10 +151,10 @@ class Background extends Phaser.Scene {
this.customPipeline = game.renderer.addPipeline('Custom', new CustomPipeline(game));
this.customPipeline.setFloat2('resolution', 1600, 1000);
const sprite = this.add.sprite(0, 0);
const sprite = this.add.sprite(800, 500);
sprite.setPipeline('Custom');
sprite.displayWidth = 3200;
sprite.displayHeight = 2000;
sprite.displayWidth = 1600 * window.devicePixelRatio;
sprite.displayHeight = 1000 * window.devicePixelRatio;
}
update() {