react-native-games 0.4.0 → 0.6.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 (281) hide show
  1. package/README.md +121 -130
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +121 -422
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +30 -31
  5. package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -1
  6. package/lib/module/games/balloon-blaster/BalloonBlasterService.js +52 -124
  7. package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -1
  8. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +12 -1
  9. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -1
  10. package/lib/module/games/balloon-blaster/components/BalloonComponent.js +102 -75
  11. package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -1
  12. package/lib/module/games/balloon-blaster/components/GameArea.js +139 -30
  13. package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
  14. package/lib/module/games/balloon-blaster/components/GameBackground.js +2 -2
  15. package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
  16. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +7 -6
  17. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
  18. package/lib/module/games/balloon-blaster/components/index.js +0 -3
  19. package/lib/module/games/balloon-blaster/components/index.js.map +1 -1
  20. package/lib/module/games/fruit-ninja/FruitNinja.js +93 -376
  21. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
  22. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +19 -22
  23. package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -1
  24. package/lib/module/games/fruit-ninja/FruitNinjaService.js +25 -8
  25. package/lib/module/games/fruit-ninja/FruitNinjaService.js.map +1 -1
  26. package/lib/module/games/fruit-ninja/FruitNinjaStore.js +29 -4
  27. package/lib/module/games/fruit-ninja/FruitNinjaStore.js.map +1 -1
  28. package/lib/module/games/fruit-ninja/components/GameArea.js +194 -29
  29. package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -1
  30. package/lib/module/games/fruit-ninja/components/GameBackground.js +107 -190
  31. package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -1
  32. package/lib/module/games/fruit-ninja/components/ScoreBoard.js +9 -30
  33. package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
  34. package/lib/module/games/fruit-ninja/components/index.js +0 -3
  35. package/lib/module/games/fruit-ninja/components/index.js.map +1 -1
  36. package/lib/module/games/maze-runner/MazeRunner.js +106 -109
  37. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  38. package/lib/module/games/maze-runner/MazeRunnerConstants.js +19 -24
  39. package/lib/module/games/maze-runner/MazeRunnerConstants.js.map +1 -1
  40. package/lib/module/games/maze-runner/MazeRunnerService.js +2 -1
  41. package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
  42. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +5 -4
  43. package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -1
  44. package/lib/module/games/maze-runner/components/EnhancedGameArea.js +32 -15
  45. package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -1
  46. package/lib/module/games/maze-runner/components/ScoreBoard.js +8 -3
  47. package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
  48. package/lib/module/games/maze-runner/components/WallComponent.js +3 -2
  49. package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -1
  50. package/lib/module/games/maze-runner/components/index.js +0 -1
  51. package/lib/module/games/maze-runner/components/index.js.map +1 -1
  52. package/lib/module/games/popit-fidget/PopitFidget.js +113 -112
  53. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
  54. package/lib/module/games/popit-fidget/PopitFidgetConstants.js +20 -23
  55. package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -1
  56. package/lib/module/games/popit-fidget/PopitFidgetService.js +0 -59
  57. package/lib/module/games/popit-fidget/PopitFidgetService.js.map +1 -1
  58. package/lib/module/games/popit-fidget/PopitFidgetStore.js +0 -27
  59. package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -1
  60. package/lib/module/games/popit-fidget/components/BubbleComponent.js +24 -22
  61. package/lib/module/games/popit-fidget/components/BubbleComponent.js.map +1 -1
  62. package/lib/module/games/popit-fidget/components/GameBackground.js +4 -1
  63. package/lib/module/games/popit-fidget/components/GameBackground.js.map +1 -1
  64. package/lib/module/games/popit-fidget/components/ScoreBoard.js +9 -2
  65. package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -1
  66. package/lib/module/games/popit-fidget/components/index.js +0 -2
  67. package/lib/module/games/popit-fidget/components/index.js.map +1 -1
  68. package/lib/module/games/space-fighter/SpaceFighter.js +121 -369
  69. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
  70. package/lib/module/games/space-fighter/SpaceFighterConstants.js +21 -23
  71. package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -1
  72. package/lib/module/games/space-fighter/SpaceFighterService.js +30 -11
  73. package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -1
  74. package/lib/module/games/space-fighter/SpaceFighterStore.js +54 -2
  75. package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -1
  76. package/lib/module/games/space-fighter/components/AsteroidComponent.js +7 -5
  77. package/lib/module/games/space-fighter/components/AsteroidComponent.js.map +1 -1
  78. package/lib/module/games/space-fighter/components/GameArea.js +234 -14
  79. package/lib/module/games/space-fighter/components/GameArea.js.map +1 -1
  80. package/lib/module/games/space-fighter/components/GameBackground.js +10 -65
  81. package/lib/module/games/space-fighter/components/GameBackground.js.map +1 -1
  82. package/lib/module/games/space-fighter/components/ScoreBoard.js +9 -7
  83. package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -1
  84. package/lib/module/games/space-fighter/components/Spacecraft3D.js +90 -250
  85. package/lib/module/games/space-fighter/components/Spacecraft3D.js.map +1 -1
  86. package/lib/module/games/space-fighter/components/SpacecraftPath.js +42 -27
  87. package/lib/module/games/space-fighter/components/SpacecraftPath.js.map +1 -1
  88. package/lib/module/games/space-fighter/components/index.js +0 -3
  89. package/lib/module/games/space-fighter/components/index.js.map +1 -1
  90. package/lib/module/games/whack-a-mole/WhackAMole.js +63 -73
  91. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
  92. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +17 -19
  93. package/lib/module/games/whack-a-mole/WhackAMoleConstants.js.map +1 -1
  94. package/lib/module/games/whack-a-mole/WhackAMoleStore.js +20 -7
  95. package/lib/module/games/whack-a-mole/WhackAMoleStore.js.map +1 -1
  96. package/lib/module/games/whack-a-mole/components/GameHole.js +2 -2
  97. package/lib/module/games/whack-a-mole/components/GameHole.js.map +1 -1
  98. package/lib/module/games/whack-a-mole/components/ScoreBoard.js +5 -1
  99. package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
  100. package/lib/module/games/whack-a-mole/components/index.js +0 -1
  101. package/lib/module/games/whack-a-mole/components/index.js.map +1 -1
  102. package/lib/module/services/GamesConstants.js +13 -21
  103. package/lib/module/services/GamesConstants.js.map +1 -1
  104. package/lib/module/services/GamesService.js +30 -26
  105. package/lib/module/services/GamesService.js.map +1 -1
  106. package/lib/module/services/SoundsService.js +21 -21
  107. package/lib/module/shared/helpers/AnimationFrame.js +120 -0
  108. package/lib/module/shared/helpers/AnimationFrame.js.map +1 -0
  109. package/lib/module/shared/helpers/AnimationTracker.js +89 -0
  110. package/lib/module/shared/helpers/AnimationTracker.js.map +1 -0
  111. package/lib/module/shared/helpers/ErrorHandler.js +269 -0
  112. package/lib/module/shared/helpers/ErrorHandler.js.map +1 -0
  113. package/lib/module/shared/helpers/GameControlButton.js +67 -58
  114. package/lib/module/shared/helpers/GameControlButton.js.map +1 -1
  115. package/lib/module/{games/whack-a-mole/components → shared/helpers}/GameOverModal.js +23 -13
  116. package/lib/module/shared/helpers/GameOverModal.js.map +1 -0
  117. package/lib/module/shared/helpers/GameSettingsModal.js +287 -0
  118. package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -0
  119. package/lib/module/shared/helpers/ParticleBlast.js +133 -0
  120. package/lib/module/shared/helpers/ParticleBlast.js.map +1 -0
  121. package/lib/module/shared/helpers/index.js +7 -0
  122. package/lib/module/shared/helpers/index.js.map +1 -1
  123. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +2 -14
  124. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  125. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +10 -9
  126. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts.map +1 -1
  127. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +0 -2
  128. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -1
  129. package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -1
  130. package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -1
  131. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +1 -15
  132. package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -1
  133. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -1
  134. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +1 -7
  135. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
  136. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +0 -3
  137. package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -1
  138. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +2 -14
  139. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  140. package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts +5 -5
  141. package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts.map +1 -1
  142. package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts +8 -0
  143. package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts.map +1 -1
  144. package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts +1 -0
  145. package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts.map +1 -1
  146. package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts +1 -15
  147. package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts.map +1 -1
  148. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -1
  149. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +1 -7
  150. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
  151. package/lib/typescript/src/games/fruit-ninja/components/index.d.ts +0 -3
  152. package/lib/typescript/src/games/fruit-ninja/components/index.d.ts.map +1 -1
  153. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +2 -8
  154. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  155. package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts +4 -4
  156. package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts.map +1 -1
  157. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
  158. package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -1
  159. package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -1
  160. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
  161. package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -1
  162. package/lib/typescript/src/games/maze-runner/components/index.d.ts +0 -1
  163. package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -1
  164. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +2 -8
  165. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  166. package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts +4 -4
  167. package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts.map +1 -1
  168. package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts +0 -21
  169. package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts.map +1 -1
  170. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +1 -5
  171. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -1
  172. package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts.map +1 -1
  173. package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts +2 -2
  174. package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts.map +1 -1
  175. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +2 -2
  176. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -1
  177. package/lib/typescript/src/games/popit-fidget/components/index.d.ts +0 -2
  178. package/lib/typescript/src/games/popit-fidget/components/index.d.ts.map +1 -1
  179. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +3 -8
  180. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  181. package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts +4 -4
  182. package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts.map +1 -1
  183. package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -1
  184. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -1
  185. package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts +0 -1
  186. package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts.map +1 -1
  187. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts +1 -15
  188. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -1
  189. package/lib/typescript/src/games/space-fighter/components/GameBackground.d.ts.map +1 -1
  190. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +1 -6
  191. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -1
  192. package/lib/typescript/src/games/space-fighter/components/Spacecraft3D.d.ts.map +1 -1
  193. package/lib/typescript/src/games/space-fighter/components/SpacecraftPath.d.ts.map +1 -1
  194. package/lib/typescript/src/games/space-fighter/components/index.d.ts +0 -3
  195. package/lib/typescript/src/games/space-fighter/components/index.d.ts.map +1 -1
  196. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +2 -11
  197. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  198. package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts +2 -2
  199. package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts.map +1 -1
  200. package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts.map +1 -1
  201. package/lib/typescript/src/games/whack-a-mole/components/index.d.ts +0 -1
  202. package/lib/typescript/src/games/whack-a-mole/components/index.d.ts.map +1 -1
  203. package/lib/typescript/src/services/GamesConstants.d.ts +47 -38
  204. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  205. package/lib/typescript/src/services/GamesService.d.ts +20 -3
  206. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  207. package/lib/typescript/src/services/SoundsService.d.ts +20 -20
  208. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts +41 -0
  209. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +1 -0
  210. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts +45 -0
  211. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +1 -0
  212. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts +124 -0
  213. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +1 -0
  214. package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +1 -1
  215. package/lib/typescript/src/{games/balloon-blaster/components → shared/helpers}/GameOverModal.d.ts +5 -0
  216. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -0
  217. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts +9 -0
  218. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +1 -0
  219. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts +12 -0
  220. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -0
  221. package/lib/typescript/src/shared/helpers/index.d.ts +9 -0
  222. package/lib/typescript/src/shared/helpers/index.d.ts.map +1 -1
  223. package/package.json +2 -2
  224. package/lib/module/games/balloon-blaster/components/GameOverModal.js +0 -133
  225. package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +0 -1
  226. package/lib/module/games/balloon-blaster/components/ParticleSystem.js +0 -55
  227. package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +0 -1
  228. package/lib/module/games/balloon-blaster/components/SliceTrail.js +0 -58
  229. package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +0 -1
  230. package/lib/module/games/fruit-ninja/components/GameOverModal.js +0 -189
  231. package/lib/module/games/fruit-ninja/components/GameOverModal.js.map +0 -1
  232. package/lib/module/games/fruit-ninja/components/ParticleSystem.js +0 -52
  233. package/lib/module/games/fruit-ninja/components/ParticleSystem.js.map +0 -1
  234. package/lib/module/games/fruit-ninja/components/SliceTrail.js +0 -58
  235. package/lib/module/games/fruit-ninja/components/SliceTrail.js.map +0 -1
  236. package/lib/module/games/maze-runner/components/GameOverModal.js +0 -134
  237. package/lib/module/games/maze-runner/components/GameOverModal.js.map +0 -1
  238. package/lib/module/games/popit-fidget/components/GameOverModal.js +0 -132
  239. package/lib/module/games/popit-fidget/components/GameOverModal.js.map +0 -1
  240. package/lib/module/games/popit-fidget/components/ParticleSystem.js +0 -89
  241. package/lib/module/games/popit-fidget/components/ParticleSystem.js.map +0 -1
  242. package/lib/module/games/space-fighter/components/GameOverModal.js +0 -182
  243. package/lib/module/games/space-fighter/components/GameOverModal.js.map +0 -1
  244. package/lib/module/games/space-fighter/components/ParticleComponent.js +0 -34
  245. package/lib/module/games/space-fighter/components/ParticleComponent.js.map +0 -1
  246. package/lib/module/games/space-fighter/components/SettingsModal.js +0 -222
  247. package/lib/module/games/space-fighter/components/SettingsModal.js.map +0 -1
  248. package/lib/module/games/whack-a-mole/components/GameOverModal.js.map +0 -1
  249. package/lib/module/shared/settings/GameSettings.js +0 -295
  250. package/lib/module/shared/settings/GameSettings.js.map +0 -1
  251. package/lib/module/shared/settings/SettingsService.js +0 -125
  252. package/lib/module/shared/settings/SettingsService.js.map +0 -1
  253. package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +0 -1
  254. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +0 -8
  255. package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +0 -1
  256. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +0 -11
  257. package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +0 -1
  258. package/lib/typescript/src/games/fruit-ninja/components/GameOverModal.d.ts +0 -9
  259. package/lib/typescript/src/games/fruit-ninja/components/GameOverModal.d.ts.map +0 -1
  260. package/lib/typescript/src/games/fruit-ninja/components/ParticleSystem.d.ts +0 -8
  261. package/lib/typescript/src/games/fruit-ninja/components/ParticleSystem.d.ts.map +0 -1
  262. package/lib/typescript/src/games/fruit-ninja/components/SliceTrail.d.ts +0 -11
  263. package/lib/typescript/src/games/fruit-ninja/components/SliceTrail.d.ts.map +0 -1
  264. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +0 -11
  265. package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +0 -1
  266. package/lib/typescript/src/games/popit-fidget/components/GameOverModal.d.ts +0 -9
  267. package/lib/typescript/src/games/popit-fidget/components/GameOverModal.d.ts.map +0 -1
  268. package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.d.ts +0 -9
  269. package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.d.ts.map +0 -1
  270. package/lib/typescript/src/games/space-fighter/components/GameOverModal.d.ts +0 -9
  271. package/lib/typescript/src/games/space-fighter/components/GameOverModal.d.ts.map +0 -1
  272. package/lib/typescript/src/games/space-fighter/components/ParticleComponent.d.ts +0 -8
  273. package/lib/typescript/src/games/space-fighter/components/ParticleComponent.d.ts.map +0 -1
  274. package/lib/typescript/src/games/space-fighter/components/SettingsModal.d.ts +0 -9
  275. package/lib/typescript/src/games/space-fighter/components/SettingsModal.d.ts.map +0 -1
  276. package/lib/typescript/src/games/whack-a-mole/components/GameOverModal.d.ts +0 -9
  277. package/lib/typescript/src/games/whack-a-mole/components/GameOverModal.d.ts.map +0 -1
  278. package/lib/typescript/src/shared/settings/GameSettings.d.ts +0 -36
  279. package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +0 -1
  280. package/lib/typescript/src/shared/settings/SettingsService.d.ts +0 -33
  281. package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +0 -1
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Dimensions, StyleSheet } from 'react-native';
5
- import { Canvas as SkiaCanvas, Path, Skia } from '@shopify/react-native-skia';
6
- import { COLORS } from "../BalloonBlasterService.js";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- const {
9
- width,
10
- height
11
- } = Dimensions.get('window');
12
- export const SliceTrail = ({
13
- path,
14
- isVisible
15
- }) => {
16
- if (!isVisible || path.length < 2) return null;
17
- const skiaPath = Skia.Path.Make();
18
- if (path.length > 0) {
19
- const firstPoint = path[0];
20
- if (!firstPoint) return null;
21
- skiaPath.moveTo(firstPoint.x, firstPoint.y);
22
- for (let i = 1; i < path.length; i++) {
23
- const point = path[i];
24
- if (point) skiaPath.lineTo(point.x, point.y);
25
- }
26
- }
27
- return /*#__PURE__*/_jsx(View, {
28
- style: [styles.absoluteContainer, {
29
- width,
30
- height
31
- }],
32
- children: /*#__PURE__*/_jsx(SkiaCanvas, {
33
- style: {
34
- width,
35
- height
36
- },
37
- children: /*#__PURE__*/_jsx(Path, {
38
- path: skiaPath,
39
- color: COLORS.SLICE_TRAIL,
40
- style: "stroke",
41
- strokeWidth: 8,
42
- strokeCap: "round",
43
- strokeJoin: "round"
44
- })
45
- })
46
- });
47
- };
48
- const styles = StyleSheet.create({
49
- absoluteContainer: {
50
- position: 'absolute',
51
- top: 0,
52
- left: 0,
53
- right: 0,
54
- bottom: 0,
55
- pointerEvents: 'none'
56
- }
57
- });
58
- //# sourceMappingURL=SliceTrail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Dimensions","StyleSheet","Canvas","SkiaCanvas","Path","Skia","COLORS","jsx","_jsx","width","height","get","SliceTrail","path","isVisible","length","skiaPath","Make","firstPoint","moveTo","x","y","i","point","lineTo","style","styles","absoluteContainer","children","color","SLICE_TRAIL","strokeWidth","strokeCap","strokeJoin","create","position","top","left","right","bottom","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/balloon-blaster/components/SliceTrail.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,MAAM,IAAIC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,4BAA4B;AAC7E,SAASC,MAAM,QAAQ,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElD,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC;AAOlD,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAAU,CAAC,KAAK;EAC5E,IAAI,CAACA,SAAS,IAAID,IAAI,CAACE,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI;E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C;IACTC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,189 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, TouchableOpacity, Text, StyleSheet, Modal } from 'react-native';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const GameOverModal = ({
7
- isVisible,
8
- score,
9
- onPlayAgain
10
- }) => {
11
- const getRank = score => {
12
- if (score >= 1000) return {
13
- rank: 'Fruit Master',
14
- emoji: '🥇',
15
- color: '#fbbf24'
16
- }; // yellow-400
17
- if (score >= 500) return {
18
- rank: 'Ninja Expert',
19
- emoji: '🥈',
20
- color: '#d1d5db'
21
- }; // gray-300
22
- if (score >= 200) return {
23
- rank: 'Slice Warrior',
24
- emoji: '🥉',
25
- color: '#fb923c'
26
- }; // orange-400
27
- return {
28
- rank: 'Fruit Apprentice',
29
- emoji: '🎯',
30
- color: '#60a5fa'
31
- }; // blue-400
32
- };
33
- const {
34
- rank,
35
- emoji,
36
- color
37
- } = getRank(score);
38
- return /*#__PURE__*/_jsx(Modal, {
39
- visible: isVisible,
40
- animationType: "fade",
41
- transparent: true,
42
- onRequestClose: onPlayAgain,
43
- children: /*#__PURE__*/_jsx(View, {
44
- style: styles.gameOverOverlay,
45
- children: /*#__PURE__*/_jsx(View, {
46
- style: styles.gameOverModal,
47
- children: /*#__PURE__*/_jsxs(View, {
48
- style: styles.modalContent,
49
- children: [/*#__PURE__*/_jsx(Text, {
50
- style: styles.gameOverTitle,
51
- children: "Game Over!"
52
- }), /*#__PURE__*/_jsxs(View, {
53
- style: styles.finalScoreContainer,
54
- children: [/*#__PURE__*/_jsx(Text, {
55
- style: styles.finalScoreLabel,
56
- children: "Final Score"
57
- }), /*#__PURE__*/_jsx(Text, {
58
- style: styles.finalScoreValue,
59
- children: score
60
- })]
61
- }), /*#__PURE__*/_jsxs(View, {
62
- style: styles.rankContainer,
63
- children: [/*#__PURE__*/_jsx(Text, {
64
- style: [styles.rankEmoji, {
65
- color
66
- }],
67
- children: emoji
68
- }), /*#__PURE__*/_jsx(Text, {
69
- style: [styles.rankText, {
70
- color
71
- }],
72
- children: rank
73
- })]
74
- }), /*#__PURE__*/_jsx(View, {
75
- style: styles.playAgainContainer,
76
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
77
- style: styles.playAgainButton,
78
- onPress: onPlayAgain,
79
- children: /*#__PURE__*/_jsx(Text, {
80
- style: styles.buttonText,
81
- children: "Play Again"
82
- })
83
- })
84
- })]
85
- })
86
- })
87
- })
88
- });
89
- };
90
- const styles = StyleSheet.create({
91
- gameOverOverlay: {
92
- flex: 1,
93
- justifyContent: 'center',
94
- alignItems: 'center',
95
- backgroundColor: 'rgba(0, 0, 0, 0.5)' // Semi-transparent overlay
96
- },
97
- gameOverModal: {
98
- backgroundColor: '#87CEEB',
99
- // Sky blue background
100
- borderRadius: 24,
101
- minWidth: '80%',
102
- shadowColor: '#000',
103
- shadowOffset: {
104
- width: 0,
105
- height: 8
106
- },
107
- shadowOpacity: 0.4,
108
- shadowRadius: 12,
109
- elevation: 12,
110
- borderWidth: 3,
111
- borderColor: 'rgba(250, 204, 21, 0.8)'
112
- },
113
- modalContent: {
114
- padding: 40,
115
- alignItems: 'center'
116
- },
117
- gameOverTitle: {
118
- fontSize: 30,
119
- fontWeight: 'bold',
120
- color: '#ffffff',
121
- marginBottom: 32,
122
- textAlign: 'center'
123
- },
124
- finalScoreContainer: {
125
- alignItems: 'center',
126
- marginBottom: 32,
127
- backgroundColor: '#15803d',
128
- borderRadius: 16,
129
- padding: 20,
130
- minWidth: 150
131
- },
132
- finalScoreLabel: {
133
- fontSize: 18,
134
- color: '#ffffff',
135
- fontWeight: 'bold',
136
- marginBottom: 8
137
- },
138
- finalScoreValue: {
139
- fontSize: 48,
140
- color: '#facc15',
141
- fontWeight: 'bold',
142
- textAlign: 'center'
143
- },
144
- rankContainer: {
145
- alignItems: 'center',
146
- marginBottom: 32,
147
- backgroundColor: '#1e40af',
148
- borderRadius: 16,
149
- padding: 16,
150
- minWidth: 180
151
- },
152
- rankEmoji: {
153
- fontSize: 28,
154
- marginBottom: 8
155
- },
156
- rankText: {
157
- fontSize: 16,
158
- fontWeight: 'bold',
159
- color: '#ffffff',
160
- textAlign: 'center'
161
- },
162
- playAgainContainer: {
163
- alignItems: 'center'
164
- },
165
- playAgainButton: {
166
- backgroundColor: '#22c55e',
167
- paddingHorizontal: 40,
168
- paddingVertical: 20,
169
- borderRadius: 24,
170
- shadowColor: '#000',
171
- shadowOffset: {
172
- width: 0,
173
- height: 2
174
- },
175
- shadowOpacity: 0.25,
176
- shadowRadius: 3.84,
177
- elevation: 5,
178
- borderWidth: 2,
179
- borderColor: '#4ade80'
180
- },
181
- buttonText: {
182
- fontSize: 18,
183
- fontWeight: 'bold',
184
- color: '#ffffff',
185
- textAlign: 'center',
186
- lineHeight: 24
187
- }
188
- });
189
- //# sourceMappingURL=GameOverModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","TouchableOpacity","Text","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","isVisible","score","onPlayAgain","getRank","rank","emoji","color","visible","animationType","transparent","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","modalContent","gameOverTitle","finalScoreContainer","finalScoreLabel","finalScoreValue","rankContainer","rankEmoji","rankText","playAgainContainer","playAgainButton","onPress","buttonText","create","flex","justifyContent","alignItems","backgroundColor","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","padding","fontSize","fontWeight","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../../src","sources":["games/fruit-ninja/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,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C;EACDZ,SAAS,EAAE;IACTuB,QAAQ,EAAE,EAAE;IACZE,YAAY,EAAE;EAChB,CAAC;EACDxB,QAAQ,EAAE;IACRsB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBxC,KAAK,EAAE,SAAS;IAChB0C,SAAS,EAAE;EACb,CAAC;EACDxB,kBAAkB,EAAE;IAClBO,UAAU,EAAE;EACd,CAAC;EACDN,eAAe,EAAE;IACfO,eAAe,EAAE,SAAS;IAC1BiB,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBjB,YAAY,EAAE,EAAE;IAChBE,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDhB,UAAU,EAAE;IACVkB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBxC,KAAK,EAAE,SAAS;IAChB0C,SAAS,EAAE,QAAQ;IACnBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Dimensions, StyleSheet } from 'react-native';
5
- import { Canvas as SkiaCanvas, Circle, Group } from '@shopify/react-native-skia';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const {
8
- width,
9
- height
10
- } = Dimensions.get('window');
11
- export const ParticleSystem = ({
12
- particles
13
- }) => {
14
- if (particles.length === 0) return null;
15
- return /*#__PURE__*/_jsx(View, {
16
- style: [styles.absoluteContainer, {
17
- width,
18
- height
19
- }],
20
- children: /*#__PURE__*/_jsx(SkiaCanvas, {
21
- style: {
22
- width,
23
- height
24
- },
25
- children: /*#__PURE__*/_jsx(Group, {
26
- children: particles.map(particle => {
27
- // Improved alpha calculation for better visibility
28
- const alpha = Math.max(0.1, 1 - particle.lifetime / particle.maxLifetime);
29
- const alphaHex = Math.floor(alpha * 255).toString(16).padStart(2, '0');
30
- return /*#__PURE__*/_jsx(Circle, {
31
- cx: particle.position.x,
32
- cy: particle.position.y,
33
- r: Math.max(2, particle.size * alpha) // Ensure minimum size
34
- ,
35
- color: `${particle.color}${alphaHex}`
36
- }, particle.id);
37
- })
38
- })
39
- })
40
- });
41
- };
42
- const styles = StyleSheet.create({
43
- absoluteContainer: {
44
- position: 'absolute',
45
- top: 0,
46
- left: 0,
47
- right: 0,
48
- bottom: 0,
49
- pointerEvents: 'none'
50
- }
51
- });
52
- //# sourceMappingURL=ParticleSystem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Dimensions","StyleSheet","Canvas","SkiaCanvas","Circle","Group","jsx","_jsx","width","height","get","ParticleSystem","particles","length","style","styles","absoluteContainer","children","map","particle","alpha","Math","max","lifetime","maxLifetime","alphaHex","floor","toString","padStart","cx","position","x","cy","y","r","size","color","id","create","top","left","right","bottom","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/fruit-ninja/components/ParticleSystem.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,MAAM,IAAIC,UAAU,EAAEC,MAAM,EAAEC,KAAK,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGjF,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGT,UAAU,CAACU,GAAG,CAAC,QAAQ,CAAC;AAMlD,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAAEC;AAAU,CAAC,KAAK;EAC9E,IAAIA,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;EAEvC,oBACEN,IAAA,CAACR,IAAI;IAACe,KAAK,EAAE,CAACC,MAAM,CAACC,iBAA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 'react';
4
- import { View, Dimensions, StyleSheet } from 'react-native';
5
- import { Canvas as SkiaCanvas, Path, Skia } from '@shopify/react-native-skia';
6
- import { COLORS } from "../FruitNinjaService.js";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- const {
9
- width,
10
- height
11
- } = Dimensions.get('window');
12
- export const SliceTrail = ({
13
- path,
14
- isVisible
15
- }) => {
16
- if (!isVisible || path.length < 2) return null;
17
- const skiaPath = Skia.Path.Make();
18
- if (path.length > 0) {
19
- const firstPoint = path[0];
20
- if (!firstPoint) return null;
21
- skiaPath.moveTo(firstPoint.x, firstPoint.y);
22
- for (let i = 1; i < path.length; i++) {
23
- const point = path[i];
24
- if (point) skiaPath.lineTo(point.x, point.y);
25
- }
26
- }
27
- return /*#__PURE__*/_jsx(View, {
28
- style: [styles.absoluteContainer, {
29
- width,
30
- height
31
- }],
32
- children: /*#__PURE__*/_jsx(SkiaCanvas, {
33
- style: {
34
- width,
35
- height
36
- },
37
- children: /*#__PURE__*/_jsx(Path, {
38
- path: skiaPath,
39
- color: COLORS.SLICE_TRAIL,
40
- style: "stroke",
41
- strokeWidth: 8,
42
- strokeCap: "round",
43
- strokeJoin: "round"
44
- })
45
- })
46
- });
47
- };
48
- const styles = StyleSheet.create({
49
- absoluteContainer: {
50
- position: 'absolute',
51
- top: 0,
52
- left: 0,
53
- right: 0,
54
- bottom: 0,
55
- pointerEvents: 'none'
56
- }
57
- });
58
- //# sourceMappingURL=SliceTrail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Dimensions","StyleSheet","Canvas","SkiaCanvas","Path","Skia","COLORS","jsx","_jsx","width","height","get","SliceTrail","path","isVisible","length","skiaPath","Make","firstPoint","moveTo","x","y","i","point","lineTo","style","styles","absoluteContainer","children","color","SLICE_TRAIL","strokeWidth","strokeCap","strokeJoin","create","position","top","left","right","bottom","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/fruit-ninja/components/SliceTrail.tsx"],"mappings":";;AAAA,OAAOA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QAAEC;MAAO,CAAE;MAAAkB,QAAA,eACnCpB,IAAA,CAACJ,IAAI;QAACS,IAAI,EAAEG,QAAS;QAACa,KAAK,EAAEvB,MAAM,CAACwB,WAAY;QAACL,KAAK,EAAC,QAAQ;QAACM,WAAW,EAAE,CAAE;QAACC,SAAS,EAAC,OAAO;QAACC,UAAU,EAAC;MAAO,CAAE;IAAC,CAC7G;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAMP,MAAM,GAAGzB,UAAU,CAACiC,MAAM,CAAC;EAC/BP,iBAAiB,EAAE;IACjBQ,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,134 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Text, TouchableOpacity, StyleSheet, Modal } from 'react-native';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const GameOverModal = ({
7
- visible,
8
- gameState,
9
- onPlayAgain,
10
- onClose
11
- }) => {
12
- return /*#__PURE__*/_jsx(Modal, {
13
- visible: visible,
14
- transparent: true,
15
- animationType: "fade",
16
- onRequestClose: onClose,
17
- children: /*#__PURE__*/_jsx(View, {
18
- style: styles.gameOverOverlay,
19
- children: /*#__PURE__*/_jsx(View, {
20
- style: styles.gameOverModal,
21
- children: /*#__PURE__*/_jsxs(View, {
22
- style: styles.modalContent,
23
- children: [/*#__PURE__*/_jsx(Text, {
24
- style: styles.gameOverTitle,
25
- children: gameState.isCompleted ? 'Maze Completed!' : 'Game Over!'
26
- }), /*#__PURE__*/_jsxs(View, {
27
- style: styles.finalScoreContainer,
28
- children: [/*#__PURE__*/_jsx(Text, {
29
- style: styles.finalScoreLabel,
30
- children: "Final Score"
31
- }), /*#__PURE__*/_jsx(Text, {
32
- style: styles.finalScoreValue,
33
- children: gameState.score
34
- })]
35
- }), /*#__PURE__*/_jsx(View, {
36
- style: styles.playAgainContainer,
37
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
38
- style: styles.playAgainButton,
39
- onPress: onPlayAgain,
40
- children: /*#__PURE__*/_jsx(Text, {
41
- style: styles.buttonText,
42
- children: "Play Again"
43
- })
44
- })
45
- })]
46
- })
47
- })
48
- })
49
- });
50
- };
51
- const styles = StyleSheet.create({
52
- gameOverOverlay: {
53
- flex: 1,
54
- justifyContent: 'center',
55
- alignItems: 'center',
56
- backgroundColor: 'rgba(0, 0, 0, 0.3)' // 0.3 transparent background as requested
57
- },
58
- gameOverModal: {
59
- backgroundColor: 'rgba(139, 69, 19, 0.8)',
60
- // Sky blue background like WhackIt
61
- borderRadius: 24,
62
- minWidth: '80%',
63
- shadowColor: '#000',
64
- shadowOffset: {
65
- width: 0,
66
- height: 8
67
- },
68
- shadowOpacity: 0.4,
69
- shadowRadius: 12,
70
- elevation: 12,
71
- borderWidth: 3,
72
- borderColor: 'rgba(139, 69, 19, 0.8)' // Brown border for maze theme
73
- },
74
- modalContent: {
75
- padding: 40,
76
- alignItems: 'center'
77
- },
78
- gameOverTitle: {
79
- fontSize: 30,
80
- fontWeight: 'bold',
81
- color: '#ffffff',
82
- marginBottom: 32,
83
- textAlign: 'center'
84
- },
85
- finalScoreContainer: {
86
- alignItems: 'center',
87
- marginBottom: 32,
88
- backgroundColor: '#8B4513',
89
- // Brown background for maze theme
90
- borderRadius: 16,
91
- padding: 20,
92
- minWidth: 150
93
- },
94
- finalScoreLabel: {
95
- fontSize: 18,
96
- color: '#ffffff',
97
- fontWeight: 'bold',
98
- marginBottom: 8
99
- },
100
- finalScoreValue: {
101
- fontSize: 48,
102
- color: '#facc15',
103
- // Gold color for score
104
- fontWeight: 'bold',
105
- textAlign: 'center'
106
- },
107
- playAgainContainer: {
108
- alignItems: 'center'
109
- },
110
- playAgainButton: {
111
- backgroundColor: '#22c55e',
112
- paddingHorizontal: 40,
113
- paddingVertical: 20,
114
- borderRadius: 24,
115
- shadowColor: '#000',
116
- shadowOffset: {
117
- width: 0,
118
- height: 2
119
- },
120
- shadowOpacity: 0.25,
121
- shadowRadius: 3.84,
122
- elevation: 5,
123
- borderWidth: 2,
124
- borderColor: '#4ade80'
125
- },
126
- buttonText: {
127
- fontSize: 18,
128
- fontWeight: 'bold',
129
- color: '#ffffff',
130
- textAlign: 'center',
131
- lineHeight: 24
132
- }
133
- });
134
- //# sourceMappingURL=GameOverModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","visible","gameState","onPlayAgain","onClose","transparent","animationType","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","modalContent","gameOverTitle","isCompleted","finalScoreContainer","finalScoreLabel","finalScoreValue","score","playAgainContainer","playAgainButton","onPress","buttonText","create","flex","justifyContent","alignItems","backgroundColor","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","padding","fontSize","fontWeight","color","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../../src","sources":["games/maze-runner/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAU/E,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAC1DC,OAAO;EACPC,SAAS;EACTC,WAAW;EACXC;AACF,CAAC,KAAK;EACJ,oBACEP,IAAA,CAACF,KAAK;IACJM,OAAO,EAAEA,OAAQ;IACjBI,WAAW;IACXC,aAAa,EAAC,MAAM;IACpBC,cAAc,EAAEH,OAAQ;IAAAI,QAAA,eAExBX,IAAA,CAACN,IAAI;MAACkB,K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YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDhB,UAAU,EAAE;IACVkB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS;IAChBE,SAAS,EAAE,QAAQ;IACnBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,132 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, TouchableOpacity, Text, StyleSheet, Modal } from 'react-native';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- const GameOverModal = ({
7
- visible,
8
- score,
9
- onPlayAgain
10
- }) => {
11
- return /*#__PURE__*/_jsx(Modal, {
12
- visible: visible,
13
- animationType: "fade",
14
- transparent: true,
15
- onRequestClose: onPlayAgain,
16
- children: /*#__PURE__*/_jsx(View, {
17
- style: styles.gameOverOverlay,
18
- children: /*#__PURE__*/_jsx(View, {
19
- style: styles.gameOverModal,
20
- children: /*#__PURE__*/_jsxs(View, {
21
- style: styles.modalContent,
22
- children: [/*#__PURE__*/_jsx(Text, {
23
- style: styles.gameOverTitle,
24
- children: "Game Over!"
25
- }), /*#__PURE__*/_jsxs(View, {
26
- style: styles.finalScoreContainer,
27
- children: [/*#__PURE__*/_jsx(Text, {
28
- style: styles.finalScoreLabel,
29
- children: "Final Score"
30
- }), /*#__PURE__*/_jsx(Text, {
31
- style: styles.finalScoreValue,
32
- children: score
33
- })]
34
- }), /*#__PURE__*/_jsx(View, {
35
- style: styles.playAgainContainer,
36
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
37
- style: styles.playAgainButton,
38
- onPress: onPlayAgain,
39
- children: /*#__PURE__*/_jsx(Text, {
40
- style: styles.buttonText,
41
- children: "Play Again"
42
- })
43
- })
44
- })]
45
- })
46
- })
47
- })
48
- });
49
- };
50
- const styles = StyleSheet.create({
51
- gameOverOverlay: {
52
- flex: 1,
53
- justifyContent: 'center',
54
- alignItems: 'center',
55
- backgroundColor: 'rgba(0, 0, 0, 0.5)' // Semi-transparent overlay
56
- },
57
- gameOverModal: {
58
- backgroundColor: '#87CEEB',
59
- // Sky blue background
60
- borderRadius: 24,
61
- minWidth: '80%',
62
- shadowColor: '#000',
63
- shadowOffset: {
64
- width: 0,
65
- height: 8
66
- },
67
- shadowOpacity: 0.4,
68
- shadowRadius: 12,
69
- elevation: 12,
70
- borderWidth: 3,
71
- borderColor: 'rgba(250, 204, 21, 0.8)'
72
- },
73
- modalContent: {
74
- padding: 40,
75
- alignItems: 'center'
76
- },
77
- gameOverTitle: {
78
- fontSize: 30,
79
- fontWeight: 'bold',
80
- color: '#ffffff',
81
- marginBottom: 32,
82
- textAlign: 'center'
83
- },
84
- finalScoreContainer: {
85
- alignItems: 'center',
86
- marginBottom: 32,
87
- backgroundColor: '#15803d',
88
- borderRadius: 16,
89
- padding: 20,
90
- minWidth: 150
91
- },
92
- finalScoreLabel: {
93
- fontSize: 18,
94
- color: '#ffffff',
95
- fontWeight: 'bold',
96
- marginBottom: 8
97
- },
98
- finalScoreValue: {
99
- fontSize: 48,
100
- color: '#facc15',
101
- fontWeight: 'bold',
102
- textAlign: 'center'
103
- },
104
- playAgainContainer: {
105
- alignItems: 'center'
106
- },
107
- playAgainButton: {
108
- backgroundColor: '#22c55e',
109
- paddingHorizontal: 40,
110
- paddingVertical: 20,
111
- borderRadius: 24,
112
- shadowColor: '#000',
113
- shadowOffset: {
114
- width: 0,
115
- height: 2
116
- },
117
- shadowOpacity: 0.25,
118
- shadowRadius: 3.84,
119
- elevation: 5,
120
- borderWidth: 2,
121
- borderColor: '#4ade80'
122
- },
123
- buttonText: {
124
- fontSize: 18,
125
- fontWeight: 'bold',
126
- color: '#ffffff',
127
- textAlign: 'center',
128
- lineHeight: 24
129
- }
130
- });
131
- export default GameOverModal;
132
- //# sourceMappingURL=GameOverModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","TouchableOpacity","Text","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","visible","score","onPlayAgain","animationType","transparent","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","modalContent","gameOverTitle","finalScoreContainer","finalScoreLabel","finalScoreValue","playAgainContainer","playAgainButton","onPress","buttonText","create","flex","justifyContent","alignItems","backgroundColor","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","padding","fontSize","fontWeight","color","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../../src","sources":["games/popit-fidget/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ/E,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,OAAO;EAAEC,KAAK;EAAEC;AAAY,CAAC,KAAK;EACvF,oBACEN,IAAA,CAACF,KAAK;IACJM,OAAO,EAAEA,OAAQ;IACjBG,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,cAAc,EAAEH,WAAY;IAAAI,QAAA,eAE5BV,IAAA,CAACN,IAAI;MAACiB,KAAK,EAAEC,MAAM,CAACC,eAAgB;MAAAH,QAAA,eAClCV,IAAA,CAACN,IAAI;QAACiB,KAAK,EAAEC,MAAM,CAACE,aAAc;QAAAJ,QAAA,eAChCR,KAAA,CAACR,IAAI;UAACiB,KAAK,EAAEC,MAAM,CAACG,YAAa;UAAAL,QAAA,gBAC/BV,IAAA,CAACJ,IAAI;YAACe,KAAK,EAAEC,MAAM,CAACI,aA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