react-native-games 0.3.0 → 0.5.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 (429) hide show
  1. package/README.md +134 -130
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +116 -343
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +182 -0
  5. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -0
  6. package/lib/module/games/balloon-blaster/BalloonBlasterService.js +123 -101
  7. package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -1
  8. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +119 -92
  9. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -1
  10. package/lib/module/games/balloon-blaster/components/BalloonComponent.js +123 -113
  11. package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -1
  12. package/lib/module/games/balloon-blaster/components/GameArea.js +137 -23
  13. package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
  14. package/lib/module/games/balloon-blaster/components/GameBackground.js +8 -83
  15. package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
  16. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +15 -22
  17. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
  18. package/lib/module/games/balloon-blaster/components/index.js +0 -4
  19. package/lib/module/games/balloon-blaster/components/index.js.map +1 -1
  20. package/lib/module/games/fruit-ninja/FruitNinja.js +143 -0
  21. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -0
  22. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +148 -0
  23. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -0
  24. package/lib/module/games/{fruit-slicer/FruitSlicerService.js → fruit-ninja/FruitNinjaService.js} +43 -21
  25. package/lib/module/games/fruit-ninja/FruitNinjaService.js.map +1 -0
  26. package/lib/module/games/fruit-ninja/FruitNinjaStore.js +191 -0
  27. package/lib/module/games/fruit-ninja/FruitNinjaStore.js.map +1 -0
  28. package/lib/module/games/{fruit-slicer → fruit-ninja}/components/FruitComponent.js +1 -1
  29. package/lib/module/games/fruit-ninja/components/FruitComponent.js.map +1 -0
  30. package/lib/module/games/fruit-ninja/components/GameArea.js +215 -0
  31. package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -0
  32. package/lib/module/games/{fruit-slicer → fruit-ninja}/components/GameBackground.js +250 -304
  33. package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -0
  34. package/lib/module/games/{fruit-slicer → fruit-ninja}/components/ScoreBoard.js +17 -47
  35. package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -0
  36. package/lib/module/games/fruit-ninja/components/index.js +7 -0
  37. package/lib/module/games/fruit-ninja/components/index.js.map +1 -0
  38. package/lib/module/games/maze-runner/MazeRunner.js +184 -169
  39. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  40. package/lib/module/games/maze-runner/MazeRunnerConstants.js +100 -0
  41. package/lib/module/games/maze-runner/MazeRunnerConstants.js.map +1 -0
  42. package/lib/module/games/maze-runner/MazeRunnerService.js +37 -14
  43. package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
  44. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +5 -4
  45. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -1
  46. package/lib/module/games/maze-runner/components/EnhancedGameArea.js +20 -15
  47. package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -1
  48. package/lib/module/games/maze-runner/components/GameBackground.js +151 -192
  49. package/lib/module/games/maze-runner/components/GameBackground.js.map +1 -1
  50. package/lib/module/games/maze-runner/components/ScoreBoard.js +15 -25
  51. package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
  52. package/lib/module/games/maze-runner/components/WallComponent.js +3 -2
  53. package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -1
  54. package/lib/module/games/maze-runner/components/index.js +0 -2
  55. package/lib/module/games/maze-runner/components/index.js.map +1 -1
  56. package/lib/module/games/popit-fidget/PopitFidget.js +294 -0
  57. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -0
  58. package/lib/module/games/popit-fidget/PopitFidgetConstants.js +113 -0
  59. package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -0
  60. package/lib/module/games/popit-fidget/PopitFidgetService.js +132 -0
  61. package/lib/module/games/popit-fidget/PopitFidgetService.js.map +1 -0
  62. package/lib/module/games/popit-fidget/PopitFidgetStore.js +163 -0
  63. package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -0
  64. package/lib/module/games/popit-fidget/components/BubbleComponent.js +198 -0
  65. package/lib/module/games/popit-fidget/components/BubbleComponent.js.map +1 -0
  66. package/lib/module/games/popit-fidget/components/FidgetGrid.js +165 -0
  67. package/lib/module/games/popit-fidget/components/FidgetGrid.js.map +1 -0
  68. package/lib/module/games/popit-fidget/components/GameBackground.js +177 -0
  69. package/lib/module/games/popit-fidget/components/GameBackground.js.map +1 -0
  70. package/lib/module/games/popit-fidget/components/ScoreBoard.js +75 -0
  71. package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -0
  72. package/lib/module/games/popit-fidget/components/index.js +7 -0
  73. package/lib/module/games/popit-fidget/components/index.js.map +1 -0
  74. package/lib/module/games/space-fighter/SpaceFighter.js +169 -0
  75. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -0
  76. package/lib/module/games/space-fighter/SpaceFighterConstants.js +108 -0
  77. package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -0
  78. package/lib/module/games/{space-traveller/SpaceTravellerService.js → space-fighter/SpaceFighterService.js} +48 -21
  79. package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -0
  80. package/lib/module/games/space-fighter/SpaceFighterStore.js +195 -0
  81. package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -0
  82. package/lib/module/games/{space-traveller → space-fighter}/components/AsteroidComponent.js +7 -5
  83. package/lib/module/games/space-fighter/components/AsteroidComponent.js.map +1 -0
  84. package/lib/module/games/space-fighter/components/GameArea.js +295 -0
  85. package/lib/module/games/space-fighter/components/GameArea.js.map +1 -0
  86. package/lib/module/games/{space-traveller → space-fighter}/components/GameBackground.js +10 -65
  87. package/lib/module/games/space-fighter/components/GameBackground.js.map +1 -0
  88. package/lib/module/games/{space-traveller → space-fighter}/components/ScoreBoard.js +20 -26
  89. package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -0
  90. package/lib/module/games/{space-traveller → space-fighter}/components/Spacecraft3D.js +72 -111
  91. package/lib/module/games/space-fighter/components/Spacecraft3D.js.map +1 -0
  92. package/lib/module/games/space-fighter/components/SpacecraftPath.js +52 -0
  93. package/lib/module/games/space-fighter/components/SpacecraftPath.js.map +1 -0
  94. package/lib/module/games/{space-traveller → space-fighter}/components/index.js +0 -4
  95. package/lib/module/games/space-fighter/components/index.js.map +1 -0
  96. package/lib/module/games/whack-a-mole/WhackAMole.js +263 -0
  97. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -0
  98. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +115 -0
  99. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js.map +1 -0
  100. package/lib/module/games/whack-a-mole/WhackAMoleService.js +120 -0
  101. package/lib/module/games/whack-a-mole/WhackAMoleService.js.map +1 -0
  102. package/lib/module/games/whack-a-mole/WhackAMoleStore.js +172 -0
  103. package/lib/module/games/whack-a-mole/WhackAMoleStore.js.map +1 -0
  104. package/lib/module/games/{cat-popper → whack-a-mole}/components/GameBackground.js +31 -91
  105. package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -0
  106. package/lib/module/games/whack-a-mole/components/GameGrid.js +97 -0
  107. package/lib/module/games/whack-a-mole/components/GameGrid.js.map +1 -0
  108. package/lib/module/games/{cat-popper → whack-a-mole}/components/GameHole.js +67 -54
  109. package/lib/module/games/whack-a-mole/components/GameHole.js.map +1 -0
  110. package/lib/module/games/{cat-popper/components/CatCharacter.js → whack-a-mole/components/MoleCharacter.js} +75 -115
  111. package/lib/module/games/whack-a-mole/components/MoleCharacter.js.map +1 -0
  112. package/lib/module/games/{cat-popper → whack-a-mole}/components/ScoreBoard.js +13 -17
  113. package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -0
  114. package/lib/module/games/{cat-popper → whack-a-mole}/components/index.js +1 -3
  115. package/lib/module/games/whack-a-mole/components/index.js.map +1 -0
  116. package/lib/module/index.js +4 -3
  117. package/lib/module/index.js.map +1 -1
  118. package/lib/module/services/GamesConstants.js +41 -519
  119. package/lib/module/services/GamesConstants.js.map +1 -1
  120. package/lib/module/services/GamesService.js +35 -23
  121. package/lib/module/services/GamesService.js.map +1 -1
  122. package/lib/module/services/HapticsService.js +77 -0
  123. package/lib/module/services/HapticsService.js.map +1 -0
  124. package/lib/module/services/SoundsService.js +171 -0
  125. package/lib/module/services/SoundsService.js.map +1 -0
  126. package/lib/module/shared/helpers/AnimationFrame.js +120 -0
  127. package/lib/module/shared/helpers/AnimationFrame.js.map +1 -0
  128. package/lib/module/shared/helpers/AnimationTracker.js +89 -0
  129. package/lib/module/shared/helpers/AnimationTracker.js.map +1 -0
  130. package/lib/module/shared/helpers/ErrorHandler.js +269 -0
  131. package/lib/module/shared/helpers/ErrorHandler.js.map +1 -0
  132. package/lib/module/shared/helpers/GameControlButton.js +219 -0
  133. package/lib/module/shared/helpers/GameControlButton.js.map +1 -0
  134. package/lib/module/{games/balloon-blaster/components → shared/helpers}/GameOverModal.js +25 -17
  135. package/lib/module/shared/helpers/GameOverModal.js.map +1 -0
  136. package/lib/module/shared/helpers/GameSettingsModal.js +287 -0
  137. package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -0
  138. package/lib/module/shared/helpers/ParticleBlast.js +133 -0
  139. package/lib/module/shared/helpers/ParticleBlast.js.map +1 -0
  140. package/lib/module/shared/helpers/ResponsiveScoreBoard.js +81 -0
  141. package/lib/module/shared/helpers/ResponsiveScoreBoard.js.map +1 -0
  142. package/lib/module/shared/helpers/index.js +12 -0
  143. package/lib/module/shared/helpers/index.js.map +1 -0
  144. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +2 -14
  145. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  146. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +144 -0
  147. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts.map +1 -0
  148. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +1 -1
  149. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -1
  150. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts +12 -2
  151. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -1
  152. package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -1
  153. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +1 -15
  154. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -1
  155. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -1
  156. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +1 -7
  157. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
  158. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +0 -4
  159. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -1
  160. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +4 -0
  161. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -0
  162. package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts +112 -0
  163. package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts.map +1 -0
  164. package/lib/typescript/src/games/{fruit-slicer/FruitSlicerService.d.ts → fruit-ninja/FruitNinjaService.d.ts} +13 -5
  165. package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts.map +1 -0
  166. package/lib/typescript/src/games/{fruit-slicer/FruitSlicerStore.d.ts → fruit-ninja/FruitNinjaStore.d.ts} +13 -4
  167. package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts.map +1 -0
  168. package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/FruitComponent.d.ts +1 -1
  169. package/lib/typescript/src/games/fruit-ninja/components/FruitComponent.d.ts.map +1 -0
  170. package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts +3 -0
  171. package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts.map +1 -0
  172. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -0
  173. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +3 -0
  174. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -0
  175. package/lib/typescript/src/games/fruit-ninja/components/index.d.ts +5 -0
  176. package/lib/typescript/src/games/fruit-ninja/components/index.d.ts.map +1 -0
  177. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +2 -16
  178. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  179. package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts +41 -0
  180. package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts.map +1 -0
  181. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +4 -2
  182. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
  183. package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -1
  184. package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -1
  185. package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts +2 -1
  186. package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts.map +1 -1
  187. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
  188. package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -1
  189. package/lib/typescript/src/games/maze-runner/components/index.d.ts +0 -2
  190. package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -1
  191. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +5 -0
  192. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -0
  193. package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts +45 -0
  194. package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts.map +1 -0
  195. package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts +33 -0
  196. package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts.map +1 -0
  197. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +36 -0
  198. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -0
  199. package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts +12 -0
  200. package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts.map +1 -0
  201. package/lib/typescript/src/games/popit-fidget/components/FidgetGrid.d.ts +12 -0
  202. package/lib/typescript/src/games/popit-fidget/components/FidgetGrid.d.ts.map +1 -0
  203. package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts +9 -0
  204. package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts.map +1 -0
  205. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +8 -0
  206. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -0
  207. package/lib/typescript/src/games/popit-fidget/components/index.d.ts +5 -0
  208. package/lib/typescript/src/games/popit-fidget/components/index.d.ts.map +1 -0
  209. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +4 -0
  210. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -0
  211. package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts +71 -0
  212. package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts.map +1 -0
  213. package/lib/typescript/src/games/{space-traveller/SpaceTravellerService.d.ts → space-fighter/SpaceFighterService.d.ts} +7 -4
  214. package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -0
  215. package/lib/typescript/src/games/{space-traveller/SpaceTravellerStore.d.ts → space-fighter/SpaceFighterStore.d.ts} +12 -4
  216. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -0
  217. package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts +8 -0
  218. package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts.map +1 -0
  219. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts +3 -0
  220. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -0
  221. package/lib/typescript/src/games/space-fighter/components/GameBackground.d.ts.map +1 -0
  222. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +3 -0
  223. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -0
  224. package/lib/typescript/src/games/{space-traveller → space-fighter}/components/Spacecraft3D.d.ts +1 -1
  225. package/lib/typescript/src/games/space-fighter/components/Spacecraft3D.d.ts.map +1 -0
  226. package/lib/typescript/src/games/space-fighter/components/SpacecraftPath.d.ts.map +1 -0
  227. package/lib/typescript/src/games/{space-traveller → space-fighter}/components/index.d.ts +0 -4
  228. package/lib/typescript/src/games/space-fighter/components/index.d.ts.map +1 -0
  229. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +4 -0
  230. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -0
  231. package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts +79 -0
  232. package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts.map +1 -0
  233. package/lib/typescript/src/games/whack-a-mole/WhackAMoleService.d.ts +33 -0
  234. package/lib/typescript/src/games/whack-a-mole/WhackAMoleService.d.ts.map +1 -0
  235. package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts +41 -0
  236. package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts.map +1 -0
  237. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -0
  238. package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/GameGrid.d.ts +2 -2
  239. package/lib/typescript/src/games/whack-a-mole/components/GameGrid.d.ts.map +1 -0
  240. package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/GameHole.d.ts +3 -2
  241. package/lib/typescript/src/games/whack-a-mole/components/GameHole.d.ts.map +1 -0
  242. package/lib/typescript/src/games/whack-a-mole/components/MoleCharacter.d.ts +7 -0
  243. package/lib/typescript/src/games/whack-a-mole/components/MoleCharacter.d.ts.map +1 -0
  244. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -0
  245. package/lib/typescript/src/games/whack-a-mole/components/index.d.ts +6 -0
  246. package/lib/typescript/src/games/whack-a-mole/components/index.d.ts.map +1 -0
  247. package/lib/typescript/src/index.d.ts +4 -3
  248. package/lib/typescript/src/index.d.ts.map +1 -1
  249. package/lib/typescript/src/services/GamesConstants.d.ts +61 -340
  250. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  251. package/lib/typescript/src/services/GamesService.d.ts +21 -3
  252. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  253. package/lib/typescript/src/services/HapticsService.d.ts +16 -0
  254. package/lib/typescript/src/services/HapticsService.d.ts.map +1 -0
  255. package/lib/typescript/src/services/SoundsService.d.ts +154 -0
  256. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -0
  257. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts +41 -0
  258. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +1 -0
  259. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts +45 -0
  260. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +1 -0
  261. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts +124 -0
  262. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +1 -0
  263. package/lib/typescript/src/shared/helpers/GameControlButton.d.ts +17 -0
  264. package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +1 -0
  265. package/lib/typescript/src/{games/cat-popper/components → shared/helpers}/GameOverModal.d.ts +5 -0
  266. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -0
  267. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts +9 -0
  268. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +1 -0
  269. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts +12 -0
  270. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -0
  271. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts +42 -0
  272. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts.map +1 -0
  273. package/lib/typescript/src/shared/helpers/index.d.ts +13 -0
  274. package/lib/typescript/src/shared/helpers/index.d.ts.map +1 -0
  275. package/package.json +9 -6
  276. package/lib/module/games/balloon-blaster/components/GameControls.js +0 -229
  277. package/lib/module/games/balloon-blaster/components/GameControls.js.map +0 -1
  278. package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +0 -1
  279. package/lib/module/games/balloon-blaster/components/ParticleSystem.js +0 -52
  280. package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +0 -1
  281. package/lib/module/games/balloon-blaster/components/SliceTrail.js +0 -58
  282. package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +0 -1
  283. package/lib/module/games/cat-popper/CatPopper.js +0 -230
  284. package/lib/module/games/cat-popper/CatPopper.js.map +0 -1
  285. package/lib/module/games/cat-popper/CatPopperService.js +0 -100
  286. package/lib/module/games/cat-popper/CatPopperService.js.map +0 -1
  287. package/lib/module/games/cat-popper/CatPopperStore.js +0 -113
  288. package/lib/module/games/cat-popper/CatPopperStore.js.map +0 -1
  289. package/lib/module/games/cat-popper/components/CatCharacter.js.map +0 -1
  290. package/lib/module/games/cat-popper/components/GameBackground.js.map +0 -1
  291. package/lib/module/games/cat-popper/components/GameControls.js +0 -230
  292. package/lib/module/games/cat-popper/components/GameControls.js.map +0 -1
  293. package/lib/module/games/cat-popper/components/GameGrid.js +0 -66
  294. package/lib/module/games/cat-popper/components/GameGrid.js.map +0 -1
  295. package/lib/module/games/cat-popper/components/GameHole.js.map +0 -1
  296. package/lib/module/games/cat-popper/components/GameOverModal.js +0 -131
  297. package/lib/module/games/cat-popper/components/GameOverModal.js.map +0 -1
  298. package/lib/module/games/cat-popper/components/ScoreBoard.js.map +0 -1
  299. package/lib/module/games/cat-popper/components/index.js.map +0 -1
  300. package/lib/module/games/fruit-slicer/FruitSlicer.js +0 -411
  301. package/lib/module/games/fruit-slicer/FruitSlicer.js.map +0 -1
  302. package/lib/module/games/fruit-slicer/FruitSlicerService.js.map +0 -1
  303. package/lib/module/games/fruit-slicer/FruitSlicerStore.js +0 -156
  304. package/lib/module/games/fruit-slicer/FruitSlicerStore.js.map +0 -1
  305. package/lib/module/games/fruit-slicer/components/FruitComponent.js.map +0 -1
  306. package/lib/module/games/fruit-slicer/components/GameArea.js +0 -50
  307. package/lib/module/games/fruit-slicer/components/GameArea.js.map +0 -1
  308. package/lib/module/games/fruit-slicer/components/GameBackground.js.map +0 -1
  309. package/lib/module/games/fruit-slicer/components/GameControls.js +0 -230
  310. package/lib/module/games/fruit-slicer/components/GameControls.js.map +0 -1
  311. package/lib/module/games/fruit-slicer/components/GameOverModal.js +0 -189
  312. package/lib/module/games/fruit-slicer/components/GameOverModal.js.map +0 -1
  313. package/lib/module/games/fruit-slicer/components/ParticleSystem.js +0 -52
  314. package/lib/module/games/fruit-slicer/components/ParticleSystem.js.map +0 -1
  315. package/lib/module/games/fruit-slicer/components/ScoreBoard.js.map +0 -1
  316. package/lib/module/games/fruit-slicer/components/SliceTrail.js +0 -58
  317. package/lib/module/games/fruit-slicer/components/SliceTrail.js.map +0 -1
  318. package/lib/module/games/fruit-slicer/components/index.js +0 -11
  319. package/lib/module/games/fruit-slicer/components/index.js.map +0 -1
  320. package/lib/module/games/maze-runner/components/GameControls.js +0 -129
  321. package/lib/module/games/maze-runner/components/GameControls.js.map +0 -1
  322. package/lib/module/games/maze-runner/components/GameOverModal.js +0 -134
  323. package/lib/module/games/maze-runner/components/GameOverModal.js.map +0 -1
  324. package/lib/module/games/space-traveller/SpaceTraveller.js +0 -393
  325. package/lib/module/games/space-traveller/SpaceTraveller.js.map +0 -1
  326. package/lib/module/games/space-traveller/SpaceTravellerService.js.map +0 -1
  327. package/lib/module/games/space-traveller/SpaceTravellerStore.js +0 -139
  328. package/lib/module/games/space-traveller/SpaceTravellerStore.js.map +0 -1
  329. package/lib/module/games/space-traveller/components/AsteroidComponent.js.map +0 -1
  330. package/lib/module/games/space-traveller/components/GameArea.js +0 -75
  331. package/lib/module/games/space-traveller/components/GameArea.js.map +0 -1
  332. package/lib/module/games/space-traveller/components/GameBackground.js.map +0 -1
  333. package/lib/module/games/space-traveller/components/GameControls.js +0 -177
  334. package/lib/module/games/space-traveller/components/GameControls.js.map +0 -1
  335. package/lib/module/games/space-traveller/components/GameOverModal.js +0 -182
  336. package/lib/module/games/space-traveller/components/GameOverModal.js.map +0 -1
  337. package/lib/module/games/space-traveller/components/ParticleComponent.js +0 -34
  338. package/lib/module/games/space-traveller/components/ParticleComponent.js.map +0 -1
  339. package/lib/module/games/space-traveller/components/ScoreBoard.js.map +0 -1
  340. package/lib/module/games/space-traveller/components/SettingsModal.js +0 -222
  341. package/lib/module/games/space-traveller/components/SettingsModal.js.map +0 -1
  342. package/lib/module/games/space-traveller/components/Spacecraft3D.js.map +0 -1
  343. package/lib/module/games/space-traveller/components/SpacecraftPath.js +0 -37
  344. package/lib/module/games/space-traveller/components/SpacecraftPath.js.map +0 -1
  345. package/lib/module/games/space-traveller/components/index.js.map +0 -1
  346. package/lib/module/shared/settings/GameSettings.js +0 -295
  347. package/lib/module/shared/settings/GameSettings.js.map +0 -1
  348. package/lib/module/shared/settings/SettingsService.js +0 -119
  349. package/lib/module/shared/settings/SettingsService.js.map +0 -1
  350. package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts +0 -10
  351. package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts.map +0 -1
  352. package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts +0 -9
  353. package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +0 -1
  354. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +0 -8
  355. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +0 -1
  356. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +0 -11
  357. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +0 -1
  358. package/lib/typescript/src/games/cat-popper/CatPopper.d.ts +0 -13
  359. package/lib/typescript/src/games/cat-popper/CatPopper.d.ts.map +0 -1
  360. package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts +0 -32
  361. package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts.map +0 -1
  362. package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts +0 -21
  363. package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts.map +0 -1
  364. package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts +0 -7
  365. package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts.map +0 -1
  366. package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts.map +0 -1
  367. package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts +0 -10
  368. package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts.map +0 -1
  369. package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts.map +0 -1
  370. package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts.map +0 -1
  371. package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts.map +0 -1
  372. package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts.map +0 -1
  373. package/lib/typescript/src/games/cat-popper/components/index.d.ts +0 -8
  374. package/lib/typescript/src/games/cat-popper/components/index.d.ts.map +0 -1
  375. package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts +0 -16
  376. package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts.map +0 -1
  377. package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts.map +0 -1
  378. package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts.map +0 -1
  379. package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts.map +0 -1
  380. package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts +0 -17
  381. package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts.map +0 -1
  382. package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts.map +0 -1
  383. package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts +0 -10
  384. package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts.map +0 -1
  385. package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts +0 -9
  386. package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts.map +0 -1
  387. package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts +0 -8
  388. package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts.map +0 -1
  389. package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts +0 -9
  390. package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts.map +0 -1
  391. package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts +0 -11
  392. package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts.map +0 -1
  393. package/lib/typescript/src/games/fruit-slicer/components/index.d.ts +0 -9
  394. package/lib/typescript/src/games/fruit-slicer/components/index.d.ts.map +0 -1
  395. package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts +0 -10
  396. package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts.map +0 -1
  397. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +0 -11
  398. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +0 -1
  399. package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts +0 -17
  400. package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts.map +0 -1
  401. package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts.map +0 -1
  402. package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts.map +0 -1
  403. package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts +0 -9
  404. package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts.map +0 -1
  405. package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts +0 -17
  406. package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts.map +0 -1
  407. package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts.map +0 -1
  408. package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts +0 -10
  409. package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts.map +0 -1
  410. package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts +0 -9
  411. package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts.map +0 -1
  412. package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts +0 -8
  413. package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts.map +0 -1
  414. package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts +0 -8
  415. package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts.map +0 -1
  416. package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts +0 -9
  417. package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts.map +0 -1
  418. package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts.map +0 -1
  419. package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts.map +0 -1
  420. package/lib/typescript/src/games/space-traveller/components/index.d.ts.map +0 -1
  421. package/lib/typescript/src/shared/settings/GameSettings.d.ts +0 -36
  422. package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +0 -1
  423. package/lib/typescript/src/shared/settings/SettingsService.d.ts +0 -32
  424. package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +0 -1
  425. /package/lib/typescript/src/games/{cat-popper → fruit-ninja}/components/GameBackground.d.ts +0 -0
  426. /package/lib/typescript/src/games/{fruit-slicer → space-fighter}/components/GameBackground.d.ts +0 -0
  427. /package/lib/typescript/src/games/{space-traveller → space-fighter}/components/SpacecraftPath.d.ts +0 -0
  428. /package/lib/typescript/src/games/{space-traveller → whack-a-mole}/components/GameBackground.d.ts +0 -0
  429. /package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/ScoreBoard.d.ts +0 -0
