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
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ import { produce } from 'immer';
4
+ export const DEFAULT_GAME_SETTINGS = {
5
+ isVisible: false,
6
+ difficulty: 'medium',
7
+ enableSounds: true,
8
+ enableHaptics: true,
9
+ offset: 0
10
+ };
11
+ export let GAME_IDS = /*#__PURE__*/function (GAME_IDS) {
12
+ GAME_IDS["WHACK_A_MOLE"] = "whack-a-mole";
13
+ GAME_IDS["POPIT_FIDGET"] = "popit-fidget";
14
+ GAME_IDS["FRUIT_NINJA"] = "fruit-ninja";
15
+ GAME_IDS["BALLOON_BLASTER"] = "balloon-blaster";
16
+ GAME_IDS["SPACE_FIGHTER"] = "space-fighter";
17
+ GAME_IDS["MAZE_RUNNER"] = "maze-runner";
18
+ GAME_IDS["SLIDING_NUMBERS"] = "sliding-numbers";
19
+ GAME_IDS["GAME_2048"] = "game-2048";
20
+ GAME_IDS["DINO_JUMP"] = "dino-jump";
21
+ GAME_IDS["COLORS_SORT"] = "colors-sort";
22
+ GAME_IDS["FRUIT_MERGER"] = "fruit-merger";
23
+ GAME_IDS["FLAPPY_BIRD"] = "flappy-bird";
24
+ GAME_IDS["CANDY_CRUSH"] = "candy-crush";
25
+ GAME_IDS["SNAKE"] = "snake";
26
+ return GAME_IDS;
27
+ }({});
28
+ export const immerMiddleware = config => (set, get, api) => config((partial, ...args) => {
29
+ const nextState = typeof partial === 'function' ? produce(partial) : partial;
30
+ return set(nextState, ...args);
31
+ }, get, api);
32
+ //# sourceMappingURL=UtilsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["produce","DEFAULT_GAME_SETTINGS","isVisible","difficulty","enableSounds","enableHaptics","offset","GAME_IDS","immerMiddleware","config","set","get","api","partial","args","nextState"],"sourceRoot":"../../../src","sources":["services/UtilsService.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAgB/B,OAAO,MAAMC,qBAAmC,GAAG;EACjDC,SAAS,EAAE,KAAK;EAChBC,UAAU,EAAE,QAAQ;EACpBC,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE,IAAI;EACnBC,MAAM,EAAE;AACV,CAAC;AAED,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AA0BpB,OAAO,MAAMC,eAAe,GAAIC,MAAW,IAAK,CAACC,GAAQ,EAAEC,GAAQ,EAAEC,GAAQ,KAC3EH,MAAM,CACJ,CAACI,OAAY,EAAE,GAAGC,IAAW,KAAK;EAChC,MAAMC,SAAS,GAAG,OAAOF,OAAO,KAAK,UAAU,GAAGb,OAAO,CAACa,OAAO,CAAC,GAAGA,OAAO;EAC5E,OAAOH,GAAG,CAACK,SAAS,EAAE,GAAGD,IAAI,CAAC;AAChC,CAAC,EACDH,GAAG,EACHC,GACF,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type GameProps } from '../../services/GamesService';
2
+ import { type GameProps } from '../../services/UtilsService';
3
3
  export declare const BalloonBlaster: React.FC<GameProps>;
4
4
  //# sourceMappingURL=BalloonBlaster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BalloonBlaster.d.ts","sourceRoot":"","sources":["../../../../../src/games/balloon-blaster/BalloonBlaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEvE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqJ7C,CAAC"}
