react-native-games 0.7.0 → 1.0.0

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.
Files changed (459) hide show
  1. package/README.md +507 -84
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +13 -21
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +1 -1
  5. package/lib/module/games/balloon-blaster/components/GameArea.js +1 -1
  6. package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
  7. package/lib/module/games/balloon-blaster/components/GameBackground.js +24 -17
  8. package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
  9. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +47 -47
  10. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
  11. package/lib/module/games/candy-crush/CandyCrush.js +131 -0
  12. package/lib/module/games/candy-crush/CandyCrush.js.map +1 -0
  13. package/lib/module/games/candy-crush/CandyCrushConstants.js +125 -0
  14. package/lib/module/games/candy-crush/CandyCrushConstants.js.map +1 -0
  15. package/lib/module/games/candy-crush/CandyCrushService.js +370 -0
  16. package/lib/module/games/candy-crush/CandyCrushService.js.map +1 -0
  17. package/lib/module/games/candy-crush/CandyCrushStore.js +303 -0
  18. package/lib/module/games/candy-crush/CandyCrushStore.js.map +1 -0
  19. package/lib/module/games/candy-crush/components/CandyItem.js +191 -0
  20. package/lib/module/games/candy-crush/components/CandyItem.js.map +1 -0
  21. package/lib/module/games/candy-crush/components/GameBackground.js +85 -0
  22. package/lib/module/games/candy-crush/components/GameBackground.js.map +1 -0
  23. package/lib/module/games/candy-crush/components/GameGrid.js +314 -0
  24. package/lib/module/games/candy-crush/components/GameGrid.js.map +1 -0
  25. package/lib/module/games/candy-crush/components/ScoreBoard.js +79 -0
  26. package/lib/module/games/candy-crush/components/ScoreBoard.js.map +1 -0
  27. package/lib/module/games/candy-crush/components/index.js +7 -0
  28. package/lib/module/games/candy-crush/components/index.js.map +1 -0
  29. package/lib/module/games/candy-crush/index.js +6 -0
  30. package/lib/module/games/candy-crush/index.js.map +1 -0
  31. package/lib/module/games/colors-sort/ColorsSort.js +143 -0
  32. package/lib/module/games/colors-sort/ColorsSort.js.map +1 -0
  33. package/lib/module/games/colors-sort/ColorsSortConstants.js +72 -0
  34. package/lib/module/games/colors-sort/ColorsSortConstants.js.map +1 -0
  35. package/lib/module/games/colors-sort/ColorsSortService.js +255 -0
  36. package/lib/module/games/colors-sort/ColorsSortService.js.map +1 -0
  37. package/lib/module/games/colors-sort/ColorsSortStore.js +257 -0
  38. package/lib/module/games/colors-sort/ColorsSortStore.js.map +1 -0
  39. package/lib/module/games/colors-sort/components/ColorContainer.js +140 -0
  40. package/lib/module/games/colors-sort/components/ColorContainer.js.map +1 -0
  41. package/lib/module/games/colors-sort/components/GameBackground.js +135 -0
  42. package/lib/module/games/colors-sort/components/GameBackground.js.map +1 -0
  43. package/lib/module/games/colors-sort/components/ScoreBoard.js +70 -0
  44. package/lib/module/games/colors-sort/components/ScoreBoard.js.map +1 -0
  45. package/lib/module/games/colors-sort/components/index.js +6 -0
  46. package/lib/module/games/colors-sort/components/index.js.map +1 -0
  47. package/lib/module/games/dino-jump/DinoJump.js +209 -0
  48. package/lib/module/games/dino-jump/DinoJump.js.map +1 -0
  49. package/lib/module/games/dino-jump/DinoJumpConstants.js +189 -0
  50. package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -0
  51. package/lib/module/games/dino-jump/DinoJumpService.js +270 -0
  52. package/lib/module/games/dino-jump/DinoJumpService.js.map +1 -0
  53. package/lib/module/games/dino-jump/DinoJumpStore.js +381 -0
  54. package/lib/module/games/dino-jump/DinoJumpStore.js.map +1 -0
  55. package/lib/module/games/dino-jump/components/DinoSprite.js +418 -0
  56. package/lib/module/games/dino-jump/components/DinoSprite.js.map +1 -0
  57. package/lib/module/games/dino-jump/components/GameArea.js +68 -0
  58. package/lib/module/games/dino-jump/components/GameArea.js.map +1 -0
  59. package/lib/module/games/dino-jump/components/GameBackground.js +444 -0
  60. package/lib/module/games/dino-jump/components/GameBackground.js.map +1 -0
  61. package/lib/module/games/dino-jump/components/ObstacleSprite.js +306 -0
  62. package/lib/module/games/dino-jump/components/ObstacleSprite.js.map +1 -0
  63. package/lib/module/games/dino-jump/components/ScoreBoard.js +105 -0
  64. package/lib/module/games/dino-jump/components/ScoreBoard.js.map +1 -0
  65. package/lib/module/games/dino-jump/components/StarSprite.js +45 -0
  66. package/lib/module/games/dino-jump/components/StarSprite.js.map +1 -0
  67. package/lib/module/games/dino-jump/components/index.js +9 -0
  68. package/lib/module/games/dino-jump/components/index.js.map +1 -0
  69. package/lib/module/games/flappy-bird/FlappyBird.js +126 -0
  70. package/lib/module/games/flappy-bird/FlappyBird.js.map +1 -0
  71. package/lib/module/games/flappy-bird/FlappyBirdConstants.js +90 -0
  72. package/lib/module/games/flappy-bird/FlappyBirdConstants.js.map +1 -0
  73. package/lib/module/games/flappy-bird/FlappyBirdStore.js +300 -0
  74. package/lib/module/games/flappy-bird/FlappyBirdStore.js.map +1 -0
  75. package/lib/module/games/flappy-bird/components/Bird.js +87 -0
  76. package/lib/module/games/flappy-bird/components/Bird.js.map +1 -0
  77. package/lib/module/games/flappy-bird/components/GameArea.js +87 -0
  78. package/lib/module/games/flappy-bird/components/GameArea.js.map +1 -0
  79. package/lib/module/games/flappy-bird/components/GameBackground.js +79 -0
  80. package/lib/module/games/flappy-bird/components/GameBackground.js.map +1 -0
  81. package/lib/module/games/flappy-bird/components/Pipes.js +172 -0
  82. package/lib/module/games/flappy-bird/components/Pipes.js.map +1 -0
  83. package/lib/module/games/flappy-bird/components/ScoreBoard.js +73 -0
  84. package/lib/module/games/flappy-bird/components/ScoreBoard.js.map +1 -0
  85. package/lib/module/games/flappy-bird/components/index.js +8 -0
  86. package/lib/module/games/flappy-bird/components/index.js.map +1 -0
  87. package/lib/module/games/fruit-merger/FruitMerger.js +120 -0
  88. package/lib/module/games/fruit-merger/FruitMerger.js.map +1 -0
  89. package/lib/module/games/fruit-merger/FruitMergerConstants.js +119 -0
  90. package/lib/module/games/fruit-merger/FruitMergerConstants.js.map +1 -0
  91. package/lib/module/games/fruit-merger/FruitMergerService.js +13 -0
  92. package/lib/module/games/fruit-merger/FruitMergerService.js.map +1 -0
  93. package/lib/module/games/fruit-merger/FruitMergerStore.js +315 -0
  94. package/lib/module/games/fruit-merger/FruitMergerStore.js.map +1 -0
  95. package/lib/module/games/fruit-merger/components/FruitItem.js +102 -0
  96. package/lib/module/games/fruit-merger/components/FruitItem.js.map +1 -0
  97. package/lib/module/games/fruit-merger/components/GameArea.js +103 -0
  98. package/lib/module/games/fruit-merger/components/GameArea.js.map +1 -0
  99. package/lib/module/games/fruit-merger/components/GameBackground.js +498 -0
  100. package/lib/module/games/fruit-merger/components/GameBackground.js.map +1 -0
  101. package/lib/module/games/fruit-merger/components/ScoreBoard.js +58 -0
  102. package/lib/module/games/fruit-merger/components/ScoreBoard.js.map +1 -0
  103. package/lib/module/games/fruit-merger/components/index.js +7 -0
  104. package/lib/module/games/fruit-merger/components/index.js.map +1 -0
  105. package/lib/module/games/fruit-ninja/FruitNinja.js +14 -22
  106. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
  107. package/lib/module/games/fruit-ninja/FruitNinjaStore.js +1 -1
  108. package/lib/module/games/fruit-ninja/components/GameArea.js +1 -1
  109. package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -1
  110. package/lib/module/games/fruit-ninja/components/GameBackground.js +70 -45
  111. package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -1
  112. package/lib/module/games/fruit-ninja/components/ScoreBoard.js +47 -46
  113. package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
  114. package/lib/module/games/game-2048/Game2048.js +149 -0
  115. package/lib/module/games/game-2048/Game2048.js.map +1 -0
  116. package/lib/module/games/game-2048/Game2048Constants.js +263 -0
  117. package/lib/module/games/game-2048/Game2048Constants.js.map +1 -0
  118. package/lib/module/games/game-2048/Game2048Service.js +457 -0
  119. package/lib/module/games/game-2048/Game2048Service.js.map +1 -0
  120. package/lib/module/games/game-2048/Game2048Store.js +236 -0
  121. package/lib/module/games/game-2048/Game2048Store.js.map +1 -0
  122. package/lib/module/games/game-2048/components/GameBackground.js +247 -0
  123. package/lib/module/games/game-2048/components/GameBackground.js.map +1 -0
  124. package/lib/module/games/game-2048/components/GameGrid.js +139 -0
  125. package/lib/module/games/game-2048/components/GameGrid.js.map +1 -0
  126. package/lib/module/games/game-2048/components/GameTile.js +72 -0
  127. package/lib/module/games/game-2048/components/GameTile.js.map +1 -0
  128. package/lib/module/games/game-2048/components/ScoreBoard.js +52 -0
  129. package/lib/module/games/game-2048/components/ScoreBoard.js.map +1 -0
  130. package/lib/module/games/game-2048/components/index.js +7 -0
  131. package/lib/module/games/game-2048/components/index.js.map +1 -0
  132. package/lib/module/games/maze-runner/MazeRunner.js +51 -41
  133. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  134. package/lib/module/games/maze-runner/MazeRunnerService.js +19 -17
  135. package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
  136. package/lib/module/games/maze-runner/components/ScoreBoard.js +32 -42
  137. package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
  138. package/lib/module/games/popit-fidget/PopitFidget.js +57 -66
  139. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
  140. package/lib/module/games/popit-fidget/PopitFidgetStore.js +6 -44
  141. package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -1
  142. package/lib/module/games/popit-fidget/components/ScoreBoard.js +31 -45
  143. package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -1
  144. package/lib/module/games/sliding-numbers/SlidingNumbers.js +159 -0
  145. package/lib/module/games/sliding-numbers/SlidingNumbers.js.map +1 -0
  146. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js +207 -0
  147. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js.map +1 -0
  148. package/lib/module/games/sliding-numbers/SlidingNumbersService.js +248 -0
  149. package/lib/module/games/sliding-numbers/SlidingNumbersService.js.map +1 -0
  150. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js +274 -0
  151. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js.map +1 -0
  152. package/lib/module/games/sliding-numbers/components/GameBackground.js +259 -0
  153. package/lib/module/games/sliding-numbers/components/GameBackground.js.map +1 -0
  154. package/lib/module/games/sliding-numbers/components/NumbersGrid.js +174 -0
  155. package/lib/module/games/sliding-numbers/components/NumbersGrid.js.map +1 -0
  156. package/lib/module/games/sliding-numbers/components/NumbersTile.js +116 -0
  157. package/lib/module/games/sliding-numbers/components/NumbersTile.js.map +1 -0
  158. package/lib/module/games/sliding-numbers/components/ScoreBoard.js +64 -0
  159. package/lib/module/games/sliding-numbers/components/ScoreBoard.js.map +1 -0
  160. package/lib/module/games/sliding-numbers/components/index.js +7 -0
  161. package/lib/module/games/sliding-numbers/components/index.js.map +1 -0
  162. package/lib/module/games/snake/Snake.js +189 -0
  163. package/lib/module/games/snake/Snake.js.map +1 -0
  164. package/lib/module/games/snake/SnakeConstants.js +138 -0
  165. package/lib/module/games/snake/SnakeConstants.js.map +1 -0
  166. package/lib/module/games/snake/SnakeService.js +148 -0
  167. package/lib/module/games/snake/SnakeService.js.map +1 -0
  168. package/lib/module/games/snake/SnakeStore.js +182 -0
  169. package/lib/module/games/snake/SnakeStore.js.map +1 -0
  170. package/lib/module/games/snake/components/GameBackground.js +221 -0
  171. package/lib/module/games/snake/components/GameBackground.js.map +1 -0
  172. package/lib/module/games/snake/components/GameGrid.js +153 -0
  173. package/lib/module/games/snake/components/GameGrid.js.map +1 -0
  174. package/lib/module/games/snake/components/ScoreBoard.js +51 -0
  175. package/lib/module/games/snake/components/ScoreBoard.js.map +1 -0
  176. package/lib/module/games/snake/components/index.js +6 -0
  177. package/lib/module/games/snake/components/index.js.map +1 -0
  178. package/lib/module/games/snake/index.js +6 -0
  179. package/lib/module/games/snake/index.js.map +1 -0
  180. package/lib/module/games/space-fighter/SpaceFighter.js +22 -26
  181. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
  182. package/lib/module/games/space-fighter/SpaceFighterService.js +7 -6
  183. package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -1
  184. package/lib/module/games/space-fighter/SpaceFighterStore.js +25 -11
  185. package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -1
  186. package/lib/module/games/space-fighter/components/GameArea.js +1 -7
  187. package/lib/module/games/space-fighter/components/GameArea.js.map +1 -1
  188. package/lib/module/games/space-fighter/components/ScoreBoard.js +47 -48
  189. package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -1
  190. package/lib/module/games/whack-a-mole/WhackAMole.js +17 -10
  191. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
  192. package/lib/module/games/whack-a-mole/WhackAMoleStore.js +1 -1
  193. package/lib/module/games/whack-a-mole/components/GameBackground.js +37 -30
  194. package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -1
  195. package/lib/module/games/whack-a-mole/components/ScoreBoard.js +32 -38
  196. package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
  197. package/lib/module/helpers/AnimationFrame.js.map +1 -0
  198. package/lib/module/helpers/AnimationTracker.js.map +1 -0
  199. package/lib/module/helpers/ErrorHandler.js.map +1 -0
  200. package/lib/module/helpers/GameControlButton.js.map +1 -0
  201. package/lib/module/{shared/helpers → helpers}/GameOverModal.js +6 -3
  202. package/lib/module/helpers/GameOverModal.js.map +1 -0
  203. package/lib/module/{shared/helpers → helpers}/GameSettingsModal.js +5 -5
  204. package/lib/module/helpers/GameSettingsModal.js.map +1 -0
  205. package/lib/module/{shared/helpers → helpers}/ParticleBlast.js +3 -2
  206. package/lib/module/helpers/ParticleBlast.js.map +1 -0
  207. package/lib/module/helpers/ScoreBoardContainer.js +34 -0
  208. package/lib/module/helpers/ScoreBoardContainer.js.map +1 -0
  209. package/lib/module/{shared/helpers → helpers}/index.js +1 -1
  210. package/lib/module/helpers/index.js.map +1 -0
  211. package/lib/module/index.js +9 -0
  212. package/lib/module/index.js.map +1 -1
  213. package/lib/module/services/GamesConstants.js +100 -5
  214. package/lib/module/services/GamesConstants.js.map +1 -1
  215. package/lib/module/services/GamesService.js +108 -42
  216. package/lib/module/services/GamesService.js.map +1 -1
  217. package/lib/module/services/SoundsService.js +132 -1
  218. package/lib/module/services/SoundsService.js.map +1 -1
  219. package/lib/module/services/UtilsService.js +32 -0
  220. package/lib/module/services/UtilsService.js.map +1 -0
  221. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +1 -1
  222. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  223. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts +1 -0
  224. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -1
  225. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +5 -1
  226. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
  227. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts +4 -0
  228. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -0
  229. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +104 -0
  230. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts.map +1 -0
  231. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts +40 -0
  232. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts.map +1 -0
  233. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts +48 -0
  234. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts.map +1 -0
  235. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts +13 -0
  236. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts.map +1 -0
  237. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts +5 -0
  238. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts.map +1 -0
  239. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts +3 -0
  240. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts.map +1 -0
  241. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts +6 -0
  242. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts.map +1 -0
  243. package/lib/typescript/src/games/candy-crush/components/index.d.ts +5 -0
  244. package/lib/typescript/src/games/candy-crush/components/index.d.ts.map +1 -0
  245. package/lib/typescript/src/games/candy-crush/index.d.ts +4 -0
  246. package/lib/typescript/src/games/candy-crush/index.d.ts.map +1 -0
  247. package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts +4 -0
  248. package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts.map +1 -0
  249. package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts +54 -0
  250. package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts.map +1 -0
  251. package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts +66 -0
  252. package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts.map +1 -0
  253. package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts +48 -0
  254. package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts.map +1 -0
  255. package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts +11 -0
  256. package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts.map +1 -0
  257. package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts +7 -0
  258. package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts.map +1 -0
  259. package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts +7 -0
  260. package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts.map +1 -0
  261. package/lib/typescript/src/games/colors-sort/components/index.d.ts +4 -0
  262. package/lib/typescript/src/games/colors-sort/components/index.d.ts.map +1 -0
  263. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts +4 -0
  264. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -0
  265. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts +97 -0
  266. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts.map +1 -0
  267. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts +40 -0
  268. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts.map +1 -0
  269. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts +103 -0
  270. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts.map +1 -0
  271. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts +3 -0
  272. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -0
  273. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts +8 -0
  274. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts.map +1 -0
  275. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts +8 -0
  276. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts.map +1 -0
  277. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts +3 -0
  278. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts.map +1 -0
  279. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts +7 -0
  280. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts.map +1 -0
  281. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts +3 -0
  282. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts.map +1 -0
  283. package/lib/typescript/src/games/dino-jump/components/index.d.ts +7 -0
  284. package/lib/typescript/src/games/dino-jump/components/index.d.ts.map +1 -0
  285. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts +4 -0
  286. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -0
  287. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts +83 -0
  288. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -0
  289. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts +53 -0
  290. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts.map +1 -0
  291. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts +8 -0
  292. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts.map +1 -0
  293. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts +8 -0
  294. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts.map +1 -0
  295. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts +8 -0
  296. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts.map +1 -0
  297. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts +9 -0
  298. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts.map +1 -0
  299. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts +7 -0
  300. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts.map +1 -0
  301. package/lib/typescript/src/games/flappy-bird/components/index.d.ts +6 -0
  302. package/lib/typescript/src/games/flappy-bird/components/index.d.ts.map +1 -0
  303. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts +4 -0
  304. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -0
  305. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts +115 -0
  306. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -0
  307. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts +5 -0
  308. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts.map +1 -0
  309. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts +43 -0
  310. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts.map +1 -0
  311. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts +10 -0
  312. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts.map +1 -0
  313. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts +8 -0
  314. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts.map +1 -0
  315. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts +8 -0
  316. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts.map +1 -0
  317. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts +7 -0
  318. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts.map +1 -0
  319. package/lib/typescript/src/games/fruit-merger/components/index.d.ts +5 -0
  320. package/lib/typescript/src/games/fruit-merger/components/index.d.ts.map +1 -0
  321. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +1 -1
  322. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  323. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts +1 -0
  324. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -1
  325. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +5 -1
  326. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
  327. package/lib/typescript/src/games/game-2048/Game2048.d.ts +4 -0
  328. package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -0
  329. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts +163 -0
  330. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts.map +1 -0
  331. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts +113 -0
  332. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts.map +1 -0
  333. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts +48 -0
  334. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts.map +1 -0
  335. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts +7 -0
  336. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts.map +1 -0
  337. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts +7 -0
  338. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts.map +1 -0
  339. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts +13 -0
  340. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts.map +1 -0
  341. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts +7 -0
  342. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts.map +1 -0
  343. package/lib/typescript/src/games/game-2048/components/index.d.ts +5 -0
  344. package/lib/typescript/src/games/game-2048/components/index.d.ts.map +1 -0
  345. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +1 -1
  346. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  347. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +1 -0
  348. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
  349. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts +1 -0
  350. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
  351. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +1 -1
  352. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  353. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +2 -5
  354. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -1
  355. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +2 -2
  356. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -1
  357. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts +4 -0
  358. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -0
  359. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts +108 -0
  360. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts.map +1 -0
  361. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts +34 -0
  362. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts.map +1 -0
  363. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts +56 -0
  364. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts.map +1 -0
  365. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts +7 -0
  366. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts.map +1 -0
  367. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts +7 -0
  368. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts.map +1 -0
  369. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts +11 -0
  370. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts.map +1 -0
  371. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts +7 -0
  372. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts.map +1 -0
  373. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts +5 -0
  374. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts.map +1 -0
  375. package/lib/typescript/src/games/snake/Snake.d.ts +4 -0
  376. package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -0
  377. package/lib/typescript/src/games/snake/SnakeConstants.d.ts +93 -0
  378. package/lib/typescript/src/games/snake/SnakeConstants.d.ts.map +1 -0
  379. package/lib/typescript/src/games/snake/SnakeService.d.ts +30 -0
  380. package/lib/typescript/src/games/snake/SnakeService.d.ts.map +1 -0
  381. package/lib/typescript/src/games/snake/SnakeStore.d.ts +43 -0
  382. package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -0
  383. package/lib/typescript/src/games/snake/components/GameBackground.d.ts +5 -0
  384. package/lib/typescript/src/games/snake/components/GameBackground.d.ts.map +1 -0
  385. package/lib/typescript/src/games/snake/components/GameGrid.d.ts +3 -0
  386. package/lib/typescript/src/games/snake/components/GameGrid.d.ts.map +1 -0
  387. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts +7 -0
  388. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -0
  389. package/lib/typescript/src/games/snake/components/index.d.ts +4 -0
  390. package/lib/typescript/src/games/snake/components/index.d.ts.map +1 -0
  391. package/lib/typescript/src/games/snake/index.d.ts +4 -0
  392. package/lib/typescript/src/games/snake/index.d.ts.map +1 -0
  393. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +1 -1
  394. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  395. package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -1
  396. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts +2 -0
  397. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -1
  398. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -1
  399. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +5 -1
  400. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -1
  401. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +1 -1
  402. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  403. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts +1 -0
  404. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -1
  405. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts +1 -0
  406. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -1
  407. package/lib/typescript/src/helpers/AnimationFrame.d.ts.map +1 -0
  408. package/lib/typescript/src/helpers/AnimationTracker.d.ts.map +1 -0
  409. package/lib/typescript/src/helpers/ErrorHandler.d.ts.map +1 -0
  410. package/lib/typescript/src/helpers/GameControlButton.d.ts.map +1 -0
  411. package/lib/typescript/src/{shared/helpers → helpers}/GameOverModal.d.ts +2 -0
  412. package/lib/typescript/src/helpers/GameOverModal.d.ts.map +1 -0
  413. package/lib/typescript/src/{shared/helpers → helpers}/GameSettingsModal.d.ts +1 -1
  414. package/lib/typescript/src/helpers/GameSettingsModal.d.ts.map +1 -0
  415. package/lib/typescript/src/helpers/ParticleBlast.d.ts.map +1 -0
  416. package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts +9 -0
  417. package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts.map +1 -0
  418. package/lib/typescript/src/{shared/helpers → helpers}/index.d.ts +2 -1
  419. package/lib/typescript/src/helpers/index.d.ts.map +1 -0
  420. package/lib/typescript/src/index.d.ts +9 -0
  421. package/lib/typescript/src/index.d.ts.map +1 -1
  422. package/lib/typescript/src/services/GamesConstants.d.ts +162 -0
  423. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  424. package/lib/typescript/src/services/GamesService.d.ts +3 -25
  425. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  426. package/lib/typescript/src/services/SoundsService.d.ts +103 -0
  427. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
  428. package/lib/typescript/src/services/UtilsService.d.ts +38 -0
  429. package/lib/typescript/src/services/UtilsService.d.ts.map +1 -0
  430. package/package.json +1 -1
  431. package/lib/module/shared/helpers/AnimationFrame.js.map +0 -1
  432. package/lib/module/shared/helpers/AnimationTracker.js.map +0 -1
  433. package/lib/module/shared/helpers/ErrorHandler.js.map +0 -1
  434. package/lib/module/shared/helpers/GameControlButton.js.map +0 -1
  435. package/lib/module/shared/helpers/GameOverModal.js.map +0 -1
  436. package/lib/module/shared/helpers/GameSettingsModal.js.map +0 -1
  437. package/lib/module/shared/helpers/ParticleBlast.js.map +0 -1
  438. package/lib/module/shared/helpers/ResponsiveScoreBoard.js +0 -81
  439. package/lib/module/shared/helpers/ResponsiveScoreBoard.js.map +0 -1
  440. package/lib/module/shared/helpers/index.js.map +0 -1
  441. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +0 -1
  442. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +0 -1
  443. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +0 -1
  444. package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +0 -1
  445. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +0 -1
  446. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +0 -1
  447. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +0 -1
  448. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts +0 -42
  449. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts.map +0 -1
  450. package/lib/typescript/src/shared/helpers/index.d.ts.map +0 -1
  451. /package/lib/module/{shared/helpers → helpers}/AnimationFrame.js +0 -0
  452. /package/lib/module/{shared/helpers → helpers}/AnimationTracker.js +0 -0
  453. /package/lib/module/{shared/helpers → helpers}/ErrorHandler.js +0 -0
  454. /package/lib/module/{shared/helpers → helpers}/GameControlButton.js +0 -0
  455. /package/lib/typescript/src/{shared/helpers → helpers}/AnimationFrame.d.ts +0 -0
  456. /package/lib/typescript/src/{shared/helpers → helpers}/AnimationTracker.d.ts +0 -0
  457. /package/lib/typescript/src/{shared/helpers → helpers}/ErrorHandler.d.ts +0 -0
  458. /package/lib/typescript/src/{shared/helpers → helpers}/GameControlButton.d.ts +0 -0
  459. /package/lib/typescript/src/{shared/helpers → helpers}/ParticleBlast.d.ts +0 -0
