react-native-games 0.6.0 → 0.8.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 (344) hide show
  1. package/README.md +148 -23
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +5 -8
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/candy-crush/CandyCrush.js +121 -0
  5. package/lib/module/games/candy-crush/CandyCrush.js.map +1 -0
  6. package/lib/module/games/candy-crush/CandyCrushConstants.js +125 -0
  7. package/lib/module/games/candy-crush/CandyCrushConstants.js.map +1 -0
  8. package/lib/module/games/candy-crush/CandyCrushService.js +370 -0
  9. package/lib/module/games/candy-crush/CandyCrushService.js.map +1 -0
  10. package/lib/module/games/candy-crush/CandyCrushStore.js +305 -0
  11. package/lib/module/games/candy-crush/CandyCrushStore.js.map +1 -0
  12. package/lib/module/games/candy-crush/components/CandyItem.js +191 -0
  13. package/lib/module/games/candy-crush/components/CandyItem.js.map +1 -0
  14. package/lib/module/games/candy-crush/components/GameBackground.js +85 -0
  15. package/lib/module/games/candy-crush/components/GameBackground.js.map +1 -0
  16. package/lib/module/games/candy-crush/components/GameGrid.js +314 -0
  17. package/lib/module/games/candy-crush/components/GameGrid.js.map +1 -0
  18. package/lib/module/games/candy-crush/components/ScoreBoard.js +112 -0
  19. package/lib/module/games/candy-crush/components/ScoreBoard.js.map +1 -0
  20. package/lib/module/games/candy-crush/components/index.js +7 -0
  21. package/lib/module/games/candy-crush/components/index.js.map +1 -0
  22. package/lib/module/games/candy-crush/index.js +6 -0
  23. package/lib/module/games/candy-crush/index.js.map +1 -0
  24. package/lib/module/games/color-sort/ColorSort.js +130 -0
  25. package/lib/module/games/color-sort/ColorSort.js.map +1 -0
  26. package/lib/module/games/color-sort/ColorSortConstants.js +68 -0
  27. package/lib/module/games/color-sort/ColorSortConstants.js.map +1 -0
  28. package/lib/module/games/color-sort/ColorSortService.js +255 -0
  29. package/lib/module/games/color-sort/ColorSortService.js.map +1 -0
  30. package/lib/module/games/color-sort/ColorSortStore.js +258 -0
  31. package/lib/module/games/color-sort/ColorSortStore.js.map +1 -0
  32. package/lib/module/games/color-sort/components/ColorContainer.js +140 -0
  33. package/lib/module/games/color-sort/components/ColorContainer.js.map +1 -0
  34. package/lib/module/games/color-sort/components/GameBackground.js +135 -0
  35. package/lib/module/games/color-sort/components/GameBackground.js.map +1 -0
  36. package/lib/module/games/color-sort/components/ScoreBoard.js +78 -0
  37. package/lib/module/games/color-sort/components/ScoreBoard.js.map +1 -0
  38. package/lib/module/games/color-sort/components/index.js +6 -0
  39. package/lib/module/games/color-sort/components/index.js.map +1 -0
  40. package/lib/module/games/dino-jump/DinoJump.js +209 -0
  41. package/lib/module/games/dino-jump/DinoJump.js.map +1 -0
  42. package/lib/module/games/dino-jump/DinoJumpConstants.js +179 -0
  43. package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -0
  44. package/lib/module/games/dino-jump/DinoJumpService.js +268 -0
  45. package/lib/module/games/dino-jump/DinoJumpService.js.map +1 -0
  46. package/lib/module/games/dino-jump/DinoJumpStore.js +387 -0
  47. package/lib/module/games/dino-jump/DinoJumpStore.js.map +1 -0
  48. package/lib/module/games/dino-jump/components/DinoSprite.js +409 -0
  49. package/lib/module/games/dino-jump/components/DinoSprite.js.map +1 -0
  50. package/lib/module/games/dino-jump/components/GameArea.js +68 -0
  51. package/lib/module/games/dino-jump/components/GameArea.js.map +1 -0
  52. package/lib/module/games/dino-jump/components/GameBackground.js +421 -0
  53. package/lib/module/games/dino-jump/components/GameBackground.js.map +1 -0
  54. package/lib/module/games/dino-jump/components/ObstacleSprite.js +306 -0
  55. package/lib/module/games/dino-jump/components/ObstacleSprite.js.map +1 -0
  56. package/lib/module/games/dino-jump/components/ScoreBoard.js +107 -0
  57. package/lib/module/games/dino-jump/components/ScoreBoard.js.map +1 -0
  58. package/lib/module/games/dino-jump/components/StarSprite.js +45 -0
  59. package/lib/module/games/dino-jump/components/StarSprite.js.map +1 -0
  60. package/lib/module/games/dino-jump/components/index.js +9 -0
  61. package/lib/module/games/dino-jump/components/index.js.map +1 -0
  62. package/lib/module/games/flappy-bird/FlappyBird.js +131 -0
  63. package/lib/module/games/flappy-bird/FlappyBird.js.map +1 -0
  64. package/lib/module/games/flappy-bird/FlappyBirdConstants.js +90 -0
  65. package/lib/module/games/flappy-bird/FlappyBirdConstants.js.map +1 -0
  66. package/lib/module/games/flappy-bird/FlappyBirdStore.js +276 -0
  67. package/lib/module/games/flappy-bird/FlappyBirdStore.js.map +1 -0
  68. package/lib/module/games/flappy-bird/components/Bird.js +87 -0
  69. package/lib/module/games/flappy-bird/components/Bird.js.map +1 -0
  70. package/lib/module/games/flappy-bird/components/GameArea.js +86 -0
  71. package/lib/module/games/flappy-bird/components/GameArea.js.map +1 -0
  72. package/lib/module/games/flappy-bird/components/GameBackground.js +112 -0
  73. package/lib/module/games/flappy-bird/components/GameBackground.js.map +1 -0
  74. package/lib/module/games/flappy-bird/components/Pipes.js +175 -0
  75. package/lib/module/games/flappy-bird/components/Pipes.js.map +1 -0
  76. package/lib/module/games/flappy-bird/components/ScoreBoard.js +72 -0
  77. package/lib/module/games/flappy-bird/components/ScoreBoard.js.map +1 -0
  78. package/lib/module/games/flappy-bird/components/index.js +8 -0
  79. package/lib/module/games/flappy-bird/components/index.js.map +1 -0
  80. package/lib/module/games/fruit-merger/FruitMerger.js +112 -0
  81. package/lib/module/games/fruit-merger/FruitMerger.js.map +1 -0
  82. package/lib/module/games/fruit-merger/FruitMergerConstants.js +119 -0
  83. package/lib/module/games/fruit-merger/FruitMergerConstants.js.map +1 -0
  84. package/lib/module/games/fruit-merger/FruitMergerService.js +13 -0
  85. package/lib/module/games/fruit-merger/FruitMergerService.js.map +1 -0
  86. package/lib/module/games/fruit-merger/FruitMergerStore.js +318 -0
  87. package/lib/module/games/fruit-merger/FruitMergerStore.js.map +1 -0
  88. package/lib/module/games/fruit-merger/components/FruitItem.js +102 -0
  89. package/lib/module/games/fruit-merger/components/FruitItem.js.map +1 -0
  90. package/lib/module/games/fruit-merger/components/GameArea.js +123 -0
  91. package/lib/module/games/fruit-merger/components/GameArea.js.map +1 -0
  92. package/lib/module/games/fruit-merger/components/GameBackground.js +477 -0
  93. package/lib/module/games/fruit-merger/components/GameBackground.js.map +1 -0
  94. package/lib/module/games/fruit-merger/components/ScoreBoard.js +66 -0
  95. package/lib/module/games/fruit-merger/components/ScoreBoard.js.map +1 -0
  96. package/lib/module/games/fruit-merger/components/index.js +7 -0
  97. package/lib/module/games/fruit-merger/components/index.js.map +1 -0
  98. package/lib/module/games/fruit-ninja/FruitNinja.js +6 -9
  99. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
  100. package/lib/module/games/game-2048/Game2048.js +120 -0
  101. package/lib/module/games/game-2048/Game2048.js.map +1 -0
  102. package/lib/module/games/game-2048/Game2048Constants.js +263 -0
  103. package/lib/module/games/game-2048/Game2048Constants.js.map +1 -0
  104. package/lib/module/games/game-2048/Game2048Service.js +457 -0
  105. package/lib/module/games/game-2048/Game2048Service.js.map +1 -0
  106. package/lib/module/games/game-2048/Game2048Store.js +238 -0
  107. package/lib/module/games/game-2048/Game2048Store.js.map +1 -0
  108. package/lib/module/games/game-2048/components/GameBackground.js +247 -0
  109. package/lib/module/games/game-2048/components/GameBackground.js.map +1 -0
  110. package/lib/module/games/game-2048/components/GameGrid.js +139 -0
  111. package/lib/module/games/game-2048/components/GameGrid.js.map +1 -0
  112. package/lib/module/games/game-2048/components/GameTile.js +72 -0
  113. package/lib/module/games/game-2048/components/GameTile.js.map +1 -0
  114. package/lib/module/games/game-2048/components/ScoreBoard.js +70 -0
  115. package/lib/module/games/game-2048/components/ScoreBoard.js.map +1 -0
  116. package/lib/module/games/game-2048/components/index.js +7 -0
  117. package/lib/module/games/game-2048/components/index.js.map +1 -0
  118. package/lib/module/games/maze-runner/MazeRunner.js +33 -31
  119. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  120. package/lib/module/games/popit-fidget/PopitFidget.js +34 -32
  121. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
  122. package/lib/module/games/sliding-numbers/SlidingNumbers.js +161 -0
  123. package/lib/module/games/sliding-numbers/SlidingNumbers.js.map +1 -0
  124. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js +207 -0
  125. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js.map +1 -0
  126. package/lib/module/games/sliding-numbers/SlidingNumbersService.js +248 -0
  127. package/lib/module/games/sliding-numbers/SlidingNumbersService.js.map +1 -0
  128. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js +275 -0
  129. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js.map +1 -0
  130. package/lib/module/games/sliding-numbers/components/GameBackground.js +259 -0
  131. package/lib/module/games/sliding-numbers/components/GameBackground.js.map +1 -0
  132. package/lib/module/games/sliding-numbers/components/NumbersGrid.js +174 -0
  133. package/lib/module/games/sliding-numbers/components/NumbersGrid.js.map +1 -0
  134. package/lib/module/games/sliding-numbers/components/NumbersTile.js +116 -0
  135. package/lib/module/games/sliding-numbers/components/NumbersTile.js.map +1 -0
  136. package/lib/module/games/sliding-numbers/components/ScoreBoard.js +66 -0
  137. package/lib/module/games/sliding-numbers/components/ScoreBoard.js.map +1 -0
  138. package/lib/module/games/sliding-numbers/components/index.js +7 -0
  139. package/lib/module/games/sliding-numbers/components/index.js.map +1 -0
  140. package/lib/module/games/snake/Snake.js +192 -0
  141. package/lib/module/games/snake/Snake.js.map +1 -0
  142. package/lib/module/games/snake/SnakeConstants.js +138 -0
  143. package/lib/module/games/snake/SnakeConstants.js.map +1 -0
  144. package/lib/module/games/snake/SnakeService.js +148 -0
  145. package/lib/module/games/snake/SnakeService.js.map +1 -0
  146. package/lib/module/games/snake/SnakeStore.js +184 -0
  147. package/lib/module/games/snake/SnakeStore.js.map +1 -0
  148. package/lib/module/games/snake/components/GameBackground.js +221 -0
  149. package/lib/module/games/snake/components/GameBackground.js.map +1 -0
  150. package/lib/module/games/snake/components/GameGrid.js +153 -0
  151. package/lib/module/games/snake/components/GameGrid.js.map +1 -0
  152. package/lib/module/games/snake/components/ScoreBoard.js +57 -0
  153. package/lib/module/games/snake/components/ScoreBoard.js.map +1 -0
  154. package/lib/module/games/snake/components/index.js +6 -0
  155. package/lib/module/games/snake/components/index.js.map +1 -0
  156. package/lib/module/games/snake/index.js +6 -0
  157. package/lib/module/games/snake/index.js.map +1 -0
  158. package/lib/module/games/space-fighter/SpaceFighter.js +7 -10
  159. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
  160. package/lib/module/games/whack-a-mole/WhackAMole.js +6 -6
  161. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
  162. package/lib/module/games/whack-a-mole/components/GameBackground.js +7 -8
  163. package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -1
  164. package/lib/module/index.js +8 -0
  165. package/lib/module/index.js.map +1 -1
  166. package/lib/module/services/GamesConstants.js +58 -2
  167. package/lib/module/services/GamesConstants.js.map +1 -1
  168. package/lib/module/services/GamesService.js +40 -0
  169. package/lib/module/services/GamesService.js.map +1 -1
  170. package/lib/module/services/SoundsService.js +132 -1
  171. package/lib/module/services/SoundsService.js.map +1 -1
  172. package/lib/module/shared/helpers/GameOverModal.js +6 -3
  173. package/lib/module/shared/helpers/GameOverModal.js.map +1 -1
  174. package/lib/module/shared/helpers/GameSettingsModal.js +3 -3
  175. package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -1
  176. package/lib/module/shared/helpers/ParticleBlast.js +3 -2
  177. package/lib/module/shared/helpers/ParticleBlast.js.map +1 -1
  178. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  179. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts +4 -0
  180. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -0
  181. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +104 -0
  182. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts.map +1 -0
  183. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts +40 -0
  184. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts.map +1 -0
  185. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts +48 -0
  186. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts.map +1 -0
  187. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts +13 -0
  188. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts.map +1 -0
  189. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts +5 -0
  190. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts.map +1 -0
  191. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts +3 -0
  192. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts.map +1 -0
  193. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts +3 -0
  194. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts.map +1 -0
  195. package/lib/typescript/src/games/candy-crush/components/index.d.ts +5 -0
  196. package/lib/typescript/src/games/candy-crush/components/index.d.ts.map +1 -0
  197. package/lib/typescript/src/games/candy-crush/index.d.ts +4 -0
  198. package/lib/typescript/src/games/candy-crush/index.d.ts.map +1 -0
  199. package/lib/typescript/src/games/color-sort/ColorSort.d.ts +4 -0
  200. package/lib/typescript/src/games/color-sort/ColorSort.d.ts.map +1 -0
  201. package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts +52 -0
  202. package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts.map +1 -0
  203. package/lib/typescript/src/games/color-sort/ColorSortService.d.ts +66 -0
  204. package/lib/typescript/src/games/color-sort/ColorSortService.d.ts.map +1 -0
  205. package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts +48 -0
  206. package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts.map +1 -0
  207. package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts +11 -0
  208. package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts.map +1 -0
  209. package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts +7 -0
  210. package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts.map +1 -0
  211. package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts +3 -0
  212. package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts.map +1 -0
  213. package/lib/typescript/src/games/color-sort/components/index.d.ts +4 -0
  214. package/lib/typescript/src/games/color-sort/components/index.d.ts.map +1 -0
  215. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts +4 -0
  216. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -0
  217. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts +95 -0
  218. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts.map +1 -0
  219. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts +40 -0
  220. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts.map +1 -0
  221. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts +103 -0
  222. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts.map +1 -0
  223. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts +3 -0
  224. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -0
  225. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts +8 -0
  226. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts.map +1 -0
  227. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts +7 -0
  228. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts.map +1 -0
  229. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts +3 -0
  230. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts.map +1 -0
  231. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts +3 -0
  232. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts.map +1 -0
  233. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts +3 -0
  234. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts.map +1 -0
  235. package/lib/typescript/src/games/dino-jump/components/index.d.ts +7 -0
  236. package/lib/typescript/src/games/dino-jump/components/index.d.ts.map +1 -0
  237. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts +4 -0
  238. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -0
  239. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts +83 -0
  240. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -0
  241. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts +53 -0
  242. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts.map +1 -0
  243. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts +8 -0
  244. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts.map +1 -0
  245. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts +8 -0
  246. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts.map +1 -0
  247. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts +7 -0
  248. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts.map +1 -0
  249. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts +8 -0
  250. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts.map +1 -0
  251. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts +3 -0
  252. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts.map +1 -0
  253. package/lib/typescript/src/games/flappy-bird/components/index.d.ts +6 -0
  254. package/lib/typescript/src/games/flappy-bird/components/index.d.ts.map +1 -0
  255. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts +4 -0
  256. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -0
  257. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts +115 -0
  258. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -0
  259. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts +5 -0
  260. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts.map +1 -0
  261. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts +43 -0
  262. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts.map +1 -0
  263. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts +10 -0
  264. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts.map +1 -0
  265. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts +8 -0
  266. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts.map +1 -0
  267. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts +7 -0
  268. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts.map +1 -0
  269. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts +3 -0
  270. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts.map +1 -0
  271. package/lib/typescript/src/games/fruit-merger/components/index.d.ts +5 -0
  272. package/lib/typescript/src/games/fruit-merger/components/index.d.ts.map +1 -0
  273. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  274. package/lib/typescript/src/games/game-2048/Game2048.d.ts +4 -0
  275. package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -0
  276. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts +163 -0
  277. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts.map +1 -0
  278. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts +113 -0
  279. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts.map +1 -0
  280. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts +48 -0
  281. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts.map +1 -0
  282. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts +7 -0
  283. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts.map +1 -0
  284. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts +7 -0
  285. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts.map +1 -0
  286. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts +13 -0
  287. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts.map +1 -0
  288. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts +3 -0
  289. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts.map +1 -0
  290. package/lib/typescript/src/games/game-2048/components/index.d.ts +5 -0
  291. package/lib/typescript/src/games/game-2048/components/index.d.ts.map +1 -0
  292. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  293. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  294. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts +4 -0
  295. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -0
  296. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts +108 -0
  297. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts.map +1 -0
  298. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts +34 -0
  299. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts.map +1 -0
  300. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts +56 -0
  301. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts.map +1 -0
  302. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts +7 -0
  303. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts.map +1 -0
  304. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts +7 -0
  305. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts.map +1 -0
  306. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts +11 -0
  307. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts.map +1 -0
  308. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts +3 -0
  309. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts.map +1 -0
  310. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts +5 -0
  311. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts.map +1 -0
  312. package/lib/typescript/src/games/snake/Snake.d.ts +4 -0
  313. package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -0
  314. package/lib/typescript/src/games/snake/SnakeConstants.d.ts +93 -0
  315. package/lib/typescript/src/games/snake/SnakeConstants.d.ts.map +1 -0
  316. package/lib/typescript/src/games/snake/SnakeService.d.ts +30 -0
  317. package/lib/typescript/src/games/snake/SnakeService.d.ts.map +1 -0
  318. package/lib/typescript/src/games/snake/SnakeStore.d.ts +43 -0
  319. package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -0
  320. package/lib/typescript/src/games/snake/components/GameBackground.d.ts +5 -0
  321. package/lib/typescript/src/games/snake/components/GameBackground.d.ts.map +1 -0
  322. package/lib/typescript/src/games/snake/components/GameGrid.d.ts +3 -0
  323. package/lib/typescript/src/games/snake/components/GameGrid.d.ts.map +1 -0
  324. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts +3 -0
  325. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -0
  326. package/lib/typescript/src/games/snake/components/index.d.ts +4 -0
  327. package/lib/typescript/src/games/snake/components/index.d.ts.map +1 -0
  328. package/lib/typescript/src/games/snake/index.d.ts +4 -0
  329. package/lib/typescript/src/games/snake/index.d.ts.map +1 -0
  330. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  331. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  332. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -1
  333. package/lib/typescript/src/index.d.ts +8 -0
  334. package/lib/typescript/src/index.d.ts.map +1 -1
  335. package/lib/typescript/src/services/GamesConstants.d.ts +156 -0
  336. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  337. package/lib/typescript/src/services/GamesService.d.ts +10 -2
  338. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  339. package/lib/typescript/src/services/SoundsService.d.ts +103 -0
  340. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
  341. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts +2 -0
  342. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -1
  343. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -1
  344. package/package.json +1 -1
