pixi-rainman-game-engine 0.1.38 → 0.1.40
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.
- package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +11 -0
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +11 -0
- package/dist/components/common/AnimatedBackground.d.ts +16 -0
- package/dist/components/common/AnimatedBackground.js +16 -0
- package/dist/components/frame/AbstractFrame.d.ts +16 -0
- package/dist/components/frame/AbstractFrame.js +16 -0
- package/package.json +1 -1
|
@@ -92,6 +92,17 @@ export declare abstract class AbstractMainContainer extends Container {
|
|
|
92
92
|
* @returns {Nullable<UpdatableSpineContainer>}
|
|
93
93
|
*/
|
|
94
94
|
protected createMysteryWinContainer(): Nullable<UpdatableSpineContainer>;
|
|
95
|
+
/**
|
|
96
|
+
* Function for specifying the container for the free spin summary
|
|
97
|
+
* This needs to be implemented in each game
|
|
98
|
+
* In some cases there will be free spin button that should be removed during free spins
|
|
99
|
+
*/
|
|
100
|
+
protected changeContainerForFreeSpin(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Function for specifying the container for base game
|
|
103
|
+
* This needs to be implemented in each game
|
|
104
|
+
*/
|
|
105
|
+
protected changeContainerForBaseGame(): void;
|
|
95
106
|
/**
|
|
96
107
|
* Function for invoking free spin plate
|
|
97
108
|
* If game draw an additional free spin, you can set isAdditionalFreeSpin to true
|
|
@@ -108,6 +108,17 @@ export class AbstractMainContainer extends Container {
|
|
|
108
108
|
createMysteryWinContainer() {
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Function for specifying the container for the free spin summary
|
|
113
|
+
* This needs to be implemented in each game
|
|
114
|
+
* In some cases there will be free spin button that should be removed during free spins
|
|
115
|
+
*/
|
|
116
|
+
changeContainerForFreeSpin() { }
|
|
117
|
+
/**
|
|
118
|
+
* Function for specifying the container for base game
|
|
119
|
+
* This needs to be implemented in each game
|
|
120
|
+
*/
|
|
121
|
+
changeContainerForBaseGame() { }
|
|
111
122
|
/**
|
|
112
123
|
* Function for invoking free spin plate
|
|
113
124
|
* If game draw an additional free spin, you can set isAdditionalFreeSpin to true
|
|
@@ -17,6 +17,22 @@ export declare class AnimatedBackground extends ResumableContainer {
|
|
|
17
17
|
protected spine: Spine;
|
|
18
18
|
constructor(desktopSpineName: string, animationName: string, mobileSpineName?: string);
|
|
19
19
|
resize(): void;
|
|
20
|
+
/**
|
|
21
|
+
* This method is called when free spins are triggered
|
|
22
|
+
* It is used to change the background animation
|
|
23
|
+
* Remember to change resize for this method
|
|
24
|
+
*
|
|
25
|
+
* @protected
|
|
26
|
+
*/
|
|
27
|
+
protected changeForFreeSpins(): void;
|
|
28
|
+
/**
|
|
29
|
+
* This method is called when base game is triggered
|
|
30
|
+
* It is used to change the background animation
|
|
31
|
+
* Remember to change resize for this method
|
|
32
|
+
*
|
|
33
|
+
* @protected
|
|
34
|
+
*/
|
|
35
|
+
protected changeForBaseGame(): void;
|
|
20
36
|
private setDesktopBackground;
|
|
21
37
|
private setMobileBackground;
|
|
22
38
|
private changeSpineForOrientation;
|
|
@@ -33,6 +33,22 @@ export class AnimatedBackground extends ResumableContainer {
|
|
|
33
33
|
this.width = RainMan.app.screen.width;
|
|
34
34
|
this.height = RainMan.app.screen.height;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* This method is called when free spins are triggered
|
|
38
|
+
* It is used to change the background animation
|
|
39
|
+
* Remember to change resize for this method
|
|
40
|
+
*
|
|
41
|
+
* @protected
|
|
42
|
+
*/
|
|
43
|
+
changeForFreeSpins() { }
|
|
44
|
+
/**
|
|
45
|
+
* This method is called when base game is triggered
|
|
46
|
+
* It is used to change the background animation
|
|
47
|
+
* Remember to change resize for this method
|
|
48
|
+
*
|
|
49
|
+
* @protected
|
|
50
|
+
*/
|
|
51
|
+
changeForBaseGame() { }
|
|
36
52
|
setDesktopBackground() {
|
|
37
53
|
this.spine = new Spine(getSpineData(this.desktopSpineName));
|
|
38
54
|
this.spine.state.setAnimation(0, this.animationName, true);
|
|
@@ -46,6 +46,22 @@ export declare abstract class AbstractFrame extends ResumableContainer implement
|
|
|
46
46
|
protected setFrame(spineName: string, animationName: string): void;
|
|
47
47
|
resize(): void;
|
|
48
48
|
protected abstract reposition(): void;
|
|
49
|
+
/**
|
|
50
|
+
* This method is use when bonus games are triggered
|
|
51
|
+
* It is used to change the frame animation
|
|
52
|
+
* Remember to change resize for this method
|
|
53
|
+
*
|
|
54
|
+
* @protected
|
|
55
|
+
*/
|
|
56
|
+
protected changeForBonusGame(): void;
|
|
57
|
+
/**
|
|
58
|
+
* This method is use when normal game is triggered
|
|
59
|
+
* It is used to change the frame animation
|
|
60
|
+
* Remember to change resize for this method
|
|
61
|
+
*
|
|
62
|
+
* @abstract
|
|
63
|
+
*/
|
|
64
|
+
protected changeForNormalGame(): void;
|
|
49
65
|
protected abstract getFrameScale(): {
|
|
50
66
|
vertical: number;
|
|
51
67
|
horizontal: number;
|
|
@@ -127,6 +127,22 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
127
127
|
this.winLineAnimations.forEach((winLineAnimation) => this.addChild(winLineAnimation));
|
|
128
128
|
this.reposition();
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* This method is use when bonus games are triggered
|
|
132
|
+
* It is used to change the frame animation
|
|
133
|
+
* Remember to change resize for this method
|
|
134
|
+
*
|
|
135
|
+
* @protected
|
|
136
|
+
*/
|
|
137
|
+
changeForBonusGame() { }
|
|
138
|
+
/**
|
|
139
|
+
* This method is use when normal game is triggered
|
|
140
|
+
* It is used to change the frame animation
|
|
141
|
+
* Remember to change resize for this method
|
|
142
|
+
*
|
|
143
|
+
* @abstract
|
|
144
|
+
*/
|
|
145
|
+
changeForNormalGame() { }
|
|
130
146
|
transformedWidth() {
|
|
131
147
|
return RainMan.app.screen.width * this.getFrameScale().horizontal;
|
|
132
148
|
}
|
package/package.json
CHANGED