western-world 3.0.331 → 3.0.333

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "western-world",
3
- "version": "3.0.331",
3
+ "version": "3.0.333",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,19 @@
1
+ export const player_lock = `
2
+ <symbol id="player_lock" viewBox="0 0 8192 8192">
3
+ <style type="text/css">
4
+ .player_lock_st0{fill:#FFD457;}
5
+ </style>
6
+ <g class="player_lock-container">
7
+ <rect class="player_lock-background" x="0" y="0" width="8292" height="8292"></rect>
8
+ <g class="player_lock-lock">
9
+ <path class="player_lock_st0" d="M3543.6,3844.1c0,0,1145.9,0,1315.3,0s154.2,154.2,154.2,154.2s0,1149,0,1296.8s-150.8,150.8-150.8,150.8
10
+ s-1176.3,0-1344.5,0s-183.4-183.4-183.4-183.4V4034.7C3334.4,3816.4,3543.6,3844.1,3543.6,3844.1z M3973.3,4976h395.6l-111.4-281.9
11
+ c0,0,120.5-29.6,120.5-175.1c0-145.5-122.8-209.2-204.1-209.2c-81.3,0-200.6,65.9-200.6,200.1c0,134.1,104.6,184.2,104.6,184.2
12
+ L3973.3,4976z"/>
13
+ <path id="lock_head" class="player_lock_st0" d="M3586,3968V2925.1c0,0,97-466.9,573-463.8c476,3,579,403.2,579,476s0,538.1,0,538.1
14
+ s-3.4,40.7-40.7,40.7s-134,0-134,0s-40.3,4.5-40.3-40.3s0-531.4,0-531.4s-57.5-261.5-351.9-261.5s-359.2,253.5-359.2,294.4
15
+ s0,990.6,0,990.6H3586z"/>
16
+ </g>
17
+ </g>
18
+ </symbol>
19
+ `;
@@ -1,3 +1,5 @@
1
+ @import './mixins/player_lock';
2
+
1
3
  .animated {
2
4
  .drunk_skip_two_times {
3
5
  #number {
@@ -31,6 +33,8 @@
31
33
  }
32
34
  }
33
35
 
36
+ @include playerLockMixin;
37
+
34
38
  @keyframes drunk_skip_two_times_number_animation {
35
39
  0% {
36
40
  transform: translateY(0px);
@@ -8,7 +8,7 @@
8
8
  animation-name: linesAnimation;
9
9
  animation-duration: 1s;
10
10
  animation-timing-function: linear;
11
- animation-iteration-count: infinity;
11
+ animation-iteration-count: 1;
12
12
  }
13
13
  }
14
14
  }
@@ -61,7 +61,7 @@ $main-animation-delay: 0s;
61
61
  transform-origin: 4000px 3700px;
62
62
  }
63
63
 
64
- use.d-none {
64
+ use.d-none.use-lost {
65
65
  display: block;
66
66
  }
67
67
  }