@@ -0,0 +1,306 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View, StyleSheet } from 'react-native';
5
+ import { useObstacles } from "../DinoJumpStore.js";
6
+ import { DINO_JUMP_COLORS } from "../DinoJumpConstants.js";
7
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
+ const SingleObstacle = /*#__PURE__*/React.memo(({
9
+ obstacle
10
+ }) => {
11
+ // Safety check
12
+ if (!obstacle || typeof obstacle.x !== 'number' || typeof obstacle.y !== 'number') {
13
+ return null;
14
+ }
15
+
16
+ // Memoize render functions to avoid recreating on every render
17
+ const renderCactusSmall = React.useMemo(() => /*#__PURE__*/_jsxs(View, {
18
+ style: [styles.obstacleContainer, {
19
+ left: obstacle.x,
20
+ top: obstacle.y,
21
+ width: obstacle.width,
22
+ height: obstacle.height
23
+ }],
24
+ children: [/*#__PURE__*/_jsx(View, {
25
+ style: [styles.cactusBody, {
26
+ width: obstacle.width,
27
+ height: obstacle.height,
28
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_PRIMARY
29
+ }]
30
+ }), /*#__PURE__*/_jsx(View, {
31
+ style: [styles.cactusSpike, {
32
+ left: 2,
33
+ top: 6,
34
+ width: 3,
35
+ height: 3
36
+ }]
37
+ }), /*#__PURE__*/_jsx(View, {
38
+ style: [styles.cactusSpike, {
39
+ right: 2,
40
+ top: 10,
41
+ width: 3,
42
+ height: 3
43
+ }]
44
+ }), /*#__PURE__*/_jsx(View, {
45
+ style: [styles.cactusSpike, {
46
+ left: obstacle.width / 2 - 1,
47
+ top: 15,
48
+ width: 3,
49
+ height: 3
50
+ }]
51
+ }), /*#__PURE__*/_jsx(View, {
52
+ style: [styles.cactusPlantedBase, {
53
+ left: obstacle.width / 4,
54
+ bottom: -6,
55
+ width: obstacle.width / 2,
56
+ height: 8,
57
+ backgroundColor: '#654321',
58
+ // Brown dirt color
59
+ borderRadius: 4
60
+ }]
61
+ }), /*#__PURE__*/_jsx(View, {
62
+ style: [styles.cactusRoot, {
63
+ left: obstacle.width / 3,
64
+ bottom: -4,
65
+ width: obstacle.width / 3,
66
+ height: 4,
67
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_PRIMARY
68
+ }]
69
+ })]
70
+ }), [obstacle.x, obstacle.y, obstacle.width, obstacle.height]);
71
+ const renderCactusLarge = React.useMemo(() => /*#__PURE__*/_jsxs(View, {
72
+ style: [styles.obstacleContainer, {
73
+ left: obstacle.x,
74
+ top: obstacle.y,
75
+ width: obstacle.width,
76
+ height: obstacle.height
77
+ }],
78
+ children: [/*#__PURE__*/_jsx(View, {
79
+ style: [styles.cactusBody, {
80
+ width: obstacle.width,
81
+ height: obstacle.height,
82
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_PRIMARY
83
+ }]
84
+ }), /*#__PURE__*/_jsx(View, {
85
+ style: [styles.cactusArm, {
86
+ left: -6,
87
+ top: 15,
88
+ width: 8,
89
+ height: 15,
90
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_SECONDARY
91
+ }]
92
+ }), /*#__PURE__*/_jsx(View, {
93
+ style: [styles.cactusArm, {
94
+ right: -2,
95
+ top: 10,
96
+ width: 8,
97
+ height: 20,
98
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_SECONDARY
99
+ }]
100
+ }), Array.from({
101
+ length: 6
102
+ }, (_, i) => /*#__PURE__*/_jsx(View, {
103
+ style: [styles.cactusSpike, {
104
+ left: 2 + i % 3 * 7,
105
+ top: 8 + Math.floor(i / 3) * 15
106
+ }]
107
+ }, i)), /*#__PURE__*/_jsx(View, {
108
+ style: [styles.cactusPlantedBase, {
109
+ left: obstacle.width / 4,
110
+ bottom: -8,
111
+ width: obstacle.width / 2,
112
+ height: 10,
113
+ backgroundColor: '#654321',
114
+ // Brown dirt color
115
+ borderRadius: 5
116
+ }]
117
+ }), /*#__PURE__*/_jsx(View, {
118
+ style: [styles.cactusRoot, {
119
+ left: obstacle.width / 3,
120
+ bottom: -5,
121
+ width: obstacle.width / 3,
122
+ height: 5,
123
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_PRIMARY
124
+ }]
125
+ })]
126
+ }), [obstacle.x, obstacle.y, obstacle.width, obstacle.height]);
127
+ const renderBird = React.useMemo(() => /*#__PURE__*/_jsxs(View, {
128
+ style: [styles.obstacleContainer, {
129
+ left: obstacle.x,
130
+ top: obstacle.y,
131
+ width: obstacle.width,
132
+ height: obstacle.height
133
+ }],
134
+ children: [/*#__PURE__*/_jsx(View, {
135
+ style: [styles.birdBody, {
136
+ left: 10,
137
+ top: 15,
138
+ width: 20,
139
+ height: 10
140
+ }]
141
+ }), /*#__PURE__*/_jsx(View, {
142
+ style: [styles.birdHead, {
143
+ left: 29,
144
+ top: 12
145
+ }]
146
+ }), /*#__PURE__*/_jsx(View, {
147
+ style: [styles.birdBeak, {
148
+ left: 40,
149
+ top: 17
150
+ }]
151
+ }), /*#__PURE__*/_jsx(View, {
152
+ style: [styles.birdWing, {
153
+ left: 5,
154
+ top: 10,
155
+ width: 15,
156
+ height: 6
157
+ }]
158
+ }), /*#__PURE__*/_jsx(View, {
159
+ style: [styles.birdWing, {
160
+ left: 15,
161
+ top: 8,
162
+ width: 15,
163
+ height: 6
164
+ }]
165
+ }), /*#__PURE__*/_jsx(View, {
166
+ style: [styles.birdTail, {
167
+ left: 0,
168
+ top: 18
169
+ }]
170
+ })]
171
+ }), [obstacle.x, obstacle.y, obstacle.width, obstacle.height]);
172
+ switch (obstacle.type) {
173
+ case 'cactus_small':
174
+ return renderCactusSmall;
175
+ case 'cactus_large':
176
+ return renderCactusLarge;
177
+ case 'bird':
178
+ return renderBird;
179
+ default:
180
+ return null;
181
+ }
182
+ }, (prevProps, nextProps) => {
183
+ // Custom comparison: only re-render if obstacle position or type changes
184
+ return prevProps.obstacle.x === nextProps.obstacle.x && prevProps.obstacle.y === nextProps.obstacle.y && prevProps.obstacle.type === nextProps.obstacle.type && prevProps.obstacle.id === nextProps.obstacle.id;
185
+ });
186
+ export const ObstacleSprite = /*#__PURE__*/React.memo(() => {
187
+ const obstacles = useObstacles();
188
+
189
+ // Memoize visible obstacles to prevent infinite re-renders
190
+ const visibleObstacles = React.useMemo(() => {
191
+ if (!Array.isArray(obstacles) || obstacles.length === 0) {
192
+ return [];
193
+ }
194
+
195
+ // Limit obstacles to prevent layout issues and only show visible ones
196
+ return obstacles.filter(obstacle => obstacle && obstacle.x > -100 && obstacle.x < 500).slice(0, 5);
197
+ }, [obstacles]);
198
+
199
+ // Early return if no visible obstacles
200
+ if (visibleObstacles.length === 0) {
201
+ return null;
202
+ }
203
+ return /*#__PURE__*/_jsx(_Fragment, {
204
+ children: visibleObstacles.map(obstacle => /*#__PURE__*/_jsx(SingleObstacle, {
205
+ obstacle: obstacle
206
+ }, obstacle.id))
207
+ });
208
+ });
209
+ const styles = StyleSheet.create({
210
+ obstacleContainer: {
211
+ position: 'absolute',
212
+ // Enhanced shadow for better depth
213
+ shadowColor: '#000',
214
+ shadowOffset: {
215
+ width: 0,
216
+ height: 2
217
+ },
218
+ shadowOpacity: 0.25,
219
+ shadowRadius: 3,
220
+ elevation: 4
221
+ },
222
+ cactusBody: {
223
+ borderRadius: 6,
224
+ borderWidth: 1,
225
+ borderColor: DINO_JUMP_COLORS.OBSTACLE_OUTLINE
226
+ // Subtle gradient effect with border
227
+ },
228
+ cactusArm: {
229
+ position: 'absolute',
230
+ borderRadius: 4,
231
+ borderWidth: 1,
232
+ borderColor: DINO_JUMP_COLORS.OBSTACLE_OUTLINE
233
+ },
234
+ cactusSpike: {
235
+ position: 'absolute',
236
+ width: 2,
237
+ height: 2,
238
+ borderRadius: 1,
239
+ backgroundColor: DINO_JUMP_COLORS.OBSTACLE_OUTLINE
240
+ },
241
+ cactusBase: {
242
+ position: 'absolute',
243
+ borderRadius: 2,
244
+ borderWidth: 1,
245
+ borderColor: DINO_JUMP_COLORS.OBSTACLE_OUTLINE
246
+ },
247
+ cactusPlantedBase: {
248
+ position: 'absolute',
249
+ borderWidth: 1,
250
+ borderColor: '#4a2c1a',
251
+ shadowColor: '#000',
252
+ shadowOffset: {
253
+ width: 0,
254
+ height: 1
255
+ },
256
+ shadowOpacity: 0.3,
257
+ shadowRadius: 2,
258
+ elevation: 2
259
+ },
260
+ cactusRoot: {
261
+ position: 'absolute',
262
+ borderRadius: 2
263
+ },
264
+ birdBody: {
265
+ position: 'absolute',
266
+ backgroundColor: '#8B4513',
267
+ borderRadius: 5,
268
+ borderWidth: 1,
269
+ borderColor: '#654321'
270
+ },
271
+ birdHead: {
272
+ position: 'absolute',
273
+ width: 12,
274
+ height: 12,
275
+ backgroundColor: '#8B4513',
276
+ borderRadius: 6,
277
+ borderWidth: 1,
278
+ borderColor: '#654321'
279
+ },
280
+ birdBeak: {
281
+ position: 'absolute',
282
+ width: 4,
283
+ height: 2,
284
+ backgroundColor: '#FFD700',
285
+ borderRadius: 1
286
+ },
287
+ birdWing: {
288
+ position: 'absolute',
289
+ backgroundColor: '#A0522D',
290
+ borderRadius: 3,
291
+ borderWidth: 1,
292
+ borderColor: '#654321'
293
+ },
294
+ birdTail: {
295
+ position: 'absolute',
296
+ width: 12,
297
+ height: 4,
298
+ backgroundColor: '#8B4513',
299
+ borderRadius: 2,
300
+ borderWidth: 1,
301
+ borderColor: '#654321'
302
+ }
303
+ });
304
+ SingleObstacle.displayName = 'SingleObstacle';
305
+ ObstacleSprite.displayName = 'ObstacleSprite';
306
+ //# sourceMappingURL=ObstacleSprite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","StyleSheet","useObstacles","DINO_JUMP_COLORS","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SingleObstacle","memo","obstacle","x","y","renderCactusSmall","useMemo","style","styles","obstacleContainer","left","top","width","height","children","cactusBody","backgroundColor","OBSTACLE_PRIMARY","cactusSpike","right","cactusPlantedBase","bottom","borderRadius","cactusRoot","renderCactusLarge","cactusArm","OBSTACLE_SECONDARY","Array","from","length","_","i","Math","floor","renderBird","birdBody","birdHead","birdBeak","birdWing","birdTail","type","prevProps","nextProps","id","ObstacleSprite","obstacles","visibleObstacles","isArray","filter","slice","map","create","position","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","OBSTACLE_OUTLINE","cactusBase","displayName"],"sourceRoot":"../../../../../src","sources":["games/dino-jump/components/ObstacleSprite.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,qBAAkB;AAC/C,SAASC,gBAAgB,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAOxD,MAAMC,cAA6C,gBAAGX,KAAK,CAACY,IAAI,CAAC,CAAC;EAAEC;AAAS,CAAC,KAAK;EACjF;EACA,IAAI,CAACA,QAAQ,IAAI,OAAOA,QAAQ,CAACC,CAAC,KAAK,QAAQ,IAAI,OAAOD,QAAQ,CAACE,CAAC,KAAK,QAAQ,EAAE;IACjF,OAAO,IAAI;EACb;;EAEA;EACA,MAAMC,iBAAiB,GAAGhB,KAAK,CAACiB,OAAO,CAAC,mBACtCT,KAAA,CAACP,I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,YAAY,EAAE;EAChB,CAAC;EACDgB,QAAQ,EAAE;IACRc,QAAQ,EAAE,UAAU;IACpBpC,eAAe,EAAE,SAAS;IAC1BM,YAAY,EAAE,CAAC;IACfoC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDpB,QAAQ,EAAE;IACRa,QAAQ,EAAE,UAAU;IACpBxC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,CAAC;IACTG,eAAe,EAAE,SAAS;IAC1BM,YAAY,EAAE,CAAC;IACfoC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAEF3D,cAAc,CAAC8D,WAAW,GAAG,gBAAgB;AAC7ClB,cAAc,CAACkB,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+
3
+ import React, { useMemo } from 'react';
4
+ import { View, Text, StyleSheet } from 'react-native';
5
+ import { useScore, useTimeLeft, useLives } from "../DinoJumpStore.js";
6
+ import { DinoJumpService } from "../DinoJumpService.js";
7
+ import { RESPONSIVE_SCOREBOARD_CONTAINER, RESPONSIVE_SCOREBOARD_FONTS } from "../../../shared/helpers/index.js";
8
+ import { DINO_JUMP_COLORS } from "../DinoJumpConstants.js";
9
+
10
+ // Memoize gameService outside component to avoid recreation
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ const gameService = new DinoJumpService();
13
+ export const ScoreBoard = /*#__PURE__*/React.memo(() => {
14
+ const score = useScore();
15
+ const timeLeft = useTimeLeft();
16
+ const lives = useLives();
17
+ const formattedTime = useMemo(() => gameService.formatTime(timeLeft), [timeLeft]);
18
+
19
+ // Generate hearts display: red for remaining lives, black for lost lives
20
+ const heartsDisplay = useMemo(() => {
21
+ const maxLives = 3; // Max lives increased to 5 (can collect stars for extra lives)
22
+ const currentLives = Math.max(0, Math.min(lives, maxLives)); // Clamp between 0 and maxLives
23
+ const lostLives = Math.max(0, maxLives - currentLives); // Ensure non-negative
24
+
25
+ const redHearts = '❤️'.repeat(currentLives); // Remaining lives
26
+ const blackHearts = '🖤'.repeat(lostLives); // Lost lives
27
+ return redHearts + blackHearts;
28
+ }, [lives]);
29
+ return /*#__PURE__*/_jsxs(View, {
30
+ style: styles.scoreBoard,
31
+ children: [/*#__PURE__*/_jsxs(View, {
32
+ style: styles.scoreSection,
33
+ children: [/*#__PURE__*/_jsx(Text, {
34
+ style: styles.scoreLabel,
35
+ children: "Score"
36
+ }), /*#__PURE__*/_jsx(Text, {
37
+ style: styles.scoreValue,
38
+ children: score.toLocaleString()
39
+ })]
40
+ }), /*#__PURE__*/_jsxs(View, {
41
+ style: styles.scoreSection,
42
+ children: [/*#__PURE__*/_jsx(Text, {
43
+ style: styles.scoreLabel,
44
+ children: "Time"
45
+ }), /*#__PURE__*/_jsx(Text, {
46
+ style: [styles.timeValue, {
47
+ color: timeLeft < 60 ? '#ef4444' : DINO_JUMP_COLORS.SCORE_TEXT
48
+ }],
49
+ children: formattedTime
50
+ })]
51
+ }), /*#__PURE__*/_jsxs(View, {
52
+ style: styles.scoreSection,
53
+ children: [/*#__PURE__*/_jsx(Text, {
54
+ style: styles.scoreLabel,
55
+ children: "Lives"
56
+ }), /*#__PURE__*/_jsx(Text, {
57
+ style: styles.livesValue,
58
+ numberOfLines: 1,
59
+ children: heartsDisplay
60
+ })]
61
+ })]
62
+ });
63
+ });
64
+ const styles = StyleSheet.create({
65
+ scoreBoard: {
66
+ ...RESPONSIVE_SCOREBOARD_CONTAINER,
67
+ marginHorizontal: 20,
68
+ marginTop: 20,
69
+ flexDirection: 'row',
70
+ justifyContent: 'space-between',
71
+ alignItems: 'center',
72
+ backgroundColor: 'rgba(255, 255, 255, 0.4)',
73
+ // White with 0.4 opacity
74
+ borderRadius: 20,
75
+ padding: 16,
76
+ borderWidth: 3,
77
+ borderColor: '#4ECDC4' // Bright teal border
78
+ },
79
+ scoreSection: {
80
+ alignItems: 'center',
81
+ flex: 1
82
+ },
83
+ scoreLabel: {
84
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.labelSize,
85
+ fontWeight: 'bold',
86
+ color: '#7F8C8D',
87
+ // Gray label
88
+ marginBottom: 4,
89
+ letterSpacing: 0.5
90
+ },
91
+ scoreValue: {
92
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.valueSize,
93
+ fontWeight: 'bold',
94
+ color: '#E74C3C' // Bright red for score
95
+ },
96
+ timeValue: {
97
+ fontSize: RESPONSIVE_SCOREBOARD_FONTS.timeSize,
98
+ fontWeight: 'bold'
99
+ // Color is set dynamically in the component
100
+ },
101
+ livesValue: {
102
+ fontSize: 20,
103
+ fontWeight: 'bold'
104
+ }
105
+ });
106
+ ScoreBoard.displayName = 'ScoreBoard';
107
+ //# sourceMappingURL=ScoreBoard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","View","Text","StyleSheet","useScore","useTimeLeft","useLives","DinoJumpService","RESPONSIVE_SCOREBOARD_CONTAINER","RESPONSIVE_SCOREBOARD_FONTS","DINO_JUMP_COLORS","jsx","_jsx","jsxs","_jsxs","gameService","ScoreBoard","memo","score","timeLeft","lives","formattedTime","formatTime","heartsDisplay","maxLives","currentLives","Math","max","min","lostLives","redHearts","repeat","blackHearts","style","styles","scoreBoard","children","scoreSection","scoreLabel","scoreValue","toLocaleString","timeValue","color","SCORE_TEXT","livesValue","numberOfLines","create","marginHorizontal","marginTop","flexDirection","justifyContent","alignItems","backgroundColor","borderRadius","padding","borderWidth","borderColor","flex","fontSize","labelSize","fontWeight","marginBottom","letterSpacing","valueSize","timeSize","displayName"],"sourceRoot":"../../../../../src","sources":["games/dino-jump/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,qBAAkB;AAClE,SAASC,eAA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AAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,0BAA0B;IAAE;IAC7CC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAE,EAAE;IACXC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS,CAAE;EAC1B,CAAC;EACDnB,YAAY,EAAE;IACZc,UAAU,EAAE,QAAQ;IACpBM,IAAI,EAAE;EACR,CAAC;EACDnB,UAAU,EAAE;IACVoB,QAAQ,EAAEjD,2BAA2B,CAACkD,SAAS;IAC/CC,UAAU,EAAE,MAAM;IAClBlB,KAAK,EAAE,SAAS;IAAE;IAClBmB,YAAY,EAAE,CAAC;IACfC,aAAa,EAAE;EACjB,CAAC;EACDvB,UAAU,EAAE;IACVmB,QAAQ,EAAEjD,2BAA2B,CAACsD,SAAS;IAC/CH,UAAU,EAAE,MAAM;IAClBlB,KAAK,EAAE,SAAS,CAAE;EACpB,CAAC;EACDD,SAAS,EAAE;IACTiB,QAAQ,EAAEjD,2BAA2B,CAACuD,QAAQ;IAC9CJ,UAAU,EAAE;IACZ;EACF,CAAC;EACDhB,UAAU,EAAE;IACVc,QAAQ,EAAE,EAAE;IACZE,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF5C,UAAU,CAACiD,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View, Text, StyleSheet } from 'react-native';
5
+ import { useStars } from "../DinoJumpStore.js";
6
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
7
+ // Memoized single star component
8
+ const SingleStar = /*#__PURE__*/React.memo(({
9
+ star
10
+ }) => /*#__PURE__*/_jsx(View, {
11
+ style: [styles.starContainer, {
12
+ left: star.x,
13
+ top: star.y,
14
+ width: star.width,
15
+ height: star.height
16
+ }],
17
+ children: /*#__PURE__*/_jsx(Text, {
18
+ style: styles.mushroom,
19
+ children: "\uD83C\uDF44"
20
+ })
21
+ }), (prev, next) => prev.star.id === next.star.id && prev.star.x === next.star.x);
22
+ export const StarSprite = /*#__PURE__*/React.memo(() => {
23
+ const stars = useStars();
24
+ if (!stars || stars.length === 0) {
25
+ return null;
26
+ }
27
+ return /*#__PURE__*/_jsx(_Fragment, {
28
+ children: stars.map(star => /*#__PURE__*/_jsx(SingleStar, {
29
+ star: star
30
+ }, star.id))
31
+ });
32
+ });
33
+ const styles = StyleSheet.create({
34
+ starContainer: {
35
+ position: 'absolute',
36
+ justifyContent: 'center',
37
+ alignItems: 'center'
38
+ },
39
+ mushroom: {
40
+ fontSize: 40,
41
+ lineHeight: 40
42
+ }
43
+ });
44
+ StarSprite.displayName = 'StarSprite';
45
+ //# sourceMappingURL=StarSprite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","StyleSheet","useStars","jsx","_jsx","Fragment","_Fragment","SingleStar","memo","star","style","styles","starContainer","left","x","top","y","width","height","children","mushroom","prev","next","id","StarSprite","stars","length","map","create","position","justifyContent","alignItems","fontSize","lineHeight","displayName"],"sourceRoot":"../../../../../src","sources":["games/dino-jump/components/StarSprite.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAG5C;AACA,MAAMC,UAAoC,gBAAGT,KAAK,CAACU,IAAI,CAAC,CAAC;EAAEC;AAAK,CAAC,kBAC/DL,IAAA,CAACL,IAAI;EACHW,KAAK,EAAE,CACLC,MAAM,CAACC,aAAa,EACpB;IACEC,IAAI,EAAEJ,IAAI,CAACK,CAAC;IACZC,GAAG,EAAEN,IAAI,CAACO,CAAC;IACXC,KAAK,EAAER,IAAI,CAACQ,KAAK;IACjBC,MAAM,EAAET,IAAI,CAACS;EACf,CAAC,CACD;EAAAC,QAAA,eAEFf,IAAA,CAACJ,IAAI;IAACU,KAAK,EAAEC,MAAM,CAACS,QAAS;IAAAD,QAAA,EAAC;EAAE,CAAM;AAAC,CACnC,CACP,EAAE,CAACE,IAAI,EAAEC,IAAI,KAAKD,IAAI,CAACZ,IAAI,CAACc,EAAE,KAAKD,IAAI,CAACb,IAAI,CAACc,EAAE,IAAIF,IAAI,CAACZ,IAAI,CAACK,CAAC,KAAKQ,IAAI,CAACb,IAAI,CAACK,CAAC,CAAC;AAEhF,OAAO,MAAMU,UAAoB,gBAAG1B,KAAK,CAACU,IAAI,CAAC,MAAM;EACnD,MAAMiB,KAAK,GAAGvB,QAAQ,CAAC,CAAC;EAExB,IAAI,CAACuB,KAAK,IAAIA,KAAK,CAACC,MAAM,KAAK,CAAC,EAAE;IAChC,OAAO,IAAI;EACb;EAEA,oBACEtB,IAAA,CAAAE,SAAA;IAAAa,QAAA,EACGM,KAAK,CAACE,GAAG,CAAElB,IAAI,iBACdL,IAAA,CAACG,UAAU;MAAeE,IAAI,EAAEA;IAAK,GAApBA,IAAI,CAACc,EAAiB,CACxC;EAAC,CACF,CAAC;AAEP,CAAC,CAAC;AAEF,MAAMZ,MAAM,GAAGV,UAAU,CAAC2B,MAAM,CAAC;EAC/BhB,aAAa,EAAE;IACbiB,QAAQ,EAAE,UAAU;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDX,QAAQ,EAAE;IACRY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEFT,UAAU,CAACU,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export { GameBackground } from "./GameBackground.js";
4
+ export { GameArea } from "./GameArea.js";
5
+ export { DinoSprite } from "./DinoSprite.js";
6
+ export { ObstacleSprite } from "./ObstacleSprite.js";
7
+ export { StarSprite } from "./StarSprite.js";
8
+ export { ScoreBoard } from "./ScoreBoard.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GameBackground","GameArea","DinoSprite","ObstacleSprite","StarSprite","ScoreBoard"],"sourceRoot":"../../../../../src","sources":["games/dino-jump/components/index.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,qBAAkB;AACjD,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,UAAU,QAAQ,iBAAc","ignoreList":[]}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ import React, { useEffect, useCallback, useMemo, useRef } from 'react';
4
+ import { View, StyleSheet } from 'react-native';
5
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
6
+ import { useFlappyBirdStore } from "./FlappyBirdStore.js";
7
+ import { ScoreBoard, GameArea, GameBackground } from "./components/index.js";
8
+ import { GameControlButton, GameOverModal } from "../../shared/helpers/index.js";
9
+ import { GameSettingsModal } from "../../shared/helpers/index.js";
10
+ import { FLAPPY_BIRD_COLORS } from "./FlappyBirdConstants.js";
11
+ import { GAME_IDS, DEFAULT_GAME_SETTINGS } from "../../services/GamesService.js";
12
+ import { playSound, GAME_SOUNDS } from "../../services/SoundsService.js";
13
+ import { playHaptic, HapticType } from "../../services/HapticsService.js";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const formatTime = seconds => {
16
+ const mins = Math.floor(seconds / 60);
17
+ const secs = seconds % 60;
18
+ return `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
19
+ };
20
+ export const FlappyBird = /*#__PURE__*/React.memo(({
21
+ settings = DEFAULT_GAME_SETTINGS,
22
+ onSettingsChange
23
+ }) => {
24
+ // Only subscribe to non-animation state (CRITICAL: prevents 60fps re-renders)
25
+ const isPlaying = useFlappyBirdStore(state => state.isPlaying);
26
+ const isGameOver = useFlappyBirdStore(state => state.isGameOver);
27
+ const survivalTime = useFlappyBirdStore(state => state.survivalTime);
28
+ const initializeGame = useFlappyBirdStore(state => state.initializeGame);
29
+ const startGame = useFlappyBirdStore(state => state.startGame);
30
+ const stopGame = useFlappyBirdStore(state => state.stopGame);
31
+ const resetGame = useFlappyBirdStore(state => state.resetGame);
32
+ useEffect(() => {
33
+ initializeGame();
34
+ return () => {
35
+ stopGame();
36
+ };
37
+ }, [initializeGame, stopGame]);
38
+ const prevGameOverRef = useRef(false);
39
+ useEffect(() => {
40
+ if (isGameOver && !prevGameOverRef.current) {
41
+ playSound(GAME_SOUNDS.FLAPPY_BIRD.HIT, settings.enableSounds);
42
+ playHaptic(HapticType.HEAVY, settings.enableHaptics);
43
+ }
44
+ prevGameOverRef.current = isGameOver;
45
+ }, [isGameOver, settings.enableSounds, settings.enableHaptics]);
46
+ const handleStartGame = useCallback(() => {
47
+ initializeGame();
48
+ startGame(settings);
49
+ playSound(GAME_SOUNDS.FLAPPY_BIRD.START, settings.enableSounds);
50
+ playHaptic(HapticType.MEDIUM, settings.enableHaptics);
51
+ }, [initializeGame, startGame, settings]);
52
+ const handleStopGame = useCallback(() => {
53
+ stopGame();
54
+ }, [stopGame]);
55
+ const handleResetGame = useCallback(() => {
56
+ resetGame();
57
+ initializeGame();
58
+ }, [resetGame, initializeGame]);
59
+
60
+ // Memoize modal props to prevent unnecessary re-renders
61
+ const gameOverModalProps = useMemo(() => ({
62
+ isVisible: isGameOver,
63
+ score: survivalTime,
64
+ onPlayAgain: handleResetGame,
65
+ buttonText: "Fly Again!",
66
+ primaryColor: FLAPPY_BIRD_COLORS.GAME_OVER_BG,
67
+ borderColor: FLAPPY_BIRD_COLORS.BUTTON_PRIMARY,
68
+ buttonColor: FLAPPY_BIRD_COLORS.BUTTON_PRIMARY,
69
+ buttonBorderColor: FLAPPY_BIRD_COLORS.BUTTON_SECONDARY,
70
+ scoreLabel: "Survival Time",
71
+ scoreFormatter: formatTime
72
+ }), [isGameOver, survivalTime, handleResetGame]);
73
+ const gameSettingsModalProps = useMemo(() => ({
74
+ gameId: GAME_IDS.FLAPPY_BIRD,
75
+ settings,
76
+ onSettingsChange
77
+ }), [settings, onSettingsChange]);
78
+
79
+ // Memoize GameControlButton props to prevent re-renders (CRITICAL)
80
+ const gameControlButtonProps = useMemo(() => ({
81
+ isPlaying,
82
+ gameOver: isGameOver,
83
+ onStartGame: handleStartGame,
84
+ onStopGame: handleStopGame,
85
+ startButtonText: "START FLYING",
86
+ stopButtonText: "STOP GAME",
87
+ startButtonSubtext: "Tap to flap!",
88
+ startButtonColor: FLAPPY_BIRD_COLORS.BUTTON_PRIMARY,
89
+ startButtonBorderColor: FLAPPY_BIRD_COLORS.BUTTON_SECONDARY
90
+ }), [isPlaying, isGameOver, handleStartGame, handleStopGame]);
91
+ return /*#__PURE__*/_jsx(View, {
92
+ style: styles.root,
93
+ children: /*#__PURE__*/_jsx(GestureHandlerRootView, {
94
+ children: /*#__PURE__*/_jsx(GameBackground, {
95
+ children: /*#__PURE__*/_jsxs(View, {
96
+ style: styles.container,
97
+ children: [/*#__PURE__*/_jsx(GameArea, {
98
+ settings: settings
99
+ }), /*#__PURE__*/_jsx(View, {
100
+ style: styles.scoreboardContainer,
101
+ children: /*#__PURE__*/_jsx(ScoreBoard, {})
102
+ }), /*#__PURE__*/_jsx(GameControlButton, {
103
+ ...gameControlButtonProps
104
+ }), /*#__PURE__*/_jsx(GameOverModal, {
105
+ ...gameOverModalProps
106
+ }), /*#__PURE__*/_jsx(GameSettingsModal, {
107
+ ...gameSettingsModalProps
108
+ })]
109
+ })
110
+ })
111
+ })
112
+ });
113
+ });
114
+ const styles = StyleSheet.create({
115
+ root: {
116
+ flex: 1
117
+ },
118
+ container: {
119
+ flex: 1
120
+ },
121
+ scoreboardContainer: {
122
+ position: 'absolute',
123
+ top: 0,
124
+ left: 20,
125
+ right: 20,
126
+ zIndex: 100,
127
+ pointerEvents: 'none' // Allow touches to pass through to game below
128
+ }
129
+ });
130
+ FlappyBird.displayName = 'FlappyBird';
131
+ //# sourceMappingURL=FlappyBird.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useCallback","useMemo","useRef","View","StyleSheet","GestureHandlerRootView","useFlappyBirdStore","ScoreBoard","GameArea","GameBackground","GameControlButton","GameOverModal","GameSettingsModal","FLAPPY_BIRD_COLORS","GAME_IDS","DEFAULT_GAME_SETTINGS","playSound","GAME_SOUNDS","playHaptic","HapticType","jsx","_jsx","jsxs","_jsxs","formatTime","seconds","mins","Math","floor","secs","toString","padStart","FlappyBird","memo","settings","onSettingsChange","isPlaying","state","isGameOver","survivalTime","initializeGame","startGame","stopGame","resetGame","prevGameOverRef","current","FLAPPY_BIRD","HIT","enableSounds","HEAVY","enableHaptics","handleStartGame","START","MEDIUM","handleStopGame","handleResetGame","gameOverModalProps","isVisible","score","onPlayAgain","buttonText","primaryColor","GAME_OVER_BG","borderColor","BUTTON_PRIMARY","buttonColor","buttonBorderColor","BUTTON_SECONDARY","scoreLabel","scoreFormatter","gameSettingsModalProps","gameId","gameControlButtonProps","gameOver","onStartGame","onStopGame","startButtonText","stopButtonText","startButtonSubtext","startButtonColor","startButtonBorderColor","style","styles","root","children","container","scoreboardContainer","create","flex","position","top","left","right","zIndex","pointerEvents","displayName"],"sourceRoot":"../../../../src","sources":["games/flappy-bird/FlappyBird.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,kBAAkB,QAAQ,sBAAmB;AACtD,SAASC,UAAU,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,uBAAc;AACnE,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,+BAAsB;AACvE,SAASC,iBAAiB,QAAQ,+BAAsB;AACxD,SAASC,kBAAkB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