Added bars for defenses

This commit is contained in:
Mashy
2019-01-13 18:40:57 +10:00
parent feacd368a1
commit 478906da4f
4 changed files with 62 additions and 40 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ function rgbToHex(rgb) {
class BoxEffect extends Phaser.GameObjects.Graphics {
constructor(scene, x, y, width, height, colour, tag) {
super(scene, x, y, width, height);
super(scene);
this.tag = tag;
this.customPipeline = scene.game.renderer.addPipeline(tag, new CustomPipeline(scene.game));
this.customPipeline.setFloat2('resolution', 1600, 1000);