1
+ {"version":3,"file":"BalloonBlaster.d.ts","sourceRoot":"","sources":["../../../../../src/games/balloon-blaster/BalloonBlaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE9F,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsJ7C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface GameBackgroundProps {
3
3
  children: React.ReactNode;
4
+ offset?: number;
4
5
  }
5
6
  export declare const GameBackground: React.FC<GameBackgroundProps>;
6
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiQvD,CAAC"}
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuQvD,CAAC"}
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- export declare const ScoreBoard: React.FC;
2
+ interface ScoreBoardProps {
3
+ offset?: number;
4
+ }
5
+ export declare const ScoreBoard: React.FC<ScoreBoardProps>;
6
+ export {};
3
7
  //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA8B7B,CAAC"}
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoC/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type GameProps } from '../../services/UtilsService';
3
+ export declare const CandyCrush: React.FC<GameProps>;
4
+ //# sourceMappingURL=CandyCrush.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandyCrush.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrush.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAU9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0GzC,CAAC"}
@@ -0,0 +1,104 @@
1
+ export declare const CANDY_CRUSH_GAME_CONFIG: {
2
+ readonly GRID_SIZE: 8;
3
+ readonly CANDY_TYPES: 6;
4
+ readonly MIN_MATCH: 3;
5
+ readonly ANIMATION_DURATION: 300;
6
+ readonly FALL_DURATION: 400;
7
+ readonly SWAP_DURATION: 200;
8
+ readonly POINTS_PER_CANDY: 10;
9
+ readonly COMBO_MULTIPLIER: 1.5;
10
+ readonly SPECIAL_CANDY_THRESHOLD: 4;
11
+ };
12
+ export declare const CANDY_COLORS: readonly ["#FF3B30", "#34C759", "#007AFF", "#FFCC00", "#9D4EDD", "#FF6B9D"];
13
+ export declare const CANDY_TYPES: {
14
+ readonly NORMAL: "normal";
15
+ readonly STRIPED_HORIZONTAL: "striped_h";
16
+ readonly STRIPED_VERTICAL: "striped_v";
17
+ readonly WRAPPED: "wrapped";
18
+ readonly COLOR_BOMB: "color_bomb";
19
+ };
20
+ export declare const CANDY_CRUSH_COLORS: {
21
+ readonly BACKGROUND: "#2C3E50";
22
+ readonly GRID_BACKGROUND: "rgba(255, 149, 0, 0.1)";
23
+ readonly GRID_BORDER: "rgba(255, 149, 0, 0.3)";
24
+ readonly SELECTED: "rgba(255, 149, 0, 0.5)";
25
+ readonly BUTTON_PRIMARY: "#FF9500";
26
+ readonly BUTTON_SECONDARY: "#E68600";
27
+ readonly SCORE_BACKGROUND: "rgba(255, 149, 0, 0.4)";
28
+ readonly SCORE_TEXT: "#FFFFFF";
29
+ readonly TIME_GOOD: "#FF9500";
30
+ readonly TIME_WARNING: "#FF9500";
31
+ readonly TIME_CRITICAL: "#FF9500";
32
+ readonly COMBO_TEXT: "#FF9500";
33
+ readonly MODAL_PRIMARY: "rgba(255, 149, 0, 0.95)";
34
+ readonly MODAL_BORDER: "rgba(230, 134, 0, 0.9)";
35
+ readonly MODAL_BUTTON: "#FF9500";
36
+ readonly MODAL_BUTTON_BORDER: "#E68600";
37
+ };
38
+ export declare const DIFFICULTY_CONFIG: {
39
+ readonly easy: {
40
+ readonly gameDuration: 60;
41
+ readonly candyTypes: 4;
42
+ };
43
+ readonly medium: {
44
+ readonly gameDuration: 180;
45
+ readonly candyTypes: 5;
46
+ };
47
+ readonly hard: {
48
+ readonly gameDuration: 300;
49
+ readonly candyTypes: 6;
50
+ };
51
+ };
52
+ export declare const CANDY_CRUSH_SOUNDS: {
53
+ readonly MATCH: {
54
+ readonly text: "Pop!";
55
+ readonly pitch: 1.2;
56
+ readonly rate: 1.5;
57
+ };
58
+ readonly SWAP: {
59
+ readonly text: "Swap";
60
+ readonly pitch: 1;
61
+ readonly rate: 1.8;
62
+ };
63
+ readonly SPECIAL: {
64
+ readonly text: "Boom!";
65
+ readonly pitch: 1.5;
66
+ readonly rate: 2;
67
+ };
68
+ readonly COMBO: {
69
+ readonly text: "Combo!";
70
+ readonly pitch: 1.8;
71
+ readonly rate: 2.2;
72
+ };
73
+ readonly WIN: {
74
+ readonly text: "Victory!";
75
+ readonly pitch: 1.6;
76
+ readonly rate: 1.8;
77
+ };
78
+ readonly LOSE: {
79
+ readonly text: "Game Over";
80
+ readonly pitch: 0.8;
81
+ readonly rate: 1.2;
82
+ };
83
+ };
84
+ export declare const CANDY_CRUSH_THEME: {
85
+ readonly backgroundColor: "#2C3E50";
86
+ readonly headerBackgroundColor: "#FF9500";
87
+ readonly headerTextColor: "#FFFFFF";
88
+ readonly sectionBackgroundColor: "rgba(255, 149, 0, 0.15)";
89
+ readonly sectionTitleColor: "#FF9500";
90
+ readonly buttonSelectedColor: "#FF9500";
91
+ readonly buttonUnselectedColor: "rgba(255, 149, 0, 0.2)";
92
+ readonly buttonSelectedTextColor: "#FFFFFF";
93
+ readonly buttonUnselectedTextColor: "#FF9500";
94
+ readonly switchTrackColorFalse: "rgba(255, 149, 0, 0.3)";
95
+ readonly switchTrackColorTrue: "#FF9500";
96
+ readonly switchThumbColor: "#FFFFFF";
97
+ readonly infoTextColor: "rgba(255, 255, 255, 0.7)";
98
+ };
99
+ export declare const CANDY_CRUSH_DIFFICULTY_DESCRIPTIONS: {
100
+ readonly easy: "1 minute • 4 candy types";
101
+ readonly medium: "3 minutes • 5 candy types";
102
+ readonly hard: "5 minutes • 6 candy types";
103
+ };
104
+ //# sourceMappingURL=CandyCrushConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandyCrushConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushConstants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB;;;;;;;;;;CAU1B,CAAC;AAEX,eAAO,MAAM,YAAY,6EAOf,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAapB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAcpB,CAAC;AAGX,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Animated } from 'react-native';
2
+ import { CANDY_TYPES } from './CandyCrushConstants';
3
+ export type CandyType = typeof CANDY_TYPES[keyof typeof CANDY_TYPES];
4
+ export interface Candy {
5
+ id: number;
6
+ row: number;
7
+ col: number;
8
+ type: number;
9
+ specialType: CandyType;
10
+ animatedValue: Animated.Value;
11
+ scaleValue: Animated.Value;
12
+ isMatched: boolean;
13
+ isFalling: boolean;
14
+ }
15
+ export type CandyGrid = (Candy | null)[][];
16
+ export interface MatchResult {
17
+ matches: Candy[];
18
+ score: number;
19
+ hasMatches: boolean;
20
+ }
21
+ export interface SwapResult {
22
+ isValid: boolean;
23
+ matches: Candy[];
24
+ }
25
+ export declare class CandyCrushService {
26
+ private nextCandyId;
27
+ createGrid(): CandyGrid;
28
+ initializeGrid(candyTypes: number): CandyGrid;
29
+ private wouldCreateMatch;
30
+ canSwap(candy1: Candy, candy2: Candy): boolean;
31
+ swapCandies(grid: CandyGrid, candy1: Candy, candy2: Candy): void;
32
+ findMatches(grid: CandyGrid): MatchResult;
33
+ removeMatches(grid: CandyGrid, matches: Candy[]): void;
34
+ applyGravity(grid: CandyGrid): boolean;
35
+ fillEmptySpaces(grid: CandyGrid, candyTypes: number): Candy[];
36
+ hasPossibleMoves(grid: CandyGrid): boolean;
37
+ getCandyColor(type: number): string;
38
+ resetIdCounter(): void;
39
+ }
40
+ //# sourceMappingURL=CandyCrushService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandyCrushService.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAyC,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3F,MAAM,MAAM,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAErE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,SAAS,CAAC;IACvB,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC9B,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,KAAK,EAAE,CAAC;CAClB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,WAAW,CAAK;IAGxB,UAAU,IAAI,SAAS;IAOvB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS;IAsC7C,OAAO,CAAC,gBAAgB;IA2DxB,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO;IAS9C,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI;IA+BhE,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW;IAqGzC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI;IAUtD,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IA2CtC,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE;IAyC7D,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IA8C1C,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAKnC,cAAc,IAAI,IAAI;CAGvB"}
@@ -0,0 +1,48 @@
1
+ import type { CandyGrid, Candy } from './CandyCrushService';
2
+ export interface CandyCrushState {
3
+ grid: CandyGrid;
4
+ score: number;
5
+ timeRemaining: number;
6
+ gameDuration: number;
7
+ isPlaying: boolean;
8
+ isGameOver: boolean;
9
+ selectedCandy: Candy | null;
10
+ isProcessing: boolean;
11
+ difficulty: 'easy' | 'medium' | 'hard';
12
+ candyTypes: number;
13
+ enableSounds: boolean;
14
+ enableHaptics: boolean;
15
+ comboCount: number;
16
+ gameTimer: NodeJS.Timeout | null;
17
+ matchedCandyIds: Set<number>;
18
+ fallingCandyIds: Set<number>;
19
+ }
20
+ export interface CandyCrushStore extends CandyCrushState {
21
+ startGame: () => void;
22
+ stopGame: () => void;
23
+ resetGame: () => void;
24
+ initializeGame: (difficulty?: 'easy' | 'medium' | 'hard') => void;
25
+ selectCandy: (candy: Candy) => void;
26
+ processMatches: () => Promise<void>;
27
+ updateSettings: (enableSounds: boolean, enableHaptics: boolean) => void;
28
+ }
29
+ export declare const useCandyCrushStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CandyCrushStore>, "subscribe"> & {
30
+ subscribe: {
31
+ (listener: (selectedState: CandyCrushStore, previousSelectedState: CandyCrushStore) => void): () => void;
32
+ <U>(selector: (state: CandyCrushStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
33
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
34
+ fireImmediately?: boolean;
35
+ } | undefined): () => void;
36
+ };
37
+ }>;
38
+ export declare const useGrid: () => CandyGrid;
39
+ export declare const useScore: () => number;
40
+ export declare const useTimeRemaining: () => number;
41
+ export declare const useGameDuration: () => number;
42
+ export declare const useIsPlaying: () => boolean;
43
+ export declare const useIsGameOver: () => boolean;
44
+ export declare const useSelectedCandy: () => Candy | null;
45
+ export declare const useComboCount: () => number;
46
+ export declare const useMatchedCandyIds: () => Set<number>;
47
+ export declare const useFallingCandyIds: () => Set<number>;
48
+ //# sourceMappingURL=CandyCrushStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandyCrushStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAO5D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACjC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,cAAc,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;CACzE;AAID,eAAO,MAAM,kBAAkB;;;;;;;;EA+S9B,CAAC;AAGF,eAAO,MAAM,OAAO,iBAAgD,CAAC;AACrE,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,gBAAgB,cAAyD,CAAC;AACvF,eAAO,MAAM,eAAe,cAAwD,CAAC;AACrF,eAAO,MAAM,YAAY,eAAqD,CAAC;AAC/E,eAAO,MAAM,aAAa,eAAsD,CAAC;AACjF,eAAO,MAAM,gBAAgB,oBAAyD,CAAC;AACvF,eAAO,MAAM,aAAa,cAAsD,CAAC;AACjF,eAAO,MAAM,kBAAkB,mBAA2D,CAAC;AAC3F,eAAO,MAAM,kBAAkB,mBAA2D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { Candy } from '../CandyCrushService';
3
+ interface CandyItemProps {
4
+ candy: Candy;
5
+ size: number;
6
+ isSelected: boolean;
7
+ isMatched: boolean;
8
+ isFalling: boolean;
9
+ onSwipe: (direction: 'up' | 'down' | 'left' | 'right') => void;
10
+ }
11
+ export declare const CandyItem: React.NamedExoticComponent<CandyItemProps>;
12
+ export {};
13
+ //# sourceMappingURL=CandyItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandyItem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/CandyItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAChE;AAqLD,eAAO,MAAM,SAAS,4CAWpB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const GameBackground: React.FC<{
3
+ children: React.ReactNode;
4
+ }>;
5
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CA+BjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const GameGrid: React.FC;
3
+ //# sourceMappingURL=GameGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/GameGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AA+H1D,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAyL3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface ScoreBoardProps {
3
+ offset?: number;
4
+ }
5
+ export declare const ScoreBoard: React.FC<ScoreBoardProps>;
6
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqC/C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { GameBackground } from './GameBackground';
2
+ export { GameGrid } from './GameGrid';
3
+ export { ScoreBoard } from './ScoreBoard';
4
+ export { CandyItem } from './CandyItem';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { CandyCrush } from './CandyCrush';
2
+ export { useCandyCrushStore } from './CandyCrushStore';
3
+ export * from './CandyCrushConstants';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type GameProps } from '../../services/UtilsService';
3
+ export declare const ColorsSort: React.FC<GameProps>;
4
+ //# sourceMappingURL=ColorsSort.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorsSort.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAK9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAoHzC,CAAC"}
@@ -0,0 +1,54 @@
1
+ export declare const COLORS_SORT_COLORS: {
2
+ BACKGROUND: string;
3
+ PIECE_ORANGE: string;
4
+ PIECE_PINK: string;
5
+ PIECE_GREEN: string;
6
+ PIECE_RED: string;
7
+ PIECE_YELLOW: string;
8
+ PIECE_BLUE: string;
9
+ PIECE_PURPLE: string;
10
+ BASE_SILVER: string;
11
+ BASE_DARK: string;
12
+ SCREW_WHITE: string;
13
+ BUTTON_PRIMARY: string;
14
+ BUTTON_SECONDARY: string;
15
+ SCORE_TEXT: string;
16
+ SCORE_BACKGROUND: string;
17
+ SCORE_BORDER: string;
18
+ SELECTED_GLOW: string;
19
+ };
20
+ export declare const COLORS_SORT_GAME_CONFIG: {
21
+ SCREEN_WIDTH: number;
22
+ SCREEN_HEIGHT: number;
23
+ PIECE_SIZE: number;
24
+ CONTAINER_SIZE: number;
25
+ CONTAINER_SPACING: number;
26
+ PIECE_SPACING: number;
27
+ };
28
+ export declare const COLORS_SORT_CONSTANTS: {
29
+ baseScore: number;
30
+ moveScore: number;
31
+ perfectBonus: number;
32
+ };
33
+ export declare const PIECE_COLORS: string[];
34
+ export declare const COLORS_SORT_THEME: {
35
+ backgroundColor: string;
36
+ headerBackgroundColor: string;
37
+ headerTextColor: string;
38
+ sectionBackgroundColor: string;
39
+ sectionTitleColor: string;
40
+ buttonSelectedColor: string;
41
+ buttonUnselectedColor: string;
42
+ buttonSelectedTextColor: string;
43
+ buttonUnselectedTextColor: string;
44
+ switchTrackColorFalse: string;
45
+ switchTrackColorTrue: string;
46
+ switchThumbColor: string;
47
+ infoTextColor: string;
48
+ };
49
+ export declare const COLORS_SORT_DIFFICULTY_DESCRIPTIONS: {
50
+ easy: string;
51
+ medium: string;
52
+ hard: string;
53
+ };
54
+ //# sourceMappingURL=ColorsSortConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorsSortConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortConstants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAkB9B,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;CAOnC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,YAAY,UAQxB,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC;AAGF,eAAO,MAAM,mCAAmC;;;;CAI/C,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * ColorSort Game Service
3
+ * Handles all utility functions, game logic, and background generation
4
+ */
5
+ export interface FloatingBlock {
6
+ key: string;
7
+ type: 'square' | 'rect' | 'wide' | 'circle';
8
+ x: number;
9
+ y: number;
10
+ size: number;
11
+ color: string;
12
+ }
13
+ export interface DecorativeBlock {
14
+ key: string;
15
+ x: number;
16
+ y: number;
17
+ size: number;
18
+ color: string;
19
+ r: number;
20
+ }
21
+ export interface DecorativeCircle {
22
+ key: string;
23
+ cx: number;
24
+ cy: number;
25
+ r: number;
26
+ color: string;
27
+ }
28
+ export declare const SORT_COLORS: readonly ["#FF6B35", "#FF4444", "#FF8C42", "#FFD700", "#32CD32", "#4169E1", "#FF1493", "#9370DB", "#00BCD4", "#FFA366", "#CDDC39", "#E91E63"];
29
+ /**
30
+ * Format time in seconds to MM:SS format
31
+ */
32
+ export declare const formatTime: (seconds: number) => string;
33
+ /**
34
+ * Get grid layout style based on difficulty
35
+ */
36
+ export declare const getGridLayout: (difficulty: "easy" | "medium" | "hard") => {
37
+ maxWidth: number;
38
+ };
39
+ /**
40
+ * Get piece height based on difficulty
41
+ */
42
+ export declare const getPieceHeight: (difficulty: "easy" | "medium" | "hard", baseSize: number) => number;
43
+ /**
44
+ * Generate floating color blocks for background
45
+ */
46
+ export declare const generateFloatingBlocks: () => FloatingBlock[];
47
+ /**
48
+ * Get decorative blocks positioned around the screen
49
+ */
50
+ export declare const getDecorativeBlocks: () => DecorativeBlock[];
51
+ /**
52
+ * Get decorative circles for variety
53
+ */
54
+ export declare const getDecorativeCircles: () => DecorativeCircle[];
55
+ /**
56
+ * Get gradient colors for background layers
57
+ */
58
+ export declare const getGradientColors: () => {
59
+ main: string[];
60
+ overlay: string[];
61
+ diagonal: string[];
62
+ };
63
+ export declare class ColorSortService {
64
+ cleanup(): void;
65
+ }
66
+ //# sourceMappingURL=ColorsSortService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorsSortService.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf;AAKD,eAAO,MAAM,WAAW,+IAad,CAAC;AAIX;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,MAI5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;CAWnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,MAAM,KAAG,MAWzF,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,aAAa,EAqCtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,eAAe,EASrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,gBAAgB,EAIvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAwB5B,CAAC;AAIH,qBAAa,gBAAgB;IAC3B,OAAO;CAGR"}
@@ -0,0 +1,48 @@
1
+ import type { GameSettings } from '../../services/UtilsService';
2
+ export interface Piece {
3
+ id: string;
4
+ color: string;
5
+ }
6
+ export interface Container {
7
+ id: string;
8
+ pieces: Piece[];
9
+ maxCapacity: number;
10
+ x: number;
11
+ y: number;
12
+ }
13
+ export interface ColorsSortState {
14
+ isPlaying: boolean;
15
+ isGameOver: boolean;
16
+ isPaused: boolean;
17
+ containers: Container[];
18
+ selectedContainerId: string | null;
19
+ time: number;
20
+ timerInterval: NodeJS.Timeout | null;
21
+ startGame: () => void;
22
+ stopGame: () => void;
23
+ resetGame: () => void;
24
+ pauseGame: () => void;
25
+ resumeGame: () => void;
26
+ initializeGame: (difficulty: 'easy' | 'medium' | 'hard') => void;
27
+ selectContainer: (containerId: string, settings: GameSettings) => void;
28
+ canMovePiece: (fromContainerId: string, toContainerId: string) => boolean;
29
+ movePiece: (fromContainerId: string, toContainerId: string, settings: GameSettings) => void;
30
+ checkWinCondition: () => boolean;
31
+ incrementTime: () => void;
32
+ }
33
+ export declare const useColorsSortStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ColorsSortState>, "subscribe"> & {
34
+ subscribe: {
35
+ (listener: (selectedState: ColorsSortState, previousSelectedState: ColorsSortState) => void): () => void;
36
+ <U>(selector: (state: ColorsSortState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
37
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
38
+ fireImmediately?: boolean;
39
+ } | undefined): () => void;
40
+ };
41
+ }>;
42
+ export declare const useIsPlaying: () => boolean;
43
+ export declare const useIsGameOver: () => boolean;
44
+ export declare const useIsPaused: () => boolean;
45
+ export declare const useTime: () => number;
46
+ export declare const useContainers: () => Container[];
47
+ export declare const useSelectedContainerId: () => string | null;
48
+ //# sourceMappingURL=ColorsSortStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorsSortStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAErC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,KAAK,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACvE,YAAY,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1E,SAAS,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5F,iBAAiB,EAAE,MAAM,OAAO,CAAC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAcD,eAAO,MAAM,kBAAkB;;;;;;;;EAsQ9B,CAAC;AAGF,eAAO,MAAM,YAAY,eAAuD,CAAC;AACjF,eAAO,MAAM,aAAa,eAAwD,CAAC;AACnF,eAAO,MAAM,WAAW,eAAsD,CAAC;AAC/E,eAAO,MAAM,OAAO,cAAkD,CAAC;AACvE,eAAO,MAAM,aAAa,mBAAwD,CAAC;AACnF,eAAO,MAAM,sBAAsB,qBAAiE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { Container } from '../ColorsSortStore';
3
+ interface ColorContainerProps {
4
+ container: Container;
5
+ isSelected: boolean;
6
+ onPress: () => void;
7
+ difficulty: 'easy' | 'medium' | 'hard';
8
+ }
9
+ export declare const ColorContainer: React.FC<ColorContainerProps>;
10
+ export {};
11
+ //# sourceMappingURL=ColorContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/ColorContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACxC;AA+BD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoCvD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface GameBackgroundProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const GameBackground: React.FC<GameBackgroundProps>;
6
+ export {};
7
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAmBvC,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+IvD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ScoreBoardProps {
3
+ offset?: number;
4
+ }
5
+ export declare const ScoreBoard: React.FC<ScoreBoardProps>;
6
+ export {};
7
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkB/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './ColorContainer';
2
+ export * from './ScoreBoard';
3
+ export * from './GameBackground';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type GameProps } from '../../services/UtilsService';
3
+ export declare const DinoJump: React.FC<GameProps>;
4
+ //# sourceMappingURL=DinoJump.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DinoJump.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJump.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAI9F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqOvC,CAAC"}