pixi-rainman-game-engine 0.1.52 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,8 +56,11 @@ export class AbstractMainContainer extends Container {
56
56
  this.name = AbstractMainContainer.registryName;
57
57
  this.buttonsEventManager = new ButtonsEventManager();
58
58
  this.messageBox = new MessageBox();
59
- if (RainMan.settingsStore.isSoundEnabled())
59
+ if (RainMan.settingsStore.isSoundEnabled()) {
60
60
  SoundManager.resumeAll();
61
+ if (RainMan.settingsStore.ambientMusicFlag)
62
+ SoundManager.play(SoundTracks.music);
63
+ }
61
64
  RainMan.app.renderer.on("resize", () => this.resize());
62
65
  }
63
66
  /**
@@ -28,6 +28,7 @@ export declare const COMPONENTS: {
28
28
  readonly creditText: "creditText";
29
29
  readonly bigWin: "bigWinText";
30
30
  readonly mysteryWin: "mysteryWinText";
31
+ readonly rouletteWin: "rouletteWinText";
31
32
  readonly bonusWin: "bonusWinText";
32
33
  readonly superBonusWin: "superBonusWinText";
33
34
  readonly autoSpinConfirm: "autoSpin-confirm";
@@ -28,6 +28,7 @@ export const COMPONENTS = {
28
28
  creditText: "creditText",
29
29
  bigWin: "bigWinText",
30
30
  mysteryWin: "mysteryWinText",
31
+ rouletteWin: "rouletteWinText",
31
32
  bonusWin: "bonusWinText",
32
33
  superBonusWin: "superBonusWinText",
33
34
  autoSpinConfirm: "autoSpin-confirm",
@@ -635,7 +635,7 @@ export class AbstractController {
635
635
  : freeSpinWins.at(0)?.freeSpinAward || 0;
636
636
  const isAdditionalFreeSpins = RainMan.settingsStore.howManyFreeSpinsLeft - freeSpinAward > 0;
637
637
  await this.handleFreeSpinPlateInvocation(freeSpinAward, isAdditionalFreeSpins);
638
- this.uiController.updateShownFreeSpinAmount(freeSpinAward, isAdditionalFreeSpins);
638
+ this.uiController.triggerUiElementsUpdate();
639
639
  this.uiController.messageBox.showFreeSpinText();
640
640
  }
641
641
  if (this.invokeFreeSpinSummaryPlateAfterWin && !this.skipFreeSpinSummary) {
@@ -10,7 +10,7 @@ const resumeAudioContext = () => {
10
10
  SoundManager.pauseAll();
11
11
  return;
12
12
  }
13
- if (!document.hidden && RainMan.settingsStore.isSoundEnabled()) {
13
+ if (RainMan.settingsStore.isSoundEnabled() && !document.hidden) {
14
14
  SoundManager.resumeAll();
15
15
  return;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "This repository contains all of the mechanics that used in rainman games.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",