More Bear Assets

This commit is contained in:
Brian Fertig 2025-08-25 19:39:43 -06:00
parent 453ce864b2
commit 17f3a0f728
14 changed files with 44 additions and 8 deletions

BIN
assets/bear-a1.mp3 Normal file

Binary file not shown.

BIN
assets/bear-a2.mp3 Normal file

Binary file not shown.

BIN
assets/bear-a3.mp3 Normal file

Binary file not shown.

BIN
assets/bear-b.mp3 Normal file

Binary file not shown.

BIN
assets/bear-background.mp4 Normal file

Binary file not shown.

BIN
assets/bear-c.mp3 Normal file

Binary file not shown.

BIN
assets/bear-intro.mp3 Normal file

Binary file not shown.

BIN
assets/bear-music.mp3 Normal file

Binary file not shown.

BIN
assets/bear-outro.mp3 Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Binary file not shown.

View File

@ -63,7 +63,7 @@ export class GameScene extends Phaser.Scene {
this.load.audio('alarm', 'assets/alarm.mp3'); this.load.audio('alarm', 'assets/alarm.mp3');
// Ally Assets // Ally Assets
const allys = ['goblin', 'surfer']; const allys = ['goblin', 'surfer', 'bear'];
allys.forEach((ally) => { allys.forEach((ally) => {
this.load.video(`${ally}-resting`, `assets/${ally}-resting.mp4`); this.load.video(`${ally}-resting`, `assets/${ally}-resting.mp4`);
this.load.video(`${ally}-excited`, `assets/${ally}-excited.mp4`); this.load.video(`${ally}-excited`, `assets/${ally}-excited.mp4`);
@ -82,6 +82,14 @@ export class GameScene extends Phaser.Scene {
} }
create() { create() {
// Set Start Level
const newLevel = LEVEL_CONFIG[this.level];
this.numberOfJewels = newLevel.numberOfJewels;
this.matchesNeeded = newLevel.matchesNeeded;
this.moveInterval = newLevel.moveInterval;
this.ally = newLevel.ally;
this.spritePlus = newLevel.spritePlus;
// Background Video // Background Video
this.bgVideo = this.add.video(0, 0, `${this.ally}-background`); this.bgVideo = this.add.video(0, 0, `${this.ally}-background`);
this.bgVideo.setOrigin(0); this.bgVideo.setOrigin(0);
@ -101,7 +109,7 @@ export class GameScene extends Phaser.Scene {
this.createStart(); this.createStart();
// Background Music // Background Music
this.bgMusic = this.sound.add('goblin-music', { volume: 0.2 }); this.bgMusic = this.sound.add(`${this.ally}-music`, { volume: 0.2 });
this.bgMusic.loop = true; this.bgMusic.loop = true;
this.bgMusic.play(); this.bgMusic.play();

View File

@ -32,27 +32,55 @@ export const LEVEL_CONFIG = {
matchesNeeded: 10, matchesNeeded: 10,
moveInterval: 10000, moveInterval: 10000,
ally: 'surfer', ally: 'surfer',
spritePlus: 10 spritePlus: 5
}, },
6: { 6: {
numberOfJewels: 6, numberOfJewels: 6,
matchesNeeded: 10, matchesNeeded: 10,
moveInterval: 10000, moveInterval: 10000,
ally: 'surfer', ally: 'surfer',
spritePlus: 10 spritePlus: 5
}, },
7: { 7: {
numberOfJewels: 6, numberOfJewels: 6,
matchesNeeded: 10, matchesNeeded: 10,
moveInterval: 9000, moveInterval: 9500,
ally: 'surfer', ally: 'surfer',
spritePlus: 10 spritePlus: 5
}, },
8: { 8: {
numberOfJewels: 6, numberOfJewels: 6,
matchesNeeded: 10, matchesNeeded: 10,
moveInterval: 8000, moveInterval: 9000,
ally: 'surfer', ally: 'surfer',
spritePlus: 10 spritePlus: 5
},
9: {
numberOfJewels: 6,
matchesNeeded: 10,
moveInterval: 9000,
ally: 'bear',
spritePlus: 11
},
10: {
numberOfJewels: 7,
matchesNeeded: 10,
moveInterval: 9000,
ally: 'bear',
spritePlus: 11
},
11: {
numberOfJewels: 6,
matchesNeeded: 9,
moveInterval: 8500,
ally: 'bear',
spritePlus: 11
},
12: {
numberOfJewels: 6,
matchesNeeded: 8,
moveInterval: 7000,
ally: 'bear',
spritePlus: 11
} }
}; };