react-native-games 1.1.0 → 1.3.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 (419) hide show
  1. package/README.md +101 -30
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +1 -167
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +1 -182
  5. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -1
  6. package/lib/module/games/balloon-blaster/BalloonBlasterService.js +1 -318
  7. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +1 -183
  8. package/lib/module/games/balloon-blaster/components/BalloonComponent.js +1 -237
  9. package/lib/module/games/balloon-blaster/components/GameArea.js +1 -156
  10. package/lib/module/games/balloon-blaster/components/GameBackground.js +1 -476
  11. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +1 -112
  12. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
  13. package/lib/module/games/balloon-blaster/components/index.js +1 -7
  14. package/lib/module/games/bike-racing/BikeRacing.js +1 -0
  15. package/lib/module/games/bike-racing/BikeRacing.js.map +1 -0
  16. package/lib/module/games/bike-racing/BikeRacingConstants.js +1 -0
  17. package/lib/module/games/bike-racing/BikeRacingConstants.js.map +1 -0
  18. package/lib/module/games/bike-racing/BikeRacingService.js +1 -0
  19. package/lib/module/games/bike-racing/BikeRacingService.js.map +1 -0
  20. package/lib/module/games/bike-racing/BikeRacingStore.js +1 -0
  21. package/lib/module/games/bike-racing/BikeRacingStore.js.map +1 -0
  22. package/lib/module/games/bike-racing/components/BikeComponent.js +1 -0
  23. package/lib/module/games/bike-racing/components/BikeComponent.js.map +1 -0
  24. package/lib/module/games/bike-racing/components/GameBackground.js +1 -0
  25. package/lib/module/games/bike-racing/components/GameBackground.js.map +1 -0
  26. package/lib/module/games/bike-racing/components/ScoreBoard.js +1 -0
  27. package/lib/module/games/bike-racing/components/ScoreBoard.js.map +1 -0
  28. package/lib/module/games/bike-racing/components/index.js +1 -0
  29. package/lib/module/games/bike-racing/components/index.js.map +1 -0
  30. package/lib/module/games/bike-racing/index.js +1 -0
  31. package/lib/module/games/bike-racing/index.js.map +1 -0
  32. package/lib/module/games/block-blast/BlockBlast.js +1 -0
  33. package/lib/module/games/block-blast/BlockBlast.js.map +1 -0
  34. package/lib/module/games/block-blast/BlockBlastConstants.js +1 -0
  35. package/lib/module/games/block-blast/BlockBlastConstants.js.map +1 -0
  36. package/lib/module/games/block-blast/BlockBlastService.js +1 -0
  37. package/lib/module/games/block-blast/BlockBlastService.js.map +1 -0
  38. package/lib/module/games/block-blast/BlockBlastStore.js +1 -0
  39. package/lib/module/games/block-blast/BlockBlastStore.js.map +1 -0
  40. package/lib/module/games/block-blast/components/BlockPieceComponent.js +1 -0
  41. package/lib/module/games/block-blast/components/BlockPieceComponent.js.map +1 -0
  42. package/lib/module/games/block-blast/components/GameArea.js +1 -0
  43. package/lib/module/games/block-blast/components/GameArea.js.map +1 -0
  44. package/lib/module/games/block-blast/components/GameBackground.js +1 -0
  45. package/lib/module/games/block-blast/components/GameBackground.js.map +1 -0
  46. package/lib/module/games/block-blast/components/GridComponent.js +1 -0
  47. package/lib/module/games/block-blast/components/GridComponent.js.map +1 -0
  48. package/lib/module/games/block-blast/components/ScoreBoard.js +1 -0
  49. package/lib/module/games/block-blast/components/ScoreBoard.js.map +1 -0
  50. package/lib/module/games/block-blast/components/index.js +1 -0
  51. package/lib/module/games/block-blast/components/index.js.map +1 -0
  52. package/lib/module/games/block-blast/index.js +1 -0
  53. package/lib/module/games/block-blast/index.js.map +1 -0
  54. package/lib/module/games/bubble-shooter/BubbleShooter.js +1 -0
  55. package/lib/module/games/bubble-shooter/BubbleShooter.js.map +1 -0
  56. package/lib/module/games/bubble-shooter/BubbleShooterConstants.js +1 -0
  57. package/lib/module/games/bubble-shooter/BubbleShooterConstants.js.map +1 -0
  58. package/lib/module/games/bubble-shooter/BubbleShooterService.js +1 -0
  59. package/lib/module/games/bubble-shooter/BubbleShooterService.js.map +1 -0
  60. package/lib/module/games/bubble-shooter/BubbleShooterStore.js +1 -0
  61. package/lib/module/games/bubble-shooter/BubbleShooterStore.js.map +1 -0
  62. package/lib/module/games/bubble-shooter/components/GameArea.js +1 -0
  63. package/lib/module/games/bubble-shooter/components/GameArea.js.map +1 -0
  64. package/lib/module/games/bubble-shooter/components/GameBackground.js +1 -0
  65. package/lib/module/games/bubble-shooter/components/GameBackground.js.map +1 -0
  66. package/lib/module/games/bubble-shooter/components/ScoreBoard.js +1 -0
  67. package/lib/module/games/bubble-shooter/components/ScoreBoard.js.map +1 -0
  68. package/lib/module/games/bubble-shooter/components/index.js +1 -0
  69. package/lib/module/games/bubble-shooter/components/index.js.map +1 -0
  70. package/lib/module/games/bubble-shooter/index.js +1 -0
  71. package/lib/module/games/bubble-shooter/index.js.map +1 -0
  72. package/lib/module/games/candy-crush/CandyCrush.js +1 -131
  73. package/lib/module/games/candy-crush/CandyCrush.js.map +1 -1
  74. package/lib/module/games/candy-crush/CandyCrushConstants.js +1 -125
  75. package/lib/module/games/candy-crush/CandyCrushConstants.js.map +1 -1
  76. package/lib/module/games/candy-crush/CandyCrushService.js +1 -370
  77. package/lib/module/games/candy-crush/CandyCrushStore.js +1 -303
  78. package/lib/module/games/candy-crush/components/CandyItem.js +1 -191
  79. package/lib/module/games/candy-crush/components/GameBackground.js +1 -85
  80. package/lib/module/games/candy-crush/components/GameGrid.js +1 -314
  81. package/lib/module/games/candy-crush/components/ScoreBoard.js +1 -79
  82. package/lib/module/games/candy-crush/components/index.js +1 -7
  83. package/lib/module/games/candy-crush/index.js +1 -6
  84. package/lib/module/games/car-racing/CarRacing.js +1 -0
  85. package/lib/module/games/car-racing/CarRacing.js.map +1 -0
  86. package/lib/module/games/car-racing/CarRacingConstants.js +1 -0
  87. package/lib/module/games/car-racing/CarRacingConstants.js.map +1 -0
  88. package/lib/module/games/car-racing/CarRacingService.js +1 -0
  89. package/lib/module/games/car-racing/CarRacingService.js.map +1 -0
  90. package/lib/module/games/car-racing/CarRacingStore.js +1 -0
  91. package/lib/module/games/car-racing/CarRacingStore.js.map +1 -0
  92. package/lib/module/games/car-racing/components/CarComponent.js +1 -0
  93. package/lib/module/games/car-racing/components/CarComponent.js.map +1 -0
  94. package/lib/module/games/car-racing/components/GameBackground.js +1 -0
  95. package/lib/module/games/car-racing/components/GameBackground.js.map +1 -0
  96. package/lib/module/games/car-racing/components/ScoreBoard.js +1 -0
  97. package/lib/module/games/car-racing/components/ScoreBoard.js.map +1 -0
  98. package/lib/module/games/car-racing/components/index.js +1 -0
  99. package/lib/module/games/car-racing/components/index.js.map +1 -0
  100. package/lib/module/games/colors-sort/ColorsSort.js +1 -143
  101. package/lib/module/games/colors-sort/ColorsSort.js.map +1 -1
  102. package/lib/module/games/colors-sort/ColorsSortConstants.js +1 -72
  103. package/lib/module/games/colors-sort/ColorsSortConstants.js.map +1 -1
  104. package/lib/module/games/colors-sort/ColorsSortService.js +1 -255
  105. package/lib/module/games/colors-sort/ColorsSortStore.js +1 -257
  106. package/lib/module/games/colors-sort/ColorsSortStore.js.map +1 -1
  107. package/lib/module/games/colors-sort/components/ColorContainer.js +1 -140
  108. package/lib/module/games/colors-sort/components/GameBackground.js +1 -135
  109. package/lib/module/games/colors-sort/components/ScoreBoard.js +1 -70
  110. package/lib/module/games/colors-sort/components/index.js +1 -6
  111. package/lib/module/games/dino-jump/DinoJump.js +1 -209
  112. package/lib/module/games/dino-jump/DinoJump.js.map +1 -1
  113. package/lib/module/games/dino-jump/DinoJumpConstants.js +1 -189
  114. package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -1
  115. package/lib/module/games/dino-jump/DinoJumpService.js +1 -270
  116. package/lib/module/games/dino-jump/DinoJumpStore.js +1 -381
  117. package/lib/module/games/dino-jump/components/DinoSprite.js +1 -418
  118. package/lib/module/games/dino-jump/components/DinoSprite.js.map +1 -1
  119. package/lib/module/games/dino-jump/components/GameArea.js +1 -68
  120. package/lib/module/games/dino-jump/components/GameBackground.js +1 -444
  121. package/lib/module/games/dino-jump/components/ObstacleSprite.js +1 -306
  122. package/lib/module/games/dino-jump/components/ScoreBoard.js +1 -105
  123. package/lib/module/games/dino-jump/components/ScoreBoard.js.map +1 -1
  124. package/lib/module/games/dino-jump/components/StarSprite.js +1 -45
  125. package/lib/module/games/dino-jump/components/index.js +1 -9
  126. package/lib/module/games/flappy-bird/FlappyBird.js +1 -126
  127. package/lib/module/games/flappy-bird/FlappyBird.js.map +1 -1
  128. package/lib/module/games/flappy-bird/FlappyBirdConstants.js +1 -90
  129. package/lib/module/games/flappy-bird/FlappyBirdConstants.js.map +1 -1
  130. package/lib/module/games/flappy-bird/FlappyBirdStore.js +1 -300
  131. package/lib/module/games/flappy-bird/components/Bird.js +1 -87
  132. package/lib/module/games/flappy-bird/components/GameArea.js +1 -87
  133. package/lib/module/games/flappy-bird/components/GameBackground.js +1 -79
  134. package/lib/module/games/flappy-bird/components/Pipes.js +1 -172
  135. package/lib/module/games/flappy-bird/components/ScoreBoard.js +1 -73
  136. package/lib/module/games/flappy-bird/components/index.js +1 -8
  137. package/lib/module/games/fruit-merger/FruitMerger.js +1 -120
  138. package/lib/module/games/fruit-merger/FruitMerger.js.map +1 -1
  139. package/lib/module/games/fruit-merger/FruitMergerConstants.js +1 -119
  140. package/lib/module/games/fruit-merger/FruitMergerConstants.js.map +1 -1
  141. package/lib/module/games/fruit-merger/FruitMergerService.js +1 -13
  142. package/lib/module/games/fruit-merger/FruitMergerStore.js +1 -315
  143. package/lib/module/games/fruit-merger/components/FruitItem.js +1 -102
  144. package/lib/module/games/fruit-merger/components/GameArea.js +1 -103
  145. package/lib/module/games/fruit-merger/components/GameBackground.js +1 -498
  146. package/lib/module/games/fruit-merger/components/ScoreBoard.js +1 -58
  147. package/lib/module/games/fruit-merger/components/index.js +1 -7
  148. package/lib/module/games/fruit-ninja/FruitNinja.js +1 -134
  149. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
  150. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +1 -148
  151. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -1
  152. package/lib/module/games/fruit-ninja/FruitNinjaService.js +1 -311
  153. package/lib/module/games/fruit-ninja/FruitNinjaStore.js +1 -191
  154. package/lib/module/games/fruit-ninja/FruitNinjaStore.js.map +1 -1
  155. package/lib/module/games/fruit-ninja/components/FruitComponent.js +1 -99
  156. package/lib/module/games/fruit-ninja/components/GameArea.js +1 -215
  157. package/lib/module/games/fruit-ninja/components/GameBackground.js +1 -1267
  158. package/lib/module/games/fruit-ninja/components/ScoreBoard.js +1 -92
  159. package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
  160. package/lib/module/games/fruit-ninja/components/index.js +1 -7
  161. package/lib/module/games/game-2048/Game2048.js +1 -149
  162. package/lib/module/games/game-2048/Game2048.js.map +1 -1
  163. package/lib/module/games/game-2048/Game2048Constants.js +1 -263
  164. package/lib/module/games/game-2048/Game2048Constants.js.map +1 -1
  165. package/lib/module/games/game-2048/Game2048Service.js +1 -457
  166. package/lib/module/games/game-2048/Game2048Store.js +1 -236
  167. package/lib/module/games/game-2048/components/GameBackground.js +1 -247
  168. package/lib/module/games/game-2048/components/GameGrid.js +1 -139
  169. package/lib/module/games/game-2048/components/GameTile.js +1 -72
  170. package/lib/module/games/game-2048/components/ScoreBoard.js +1 -52
  171. package/lib/module/games/game-2048/components/index.js +1 -7
  172. package/lib/module/games/maze-runner/MazeRunner.js +1 -267
  173. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  174. package/lib/module/games/maze-runner/MazeRunnerConstants.js +1 -100
  175. package/lib/module/games/maze-runner/MazeRunnerConstants.js.map +1 -1
  176. package/lib/module/games/maze-runner/MazeRunnerService.js +1 -586
  177. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +1 -150
  178. package/lib/module/games/maze-runner/components/EnhancedGameArea.js +1 -370
  179. package/lib/module/games/maze-runner/components/GameBackground.js +1 -175
  180. package/lib/module/games/maze-runner/components/ScoreBoard.js +1 -61
  181. package/lib/module/games/maze-runner/components/SkiaPipeComponent.js +1 -209
  182. package/lib/module/games/maze-runner/components/StaticGameBackground.js +1 -169
  183. package/lib/module/games/maze-runner/components/WallComponent.js +1 -91
  184. package/lib/module/games/maze-runner/components/index.js +1 -8
  185. package/lib/module/games/perfect-circle/PerfectCircle.js +1 -0
  186. package/lib/module/games/perfect-circle/PerfectCircle.js.map +1 -0
  187. package/lib/module/games/perfect-circle/PerfectCircleConstants.js +1 -0
  188. package/lib/module/games/perfect-circle/PerfectCircleConstants.js.map +1 -0
  189. package/lib/module/games/perfect-circle/PerfectCircleService.js +1 -0
  190. package/lib/module/games/perfect-circle/PerfectCircleService.js.map +1 -0
  191. package/lib/module/games/perfect-circle/PerfectCircleStore.js +1 -0
  192. package/lib/module/games/perfect-circle/PerfectCircleStore.js.map +1 -0
  193. package/lib/module/games/perfect-circle/components/DrawingCanvas.js +1 -0
  194. package/lib/module/games/perfect-circle/components/DrawingCanvas.js.map +1 -0
  195. package/lib/module/games/perfect-circle/components/GameBackground.js +1 -0
  196. package/lib/module/games/perfect-circle/components/GameBackground.js.map +1 -0
  197. package/lib/module/games/perfect-circle/components/ScoreBoard.js +1 -0
  198. package/lib/module/games/perfect-circle/components/ScoreBoard.js.map +1 -0
  199. package/lib/module/games/perfect-circle/index.js +1 -0
  200. package/lib/module/games/perfect-circle/index.js.map +1 -0
  201. package/lib/module/games/popit-fidget/PopitFidget.js +1 -285
  202. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
  203. package/lib/module/games/popit-fidget/PopitFidgetConstants.js +1 -113
  204. package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -1
  205. package/lib/module/games/popit-fidget/PopitFidgetService.js +1 -132
  206. package/lib/module/games/popit-fidget/PopitFidgetStore.js +1 -125
  207. package/lib/module/games/popit-fidget/components/BubbleComponent.js +1 -198
  208. package/lib/module/games/popit-fidget/components/FidgetGrid.js +1 -165
  209. package/lib/module/games/popit-fidget/components/GameBackground.js +1 -177
  210. package/lib/module/games/popit-fidget/components/ScoreBoard.js +1 -61
  211. package/lib/module/games/popit-fidget/components/index.js +1 -7
  212. package/lib/module/games/sliding-numbers/SlidingNumbers.js +1 -159
  213. package/lib/module/games/sliding-numbers/SlidingNumbers.js.map +1 -1
  214. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js +1 -207
  215. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js.map +1 -1
  216. package/lib/module/games/sliding-numbers/SlidingNumbersService.js +1 -248
  217. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js +1 -274
  218. package/lib/module/games/sliding-numbers/components/GameBackground.js +1 -259
  219. package/lib/module/games/sliding-numbers/components/NumbersGrid.js +1 -174
  220. package/lib/module/games/sliding-numbers/components/NumbersTile.js +1 -116
  221. package/lib/module/games/sliding-numbers/components/ScoreBoard.js +1 -64
  222. package/lib/module/games/sliding-numbers/components/index.js +1 -7
  223. package/lib/module/games/snake/Snake.js +1 -189
  224. package/lib/module/games/snake/Snake.js.map +1 -1
  225. package/lib/module/games/snake/SnakeConstants.js +1 -138
  226. package/lib/module/games/snake/SnakeConstants.js.map +1 -1
  227. package/lib/module/games/snake/SnakeService.js +1 -148
  228. package/lib/module/games/snake/SnakeStore.js +1 -182
  229. package/lib/module/games/snake/SnakeStore.js.map +1 -1
  230. package/lib/module/games/snake/components/GameBackground.js +1 -221
  231. package/lib/module/games/snake/components/GameGrid.js +1 -153
  232. package/lib/module/games/snake/components/ScoreBoard.js +1 -51
  233. package/lib/module/games/snake/components/ScoreBoard.js.map +1 -1
  234. package/lib/module/games/snake/components/index.js +1 -6
  235. package/lib/module/games/snake/index.js +1 -6
  236. package/lib/module/games/space-fighter/SpaceFighter.js +1 -165
  237. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
  238. package/lib/module/games/space-fighter/SpaceFighterConstants.js +1 -108
  239. package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -1
  240. package/lib/module/games/space-fighter/SpaceFighterService.js +1 -326
  241. package/lib/module/games/space-fighter/SpaceFighterStore.js +1 -209
  242. package/lib/module/games/space-fighter/components/AsteroidComponent.js +1 -113
  243. package/lib/module/games/space-fighter/components/GameArea.js +1 -289
  244. package/lib/module/games/space-fighter/components/GameBackground.js +1 -239
  245. package/lib/module/games/space-fighter/components/ScoreBoard.js +1 -136
  246. package/lib/module/games/space-fighter/components/Spacecraft3D.js +1 -202
  247. package/lib/module/games/space-fighter/components/SpacecraftPath.js +1 -52
  248. package/lib/module/games/space-fighter/components/index.js +1 -9
  249. package/lib/module/games/whack-a-mole/WhackAMole.js +1 -270
  250. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
  251. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +1 -115
  252. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js.map +1 -1
  253. package/lib/module/games/whack-a-mole/WhackAMoleService.js +1 -120
  254. package/lib/module/games/whack-a-mole/WhackAMoleStore.js +1 -172
  255. package/lib/module/games/whack-a-mole/components/GameBackground.js +1 -477
  256. package/lib/module/games/whack-a-mole/components/GameGrid.js +1 -97
  257. package/lib/module/games/whack-a-mole/components/GameHole.js +1 -196
  258. package/lib/module/games/whack-a-mole/components/MoleCharacter.js +1 -241
  259. package/lib/module/games/whack-a-mole/components/ScoreBoard.js +1 -67
  260. package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
  261. package/lib/module/games/whack-a-mole/components/index.js +1 -8
  262. package/lib/module/helpers/AnimationFrame.js +1 -120
  263. package/lib/module/helpers/AnimationTracker.js +1 -89
  264. package/lib/module/helpers/ErrorHandler.js +1 -269
  265. package/lib/module/helpers/GameControlButton.js +1 -219
  266. package/lib/module/helpers/GameOverModal.js +1 -144
  267. package/lib/module/helpers/GameOverModal.js.map +1 -1
  268. package/lib/module/helpers/GameSettingsModal.js +1 -287
  269. package/lib/module/helpers/GameSettingsModal.js.map +1 -1
  270. package/lib/module/helpers/ParticleBlast.js +1 -134
  271. package/lib/module/helpers/ScoreBoardContainer.js +1 -34
  272. package/lib/module/helpers/ScoreBoardContainer.js.map +1 -1
  273. package/lib/module/helpers/index.js +1 -12
  274. package/lib/module/index.js +1 -22
  275. package/lib/module/index.js.map +1 -1
  276. package/lib/module/services/GamesConstants.js +1 -178
  277. package/lib/module/services/GamesConstants.js.map +1 -1
  278. package/lib/module/services/GamesService.js +1 -112
  279. package/lib/module/services/GamesService.js.map +1 -1
  280. package/lib/module/services/HapticsService.js +1 -77
  281. package/lib/module/services/ScoringService.js +1 -0
  282. package/lib/module/services/ScoringService.js.map +1 -0
  283. package/lib/module/services/SoundsService.js +1 -302
  284. package/lib/module/services/SoundsService.js.map +1 -1
  285. package/lib/module/services/UtilsService.js +1 -32
  286. package/lib/module/services/UtilsService.js.map +1 -1
  287. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  288. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +1 -1
  289. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
  290. package/lib/typescript/src/games/bike-racing/BikeRacing.d.ts +4 -0
  291. package/lib/typescript/src/games/bike-racing/BikeRacing.d.ts.map +1 -0
  292. package/lib/typescript/src/games/bike-racing/BikeRacingConstants.d.ts +76 -0
  293. package/lib/typescript/src/games/bike-racing/BikeRacingConstants.d.ts.map +1 -0
  294. package/lib/typescript/src/games/bike-racing/BikeRacingService.d.ts +22 -0
  295. package/lib/typescript/src/games/bike-racing/BikeRacingService.d.ts.map +1 -0
  296. package/lib/typescript/src/games/bike-racing/BikeRacingStore.d.ts +72 -0
  297. package/lib/typescript/src/games/bike-racing/BikeRacingStore.d.ts.map +1 -0
  298. package/lib/typescript/src/games/bike-racing/components/BikeComponent.d.ts +12 -0
  299. package/lib/typescript/src/games/bike-racing/components/BikeComponent.d.ts.map +1 -0
  300. package/lib/typescript/src/games/bike-racing/components/GameBackground.d.ts +9 -0
  301. package/lib/typescript/src/games/bike-racing/components/GameBackground.d.ts.map +1 -0
  302. package/lib/typescript/src/games/bike-racing/components/ScoreBoard.d.ts +7 -0
  303. package/lib/typescript/src/games/bike-racing/components/ScoreBoard.d.ts.map +1 -0
  304. package/lib/typescript/src/games/bike-racing/components/index.d.ts +4 -0
  305. package/lib/typescript/src/games/bike-racing/components/index.d.ts.map +1 -0
  306. package/lib/typescript/src/games/bike-racing/index.d.ts +5 -0
  307. package/lib/typescript/src/games/bike-racing/index.d.ts.map +1 -0
  308. package/lib/typescript/src/games/block-blast/BlockBlast.d.ts +4 -0
  309. package/lib/typescript/src/games/block-blast/BlockBlast.d.ts.map +1 -0
  310. package/lib/typescript/src/games/block-blast/BlockBlastConstants.d.ts +82 -0
  311. package/lib/typescript/src/games/block-blast/BlockBlastConstants.d.ts.map +1 -0
  312. package/lib/typescript/src/games/block-blast/BlockBlastService.d.ts +17 -0
  313. package/lib/typescript/src/games/block-blast/BlockBlastService.d.ts.map +1 -0
  314. package/lib/typescript/src/games/block-blast/BlockBlastStore.d.ts +62 -0
  315. package/lib/typescript/src/games/block-blast/BlockBlastStore.d.ts.map +1 -0
  316. package/lib/typescript/src/games/block-blast/components/BlockPieceComponent.d.ts +14 -0
  317. package/lib/typescript/src/games/block-blast/components/BlockPieceComponent.d.ts.map +1 -0
  318. package/lib/typescript/src/games/block-blast/components/GameArea.d.ts +12 -0
  319. package/lib/typescript/src/games/block-blast/components/GameArea.d.ts.map +1 -0
  320. package/lib/typescript/src/games/block-blast/components/GameBackground.d.ts +7 -0
  321. package/lib/typescript/src/games/block-blast/components/GameBackground.d.ts.map +1 -0
  322. package/lib/typescript/src/games/block-blast/components/GridComponent.d.ts +17 -0
  323. package/lib/typescript/src/games/block-blast/components/GridComponent.d.ts.map +1 -0
  324. package/lib/typescript/src/games/block-blast/components/ScoreBoard.d.ts +7 -0
  325. package/lib/typescript/src/games/block-blast/components/ScoreBoard.d.ts.map +1 -0
  326. package/lib/typescript/src/games/block-blast/components/index.d.ts +6 -0
  327. package/lib/typescript/src/games/block-blast/components/index.d.ts.map +1 -0
  328. package/lib/typescript/src/games/block-blast/index.d.ts +5 -0
  329. package/lib/typescript/src/games/block-blast/index.d.ts.map +1 -0
  330. package/lib/typescript/src/games/bubble-shooter/BubbleShooter.d.ts +4 -0
  331. package/lib/typescript/src/games/bubble-shooter/BubbleShooter.d.ts.map +1 -0
  332. package/lib/typescript/src/games/bubble-shooter/BubbleShooterConstants.d.ts +61 -0
  333. package/lib/typescript/src/games/bubble-shooter/BubbleShooterConstants.d.ts.map +1 -0
  334. package/lib/typescript/src/games/bubble-shooter/BubbleShooterService.d.ts +26 -0
  335. package/lib/typescript/src/games/bubble-shooter/BubbleShooterService.d.ts.map +1 -0
  336. package/lib/typescript/src/games/bubble-shooter/BubbleShooterStore.d.ts +62 -0
  337. package/lib/typescript/src/games/bubble-shooter/BubbleShooterStore.d.ts.map +1 -0
  338. package/lib/typescript/src/games/bubble-shooter/components/GameArea.d.ts +9 -0
  339. package/lib/typescript/src/games/bubble-shooter/components/GameArea.d.ts.map +1 -0
  340. package/lib/typescript/src/games/bubble-shooter/components/GameBackground.d.ts +8 -0
  341. package/lib/typescript/src/games/bubble-shooter/components/GameBackground.d.ts.map +1 -0
  342. package/lib/typescript/src/games/bubble-shooter/components/ScoreBoard.d.ts +7 -0
  343. package/lib/typescript/src/games/bubble-shooter/components/ScoreBoard.d.ts.map +1 -0
  344. package/lib/typescript/src/games/bubble-shooter/components/index.d.ts +4 -0
  345. package/lib/typescript/src/games/bubble-shooter/components/index.d.ts.map +1 -0
  346. package/lib/typescript/src/games/bubble-shooter/index.d.ts +3 -0
  347. package/lib/typescript/src/games/bubble-shooter/index.d.ts.map +1 -0
  348. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -1
  349. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +7 -7
  350. package/lib/typescript/src/games/car-racing/CarRacing.d.ts +4 -0
  351. package/lib/typescript/src/games/car-racing/CarRacing.d.ts.map +1 -0
  352. package/lib/typescript/src/games/car-racing/CarRacingConstants.d.ts +76 -0
  353. package/lib/typescript/src/games/car-racing/CarRacingConstants.d.ts.map +1 -0
  354. package/lib/typescript/src/games/car-racing/CarRacingService.d.ts +22 -0
  355. package/lib/typescript/src/games/car-racing/CarRacingService.d.ts.map +1 -0
  356. package/lib/typescript/src/games/car-racing/CarRacingStore.d.ts +72 -0
  357. package/lib/typescript/src/games/car-racing/CarRacingStore.d.ts.map +1 -0
  358. package/lib/typescript/src/games/car-racing/components/CarComponent.d.ts +13 -0
  359. package/lib/typescript/src/games/car-racing/components/CarComponent.d.ts.map +1 -0
  360. package/lib/typescript/src/games/car-racing/components/GameBackground.d.ts +9 -0
  361. package/lib/typescript/src/games/car-racing/components/GameBackground.d.ts.map +1 -0
  362. package/lib/typescript/src/games/car-racing/components/ScoreBoard.d.ts +7 -0
  363. package/lib/typescript/src/games/car-racing/components/ScoreBoard.d.ts.map +1 -0
  364. package/lib/typescript/src/games/car-racing/components/index.d.ts +4 -0
  365. package/lib/typescript/src/games/car-racing/components/index.d.ts.map +1 -0
  366. package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts.map +1 -1
  367. package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts.map +1 -1
  368. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -1
  369. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -1
  370. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -1
  371. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -1
  372. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -1
  373. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -1
  374. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  375. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
  376. package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -1
  377. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  378. package/lib/typescript/src/games/perfect-circle/PerfectCircle.d.ts +4 -0
  379. package/lib/typescript/src/games/perfect-circle/PerfectCircle.d.ts.map +1 -0
  380. package/lib/typescript/src/games/perfect-circle/PerfectCircleConstants.d.ts +81 -0
  381. package/lib/typescript/src/games/perfect-circle/PerfectCircleConstants.d.ts.map +1 -0
  382. package/lib/typescript/src/games/perfect-circle/PerfectCircleService.d.ts +14 -0
  383. package/lib/typescript/src/games/perfect-circle/PerfectCircleService.d.ts.map +1 -0
  384. package/lib/typescript/src/games/perfect-circle/PerfectCircleStore.d.ts +40 -0
  385. package/lib/typescript/src/games/perfect-circle/PerfectCircleStore.d.ts.map +1 -0
  386. package/lib/typescript/src/games/perfect-circle/components/DrawingCanvas.d.ts +9 -0
  387. package/lib/typescript/src/games/perfect-circle/components/DrawingCanvas.d.ts.map +1 -0
  388. package/lib/typescript/src/games/perfect-circle/components/GameBackground.d.ts +8 -0
  389. package/lib/typescript/src/games/perfect-circle/components/GameBackground.d.ts.map +1 -0
  390. package/lib/typescript/src/games/perfect-circle/components/ScoreBoard.d.ts +7 -0
  391. package/lib/typescript/src/games/perfect-circle/components/ScoreBoard.d.ts.map +1 -0
  392. package/lib/typescript/src/games/perfect-circle/index.d.ts +3 -0
  393. package/lib/typescript/src/games/perfect-circle/index.d.ts.map +1 -0
  394. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  395. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -1
  396. package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -1
  397. package/lib/typescript/src/games/snake/SnakeStore.d.ts +4 -0
  398. package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -1
  399. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -1
  400. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  401. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  402. package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts +1 -1
  403. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -1
  404. package/lib/typescript/src/helpers/GameOverModal.d.ts +3 -0
  405. package/lib/typescript/src/helpers/GameOverModal.d.ts.map +1 -1
  406. package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts.map +1 -1
  407. package/lib/typescript/src/index.d.ts +6 -1
  408. package/lib/typescript/src/index.d.ts.map +1 -1
  409. package/lib/typescript/src/services/GamesConstants.d.ts +57 -7
  410. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  411. package/lib/typescript/src/services/GamesService.d.ts +2 -1
  412. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  413. package/lib/typescript/src/services/ScoringService.d.ts +2 -0
  414. package/lib/typescript/src/services/ScoringService.d.ts.map +1 -0
  415. package/lib/typescript/src/services/SoundsService.d.ts +88 -0
  416. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
  417. package/lib/typescript/src/services/UtilsService.d.ts +12 -1
  418. package/lib/typescript/src/services/UtilsService.d.ts.map +1 -1
  419. package/package.json +2 -2
