diff --git a/public/images/arenas/power_plant_a.png b/public/images/arenas/power_plant_a.png new file mode 100644 index 000000000..15f7970d7 Binary files /dev/null and b/public/images/arenas/power_plant_a.png differ diff --git a/public/images/arenas/power_plant_b.png b/public/images/arenas/power_plant_b.png new file mode 100644 index 000000000..67fa01426 Binary files /dev/null and b/public/images/arenas/power_plant_b.png differ diff --git a/public/images/arenas/power_plant_b_1.png b/public/images/arenas/power_plant_b_1.png new file mode 100644 index 000000000..43c497921 Binary files /dev/null and b/public/images/arenas/power_plant_b_1.png differ diff --git a/public/images/arenas/power_plant_b_2.png b/public/images/arenas/power_plant_b_2.png new file mode 100644 index 000000000..1cecfa0e5 Binary files /dev/null and b/public/images/arenas/power_plant_b_2.png differ diff --git a/public/images/arenas/power_plant_b_3.json b/public/images/arenas/power_plant_b_3.json new file mode 100644 index 000000000..5a6543af5 --- /dev/null +++ b/public/images/arenas/power_plant_b_3.json @@ -0,0 +1,146 @@ +{ + "textures": [ + { + "image": "power_plant_b_3.png", + "format": "RGBA8888", + "size": { + "w": 121, + "h": 49 + }, + "scale": 1, + "frames": [ + { + "filename": "0003.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 24, + "w": 43, + "h": 49 + }, + "frame": { + "x": 0, + "y": 0, + "w": 43, + "h": 49 + } + }, + { + "filename": "0004.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 24, + "w": 43, + "h": 49 + }, + "frame": { + "x": 0, + "y": 0, + "w": 43, + "h": 49 + } + }, + { + "filename": "0005.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 24, + "w": 42, + "h": 49 + }, + "frame": { + "x": 43, + "y": 0, + "w": 42, + "h": 49 + } + }, + { + "filename": "0006.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 24, + "w": 42, + "h": 49 + }, + "frame": { + "x": 43, + "y": 0, + "w": 42, + "h": 49 + } + }, + { + "filename": "0001.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 26, + "w": 36, + "h": 47 + }, + "frame": { + "x": 85, + "y": 0, + "w": 36, + "h": 47 + } + }, + { + "filename": "0002.png", + "rotated": false, + "trimmed": true, + "sourceSize": { + "w": 320, + "h": 132 + }, + "spriteSourceSize": { + "x": 243, + "y": 26, + "w": 36, + "h": 47 + }, + "frame": { + "x": 85, + "y": 0, + "w": 36, + "h": 47 + } + } + ] + } + ], + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "3.0", + "smartupdate": "$TexturePacker:SmartUpdate:04e5900ac6a3fd4ccfeda669259f92e5:c979055bd7bcf0c5e68d1732e2822670:9f608f85fe0088569af7e43cae7fd48a$" + } +} diff --git a/public/images/arenas/power_plant_b_3.png b/public/images/arenas/power_plant_b_3.png new file mode 100644 index 000000000..25d75ff53 Binary files /dev/null and b/public/images/arenas/power_plant_b_3.png differ diff --git a/public/images/arenas/power_plant_bg.png b/public/images/arenas/power_plant_bg.png new file mode 100644 index 000000000..2e71f13dd Binary files /dev/null and b/public/images/arenas/power_plant_bg.png differ diff --git a/src/battle-scene.ts b/src/battle-scene.ts index fe89ba039..c901efffe 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -332,7 +332,7 @@ export default class BattleScene extends Phaser.Scene { this.loadAtlas(baseBKey, 'arenas'); if (getBiomeHasProps(bt)) { for (let p = 1; p <= 3; p++) { - const isPropAnimated = p === 3 && btKey === 'end'; + const isPropAnimated = p === 3 && [ 'power_plant', 'end' ].find(b => b === btKey); const propKey = `${btKey}_b_${p}`; if (!isPropAnimated) this.loadImage(propKey, 'arenas'); diff --git a/src/field/arena.ts b/src/field/arena.ts index a887b595f..813762d65 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -564,8 +564,6 @@ export class Arena { export function getBiomeKey(biome: Biome): string { switch (biome) { - case Biome.POWER_PLANT: - return 'ruins'; case Biome.METROPOLIS: return 'slum'; case Biome.JUNGLE: @@ -587,6 +585,7 @@ export function getBiomeHasProps(biomeType: Biome): boolean { case Biome.DESERT: case Biome.ICE_CAVE: case Biome.MEADOW: + case Biome.POWER_PLANT: case Biome.VOLCANO: case Biome.GRAVEYARD: case Biome.FACTORY: