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 @@
1
+ {"version":3,"names":["React","View","TouchableOpacity","Text","Modal","StyleSheet","Dimensions","Canvas","LinearGradient","Rect","vec","jsx","_jsx","jsxs","_jsxs","width","height","get","GameOverModal","isVisible","score","onPlayAgain","visible","transparent","animationType","onRequestClose","children","style","styles","gameOverOverlay","position","top","left","right","bottom","x","y","start","end","colors","gameOverModal","gameOverEmoji","gameOverTitle","scoreContainer","finalScoreLabel","finalScoreValue","onPress","playAgainButton","playAgainText","create","flex","backgroundColor","justifyContent","alignItems","borderRadius","padding","marginHorizontal","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","maxWidth","fontSize","textAlign","marginBottom","color","fontWeight","textShadowColor","textShadowOffset","textShadowRadius","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../../src","sources":["games/space-traveller/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC1F,SAASC,MAAM,EAAEC,cAAc,EAAEC,IAAI,EAAEC,GAAG,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/E,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC;AAQlD,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,SAAS;EAAEC,KAAK;EAAEC;AAAY,CAAC,KAAK;EAEhG,oBACET,IAAA,CAACR,KAAK;IACJkB,OAAO,EAAEH,SAAU;IACnBI,WAAW,EAAE,IAAK;IAClBC,aAAa,EAAC,MAAM;IACpBC,cAAc,EAAEA,CAAA,KAAM,CAAC,CAAE;IAAAC,QAAA,eAEzBZ,KAAA,CAACb,IAAI;MAAC0B,KAAK,EA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S,EAAE,QAAQ;IACnBI,eAAe,EAAE,iBAAiB;IAClCC,gBAAgB,EAAE;MAAExD,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACzCwD,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const ParticleComponent = ({
7
+ particle
8
+ }) => {
9
+ const opacity = particle.life / particle.maxLife;
10
+ // Use the particle's size property, scaled by opacity for fade effect
11
+ const size = particle.size * opacity;
12
+ return /*#__PURE__*/_jsx(View, {
13
+ style: {
14
+ position: 'absolute',
15
+ left: particle.x - size / 2,
16
+ top: particle.y - size / 2,
17
+ width: size,
18
+ height: size,
19
+ borderRadius: size / 2,
20
+ backgroundColor: particle.color,
21
+ opacity,
22
+ // Add shadow for more dramatic effect on larger particles
23
+ shadowColor: particle.color,
24
+ shadowOffset: {
25
+ width: 0,
26
+ height: 0
27
+ },
28
+ shadowOpacity: 0.6,
29
+ shadowRadius: size * 0.3,
30
+ elevation: 5
31
+ }
32
+ });
33
+ };
34
+ //# sourceMappingURL=ParticleComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","jsx","_jsx","ParticleComponent","particle","opacity","life","maxLife","size","style","position","left","x","top","y","width","height","borderRadius","backgroundColor","color","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../src","sources":["games/space-traveller/components/ParticleComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOpC,OAAO,MAAMC,iBAAmD,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACnF,MAAMC,OAAO,GAAGD,QAAQ,CAACE,IAAI,GAAGF,QAAQ,CAACG,OAAO;EAChD;EACA,MAAMC,IAAI,GAAGJ,QAAQ,CAACI,IAAI,GAAGH,OAAO;EAEpC,oBACEH,IAAA,CAACF,IAAI;IACHS,KAAK,EAAE;MACLC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAEP,QAAQ,CAACQ,CAAC,GAAGJ,IAAI,GAAG,CAAC;MAC3BK,GAAG,EAAET,QAAQ,CAACU,CAAC,GAAGN,IAAI,GAAG,CAAC;MAC1BO,KAAK,EAAEP,IAAI;MACXQ,MAAM,EAAER,IAAI;MACZS,YAAY,EAAET,IAAI,GAAG,CAAC;MACtBU,eAAe,EAAEd,QAAQ,CAACe,KAAK;MAC/Bd,OAAO;MACP;MACAe,WAAW,EAAEhB,QAAQ,CAACe,KAAK;MAC3BE,YAAY,EAAE;QAAEN,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MACrCM,aAAa,EAAE,GAAG;MAClBC,YAAY,EAAEf,IAAI,GAAG,GAAG;MACxBgB,SAAS,EAAE;IACb;EAAE,CACH,CAAC;AAEN,CAAC","ignoreList":[]}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View, Text, StyleSheet } from 'react-native';
5
+ import { useSpaceTravellerStore } from "../SpaceTravellerStore.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ export const ScoreBoard = ({
8
+ score,
9
+ timeLeft
10
+ }) => {
11
+ const currentLives = useSpaceTravellerStore(state => state.lives);
12
+ const maxLives = 3;
13
+ return /*#__PURE__*/_jsxs(View, {
14
+ style: [styles.scoreBoard, {
15
+ zIndex: 1000
16
+ }],
17
+ children: [/*#__PURE__*/_jsxs(View, {
18
+ style: styles.scoreItem,
19
+ children: [/*#__PURE__*/_jsx(Text, {
20
+ style: styles.scoreLabel,
21
+ children: "Score"
22
+ }), /*#__PURE__*/_jsx(Text, {
23
+ style: styles.scoreValue,
24
+ children: score
25
+ })]
26
+ }), /*#__PURE__*/_jsxs(View, {
27
+ style: styles.scoreItem,
28
+ children: [/*#__PURE__*/_jsx(Text, {
29
+ style: styles.scoreLabel,
30
+ children: "Time"
31
+ }), /*#__PURE__*/_jsxs(Text, {
32
+ style: styles.timeValue,
33
+ children: [timeLeft, "s"]
34
+ })]
35
+ }), /*#__PURE__*/_jsxs(View, {
36
+ style: styles.scoreItem,
37
+ children: [/*#__PURE__*/_jsx(Text, {
38
+ style: styles.scoreLabel,
39
+ children: "Lives"
40
+ }), /*#__PURE__*/_jsx(View, {
41
+ style: styles.livesContainer,
42
+ children: Array.from({
43
+ length: maxLives
44
+ }, (_, i) => /*#__PURE__*/_jsx(Text, {
45
+ style: [styles.lifeIcon, i < currentLives ? styles.lifeActive : styles.lifeInactive],
46
+ children: i < currentLives ? '❤️' : '🖤'
47
+ }, i))
48
+ })]
49
+ })]
50
+ });
51
+ };
52
+ const styles = StyleSheet.create({
53
+ scoreBoard: {
54
+ flexDirection: 'row',
55
+ justifyContent: 'space-between',
56
+ alignItems: 'center',
57
+ backgroundColor: 'rgba(30, 27, 75, 0.3)',
58
+ // Deep space blue with transparency
59
+ borderRadius: 20,
60
+ padding: 20,
61
+ borderWidth: 2,
62
+ borderColor: 'rgba(139, 92, 246, 0.3)',
63
+ // Purple space border
64
+ shadowColor: '#000',
65
+ shadowOffset: {
66
+ width: 0,
67
+ height: 4
68
+ },
69
+ shadowOpacity: 0.3,
70
+ shadowRadius: 8,
71
+ elevation: 8
72
+ },
73
+ scoreItem: {
74
+ alignItems: 'center',
75
+ flex: 1
76
+ },
77
+ scoreLabel: {
78
+ fontSize: 16,
79
+ fontWeight: 'bold',
80
+ color: '#e2e8f0',
81
+ // Light space gray
82
+ marginBottom: 6,
83
+ textShadowColor: 'rgba(0,0,0,0.5)',
84
+ textShadowOffset: {
85
+ width: 1,
86
+ height: 1
87
+ },
88
+ textShadowRadius: 2
89
+ },
90
+ scoreValue: {
91
+ fontSize: 28,
92
+ fontWeight: 'bold',
93
+ color: '#fbbf24',
94
+ // Bright yellow for score
95
+ textShadowColor: 'rgba(0,0,0,0.5)',
96
+ textShadowOffset: {
97
+ width: 1,
98
+ height: 1
99
+ },
100
+ textShadowRadius: 2
101
+ },
102
+ timeValue: {
103
+ fontSize: 24,
104
+ fontWeight: 'bold',
105
+ color: '#34d399',
106
+ // Bright green for time
107
+ textShadowColor: 'rgba(0,0,0,0.5)',
108
+ textShadowOffset: {
109
+ width: 1,
110
+ height: 1
111
+ },
112
+ textShadowRadius: 2
113
+ },
114
+ livesContainer: {
115
+ flexDirection: 'row',
116
+ justifyContent: 'center'
117
+ },
118
+ lifeIcon: {
119
+ fontSize: 22,
120
+ marginHorizontal: 2
121
+ },
122
+ lifeActive: {
123
+ color: '#ef4444',
124
+ // Bright red for active lives
125
+ textShadowColor: 'rgba(0,0,0,0.5)',
126
+ textShadowOffset: {
127
+ width: 1,
128
+ height: 1
129
+ },
130
+ textShadowRadius: 2
131
+ },
132
+ lifeInactive: {
133
+ color: '#374151',
134
+ // Dark gray for lost lives
135
+ textShadowColor: 'rgba(255,255,255,0.2)',
136
+ textShadowOffset: {
137
+ width: 1,
138
+ height: 1
139
+ },
140
+ textShadowRadius: 1
141
+ }
142
+ });
143
+ //# sourceMappingURL=ScoreBoard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","StyleSheet","useSpaceTravellerStore","jsx","_jsx","jsxs","_jsxs","ScoreBoard","score","timeLeft","currentLives","state","lives","maxLives","style","styles","scoreBoard","zIndex","children","scoreItem","scoreLabel","scoreValue","timeValue","livesContainer","Array","from","length","_","i","lifeIcon","lifeActive","lifeInactive","create","flexDirection","justifyContent","alignItems","backgroundColor","borderRadius","padding","borderWidth","borderColor","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","flex","fontSize","fontWeight","color","marginBottom","textShadowColor","textShadowOffset","textShadowRadius","marginHorizontal"],"sourceRoot":"../../../../../src","sources":["games/space-traveller/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,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text, Modal, StyleSheet } from 'react-native';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ export const SettingsModal = ({
7
+ isVisible,
8
+ onClose,
9
+ onResetHighScore
10
+ }) => {
11
+ return /*#__PURE__*/_jsx(Modal, {
12
+ visible: isVisible,
13
+ transparent: true,
14
+ animationType: "slide",
15
+ onRequestClose: onClose,
16
+ children: /*#__PURE__*/_jsx(View, {
17
+ style: styles.settingsOverlay,
18
+ children: /*#__PURE__*/_jsxs(View, {
19
+ style: styles.settingsModal,
20
+ children: [/*#__PURE__*/_jsx(Text, {
21
+ style: styles.settingsEmoji,
22
+ children: "\u2699\uFE0F"
23
+ }), /*#__PURE__*/_jsx(Text, {
24
+ style: styles.settingsTitle,
25
+ children: "Game Settings"
26
+ }), /*#__PURE__*/_jsxs(View, {
27
+ style: styles.gameInfoContainer,
28
+ children: [/*#__PURE__*/_jsx(Text, {
29
+ style: styles.gameInfoTitle,
30
+ children: "Game Controls"
31
+ }), /*#__PURE__*/_jsx(Text, {
32
+ style: styles.gameInfoText,
33
+ children: "\uD83D\uDE80 Touch and drag to control spacecraft"
34
+ }), /*#__PURE__*/_jsx(Text, {
35
+ style: styles.gameInfoText,
36
+ children: "\uD83E\uDEA8 Avoid asteroids to survive"
37
+ }), /*#__PURE__*/_jsx(Text, {
38
+ style: styles.gameInfoText,
39
+ children: "\u23F1\uFE0F Survive as long as possible"
40
+ })]
41
+ }), /*#__PURE__*/_jsxs(View, {
42
+ style: styles.scoringContainer,
43
+ children: [/*#__PURE__*/_jsx(Text, {
44
+ style: styles.scoringTitle,
45
+ children: "Scoring System"
46
+ }), /*#__PURE__*/_jsx(Text, {
47
+ style: styles.rookieText,
48
+ children: "\uD83D\uDE80 Rookie Astronaut: 0-49 points"
49
+ }), /*#__PURE__*/_jsx(Text, {
50
+ style: styles.navigatorText,
51
+ children: "\uD83E\uDD48 Space Navigator: 50-99 points"
52
+ }), /*#__PURE__*/_jsx(Text, {
53
+ style: styles.aceText,
54
+ children: "\uD83E\uDD47 Ace Pilot: 100-199 points"
55
+ }), /*#__PURE__*/_jsx(Text, {
56
+ style: styles.commanderText,
57
+ children: "\uD83C\uDFC6 Space Commander: 200+ points"
58
+ })]
59
+ }), /*#__PURE__*/_jsxs(View, {
60
+ style: styles.actionButtonsContainer,
61
+ children: [onResetHighScore && /*#__PURE__*/_jsx(TouchableOpacity, {
62
+ onPress: onResetHighScore,
63
+ style: styles.resetButton,
64
+ children: /*#__PURE__*/_jsx(Text, {
65
+ style: styles.resetButtonText,
66
+ children: "\uD83D\uDDD1\uFE0F Reset High Score"
67
+ })
68
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
69
+ onPress: onClose,
70
+ style: styles.closeSettingsButton,
71
+ children: /*#__PURE__*/_jsx(Text, {
72
+ style: styles.closeSettingsText,
73
+ children: "\u2705 Close Settings"
74
+ })
75
+ })]
76
+ })]
77
+ })
78
+ })
79
+ });
80
+ };
81
+ const styles = StyleSheet.create({
82
+ settingsOverlay: {
83
+ flex: 1,
84
+ backgroundColor: 'rgba(0, 0, 0, 0.85)',
85
+ justifyContent: 'center',
86
+ alignItems: 'center'
87
+ },
88
+ settingsModal: {
89
+ backgroundColor: '#1e3a8a',
90
+ // bg-blue-900
91
+ borderRadius: 24,
92
+ padding: 32,
93
+ marginHorizontal: 24,
94
+ shadowColor: '#000',
95
+ shadowOffset: {
96
+ width: 0,
97
+ height: 4
98
+ },
99
+ shadowOpacity: 0.5,
100
+ shadowRadius: 8,
101
+ elevation: 10,
102
+ borderWidth: 2,
103
+ borderColor: '#1d4ed8',
104
+ // border-blue-700
105
+ maxWidth: 400,
106
+ width: '100%'
107
+ },
108
+ settingsEmoji: {
109
+ fontSize: 48,
110
+ textAlign: 'center',
111
+ marginBottom: 16
112
+ },
113
+ settingsTitle: {
114
+ color: '#ffffff',
115
+ fontSize: 24,
116
+ fontWeight: 'bold',
117
+ textAlign: 'center',
118
+ marginBottom: 32
119
+ },
120
+ gameInfoContainer: {
121
+ marginBottom: 24,
122
+ backgroundColor: '#1e40af',
123
+ // bg-blue-800
124
+ borderRadius: 16,
125
+ padding: 16
126
+ },
127
+ gameInfoTitle: {
128
+ fontSize: 18,
129
+ color: '#ffffff',
130
+ fontWeight: 'bold',
131
+ marginBottom: 12,
132
+ textAlign: 'center'
133
+ },
134
+ gameInfoText: {
135
+ color: '#ffffff',
136
+ textAlign: 'center',
137
+ marginBottom: 8
138
+ },
139
+ scoringContainer: {
140
+ marginBottom: 24,
141
+ backgroundColor: '#1d4ed8',
142
+ // bg-blue-700
143
+ borderRadius: 12,
144
+ padding: 16
145
+ },
146
+ scoringTitle: {
147
+ fontSize: 18,
148
+ color: '#ffffff',
149
+ fontWeight: 'bold',
150
+ marginBottom: 12,
151
+ textAlign: 'center'
152
+ },
153
+ rookieText: {
154
+ color: '#22d3ee',
155
+ // text-cyan-400
156
+ textAlign: 'center',
157
+ marginBottom: 4
158
+ },
159
+ navigatorText: {
160
+ color: '#fb923c',
161
+ // text-orange-400
162
+ textAlign: 'center',
163
+ marginBottom: 4
164
+ },
165
+ aceText: {
166
+ color: '#d1d5db',
167
+ // text-gray-300
168
+ textAlign: 'center',
169
+ marginBottom: 4
170
+ },
171
+ commanderText: {
172
+ color: '#fbbf24',
173
+ // text-yellow-400
174
+ textAlign: 'center'
175
+ },
176
+ actionButtonsContainer: {
177
+ gap: 12
178
+ },
179
+ resetButton: {
180
+ backgroundColor: '#dc2626',
181
+ // bg-red-600
182
+ paddingVertical: 16,
183
+ paddingHorizontal: 24,
184
+ borderRadius: 16,
185
+ shadowColor: '#000',
186
+ shadowOffset: {
187
+ width: 0,
188
+ height: 2
189
+ },
190
+ shadowOpacity: 0.25,
191
+ shadowRadius: 3.84,
192
+ elevation: 5
193
+ },
194
+ resetButtonText: {
195
+ color: '#ffffff',
196
+ fontWeight: 'bold',
197
+ fontSize: 18,
198
+ textAlign: 'center'
199
+ },
200
+ closeSettingsButton: {
201
+ backgroundColor: '#4b5563',
202
+ // bg-gray-600
203
+ paddingVertical: 16,
204
+ paddingHorizontal: 24,
205
+ borderRadius: 16,
206
+ shadowColor: '#000',
207
+ shadowOffset: {
208
+ width: 0,
209
+ height: 2
210
+ },
211
+ shadowOpacity: 0.25,
212
+ shadowRadius: 3.84,
213
+ elevation: 5
214
+ },
215
+ closeSettingsText: {
216
+ color: '#ffffff',
217
+ fontWeight: 'bold',
218
+ fontSize: 18,
219
+ textAlign: 'center'
220
+ }
221
+ });
222
+ //# sourceMappingURL=SettingsModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","TouchableOpacity","Text","Modal","StyleSheet","jsx","_jsx","jsxs","_jsxs","SettingsModal","isVisible","onClose","onResetHighScore","visible","transparent","animationType","onRequestClose","children","style","styles","settingsOverlay","settingsModal","settingsEmoji","settingsTitle","gameInfoContainer","gameInfoTitle","gameInfoText","scoringContainer","scoringTitle","rookieText","navigatorText","aceText","commanderText","actionButtonsContainer","onPress","resetButton","resetButtonText","closeSettingsButton","closeSettingsText","create","flex","backgroundColor","justifyContent","alignItems","borderRadius","padding","marginHorizontal","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","maxWidth","fontSize","textAlign","marginBottom","color","fontWeight","gap","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../../src","sources":["games/space-traveller/components/SettingsModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ/E,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,SAAS;EAAEC,OAAO;EAAEC;AAAiB,CAAC,KAAK;EACvG,oBACEN,IAAA,CAACH,KAAK;IACJU,OAAO,EAAEH,SAAU;IACnBI,WAAW,EAAE,IAAK;IAClBC,aAAa,EAAC,OAAO;IACr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