@@ -1,72 +1 @@
1
- "use strict";
2
-
3
- import { Dimensions } from 'react-native';
4
- const {
5
- width,
6
- height
7
- } = Dimensions.get('window');
8
- export const COLORS_SORT_COLORS = {
9
- BACKGROUND: '#FFF5E6',
10
- // Warm cream/peach background
11
- PIECE_ORANGE: '#FF6B35',
12
- PIECE_PINK: '#FF1493',
13
- PIECE_GREEN: '#32CD32',
14
- PIECE_RED: '#FF4444',
15
- PIECE_YELLOW: '#FFD700',
16
- PIECE_BLUE: '#4169E1',
17
- PIECE_PURPLE: '#9370DB',
18
- BASE_SILVER: '#C0C0C0',
19
- BASE_DARK: '#A8A8A8',
20
- SCREW_WHITE: '#F5F5F5',
21
- BUTTON_PRIMARY: '#FF6B35',
22
- BUTTON_SECONDARY: '#FF8C42',
23
- SCORE_TEXT: '#FFFFFF',
24
- SCORE_BACKGROUND: 'rgba(255, 107, 53, 0.4)',
25
- // Orange theme
26
- SCORE_BORDER: 'rgba(255, 107, 53, 0.8)',
27
- // Orange theme
28
- SELECTED_GLOW: '#FFD700'
29
- };
30
-
31
- // Game Configuration
32
- export const COLORS_SORT_GAME_CONFIG = {
33
- SCREEN_WIDTH: width,
34
- SCREEN_HEIGHT: height,
35
- PIECE_SIZE: 50,
36
- CONTAINER_SIZE: 60,
37
- CONTAINER_SPACING: 20,
38
- PIECE_SPACING: 5
39
- };
40
-
41
- // Game Constants
42
- export const COLORS_SORT_CONSTANTS = {
43
- baseScore: 10,
44
- moveScore: 10,
45
- perfectBonus: 100
46
- };
47
- export const PIECE_COLORS = [COLORS_SORT_COLORS.PIECE_RED, COLORS_SORT_COLORS.PIECE_GREEN, COLORS_SORT_COLORS.PIECE_BLUE, COLORS_SORT_COLORS.PIECE_YELLOW, COLORS_SORT_COLORS.PIECE_PURPLE, COLORS_SORT_COLORS.PIECE_ORANGE, COLORS_SORT_COLORS.PIECE_PINK];
48
-
49
- // Game Settings Theme
50
- export const COLORS_SORT_THEME = {
51
- backgroundColor: '#FFF5E6',
52
- headerBackgroundColor: '#FF6B35',
53
- headerTextColor: '#FFFFFF',
54
- sectionBackgroundColor: '#FFE8CC',
55
- sectionTitleColor: '#FF6B35',
56
- buttonSelectedColor: '#FF6B35',
57
- buttonUnselectedColor: '#FFA366',
58
- buttonSelectedTextColor: '#FFFFFF',
59
- buttonUnselectedTextColor: '#FFFFFF',
60
- switchTrackColorFalse: '#D0D0D0',
61
- switchTrackColorTrue: '#FF6B35',
62
- switchThumbColor: '#FFFFFF',
63
- infoTextColor: '#666666'
64
- };
65
-
66
- // Difficulty Descriptions
67
- export const COLORS_SORT_DIFFICULTY_DESCRIPTIONS = {
68
- easy: '4 containers, 3 colors, 3 pieces each - Perfect for beginners',
69
- medium: '5 containers, 4 colors, 3 pieces each - Standard challenge',
70
- hard: '6 containers, 5 colors, 4 pieces each - Expert level!'
71
- };
72
- //# sourceMappingURL=ColorsSortConstants.js.map
1
+ "use strict";import{Dimensions}from 'react-native';const{width,height}= Dimensions.get('window');export const COLORS_SORT_COLORS ={BACKGROUND:'#FFF5E6',PIECE_ORANGE:'#FF6B35',PIECE_PINK:'#FF1493',PIECE_GREEN:'#32CD32',PIECE_RED:'#FF4444',PIECE_YELLOW:'#FFD700',PIECE_BLUE:'#4169E1',PIECE_PURPLE:'#9370DB',BASE_SILVER:'#C0C0C0',BASE_DARK:'#A8A8A8',SCREW_WHITE:'#F5F5F5',BUTTON_PRIMARY:'#FF6B35',BUTTON_SECONDARY:'#FF8C42',SCORE_TEXT:'#FFFFFF',SCORE_BACKGROUND:'rgba(255,107,53,0.4)',SCORE_BORDER:'rgba(255,107,53,0.8)',SELECTED_GLOW:'#FFD700'};export const COLORS_SORT_GAME_CONFIG ={SCREEN_WIDTH:width,SCREEN_HEIGHT:height,PIECE_SIZE:50,CONTAINER_SIZE:60,CONTAINER_SPACING:20,PIECE_SPACING:5};export const COLORS_SORT_CONSTANTS ={baseScore:10,moveScore:10,perfectBonus:100};export const PIECE_COLORS = [COLORS_SORT_COLORS.PIECE_RED,COLORS_SORT_COLORS.PIECE_GREEN,COLORS_SORT_COLORS.PIECE_BLUE,COLORS_SORT_COLORS.PIECE_YELLOW,COLORS_SORT_COLORS.PIECE_PURPLE,COLORS_SORT_COLORS.PIECE_ORANGE,COLORS_SORT_COLORS.PIECE_PINK];export const COLORS_SORT_THEME ={backgroundColor:'rgba(0,0,0,0.7)',headerBackgroundColor:'#FF6B35',headerTextColor:'#ffffff',sectionBackgroundColor:'rgba(255,107,53,0.15)',sectionTitleColor:'#FF6B35',buttonSelectedColor:'#FF6B35',buttonUnselectedColor:'rgba(255,255,255,0.2)',buttonSelectedTextColor:'#ffffff',buttonUnselectedTextColor:'rgba(255,255,255,0.7)',switchTrackColorFalse:'rgba(255,107,53,0.3)',switchTrackColorTrue:'#FF6B35',switchThumbColor:'#ffffff',infoTextColor:'rgba(255,255,255,0.9)'};export const COLORS_SORT_DIFFICULTY_DESCRIPTIONS ={easy:'4 containers,3 colors,3 pieces each - Perfect for beginners',medium:'5 containers,4 colors,3 pieces each - Standard challenge',hard:'6 containers,5 colors,4 pieces each - Expert level!'};
@@ -1 +1 @@
1
- {"version":3,"names":["Dimensions","width","height","get","COLORS_SORT_COLORS","BACKGROUND","PIECE_ORANGE","PIECE_PINK","PIECE_GREEN","PIECE_RED","PIECE_YELLOW","PIECE_BLUE","PIECE_PURPLE","BASE_SILVER","BASE_DARK","SCREW_WHITE","BUTTON_PRIMARY","BUTTON_SECONDARY","SCORE_TEXT","SCORE_BACKGROUND","SCORE_BORDER","SELECTED_GLOW","COLORS_SORT_GAME_CONFIG","SCREEN_WIDTH","SCREEN_HEIGHT","PIECE_SIZE","CONTAINER_SIZE","CONTAINER_SPACING","PIECE_SPACING","COLORS_SORT_CONSTANTS","baseScore","moveScore","perfectBonus","PIECE_COLORS","COLORS_SORT_THEME","backgroundColor","headerBackgroundColor","headerTextColor","sectionBackgroundColor","sectionTitleColor","buttonSelectedColor","buttonUnselectedColor","buttonSelectedTextColor","buttonUnselectedTextColor","switchTrackColorFalse","switchTrackColorTrue","switchThumbColor","infoTextColor","COLORS_SORT_DIFFICULTY_DESCRIPTIONS","easy","medium","hard"],"sourceRoot":"../../../../src","sources":["games/colors-sort/ColorsSortConstants.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGF,UAAU,CAACG,GAAG,CAAC,QAAQ,CAAC;AAElD,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,UAAU,EAAE,SAAS;EAAE;EACvBC,YAAY,EAAE,SAAS;EACvBC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE,SAAS;EACtBC,SAAS,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CC,oBAAoB,EAAE,SAAS;EAC/BC,gBAAgB,EAAE,SAAS;EAC3BC,aAAa,EAAE;AACjB,CAAC;;AAED;AACA,OAAO,MAAMC,mCAAmC,GAAG;EACjDC,IAAI,EAAE,+DAA+D;EACrEC,MAAM,EAAE,4DAA4D;EACpEC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Dimensions","width","height","get","COLORS_SORT_COLORS","BACKGROUND","PIECE_ORANGE","PIECE_PINK","PIECE_GREEN","PIECE_RED","PIECE_YELLOW","PIECE_BLUE","PIECE_PURPLE","BASE_SILVER","BASE_DARK","SCREW_WHITE","BUTTON_PRIMARY","BUTTON_SECONDARY","SCORE_TEXT","SCORE_BACKGROUND","SCORE_BORDER","SELECTED_GLOW","COLORS_SORT_GAME_CONFIG","SCREEN_WIDTH","SCREEN_HEIGHT","PIECE_SIZE","CONTAINER_SIZE","CONTAINER_SPACING","PIECE_SPACING","COLORS_SORT_CONSTANTS","baseScore","moveScore","perfectBonus","PIECE_COLORS","COLORS_SORT_THEME","backgroundColor","headerBackgroundColor","headerTextColor","sectionBackgroundColor","sectionTitleColor","buttonSelectedColor","buttonUnselectedColor","buttonSelectedTextColor","buttonUnselectedTextColor","switchTrackColorFalse","switchTrackColorTrue","switchThumbColor","infoTextColor","COLORS_SORT_DIFFICULTY_DESCRIPTIONS","easy","medium","hard"],"sourceRoot":"../../../../src","sources":["games/colors-sort/ColorsSortConstants.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGF,UAAU,CAACG,GAAG,CAAC,QAAQ,CAAC;AAElD,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,UAAU,EAAE,SAAS;EAAE;EACvBC,YAAY,EAAE,SAAS;EACvBC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE,SAAS;EACtBC,SAAS,EAAE,SAAS;EACpBC,YAAY,EAAE,SAAS;EACvBC,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ChDC,oBAAoB,EAAE,SAAS;EAAE;EACjCC,gBAAgB,EAAE,SAAS;EAC3BC,aAAa,EAAE,0BAA0B,CAAE;AAC7C,CAAC;;AAED;AACA,OAAO,MAAMC,mCAAmC,GAAG;EACjDC,IAAI,EAAE,+DAA+D;EACrEC,MAAM,EAAE,4DAA4D;EACpEC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
@@ -1,255 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * ColorSort Game Service
5
- * Handles all utility functions, game logic, and background generation
6
- */
7
-
8
- import { Dimensions } from 'react-native';
9
- const {
10
- width,
11
- height
12
- } = Dimensions.get('window');
13
-
14
- // ==================== TYPES ====================
15
-
16
- // ==================== CONSTANTS ====================
17
-
18
- // Color sort themed vibrant colors
19
- export const SORT_COLORS = ['#FF6B35',
20
- // Primary orange
21
- '#FF4444',
22
- // Red
23
- '#FF8C42',
24
- // Light orange
25
- '#FFD700',
26
- // Yellow
27
- '#32CD32',
28
- // Green
29
- '#4169E1',
30
- // Blue
31
- '#FF1493',
32
- // Pink
33
- '#9370DB',
34
- // Purple
35
- '#00BCD4',
36
- // Cyan
37
- '#FFA366',
38
- // Peach
39
- '#CDDC39',
40
- // Lime
41
- '#E91E63' // Magenta
42
- ];
43
-
44
- // ==================== GAME UTILITIES ====================
45
-
46
- /**
47
- * Format time in seconds to MM:SS format
48
- */
49
- export const formatTime = seconds => {
50
- const mins = Math.floor(seconds / 60);
51
- const secs = seconds % 60;
52
- return `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
53
- };
54
-
55
- /**
56
- * Get grid layout style based on difficulty
57
- */
58
- export const getGridLayout = difficulty => {
59
- switch (difficulty) {
60
- case 'easy':
61
- return {
62
- maxWidth: 400
63
- };
64
- // 4 containers in 1 row
65
- case 'medium':
66
- return {
67
- maxWidth: 300
68
- };
69
- // 3 in top, 2 in bottom
70
- case 'hard':
71
- return {
72
- maxWidth: 300
73
- };
74
- // 3 in top, 3 in bottom
75
- default:
76
- return {
77
- maxWidth: 400
78
- };
79
- }
80
- };
81
-
82
- /**
83
- * Get piece height based on difficulty
84
- */
85
- export const getPieceHeight = (difficulty, baseSize) => {
86
- switch (difficulty) {
87
- case 'easy':
88
- return baseSize - 8;
89
- // 42px
90
- case 'medium':
91
- return baseSize - 10;
92
- // 40px
93
- case 'hard':
94
- return baseSize - 18;
95
- // 32px
96
- default:
97
- return baseSize - 10;
98
- }
99
- };
100
-
101
- // ==================== BACKGROUND GENERATION ====================
102
-
103
- /**
104
- * Generate floating color blocks for background
105
- */
106
- export const generateFloatingBlocks = () => {
107
- const elements = [];
108
- const blockCount = 25;
109
- for (let i = 0; i < blockCount; i++) {
110
- const baseX = width / blockCount * i;
111
- const baseY = height / blockCount * i;
112
- const x = baseX + Math.sin(i * 0.5) * 50 + Math.random() * 100;
113
- const y = baseY + Math.cos(i * 0.7) * 60 + Math.random() * 120;
114
- const blockSize = 20 + Math.random() * 20;
115
- const colorIndex = i % SORT_COLORS.length;
116
- const opacity = 0.3 + Math.sin(i) * 0.15;
117
- const blockX = Math.max(blockSize / 2, Math.min(width - blockSize, x));
118
- const blockY = Math.max(blockSize / 2, Math.min(height - blockSize, y));
119
- const color = `${SORT_COLORS[colorIndex]}${Math.floor(opacity * 255).toString(16).padStart(2, '0')}`;
120
- let type;
121
- if (i % 4 === 0) type = 'square';else if (i % 4 === 1) type = 'rect';else if (i % 4 === 2) type = 'wide';else type = 'circle';
122
- elements.push({
123
- key: `${type}-${i}`,
124
- type,
125
- x: blockX,
126
- y: blockY,
127
- size: blockSize,
128
- color
129
- });
130
- }
131
- return elements;
132
- };
133
-
134
- /**
135
- * Get decorative blocks positioned around the screen
136
- */
137
- export const getDecorativeBlocks = () => [{
138
- key: 'top-left',
139
- x: width * 0.08,
140
- y: height * 0.12,
141
- size: 50,
142
- r: 8,
143
- color: `${SORT_COLORS[0]}50`
144
- }, {
145
- key: 'bottom-right',
146
- x: width * 0.85,
147
- y: height * 0.82,
148
- size: 45,
149
- r: 7,
150
- color: `${SORT_COLORS[3]}50`
151
- }, {
152
- key: 'top-right',
153
- x: width * 0.82,
154
- y: height * 0.18,
155
- size: 40,
156
- r: 6,
157
- color: `${SORT_COLORS[4]}50`
158
- }, {
159
- key: 'bottom-left',
160
- x: width * 0.12,
161
- y: height * 0.75,
162
- size: 55,
163
- r: 9,
164
- color: `${SORT_COLORS[5]}50`
165
- }, {
166
- key: 'top-center',
167
- x: width * 0.47,
168
- y: height * 0.08,
169
- size: 35,
170
- r: 5,
171
- color: `${SORT_COLORS[7]}50`
172
- }, {
173
- key: 'middle-left',
174
- x: width * 0.15,
175
- y: height * 0.47,
176
- size: 42,
177
- r: 6,
178
- color: `${SORT_COLORS[6]}50`
179
- }, {
180
- key: 'middle-right',
181
- x: width * 0.75,
182
- y: height * 0.57,
183
- size: 38,
184
- r: 6,
185
- color: `${SORT_COLORS[8]}50`
186
- }, {
187
- key: 'bottom-center',
188
- x: width * 0.57,
189
- y: height * 0.87,
190
- size: 32,
191
- r: 5,
192
- color: `${SORT_COLORS[1]}50`
193
- }];
194
-
195
- /**
196
- * Get decorative circles for variety
197
- */
198
- export const getDecorativeCircles = () => [{
199
- key: 'circle-1',
200
- cx: width * 0.25,
201
- cy: height * 0.25,
202
- r: 18,
203
- color: `${SORT_COLORS[10]}45`
204
- }, {
205
- key: 'circle-2',
206
- cx: width * 0.65,
207
- cy: height * 0.35,
208
- r: 22,
209
- color: `${SORT_COLORS[11]}45`
210
- }, {
211
- key: 'circle-3',
212
- cx: width * 0.35,
213
- cy: height * 0.65,
214
- r: 16,
215
- color: `${SORT_COLORS[9]}45`
216
- }];
217
-
218
- /**
219
- * Get gradient colors for background layers
220
- */
221
- export const getGradientColors = () => ({
222
- main: [`${SORT_COLORS[0]}30`,
223
- // Orange
224
- `${SORT_COLORS[3]}25`,
225
- // Yellow
226
- `${SORT_COLORS[4]}30`,
227
- // Green
228
- `${SORT_COLORS[5]}25`,
229
- // Blue
230
- `${SORT_COLORS[7]}30` // Purple
231
- ],
232
- overlay: [`${SORT_COLORS[1]}20`,
233
- // Red
234
- 'transparent', `${SORT_COLORS[6]}20`,
235
- // Pink
236
- 'transparent', `${SORT_COLORS[8]}20`,
237
- // Cyan
238
- 'transparent'],
239
- diagonal: [`${SORT_COLORS[2]}15`,
240
- // Light orange
241
- 'transparent', `${SORT_COLORS[10]}15`,
242
- // Lime
243
- 'transparent', `${SORT_COLORS[9]}15`,
244
- // Peach
245
- 'transparent']
246
- });
247
-
248
- // ==================== SERVICE CLASS ====================
249
-
250
- export class ColorSortService {
251
- cleanup() {
252
- // Cleanup logic if needed
253
- }
254
- }
255
- //# sourceMappingURL=ColorsSortService.js.map
1
+ "use strict";import{Dimensions}from 'react-native';const{width,height}= Dimensions.get('window');export const SORT_COLORS = ['#FF6B35','#FF4444','#FF8C42','#FFD700','#32CD32','#4169E1','#FF1493','#9370DB','#00BCD4','#FFA366','#CDDC39','#E91E63' ];export const formatTime = seconds =>{const mins = Math.floor(seconds / 60);const secs = seconds % 60;return `${mins.toString().padStart(2,'0')}:${secs.toString().padStart(2,'0')}`;};export const getGridLayout = difficulty =>{switch(difficulty){case 'easy':return{maxWidth:400};case 'medium':return{maxWidth:300};case 'hard':return{maxWidth:300};default:return{maxWidth:400};}};export const getPieceHeight =(difficulty,baseSize)=>{switch(difficulty){case 'easy':return baseSize - 8;case 'medium':return baseSize - 10;case 'hard':return baseSize - 18;default:return baseSize - 10;}};export const generateFloatingBlocks =()=>{const elements = [];const blockCount = 25;for(let i = 0;i < blockCount;i++){const baseX = width / blockCount * i;const baseY = height / blockCount * i;const x = baseX + Math.sin(i * 0.5)* 50 + Math.random()* 100;const y = baseY + Math.cos(i * 0.7)* 60 + Math.random()* 120;const blockSize = 20 + Math.random()* 20;const colorIndex = i % SORT_COLORS.length;const opacity = 0.3 + Math.sin(i)* 0.15;const blockX = Math.max(blockSize / 2,Math.min(width - blockSize,x));const blockY = Math.max(blockSize / 2,Math.min(height - blockSize,y));const color = `${SORT_COLORS[colorIndex]}${Math.floor(opacity * 255).toString(16).padStart(2,'0')}`;let type;if(i % 4 === 0)type = 'square';else if(i % 4 === 1)type = 'rect';else if(i % 4 === 2)type = 'wide';else type = 'circle';elements.push({key:`${type}-${i}`,type,x:blockX,y:blockY,size:blockSize,color});}return elements;};export const getDecorativeBlocks =()=> [{key:'top-left',x:width * 0.08,y:height * 0.12,size:50,r:8,color:`${SORT_COLORS[0]}50`},{key:'bottom-right',x:width * 0.85,y:height * 0.82,size:45,r:7,color:`${SORT_COLORS[3]}50`},{key:'top-right',x:width * 0.82,y:height * 0.18,size:40,r:6,color:`${SORT_COLORS[4]}50`},{key:'bottom-left',x:width * 0.12,y:height * 0.75,size:55,r:9,color:`${SORT_COLORS[5]}50`},{key:'top-center',x:width * 0.47,y:height * 0.08,size:35,r:5,color:`${SORT_COLORS[7]}50`},{key:'middle-left',x:width * 0.15,y:height * 0.47,size:42,r:6,color:`${SORT_COLORS[6]}50`},{key:'middle-right',x:width * 0.75,y:height * 0.57,size:38,r:6,color:`${SORT_COLORS[8]}50`},{key:'bottom-center',x:width * 0.57,y:height * 0.87,size:32,r:5,color:`${SORT_COLORS[1]}50`}];export const getDecorativeCircles =()=> [{key:'circle-1',cx:width * 0.25,cy:height * 0.25,r:18,color:`${SORT_COLORS[10]}45`},{key:'circle-2',cx:width * 0.65,cy:height * 0.35,r:22,color:`${SORT_COLORS[11]}45`},{key:'circle-3',cx:width * 0.35,cy:height * 0.65,r:16,color:`${SORT_COLORS[9]}45`}];export const getGradientColors =()=>({main:[`${SORT_COLORS[0]}30`,`${SORT_COLORS[3]}25`,`${SORT_COLORS[4]}30`,`${SORT_COLORS[5]}25`,`${SORT_COLORS[7]}30` ],overlay:[`${SORT_COLORS[1]}20`,'transparent',`${SORT_COLORS[6]}20`,'transparent',`${SORT_COLORS[8]}20`,'transparent'],diagonal:[`${SORT_COLORS[2]}15`,'transparent',`${SORT_COLORS[10]}15`,'transparent',`${SORT_COLORS[9]}15`,'transparent']});export class ColorSortService{cleanup(){}}
@@ -1,257 +1 @@
1
- "use strict";
2
-
3
- import { create } from 'zustand';
4
- import { subscribeWithSelector } from 'zustand/middleware';
5
- import { immerMiddleware } from "../../services/UtilsService.js";
6
- import { playSound, GAME_SOUNDS } from "../../services/SoundsService.js";
7
- import { playHaptic, HapticType } from "../../services/HapticsService.js";
8
- import { PIECE_COLORS } from "./ColorsSortConstants.js";
9
- // Helper function to shuffle array
10
- const shuffleArray = array => {
11
- const shuffled = [...array];
12
- for (let i = shuffled.length - 1; i > 0; i--) {
13
- const j = Math.floor(Math.random() * (i + 1));
14
- const temp = shuffled[i];
15
- shuffled[i] = shuffled[j];
16
- shuffled[j] = temp;
17
- }
18
- return shuffled;
19
- };
20
- export const useColorsSortStore = create()(subscribeWithSelector(immerMiddleware((set, get) => ({
21
- isPlaying: false,
22
- isGameOver: false,
23
- isPaused: false,
24
- containers: [],
25
- selectedContainerId: null,
26
- time: 0,
27
- timerInterval: null,
28
- initializeGame: difficulty => {
29
- let numColors;
30
- let piecesPerColor;
31
- let numContainers;
32
- let maxCapacity;
33
- switch (difficulty) {
34
- case 'easy':
35
- numColors = 3;
36
- piecesPerColor = 3;
37
- maxCapacity = 4;
38
- numContainers = 4;
39
- break;
40
- case 'medium':
41
- numColors = 4;
42
- piecesPerColor = 3;
43
- maxCapacity = 4;
44
- numContainers = 5;
45
- break;
46
- case 'hard':
47
- numColors = 5;
48
- piecesPerColor = 4;
49
- maxCapacity = 5;
50
- numContainers = 6;
51
- break;
52
- default:
53
- numColors = 4;
54
- piecesPerColor = 3;
55
- maxCapacity = 4;
56
- numContainers = 5;
57
- }
58
- const selectedColors = PIECE_COLORS.slice(0, numColors);
59
- let allPieces = [];
60
- selectedColors.forEach((color, colorIndex) => {
61
- for (let i = 0; i < piecesPerColor; i++) {
62
- allPieces.push({
63
- id: `piece-${colorIndex}-${i}`,
64
- color
65
- });
66
- }
67
- });
68
- allPieces = shuffleArray(allPieces);
69
- const containers = [];
70
- for (let i = 0; i < numContainers; i++) {
71
- const container = {
72
- id: `container-${i}`,
73
- pieces: i < numColors ? allPieces.splice(0, piecesPerColor) : [],
74
- maxCapacity,
75
- x: 0,
76
- y: 0
77
- };
78
- containers.push(container);
79
- }
80
- set(state => {
81
- state.containers = containers;
82
- state.selectedContainerId = null;
83
- state.time = 0;
84
- state.isPlaying = false;
85
- state.isGameOver = false;
86
- });
87
- },
88
- startGame: () => {
89
- const state = get();
90
- if (state.timerInterval) {
91
- clearInterval(state.timerInterval);
92
- }
93
- const interval = setInterval(() => {
94
- get().incrementTime();
95
- }, 1000);
96
- set(draftState => {
97
- draftState.isPlaying = true;
98
- draftState.isGameOver = false;
99
- draftState.isPaused = false;
100
- draftState.time = 0;
101
- draftState.timerInterval = interval;
102
- });
103
- },
104
- stopGame: () => {
105
- const state = get();
106
- if (state.timerInterval) {
107
- clearInterval(state.timerInterval);
108
- }
109
-
110
- // Reset the game instead of showing game over modal
111
- state.initializeGame(state.difficulty);
112
- },
113
- resetGame: () => {
114
- const state = get();
115
- if (state.timerInterval) {
116
- clearInterval(state.timerInterval);
117
- }
118
- set(draftState => {
119
- draftState.isPlaying = false;
120
- draftState.isGameOver = false;
121
- draftState.isPaused = false;
122
- draftState.selectedContainerId = null;
123
- draftState.time = 0;
124
- draftState.timerInterval = null;
125
- });
126
- },
127
- pauseGame: () => {
128
- const state = get();
129
- if (state.timerInterval) {
130
- clearInterval(state.timerInterval);
131
- }
132
- set(draftState => {
133
- draftState.isPaused = true;
134
- draftState.timerInterval = null;
135
- });
136
- },
137
- resumeGame: () => {
138
- // Resume timer
139
- const interval = setInterval(() => {
140
- get().incrementTime();
141
- }, 1000);
142
- set(draftState => {
143
- draftState.isPaused = false;
144
- draftState.timerInterval = interval;
145
- });
146
- },
147
- selectContainer: (containerId, settings) => {
148
- const state = get();
149
- const container = state.containers.find(c => c.id === containerId);
150
- if (!container) return;
151
-
152
- // If no container is selected yet
153
- if (state.selectedContainerId === null) {
154
- if (container.pieces.length === 0) {
155
- playSound(GAME_SOUNDS.COLORS_SORT.MISS, settings.enableSounds);
156
- playHaptic(HapticType.LIGHT, settings.enableHaptics);
157
- return;
158
- }
159
- // First selection - select this container
160
- set(draftState => {
161
- draftState.selectedContainerId = containerId;
162
- });
163
- playSound(GAME_SOUNDS.COLORS_SORT.MATCH, settings.enableSounds);
164
- playHaptic(HapticType.LIGHT, settings.enableHaptics);
165
- } else if (state.selectedContainerId === containerId) {
166
- set(draftState => {
167
- draftState.selectedContainerId = null;
168
- });
169
- playSound(GAME_SOUNDS.COLORS_SORT.MISS, settings.enableSounds);
170
- playHaptic(HapticType.LIGHT, settings.enableHaptics);
171
- } else {
172
- // Second selection - try to move piece (can be empty container)
173
- get().movePiece(state.selectedContainerId, containerId, settings);
174
- }
175
- },
176
- canMovePiece: (fromContainerId, toContainerId) => {
177
- const state = get();
178
- const fromContainer = state.containers.find(c => c.id === fromContainerId);
179
- const toContainer = state.containers.find(c => c.id === toContainerId);
180
- if (!fromContainer || !toContainer) return false;
181
- if (fromContainer.pieces.length === 0) return false;
182
- if (toContainer.pieces.length >= toContainer.maxCapacity) return false;
183
-
184
- // Can move to any container that has space (no color restriction)
185
- return true;
186
- },
187
- movePiece: (fromContainerId, toContainerId, settings) => {
188
- const canMove = get().canMovePiece(fromContainerId, toContainerId);
189
- if (!canMove) {
190
- // Invalid move
191
- set(state => {
192
- state.selectedContainerId = null;
193
- });
194
- playSound(GAME_SOUNDS.COLORS_SORT.MISS, settings.enableSounds);
195
- playHaptic(HapticType.LIGHT, settings.enableHaptics);
196
- return;
197
- }
198
-
199
- // Valid move - move the piece
200
- set(state => {
201
- const fromContainer = state.containers.find(c => c.id === fromContainerId);
202
- const toContainer = state.containers.find(c => c.id === toContainerId);
203
- if (fromContainer && toContainer && fromContainer.pieces.length > 0) {
204
- const piece = fromContainer.pieces.pop();
205
- if (piece) {
206
- toContainer.pieces.push(piece);
207
- }
208
- }
209
- state.selectedContainerId = null;
210
- });
211
- playSound(GAME_SOUNDS.COLORS_SORT.MATCH, settings.enableSounds);
212
- playHaptic(HapticType.MEDIUM, settings.enableHaptics);
213
-
214
- // Check win condition
215
- if (get().checkWinCondition()) {
216
- playSound(GAME_SOUNDS.COLORS_SORT.COMPLETE, settings.enableSounds);
217
- playHaptic(HapticType.SUCCESS, settings.enableHaptics);
218
- get().stopGame();
219
- }
220
- },
221
- checkWinCondition: () => {
222
- const state = get();
223
-
224
- // Win if all non-empty containers have all pieces of the same color
225
- let sortedContainers = 0;
226
- const colorCounts = new Map();
227
- for (const container of state.containers) {
228
- if (container.pieces.length === 0) continue; // Empty containers are OK
229
-
230
- // Check if all pieces in this container are the same color
231
- const firstColor = container.pieces[0]?.color;
232
- const allSameColor = container.pieces.every(piece => piece.color === firstColor);
233
- if (!allSameColor) return false; // Mixed colors = not solved
234
-
235
- // This container is sorted (all same color)
236
- sortedContainers++;
237
- colorCounts.set(firstColor, (colorCounts.get(firstColor) || 0) + 1);
238
- }
239
-
240
- // Win if each color appears in exactly one container (all colors sorted)
241
- return sortedContainers > 0 && colorCounts.size === sortedContainers;
242
- },
243
- incrementTime: () => {
244
- set(state => {
245
- state.time += 1;
246
- });
247
- }
248
- }))));
249
-
250
- // Selectors
251
- export const useIsPlaying = () => useColorsSortStore(state => state.isPlaying);
252
- export const useIsGameOver = () => useColorsSortStore(state => state.isGameOver);
253
- export const useIsPaused = () => useColorsSortStore(state => state.isPaused);
254
- export const useTime = () => useColorsSortStore(state => state.time);
255
- export const useContainers = () => useColorsSortStore(state => state.containers);
256
- export const useSelectedContainerId = () => useColorsSortStore(state => state.selectedContainerId);
257
- //# sourceMappingURL=ColorsSortStore.js.map
1
+ "use strict";import{create}from 'zustand';import{subscribeWithSelector}from 'zustand/middleware';import{immerMiddleware}from "../../services/UtilsService.js";import{playSound,GAME_SOUNDS}from "../../services/SoundsService.js";import{playHaptic,HapticType}from "../../services/HapticsService.js";import{PIECE_COLORS}from "./ColorsSortConstants.js";const shuffleArray = array =>{const shuffled = [...array];for(let i = shuffled.length - 1;i > 0;i--){const j = Math.floor(Math.random()*(i + 1));const temp = shuffled[i];shuffled[i] = shuffled[j];shuffled[j] = temp;}return shuffled;};export const useColorsSortStore = create()(subscribeWithSelector(immerMiddleware((set,get)=>({isPlaying:false,isGameOver:false,isPaused:false,containers:[],selectedContainerId:null,time:0,timerInterval:null,initializeGame:difficulty =>{let numColors;let piecesPerColor;let numContainers;let maxCapacity;switch(difficulty){case 'easy':numColors = 3;piecesPerColor = 3;maxCapacity = 4;numContainers = 4;break;case 'medium':numColors = 4;piecesPerColor = 3;maxCapacity = 4;numContainers = 5;break;case 'hard':numColors = 5;piecesPerColor = 4;maxCapacity = 5;numContainers = 6;break;default:numColors = 4;piecesPerColor = 3;maxCapacity = 4;numContainers = 5;}const selectedColors = PIECE_COLORS.slice(0,numColors);let allPieces = [];selectedColors.forEach((color,colorIndex)=>{for(let i = 0;i < piecesPerColor;i++){allPieces.push({id:`piece-${colorIndex}-${i}`,color});}});allPieces = shuffleArray(allPieces);const containers = [];for(let i = 0;i < numContainers;i++){const container ={id:`container-${i}`,pieces:i < numColors ? allPieces.splice(0,piecesPerColor):[],maxCapacity,x:0,y:0};containers.push(container);}set(state =>{state.containers = containers;state.selectedContainerId = null;state.time = 0;state.isPlaying = false;state.isGameOver = false;});},startGame:()=>{const state = get();if(state.timerInterval){clearInterval(state.timerInterval);}const interval = setInterval(()=>{get().incrementTime();},1000);set(draftState =>{draftState.isPlaying = true;draftState.isGameOver = false;draftState.isPaused = false;draftState.time = 0;draftState.timerInterval = interval;});},stopGame:()=>{const state = get();if(state.timerInterval){clearInterval(state.timerInterval);}state.initializeGame(state.difficulty);},resetGame:()=>{const state = get();if(state.timerInterval){clearInterval(state.timerInterval);}set(draftState =>{draftState.isPlaying = false;draftState.isGameOver = false;draftState.isPaused = false;draftState.selectedContainerId = null;draftState.time = 0;draftState.timerInterval = null;});},pauseGame:()=>{const state = get();if(state.timerInterval){clearInterval(state.timerInterval);}set(draftState =>{draftState.isPaused = true;draftState.timerInterval = null;});},resumeGame:()=>{const interval = setInterval(()=>{get().incrementTime();},1000);set(draftState =>{draftState.isPaused = false;draftState.timerInterval = interval;});},selectContainer:(containerId,settings)=>{const state = get();const container = state.containers.find(c => c.id === containerId);if(!container)return;if(state.selectedContainerId === null){if(container.pieces.length === 0){playSound(GAME_SOUNDS.COLORS_SORT.MISS,settings.enableSounds);playHaptic(HapticType.LIGHT,settings.enableHaptics);return;}set(draftState =>{draftState.selectedContainerId = containerId;});playSound(GAME_SOUNDS.COLORS_SORT.MATCH,settings.enableSounds);playHaptic(HapticType.LIGHT,settings.enableHaptics);}else if(state.selectedContainerId === containerId){set(draftState =>{draftState.selectedContainerId = null;});playSound(GAME_SOUNDS.COLORS_SORT.MISS,settings.enableSounds);playHaptic(HapticType.LIGHT,settings.enableHaptics);}else{get().movePiece(state.selectedContainerId,containerId,settings);}},canMovePiece:(fromContainerId,toContainerId)=>{const state = get();const fromContainer = state.containers.find(c => c.id === fromContainerId);const toContainer = state.containers.find(c => c.id === toContainerId);if(!fromContainer || !toContainer)return false;if(fromContainer.pieces.length === 0)return false;if(toContainer.pieces.length >= toContainer.maxCapacity)return false;return true;},movePiece:(fromContainerId,toContainerId,settings)=>{const canMove = get().canMovePiece(fromContainerId,toContainerId);if(!canMove){set(state =>{state.selectedContainerId = null;});playSound(GAME_SOUNDS.COLORS_SORT.MISS,settings.enableSounds);playHaptic(HapticType.LIGHT,settings.enableHaptics);return;}set(state =>{const fromContainer = state.containers.find(c => c.id === fromContainerId);const toContainer = state.containers.find(c => c.id === toContainerId);if(fromContainer && toContainer && fromContainer.pieces.length > 0){const piece = fromContainer.pieces.pop();if(piece){toContainer.pieces.push(piece);}}state.selectedContainerId = null;});setTimeout(()=>{const hasWon = get().checkWinCondition();if(hasWon){set(state =>{state.isGameOver = true;state.isPlaying = false;if(state.timerInterval){clearInterval(state.timerInterval);state.timerInterval = null;}});playSound(GAME_SOUNDS.COLORS_SORT.COMPLETE,settings.enableSounds);playHaptic(HapticType.SUCCESS,settings.enableHaptics);}},0);playSound(GAME_SOUNDS.COLORS_SORT.MATCH,settings.enableSounds);playHaptic(HapticType.MEDIUM,settings.enableHaptics);},checkWinCondition:()=>{const state = get();const colorPieces = new Map();for(const container of state.containers){if(container.pieces.length === 0)continue;const targetColor = container.pieces[0]?.color;const allSameColor = container.pieces.every(piece => piece.color === targetColor);if(!allSameColor)return false;const currentCount = colorPieces.get(targetColor)|| 0;colorPieces.set(targetColor,currentCount + container.pieces.length);}for(const container of state.containers){if(container.pieces.length === 0)continue;const targetColor = container.pieces[0]?.color;const totalPiecesOfColor = colorPieces.get(targetColor)|| 0;const isContainerValid = container.pieces.length === container.maxCapacity || container.pieces.length === totalPiecesOfColor;if(!isContainerValid)return false;}return true;},incrementTime:()=>{set(state =>{state.time += 1;});}}))));export const useIsPlaying =()=> useColorsSortStore(state => state.isPlaying);export const useIsGameOver =()=> useColorsSortStore(state => state.isGameOver);export const useIsPaused =()=> useColorsSortStore(state => state.isPaused);export const useTime =()=> useColorsSortStore(state => state.time);export const useContainers =()=> useColorsSortStore(state => state.containers);export const useSelectedContainerId =()=> useColorsSortStore(state => state.selectedContainerId);
@@ -1 +1 @@
1
- {"version":3,"names":["create","subscribeWithSelector","immerMiddleware","playSound","GAME_SOUNDS","playHaptic","HapticType","PIECE_COLORS","shuffleArray","array","shuffled","i","length","j","Math","floor","random","temp","useColorsSortStore","set","get","isPlaying","isGameOver","isPaused","containers","selectedContainerId","time","timerInterval","initializeGame","difficulty","numColors","piecesPerColor","numContainers","maxCapacity","selectedColors","slice","allPieces","forEach","color","colorIndex","push","id","container","pieces","splice","x","y","state","startGame","clearInterval","interval","setInterval","incrementTime","draftState","stopGame","resetGame","pauseGame","resumeGame","selectContainer","containerId","settings","find","c","COLORS_SORT","MISS","enableSounds","LIGHT","enableHaptics","MATCH","movePiece","canMovePiece","fromContainerId","toContainerId","fromContainer","toContainer","canMove","piece","pop","MEDIUM","checkWinCondition","COMPLETE","SUCCESS","sortedContainers","colorCounts","Map","firstColor","allSameColor","every","size","useIsPlaying","useIsGameOver","useIsPaused","useTime","useContainers","useSelectedContainerId"],"sourceRoot":"../../../../src","sources":["games/colors-sort/ColorsSortStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,qBAAqB,QAAQ,oBAAoB;AAC1D,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,SAAS,EAAEC,WAAW,QAAQ,iCAA8B;AACrE,SAASC,UAAU,EAAEC,UAAU,QAAQ,kCAA+B;AACtE,SAASC,YAAY,QAAQ,0BAAuB;AAqCpD;AACA,MAAMC,YAAY,GAAQC,KAAU,IAAU;EAC5C,MAAMC,QAAQ,GAAG,CAAC,GAAGD,KAAK,CAAC;EAC3B,KAAK,IAAIE,CAAC,GAAGD,QAAQ,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC5C,MAAME,CAAC,GAAGC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,IAAIL,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7C,MAAMM,IAAI,GAAGP,QAAQ,CAACC,CAAC,CAAC;IACxBD,QAAQ,CAACC,CAAC,CAAC,GAAGD,QAAQ,CAACG,CAAC,CAAE;IAC1BH,QAAQ,CAACG,CAAC,CAAC,GAAGI,IAAK;EACrB;EACA,OAAOP,QAAQ;AACjB,CAAC;AAED,OAAO,MAAMQ,kBAAkB,GAAGlB,MAAM,CAAkB,CAAC,CACzDC,qBAAqB,CACnBC,eAAe,CAAC,CAACiB,GAAQ,EAAEC,GAAQ,MAAM;EACvCC,SAAS,EAAE,KAAK;EAChBC,UAAU,EAAE,KAAK;EACjBC,QAAQ,EAAE,KAAK;EACfC,UAAU,EAAE,EAAE;EACdC,mBAAmB,EAAE,IAAI;EACzBC,IAAI,EAAE,CAAC;EACPC,aAAa,EAAE,IAAI;EAEnBC,cAAc,EAA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,OAAO,MAAMsE,sBAAsB,GAAGA,CAAA,KAAM5E,kBAAkB,CAAE6B,KAAK,IAAKA,KAAK,CAACtB,mBAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["create","subscribeWithSelector","immerMiddleware","playSound","GAME_SOUNDS","playHaptic","HapticType","PIECE_COLORS","shuffleArray","array","shuffled","i","length","j","Math","floor","random","temp","useColorsSortStore","set","get","isPlaying","isGameOver","isPaused","containers","selectedContainerId","time","timerInterval","initializeGame","difficulty","numColors","piecesPerColor","numContainers","maxCapacity","selectedColors","slice","allPieces","forEach","color","colorIndex","push","id","container","pieces","splice","x","y","state","startGame","clearInterval","interval","setInterval","incrementTime","draftState","stopGame","resetGame","pauseGame","resumeGame","selectContainer","containerId","settings","find","c","COLORS_SORT","MISS","enableSounds","LIGHT","enableHaptics","MATCH","movePiece","canMovePiece","fromContainerId","toContainerId","fromContainer","toContainer","canMove","piece","pop","setTimeout","hasWon","checkWinCondition","COMPLETE","SUCCESS","MEDIUM","colorPieces","Map","targetColor","allSameColor","every","currentCount","totalPiecesOfColor","isContainerValid","useIsPlaying","useIsGameOver","useIsPaused","useTime","useContainers","useSelectedContainerId"],"sourceRoot":"../../../../src","sources":["games/colors-sort/ColorsSortStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,qBAAqB,QAAQ,oBAAoB;AAC1D,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,SAAS,EAAEC,WAAW,QAAQ,iCAA8B;AACrE,SAASC,UAAU,EAAEC,UAAU,QAAQ,kCAA+B;AACtE,SAASC,YAAY,QAAQ,0BAAuB;AAqCpD;AACA,MAAMC,YAAY,GAAQC,KAAU,IAAU;EAC5C,MAAMC,QAAQ,GAAG,CAAC,GAAGD,KAAK,CAAC;EAC3B,KAAK,IAAIE,CAAC,GAAGD,QAAQ,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC5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