Add new backgrounds

pull/1/head
Flashfyre 2023-05-11 12:16:10 -04:00
parent ceeb2efd0a
commit 0757fd88a4
17 changed files with 8 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 637 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 588 B

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1014 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 640 B

View File

@ -328,8 +328,11 @@ export function getBiomeKey(biome: Biome): string {
export function getBiomeHasProps(biomeType: Biome): boolean { export function getBiomeHasProps(biomeType: Biome): boolean {
switch (biomeType) { switch (biomeType) {
case Biome.BEACH:
case Biome.LAKE: case Biome.LAKE:
case Biome.SEABED:
case Biome.BADLANDS: case Biome.BADLANDS:
case Biome.CAVE:
case Biome.DESERT: case Biome.DESERT:
return true; return true;
} }
@ -376,11 +379,11 @@ export class ArenaBase extends Phaser.GameObjects.Container {
this.propValue = propValue === undefined this.propValue = propValue === undefined
? hasProps ? Utils.randInt(8) : 0 ? hasProps ? Utils.randInt(8) : 0
: propValue; : propValue;
for (let p = 0; p < 3; p++) { this.props.forEach((prop, p) => {
this.props[p].setTexture(`${biomeKey}_b${hasProps ? `_${p + 1}` : ''}`); prop.setTexture(`${biomeKey}_b${hasProps ? `_${p + 1}` : ''}`);
this.props[p].setVisible(hasProps && !!(this.propValue & (1 << p))); prop.setVisible(hasProps && !!(this.propValue & (1 << p)));
this.add(this.props[p]); this.add(prop);
} });
} }
} }
} }