diff --git a/public/images/arenas/beach_b_1.png b/public/images/arenas/beach_b_1.png new file mode 100644 index 000000000..1441c75ab Binary files /dev/null and b/public/images/arenas/beach_b_1.png differ diff --git a/public/images/arenas/beach_b_2.png b/public/images/arenas/beach_b_2.png new file mode 100644 index 000000000..8f79f5b59 Binary files /dev/null and b/public/images/arenas/beach_b_2.png differ diff --git a/public/images/arenas/beach_b_3.png b/public/images/arenas/beach_b_3.png new file mode 100644 index 000000000..45904c689 Binary files /dev/null and b/public/images/arenas/beach_b_3.png differ diff --git a/public/images/arenas/beach_bg.png b/public/images/arenas/beach_bg.png index 9f687a286..c7976e881 100644 Binary files a/public/images/arenas/beach_bg.png and b/public/images/arenas/beach_bg.png differ diff --git a/public/images/arenas/cave_a.png b/public/images/arenas/cave_a.png index 0f25b40d6..23e79a31b 100644 Binary files a/public/images/arenas/cave_a.png and b/public/images/arenas/cave_a.png differ diff --git a/public/images/arenas/cave_b.png b/public/images/arenas/cave_b.png index 0bb15c06d..884a2232b 100644 Binary files a/public/images/arenas/cave_b.png and b/public/images/arenas/cave_b.png differ diff --git a/public/images/arenas/cave_b_1.png b/public/images/arenas/cave_b_1.png new file mode 100644 index 000000000..4e6a32190 Binary files /dev/null and b/public/images/arenas/cave_b_1.png differ diff --git a/public/images/arenas/cave_b_2.png b/public/images/arenas/cave_b_2.png new file mode 100644 index 000000000..cc2bdd98f Binary files /dev/null and b/public/images/arenas/cave_b_2.png differ diff --git a/public/images/arenas/cave_b_3.png b/public/images/arenas/cave_b_3.png new file mode 100644 index 000000000..d05144c6d Binary files /dev/null and b/public/images/arenas/cave_b_3.png differ diff --git a/public/images/arenas/cave_bg.png b/public/images/arenas/cave_bg.png index f1246571f..004df2119 100644 Binary files a/public/images/arenas/cave_bg.png and b/public/images/arenas/cave_bg.png differ diff --git a/public/images/arenas/seabed_a.png b/public/images/arenas/seabed_a.png index 3370951b8..b6a854e78 100644 Binary files a/public/images/arenas/seabed_a.png and b/public/images/arenas/seabed_a.png differ diff --git a/public/images/arenas/seabed_b.png b/public/images/arenas/seabed_b.png index 8a686a88c..a9ded4f54 100644 Binary files a/public/images/arenas/seabed_b.png and b/public/images/arenas/seabed_b.png differ diff --git a/public/images/arenas/seabed_b_1.png b/public/images/arenas/seabed_b_1.png new file mode 100644 index 000000000..e71de87d1 Binary files /dev/null and b/public/images/arenas/seabed_b_1.png differ diff --git a/public/images/arenas/seabed_b_2.png b/public/images/arenas/seabed_b_2.png new file mode 100644 index 000000000..e0a87d6a4 Binary files /dev/null and b/public/images/arenas/seabed_b_2.png differ diff --git a/public/images/arenas/seabed_b_3.png b/public/images/arenas/seabed_b_3.png new file mode 100644 index 000000000..868c9951f Binary files /dev/null and b/public/images/arenas/seabed_b_3.png differ diff --git a/public/images/arenas/seabed_bg.png b/public/images/arenas/seabed_bg.png index f7d9b398c..6c4ed0096 100644 Binary files a/public/images/arenas/seabed_bg.png and b/public/images/arenas/seabed_bg.png differ diff --git a/src/arena.ts b/src/arena.ts index 83e13c127..93de85afd 100644 --- a/src/arena.ts +++ b/src/arena.ts @@ -328,8 +328,11 @@ export function getBiomeKey(biome: Biome): string { export function getBiomeHasProps(biomeType: Biome): boolean { switch (biomeType) { + case Biome.BEACH: case Biome.LAKE: + case Biome.SEABED: case Biome.BADLANDS: + case Biome.CAVE: case Biome.DESERT: return true; } @@ -376,11 +379,11 @@ export class ArenaBase extends Phaser.GameObjects.Container { this.propValue = propValue === undefined ? hasProps ? Utils.randInt(8) : 0 : propValue; - for (let p = 0; p < 3; p++) { - this.props[p].setTexture(`${biomeKey}_b${hasProps ? `_${p + 1}` : ''}`); - this.props[p].setVisible(hasProps && !!(this.propValue & (1 << p))); - this.add(this.props[p]); - } + this.props.forEach((prop, p) => { + prop.setTexture(`${biomeKey}_b${hasProps ? `_${p + 1}` : ''}`); + prop.setVisible(hasProps && !!(this.propValue & (1 << p))); + this.add(prop); + }); } } } \ No newline at end of file