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
@@ -0,0 +1,5 @@
1
+ export { BikeRacing } from './BikeRacing';
2
+ export { BikeRacingService } from './BikeRacingService';
3
+ export { useBikeRacingStore } from './BikeRacingStore';
4
+ export * from './BikeRacingConstants';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/games/bike-racing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,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 BlockBlast: React.FC<GameProps>;
4
+ //# sourceMappingURL=BlockBlast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockBlast.d.ts","sourceRoot":"","sources":["../../../../../src/games/block-blast/BlockBlast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAyB,KAAK,SAAS,EAAY,MAAM,6BAA6B,CAAC;AAgB9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAyO1C,CAAC"}
@@ -0,0 +1,82 @@
1
+ import type { GameSettingsTheme } from '../../services/GamesConstants';
2
+ export interface BlockBlastSettings {
3
+ difficulty: 'easy' | 'medium' | 'hard';
4
+ soundEnabled: boolean;
5
+ hapticEnabled: boolean;
6
+ }
7
+ export declare const BLOCK_BLAST_DIFFICULTY_CONFIG: {
8
+ readonly easy: {
9
+ readonly gridSize: 8;
10
+ readonly nextPiecesCount: 3;
11
+ readonly scoreMultiplier: 1;
12
+ readonly gameDuration: 180;
13
+ };
14
+ readonly medium: {
15
+ readonly gridSize: 10;
16
+ readonly nextPiecesCount: 3;
17
+ readonly scoreMultiplier: 1.5;
18
+ readonly gameDuration: 300;
19
+ };
20
+ readonly hard: {
21
+ readonly gridSize: 10;
22
+ readonly nextPiecesCount: 3;
23
+ readonly scoreMultiplier: 2;
24
+ readonly gameDuration: 600;
25
+ };
26
+ };
27
+ export declare const getDifficultySettings: (difficulty: "easy" | "medium" | "hard") => {
28
+ readonly gridSize: 8;
29
+ readonly nextPiecesCount: 3;
30
+ readonly scoreMultiplier: 1;
31
+ readonly gameDuration: 180;
32
+ } | {
33
+ readonly gridSize: 10;
34
+ readonly nextPiecesCount: 3;
35
+ readonly scoreMultiplier: 1.5;
36
+ readonly gameDuration: 300;
37
+ } | {
38
+ readonly gridSize: 10;
39
+ readonly nextPiecesCount: 3;
40
+ readonly scoreMultiplier: 2;
41
+ readonly gameDuration: 600;
42
+ };
43
+ export declare const DEFAULT_BLOCK_BLAST_SETTINGS: BlockBlastSettings;
44
+ export declare const BLOCK_BLAST_GAME_CONFIG: {
45
+ readonly GRID_SIZE: 8;
46
+ readonly CELL_SIZE: 40;
47
+ readonly CELL_GAP: 2;
48
+ readonly NEXT_PIECES_COUNT: 3;
49
+ readonly POINTS_PER_BLOCK: 10;
50
+ readonly POINTS_PER_LINE: 100;
51
+ readonly COMBO_MULTIPLIER: 1.5;
52
+ readonly PREVIEW_PIECE_SCALE: 0.7;
53
+ readonly DRAGGING_PIECE_SCALE: 1;
54
+ };
55
+ export declare const BLOCK_BLAST_COLORS: {
56
+ readonly BACKGROUND: "#2a2d5a";
57
+ readonly GRID_BACKGROUND: "#1a1d3a";
58
+ readonly EMPTY_CELL: "#3a3d6a";
59
+ readonly GRID_LINE: "#4a4d7a";
60
+ readonly BLOCK_CYAN: "#00d4ff";
61
+ readonly BLOCK_BLUE: "#4169ff";
62
+ readonly BLOCK_RED: "#ff4169";
63
+ readonly BLOCK_YELLOW: "#ffd700";
64
+ readonly BLOCK_GREEN: "#00ff88";
65
+ readonly BLOCK_PURPLE: "#b469ff";
66
+ readonly BLOCK_ORANGE: "#ff8800";
67
+ readonly BLOCK_PINK: "#ff69b4";
68
+ readonly SCORE_TEXT: "#ffffff";
69
+ readonly COMBO_TEXT: "#ffd700";
70
+ readonly UI: "#ff69b4";
71
+ readonly HEART: "#ff69b4";
72
+ };
73
+ export declare const BLOCK_SHAPES: readonly [readonly [readonly [1]], readonly [readonly [1, 1]], readonly [readonly [1], readonly [1]], readonly [readonly [1, 1, 1]], readonly [readonly [1], readonly [1], readonly [1]], readonly [readonly [1, 1], readonly [1, 0]], readonly [readonly [1, 1], readonly [0, 1]], readonly [readonly [1, 0], readonly [1, 1]], readonly [readonly [0, 1], readonly [1, 1]], readonly [readonly [1, 1, 1, 1]], readonly [readonly [1], readonly [1], readonly [1], readonly [1]], readonly [readonly [1, 1], readonly [1, 1]], readonly [readonly [1, 1, 0], readonly [0, 1, 1]], readonly [readonly [0, 1, 1], readonly [1, 1, 0]], readonly [readonly [1, 1, 1], readonly [1, 0, 0]], readonly [readonly [1, 1, 1], readonly [0, 0, 1]], readonly [readonly [1, 1, 1], readonly [0, 1, 0]]];
74
+ export declare const getRandomBlockShape: () => readonly [readonly [1]] | readonly [readonly [1, 1]] | readonly [readonly [1], readonly [1]] | readonly [readonly [1, 1, 1]] | readonly [readonly [1], readonly [1], readonly [1]] | readonly [readonly [1, 1], readonly [1, 0]] | readonly [readonly [1, 1], readonly [0, 1]] | readonly [readonly [1, 0], readonly [1, 1]] | readonly [readonly [0, 1], readonly [1, 1]] | readonly [readonly [1, 1, 1, 1]] | readonly [readonly [1], readonly [1], readonly [1], readonly [1]] | readonly [readonly [1, 1], readonly [1, 1]] | readonly [readonly [1, 1, 0], readonly [0, 1, 1]] | readonly [readonly [0, 1, 1], readonly [1, 1, 0]] | readonly [readonly [1, 1, 1], readonly [1, 0, 0]] | readonly [readonly [1, 1, 1], readonly [0, 0, 1]] | readonly [readonly [1, 1, 1], readonly [0, 1, 0]] | undefined;
75
+ export declare const getRandomBlockColor: () => "#00d4ff" | "#ffd700" | "#00ff88" | "#4169ff" | "#ff4169" | "#b469ff" | "#ff8800" | "#ff69b4" | undefined;
76
+ export declare const BLOCK_BLAST_THEME: GameSettingsTheme;
77
+ export declare const BLOCK_BLAST_DIFFICULTY_DESCRIPTIONS: {
78
+ readonly easy: "8x8 grid, relaxed puzzle solving";
79
+ readonly medium: "10x10 grid, balanced challenge, 1.5x score";
80
+ readonly hard: "10x10 grid, expert strategy, 2x score!";
81
+ };
82
+ //# sourceMappingURL=BlockBlastConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockBlastConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/block-blast/BlockBlastConstants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACxB;AAGD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;CAmBhC,CAAC;AAGX,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;;;;;;;;;;CAE3E,CAAC;AAGF,eAAO,MAAM,4BAA4B,EAAE,kBAI1C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;CAU1B,CAAC;AAGX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAqBrB,CAAC;AAGX,eAAO,MAAM,YAAY,gwBAyBf,CAAC;AAGX,eAAO,MAAM,mBAAmB,uxBAG/B,CAAC;AAGF,eAAO,MAAM,mBAAmB,iHAY/B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,iBAc/B,CAAC;AAGF,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare class BlockBlastService {
2
+ private onClearLines?;
3
+ private onPlacePiece?;
4
+ private onGameOver?;
5
+ setCallbacks(onClearLines?: (linesCleared: number) => void, onPlacePiece?: () => void, onGameOver?: () => void): void;
6
+ startGame(gridSize?: number): void;
7
+ stopGame(): void;
8
+ resetGame(): void;
9
+ placePiece(pieceId: string, row: number, col: number): boolean;
10
+ canPlacePiece(pieceId: string, row: number, col: number): boolean;
11
+ getGridPosition(x: number, y: number, gridStartX: number, gridStartY: number, cellSize: number, cellGap: number): {
12
+ row: number;
13
+ col: number;
14
+ } | null;
15
+ cleanup(): void;
16
+ }
17
+ //# sourceMappingURL=BlockBlastService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockBlastService.d.ts","sourceRoot":"","sources":["../../../../../src/games/block-blast/BlockBlastService.ts"],"names":[],"mappings":"AAEA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,YAAY,CAAC,CAAiC;IACtD,OAAO,CAAC,YAAY,CAAC,CAAa;IAClC,OAAO,CAAC,UAAU,CAAC,CAAa;IAGhC,YAAY,CACV,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,EAC7C,YAAY,CAAC,EAAE,MAAM,IAAI,EACzB,UAAU,CAAC,EAAE,MAAM,IAAI,GACtB,IAAI;IAOP,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAKlC,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;IAKjB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IA8B9D,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IA+BjE,eAAe,CACb,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IActC,OAAO,IAAI,IAAI;CAKhB"}
@@ -0,0 +1,62 @@
1
+ export interface BlockPiece {
2
+ id: string;
3
+ shape: number[][];
4
+ color: string;
5
+ }
6
+ export interface GameState {
7
+ score: number;
8
+ isPlaying: boolean;
9
+ gameOver: boolean;
10
+ gameWon: boolean;
11
+ timeRemaining: number;
12
+ gameDuration: number;
13
+ }
14
+ export interface BlockBlastStore extends GameState {
15
+ grid: (string | null)[][];
16
+ gridSize: number;
17
+ nextPieces: BlockPiece[];
18
+ selectedPieceId: string | null;
19
+ dragPosition: {
20
+ x: number;
21
+ y: number;
22
+ } | null;
23
+ previewPosition: {
24
+ row: number;
25
+ col: number;
26
+ } | null;
27
+ canPlace: boolean;
28
+ startGame: (gridSize?: number, gameDuration?: number) => void;
29
+ stopGame: () => void;
30
+ resetGame: () => void;
31
+ updateScore: (points: number) => void;
32
+ selectPiece: (pieceId: string) => void;
33
+ deselectPiece: () => void;
34
+ updateDragPosition: (x: number, y: number) => void;
35
+ updatePreviewPosition: (row: number, col: number, canPlace: boolean) => void;
36
+ clearPreview: () => void;
37
+ placePiece: (pieceId: string, row: number, col: number) => boolean;
38
+ generateNextPieces: () => void;
39
+ addNewPiece: () => void;
40
+ clearLines: () => number;
41
+ checkGameOver: () => boolean;
42
+ decrementTime: () => void;
43
+ checkWinCondition: () => void;
44
+ }
45
+ export declare const useBlockBlastStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<BlockBlastStore>, "subscribe"> & {
46
+ subscribe: {
47
+ (listener: (selectedState: BlockBlastStore, previousSelectedState: BlockBlastStore) => void): () => void;
48
+ <U>(selector: (state: BlockBlastStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
49
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
50
+ fireImmediately?: boolean;
51
+ } | undefined): () => void;
52
+ };
53
+ }>;
54
+ export declare const useScore: () => number;
55
+ export declare const useIsPlaying: () => boolean;
56
+ export declare const useGameOver: () => boolean;
57
+ export declare const useGameWon: () => boolean;
58
+ export declare const useTimeRemaining: () => number;
59
+ export declare const useGrid: () => (string | null)[][];
60
+ export declare const useNextPieces: () => BlockPiece[];
61
+ export declare const useSelectedPieceId: () => string | null;
62
+ //# sourceMappingURL=BlockBlastStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockBlastStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/block-blast/BlockBlastStore.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC9C,eAAe,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACrD,QAAQ,EAAE,OAAO,CAAC;IAGlB,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,kBAAkB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,qBAAqB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7E,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACnE,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAyBD,eAAO,MAAM,kBAAkB;;;;;;;;EAmT9B,CAAC;AAGF,eAAO,MAAM,QAAQ,cAAmD,CAAC;AACzE,eAAO,MAAM,YAAY,eAAuD,CAAC;AACjF,eAAO,MAAM,WAAW,eAAsD,CAAC;AAC/E,eAAO,MAAM,UAAU,eAAqD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,cAA2D,CAAC;AACzF,eAAO,MAAM,OAAO,2BAAkD,CAAC;AACvE,eAAO,MAAM,aAAa,oBAAwD,CAAC;AACnF,eAAO,MAAM,kBAAkB,qBAA6D,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface BlockPieceComponentProps {
3
+ shape: number[][];
4
+ color: string;
5
+ cellSize: number;
6
+ cellGap: number;
7
+ scale?: number;
8
+ x?: number;
9
+ y?: number;
10
+ isDragging?: boolean;
11
+ }
12
+ export declare const BlockPieceComponent: React.MemoExoticComponent<({ shape, color, cellSize, cellGap, scale, x, y, isDragging, }: BlockPieceComponentProps) => import("react/jsx-runtime").JSX.Element>;
13
+ export {};
14
+ //# sourceMappingURL=BlockPieceComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockPieceComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/BlockPieceComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgHD,eAAO,MAAM,mBAAmB,4FArG7B,wBAAwB,6CAqG0D,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { BlockBlastService } from '../BlockBlastService';
3
+ interface GameAreaProps {
4
+ gridSize: number;
5
+ cellSize: number;
6
+ cellGap: number;
7
+ gameService: BlockBlastService;
8
+ offset: number;
9
+ }
10
+ export declare const GameArea: React.NamedExoticComponent<GameAreaProps>;
11
+ export {};
12
+ //# sourceMappingURL=GameArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AA2ZD,eAAO,MAAM,QAAQ,2CAAuD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface GameBackgroundProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const GameBackground: React.NamedExoticComponent<GameBackgroundProps>;
6
+ export {};
7
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA0QD,eAAO,MAAM,cAAc,iDAAiC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface GridComponentProps {
3
+ grid: (string | null)[][];
4
+ gridSize: number;
5
+ cellSize: number;
6
+ cellGap: number;
7
+ previewPiece?: {
8
+ shape: number[][];
9
+ color: string;
10
+ row: number;
11
+ col: number;
12
+ canPlace: boolean;
13
+ } | null;
14
+ }
15
+ export declare const GridComponent: React.MemoExoticComponent<({ grid, gridSize, cellSize, cellGap, previewPiece }: GridComponentProps) => import("react/jsx-runtime").JSX.Element>;
16
+ export {};
17
+ //# sourceMappingURL=GridComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/GridComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,OAAO,CAAC;KACnB,GAAG,IAAI,CAAC;CACV;AAmID,eAAO,MAAM,aAAa,kFA3HvB,kBAAkB,6CA2HwD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ScoreBoardProps {
3
+ offset?: number;
4
+ }
5
+ export declare const ScoreBoard: React.MemoExoticComponent<({ offset }: ScoreBoardProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export {};
7
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,yCAA+B,eAAe,6CAsCnE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ScoreBoard } from './ScoreBoard';
2
+ export { GridComponent } from './GridComponent';
3
+ export { BlockPieceComponent } from './BlockPieceComponent';
4
+ export { GameArea } from './GameArea';
5
+ export { GameBackground } from './GameBackground';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/block-blast/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { BlockBlast } from './BlockBlast';
2
+ export { BlockBlastService } from './BlockBlastService';
3
+ export { useBlockBlastStore } from './BlockBlastStore';
4
+ export * from './BlockBlastConstants';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/games/block-blast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,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 BubbleShooter: React.NamedExoticComponent<GameProps>;
4
+ //# sourceMappingURL=BubbleShooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleShooter.d.ts","sourceRoot":"","sources":["../../../../../src/games/bubble-shooter/BubbleShooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAyB,KAAK,SAAS,EAAY,MAAM,6BAA6B,CAAC;AAuN9F,eAAO,MAAM,aAAa,uCAAqC,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { GameSettingsTheme } from '../../services/GamesConstants';
2
+ export interface BubbleShooterSettings {
3
+ difficulty: 'easy' | 'medium' | 'hard';
4
+ soundEnabled: boolean;
5
+ hapticEnabled: boolean;
6
+ rowCount: number;
7
+ colorCount: number;
8
+ }
9
+ export declare const BUBBLE_SHOOTER_DIFFICULTY_CONFIG: {
10
+ readonly easy: {
11
+ readonly rowCount: 6;
12
+ readonly colorCount: 4;
13
+ };
14
+ readonly medium: {
15
+ readonly rowCount: 8;
16
+ readonly colorCount: 5;
17
+ };
18
+ readonly hard: {
19
+ readonly rowCount: 10;
20
+ readonly colorCount: 6;
21
+ };
22
+ };
23
+ export declare const getDifficultySettings: (difficulty: "easy" | "medium" | "hard") => {
24
+ readonly rowCount: 6;
25
+ readonly colorCount: 4;
26
+ } | {
27
+ readonly rowCount: 8;
28
+ readonly colorCount: 5;
29
+ } | {
30
+ readonly rowCount: 10;
31
+ readonly colorCount: 6;
32
+ };
33
+ export declare const DEFAULT_BUBBLE_SHOOTER_SETTINGS: BubbleShooterSettings;
34
+ export declare const BUBBLE_SHOOTER_GAME_CONFIG: {
35
+ readonly BUBBLE_RADIUS: 18;
36
+ readonly BUBBLE_SPACING: 2;
37
+ readonly SHOOTER_SIZE: 50;
38
+ readonly SHOOTER_Y_OFFSET: 40;
39
+ readonly BUBBLE_SPEED: 12;
40
+ readonly POINTS_PER_BUBBLE: 10;
41
+ readonly POINTS_PER_DROP: 20;
42
+ readonly MIN_MATCH_COUNT: 3;
43
+ readonly COLS_PER_ROW: 9;
44
+ readonly ROW_OFFSET: 0.5;
45
+ };
46
+ export declare const BUBBLE_COLORS: readonly ["#FF3B30", "#FF9500", "#FFCC00", "#34C759", "#007AFF", "#5856D6", "#FF2D55", "#00C7BE"];
47
+ export declare const BUBBLE_SHOOTER_COLORS: {
48
+ readonly BACKGROUND: "#87CEEB";
49
+ readonly SHOOTER: "#ffffff";
50
+ readonly SHOOTER_ARROW: "#ff6b9d";
51
+ readonly SCORE: "#ffffff";
52
+ readonly UI: "#ff6b9d";
53
+ readonly CEILING: "#e0e0e0";
54
+ };
55
+ export declare const BUBBLE_SHOOTER_THEME: GameSettingsTheme;
56
+ export declare const BUBBLE_SHOOTER_DIFFICULTY_DESCRIPTIONS: {
57
+ readonly easy: "Fewer rows and colors, easier matches";
58
+ readonly medium: "Balanced challenge with more bubbles";
59
+ readonly hard: "Many rows and colors, strategic play!";
60
+ };
61
+ //# sourceMappingURL=BubbleShooterConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleShooterConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/bubble-shooter/BubbleShooterConstants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;CAanC,CAAC;AAGX,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;;;;CAE3E,CAAC;AAGF,eAAO,MAAM,+BAA+B,EAAE,qBAM7C,CAAC;AAGF,eAAO,MAAM,0BAA0B;;;;;;;;;;;CAW7B,CAAC;AAGX,eAAO,MAAM,aAAa,mGAShB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AAGX,eAAO,MAAM,oBAAoB,EAAE,iBAclC,CAAC;AAGF,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type Bubble } from './BubbleShooterStore';
2
+ export declare class BubbleShooterService {
3
+ private rowCount;
4
+ private colorCount;
5
+ private shooterX;
6
+ private shooterY;
7
+ private offset;
8
+ private onShoot?;
9
+ private onBubbleMatch?;
10
+ private onGameWon?;
11
+ constructor();
12
+ setCallbacks(onShoot?: () => void, onBubbleMatch?: () => void, onGameWon?: () => void): void;
13
+ setDifficulty(rowCount: number, colorCount: number): void;
14
+ setShooterPosition(x: number, y: number, offset?: number): void;
15
+ startGame(): void;
16
+ stopGame(): void;
17
+ resetGame(): void;
18
+ cleanup(): void;
19
+ initializeBubbles(): void;
20
+ updateShootingBubble(_offset: number): void;
21
+ checkBubbleCollision(x: number, y: number): Bubble | null;
22
+ snapBubbleToGrid(x: number, y: number, color: string): void;
23
+ findConnectedBubbles(startBubble: Bubble, allBubbles: Bubble[]): Bubble[];
24
+ shoot(): void;
25
+ }
26
+ //# sourceMappingURL=BubbleShooterService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleShooterService.d.ts","sourceRoot":"","sources":["../../../../../src/games/bubble-shooter/BubbleShooterService.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAK1E,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAa;IAG3B,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,aAAa,CAAC,CAAa;IACnC,OAAO,CAAC,SAAS,CAAC,CAAa;;IAI/B,YAAY,CACV,OAAO,CAAC,EAAE,MAAM,IAAI,EACpB,aAAa,CAAC,EAAE,MAAM,IAAI,EAC1B,SAAS,CAAC,EAAE,MAAM,IAAI;IAOxB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAKlD,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU;IAM3D,SAAS;IAIT,QAAQ;IAIR,SAAS;IAIT,OAAO;IAKP,iBAAiB;IAmDjB,oBAAoB,CAAC,OAAO,EAAE,MAAM;IA4CpC,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAmBzD,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IA+IpD,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE;IAqCzE,KAAK;CAwBN"}
@@ -0,0 +1,62 @@
1
+ export interface Bubble {
2
+ id: string;
3
+ row: number;
4
+ col: number;
5
+ color: string;
6
+ x: number;
7
+ y: number;
8
+ }
9
+ export interface ShootingBubble {
10
+ id: string;
11
+ x: number;
12
+ y: number;
13
+ vx: number;
14
+ vy: number;
15
+ color: string;
16
+ }
17
+ export interface GameState {
18
+ score: number;
19
+ isPlaying: boolean;
20
+ gameOver: boolean;
21
+ gameWon: boolean;
22
+ }
23
+ export interface BubbleShooterStore extends GameState {
24
+ shooterAngle: number;
25
+ bubbles: Bubble[];
26
+ shootingBubble: ShootingBubble | null;
27
+ nextBubbleColor: string;
28
+ currentBubbleColor: string;
29
+ startGame: (rowCount: number, colorCount: number) => void;
30
+ stopGame: () => void;
31
+ resetGame: () => void;
32
+ updateScore: (points: number) => void;
33
+ setShooterAngle: (angle: number) => void;
34
+ shootBubble: () => void;
35
+ updateShootingBubble: (bubble: ShootingBubble) => void;
36
+ clearShootingBubble: () => void;
37
+ addBubble: (bubble: Bubble) => void;
38
+ removeBubbles: (bubbleIds: string[]) => void;
39
+ updateBubbles: (bubbles: Bubble[]) => void;
40
+ setGameOver: () => void;
41
+ setGameWon: () => void;
42
+ generateNextBubble: () => void;
43
+ }
44
+ export declare const useBubbleShooterStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<BubbleShooterStore>, "subscribe"> & {
45
+ subscribe: {
46
+ (listener: (selectedState: BubbleShooterStore, previousSelectedState: BubbleShooterStore) => void): () => void;
47
+ <U>(selector: (state: BubbleShooterStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
48
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
49
+ fireImmediately?: boolean;
50
+ } | undefined): () => void;
51
+ };
52
+ }>;
53
+ export declare const useScore: () => number;
54
+ export declare const useIsPlaying: () => boolean;
55
+ export declare const useGameOver: () => boolean;
56
+ export declare const useGameWon: () => boolean;
57
+ export declare const useShooterAngle: () => number;
58
+ export declare const useBubbles: () => Bubble[];
59
+ export declare const useShootingBubble: () => ShootingBubble | null;
60
+ export declare const useCurrentBubbleColor: () => string;
61
+ export declare const useNextBubbleColor: () => string;
62
+ //# sourceMappingURL=BubbleShooterStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleShooterStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/bubble-shooter/BubbleShooterStore.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAGD,eAAO,MAAM,qBAAqB;;;;;;;;EAwKjC,CAAC;AAGF,eAAO,MAAM,QAAQ,cAAsD,CAAC;AAC5E,eAAO,MAAM,YAAY,eAA0D,CAAC;AACpF,eAAO,MAAM,WAAW,eAAyD,CAAC;AAClF,eAAO,MAAM,UAAU,eAAwD,CAAC;AAChF,eAAO,MAAM,eAAe,cAA6D,CAAC;AAC1F,eAAO,MAAM,UAAU,gBAAwD,CAAC;AAChF,eAAO,MAAM,iBAAiB,6BAA+D,CAAC;AAC9F,eAAO,MAAM,qBAAqB,cAAmE,CAAC;AACtG,eAAO,MAAM,kBAAkB,cAAgE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { BubbleShooterService } from '../BubbleShooterService';
3
+ interface GameAreaProps {
4
+ gameService: BubbleShooterService;
5
+ offset: number;
6
+ }
7
+ export declare const GameArea: React.NamedExoticComponent<GameAreaProps>;
8
+ export {};
9
+ //# sourceMappingURL=GameArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/bubble-shooter/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,UAAU,aAAa;IACrB,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAuRD,eAAO,MAAM,QAAQ,2CAAuD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface GameBackgroundProps {
3
+ children: React.ReactNode;
4
+ offset?: number;
5
+ }
6
+ export declare const GameBackground: React.FC<GameBackgroundProps>;
7
+ export {};
8
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/bubble-shooter/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,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,CAgNvD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ScoreBoardProps {
3
+ offset?: number;
4
+ }
5
+ export declare const ScoreBoard: React.MemoExoticComponent<({ offset }: ScoreBoardProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export {};
7
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/bubble-shooter/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,yCAA+B,eAAe,6CAanE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { GameBackground } from './GameBackground';
2
+ export { ScoreBoard } from './ScoreBoard';
3
+ export { GameArea } from './GameArea';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/bubble-shooter/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { BubbleShooter } from './BubbleShooter';
2
+ export { BUBBLE_SHOOTER_THEME } from './BubbleShooterConstants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/games/bubble-shooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1 +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"}
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,CAuIzC,CAAC"}
@@ -82,19 +82,19 @@ export declare const CANDY_CRUSH_SOUNDS: {
82
82
  };
83
83
  };
