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,393 @@
1
+ "use strict";
2
+
3
+ import { useEffect, useRef } from 'react';
4
+ import { View, Dimensions, StyleSheet, Modal } from 'react-native';
5
+ import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
6
+ import * as Speech from 'expo-speech';
7
+ import * as Haptics from 'expo-haptics';
8
+ import { useSpaceTravellerStore } from "./SpaceTravellerStore.js";
9
+ import { createSpaceTravellerService } from "./SpaceTravellerService.js";
10
+ import { ScoreBoard, GameArea, GameControls, GameOverModal, GameBackground } from "./components/index.js";
11
+ // Define game-specific types and constants locally
12
+
13
+ import { GameSettings } from "../../shared/settings/GameSettings.js";
14
+ import { createGameSettingsStore } from "../../shared/settings/SettingsService.js";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ const {
17
+ width,
18
+ height
19
+ } = Dimensions.get('window');
20
+ export const SpaceTraveller = ({
21
+ showSettingsModal = false,
22
+ onToggleSettingsModal,
23
+ settings,
24
+ onSettingsChange
25
+ }) => {
26
+ let gameService = useRef(createSpaceTravellerService(width, height)).current;
27
+
28
+ // Create unified game settings store
29
+ const useSettingsStore = useRef(() => {
30
+ const defaultSettings = {
31
+ difficulty: 'medium',
32
+ soundEnabled: true,
33
+ hapticEnabled: true,
34
+ gameDuration: 120
35
+ };
36
+
37
+ // Wrapper function to handle the callback type mismatch
38
+ const handleSettingsChange = onSettingsChange ? newSettings => {
39
+ const spaceTravellerSettings = {
40
+ ...settings,
41
+ difficulty: newSettings.difficulty,
42
+ soundEnabled: newSettings.soundEnabled,
43
+ hapticEnabled: newSettings.hapticEnabled,
44
+ gameDuration: newSettings.gameDuration,
45
+ asteroidSpawnInterval: settings?.asteroidSpawnInterval || 1000,
46
+ asteroidSpeed: settings?.asteroidSpeed || 2
47
+ };
48
+ onSettingsChange(spaceTravellerSettings);
49
+ } : undefined;
50
+ return createGameSettingsStore(settings || defaultSettings, handleSettingsChange);
51
+ }).current;
52
+ const settingsStore = useSettingsStore();
53
+ const {
54
+ soundEnabled
55
+ } = settingsStore();
56
+ const {
57
+ score,
58
+ timeLeft,
59
+ isPlaying,
60
+ gameOver,
61
+ asteroids,
62
+ spacecraft,
63
+ spacecraftPath,
64
+ isControllingSpacecraft,
65
+ startGame,
66
+ stopGame,
67
+ resetGame,
68
+ decrementTime,
69
+ addAsteroids,
70
+ removeAsteroid,
71
+ updateAsteroid,
72
+ updateSpacecraft,
73
+ setSpacecraftPath,
74
+ setIsControllingSpacecraft,
75
+ markAsteroidPassed,
76
+ loseLife
77
+ } = useSpaceTravellerStore();
78
+ const currentSpacecraftPath = useRef([]);
79
+ const dragOffset = useRef(null);
80
+ const initialSpacecraftPosition = useRef(null);
81
+ const initialTouchPosition = useRef(null);
82
+ const pendingSpacecraftUpdate = useRef(null);
83
+ const animationFrameId = useRef(null);
84
+ const lastCollisionTime = useRef(0);
85
+ const handleSpacecraftControlStart = (x, y) => {
86
+ const currentSpacecraft = useSpaceTravellerStore.getState().spacecraft;
87
+ const controlledSpacecraft = gameService.controlSpacecraft({
88
+ ...currentSpacecraft
89
+ }, x, y);
90
+ updateSpacecraft(controlledSpacecraft);
91
+ setIsControllingSpacecraft(true);
92
+ currentSpacecraftPath.current = [{
93
+ x,
94
+ y
95
+ }];
96
+ setSpacecraftPath([{
97
+ x,
98
+ y
99
+ }]);
100
+ };
101
+ const processPendingSpacecraftUpdate = () => {
102
+ if (pendingSpacecraftUpdate.current) {
103
+ const {
104
+ x,
105
+ y
106
+ } = pendingSpacecraftUpdate.current;
107
+ const currentSpacecraft = useSpaceTravellerStore.getState().spacecraft;
108
+ const controlledSpacecraft = gameService.controlSpacecraft({
109
+ ...currentSpacecraft
110
+ }, x, y);
111
+ updateSpacecraft(controlledSpacecraft);
112
+ currentSpacecraftPath.current.push({
113
+ x,
114
+ y
115
+ });
116
+ if (currentSpacecraftPath.current.length > 10) {
117
+ currentSpacecraftPath.current.shift();
118
+ }
119
+ setSpacecraftPath([...currentSpacecraftPath.current]);
120
+ pendingSpacecraftUpdate.current = null;
121
+ }
122
+ animationFrameId.current = null;
123
+ };
124
+ const handleSpacecraftControlMove = (x, y) => {
125
+ pendingSpacecraftUpdate.current = {
126
+ x,
127
+ y
128
+ };
129
+ if (animationFrameId.current === null) {
130
+ animationFrameId.current = requestAnimationFrame(processPendingSpacecraftUpdate);
131
+ }
132
+ };
133
+ const handleSpacecraftControlEnd = () => {
134
+ if (animationFrameId.current !== null) {
135
+ cancelAnimationFrame(animationFrameId.current);
136
+ animationFrameId.current = null;
137
+ }
138
+ if (pendingSpacecraftUpdate.current) {
139
+ processPendingSpacecraftUpdate();
140
+ }
141
+ const currentSpacecraft = useSpaceTravellerStore.getState().spacecraft;
142
+ const releasedSpacecraft = gameService.releaseSpacecraft({
143
+ ...currentSpacecraft
144
+ });
145
+ updateSpacecraft(releasedSpacecraft);
146
+ setIsControllingSpacecraft(false);
147
+ dragOffset.current = null;
148
+ initialSpacecraftPosition.current = null;
149
+ setTimeout(() => {
150
+ currentSpacecraftPath.current = [];
151
+ setSpacecraftPath([]);
152
+ }, 500);
153
+ };
154
+
155
+ // Sound and haptic feedback
156
+ const playSuccessSound = () => {
157
+ if (soundEnabled) {
158
+ Speech.speak('Nice!', {
159
+ pitch: 1.8,
160
+ rate: 2.0,
161
+ volume: 0.6
162
+ });
163
+ }
164
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
165
+ };
166
+ const playCollisionSound = () => {
167
+ if (soundEnabled) {
168
+ Speech.speak('Ouch!', {
169
+ pitch: 0.8,
170
+ rate: 1.5,
171
+ volume: 0.8
172
+ });
173
+ }
174
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
175
+ };
176
+ const playGameOverSound = () => {
177
+ if (soundEnabled) {
178
+ Speech.speak('Game Over!', {
179
+ pitch: 1.0,
180
+ rate: 1.2,
181
+ volume: 0.7
182
+ });
183
+ }
184
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
185
+ };
186
+ const handleStartGame = async () => {
187
+ startGame(settingsStore().gameDuration);
188
+ const initialSpacecraft = gameService.getInitialSpacecraft();
189
+ updateSpacecraft(initialSpacecraft);
190
+ gameService.startGameTimer(decrementTime);
191
+ gameService.startAsteroidSpawning(addAsteroids);
192
+ gameService.startPhysicsLoop(updateSpacecraft, updateAsteroid, removeAsteroid, () => useSpaceTravellerStore.getState().spacecraft, () => useSpaceTravellerStore.getState().asteroids);
193
+ if (soundEnabled) {
194
+ if (await Speech.isSpeakingAsync()) {
195
+ Speech.stop();
196
+ }
197
+ Speech.speak('Mission started! Navigate through the asteroid field!');
198
+ }
199
+ };
200
+ const handleStopGame = () => {
201
+ stopGame();
202
+ gameService.cleanup();
203
+ currentSpacecraftPath.current = [];
204
+ setSpacecraftPath([]);
205
+ setIsControllingSpacecraft(false);
206
+ };
207
+ const handleResetGame = () => {
208
+ resetGame();
209
+ const initialSpacecraft = gameService.getInitialSpacecraft();
210
+ updateSpacecraft(initialSpacecraft);
211
+ gameService.cleanup();
212
+ currentSpacecraftPath.current = [];
213
+ setSpacecraftPath([]);
214
+ setIsControllingSpacecraft(false);
215
+ };
216
+
217
+ // Collision detection effect
218
+ useEffect(() => {
219
+ if (!isPlaying) return;
220
+ const interval = setInterval(() => {
221
+ const currentSpacecraft = useSpaceTravellerStore.getState().spacecraft;
222
+ const currentAsteroids = useSpaceTravellerStore.getState().asteroids;
223
+ const collision = gameService.checkCollision(currentSpacecraft, currentAsteroids);
224
+ const now = Date.now();
225
+ if (collision.collision && now - lastCollisionTime.current > 1000) {
226
+ lastCollisionTime.current = now;
227
+ playCollisionSound();
228
+ gameService.createCollisionParticles(currentSpacecraft.x, currentSpacecraft.y);
229
+ loseLife();
230
+ const resetSpacecraft = gameService.getInitialSpacecraft();
231
+ updateSpacecraft(resetSpacecraft);
232
+ return;
233
+ }
234
+
235
+ // Check asteroid passes for scoring
236
+ const passedAsteroids = gameService.checkAsteroidPass(currentSpacecraft, currentAsteroids);
237
+ passedAsteroids.forEach(pairId => {
238
+ markAsteroidPassed(pairId);
239
+ playSuccessSound();
240
+ });
241
+ }, 50);
242
+ return () => clearInterval(interval);
243
+ }, [isPlaying]);
244
+
245
+ // Game over effect
246
+ useEffect(() => {
247
+ if (gameOver) {
248
+ playGameOverSound();
249
+ gameService.cleanup();
250
+ }
251
+ }, [gameOver]);
252
+
253
+ // Initialize and cleanup
254
+ useEffect(() => {
255
+ const initialSpacecraft = gameService.getInitialSpacecraft();
256
+ updateSpacecraft(initialSpacecraft);
257
+ return () => {
258
+ gameService.cleanup();
259
+ };
260
+ }, []);
261
+ const panGesture = Gesture.Pan().onStart(event => {
262
+ const currentSpacecraft = useSpaceTravellerStore.getState().spacecraft;
263
+ initialSpacecraftPosition.current = {
264
+ x: currentSpacecraft.x,
265
+ y: currentSpacecraft.y
266
+ };
267
+ initialTouchPosition.current = {
268
+ x: event.absoluteX,
269
+ y: event.absoluteY
270
+ };
271
+ handleSpacecraftControlStart(currentSpacecraft.x, currentSpacecraft.y);
272
+ }).onUpdate(event => {
273
+ if (!initialSpacecraftPosition.current || !initialTouchPosition.current) {
274
+ return;
275
+ }
276
+ const dx = event.absoluteX - initialTouchPosition.current.x;
277
+ const newX = initialSpacecraftPosition.current.x + dx;
278
+ const newY = initialSpacecraftPosition.current.y;
279
+ handleSpacecraftControlMove(newX, newY);
280
+ }).onEnd(() => {
281
+ initialTouchPosition.current = null;
282
+ handleSpacecraftControlEnd();
283
+ }).onFinalize(() => {
284
+ initialTouchPosition.current = null;
285
+ handleSpacecraftControlEnd();
286
+ }).runOnJS(true);
287
+ return /*#__PURE__*/_jsx(GestureHandlerRootView, {
288
+ style: {
289
+ flex: 1
290
+ },
291
+ children: /*#__PURE__*/_jsx(GameBackground, {
292
+ children: /*#__PURE__*/_jsxs(View, {
293
+ style: styles.container,
294
+ children: [/*#__PURE__*/_jsx(View, {
295
+ style: {
296
+ zIndex: 100,
297
+ position: 'relative',
298
+ padding: 20
299
+ },
300
+ children: /*#__PURE__*/_jsx(ScoreBoard, {
301
+ score: score,
302
+ timeLeft: timeLeft
303
+ })
304
+ }), /*#__PURE__*/_jsxs(View, {
305
+ style: {
306
+ flex: 1,
307
+ position: 'relative'
308
+ },
309
+ children: [/*#__PURE__*/_jsx(GameArea, {
310
+ asteroids: asteroids,
311
+ spacecraft: spacecraft,
312
+ particles: gameService.getParticles(),
313
+ spacecraftPath: spacecraftPath,
314
+ isControllingSpacecraft: isControllingSpacecraft,
315
+ onSpacecraftControl: handleSpacecraftControlMove,
316
+ onSpacecraftRelease: handleSpacecraftControlEnd
317
+ }), /*#__PURE__*/_jsx(GestureDetector, {
318
+ gesture: panGesture,
319
+ children: /*#__PURE__*/_jsx(View, {
320
+ style: {
321
+ position: 'absolute',
322
+ top: 0,
323
+ left: 0,
324
+ right: 0,
325
+ bottom: 0,
326
+ backgroundColor: 'transparent',
327
+ zIndex: 10
328
+ }
329
+ })
330
+ })]
331
+ }), /*#__PURE__*/_jsx(GameControls, {
332
+ isPlaying: isPlaying,
333
+ gameOver: gameOver,
334
+ onStartGame: handleStartGame,
335
+ onStopGame: handleStopGame
336
+ }), /*#__PURE__*/_jsx(GameOverModal, {
337
+ isVisible: gameOver,
338
+ score: score,
339
+ onPlayAgain: handleResetGame
340
+ }), /*#__PURE__*/_jsx(Modal, {
341
+ visible: showSettingsModal,
342
+ animationType: "slide",
343
+ presentationStyle: "pageSheet",
344
+ onRequestClose: onToggleSettingsModal,
345
+ children: /*#__PURE__*/_jsx(GameSettings, {
346
+ gameId: "space-craft",
347
+ onClose: onToggleSettingsModal || (() => {}),
348
+ settingsStore: settingsStore()
349
+ })
350
+ })]
351
+ })
352
+ })
353
+ });
354
+ };
355
+ const styles = StyleSheet.create({
356
+ container: {
357
+ flex: 1
358
+ },
359
+ settingsOverlay: {
360
+ position: 'absolute',
361
+ top: 0,
362
+ left: 0,
363
+ right: 0,
364
+ bottom: 0,
365
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
366
+ justifyContent: 'center',
367
+ alignItems: 'center'
368
+ },
369
+ settingsModal: {
370
+ backgroundColor: '#1e3a8a',
371
+ // bg-blue-900
372
+ padding: 24,
373
+ borderRadius: 16
374
+ },
375
+ settingsTitle: {
376
+ color: '#ffffff',
377
+ fontSize: 20,
378
+ fontWeight: 'bold',
379
+ marginBottom: 16
380
+ },
381
+ closeButton: {
382
+ backgroundColor: '#2563eb',
383
+ // bg-blue-600
384
+ paddingVertical: 8,
385
+ paddingHorizontal: 16,
386
+ borderRadius: 8
387
+ },
388
+ closeButtonText: {
389
+ color: '#ffffff',
390
+ fontWeight: '600'
391
+ }
392
+ });
393
+ //# sourceMappingURL=SpaceTraveller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useRef","View","Dimensions","StyleSheet","Modal","Gesture","GestureDetector","GestureHandlerRootView","Speech","Haptics","useSpaceTravellerStore","createSpaceTravellerService","ScoreBoard","GameArea","GameControls","GameOverModal","GameBackground","GameSettings","createGameSettingsStore","jsx","_jsx","jsxs","_jsxs","width","height","get","SpaceTraveller","showSettingsModal","onToggleSettingsModal","settings","onSettingsChange","gameService","current","useSettingsStore","defaultSettings","difficulty","soundEnabled","hapticEnabled","gameDuration","handleSettingsChange","newSettings","spaceTravellerSettings","asteroidSpawnInterval","asteroidSpeed","undefined","settingsStore","score","timeLeft","isPlaying","gameOver","asteroids","spacecraft","spacecraftPath","isControllingSpacecraft","startGame","stopGame","resetGame","decrementTime","addAsteroids","removeAsteroid","updateAsteroid","updateSpacecraft","setSpacecraftPath","setIsControllingSpacecraft","markAsteroidPassed","loseLife","currentSpacecraftPath","dragOffset","initialSpacecraftPosition","initialTouchPosition","pendingSpacecraftUpdate","animationFrameId","lastCollisionTime","handleSpacecraftControlStart","x","y","currentSpacecraft","getState","controlledSpacecraft","controlSpacecraft","processPendingSpacecraftUpdate","push","length","shift","handleSpacecraftControlMove","requestAnimationFrame","handleSpacecraftControlEnd","cancelAnimationFrame","releasedSpacecraft","releaseSpacecraft","setTimeout","playSuccessSound","speak","pitch","rate","volume","impactAsync","ImpactFeedbackStyle","Light","playCollisionSound","Heavy","playGameOverSound","handleStartGame","initialSpacecraft","getInitialSpacecraft","startGameTimer","startAsteroidSpawning","startPhysicsLoop","isSpeakingAsync","stop","handleStopGame","cleanup","handleResetGame","interval","setInterval","currentAsteroids","collision","checkCollision","now","Date","createCollisionParticles","resetSpacecraft","passedAsteroids","checkAsteroidPass","forEach","pairId","clearInterval","panGesture","Pan","onStart","event","absoluteX","absoluteY","onUpdate","dx","newX","newY","onEnd","onFinalize","runOnJS","style","flex","children","styles","container","zIndex","position","padding","particles","getParticles","onSpacecraftControl","onSpacecraftRelease","gesture","top","left","right","bottom","backgroundColor","onStartGame","onStopGame","isVisible","onPlayAgain","visible","animationType","presentationStyle","onRequestClose","gameId","onClose","create","settingsOverlay","justifyContent","alignItems","settingsModal","borderRadius","settingsTitle","color","fontSize","fontWeight","marginBottom","closeButton","paddingVertical","paddingHorizontal","closeButtonText"],"sourceRoot":"../../../../src","sources":["games/space-traveller/SpaceTraveller.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAClE,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,QAAQ,4BAAyB;AACrE,SAASC,UAAU,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,aAAa,EAAEC,cAAc,QAAQ,uBAAc;AAChG;;AAUA,SAASC,YAAY,QAAQ,uCAAoC;AACjE,SAASC,uBAAuB,QAAQ,0CAAuC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA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