react-native-games 0.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 (269) hide show
  1. package/LICENSE +66 -0
  2. package/README.md +269 -0
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js +391 -0
  4. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -0
  5. package/lib/module/games/balloon-blaster/BalloonBlasterService.js +293 -0
  6. package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -0
  7. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +156 -0
  8. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -0
  9. package/lib/module/games/balloon-blaster/components/BalloonComponent.js +227 -0
  10. package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -0
  11. package/lib/module/games/balloon-blaster/components/GameArea.js +42 -0
  12. package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -0
  13. package/lib/module/games/balloon-blaster/components/GameBackground.js +544 -0
  14. package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -0
  15. package/lib/module/games/balloon-blaster/components/GameControls.js +229 -0
  16. package/lib/module/games/balloon-blaster/components/GameControls.js.map +1 -0
  17. package/lib/module/games/balloon-blaster/components/GameOverModal.js +133 -0
  18. package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +1 -0
  19. package/lib/module/games/balloon-blaster/components/ParticleSystem.js +52 -0
  20. package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +1 -0
  21. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +119 -0
  22. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -0
  23. package/lib/module/games/balloon-blaster/components/SliceTrail.js +58 -0
  24. package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +1 -0
  25. package/lib/module/games/balloon-blaster/components/index.js +11 -0
  26. package/lib/module/games/balloon-blaster/components/index.js.map +1 -0
  27. package/lib/module/games/cat-popper/CatPopper.js +230 -0
  28. package/lib/module/games/cat-popper/CatPopper.js.map +1 -0
  29. package/lib/module/games/cat-popper/CatPopperService.js +100 -0
  30. package/lib/module/games/cat-popper/CatPopperService.js.map +1 -0
  31. package/lib/module/games/cat-popper/CatPopperStore.js +113 -0
  32. package/lib/module/games/cat-popper/CatPopperStore.js.map +1 -0
  33. package/lib/module/games/cat-popper/components/CatCharacter.js +281 -0
  34. package/lib/module/games/cat-popper/components/CatCharacter.js.map +1 -0
  35. package/lib/module/games/cat-popper/components/GameBackground.js +531 -0
  36. package/lib/module/games/cat-popper/components/GameBackground.js.map +1 -0
  37. package/lib/module/games/cat-popper/components/GameControls.js +230 -0
  38. package/lib/module/games/cat-popper/components/GameControls.js.map +1 -0
  39. package/lib/module/games/cat-popper/components/GameGrid.js +66 -0
  40. package/lib/module/games/cat-popper/components/GameGrid.js.map +1 -0
  41. package/lib/module/games/cat-popper/components/GameHole.js +183 -0
  42. package/lib/module/games/cat-popper/components/GameHole.js.map +1 -0
  43. package/lib/module/games/cat-popper/components/GameOverModal.js +131 -0
  44. package/lib/module/games/cat-popper/components/GameOverModal.js.map +1 -0
  45. package/lib/module/games/cat-popper/components/ScoreBoard.js +77 -0
  46. package/lib/module/games/cat-popper/components/ScoreBoard.js.map +1 -0
  47. package/lib/module/games/cat-popper/components/index.js +10 -0
  48. package/lib/module/games/cat-popper/components/index.js.map +1 -0
  49. package/lib/module/games/fruit-slicer/FruitSlicer.js +411 -0
  50. package/lib/module/games/fruit-slicer/FruitSlicer.js.map +1 -0
  51. package/lib/module/games/fruit-slicer/FruitSlicerService.js +293 -0
  52. package/lib/module/games/fruit-slicer/FruitSlicerService.js.map +1 -0
  53. package/lib/module/games/fruit-slicer/FruitSlicerStore.js +156 -0
  54. package/lib/module/games/fruit-slicer/FruitSlicerStore.js.map +1 -0
  55. package/lib/module/games/fruit-slicer/components/FruitComponent.js +99 -0
  56. package/lib/module/games/fruit-slicer/components/FruitComponent.js.map +1 -0
  57. package/lib/module/games/fruit-slicer/components/GameArea.js +50 -0
  58. package/lib/module/games/fruit-slicer/components/GameArea.js.map +1 -0
  59. package/lib/module/games/fruit-slicer/components/GameBackground.js +1296 -0
  60. package/lib/module/games/fruit-slicer/components/GameBackground.js.map +1 -0
  61. package/lib/module/games/fruit-slicer/components/GameControls.js +230 -0
  62. package/lib/module/games/fruit-slicer/components/GameControls.js.map +1 -0
  63. package/lib/module/games/fruit-slicer/components/GameOverModal.js +189 -0
  64. package/lib/module/games/fruit-slicer/components/GameOverModal.js.map +1 -0
  65. package/lib/module/games/fruit-slicer/components/ParticleSystem.js +52 -0
  66. package/lib/module/games/fruit-slicer/components/ParticleSystem.js.map +1 -0
  67. package/lib/module/games/fruit-slicer/components/ScoreBoard.js +121 -0
  68. package/lib/module/games/fruit-slicer/components/ScoreBoard.js.map +1 -0
  69. package/lib/module/games/fruit-slicer/components/SliceTrail.js +58 -0
  70. package/lib/module/games/fruit-slicer/components/SliceTrail.js.map +1 -0
  71. package/lib/module/games/fruit-slicer/components/index.js +11 -0
  72. package/lib/module/games/fruit-slicer/components/index.js.map +1 -0
  73. package/lib/module/games/maze-runner/MazeRunner.js +242 -0
  74. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -0
  75. package/lib/module/games/maze-runner/MazeRunnerService.js +560 -0
  76. package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -0
  77. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +149 -0
  78. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -0
  79. package/lib/module/games/maze-runner/components/EnhancedGameArea.js +357 -0
  80. package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -0
  81. package/lib/module/games/maze-runner/components/GameBackground.js +216 -0
  82. package/lib/module/games/maze-runner/components/GameBackground.js.map +1 -0
  83. package/lib/module/games/maze-runner/components/GameControls.js +129 -0
  84. package/lib/module/games/maze-runner/components/GameControls.js.map +1 -0
  85. package/lib/module/games/maze-runner/components/GameOverModal.js +134 -0
  86. package/lib/module/games/maze-runner/components/GameOverModal.js.map +1 -0
  87. package/lib/module/games/maze-runner/components/ScoreBoard.js +81 -0
  88. package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -0
  89. package/lib/module/games/maze-runner/components/SkiaPipeComponent.js +209 -0
  90. package/lib/module/games/maze-runner/components/SkiaPipeComponent.js.map +1 -0
  91. package/lib/module/games/maze-runner/components/StaticGameBackground.js +169 -0
  92. package/lib/module/games/maze-runner/components/StaticGameBackground.js.map +1 -0
  93. package/lib/module/games/maze-runner/components/WallComponent.js +90 -0
  94. package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -0
  95. package/lib/module/games/maze-runner/components/index.js +10 -0
  96. package/lib/module/games/maze-runner/components/index.js.map +1 -0
  97. package/lib/module/games/space-traveller/SpaceTraveller.js +393 -0
  98. package/lib/module/games/space-traveller/SpaceTraveller.js.map +1 -0
  99. package/lib/module/games/space-traveller/SpaceTravellerService.js +298 -0
  100. package/lib/module/games/space-traveller/SpaceTravellerService.js.map +1 -0
  101. package/lib/module/games/space-traveller/SpaceTravellerStore.js +139 -0
  102. package/lib/module/games/space-traveller/SpaceTravellerStore.js.map +1 -0
  103. package/lib/module/games/space-traveller/components/AsteroidComponent.js +111 -0
  104. package/lib/module/games/space-traveller/components/AsteroidComponent.js.map +1 -0
  105. package/lib/module/games/space-traveller/components/GameArea.js +75 -0
  106. package/lib/module/games/space-traveller/components/GameArea.js.map +1 -0
  107. package/lib/module/games/space-traveller/components/GameBackground.js +294 -0
  108. package/lib/module/games/space-traveller/components/GameBackground.js.map +1 -0
  109. package/lib/module/games/space-traveller/components/GameControls.js +177 -0
  110. package/lib/module/games/space-traveller/components/GameControls.js.map +1 -0
  111. package/lib/module/games/space-traveller/components/GameOverModal.js +182 -0
  112. package/lib/module/games/space-traveller/components/GameOverModal.js.map +1 -0
  113. package/lib/module/games/space-traveller/components/ParticleComponent.js +34 -0
  114. package/lib/module/games/space-traveller/components/ParticleComponent.js.map +1 -0
  115. package/lib/module/games/space-traveller/components/ScoreBoard.js +143 -0
  116. package/lib/module/games/space-traveller/components/ScoreBoard.js.map +1 -0
  117. package/lib/module/games/space-traveller/components/SettingsModal.js +222 -0
  118. package/lib/module/games/space-traveller/components/SettingsModal.js.map +1 -0
  119. package/lib/module/games/space-traveller/components/Spacecraft3D.js +362 -0
  120. package/lib/module/games/space-traveller/components/Spacecraft3D.js.map +1 -0
  121. package/lib/module/games/space-traveller/components/SpacecraftPath.js +37 -0
  122. package/lib/module/games/space-traveller/components/SpacecraftPath.js.map +1 -0
  123. package/lib/module/games/space-traveller/components/index.js +13 -0
  124. package/lib/module/games/space-traveller/components/index.js.map +1 -0
  125. package/lib/module/index.js +12 -0
  126. package/lib/module/index.js.map +1 -0
  127. package/lib/module/package.json +1 -0
  128. package/lib/module/services/GamesConstants.js +561 -0
  129. package/lib/module/services/GamesConstants.js.map +1 -0
  130. package/lib/module/services/GamesService.js +34 -0
  131. package/lib/module/services/GamesService.js.map +1 -0
  132. package/lib/module/shared/settings/GameSettings.js +295 -0
  133. package/lib/module/shared/settings/GameSettings.js.map +1 -0
  134. package/lib/module/shared/settings/SettingsService.js +119 -0
  135. package/lib/module/shared/settings/SettingsService.js.map +1 -0
  136. package/lib/typescript/package.json +1 -0
  137. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +16 -0
  138. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -0
  139. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +66 -0
  140. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -0
  141. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts +37 -0
  142. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -0
  143. package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts +10 -0
  144. package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -0
  145. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +17 -0
  146. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -0
  147. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts +7 -0
  148. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -0
  149. package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts +10 -0
  150. package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts.map +1 -0
  151. package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts +9 -0
  152. package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +1 -0
  153. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +8 -0
  154. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +1 -0
  155. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +9 -0
  156. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -0
  157. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +11 -0
  158. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +1 -0
  159. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +9 -0
  160. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -0
  161. package/lib/typescript/src/games/cat-popper/CatPopper.d.ts +13 -0
  162. package/lib/typescript/src/games/cat-popper/CatPopper.d.ts.map +1 -0
  163. package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts +32 -0
  164. package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts.map +1 -0
  165. package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts +21 -0
  166. package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts.map +1 -0
  167. package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts +7 -0
  168. package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts.map +1 -0
  169. package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts +7 -0
  170. package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts.map +1 -0
  171. package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts +10 -0
  172. package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts.map +1 -0
  173. package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts +13 -0
  174. package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts.map +1 -0
  175. package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts +12 -0
  176. package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts.map +1 -0
  177. package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts +9 -0
  178. package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts.map +1 -0
  179. package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts +8 -0
  180. package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts.map +1 -0
  181. package/lib/typescript/src/games/cat-popper/components/index.d.ts +8 -0
  182. package/lib/typescript/src/games/cat-popper/components/index.d.ts.map +1 -0
  183. package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts +16 -0
  184. package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts.map +1 -0
  185. package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts +67 -0
  186. package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts.map +1 -0
  187. package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts +37 -0
  188. package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts.map +1 -0
  189. package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts +10 -0
  190. package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts.map +1 -0
  191. package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts +17 -0
  192. package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts.map +1 -0
  193. package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts +7 -0
  194. package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts.map +1 -0
  195. package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts +10 -0
  196. package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts.map +1 -0
  197. package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts +9 -0
  198. package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts.map +1 -0
  199. package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts +8 -0
  200. package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts.map +1 -0
  201. package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts +9 -0
  202. package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts.map +1 -0
  203. package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts +11 -0
  204. package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts.map +1 -0
  205. package/lib/typescript/src/games/fruit-slicer/components/index.d.ts +9 -0
  206. package/lib/typescript/src/games/fruit-slicer/components/index.d.ts.map +1 -0
  207. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +18 -0
  208. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -0
  209. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +82 -0
  210. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -0
  211. package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts +11 -0
  212. package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -0
  213. package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts +12 -0
  214. package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -0
  215. package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts +7 -0
  216. package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts.map +1 -0
  217. package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts +10 -0
  218. package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts.map +1 -0
  219. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +11 -0
  220. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +1 -0
  221. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts +8 -0
  222. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -0
  223. package/lib/typescript/src/games/maze-runner/components/SkiaPipeComponent.d.ts +25 -0
  224. package/lib/typescript/src/games/maze-runner/components/SkiaPipeComponent.d.ts.map +1 -0
  225. package/lib/typescript/src/games/maze-runner/components/StaticGameBackground.d.ts +7 -0
  226. package/lib/typescript/src/games/maze-runner/components/StaticGameBackground.d.ts.map +1 -0
  227. package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts +10 -0
  228. package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -0
  229. package/lib/typescript/src/games/maze-runner/components/index.d.ts +8 -0
  230. package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -0
  231. package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts +17 -0
  232. package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts.map +1 -0
  233. package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts +65 -0
  234. package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts.map +1 -0
  235. package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts +35 -0
  236. package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts.map +1 -0
  237. package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts +9 -0
  238. package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts.map +1 -0
  239. package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts +17 -0
  240. package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts.map +1 -0
  241. package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts +7 -0
  242. package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts.map +1 -0
  243. package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts +10 -0
  244. package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts.map +1 -0
  245. package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts +9 -0
  246. package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts.map +1 -0
  247. package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts +8 -0
  248. package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts.map +1 -0
  249. package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts +8 -0
  250. package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts.map +1 -0
  251. package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts +9 -0
  252. package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts.map +1 -0
  253. package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts +9 -0
  254. package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts.map +1 -0
  255. package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts +10 -0
  256. package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts.map +1 -0
  257. package/lib/typescript/src/games/space-traveller/components/index.d.ts +11 -0
  258. package/lib/typescript/src/games/space-traveller/components/index.d.ts.map +1 -0
  259. package/lib/typescript/src/index.d.ts +7 -0
  260. package/lib/typescript/src/index.d.ts.map +1 -0
  261. package/lib/typescript/src/services/GamesConstants.d.ts +372 -0
  262. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -0
  263. package/lib/typescript/src/services/GamesService.d.ts +8 -0
  264. package/lib/typescript/src/services/GamesService.d.ts.map +1 -0
  265. package/lib/typescript/src/shared/settings/GameSettings.d.ts +36 -0
  266. package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +1 -0
  267. package/lib/typescript/src/shared/settings/SettingsService.d.ts +32 -0
  268. package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +1 -0
  269. package/package.json +125 -0