84
84
  export declare const CANDY_CRUSH_THEME: {
85
- readonly backgroundColor: "#2C3E50";
85
+ readonly backgroundColor: "rgba(0, 0, 0, 0.7)";
86
86
  readonly headerBackgroundColor: "#FF9500";
87
- readonly headerTextColor: "#FFFFFF";
87
+ readonly headerTextColor: "#ffffff";
88
88
  readonly sectionBackgroundColor: "rgba(255, 149, 0, 0.15)";
89
89
  readonly sectionTitleColor: "#FF9500";
90
90
  readonly buttonSelectedColor: "#FF9500";
91
- readonly buttonUnselectedColor: "rgba(255, 149, 0, 0.2)";
92
- readonly buttonSelectedTextColor: "#FFFFFF";
93
- readonly buttonUnselectedTextColor: "#FF9500";
91
+ readonly buttonUnselectedColor: "rgba(255, 255, 255, 0.2)";
92
+ readonly buttonSelectedTextColor: "#ffffff";
93
+ readonly buttonUnselectedTextColor: "rgba(255, 255, 255, 0.7)";
94
94
  readonly switchTrackColorFalse: "rgba(255, 149, 0, 0.3)";
95
95
  readonly switchTrackColorTrue: "#FF9500";
96
- readonly switchThumbColor: "#FFFFFF";
97
- readonly infoTextColor: "rgba(255, 255, 255, 0.7)";
96
+ readonly switchThumbColor: "#ffffff";
97
+ readonly infoTextColor: "rgba(255, 255, 255, 0.9)";
98
98
  };
99
99
  export declare const CANDY_CRUSH_DIFFICULTY_DESCRIPTIONS: {
100
100
  readonly easy: "1 minute • 4 candy types";
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { GameProps } from '../../services/UtilsService';
3
+ export declare const CarRacing: React.FC<GameProps>;
4
+ //# sourceMappingURL=CarRacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarRacing.d.ts","sourceRoot":"","sources":["../../../../../src/games/car-racing/CarRacing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAM7D,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8QzC,CAAC"}