@@ -4,78 +4,79 @@ import React from 'react';
4
4
  import { View, Text, StyleSheet } from 'react-native';
5
5
  import { GAME_CONFIG } from "../FruitNinjaService.js";
6
6
  import { useFruitNinjaStore } from "../FruitNinjaStore.js";
7
- import { RESPONSIVE_SCOREBOARD_CONTAINER, RESPONSIVE_SCOREBOARD_FONTS } from "../../../shared/helpers/index.js";
7
+ import { ScoreBoardContainer } from "../../../helpers/index.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- export const ScoreBoard = /*#__PURE__*/React.memo(() => {
9
+ export const ScoreBoard = /*#__PURE__*/React.memo(({
10
+ offset = 0
11
+ }) => {
10
12
  const score = useFruitNinjaStore(state => state.score);
11
13
  const timeLeft = useFruitNinjaStore(state => state.timeLeft);
12
14
  const lives = useFruitNinjaStore(state => state.lives);
13
- return /*#__PURE__*/_jsxs(View, {
14
- style: styles.scoreBoard,
15
- children: [/*#__PURE__*/_jsxs(View, {
16
- style: styles.scoreSection,
17
- children: [/*#__PURE__*/_jsx(Text, {
18
- style: styles.scoreLabel,
19
- children: "Score"
20
- }), /*#__PURE__*/_jsx(Text, {
21
- style: styles.scoreValue,
22
- children: score
15
+ return /*#__PURE__*/_jsx(ScoreBoardContainer, {
16
+ offset: offset,
17
+ backgroundColor: "rgba(34, 139, 34, 0.3)",
18
+ borderColor: "rgba(255, 255, 255, 0.4)",
19
+ children: /*#__PURE__*/_jsxs(View, {
20
+ style: styles.scoreBoard,
21
+ children: [/*#__PURE__*/_jsxs(View, {
22
+ style: styles.scoreSection,
23
+ children: [/*#__PURE__*/_jsx(Text, {
24
+ style: styles.scoreLabel,
25
+ children: "Score"
26
+ }), /*#__PURE__*/_jsx(Text, {
27
+ style: styles.scoreValue,
28
+ children: score
29
+ })]
30
+ }), /*#__PURE__*/_jsxs(View, {
31
+ style: styles.scoreSection,
32
+ children: [/*#__PURE__*/_jsx(Text, {
33
+ style: styles.scoreLabel,
34
+ children: "Time"
35
+ }), /*#__PURE__*/_jsx(Text, {
36
+ style: styles.timeValue,
37
+ children: timeLeft
38
+ })]
39
+ }), /*#__PURE__*/_jsxs(View, {
40
+ style: styles.scoreSection,
41
+ children: [/*#__PURE__*/_jsx(Text, {
42
+ style: styles.scoreLabel,
43
+ children: "Lives"
44
+ }), /*#__PURE__*/_jsx(View, {
45
+ style: styles.livesRow,
46
+ children: Array.from({
47
+ length: GAME_CONFIG.MAX_LIVES
48
+ }).map((_, index) => /*#__PURE__*/_jsx(Text, {
49
+ style: styles.heartIcon,
50
+ children: index < lives ? '❤️' : '🖤'
51
+ }, index))
52
+ })]
23
53
  })]
24
- }), /*#__PURE__*/_jsxs(View, {
25
- style: styles.scoreSection,
26
- children: [/*#__PURE__*/_jsx(Text, {
27
- style: styles.scoreLabel,
28
- children: "Time"
29
- }), /*#__PURE__*/_jsx(Text, {
30
- style: styles.timeValue,
31
- children: timeLeft
32
- })]
33
- }), /*#__PURE__*/_jsxs(View, {
34
- style: styles.scoreSection,
35
- children: [/*#__PURE__*/_jsx(Text, {
36
- style: styles.scoreLabel,
37
- children: "Lives"
38
- }), /*#__PURE__*/_jsx(View, {
39
- style: styles.livesRow,
40
- children: Array.from({
41
- length: GAME_CONFIG.MAX_LIVES
42
- }).map((_, index) => /*#__PURE__*/_jsx(Text, {
43
- style: styles.heartIcon,
44
- children: index < lives ? '❤️' : '🖤'
45
- }, index))
46
- })]
47
- })]
54
+ })
48
55
  });
49
56
  });
50
57
  const styles = StyleSheet.create({
51
58
  scoreBoard: {
52
- ...RESPONSIVE_SCOREBOARD_CONTAINER,
53
59
  flexDirection: 'row',
54
60
  justifyContent: 'space-between',
55
- alignItems: 'center',
56
- backgroundColor: 'rgba(34, 139, 34, 0.3)',
57
- // More opaque forest green to stand out on garden background
58
- marginBottom: 20,
59
- borderWidth: 2,
60
- borderColor: 'rgba(255, 255, 255, 0.4)' // Slightly more visible white border
61
+ alignItems: 'center'
61
62
  },
62
63
  scoreSection: {
63
64
  alignItems: 'center',
64
65
  flex: 1
65
66
  },
66
67
  scoreLabel: {
67
- fontSize: RESPONSIVE_SCOREBOARD_FONTS.labelSize,
68
+ fontSize: 18,
68
69
  fontWeight: 'bold',
69
70
  color: '#ffffff',
70
71
  marginBottom: 4
71
72
  },
72
73
  scoreValue: {
73
- fontSize: RESPONSIVE_SCOREBOARD_FONTS.valueSize,
74
+ fontSize: 30,
74
75
  fontWeight: 'bold',
75
76
  color: '#92400e' // Brown color (matching WhackIt)
76
77
  },
77
78
  timeValue: {
78
- fontSize: RESPONSIVE_SCOREBOARD_FONTS.timeSize,
79
+ fontSize: 30,
79
80
  fontWeight: 'bold',
80
81
  color: '#92400e' // Brown color (matching WhackIt)
81
82
  },
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","StyleSheet","GAME_CONFIG","useFruitNinjaStore","RESPONSIVE_SCOREBOARD_CONTAINER","RESPONSIVE_SCOREBOARD_FONTS","jsx","_jsx","jsxs","_jsxs","ScoreBoard","memo","score","state","timeLeft","lives","style","styles","scoreBoard","children","scoreSection","scoreLabel","scoreValue","timeValue","livesRow","Array","from","length","MAX_LIVES","map","_","index","heartIcon","create","flexDirection","justifyContent","alignItems","backgroundColor","marginBottom","borderWidth","borderColor","flex","fontSize","labelSize","fontWeight","color","valueSize","timeSize","marginHorizontal"],"sourceRoot":"../../../../../src","sources":["games/fruit-ninja/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,yBAAsB;AAClD,SAASC,kBAAkB,QAAQ,uBAAoB;AACvD,SAASC,+BAA+B,EAAEC,2BAA2B,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvG,OAAO,MAAMC,UAAoB,gBAAGZ,KAAK,CAACa,IAAI,CAAC,MAAM;EACnD,MAAMC,KAAK,GAAGT,kBAAkB,CAACU,KAAK,IAAIA,KAAK,CAACD,KAAK,CAAC;EACtD,MAAME,QAAQ,GAAGX,kBAAkB,CAACU,KAAK,IAAIA,KAAK,CAACC,QAAQ,CAAC;EAC5D,MAAMC,KAAK,GAAGZ,kBAAkB,CAACU,KAAK,IAAIA,KAAK,CAACE,KAAK,CAAC;EACtD,oBACEN,KAAA,CAACV,IAAI;IAACiB,KAAK,EAAEC,MAAM,CAACC,UAAW;IAAAC,QAAA,gBAC7BV,KAAA,CAACV,IAAI;MAACiB,KAAK,EAAEC,MAA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C/Bf,UAAU,EAAE;IACV,GAAGd,+BAA+B;IAClC8B,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,wBAAwB;IAAE;IAC3CC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,0BAA0B,CAAE;EAC3C,CAAC;EACDpB,YAAY,EAAE;IACZgB,UAAU,EAAE,QAAQ;IACpBK,IAAI,EAAE;EACR,CAAC;EACDpB,UAAU,EAAE;IACVqB,QAAQ,EAAErC,2BAA2B,CAACsC,SAAS;IAC/CC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS;IAChBP,YAAY,EAAE;EAChB,CAAC;EACDhB,UAAU,EAAE;IACVoB,QAAQ,EAAErC,2BAA2B,CAACyC,SAAS;IAC/CF,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAC;EACnB,CAAC;EACDtB,SAAS,EAAE;IACTmB,QAAQ,EAAErC,2BAA2B,CAAC0C,QAAQ;IAC9CH,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAC;EACnB,CAAC;EACDrB,QAAQ,EAAE;IACRU,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDH,SAAS,EAAE;IACTU,QAAQ,EAAE,EAAE;IACZM,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","View","Text","StyleSheet","GAME_CONFIG","useFruitNinjaStore","ScoreBoardContainer","jsx","_jsx","jsxs","_jsxs","ScoreBoard","memo","offset","score","state","timeLeft","lives","backgroundColor","borderColor","children","style","styles","scoreBoard","scoreSection","scoreLabel","scoreValue","timeValue","livesRow","Array","from","length","MAX_LIVES","map","_","index","heartIcon","create","flexDirection","justifyContent","alignItems","flex","fontSize","fontWeight","color","marginBottom","marginHorizontal"],"sourceRoot":"../../../../../src","sources":["games/fruit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Q,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAC;EACnB,CAAC;EACDjB,SAAS,EAAE;IACTe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAC;EACnB,CAAC;EACDhB,QAAQ,EAAE;IACRU,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDH,SAAS,EAAE;IACTM,QAAQ,EAAE,EAAE;IACZI,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View, StyleSheet } from 'react-native';
5
+ import { GameControlButton, GameOverModal, GameSettingsModal } from "../../helpers/index.js";
6
+ import { GAME_IDS, DEFAULT_GAME_SETTINGS } from "../../services/UtilsService.js";
7
+ import { GameBackground, GameGrid, ScoreBoard } from "./components/index.js";
8
+ import { Game2048Service } from "./Game2048Service.js";
9
+ import { playHaptic, HapticType } from "../../services/HapticsService.js";
10
+ import { useGame2048Store, useTimeElapsed, useIsPlaying, useIsGameOver, useIsWon } from "./Game2048Store.js";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ export const Game2048 = /*#__PURE__*/React.memo(({
13
+ settings,
14
+ onSettingsChange
15
+ }) => {
16
+ // Zustand store selectors for optimal re-renders
17
+ const timeElapsed = useTimeElapsed();
18
+ const isPlaying = useIsPlaying();
19
+ const isGameOver = useIsGameOver();
20
+ const isWon = useIsWon();
21
+
22
+ // Store actions
23
+ const {
24
+ startGame,
25
+ resetGame,
26
+ initializeGame,
27
+ updateSettings,
28
+ incrementTime
29
+ } = useGame2048Store();
30
+
31
+ // Memoize settings for better performance
32
+ const gameSettings = React.useMemo(() => ({
33
+ difficulty: settings?.difficulty || 'easy',
34
+ enableSounds: settings?.enableSounds ?? true,
35
+ enableHaptics: settings?.enableHaptics ?? true
36
+ }), [settings?.difficulty, settings?.enableSounds, settings?.enableHaptics]);
37
+
38
+ // Memoized game initialization
39
+ const initGame = React.useCallback(() => {
40
+ initializeGame(gameSettings.difficulty);
41
+ }, [initializeGame, gameSettings.difficulty]);
42
+
43
+ // Update settings when they change
44
+ React.useEffect(() => {
45
+ updateSettings(gameSettings.enableSounds, gameSettings.enableHaptics);
46
+ }, [updateSettings, gameSettings.enableSounds, gameSettings.enableHaptics]);
47
+
48
+ // Initialize on mount and when difficulty changes
49
+ React.useEffect(() => {
50
+ initGame();
51
+ }, [initGame]);
52
+
53
+ // Timer effect - increment time every second when playing
54
+ React.useEffect(() => {
55
+ if (isPlaying && !isGameOver && !isWon) {
56
+ const timer = setInterval(() => {
57
+ incrementTime();
58
+ }, 1000);
59
+ return () => clearInterval(timer);
60
+ }
61
+ return undefined;
62
+ }, [isPlaying, isGameOver, isWon, incrementTime]);
63
+
64
+ // Cleanup on unmount
65
+ React.useEffect(() => {
66
+ const gameService = new Game2048Service();
67
+ return () => {
68
+ gameService.cleanup();
69
+ };
70
+ }, []);
71
+
72
+ // Get offset from settings
73
+ const offset = settings?.offset ?? 0;
74
+
75
+ // Memoized dynamic styles based on offset
76
+ const dynamicStyles = React.useMemo(() => ({
77
+ gameArea: {
78
+ ...styles.gameArea,
79
+ marginTop: offset // Add margin to shift grid down while maintaining centering
80
+ }
81
+ }), [offset]);
82
+ return /*#__PURE__*/_jsxs(GameBackground, {
83
+ children: [/*#__PURE__*/_jsx(ScoreBoard, {
84
+ offset: offset
85
+ }), /*#__PURE__*/_jsx(View, {
86
+ style: dynamicStyles.gameArea,
87
+ children: /*#__PURE__*/_jsx(GameGrid, {
88
+ difficulty: gameSettings.difficulty
89
+ })
90
+ }), /*#__PURE__*/_jsx(View, {
91
+ style: styles.controlsContainer,
92
+ children: /*#__PURE__*/_jsx(GameControlButton, {
93
+ isPlaying: isPlaying,
94
+ gameOver: isGameOver,
95
+ onStartGame: React.useCallback(() => {
96
+ if (!isPlaying) {
97
+ playHaptic(HapticType.SELECTION, gameSettings.enableHaptics);
98
+ startGame();
99
+ }
100
+ }, [isPlaying, gameSettings.enableHaptics, startGame]),
101
+ onStopGame: React.useCallback(() => {
102
+ playHaptic(HapticType.SELECTION, gameSettings.enableHaptics);
103
+ resetGame();
104
+ }, [gameSettings.enableHaptics, resetGame]),
105
+ startButtonText: isPlaying ? 'PLAYING' : 'START GAME',
106
+ stopButtonText: "STOP GAME",
107
+ startButtonSubtext: isPlaying ? 'Swipe to play' : 'Tap to start',
108
+ stopButtonSubtext: "Stop game and reset",
109
+ startButtonColor: "#8f7a66",
110
+ stopButtonColor: "#dc2626",
111
+ startButtonBorderColor: "#776e65",
112
+ stopButtonBorderColor: "#f87171"
113
+ })
114
+ }), /*#__PURE__*/_jsx(GameOverModal, {
115
+ isVisible: isGameOver || isWon,
116
+ score: timeElapsed,
117
+ scoreLabel: isWon ? "Time to Win" : "Time Played",
118
+ scoreFormatter: time => {
119
+ const minutes = Math.floor(time / 60);
120
+ const seconds = time % 60;
121
+ return `${minutes}:${seconds.toString().padStart(2, '0')}`;
122
+ },
123
+ onPlayAgain: resetGame,
124
+ buttonText: isWon ? "Continue Playing!" : "Play Again!",
125
+ primaryColor: isWon ? "rgba(237, 194, 46, 0.95)" : "rgba(238, 228, 218, 0.95)",
126
+ borderColor: isWon ? "rgba(237, 194, 46, 0.9)" : "rgba(187, 173, 160, 0.9)",
127
+ buttonColor: "#8f7a66",
128
+ buttonBorderColor: "#776e65"
129
+ }), /*#__PURE__*/_jsx(GameSettingsModal, {
130
+ gameId: GAME_IDS.GAME_2048,
131
+ settings: settings || DEFAULT_GAME_SETTINGS,
132
+ onSettingsChange: onSettingsChange
133
+ })]
134
+ });
135
+ });
136
+ const styles = StyleSheet.create({
137
+ gameArea: {
138
+ flex: 1,
139
+ justifyContent: 'center',
140
+ alignItems: 'center'
141
+ },
142
+ controlsContainer: {
143
+ marginTop: 25,
144
+ zIndex: 10,
145
+ position: 'relative'
146
+ }
147
+ });
148
+ Game2048.displayName = 'Game2048';
149
+ //# sourceMappingURL=Game2048.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","StyleSheet","GameControlButton","GameOverModal","GameSettingsModal","GAME_IDS","DEFAULT_GAME_SETTINGS","GameBackground","GameGrid","ScoreBoard","Game2048Service","playHaptic","HapticType","useGame2048Store","useTimeElapsed","useIsPlaying","useIsGameOver","useIsWon","jsx","_jsx","jsxs","_jsxs","Game2048","memo","settings","onSettingsChange","timeElapsed","isPlaying","isGameOver","isWon","startGame","resetGame","initializeGame","updateSettings","incrementTime","gameSettings","useMemo","difficulty","enableSounds","enableHaptics","initGame","useCallback","useEffect","timer","setInterval","clearInterval","undefined","gameService","cleanup","offset","dynamicStyles","gameArea","styles","marginTop","children","style","controlsContainer","gameOver","onStartGame","SELECTION","onStopGame","startButtonText","stopButtonText","startButtonSubtext","stopButtonSubtext","startButtonColor","stopButtonColor","startButtonBorderColor","stopButtonBorderColor","isVisible","score","scoreLabel","scoreFormatter","time","minutes","Math","floor","seconds","toString","padStart","onPlayAgain","buttonText","primaryColor","borderColor","buttonColor","buttonBorderColor","gameId","GAME_2048","create","flex","justifyContent","alignItems","zIndex","position","displayName"],"sourceRoot":"../../../../src","sources":["games/game-2048/Game2048.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,iBAAiB,EAAEC,aAAa,EAAEC,iBAAiB,QAAQ,wBAAe;AACnF,SAASC,QAAQ,EAAkBC,qBAAqB,QAAQ,gCAA6B;AAC7F,SAASC,cAAc,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,uBAAc;AACnE,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,UAAU,EAAEC,UAAU,QAAQ,kCAA+B;AACtE,SACEC,gBAAgB,EAChBC,cAAc,EACdC,YAAY,EACZC,aAAa,EACbC,QAAQ,QACH,oBAAiB;AAAC,SAAAC,GAAA,IAA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O,IAAIG,OAAO,CAACC,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;MAC5D,CAAE;MACFC,WAAW,EAAEjD,SAAU;MACvBkD,UAAU,EAAEpD,KAAK,GAAG,mBAAmB,GAAG,aAAc;MACxDqD,YAAY,EAAErD,KAAK,GAAG,0BAA0B,GAAG,2BAA4B;MAC/EsD,WAAW,EAAEtD,KAAK,GAAG,yBAAyB,GAAG,0BAA2B;MAC5EuD,WAAW,EAAC,SAAS;MACrBC,iBAAiB,EAAC;IAAS,CAC5B,CAAC,eAGJlE,IAAA,CAACf,iBAAiB;MAChBkF,MAAM,EAAEjF,QAAQ,CAACkF,SAAU;MAC3B/D,QAAQ,EAAEA,QAAQ,IAAIlB,qBAAsB;MAC5CmB,gBAAgB,EAAEA;IAAiB,CACpC,CAAC;EAAA,CACY,CAAC;AAErB,CAAC,CAAC;AAEF,MAAM2B,MAAM,GAAGnD,UAAU,CAACuF,MAAM,CAAC;EAC/BrC,QAAQ,EAAE;IACRsC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDnC,iBAAiB,EAAE;IACjBH,SAAS,EAAE,EAAE;IACbuC,MAAM,EAAE,EAAE;IACVC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEFvE,QAAQ,CAACwE,WAAW,GAAG,UAAU","ignoreList":[]}
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+
3
+ export const GAME_2048_COLORS = {
4
+ // Background colors
5
+ BACKGROUND: '#faf8ef',
6
+ GRID_BACKGROUND: '#bbada0',
7
+ // Tile colors based on value
8
+ TILE_COLORS: {
9
+ 2: {
10
+ background: '#eee4da',
11
+ text: '#776e65'
12
+ },
13
+ 4: {
14
+ background: '#ede0c8',
15
+ text: '#776e65'
16
+ },
17
+ 8: {
18
+ background: '#f2b179',
19
+ text: '#f9f6f2'
20
+ },
21
+ 16: {
22
+ background: '#f59563',
23
+ text: '#f9f6f2'
24
+ },
25
+ 32: {
26
+ background: '#f67c5f',
27
+ text: '#f9f6f2'
28
+ },
29
+ 64: {
30
+ background: '#f65e3b',
31
+ text: '#f9f6f2'
32
+ },
33
+ 128: {
34
+ background: '#edcf72',
35
+ text: '#f9f6f2'
36
+ },
37
+ 256: {
38
+ background: '#edcc61',
39
+ text: '#f9f6f2'
40
+ },
41
+ 512: {
42
+ background: '#edc850',
43
+ text: '#f9f6f2'
44
+ },
45
+ 1024: {
46
+ background: '#edc53f',
47
+ text: '#f9f6f2'
48
+ },
49
+ 2048: {
50
+ background: '#edc22e',
51
+ text: '#f9f6f2'
52
+ },
53
+ 4096: {
54
+ background: '#3c3a32',
55
+ text: '#f9f6f2'
56
+ },
57
+ 8192: {
58
+ background: '#3c3a32',
59
+ text: '#f9f6f2'
60
+ }
61
+ },
62
+ // UI colors
63
+ SCOREBOARD_BACKGROUND: 'rgba(187, 173, 160, 0.9)',
64
+ SCOREBOARD_TEXT: '#776e65',
65
+ BUTTON_BACKGROUND: '#8f7a66',
66
+ BUTTON_TEXT: '#f9f6f2',
67
+ BUTTON_BORDER: '#776e65',
68
+ // Game over overlay
69
+ GAME_OVER_OVERLAY: 'rgba(238, 228, 218, 0.95)',
70
+ GAME_WIN_OVERLAY: 'rgba(237, 194, 46, 0.95)'
71
+ };
72
+ export const GAME_2048_SETTINGS = {
73
+ // Grid configuration
74
+ GRID_SIZE: 4,
75
+ TILE_SIZE: 70,
76
+ TILE_MARGIN: 8,
77
+ TILE_BORDER_RADIUS: 6,
78
+ // Animation settings - minimal for stability
79
+ ANIMATION_DURATION: 50,
80
+ MERGE_ANIMATION_DURATION: 30,
81
+ SPAWN_ANIMATION_DURATION: 50,
82
+ // Game mechanics
83
+ INITIAL_TILES: 2,
84
+ NEW_TILE_PROBABILITY_4: 0.1,
85
+ // 10% chance for 4, 90% for 2
86
+
87
+ // Scoring
88
+ SCORE_MULTIPLIER: {
89
+ easy: 1,
90
+ medium: 1.5,
91
+ hard: 2
92
+ },
93
+ // Difficulty settings
94
+ DIFFICULTY_SETTINGS: {
95
+ easy: {
96
+ gridSize: 4,
97
+ targetTile: 1024
98
+ },
99
+ medium: {
100
+ gridSize: 4,
101
+ targetTile: 2048
102
+ },
103
+ hard: {
104
+ gridSize: 4,
105
+ targetTile: 4096
106
+ }
107
+ }
108
+ };
109
+ export const GAME_2048_GESTURES = {
110
+ // Minimum distance for swipe recognition
111
+ MIN_SWIPE_DISTANCE: 50,
112
+ // Maximum time for swipe gesture
113
+ MAX_SWIPE_TIME: 300,
114
+ // Velocity threshold for swipe
115
+ MIN_VELOCITY: 0.5
116
+ };
117
+
118
+ // Frozen objects for better performance and immutability
119
+ export const GAME_2048_SOUNDS = Object.freeze({
120
+ TILE_MOVE: Object.freeze({
121
+ text: 'swipe',
122
+ pitch: 1.2,
123
+ rate: 1.5
124
+ }),
125
+ TILE_MERGE: Object.freeze({
126
+ text: 'merge',
127
+ pitch: 1.5,
128
+ rate: 1.2
129
+ }),
130
+ GAME_WIN: Object.freeze({
131
+ text: 'victory!',
132
+ pitch: 1.8,
133
+ rate: 0.8
134
+ }),
135
+ GAME_OVER: Object.freeze({
136
+ text: 'game over',
137
+ pitch: 0.8,
138
+ rate: 0.9
139
+ }),
140
+ NEW_TILE: Object.freeze({
141
+ text: 'pop',
142
+ pitch: 1.6,
143
+ rate: 1.8
144
+ }),
145
+ INVALID_MOVE: Object.freeze({
146
+ text: 'blocked',
147
+ pitch: 0.6,
148
+ rate: 1.5
149
+ })
150
+ });
151
+
152
+ // Memoized helper function to get tile color for better performance
153
+ const tileColorCache = new Map();
154
+ export const getTileColor = value => {
155
+ if (tileColorCache.has(value)) {
156
+ return tileColorCache.get(value);
157
+ }
158
+ let result;
159
+ if (value === 0) {
160
+ result = {
161
+ background: 'rgba(238, 228, 218, 0.35)',
162
+ text: '#776e65'
163
+ };
164
+ } else {
165
+ const colors = GAME_2048_COLORS.TILE_COLORS;
166
+ result = colors[value] || colors[8192];
167
+ }
168
+ tileColorCache.set(value, result);
169
+ return result;
170
+ };
171
+
172
+ // Helper function to format large numbers
173
+ export const formatScore = score => {
174
+ if (score >= 1000000) {
175
+ return `${(score / 1000000).toFixed(1)}M`;
176
+ } else if (score >= 1000) {
177
+ return `${(score / 1000).toFixed(1)}K`;
178
+ }
179
+ return score.toString();
180
+ };
181
+
182
+ // Helper function to get grid dimensions based on difficulty
183
+ // 2048-themed vibrant colors for background elements
184
+ export const BACKGROUND_TILE_COLORS = ['#E91E63',
185
+ // Vibrant pink (2)
186
+ '#F44336',
187
+ // Bright red (4)
188
+ '#FF5722',
189
+ // Deep orange (8)
190
+ '#FF9800',
191
+ // Orange (16)
192
+ '#FFC107',
193
+ // Amber/yellow (32)
194
+ '#CDDC39',
195
+ // Lime (64)
196
+ '#4CAF50',
197
+ // Green (128)
198
+ '#009688',
199
+ // Teal (256)
200
+ '#00BCD4',
201
+ // Cyan (512)
202
+ '#2196F3',
203
+ // Blue (1024)
204
+ '#3F51B5',
205
+ // Indigo (2048)
206
+ '#9C27B0' // Purple (4096+)
207
+ ];
208
+
209
+ // Game configuration constants
210
+ export const GAME_CONFIG = {
211
+ GRID_SIZE: 4,
212
+ INITIAL_TILES: 2,
213
+ NEW_TILE_PROBABILITY_4: 0.1,
214
+ // 10% chance for 4, 90% for 2
215
+ TILE_SIZE: 70,
216
+ TILE_MARGIN: 8,
217
+ ANIMATION_CONFIG: {
218
+ TENSION: 200,
219
+ FRICTION: 10
220
+ }
221
+ };
222
+
223
+ // 2048 Game Theme - Matches the warm beige/brown aesthetic
224
+ export const GAME_2048_THEME = {
225
+ backgroundColor: '#faf8ef',
226
+ // Warm beige background matching game
227
+ headerBackgroundColor: 'rgba(187, 173, 160, 0.6)',
228
+ // Warm brown header
229
+ headerTextColor: '#776e65',
230
+ sectionBackgroundColor: 'rgba(238, 228, 218, 0.6)',
231
+ // Light beige sections
232
+ sectionTitleColor: '#776e65',
233
+ buttonSelectedColor: '#8f7a66',
234
+ // Brown button matching game buttons
235
+ buttonUnselectedColor: 'rgba(187, 173, 160, 0.4)',
236
+ buttonSelectedTextColor: '#f9f6f2',
237
+ buttonUnselectedTextColor: '#776e65',
238
+ switchTrackColorFalse: 'rgba(187, 173, 160, 0.5)',
239
+ switchTrackColorTrue: '#8f7a66',
240
+ switchThumbColor: '#f9f6f2',
241
+ infoTextColor: '#776e65'
242
+ };
243
+
244
+ // 2048 Difficulty Descriptions
245
+ export const GAME_2048_DIFFICULTY_DESCRIPTIONS = {
246
+ easy: 'Reach 1024 tile on 4x4 grid',
247
+ medium: 'Reach 2048 tile on 4x4 grid',
248
+ hard: 'Reach 4096 tile on 4x4 grid'
249
+ };
250
+ export const getGridDimensions = difficulty => {
251
+ const settings = GAME_2048_SETTINGS.DIFFICULTY_SETTINGS[difficulty];
252
+ const gridSize = settings.gridSize;
253
+ const tileSize = GAME_2048_SETTINGS.TILE_SIZE;
254
+ const margin = GAME_2048_SETTINGS.TILE_MARGIN;
255
+ const totalSize = tileSize * gridSize + margin * (gridSize + 1);
256
+ return {
257
+ gridSize,
258
+ tileSize,
259
+ margin,
260
+ totalSize
261
+ };
262
+ };
263
+ //# sourceMappingURL=Game2048Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GAME_2048_COLORS","BACKGROUND","GRID_BACKGROUND","TILE_COLORS","background","text","SCOREBOARD_BACKGROUND","SCOREBOARD_TEXT","BUTTON_BACKGROUND","BUTTON_TEXT","BUTTON_BORDER","GAME_OVER_OVERLAY","GAME_WIN_OVERLAY","GAME_2048_SETTINGS","GRID_SIZE","TILE_SIZE","TILE_MARGIN","TILE_BORDER_RADIUS","ANIMATION_DURATION","MERGE_ANIMATION_DURATION","SPAWN_ANIMATION_DURATION","INITIAL_TILES","NEW_TILE_PROBABILITY_4","SCORE_MULTIPLIER","easy","medium","hard","DIFFICULTY_SETTINGS","gridSize","targetTile","GAME_2048_GESTURES","MIN_SWIPE_DISTANCE","MAX_SWIPE_TIME","MIN_VELOCITY","GAME_2048_SOUNDS","Object","freeze","TILE_MOVE","pitch","rate","TILE_MERGE","GAME_WIN","GAME_OVER","NEW_TILE","INVALID_MOVE","tileColorCache","Map","getTileColor","value","has","get","result","colors","set","formatScore","score","toFixed","toString","BACKGROUND_TILE_COLORS","GAME_CONFIG","ANIMATION_CONFIG","TENSION","FRICTION","GAME_2048_THEME","backgroundColor","headerBackgroundColor","headerTextColor","sectionBackgroundColor","sectionTitleColor","buttonSelectedColor","buttonUnselectedColor","buttonSelectedTextColor","buttonUnselectedTextColor","switchTrackColorFalse","switchTrackColorTrue","switchThumbColor","infoTextColor","GAME_2048_DIFFICULTY_DESCRIPTIONS","getGridDimensions","difficulty","settings","tileSize","margin","totalSize"],"sourceRoot":"../../../../src","sources":["games/game-2048/Game2048Constants.ts"],"mappings":";;AAEA,OAAO,MAAMA,gBAAgB,GAAG;EAC9B;EACAC,UAAU,EAAE,SAAS;EACrBC,eAAe,EAAE,SAAS;EAE1B;EACAC,WAAW,EAAE;IACX,CAAC,EAAE;MAAEC,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC7C,CAAC,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC7C,CAAC,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC7C,EAAE,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC9C,EAAE,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC9C,EAAE,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC9C,GAAG,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC/C,GAAG,EAAE;MAAED,UAAU,EAAE,SAAS;MAAEC,IAAI,EAAE;IAAU,CAAC;IAC/C,GAAG,EAAE;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