@@ -0,0 +1,391 @@
1
+ "use strict";
2
+
3
+ import React, { useEffect, useRef } from 'react';
4
+ import { View, StyleSheet, Modal } from 'react-native';
5
+ import { runOnJS } from 'react-native-reanimated';
6
+ import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
7
+ import * as Speech from 'expo-speech';
8
+ import * as Haptics from 'expo-haptics';
9
+ import { useBalloonBlasterStore } from "./BalloonBlasterStore.js";
10
+ import { createBalloonBlasterService, GAME_CONFIG } from "./BalloonBlasterService.js";
11
+ import { ScoreBoard, GameArea, GameControls, GameOverModal, GameBackground } from "./components/index.js";
12
+ // Define game-specific types and constants locally
13
+
14
+ const DEFAULT_BALLOON_BLASTER_SETTINGS = {
15
+ gameDuration: 120,
16
+ difficulty: 'medium',
17
+ soundEnabled: true,
18
+ hapticEnabled: true
19
+ };
20
+ const getDifficultySpawnInterval = difficulty => {
21
+ const intervals = {
22
+ easy: 2000,
23
+ medium: 1500,
24
+ hard: 1000
25
+ };
26
+ return intervals[difficulty];
27
+ };
28
+ import { GameSettings } from "../../shared/settings/GameSettings.js";
29
+ import { createGameSettingsStore } from "../../shared/settings/SettingsService.js";
30
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
+ export const BalloonBlaster = ({
32
+ settings: externalSettings = DEFAULT_BALLOON_BLASTER_SETTINGS,
33
+ onSettingsChange,
34
+ showSettingsModal = false,
35
+ onToggleSettingsModal
36
+ }) => {
37
+ // Create unified game settings store
38
+ const useSettings = React.useMemo(() => {
39
+ return createGameSettingsStore(externalSettings, onSettingsChange);
40
+ }, []); // Empty dependency array - create store only once
41
+
42
+ const settings = useSettings();
43
+
44
+ // Track previous settings to prevent infinite loops
45
+ const prevSettingsRef = React.useRef(externalSettings);
46
+
47
+ // Update settings when external settings change (only if actually different)
48
+ React.useEffect(() => {
49
+ if (!externalSettings) return;
50
+ const prev = prevSettingsRef.current;
51
+ if (!prev) {
52
+ settings.updateSettings(externalSettings);
53
+ prevSettingsRef.current = externalSettings;
54
+ return;
55
+ }
56
+ const hasChanged = prev.difficulty !== externalSettings.difficulty || prev.soundEnabled !== externalSettings.soundEnabled || prev.hapticEnabled !== externalSettings.hapticEnabled;
57
+ if (hasChanged) {
58
+ settings.updateSettings(externalSettings);
59
+ prevSettingsRef.current = externalSettings;
60
+ }
61
+ }, [externalSettings, settings]);
62
+ const {
63
+ score,
64
+ timeLeft,
65
+ isPlaying,
66
+ gameOver,
67
+ lives,
68
+ balloons,
69
+ slicePath,
70
+ isSlicing,
71
+ startGame,
72
+ stopGame,
73
+ resetGame,
74
+ popBalloon,
75
+ decrementTime,
76
+ addBalloon,
77
+ removeBalloon,
78
+ updateBalloon,
79
+ setSlicePath,
80
+ setIsSlicing,
81
+ resetCombo,
82
+ loseLife,
83
+ addLife
84
+ } = useBalloonBlasterStore();
85
+
86
+ // Simple animation tracking without shared values
87
+ const balloonAnimations = useRef(new Map()).current;
88
+ const particleAnimations = useRef(new Map()).current;
89
+
90
+ // Game service
91
+ const gameService = useRef(createBalloonBlasterService(balloonAnimations, particleAnimations)).current;
92
+
93
+ // Slice path tracking
94
+ const currentSlicePath = useRef([]);
95
+
96
+ // Helper functions for gesture handling
97
+ const checkBalloonIntersections = slicePath => {
98
+ const currentBalloons = useBalloonBlasterStore.getState().balloons;
99
+ currentBalloons.forEach(balloon => {
100
+ if (!balloon.isPopped && gameService.checkBalloonPop(balloon, slicePath)) {
101
+ handleBalloonPop(balloon.id);
102
+ }
103
+ });
104
+ };
105
+ const clearSlicePath = () => {
106
+ setTimeout(() => {
107
+ currentSlicePath.current = [];
108
+ setSlicePath([]);
109
+ }, 200);
110
+ };
111
+
112
+ // Sound and haptic feedback
113
+ const playPopSound = _balloonType => {
114
+ if (settings.soundEnabled) {
115
+ Speech.speak('Pop!', {
116
+ pitch: 1.5,
117
+ rate: 2.5,
118
+ volume: 0.6
119
+ });
120
+ }
121
+ // Always provide haptic feedback for better game feel
122
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
123
+ };
124
+ const playBombSound = () => {
125
+ if (settings.soundEnabled) {
126
+ Speech.speak('Boom!', {
127
+ pitch: 0.8,
128
+ rate: 1.5,
129
+ volume: 0.8
130
+ });
131
+ }
132
+ // Always provide haptic feedback for bombs
133
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
134
+ };
135
+
136
+ // Game control functions
137
+ const handleStartGame = () => {
138
+ startGame(settings.gameDuration);
139
+ gameService.resetAnimations();
140
+ gameService.startGameTimer(decrementTime);
141
+ gameService.startBalloonSpawning(spawnBalloon, getDifficultySpawnInterval(settings.difficulty));
142
+ gameService.startPhysicsLoop(updateBalloon, removeBalloon, () => useBalloonBlasterStore.getState().balloons);
143
+ };
144
+ const handleStopGame = () => {
145
+ stopGame();
146
+ gameService.cleanup();
147
+ gameService.resetAnimations();
148
+ currentSlicePath.current = [];
149
+ setSlicePath([]);
150
+ setIsSlicing(false);
151
+ };
152
+ const handleResetGame = () => {
153
+ gameService.cleanup();
154
+ resetGame();
155
+ gameService.resetAnimations();
156
+ currentSlicePath.current = [];
157
+ setSlicePath([]);
158
+ setIsSlicing(false);
159
+ };
160
+
161
+ // Balloon spawning
162
+ const spawnBalloon = balloon => {
163
+ addBalloon(balloon);
164
+ };
165
+
166
+ // Balloon popping logic
167
+ const handleBalloonPop = balloonId => {
168
+ // Double-check game state to prevent race conditions
169
+ const currentState = useBalloonBlasterStore.getState();
170
+ if (!currentState.isPlaying || currentState.gameOver) return;
171
+ const balloon = balloons.find(b => b.id === balloonId);
172
+ if (!balloon || balloon.isPopped) return;
173
+
174
+ // Handle different balloon types BEFORE marking as popped
175
+ if (balloon.isBomb) {
176
+ // Bomb hit - lose life and end combo
177
+ playBombSound();
178
+
179
+ // Check current state again before losing life
180
+ const stateBeforeLoss = useBalloonBlasterStore.getState();
181
+ if (stateBeforeLoss.lives > 0 && stateBeforeLoss.isPlaying && !stateBeforeLoss.gameOver) {
182
+ loseLife();
183
+ resetCombo();
184
+ }
185
+
186
+ // Create explosion particles
187
+ gameService.createPopParticles(balloon);
188
+
189
+ // Mark bomb as popped after processing
190
+ updateBalloon(balloonId, {
191
+ isPopped: true
192
+ });
193
+ } else {
194
+ // Handle different balloon types with simplified mechanics
195
+ playPopSound(balloon.type.name);
196
+ if (balloon.isBonus) {
197
+ // Star balloon - add a life instead of points
198
+ addLife();
199
+ playPopSound('bonus life!');
200
+ // Mark star as popped after processing
201
+ updateBalloon(balloonId, {
202
+ isPopped: true
203
+ });
204
+ } else {
205
+ // Regular balloon - add 10 points (popBalloon handles marking)
206
+ popBalloon(balloonId);
207
+ }
208
+
209
+ // Create pop particles
210
+ gameService.createPopParticles(balloon);
211
+
212
+ // Remove combo system - no more combo sounds
213
+ }
214
+
215
+ // Remove balloon after animation
216
+ setTimeout(() => {
217
+ removeBalloon(balloonId);
218
+ balloonAnimations.delete(balloonId);
219
+ }, 500);
220
+ };
221
+
222
+ // Gesture handling for slicing
223
+ const handleGestureStart = event => {
224
+ if (!isPlaying) return;
225
+ currentSlicePath.current = [{
226
+ x: event.x,
227
+ y: event.y
228
+ }];
229
+ setIsSlicing(true);
230
+ setSlicePath([{
231
+ x: event.x,
232
+ y: event.y
233
+ }]);
234
+
235
+ // Light haptic feedback on slice start
236
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
237
+ };
238
+ const handleGestureUpdate = event => {
239
+ if (!isPlaying) return;
240
+ const newPoint = {
241
+ x: event.x,
242
+ y: event.y
243
+ };
244
+ currentSlicePath.current.push(newPoint);
245
+
246
+ // Limit slice path length for performance
247
+ if (currentSlicePath.current.length > GAME_CONFIG.SLICE_TRAIL_LENGTH) {
248
+ currentSlicePath.current.shift();
249
+ }
250
+ setSlicePath([...currentSlicePath.current]);
251
+
252
+ // Check for balloon intersections
253
+ checkBalloonIntersections(currentSlicePath.current);
254
+ };
255
+ const handleGestureEnd = () => {
256
+ if (!isPlaying) return;
257
+ setIsSlicing(false);
258
+ clearSlicePath();
259
+ };
260
+ const panGesture = Gesture.Pan().onStart(event => {
261
+ runOnJS(handleGestureStart)(event);
262
+ }).onUpdate(event => {
263
+ runOnJS(handleGestureUpdate)(event);
264
+ }).onEnd(() => {
265
+ runOnJS(handleGestureEnd)();
266
+ });
267
+
268
+ // Track balloon animations without shared values
269
+ useEffect(() => {
270
+ balloons.forEach(balloon => {
271
+ if (!balloonAnimations.has(balloon.id)) {
272
+ // Simple animation state tracking
273
+ balloonAnimations.set(balloon.id, {
274
+ scale: 1,
275
+ opacity: 1
276
+ });
277
+ }
278
+ });
279
+ }, [balloons]);
280
+
281
+ // Initialize and cleanup
282
+ useEffect(() => {
283
+ return () => {
284
+ gameService.cleanup();
285
+ };
286
+ }, []);
287
+
288
+ // Cleanup when game ends (gameOver becomes true)
289
+ useEffect(() => {
290
+ if (gameOver) {
291
+ // Use a timeout to ensure state has settled
292
+ const cleanupTimeout = setTimeout(() => {
293
+ // Immediately stop all game activities
294
+ gameService.cleanup();
295
+
296
+ // Clear all existing balloons from the screen
297
+ const currentBalloons = [...balloons]; // Create a copy to avoid mutation during iteration
298
+ currentBalloons.forEach(balloon => {
299
+ removeBalloon(balloon.id);
300
+ balloonAnimations.delete(balloon.id);
301
+ });
302
+
303
+ // Clear slice path
304
+ currentSlicePath.current = [];
305
+ setSlicePath([]);
306
+ setIsSlicing(false);
307
+ }, 50); // Small delay to ensure state consistency
308
+
309
+ return () => clearTimeout(cleanupTimeout);
310
+ }
311
+ return () => {}; // Return empty cleanup function when condition is not met
312
+ }, [gameOver, balloons, removeBalloon]); // Include necessary dependencies
313
+
314
+ // Auto-remove balloons that float off screen (top)
315
+ useEffect(() => {
316
+ if (!isPlaying || gameOver) return;
317
+ const interval = setInterval(() => {
318
+ // Check if game is still active before processing
319
+ const currentState = useBalloonBlasterStore.getState();
320
+ if (!currentState.isPlaying || currentState.gameOver) {
321
+ return;
322
+ }
323
+ balloons.forEach(balloon => {
324
+ if (balloon.position.y < -100 && !balloon.isPopped) {
325
+ // Balloon floated off screen without being popped
326
+ if (!balloon.isBomb && !balloon.isBonus) {
327
+ // Only lose life for regular balloons and if game is still active
328
+ const livesBeforeLoss = useBalloonBlasterStore.getState().lives;
329
+ if (livesBeforeLoss > 0) {
330
+ loseLife();
331
+ // The useEffect will handle cleanup when gameOver becomes true
332
+ }
333
+ }
334
+ removeBalloon(balloon.id);
335
+ balloonAnimations.delete(balloon.id);
336
+ }
337
+ });
338
+ }, 100);
339
+ return () => clearInterval(interval);
340
+ }, [isPlaying, gameOver, balloons, removeBalloon, loseLife]);
341
+ return /*#__PURE__*/_jsx(GestureHandlerRootView, {
342
+ style: {
343
+ flex: 1
344
+ },
345
+ children: /*#__PURE__*/_jsx(View, {
346
+ style: styles.container,
347
+ children: /*#__PURE__*/_jsxs(GameBackground, {
348
+ children: [/*#__PURE__*/_jsx(ScoreBoard, {
349
+ score: score,
350
+ timeLeft: timeLeft,
351
+ lives: lives
352
+ }), /*#__PURE__*/_jsx(GestureDetector, {
353
+ gesture: panGesture,
354
+ children: /*#__PURE__*/_jsx(GameArea, {
355
+ balloons: balloons,
356
+ balloonAnimations: balloonAnimations,
357
+ slicePath: slicePath,
358
+ isSlicing: isSlicing,
359
+ particles: gameService.getParticles(),
360
+ onBalloonPop: handleBalloonPop
361
+ })
362
+ }), /*#__PURE__*/_jsx(GameControls, {
363
+ isPlaying: isPlaying,
364
+ gameOver: gameOver,
365
+ onStartGame: handleStartGame,
366
+ onStopGame: handleStopGame
367
+ }), /*#__PURE__*/_jsx(GameOverModal, {
368
+ isVisible: gameOver,
369
+ score: score,
370
+ onPlayAgain: handleResetGame
371
+ }), /*#__PURE__*/_jsx(Modal, {
372
+ visible: showSettingsModal,
373
+ animationType: "slide",
374
+ presentationStyle: "pageSheet",
375
+ onRequestClose: onToggleSettingsModal,
376
+ children: /*#__PURE__*/_jsx(GameSettings, {
377
+ gameId: "balloon-blaster",
378
+ onClose: onToggleSettingsModal || (() => {}),
379
+ settingsStore: settings
380
+ })
381
+ })]
382
+ })
383
+ })
384
+ });
385
+ };
386
+ const styles = StyleSheet.create({
387
+ container: {
388
+ flex: 1
389
+ }
390
+ });
391
+ //# sourceMappingURL=BalloonBlaster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useRef","View","StyleSheet","Modal","runOnJS","Gesture","GestureDetector","GestureHandlerRootView","Speech","Haptics","useBalloonBlasterStore","createBalloonBlasterService","GAME_CONFIG","ScoreBoard","GameArea","GameControls","GameOverModal","GameBackground","DEFAULT_BALLOON_BLASTER_SETTINGS","gameDuration","difficulty","soundEnabled","hapticEnabled","getDifficultySpawnInterval","intervals","easy","medium","hard","GameSettings","createGameSettingsStore","jsx","_jsx","jsxs","_jsxs","BalloonBlaster","settings","externalSettings","onSettingsChange","showSettingsModal","onToggleSettingsModal","useSettings","useMemo","prevSettingsRef","prev","current","updateSettings","hasChanged","score","timeLeft","isPlaying","gameOver","lives","balloons","slicePath","isSlicing","startGame","stopGame","resetGame","popBalloon","decrementTime","addBalloon","removeBalloon","updateBalloon","setSlicePath","setIsSlicing","resetCombo","loseLife","addLife","balloonAnimations","Map","particleAnimations","gameService","currentSlicePath","checkBalloonIntersections","currentBalloons","getState","forEach","balloon","isPopped","checkBalloonPop","handleBalloonPop","id","clearSlicePath","setTimeout","playPopSound","_balloonType","speak","pitch","rate","volume","impactAsync","ImpactFeedbackStyle","Light","playBombSound","Heavy","handleStartGame","resetAnimations","startGameTimer","startBalloonSpawning","spawnBalloon","startPhysicsLoop","handleStopGame","cleanup","handleResetGame","balloonId","currentState","find","b","isBomb","stateBeforeLoss","createPopParticles","type","name","isBonus","delete","handleGestureStart","event","x","y","handleGestureUpdate","newPoint","push","length","SLICE_TRAIL_LENGTH","shift","handleGestureEnd","panGesture","Pan","onStart","onUpdate","onEnd","has","set","scale","opacity","cleanupTimeout","clearTimeout","interval","setInterval","position","livesBeforeLoss","clearInterval","style","flex","children","styles","container","gesture","particles","getParticles","onBalloonPop","onStartGame","onStopGame","isVisible","onPlayAgain","visible","animationType","presentationStyle","onRequestClose","gameId","onClose","settingsStore","create"],"sourceRoot":"../../../../src","sources":["games/balloon-blaster/BalloonBlaster.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AACtD,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SAASC,OAAO,EAAEC,eAAe,EAAEC,sBAAsB,QAAQ,8BAA8B;AAC/F,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,SAASC,sBAAsB,QAAQ,0BAAuB;AAC9D,SAASC,2BAA2B,EAAEC,WAAW,QAAQ,4BAAyB;AAClF,SAASC,UAAU,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,aAAa,EAAEC,cAAc,QAAQ,uBAAc;AAChG;;AAQA,MAAMC,gCAA4D,GAAG;EACnEC,YAAY,EAAE,GAAG;EACjBC,UAAU,EAAE,QAAQ;EACpBC,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;AACjB,CAAC;AAED,MAAMC,0BAA0B,GAAIH,UAAsC,IAAa;EACrF,MAAMI,SAAS,GAAG;IAAEC,IAAI,EAAE,IAAI;IAAEC,MAAM,EAAE,IAAI;IAAEC,IAAI,EAAE;EAAK,CAAC;EAC1D,OAAOH,SAAS,CAACJ,UAAU,CAAC;AAC9B,CAAC;AACD,SAASQ,YAAY,QAAQ,uCAAoC;AACjE,SAASC,uBAAuB,QAA+C,0CAAuC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AASvH,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,QAAQ,EAAEC,gBAAgB,GAAGlB,gCAAgC;EAC7DmB,gBAAgB;EAChBC,iBAAiB,GAAG,KAAK;EACzBC;AACF,CAAC,KAAK;EAEJ;EACA,MA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