pixi-rainman-game-engine 0.2.3 → 0.2.4
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.
|
@@ -10,6 +10,7 @@ export const defaultAppConfig = {
|
|
|
10
10
|
idleTimeout: 10000,
|
|
11
11
|
fontSize: 35,
|
|
12
12
|
mobileFontSize: 45,
|
|
13
|
+
shouldSpeedUpMobileReels: false,
|
|
13
14
|
updatableSpineContainerFontSize: 50,
|
|
14
15
|
updatableTextValueColor: new Color(0xffffff).toHex(),
|
|
15
16
|
autoplayGlowColor: new Color(0xff3000).toNumber(),
|
package/dist/Rainman/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Container } from "pixi.js";
|
|
|
4
4
|
import { animationsSpeedLevels, defaultSpeedConfig, SoundManager, SoundTracks, SPEED_LEVELS, } from "../../application";
|
|
5
5
|
import { FrameLayer } from "../../layers";
|
|
6
6
|
import { RainMan } from "../../Rainman";
|
|
7
|
-
import { logInfo } from "../../utils";
|
|
7
|
+
import { getDeviceOrientation, logInfo } from "../../utils";
|
|
8
8
|
import { droppableSymbolsFactory } from "./DroppableSymbolsColumn";
|
|
9
9
|
import { Phase, Speed } from "./types";
|
|
10
10
|
/**
|
|
@@ -138,7 +138,8 @@ export class AbstractSymbolsColumn extends Container {
|
|
|
138
138
|
if (!this.topMostSymbol) {
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const mobileSpeedUp = getDeviceOrientation() === "mobile-portrait" && RainMan.config.shouldSpeedUpMobileReels ? 1.3 : 1;
|
|
142
|
+
const distance = Math.round(this.velocity * this.velocityMultiplier * delta * mobileSpeedUp);
|
|
142
143
|
for (const symbol of this.symbols) {
|
|
143
144
|
symbol.y += distance;
|
|
144
145
|
}
|
|
@@ -47,6 +47,7 @@ export declare abstract class AbstractController<T> {
|
|
|
47
47
|
private componentRegistry;
|
|
48
48
|
protected skipFreeSpinSummary: boolean;
|
|
49
49
|
protected scatterCountForFx: number;
|
|
50
|
+
protected summaryStop: boolean;
|
|
50
51
|
protected _lastWinAmount: number;
|
|
51
52
|
protected constructor(buttonsEventManager: ButtonsEventManager, mainContainer: AbstractMainContainer, connection: SubscribableConnectionWrapper);
|
|
52
53
|
init(): void;
|
|
@@ -46,6 +46,7 @@ export class AbstractController {
|
|
|
46
46
|
componentRegistry;
|
|
47
47
|
skipFreeSpinSummary = false;
|
|
48
48
|
scatterCountForFx = 2;
|
|
49
|
+
summaryStop = false;
|
|
49
50
|
_lastWinAmount = 0;
|
|
50
51
|
constructor(buttonsEventManager, mainContainer, connection) {
|
|
51
52
|
this.buttonsEventManager = buttonsEventManager;
|
|
@@ -194,8 +195,9 @@ export class AbstractController {
|
|
|
194
195
|
refreshButton.on("touchstart", () => {
|
|
195
196
|
this.mobileSpinTimeout = setInterval(() => {
|
|
196
197
|
this.handleDisablingButtons(true);
|
|
198
|
+
this.summaryStop = this.skipFreeSpinSummary ? false : this.invokeFreeSpinSummaryPlateAfterWin;
|
|
197
199
|
if (this.invokeFreeSpinPlateAfterWin ||
|
|
198
|
-
this.
|
|
200
|
+
this.summaryStop ||
|
|
199
201
|
this.resolveBigWin !== undefined ||
|
|
200
202
|
this.resolveSuperBonusWin !== undefined ||
|
|
201
203
|
this.resolveMysteryWin !== undefined) {
|