@@ -0,0 +1,125 @@
1
+ @import './boom';
2
+
3
+ $main-animation-delay: 0s;
4
+
5
+ @mixin playerLockMixin {
6
+ .animated.player_lock {
7
+ .player_lock-background {
8
+ display: block;
9
+ fill: black;
10
+ opacity: 0;
11
+ animation-name: buckground_animation;
12
+ animation-delay: $main-animation-delay;
13
+ animation-duration: 0.3s;
14
+ animation-timing-function: linear;
15
+ animation-fill-mode: forwards;
16
+ animation-iteration-count: 1;
17
+ }
18
+
19
+ .player_lock-lock {
20
+ animation-name: player_lock_lock_animation;
21
+ animation-duration: 3s;
22
+ animation-delay: 0.3s;
23
+ animation-timing-function: ease-in-out;
24
+ animation-fill-mode: forwards;
25
+ animation-iteration-count: 1;
26
+ scale: 0;
27
+ transform-origin: 4176px 4439px;
28
+ }
29
+
30
+ #lock_head {
31
+ animation-name: lock_head_animation;
32
+ animation-duration: 0.5s;
33
+ animation-delay: 0.7s;
34
+ animation-timing-function: cubic-bezier(0.84, 1.84, 0.59, 0.72);
35
+ animation-fill-mode: forwards;
36
+ animation-iteration-count: 1;
37
+ }
38
+
39
+ .player_lock-container {
40
+ animation-name: player_lock_container_animation;
41
+ animation-duration: 0.3s;
42
+ animation-delay: 2s;
43
+ animation-timing-function: linear;
44
+ animation-fill-mode: forwards;
45
+ animation-iteration-count: 1;
46
+ }
47
+
48
+ use.d-none.use-player_lock,
49
+ use.d-none.use-boom {
50
+ display: block;
51
+ }
52
+
53
+ @include boomMixin;
54
+
55
+ .boom {
56
+ scale: 20;
57
+ translate: 4200px 3300px;
58
+
59
+ line {
60
+ stroke: #ffd457;
61
+ animation-delay: 1s;
62
+ display: none;
63
+
64
+ &:nth-child(1),
65
+ &:nth-child(2),
66
+ &:nth-child(3) {
67
+ display: block;
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ @keyframes buckground_animation {
74
+ 0% {
75
+ opacity: 0;
76
+ }
77
+ 100% {
78
+ opacity: 0.5;
79
+ }
80
+ }
81
+
82
+ @keyframes player_lock_lock_animation {
83
+ 0% {
84
+ scale: 0;
85
+ }
86
+ 10% {
87
+ scale: 1.3;
88
+ }
89
+ 15% {
90
+ scale: 1;
91
+ }
92
+ 24% {
93
+ translate: 0 0px;
94
+ }
95
+ 27% {
96
+ translate: 0 100px;
97
+ }
98
+ 30% {
99
+ translate: 0 0px;
100
+ }
101
+ 100% {
102
+ scale: 1;
103
+ }
104
+ }
105
+
106
+ @keyframes lock_head_animation {
107
+ 0% {
108
+ translate: 0 0;
109
+ }
110
+ 100% {
111
+ translate: 0 500px;
112
+ }
113
+ }
114
+
115
+ @keyframes player_lock_container_animation {
116
+ 0% {
117
+ opacity: 1;
118
+ }
119
+ 100% {
120
+ opacity: 0;
121
+ }
122
+ }
123
+ }
124
+
125
+ @include boomAnimationMixin;
@@ -110,7 +110,7 @@ $main-animation-delay: 0s;
110
110
  transform-origin: 4000px 3700px;
111
111
  }
112
112
 
113
- use.d-none {
113
+ use.d-none.use-winner {
114
114
  display: block;
115
115
  }
116
116
  }
@@ -1038,6 +1038,6 @@
1038
1038
  <use xlink:href="#chip" transform="translate(950 -3400)"></use>
1039
1039
  </g>
1040
1040
 
1041
- <use xlink:href="#winner" class="d-none"></use>
1042
- <use xlink:href="#lost" class="d-none"></use>
1041
+ <use xlink:href="#winner" class="d-none use-winner"></use>
1042
+ <use xlink:href="#lost" class="d-none use-lost"></use>
1043
1043
  </svg>
@@ -16,6 +16,7 @@
16
16
  .st10{opacity:0.3;fill:#FF0000;enable-background:new ;}
17
17
  .st11{fill:#2D1E07;}
18
18
  .st12{opacity:0.2;}
19
+ .d-none{display:none;}
19
20
  </style>
20
21
  <rect class="st0" width="8192" height="8192"/>
21
22
  <path id="number" class="st1" d="M916.8,1051.7c0,0,1082.2-544.2,1768.7-544.2s915.2,327.8,1045.1,476.2
@@ -238,4 +239,6 @@
238
239
  <path d="M2078.9,5049.1c0,0,99,0,74.2,86.6c-24.7,86.6-6.1,185.5-68,247.4c0,0,136.1-80.4,148.4-148.4
239
240
  c12.4-68.1,55.6-160.8,0-204.1c-55.6-43.3-92.7-24.7-92.7-24.7L2078.9,5049.1z"/>
240
241
  </g>
242
+ <use xlink:href="#player_lock" class="d-none use-player_lock"></use>
243
+ <use xlink:href="#boom" class="d-none use-boom"></use>
241
244
  </svg>
package/src/svg/index.js CHANGED
@@ -10,6 +10,7 @@ import { cat } from '../defs/cat';
10
10
  import { rent } from '../defs/rent';
11
11
  import { winner } from '../defs/winner';
12
12
  import { lost } from '../defs/lost';
13
+ import { player_lock } from '../defs/player_lock';
13
14
 
14
15
  export const others = {
15
16
  // backgrounds;
@@ -251,6 +252,10 @@ export const cells = {
251
252
  drunk_skip_two_times: {
252
253
  svgPath: require('./cells/drunk_skip_two_times.svg'),
253
254
  scssPath: require('!!css-loader!sass-loader!../scss/cells/drunk_skip_two_times.scss').default,
255
+ defs: [
256
+ { name: 'player_lock', value: player_lock, type: 'symbol' },
257
+ { name: 'boom', value: boom, type: 'symbol' },
258
+ ],
254
259
  },
255
260
  dumping: {
256
261
  svgPath: require('./cells/dumping.svg'),