@@ -1,33 +1,40 @@
1
1
  "use strict";
2
2
 
3
- import React from 'react';
3
+ import React, { useCallback, useMemo } from 'react';
4
4
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
5
- import { useSharedValue, useAnimatedStyle, withSpring, withSequence, withTiming, interpolate, Extrapolation } from 'react-native-reanimated';
6
- import Animated from 'react-native-reanimated';
5
+ import Animated, { useSharedValue, useAnimatedStyle, withSpring, withSequence, withTiming, interpolate, Extrapolation } from 'react-native-reanimated';
7
6
  import { Canvas as SkiaCanvas, Circle, Group } from '@shopify/react-native-skia';
8
- import { GAME_CONFIG, COLORS } from "../CatPopperService.js";
9
- import { CatCharacter } from "./CatCharacter.js";
7
+ import { GAME_CONFIG, COLORS } from "../WhackAMoleService.js";
8
+ import { MoleCharacter } from "./MoleCharacter.js";
10
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- export const GameHole = ({
10
+ export const GameHole = /*#__PURE__*/React.memo(({
12
11
  hole,
13
- catAnimation,
12
+ moleAnimation,
14
13
  hitAnimation,
15
- onPress
14
+ onPress,
15
+ holeSize = GAME_CONFIG.HOLE_SIZE
16
16
  }) => {
17
17
  // Enhanced animation values for whack effect
18
18
  const whackScale = useSharedValue(1);
19
19
  const whackRotation = useSharedValue(0);
20
20
  const whackBounce = useSharedValue(0);
21
- const catStyle = useAnimatedStyle(() => {
22
- // Cat emerges from deep inside the hole
23
- const translateY = interpolate(catAnimation.value, [0, 0.3, 1], [GAME_CONFIG.HOLE_SIZE * 0.3, GAME_CONFIG.HOLE_SIZE * 0.1, -GAME_CONFIG.HOLE_SIZE * 0.05], Extrapolation.CLAMP);
24
21
 
25
- // Cat grows as it emerges from the hole
26
- const emergenceScale = interpolate(catAnimation.value, [0, 0.4, 1], [0.3, 0.8, 1], Extrapolation.CLAMP);
22
+ // Memoize animation constants to prevent recalculation
23
+ const animationConstants = useMemo(() => ({
24
+ translateYRange: [holeSize * 0.3, holeSize * 0.1, -holeSize * 0.05],
25
+ scaleRange: [0.3, 0.8, 1],
26
+ maxTranslateY: -holeSize * 0.1
27
+ }), [holeSize]);
28
+ const moleStyle = useAnimatedStyle(() => {
29
+ // Mole emerges from deep inside the hole
30
+ const translateY = interpolate(moleAnimation.value, [0, 0.3, 1], animationConstants.translateYRange, Extrapolation.CLAMP);
27
31
 
28
- // Constrained bounce - keep cat within hole area
32
+ // Mole grows as it emerges from the hole
33
+ const emergenceScale = interpolate(moleAnimation.value, [0, 0.4, 1], animationConstants.scaleRange, Extrapolation.CLAMP);
34
+
35
+ // Constrained bounce - keep mole within hole area
29
36
  const bounceY = whackBounce.value * -8;
30
- const finalTranslateY = Math.max(translateY + bounceY, -GAME_CONFIG.HOLE_SIZE * 0.1);
37
+ const finalTranslateY = Math.max(translateY + bounceY, animationConstants.maxTranslateY);
31
38
  return {
32
39
  transform: [{
33
40
  translateY: finalTranslateY
@@ -36,9 +43,9 @@ export const GameHole = ({
36
43
  }, {
37
44
  rotate: `${whackRotation.value}deg`
38
45
  }],
39
- opacity: catAnimation.value
46
+ opacity: moleAnimation.value
40
47
  };
41
- });
48
+ }, [animationConstants]);
42
49
  const hitStyle = useAnimatedStyle(() => {
43
50
  const scale = 1 + hitAnimation.value * 0.5;
44
51
  return {
@@ -49,10 +56,28 @@ export const GameHole = ({
49
56
  };
50
57
  });
51
58
 
52
- // Enhanced hit handler with coordinated whack animation
53
- const handlePress = () => {
54
- // Only trigger whack animation if cat is active
55
- if (hole.isActive || catAnimation.value > 0) {
59
+ // Memoize style calculations to prevent re-computation on every render
60
+ const holeContainerStyle = useMemo(() => [styles.holeContainer, {
61
+ width: holeSize,
62
+ height: holeSize
63
+ }], [holeSize]);
64
+ const holeStyle = useMemo(() => [styles.hole, {
65
+ width: holeSize * 0.8,
66
+ height: holeSize * 0.8
67
+ }], [holeSize]);
68
+ const hitEffectContainerStyle = useMemo(() => [styles.hitEffectContainer, {
69
+ width: holeSize,
70
+ height: holeSize
71
+ }], [holeSize]);
72
+ const moleContainerStyle = useMemo(() => [styles.moleContainer, {
73
+ bottom: holeSize * 0.1,
74
+ zIndex: 10
75
+ }], [holeSize]);
76
+
77
+ // Optimized hit handler with memoized hole state check
78
+ const handlePress = useCallback(() => {
79
+ // Only trigger whack animation if mole is active (optimized check)
80
+ if (hole.isActive || moleAnimation.value > 0) {
56
81
  // Whack animation sequence - constrained to hole area
57
82
  whackScale.value = withSequence(withSpring(1.3, {
58
83
  damping: 8,
@@ -80,9 +105,9 @@ export const GameHole = ({
80
105
  stiffness: 300
81
106
  }));
82
107
 
83
- // Delay hit effect to let cat animation show first
108
+ // Delay hit effect to let mole animation show first
84
109
  setTimeout(() => {
85
- // Trigger hit effect after cat starts reacting
110
+ // Trigger hit effect after mole starts reacting
86
111
  onPress(hole.id);
87
112
  }, 150);
88
113
 
@@ -93,57 +118,45 @@ export const GameHole = ({
93
118
  whackBounce.value = 0;
94
119
  }, 800);
95
120
  } else {
96
- // No cat present, just trigger normal hit
121
+ // No mole present, just trigger normal hit
97
122
  onPress(hole.id);
98
123
  }
99
- };
124
+ }, [hole.id, hole.isActive, onPress, moleAnimation]);
100
125
  return /*#__PURE__*/_jsxs(TouchableOpacity, {
101
- style: [styles.holeContainer, {
102
- width: GAME_CONFIG.HOLE_SIZE,
103
- height: GAME_CONFIG.HOLE_SIZE
104
- }],
126
+ style: holeContainerStyle,
105
127
  onPress: handlePress,
106
128
  activeOpacity: 0.8,
107
129
  children: [/*#__PURE__*/_jsx(View, {
108
- style: [styles.hole, {
109
- width: GAME_CONFIG.HOLE_SIZE * 0.8,
110
- height: GAME_CONFIG.HOLE_SIZE * 0.8
111
- }]
130
+ style: holeStyle
112
131
  }), /*#__PURE__*/_jsx(Animated.View, {
113
- style: [styles.hitEffectContainer, {
114
- width: GAME_CONFIG.HOLE_SIZE,
115
- height: GAME_CONFIG.HOLE_SIZE
116
- }, hitStyle],
132
+ style: [hitEffectContainerStyle, hitStyle],
117
133
  children: /*#__PURE__*/_jsx(SkiaCanvas, {
118
134
  style: {
119
- width: GAME_CONFIG.HOLE_SIZE,
120
- height: GAME_CONFIG.HOLE_SIZE
135
+ width: holeSize,
136
+ height: holeSize
121
137
  },
122
138
  children: /*#__PURE__*/_jsxs(Group, {
123
139
  children: [/*#__PURE__*/_jsx(Circle, {
124
- cx: GAME_CONFIG.HOLE_SIZE / 2,
125
- cy: GAME_CONFIG.HOLE_SIZE / 2,
126
- r: 30,
140
+ cx: holeSize / 2,
141
+ cy: holeSize / 2,
142
+ r: holeSize * 0.25,
127
143
  color: COLORS.HIT_EFFECT_OUTER
128
144
  }), /*#__PURE__*/_jsx(Circle, {
129
- cx: GAME_CONFIG.HOLE_SIZE / 2,
130
- cy: GAME_CONFIG.HOLE_SIZE / 2,
131
- r: 20,
145
+ cx: holeSize / 2,
146
+ cy: holeSize / 2,
147
+ r: holeSize * 0.17,
132
148
  color: COLORS.HIT_EFFECT_INNER
133
149
  })]
134
150
  })
135
151
  })
136
- }), (hole.isActive || catAnimation.value > 0 || whackScale.value !== 1) && /*#__PURE__*/_jsx(Animated.View, {
137
- style: [styles.catContainer, {
138
- bottom: GAME_CONFIG.HOLE_SIZE * 0.1,
139
- zIndex: 10
140
- }, catStyle],
141
- children: /*#__PURE__*/_jsx(CatCharacter, {
142
- size: GAME_CONFIG.HOLE_SIZE * 0.6
152
+ }), hole.isActive && /*#__PURE__*/_jsx(Animated.View, {
153
+ style: [moleContainerStyle, moleStyle],
154
+ children: /*#__PURE__*/_jsx(MoleCharacter, {
155
+ size: holeSize * 0.6
143
156
  })
144
157
  })]
145
158
  });
146
- };
159
+ });
147
160
  const styles = StyleSheet.create({
148
161
  holeContainer: {
149
162
  justifyContent: 'center',
@@ -164,7 +177,7 @@ const styles = StyleSheet.create({
164
177
  shadowRadius: 3.84,
165
178
  elevation: 5
166
179
  },
167
- catContainer: {
180
+ moleContainer: {
168
181
  position: 'absolute',
169
182
  justifyContent: 'center',
170
183
  alignItems: 'center',
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useMemo","View","TouchableOpacity","StyleSheet","Animated","useSharedValue","useAnimatedStyle","withSpring","withSequence","withTiming","interpolate","Extrapolation","Canvas","SkiaCanvas","Circle","Group","GAME_CONFIG","COLORS","MoleCharacter","jsx","_jsx","jsxs","_jsxs","GameHole","memo","hole","moleAnimation","hitAnimation","onPress","holeSize","HOLE_SIZE","whackScale","whackRotation","whackBounce","animationConstants","translateYRange","scaleRange","maxTranslateY","moleStyle","translateY","value","CLAMP","emergenceScale","bounceY","finalTranslateY","Math","max","transform","scale","rotate","opacity","hitStyle","holeContainerStyle","styles","holeContainer","width","height","holeStyle","hitEffectContainerStyle","hitEffectContainer","moleContainerStyle","moleContainer","bottom","zIndex","handlePress","isActive","damping","stiffness","duration","setTimeout","id","style","activeOpacity","children","cx","cy","r","color","HIT_EFFECT_OUTER","HIT_EFFECT_INNER","size","create","justifyContent","alignItems","position","backgroundColor","borderWidth","borderColor","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/GameHole.tsx"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ACb,CAAC;EACDhC,aAAa,EAAE;IACbuB,QAAQ,EAAE,UAAU;IACpBF,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBpB,MAAM,EAAE,EAAE;IACV8B,SAAS,EAAE;EACb,CAAC;EACDlC,kBAAkB,EAAE;IAClByB,QAAQ,EAAE,UAAU;IACpBF,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBW,aAAa,EAAE,MAAM;IACrB/B,MAAM,EAAE,CAAC;IACT8B,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,61 +1,21 @@
1
1
  "use strict";
2
2
 
3
- import React, { useEffect } from 'react';
3
+ import React from 'react';
4
4
  import { View, StyleSheet } from 'react-native';
5
- import { useSharedValue, useAnimatedStyle, withRepeat, withTiming, withSequence } from 'react-native-reanimated';
6
- import Animated from 'react-native-reanimated';
7
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- export const CatCharacter = ({
6
+ export const MoleCharacter = /*#__PURE__*/React.memo(({
9
7
  size
10
8
  }) => {
11
- const catSize = size * 0.8;
12
- const styles = createStyles(catSize);
9
+ const moleSize = size * 0.8;
10
+ const styles = createStyles(moleSize);
13
11
 
14
- // Subtle breathing animation
15
- const breathingScale = useSharedValue(1);
16
- const blinkOpacity = useSharedValue(1);
17
- useEffect(() => {
18
- // Gentle breathing effect
19
- breathingScale.value = withRepeat(withSequence(withTiming(1.02, {
20
- duration: 1500
21
- }), withTiming(1, {
22
- duration: 1500
23
- })), -1, false);
12
+ // Static mole - no animations for better performance
24
13
 
25
- // Occasional blinking
26
- const startBlinking = () => {
27
- blinkOpacity.value = withSequence(withTiming(0.1, {
28
- duration: 100
29
- }), withTiming(1, {
30
- duration: 100
31
- }));
32
- };
33
-
34
- // Random blinking every 2-4 seconds
35
- const blinkInterval = setInterval(() => {
36
- if (Math.random() > 0.3) {
37
- startBlinking();
38
- }
39
- }, 2000 + Math.random() * 2000);
40
- return () => clearInterval(blinkInterval);
41
- }, []);
42
- const animatedStyle = useAnimatedStyle(() => {
43
- return {
44
- transform: [{
45
- scale: breathingScale.value
46
- }]
47
- };
48
- });
49
- const eyeStyle = useAnimatedStyle(() => {
50
- return {
51
- opacity: blinkOpacity.value
52
- };
53
- });
54
- return /*#__PURE__*/_jsx(Animated.View, {
14
+ return /*#__PURE__*/_jsx(View, {
55
15
  style: [styles.container, {
56
16
  width: size,
57
17
  height: size
58
- }, animatedStyle],
18
+ }],
59
19
  children: /*#__PURE__*/_jsxs(View, {
60
20
  style: styles.body,
61
21
  children: [/*#__PURE__*/_jsxs(View, {
@@ -68,13 +28,13 @@ export const CatCharacter = ({
68
28
  style: styles.leftInnerEar
69
29
  }), /*#__PURE__*/_jsx(View, {
70
30
  style: styles.rightInnerEar
71
- }), /*#__PURE__*/_jsx(Animated.View, {
72
- style: [styles.leftEye, eyeStyle],
31
+ }), /*#__PURE__*/_jsx(View, {
32
+ style: styles.leftEye,
73
33
  children: /*#__PURE__*/_jsx(View, {
74
34
  style: styles.eyeHighlight
75
35
  })
76
- }), /*#__PURE__*/_jsx(Animated.View, {
77
- style: [styles.rightEye, eyeStyle],
36
+ }), /*#__PURE__*/_jsx(View, {
37
+ style: styles.rightEye,
78
38
  children: /*#__PURE__*/_jsx(View, {
79
39
  style: styles.eyeHighlight
80
40
  })
@@ -99,17 +59,17 @@ export const CatCharacter = ({
99
59
  })]
100
60
  })
101
61
  });
102
- };
103
- const createStyles = catSize => StyleSheet.create({
62
+ });
63
+ const createStyles = moleSize => StyleSheet.create({
104
64
  container: {
105
65
  justifyContent: 'center',
106
66
  alignItems: 'center'
107
67
  },
108
68
  body: {
109
- width: catSize,
110
- height: catSize * 0.9,
69
+ width: moleSize,
70
+ height: moleSize * 0.9,
111
71
  backgroundColor: '#FF8C42',
112
- borderRadius: catSize * 0.4,
72
+ borderRadius: moleSize * 0.4,
113
73
  justifyContent: 'center',
114
74
  alignItems: 'center',
115
75
  shadowColor: '#000',
@@ -122,111 +82,111 @@ const createStyles = catSize => StyleSheet.create({
122
82
  elevation: 5
123
83
  },
124
84
  head: {
125
- width: catSize * 0.8,
126
- height: catSize * 0.7,
85
+ width: moleSize * 0.8,
86
+ height: moleSize * 0.7,
127
87
  backgroundColor: '#FFA366',
128
- borderRadius: catSize * 0.35,
88
+ borderRadius: moleSize * 0.35,
129
89
  position: 'relative',
130
90
  justifyContent: 'center',
131
91
  alignItems: 'center',
132
- marginTop: -catSize * 0.1
92
+ marginTop: -moleSize * 0.1
133
93
  },
134
94
  leftEar: {
135
95
  position: 'absolute',
136
- top: -catSize * 0.15,
137
- left: catSize * 0.15,
138
- width: catSize * 0.25,
139
- height: catSize * 0.25,
96
+ top: -moleSize * 0.15,
97
+ left: moleSize * 0.15,
98
+ width: moleSize * 0.25,
99
+ height: moleSize * 0.25,
140
100
  backgroundColor: '#FF8C42',
141
- borderRadius: catSize * 0.125,
101
+ borderRadius: moleSize * 0.125,
142
102
  transform: [{
143
103
  rotate: '-30deg'
144
104
  }]
145
105
  },
146
106
  rightEar: {
147
107
  position: 'absolute',
148
- top: -catSize * 0.15,
149
- right: catSize * 0.15,
150
- width: catSize * 0.25,
151
- height: catSize * 0.25,
108
+ top: -moleSize * 0.15,
109
+ right: moleSize * 0.15,
110
+ width: moleSize * 0.25,
111
+ height: moleSize * 0.25,
152
112
  backgroundColor: '#FF8C42',
153
- borderRadius: catSize * 0.125,
113
+ borderRadius: moleSize * 0.125,
154
114
  transform: [{
155
115
  rotate: '30deg'
156
116
  }]
157
117
  },
158
118
  leftInnerEar: {
159
119
  position: 'absolute',
160
- top: -catSize * 0.12,
161
- left: catSize * 0.18,
162
- width: catSize * 0.15,
163
- height: catSize * 0.15,
120
+ top: -moleSize * 0.12,
121
+ left: moleSize * 0.18,
122
+ width: moleSize * 0.15,
123
+ height: moleSize * 0.15,
164
124
  backgroundColor: '#FF6B1A',
165
- borderRadius: catSize * 0.075,
125
+ borderRadius: moleSize * 0.075,
166
126
  transform: [{
167
127
  rotate: '-30deg'
168
128
  }]
169
129
  },
170
130
  rightInnerEar: {
171
131
  position: 'absolute',
172
- top: -catSize * 0.12,
173
- right: catSize * 0.18,
174
- width: catSize * 0.15,
175
- height: catSize * 0.15,
132
+ top: -moleSize * 0.12,
133
+ right: moleSize * 0.18,
134
+ width: moleSize * 0.15,
135
+ height: moleSize * 0.15,
176
136
  backgroundColor: '#FF6B1A',
177
- borderRadius: catSize * 0.075,
137
+ borderRadius: moleSize * 0.075,
178
138
  transform: [{
179
139
  rotate: '30deg'
180
140
  }]
181
141
  },
182
142
  leftEye: {
183
143
  position: 'absolute',
184
- top: catSize * 0.15,
185
- left: catSize * 0.2,
186
- width: catSize * 0.12,
187
- height: catSize * 0.15,
144
+ top: moleSize * 0.15,
145
+ left: moleSize * 0.2,
146
+ width: moleSize * 0.12,
147
+ height: moleSize * 0.15,
188
148
  backgroundColor: '#000000',
189
- borderRadius: catSize * 0.075,
149
+ borderRadius: moleSize * 0.075,
190
150
  justifyContent: 'center',
191
151
  alignItems: 'center'
192
152
  },
193
153
  rightEye: {
194
154
  position: 'absolute',
195
- top: catSize * 0.15,
196
- right: catSize * 0.2,
197
- width: catSize * 0.12,
198
- height: catSize * 0.15,
155
+ top: moleSize * 0.15,
156
+ right: moleSize * 0.2,
157
+ width: moleSize * 0.12,
158
+ height: moleSize * 0.15,
199
159
  backgroundColor: '#000000',
200
- borderRadius: catSize * 0.075,
160
+ borderRadius: moleSize * 0.075,
201
161
  justifyContent: 'center',
202
162
  alignItems: 'center'
203
163
  },
204
164
  eyeHighlight: {
205
- width: catSize * 0.04,
206
- height: catSize * 0.06,
165
+ width: moleSize * 0.04,
166
+ height: moleSize * 0.06,
207
167
  backgroundColor: '#FFFFFF',
208
- borderRadius: catSize * 0.02
168
+ borderRadius: moleSize * 0.02
209
169
  },
210
170
  nose: {
211
171
  position: 'absolute',
212
- top: catSize * 0.28,
213
- width: catSize * 0.08,
214
- height: catSize * 0.06,
172
+ top: moleSize * 0.28,
173
+ width: moleSize * 0.08,
174
+ height: moleSize * 0.06,
215
175
  backgroundColor: '#FF1493',
216
- borderRadius: catSize * 0.04
176
+ borderRadius: moleSize * 0.04
217
177
  },
218
178
  mouth: {
219
179
  position: 'absolute',
220
- top: catSize * 0.35,
221
- width: catSize * 0.2,
222
- height: catSize * 0.1,
180
+ top: moleSize * 0.35,
181
+ width: moleSize * 0.2,
182
+ height: moleSize * 0.1,
223
183
  justifyContent: 'center',
224
184
  alignItems: 'center'
225
185
  },
226
186
  leftMouth: {
227
187
  position: 'absolute',
228
188
  left: 0,
229
- width: catSize * 0.08,
189
+ width: moleSize * 0.08,
230
190
  height: 2,
231
191
  backgroundColor: '#000000',
232
192
  borderRadius: 1,
@@ -237,7 +197,7 @@ const createStyles = catSize => StyleSheet.create({
237
197
  rightMouth: {
238
198
  position: 'absolute',
239
199
  right: 0,
240
- width: catSize * 0.08,
200
+ width: moleSize * 0.08,
241
201
  height: 2,
242
202
  backgroundColor: '#000000',
243
203
  borderRadius: 1,
@@ -247,35 +207,35 @@ const createStyles = catSize => StyleSheet.create({
247
207
  },
248
208
  leftWhisker1: {
249
209
  position: 'absolute',
250
- top: catSize * 0.35,
251
- left: -catSize * 0.15,
252
- width: catSize * 0.2,
210
+ top: moleSize * 0.35,
211
+ left: -moleSize * 0.15,
212
+ width: moleSize * 0.2,
253
213
  height: 1,
254
214
  backgroundColor: '#000000'
255
215
  },
256
216
  leftWhisker2: {
257
217
  position: 'absolute',
258
- top: catSize * 0.4,
259
- left: -catSize * 0.15,
260
- width: catSize * 0.18,
218
+ top: moleSize * 0.4,
219
+ left: -moleSize * 0.15,
220
+ width: moleSize * 0.18,
261
221
  height: 1,
262
222
  backgroundColor: '#000000'
263
223
  },
264
224
  rightWhisker1: {
265
225
  position: 'absolute',
266
- top: catSize * 0.35,
267
- right: -catSize * 0.15,
268
- width: catSize * 0.2,
226
+ top: moleSize * 0.35,
227
+ right: -moleSize * 0.15,
228
+ width: moleSize * 0.2,
269
229
  height: 1,
270
230
  backgroundColor: '#000000'
271
231
  },
272
232
  rightWhisker2: {
273
233
  position: 'absolute',
274
- top: catSize * 0.4,
275
- right: -catSize * 0.15,
276
- width: catSize * 0.18,
234
+ top: moleSize * 0.4,
235
+ right: -moleSize * 0.15,
236
+ width: moleSize * 0.18,
277
237
  height: 1,
278
238
  backgroundColor: '#000000'
279
239
  }
280
240
  });
281
- //# sourceMappingURL=CatCharacter.js.map
241
+ //# sourceMappingURL=MoleCharacter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","StyleSheet","jsx","_jsx","jsxs","_jsxs","MoleCharacter","memo","size","moleSize","styles","createStyles","style","container","width","height","children","body","head","leftEar","rightEar","leftInnerEar","rightInnerEar","leftEye","eyeHighlight","rightEye","nose","mouth","leftMouth","rightMouth","leftWhisker1","leftWhisker2","rightWhisker1","rightWhisker2","create","justifyContent","alignItems","backgroundColor","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","position","marginTop","top","left","transform","rotate","right"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/MoleCharacter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMhD,OAAO,MAAMC,aAA2C,gBAAGP,KAAK,CAACQ,IAAI,CAAC,CAAC;EAAEC;AAAK,CAAC,KAAK;EAClF,MAAMC,QAAQ,GAAGD,IAAI,GAAG,GAAG;EAC3B,MAAME,MAAM,GAAGC,YAAY,CAACF,QAAQ,CAAC;;EAErC;;EAEA,oBACEN,IAAA,CAACH,IAAI;IAACY,KAAK,EAAE,CAACF,MAAM,CAACG,SAAS,EAAE;MAAEC,KAAK,EAAEN,IAAI;MAAEO,MAAM,EAAEP;IAAK,CAAC,CAAE;IAAAQ,QAAA,eAE7DX,KAAA,CAACL,IAAI;MAACY,KAAK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E,CAAC;IACTsB,eAAe,EAAE;EACnB,CAAC;EACDJ,aAAa,EAAE;IACbW,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAErC,QAAQ,GAAG,GAAG;IACnByC,KAAK,EAAE,CAACzC,QAAQ,GAAG,IAAI;IACvBK,KAAK,EAAEL,QAAQ,GAAG,IAAI;IACtBM,MAAM,EAAE,CAAC;IACTsB,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,8 +2,9 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { View, Text, StyleSheet } from 'react-native';
5
+ import { RESPONSIVE_SCOREBOARD_CONTAINER, RESPONSIVE_SCOREBOARD_FONTS } from "../../../shared/helpers/index.js";
5
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const ScoreBoard = ({
7
+ export const ScoreBoard = /*#__PURE__*/React.memo(({
7
8
  score,
8
9
  timeLeft
9
10
  }) => {
@@ -29,9 +30,15 @@ export const ScoreBoard = ({
29
30
  })]
30
31
  })]
31
32
  });
32
- };
33
+ });
33
34
  const styles = StyleSheet.create({
34
35
  scoreBoard: {
36
+ ...RESPONSIVE_SCOREBOARD_CONTAINER,
37
+ position: 'absolute',
38
+ top: 0,
39
+ left: 20,
40
+ right: 20,
41
+ zIndex: 100,
35
42
  flexDirection: 'row',
36
43
  justifyContent: 'space-between',
37
44
  alignItems: 'center',
@@ -39,37 +46,26 @@ const styles = StyleSheet.create({
39
46
  // Semi-transparent green
40
47
  borderRadius: 16,
41
48
  padding: 20,
42
- marginBottom: 20,
43
49
  borderWidth: 1,
44
- borderColor: 'rgba(255, 255, 255, 0.3)',
45
- // Subtle white border
46
- shadowColor: '#000',
47
- shadowOffset: {
48
- width: 0,
49
- height: 2
50
- },
51
- shadowOpacity: 0.15,
52
- // Reduced shadow opacity
53
- shadowRadius: 3.84,
54
- elevation: 3 // Reduced elevation
50
+ borderColor: 'rgba(255, 255, 255, 0.3)' // Subtle white border
55
51
  },
56
52
  scoreSection: {
57
53
  alignItems: 'center',
58
54
  flex: 1
59
55
  },
60
56
  scoreLabel: {
61
- fontSize: 18,
57
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.labelSize,
62
58
  fontWeight: 'bold',
63
59
  color: '#ffffff',
64
60
  marginBottom: 4
65
61
  },
66
62
  scoreValue: {
67
- fontSize: 30,
63
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.valueSize,
68
64
  fontWeight: 'bold',
69
65
  color: '#92400e'
70
66
  },
71
67
  timeValue: {
72
- fontSize: 30,
68
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.timeSize,
73
69
  fontWeight: 'bold',
74
70
  color: '#92400e'
75
71
  }
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","StyleSheet","RESPONSIVE_SCOREBOARD_CONTAINER","RESPONSIVE_SCOREBOARD_FONTS","jsx","_jsx","jsxs","_jsxs","ScoreBoard","memo","score","timeLeft","style","styles","scoreBoard","children","scoreSection","scoreLabel","scoreValue","timeValue","create","position","top","left","right","zIndex","flexDirection","justifyContent","alignItems","backgroundColor","borderRadius","padding","borderWidth","borderColor","flex","fontSize","labelSize","fontWeight","color","marginBottom","valueSize","timeSize"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,+BAA+B,EAAEC,2BAA2B,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOvG,OAAO,MAAMC,UAAqC,gBAAGV,KAAK,CAACW,IAAI,CAAC,CAAC;EAAEC,KAAK;EAAEC;AAAS,CAAC,KAAK;EACvF,oBACEJ,KAAA,CAACR,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,UAAW;IAAAC,QAAA,gBAC7BR,KAAA,CAACR,IAAI;MA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KAAK,EAAE,SAAS;IAChBC,YAAY,EAAE;EAChB,CAAC;EACDrB,UAAU,EAAE;IACViB,QAAQ,EAAEhC,2BAA2B,CAACqC,SAAS;IAC/CH,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT,CAAC;EACDnB,SAAS,EAAE;IACTgB,QAAQ,EAAEhC,2BAA2B,CAACsC,QAAQ;IAC9CJ,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
@@ -3,8 +3,6 @@
3
3
  export { ScoreBoard } from "./ScoreBoard.js";
4
4
  export { GameHole } from "./GameHole.js";
5
5
  export { GameGrid } from "./GameGrid.js";
6
- export { GameControls } from "./GameControls.js";
7
- export { GameOverModal } from "./GameOverModal.js";
8
- export { CatCharacter } from "./CatCharacter.js";
6
+ export { MoleCharacter } from "./MoleCharacter.js";
9
7
  export { GameBackground } from "./GameBackground.js";
10
8
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScoreBoard","GameHole","GameGrid","MoleCharacter","GameBackground"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/index.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAc;AACzC,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,cAAc,QAAQ,qBAAkB","ignoreList":[]}
@@ -2,10 +2,11 @@
2
2
 
3
3
  // Games
4
4
  export * from "./games/balloon-blaster/BalloonBlaster.js";
5
- export * from "./games/fruit-slicer/FruitSlicer.js";
5
+ export * from "./games/popit-fidget/PopitFidget.js";
6
+ export * from "./games/whack-a-mole/WhackAMole.js";
7
+ export * from "./games/fruit-ninja/FruitNinja.js";
6
8
  export * from "./games/maze-runner/MazeRunner.js";
7
- export * from "./games/space-traveller/SpaceTraveller.js";
8
- export * from "./games/cat-popper/CatPopper.js";
9
+ export * from "./games/space-fighter/SpaceFighter.js";
9
10
 
10
11
  // Services
11
12
  export * from "./services/GamesService.js";