react-native-games 0.7.0 → 1.0.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 (459) hide show
  1. package/README.md +507 -84
  2. package/lib/module/games/balloon-blaster/BalloonBlaster.js +13 -21
  3. package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
  4. package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +1 -1
  5. package/lib/module/games/balloon-blaster/components/GameArea.js +1 -1
  6. package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
  7. package/lib/module/games/balloon-blaster/components/GameBackground.js +24 -17
  8. package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
  9. package/lib/module/games/balloon-blaster/components/ScoreBoard.js +47 -47
  10. package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
  11. package/lib/module/games/candy-crush/CandyCrush.js +131 -0
  12. package/lib/module/games/candy-crush/CandyCrush.js.map +1 -0
  13. package/lib/module/games/candy-crush/CandyCrushConstants.js +125 -0
  14. package/lib/module/games/candy-crush/CandyCrushConstants.js.map +1 -0
  15. package/lib/module/games/candy-crush/CandyCrushService.js +370 -0
  16. package/lib/module/games/candy-crush/CandyCrushService.js.map +1 -0
  17. package/lib/module/games/candy-crush/CandyCrushStore.js +303 -0
  18. package/lib/module/games/candy-crush/CandyCrushStore.js.map +1 -0
  19. package/lib/module/games/candy-crush/components/CandyItem.js +191 -0
  20. package/lib/module/games/candy-crush/components/CandyItem.js.map +1 -0
  21. package/lib/module/games/candy-crush/components/GameBackground.js +85 -0
  22. package/lib/module/games/candy-crush/components/GameBackground.js.map +1 -0
  23. package/lib/module/games/candy-crush/components/GameGrid.js +314 -0
  24. package/lib/module/games/candy-crush/components/GameGrid.js.map +1 -0
  25. package/lib/module/games/candy-crush/components/ScoreBoard.js +79 -0
  26. package/lib/module/games/candy-crush/components/ScoreBoard.js.map +1 -0
  27. package/lib/module/games/candy-crush/components/index.js +7 -0
  28. package/lib/module/games/candy-crush/components/index.js.map +1 -0
  29. package/lib/module/games/candy-crush/index.js +6 -0
  30. package/lib/module/games/candy-crush/index.js.map +1 -0
  31. package/lib/module/games/colors-sort/ColorsSort.js +143 -0
  32. package/lib/module/games/colors-sort/ColorsSort.js.map +1 -0
  33. package/lib/module/games/colors-sort/ColorsSortConstants.js +72 -0
  34. package/lib/module/games/colors-sort/ColorsSortConstants.js.map +1 -0
  35. package/lib/module/games/colors-sort/ColorsSortService.js +255 -0
  36. package/lib/module/games/colors-sort/ColorsSortService.js.map +1 -0
  37. package/lib/module/games/colors-sort/ColorsSortStore.js +257 -0
  38. package/lib/module/games/colors-sort/ColorsSortStore.js.map +1 -0
  39. package/lib/module/games/colors-sort/components/ColorContainer.js +140 -0
  40. package/lib/module/games/colors-sort/components/ColorContainer.js.map +1 -0
  41. package/lib/module/games/colors-sort/components/GameBackground.js +135 -0
  42. package/lib/module/games/colors-sort/components/GameBackground.js.map +1 -0
  43. package/lib/module/games/colors-sort/components/ScoreBoard.js +70 -0
  44. package/lib/module/games/colors-sort/components/ScoreBoard.js.map +1 -0
  45. package/lib/module/games/colors-sort/components/index.js +6 -0
  46. package/lib/module/games/colors-sort/components/index.js.map +1 -0
  47. package/lib/module/games/dino-jump/DinoJump.js +209 -0
  48. package/lib/module/games/dino-jump/DinoJump.js.map +1 -0
  49. package/lib/module/games/dino-jump/DinoJumpConstants.js +189 -0
  50. package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -0
  51. package/lib/module/games/dino-jump/DinoJumpService.js +270 -0
  52. package/lib/module/games/dino-jump/DinoJumpService.js.map +1 -0
  53. package/lib/module/games/dino-jump/DinoJumpStore.js +381 -0
  54. package/lib/module/games/dino-jump/DinoJumpStore.js.map +1 -0
  55. package/lib/module/games/dino-jump/components/DinoSprite.js +418 -0
  56. package/lib/module/games/dino-jump/components/DinoSprite.js.map +1 -0
  57. package/lib/module/games/dino-jump/components/GameArea.js +68 -0
  58. package/lib/module/games/dino-jump/components/GameArea.js.map +1 -0
  59. package/lib/module/games/dino-jump/components/GameBackground.js +444 -0
  60. package/lib/module/games/dino-jump/components/GameBackground.js.map +1 -0
  61. package/lib/module/games/dino-jump/components/ObstacleSprite.js +306 -0
  62. package/lib/module/games/dino-jump/components/ObstacleSprite.js.map +1 -0
  63. package/lib/module/games/dino-jump/components/ScoreBoard.js +105 -0
  64. package/lib/module/games/dino-jump/components/ScoreBoard.js.map +1 -0
  65. package/lib/module/games/dino-jump/components/StarSprite.js +45 -0
  66. package/lib/module/games/dino-jump/components/StarSprite.js.map +1 -0
  67. package/lib/module/games/dino-jump/components/index.js +9 -0
  68. package/lib/module/games/dino-jump/components/index.js.map +1 -0
  69. package/lib/module/games/flappy-bird/FlappyBird.js +126 -0
  70. package/lib/module/games/flappy-bird/FlappyBird.js.map +1 -0
  71. package/lib/module/games/flappy-bird/FlappyBirdConstants.js +90 -0
  72. package/lib/module/games/flappy-bird/FlappyBirdConstants.js.map +1 -0
  73. package/lib/module/games/flappy-bird/FlappyBirdStore.js +300 -0
  74. package/lib/module/games/flappy-bird/FlappyBirdStore.js.map +1 -0
  75. package/lib/module/games/flappy-bird/components/Bird.js +87 -0
  76. package/lib/module/games/flappy-bird/components/Bird.js.map +1 -0
  77. package/lib/module/games/flappy-bird/components/GameArea.js +87 -0
  78. package/lib/module/games/flappy-bird/components/GameArea.js.map +1 -0
  79. package/lib/module/games/flappy-bird/components/GameBackground.js +79 -0
  80. package/lib/module/games/flappy-bird/components/GameBackground.js.map +1 -0
  81. package/lib/module/games/flappy-bird/components/Pipes.js +172 -0
  82. package/lib/module/games/flappy-bird/components/Pipes.js.map +1 -0
  83. package/lib/module/games/flappy-bird/components/ScoreBoard.js +73 -0
  84. package/lib/module/games/flappy-bird/components/ScoreBoard.js.map +1 -0
  85. package/lib/module/games/flappy-bird/components/index.js +8 -0
  86. package/lib/module/games/flappy-bird/components/index.js.map +1 -0
  87. package/lib/module/games/fruit-merger/FruitMerger.js +120 -0
  88. package/lib/module/games/fruit-merger/FruitMerger.js.map +1 -0
  89. package/lib/module/games/fruit-merger/FruitMergerConstants.js +119 -0
  90. package/lib/module/games/fruit-merger/FruitMergerConstants.js.map +1 -0
  91. package/lib/module/games/fruit-merger/FruitMergerService.js +13 -0
  92. package/lib/module/games/fruit-merger/FruitMergerService.js.map +1 -0
  93. package/lib/module/games/fruit-merger/FruitMergerStore.js +315 -0
  94. package/lib/module/games/fruit-merger/FruitMergerStore.js.map +1 -0
  95. package/lib/module/games/fruit-merger/components/FruitItem.js +102 -0
  96. package/lib/module/games/fruit-merger/components/FruitItem.js.map +1 -0
  97. package/lib/module/games/fruit-merger/components/GameArea.js +103 -0
  98. package/lib/module/games/fruit-merger/components/GameArea.js.map +1 -0
  99. package/lib/module/games/fruit-merger/components/GameBackground.js +498 -0
  100. package/lib/module/games/fruit-merger/components/GameBackground.js.map +1 -0
  101. package/lib/module/games/fruit-merger/components/ScoreBoard.js +58 -0
  102. package/lib/module/games/fruit-merger/components/ScoreBoard.js.map +1 -0
  103. package/lib/module/games/fruit-merger/components/index.js +7 -0
  104. package/lib/module/games/fruit-merger/components/index.js.map +1 -0
  105. package/lib/module/games/fruit-ninja/FruitNinja.js +14 -22
  106. package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
  107. package/lib/module/games/fruit-ninja/FruitNinjaStore.js +1 -1
  108. package/lib/module/games/fruit-ninja/components/GameArea.js +1 -1
  109. package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -1
  110. package/lib/module/games/fruit-ninja/components/GameBackground.js +70 -45
  111. package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -1
  112. package/lib/module/games/fruit-ninja/components/ScoreBoard.js +47 -46
  113. package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
  114. package/lib/module/games/game-2048/Game2048.js +149 -0
  115. package/lib/module/games/game-2048/Game2048.js.map +1 -0
  116. package/lib/module/games/game-2048/Game2048Constants.js +263 -0
  117. package/lib/module/games/game-2048/Game2048Constants.js.map +1 -0
  118. package/lib/module/games/game-2048/Game2048Service.js +457 -0
  119. package/lib/module/games/game-2048/Game2048Service.js.map +1 -0
  120. package/lib/module/games/game-2048/Game2048Store.js +236 -0
  121. package/lib/module/games/game-2048/Game2048Store.js.map +1 -0
  122. package/lib/module/games/game-2048/components/GameBackground.js +247 -0
  123. package/lib/module/games/game-2048/components/GameBackground.js.map +1 -0
  124. package/lib/module/games/game-2048/components/GameGrid.js +139 -0
  125. package/lib/module/games/game-2048/components/GameGrid.js.map +1 -0
  126. package/lib/module/games/game-2048/components/GameTile.js +72 -0
  127. package/lib/module/games/game-2048/components/GameTile.js.map +1 -0
  128. package/lib/module/games/game-2048/components/ScoreBoard.js +52 -0
  129. package/lib/module/games/game-2048/components/ScoreBoard.js.map +1 -0
  130. package/lib/module/games/game-2048/components/index.js +7 -0
  131. package/lib/module/games/game-2048/components/index.js.map +1 -0
  132. package/lib/module/games/maze-runner/MazeRunner.js +51 -41
  133. package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
  134. package/lib/module/games/maze-runner/MazeRunnerService.js +19 -17
  135. package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
  136. package/lib/module/games/maze-runner/components/ScoreBoard.js +32 -42
  137. package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
  138. package/lib/module/games/popit-fidget/PopitFidget.js +57 -66
  139. package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
  140. package/lib/module/games/popit-fidget/PopitFidgetStore.js +6 -44
  141. package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -1
  142. package/lib/module/games/popit-fidget/components/ScoreBoard.js +31 -45
  143. package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -1
  144. package/lib/module/games/sliding-numbers/SlidingNumbers.js +159 -0
  145. package/lib/module/games/sliding-numbers/SlidingNumbers.js.map +1 -0
  146. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js +207 -0
  147. package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js.map +1 -0
  148. package/lib/module/games/sliding-numbers/SlidingNumbersService.js +248 -0
  149. package/lib/module/games/sliding-numbers/SlidingNumbersService.js.map +1 -0
  150. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js +274 -0
  151. package/lib/module/games/sliding-numbers/SlidingNumbersStore.js.map +1 -0
  152. package/lib/module/games/sliding-numbers/components/GameBackground.js +259 -0
  153. package/lib/module/games/sliding-numbers/components/GameBackground.js.map +1 -0
  154. package/lib/module/games/sliding-numbers/components/NumbersGrid.js +174 -0
  155. package/lib/module/games/sliding-numbers/components/NumbersGrid.js.map +1 -0
  156. package/lib/module/games/sliding-numbers/components/NumbersTile.js +116 -0
  157. package/lib/module/games/sliding-numbers/components/NumbersTile.js.map +1 -0
  158. package/lib/module/games/sliding-numbers/components/ScoreBoard.js +64 -0
  159. package/lib/module/games/sliding-numbers/components/ScoreBoard.js.map +1 -0
  160. package/lib/module/games/sliding-numbers/components/index.js +7 -0
  161. package/lib/module/games/sliding-numbers/components/index.js.map +1 -0
  162. package/lib/module/games/snake/Snake.js +189 -0
  163. package/lib/module/games/snake/Snake.js.map +1 -0
  164. package/lib/module/games/snake/SnakeConstants.js +138 -0
  165. package/lib/module/games/snake/SnakeConstants.js.map +1 -0
  166. package/lib/module/games/snake/SnakeService.js +148 -0
  167. package/lib/module/games/snake/SnakeService.js.map +1 -0
  168. package/lib/module/games/snake/SnakeStore.js +182 -0
  169. package/lib/module/games/snake/SnakeStore.js.map +1 -0
  170. package/lib/module/games/snake/components/GameBackground.js +221 -0
  171. package/lib/module/games/snake/components/GameBackground.js.map +1 -0
  172. package/lib/module/games/snake/components/GameGrid.js +153 -0
  173. package/lib/module/games/snake/components/GameGrid.js.map +1 -0
  174. package/lib/module/games/snake/components/ScoreBoard.js +51 -0
  175. package/lib/module/games/snake/components/ScoreBoard.js.map +1 -0
  176. package/lib/module/games/snake/components/index.js +6 -0
  177. package/lib/module/games/snake/components/index.js.map +1 -0
  178. package/lib/module/games/snake/index.js +6 -0
  179. package/lib/module/games/snake/index.js.map +1 -0
  180. package/lib/module/games/space-fighter/SpaceFighter.js +22 -26
  181. package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
  182. package/lib/module/games/space-fighter/SpaceFighterService.js +7 -6
  183. package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -1
  184. package/lib/module/games/space-fighter/SpaceFighterStore.js +25 -11
  185. package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -1
  186. package/lib/module/games/space-fighter/components/GameArea.js +1 -7
  187. package/lib/module/games/space-fighter/components/GameArea.js.map +1 -1
  188. package/lib/module/games/space-fighter/components/ScoreBoard.js +47 -48
  189. package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -1
  190. package/lib/module/games/whack-a-mole/WhackAMole.js +17 -10
  191. package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
  192. package/lib/module/games/whack-a-mole/WhackAMoleStore.js +1 -1
  193. package/lib/module/games/whack-a-mole/components/GameBackground.js +37 -30
  194. package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -1
  195. package/lib/module/games/whack-a-mole/components/ScoreBoard.js +32 -38
  196. package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
  197. package/lib/module/helpers/AnimationFrame.js.map +1 -0
  198. package/lib/module/helpers/AnimationTracker.js.map +1 -0
  199. package/lib/module/helpers/ErrorHandler.js.map +1 -0
  200. package/lib/module/helpers/GameControlButton.js.map +1 -0
  201. package/lib/module/{shared/helpers → helpers}/GameOverModal.js +6 -3
  202. package/lib/module/helpers/GameOverModal.js.map +1 -0
  203. package/lib/module/{shared/helpers → helpers}/GameSettingsModal.js +5 -5
  204. package/lib/module/helpers/GameSettingsModal.js.map +1 -0
  205. package/lib/module/{shared/helpers → helpers}/ParticleBlast.js +3 -2
  206. package/lib/module/helpers/ParticleBlast.js.map +1 -0
  207. package/lib/module/helpers/ScoreBoardContainer.js +34 -0
  208. package/lib/module/helpers/ScoreBoardContainer.js.map +1 -0
  209. package/lib/module/{shared/helpers → helpers}/index.js +1 -1
  210. package/lib/module/helpers/index.js.map +1 -0
  211. package/lib/module/index.js +9 -0
  212. package/lib/module/index.js.map +1 -1
  213. package/lib/module/services/GamesConstants.js +100 -5
  214. package/lib/module/services/GamesConstants.js.map +1 -1
  215. package/lib/module/services/GamesService.js +108 -42
  216. package/lib/module/services/GamesService.js.map +1 -1
  217. package/lib/module/services/SoundsService.js +132 -1
  218. package/lib/module/services/SoundsService.js.map +1 -1
  219. package/lib/module/services/UtilsService.js +32 -0
  220. package/lib/module/services/UtilsService.js.map +1 -0
  221. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +1 -1
  222. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  223. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts +1 -0
  224. package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -1
  225. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +5 -1
  226. package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
  227. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts +4 -0
  228. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -0
  229. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +104 -0
  230. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts.map +1 -0
  231. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts +40 -0
  232. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts.map +1 -0
  233. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts +48 -0
  234. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts.map +1 -0
  235. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts +13 -0
  236. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts.map +1 -0
  237. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts +5 -0
  238. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts.map +1 -0
  239. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts +3 -0
  240. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts.map +1 -0
  241. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts +6 -0
  242. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts.map +1 -0
  243. package/lib/typescript/src/games/candy-crush/components/index.d.ts +5 -0
  244. package/lib/typescript/src/games/candy-crush/components/index.d.ts.map +1 -0
  245. package/lib/typescript/src/games/candy-crush/index.d.ts +4 -0
  246. package/lib/typescript/src/games/candy-crush/index.d.ts.map +1 -0
  247. package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts +4 -0
  248. package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts.map +1 -0
  249. package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts +54 -0
  250. package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts.map +1 -0
  251. package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts +66 -0
  252. package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts.map +1 -0
  253. package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts +48 -0
  254. package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts.map +1 -0
  255. package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts +11 -0
  256. package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts.map +1 -0
  257. package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts +7 -0
  258. package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts.map +1 -0
  259. package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts +7 -0
  260. package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts.map +1 -0
  261. package/lib/typescript/src/games/colors-sort/components/index.d.ts +4 -0
  262. package/lib/typescript/src/games/colors-sort/components/index.d.ts.map +1 -0
  263. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts +4 -0
  264. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -0
  265. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts +97 -0
  266. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts.map +1 -0
  267. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts +40 -0
  268. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts.map +1 -0
  269. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts +103 -0
  270. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts.map +1 -0
  271. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts +3 -0
  272. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -0
  273. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts +8 -0
  274. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts.map +1 -0
  275. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts +8 -0
  276. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts.map +1 -0
  277. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts +3 -0
  278. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts.map +1 -0
  279. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts +7 -0
  280. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts.map +1 -0
  281. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts +3 -0
  282. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts.map +1 -0
  283. package/lib/typescript/src/games/dino-jump/components/index.d.ts +7 -0
  284. package/lib/typescript/src/games/dino-jump/components/index.d.ts.map +1 -0
  285. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts +4 -0
  286. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -0
  287. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts +83 -0
  288. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -0
  289. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts +53 -0
  290. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts.map +1 -0
  291. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts +8 -0
  292. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts.map +1 -0
  293. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts +8 -0
  294. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts.map +1 -0
  295. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts +8 -0
  296. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts.map +1 -0
  297. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts +9 -0
  298. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts.map +1 -0
  299. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts +7 -0
  300. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts.map +1 -0
  301. package/lib/typescript/src/games/flappy-bird/components/index.d.ts +6 -0
  302. package/lib/typescript/src/games/flappy-bird/components/index.d.ts.map +1 -0
  303. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts +4 -0
  304. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -0
  305. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts +115 -0
  306. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -0
  307. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts +5 -0
  308. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts.map +1 -0
  309. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts +43 -0
  310. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts.map +1 -0
  311. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts +10 -0
  312. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts.map +1 -0
  313. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts +8 -0
  314. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts.map +1 -0
  315. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts +8 -0
  316. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts.map +1 -0
  317. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts +7 -0
  318. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts.map +1 -0
  319. package/lib/typescript/src/games/fruit-merger/components/index.d.ts +5 -0
  320. package/lib/typescript/src/games/fruit-merger/components/index.d.ts.map +1 -0
  321. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +1 -1
  322. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  323. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts +1 -0
  324. package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -1
  325. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +5 -1
  326. package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
  327. package/lib/typescript/src/games/game-2048/Game2048.d.ts +4 -0
  328. package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -0
  329. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts +163 -0
  330. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts.map +1 -0
  331. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts +113 -0
  332. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts.map +1 -0
  333. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts +48 -0
  334. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts.map +1 -0
  335. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts +7 -0
  336. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts.map +1 -0
  337. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts +7 -0
  338. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts.map +1 -0
  339. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts +13 -0
  340. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts.map +1 -0
  341. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts +7 -0
  342. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts.map +1 -0
  343. package/lib/typescript/src/games/game-2048/components/index.d.ts +5 -0
  344. package/lib/typescript/src/games/game-2048/components/index.d.ts.map +1 -0
  345. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +1 -1
  346. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  347. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +1 -0
  348. package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
  349. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts +1 -0
  350. package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
  351. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +1 -1
  352. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  353. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +2 -5
  354. package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -1
  355. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +2 -2
  356. package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -1
  357. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts +4 -0
  358. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -0
  359. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts +108 -0
  360. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts.map +1 -0
  361. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts +34 -0
  362. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts.map +1 -0
  363. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts +56 -0
  364. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts.map +1 -0
  365. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts +7 -0
  366. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts.map +1 -0
  367. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts +7 -0
  368. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts.map +1 -0
  369. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts +11 -0
  370. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts.map +1 -0
  371. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts +7 -0
  372. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts.map +1 -0
  373. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts +5 -0
  374. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts.map +1 -0
  375. package/lib/typescript/src/games/snake/Snake.d.ts +4 -0
  376. package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -0
  377. package/lib/typescript/src/games/snake/SnakeConstants.d.ts +93 -0
  378. package/lib/typescript/src/games/snake/SnakeConstants.d.ts.map +1 -0
  379. package/lib/typescript/src/games/snake/SnakeService.d.ts +30 -0
  380. package/lib/typescript/src/games/snake/SnakeService.d.ts.map +1 -0
  381. package/lib/typescript/src/games/snake/SnakeStore.d.ts +43 -0
  382. package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -0
  383. package/lib/typescript/src/games/snake/components/GameBackground.d.ts +5 -0
  384. package/lib/typescript/src/games/snake/components/GameBackground.d.ts.map +1 -0
  385. package/lib/typescript/src/games/snake/components/GameGrid.d.ts +3 -0
  386. package/lib/typescript/src/games/snake/components/GameGrid.d.ts.map +1 -0
  387. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts +7 -0
  388. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -0
  389. package/lib/typescript/src/games/snake/components/index.d.ts +4 -0
  390. package/lib/typescript/src/games/snake/components/index.d.ts.map +1 -0
  391. package/lib/typescript/src/games/snake/index.d.ts +4 -0
  392. package/lib/typescript/src/games/snake/index.d.ts.map +1 -0
  393. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +1 -1
  394. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  395. package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -1
  396. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts +2 -0
  397. package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -1
  398. package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -1
  399. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +5 -1
  400. package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -1
  401. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +1 -1
  402. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  403. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts +1 -0
  404. package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -1
  405. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts +1 -0
  406. package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -1
  407. package/lib/typescript/src/helpers/AnimationFrame.d.ts.map +1 -0
  408. package/lib/typescript/src/helpers/AnimationTracker.d.ts.map +1 -0
  409. package/lib/typescript/src/helpers/ErrorHandler.d.ts.map +1 -0
  410. package/lib/typescript/src/helpers/GameControlButton.d.ts.map +1 -0
  411. package/lib/typescript/src/{shared/helpers → helpers}/GameOverModal.d.ts +2 -0
  412. package/lib/typescript/src/helpers/GameOverModal.d.ts.map +1 -0
  413. package/lib/typescript/src/{shared/helpers → helpers}/GameSettingsModal.d.ts +1 -1
  414. package/lib/typescript/src/helpers/GameSettingsModal.d.ts.map +1 -0
  415. package/lib/typescript/src/helpers/ParticleBlast.d.ts.map +1 -0
  416. package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts +9 -0
  417. package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts.map +1 -0
  418. package/lib/typescript/src/{shared/helpers → helpers}/index.d.ts +2 -1
  419. package/lib/typescript/src/helpers/index.d.ts.map +1 -0
  420. package/lib/typescript/src/index.d.ts +9 -0
  421. package/lib/typescript/src/index.d.ts.map +1 -1
  422. package/lib/typescript/src/services/GamesConstants.d.ts +162 -0
  423. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  424. package/lib/typescript/src/services/GamesService.d.ts +3 -25
  425. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  426. package/lib/typescript/src/services/SoundsService.d.ts +103 -0
  427. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
  428. package/lib/typescript/src/services/UtilsService.d.ts +38 -0
  429. package/lib/typescript/src/services/UtilsService.d.ts.map +1 -0
  430. package/package.json +1 -1
  431. package/lib/module/shared/helpers/AnimationFrame.js.map +0 -1
  432. package/lib/module/shared/helpers/AnimationTracker.js.map +0 -1
  433. package/lib/module/shared/helpers/ErrorHandler.js.map +0 -1
  434. package/lib/module/shared/helpers/GameControlButton.js.map +0 -1
  435. package/lib/module/shared/helpers/GameOverModal.js.map +0 -1
  436. package/lib/module/shared/helpers/GameSettingsModal.js.map +0 -1
  437. package/lib/module/shared/helpers/ParticleBlast.js.map +0 -1
  438. package/lib/module/shared/helpers/ResponsiveScoreBoard.js +0 -81
  439. package/lib/module/shared/helpers/ResponsiveScoreBoard.js.map +0 -1
  440. package/lib/module/shared/helpers/index.js.map +0 -1
  441. package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +0 -1
  442. package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +0 -1
  443. package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +0 -1
  444. package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +0 -1
  445. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +0 -1
  446. package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +0 -1
  447. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +0 -1
  448. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts +0 -42
  449. package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts.map +0 -1
  450. package/lib/typescript/src/shared/helpers/index.d.ts.map +0 -1
  451. /package/lib/module/{shared/helpers → helpers}/AnimationFrame.js +0 -0
  452. /package/lib/module/{shared/helpers → helpers}/AnimationTracker.js +0 -0
  453. /package/lib/module/{shared/helpers → helpers}/ErrorHandler.js +0 -0
  454. /package/lib/module/{shared/helpers → helpers}/GameControlButton.js +0 -0
  455. /package/lib/typescript/src/{shared/helpers → helpers}/AnimationFrame.d.ts +0 -0
  456. /package/lib/typescript/src/{shared/helpers → helpers}/AnimationTracker.d.ts +0 -0
  457. /package/lib/typescript/src/{shared/helpers → helpers}/ErrorHandler.d.ts +0 -0
  458. /package/lib/typescript/src/{shared/helpers → helpers}/GameControlButton.d.ts +0 -0
  459. /package/lib/typescript/src/{shared/helpers → helpers}/ParticleBlast.d.ts +0 -0
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ import { Dimensions } from 'react-native';
4
+ // Memoize screen dimensions for better performance
5
+ const {
6
+ width,
7
+ height
8
+ } = Dimensions.get('window');
9
+
10
+ // Dinosaur Jump Game Constants
11
+ export const DINO_JUMP_CONSTANTS = {
12
+ // Chrome dino physics - more realistic
13
+ gravity: 1.0,
14
+ jumpForce: -20,
15
+ // Higher jump for better obstacle clearance
16
+ gameSpeed: {
17
+ easy: 4,
18
+ // Chrome dino starts slower
19
+ medium: 6,
20
+ hard: 8
21
+ },
22
+ // Chrome dino scoring - distance based
23
+ baseScore: {
24
+ easy: 1,
25
+ // 1 point per frame
26
+ medium: 1,
27
+ hard: 1
28
+ },
29
+ scoreMultiplier: {
30
+ easy: 1,
31
+ medium: 1.5,
32
+ hard: 2
33
+ },
34
+ // Speed increase over time (Chrome dino gets faster)
35
+ speedIncreaseRate: 0.001,
36
+ maxSpeed: 12,
37
+ // Time limits per difficulty (in seconds)
38
+ timeLimit: {
39
+ easy: 120,
40
+ // 2 minutes
41
+ medium: 180,
42
+ // 3 minutes
43
+ hard: 300 // 5 minutes
44
+ }
45
+ };
46
+ export const DINO_JUMP_GAME_CONFIG = {
47
+ // Screen dimensions
48
+ SCREEN_WIDTH: width,
49
+ SCREEN_HEIGHT: height,
50
+ GROUND_HEIGHT: 150,
51
+ // Default ground height (used when offset > 0)
52
+
53
+ // Dinosaur properties
54
+ DINOSAUR_WIDTH: 55,
55
+ DINOSAUR_HEIGHT: 58,
56
+ DINOSAUR_X: 80,
57
+ // Fixed X position
58
+
59
+ // Obstacle properties
60
+ OBSTACLE_WIDTH: 20,
61
+ OBSTACLE_HEIGHT: 40,
62
+ OBSTACLE_SPAWN_DISTANCE: 600,
63
+ // Distance between obstacles
64
+
65
+ // Game timing
66
+ GAME_DURATION: 120,
67
+ // 5 minutes in seconds
68
+ PHYSICS_FRAME_RATE: 60,
69
+ // 60 FPS
70
+ OBSTACLE_SPAWN_INTERVAL: 2000,
71
+ // 2 seconds
72
+
73
+ // Animation
74
+ JUMP_DURATION: 600,
75
+ // milliseconds
76
+ GROUND_SCROLL_SPEED: 4 // pixels per frame
77
+ };
78
+
79
+ // Helper function to get dynamic ground height based on offset
80
+ export const getGroundHeight = (offset = 0) => {
81
+ return offset > 0 ? 150 : 250;
82
+ };
83
+
84
+ // Helper function to get ground Y position
85
+ export const getGroundY = (offset = 0) => {
86
+ return height - getGroundHeight(offset);
87
+ };
88
+ export const DINO_JUMP_ANIMATION_CONFIG = {
89
+ DINO_JUMP: {
90
+ damping: 15,
91
+ stiffness: 300,
92
+ mass: 1
93
+ },
94
+ OBSTACLE_MOVE: {
95
+ duration: 3000 // 3 seconds to cross screen
96
+ },
97
+ COLLISION_FEEDBACK: {
98
+ duration: 200,
99
+ intensity: 0.1
100
+ }
101
+ };
102
+ export const DINO_JUMP_COLORS = {
103
+ // Background colors - vibrant and colorful
104
+ SKY_TOP: '#FF9A9E',
105
+ // Soft pink gradient
106
+ SKY_BOTTOM: '#FECFEF',
107
+ // Light pink
108
+ GROUND: '#FFD93D',
109
+ // Bright sunny yellow
110
+ GROUND_LINE: '#FF6B6B',
111
+ // Coral red
112
+
113
+ // Dinosaur colors - bright and fun
114
+ DINOSAUR_PRIMARY: '#4ECDC4',
115
+ // Bright teal
116
+ DINOSAUR_SECONDARY: '#45B7D1',
117
+ // Sky blue
118
+ DINOSAUR_OUTLINE: '#2C3E50',
119
+ // Dark blue-gray
120
+
121
+ // Obstacle colors (cactus) - vibrant greens
122
+ OBSTACLE_PRIMARY: '#2ECC71',
123
+ // Emerald green
124
+ OBSTACLE_SECONDARY: '#27AE60',
125
+ // Darker emerald
126
+ OBSTACLE_OUTLINE: '#1E8449',
127
+ // Forest green
128
+
129
+ // UI colors - bright and engaging
130
+ SCORE_TEXT: '#2C3E50',
131
+ // Dark blue-gray
132
+ GAME_OVER_OVERLAY: 'rgba(231, 76, 60, 0.8)',
133
+ // Red overlay
134
+ BUTTON_PRIMARY: '#E74C3C',
135
+ // Bright red
136
+ BUTTON_SECONDARY: '#C0392B',
137
+ // Dark red
138
+ TEXT_PRIMARY: '#FFFFFF',
139
+ TEXT_SECONDARY: '#ECF0F1',
140
+ // Light gray
141
+
142
+ // Cloud colors - soft and dreamy
143
+ CLOUD_COLOR: '#FFFFFF',
144
+ CLOUD_SHADOW: 'rgba(52, 152, 219, 0.2)' // Blue shadow
145
+ };
146
+
147
+ // Dinosaur states for animation
148
+ export const DINOSAUR_STATES = {
149
+ RUNNING: 'running',
150
+ JUMPING: 'jumping',
151
+ DUCKING: 'ducking',
152
+ DEAD: 'dead'
153
+ };
154
+
155
+ // Obstacle types
156
+ export const OBSTACLE_TYPES = {
157
+ CACTUS_SMALL: 'cactus_small',
158
+ CACTUS_LARGE: 'cactus_large',
159
+ BIRD: 'bird'
160
+ };
161
+
162
+ // Dinosaur Jump Game Theme - Desert/Orange theme
163
+ export const DINO_JUMP_THEME = {
164
+ backgroundColor: '#F0E68C',
165
+ // Khaki background like desert
166
+ headerBackgroundColor: 'rgba(255, 99, 71, 0.9)',
167
+ // Tomato header
168
+ headerTextColor: '#ffffff',
169
+ sectionBackgroundColor: 'rgba(255, 99, 71, 0.4)',
170
+ // Light tomato sections
171
+ sectionTitleColor: '#ffffff',
172
+ buttonSelectedColor: '#FF6347',
173
+ // Tomato for selected
174
+ buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
175
+ buttonSelectedTextColor: '#ffffff',
176
+ buttonUnselectedTextColor: '#1f2937',
177
+ switchTrackColorFalse: 'rgba(255, 99, 71, 0.5)',
178
+ switchTrackColorTrue: '#FF6347',
179
+ switchThumbColor: '#ffffff',
180
+ infoTextColor: '#1f2937' // Dark text for readability
181
+ };
182
+
183
+ // Dinosaur Jump Difficulty Descriptions
184
+ export const DINO_JUMP_DIFFICULTY_DESCRIPTIONS = {
185
+ easy: 'Slow speed, easy obstacles, perfect for beginners',
186
+ medium: 'Medium speed, moderate challenge with mixed obstacles',
187
+ hard: 'Fast speed, frequent obstacles, expert level challenge'
188
+ };
189
+ //# sourceMappingURL=DinoJumpConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Dimensions","width","height","get","DINO_JUMP_CONSTANTS","gravity","jumpForce","gameSpeed","easy","medium","hard","baseScore","scoreMultiplier","speedIncreaseRate","maxSpeed","timeLimit","DINO_JUMP_GAME_CONFIG","SCREEN_WIDTH","SCREEN_HEIGHT","GROUND_HEIGHT","DINOSAUR_WIDTH","DINOSAUR_HEIGHT","DINOSAUR_X","OBSTACLE_WIDTH","OBSTACLE_HEIGHT","OBSTACLE_SPAWN_DISTANCE","GAME_DURATION","PHYSICS_FRAME_RATE","OBSTACLE_SPAWN_INTERVAL","JUMP_DURATION","GROUND_SCROLL_SPEED","getGroundHeight","offset","getGroundY","DINO_JUMP_ANIMATION_CONFIG","DINO_JUMP","damping","stiffness","mass","OBSTACLE_MOVE","duration","COLLISION_FEEDBACK","intensity","DINO_JUMP_COLORS","SKY_TOP","SKY_BOTTOM","GROUND","GROUND_LINE","DINOSAUR_PRIMARY","DINOSAUR_SECONDARY","DINOSAUR_OUTLINE","OBSTACLE_PRIMARY","OBSTACLE_SECONDARY","OBSTACLE_OUTLINE","SCORE_TEXT","GAME_OVER_OVERLAY","BUTTON_PRIMARY","BUTTON_SECONDARY","TEXT_PRIMARY","TEXT_SECONDARY","CLOUD_COLOR","CLOUD_SHADOW","DINOSAUR_STATES","RUNNING","JUMPING","DUCKING","DEAD","OBSTACLE_TYPES","CACTUS_SMALL","CACTUS_LARGE","BIRD","DINO_JUMP_THEME","backgroundColor","headerBackgroundColor","headerTextColor","sectionBackgroundColor","sectionTitleColor","buttonSelectedColor","buttonUnselectedColor","buttonSelectedTextColor","buttonUnselectedTextColor","switchTrackColorFalse","switchTrackColorTrue","switchThumbColor","infoTextColor","DINO_JUMP_DIFFICULTY_DESCRIPTIONS"],"sourceRoot":"../../../../src","sources":["games/dino-jump/DinoJumpConstants.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAGzC;AACA,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGF,UAAU,CAACG,GAAG,CAAC,QAAQ,CAAC;;AAElD;AACA,OAAO,MAAMC,mBAAmB,GAAG;EACjC;EACAC,OAAO,EAAE,GAAG;EACZC,SAAS,EAAE,CAAC,EAAE;EAAE;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CAAC;IAAK;IACZC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE;EACR,CAAC;EACD;EACAC,SAAS,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EAAE,SAAS;EAC1BC,sBAAsB,EAAE,wBAAwB;EAAE;EAClDC,iBAAiB,EAAE,SAAS;EAC5BC,mBAAmB,EAAE,SAAS;EAAE;EAChCC,qBAAqB,EAAE,0BAA0B;EACjDC,uBAAuB,EAAE,SAAS;EAClCC,yBAAyB,EAAE,SAAS;EACpCC,qBAAqB,EAAE,wBAAwB;EAC/CC,oBAAoB,EAAE,SAAS;EAC/BC,gBAAgB,EAAE,SAAS;EAC3BC,aAAa,EAAE,SAAS,CAAE;AAC5B,CAAC;;AAED;AACA,OAAO,MAAMC,iCAAiC,GAAG;EAC/C7E,IAAI,EAAE,mDAAmD;EACzDC,MAAM,EAAE,uDAAuD;EAC/DC,IAAI,EAAE;AACR,CAAU","ignoreList":[]}
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+
3
+ import { DINO_JUMP_CONSTANTS, DINO_JUMP_GAME_CONFIG, getGroundY } from "./DinoJumpConstants.js";
4
+ export class DinoJumpService {
5
+ gameTimer = null;
6
+ physicsAnimationId = null;
7
+ obstacleTimer = null;
8
+ cloudTimer = null;
9
+ starTimer = null;
10
+ lastFrameTime = 0;
11
+ obstacleId = 0;
12
+ cloudId = 0;
13
+ starId = 0;
14
+ isPhysicsRunning = false;
15
+ constructor() {
16
+ this.lastFrameTime = performance.now();
17
+ }
18
+
19
+ // Get difficulty settings
20
+ getDifficultySettings(difficulty) {
21
+ return {
22
+ speed: DINO_JUMP_CONSTANTS.gameSpeed[difficulty],
23
+ baseScore: DINO_JUMP_CONSTANTS.baseScore[difficulty],
24
+ scoreMultiplier: DINO_JUMP_CONSTANTS.scoreMultiplier[difficulty],
25
+ obstacleSpawnRate: difficulty === 'easy' ? 3000 : difficulty === 'medium' ? 2000 : 1500
26
+ };
27
+ }
28
+
29
+ // Start game timer
30
+ startTimer(decrementTimeCallback) {
31
+ this.stopTimer();
32
+ this.gameTimer = setInterval(() => {
33
+ decrementTimeCallback();
34
+ }, 1000);
35
+ }
36
+
37
+ // Stop game timer
38
+ stopTimer() {
39
+ if (this.gameTimer) {
40
+ clearInterval(this.gameTimer);
41
+ this.gameTimer = null;
42
+ }
43
+ }
44
+
45
+ // Start physics loop
46
+ startPhysicsLoop(updateDinosaur, updateObstacles, updateClouds, updateStars, updateGround, updateScore, updateSpeed, checkCollisions, stopGame) {
47
+ this.stopPhysicsLoop();
48
+ this.isPhysicsRunning = true;
49
+ this.lastFrameTime = performance.now();
50
+ const physicsLoop = currentTime => {
51
+ if (!this.isPhysicsRunning) return;
52
+ const deltaTime = Math.min((currentTime - this.lastFrameTime) / 1000, 0.016); // Cap at 60fps
53
+ this.lastFrameTime = currentTime;
54
+ try {
55
+ // Update game objects
56
+ updateDinosaur(deltaTime);
57
+ updateObstacles(deltaTime);
58
+ updateClouds(deltaTime);
59
+ updateStars(deltaTime);
60
+ updateGround(deltaTime);
61
+
62
+ // Update score (distance-based)
63
+ updateScore(1);
64
+ updateSpeed();
65
+
66
+ // Check for collisions (collision handler will stop game if lives reach 0)
67
+ checkCollisions();
68
+
69
+ // Continue loop using requestAnimationFrame for better performance
70
+ if (this.isPhysicsRunning) {
71
+ this.physicsAnimationId = requestAnimationFrame(physicsLoop);
72
+ }
73
+ } catch (error) {
74
+ console.error('Physics loop error:', error);
75
+ this.stopPhysicsLoop();
76
+ stopGame();
77
+ }
78
+ };
79
+ this.physicsAnimationId = requestAnimationFrame(physicsLoop);
80
+ }
81
+
82
+ // Stop physics loop
83
+ stopPhysicsLoop() {
84
+ this.isPhysicsRunning = false;
85
+ if (this.physicsAnimationId) {
86
+ cancelAnimationFrame(this.physicsAnimationId);
87
+ this.physicsAnimationId = null;
88
+ }
89
+ }
90
+
91
+ // Start obstacle spawning
92
+ startObstacleSpawning(addObstacle, difficulty, getOffset) {
93
+ this.stopObstacleSpawning();
94
+ const settings = this.getDifficultySettings(difficulty);
95
+ const spawnObstacle = () => {
96
+ const offset = getOffset();
97
+ const obstacle = this.createRandomObstacle(offset);
98
+ addObstacle(obstacle);
99
+
100
+ // Schedule next obstacle
101
+ const nextSpawnTime = settings.obstacleSpawnRate + Math.random() * 1000; // Add randomness
102
+ this.obstacleTimer = setTimeout(spawnObstacle, nextSpawnTime);
103
+ };
104
+
105
+ // Start spawning after initial delay
106
+ this.obstacleTimer = setTimeout(spawnObstacle, 2000);
107
+ }
108
+
109
+ // Stop obstacle spawning
110
+ stopObstacleSpawning() {
111
+ if (this.obstacleTimer) {
112
+ clearTimeout(this.obstacleTimer);
113
+ this.obstacleTimer = null;
114
+ }
115
+ }
116
+
117
+ // Start cloud spawning
118
+ startCloudSpawning(addCloud) {
119
+ this.stopCloudSpawning();
120
+ const spawnCloud = () => {
121
+ const cloud = this.createRandomCloud();
122
+ addCloud(cloud);
123
+
124
+ // Schedule next cloud (clouds spawn less frequently)
125
+ const nextSpawnTime = 5000 + Math.random() * 5000; // 5-10 seconds
126
+ this.cloudTimer = setTimeout(spawnCloud, nextSpawnTime);
127
+ };
128
+
129
+ // Start spawning clouds
130
+ this.cloudTimer = setTimeout(spawnCloud, 3000);
131
+ }
132
+
133
+ // Stop cloud spawning
134
+ stopCloudSpawning() {
135
+ if (this.cloudTimer) {
136
+ clearTimeout(this.cloudTimer);
137
+ this.cloudTimer = null;
138
+ }
139
+ }
140
+
141
+ // Start star spawning
142
+ startStarSpawning(addStar, getOffset) {
143
+ this.stopStarSpawning();
144
+ const spawnStar = () => {
145
+ const offset = getOffset();
146
+ const star = this.createRandomStar(offset);
147
+ addStar(star);
148
+
149
+ // Schedule next star (stars spawn occasionally)
150
+ const nextSpawnTime = 8000 + Math.random() * 7000; // 8-15 seconds
151
+ this.starTimer = setTimeout(spawnStar, nextSpawnTime);
152
+ };
153
+
154
+ // Start spawning stars after initial delay
155
+ this.starTimer = setTimeout(spawnStar, 10000);
156
+ }
157
+
158
+ // Stop star spawning
159
+ stopStarSpawning() {
160
+ if (this.starTimer) {
161
+ clearTimeout(this.starTimer);
162
+ this.starTimer = null;
163
+ }
164
+ }
165
+
166
+ // Create random obstacle (needs offset parameter)
167
+ createRandomObstacle(offset = 0) {
168
+ const types = ['cactus_small', 'cactus_large'];
169
+ const type = types[Math.floor(Math.random() * types.length)];
170
+ let width, height, y;
171
+ const groundY = getGroundY(offset);
172
+ switch (type) {
173
+ case 'cactus_small':
174
+ width = 22;
175
+ height = 45;
176
+ y = groundY - height - 22; // Exactly on top of ground
177
+ break;
178
+ case 'cactus_large':
179
+ width = 32;
180
+ height = 65;
181
+ y = groundY - height - 22; // Exactly on top of ground
182
+ break;
183
+ }
184
+ return {
185
+ id: `obstacle_${this.obstacleId++}`,
186
+ type,
187
+ x: DINO_JUMP_GAME_CONFIG.SCREEN_WIDTH + 50,
188
+ y,
189
+ width,
190
+ height,
191
+ speed: 5 // Base speed, will be modified by game speed
192
+ };
193
+ }
194
+
195
+ // Create random cloud
196
+ createRandomCloud() {
197
+ return {
198
+ id: `cloud_${this.cloudId++}`,
199
+ x: DINO_JUMP_GAME_CONFIG.SCREEN_WIDTH + 50,
200
+ y: 50 + Math.random() * 80,
201
+ // Sky height
202
+ width: 46 + Math.random() * 30,
203
+ height: 14 + Math.random() * 10,
204
+ speed: 1 + Math.random() * 2 // Slow moving
205
+ };
206
+ }
207
+
208
+ // Create random star (mushroom) (needs offset parameter)
209
+ createRandomStar(offset = 0) {
210
+ const groundY = getGroundY(offset);
211
+ const width = 45;
212
+ const height = 45;
213
+ return {
214
+ id: `star_${this.starId++}`,
215
+ x: DINO_JUMP_GAME_CONFIG.SCREEN_WIDTH + 50,
216
+ y: groundY - height - 5,
217
+ // Same as obstacles - sits on ground
218
+ width,
219
+ height,
220
+ speed: 5 // Same speed as obstacles
221
+ };
222
+ }
223
+
224
+ // Format time for display
225
+ formatTime(timeInSeconds) {
226
+ const minutes = Math.floor(timeInSeconds / 60);
227
+ const seconds = timeInSeconds % 60;
228
+ return `${minutes}:${seconds.toString().padStart(2, '0')}`;
229
+ }
230
+
231
+ // Calculate final score
232
+ calculateFinalScore(score, timeElapsed, difficulty) {
233
+ const settings = this.getDifficultySettings(difficulty);
234
+ const timeBonus = Math.max(0, 300 - timeElapsed) * settings.scoreMultiplier;
235
+ return score + timeBonus;
236
+ }
237
+
238
+ // Check if new high score
239
+ isNewHighScore(currentScore, previousHighScore) {
240
+ return currentScore > previousHighScore;
241
+ }
242
+
243
+ // Generate random ground pattern for visual variety
244
+ generateGroundPattern() {
245
+ const pattern = [];
246
+ for (let i = 0; i < 20; i++) {
247
+ pattern.push(Math.random() * 3); // Random height variation
248
+ }
249
+ return pattern;
250
+ }
251
+
252
+ // Cleanup all timers and intervals
253
+ cleanup() {
254
+ this.stopTimer();
255
+ this.stopPhysicsLoop();
256
+ this.stopObstacleSpawning();
257
+ this.stopCloudSpawning();
258
+ this.stopStarSpawning();
259
+ }
260
+
261
+ // Reset service state
262
+ reset() {
263
+ this.cleanup();
264
+ this.obstacleId = 0;
265
+ this.cloudId = 0;
266
+ this.starId = 0;
267
+ this.lastFrameTime = performance.now();
268
+ }
269
+ }
270
+ //# sourceMappingURL=DinoJumpService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DINO_JUMP_CONSTANTS","DINO_JUMP_GAME_CONFIG","getGroundY","DinoJumpService","gameTimer","physicsAnimationId","obstacleTimer","cloudTimer","starTimer","lastFrameTime","obstacleId","cloudId","starId","isPhysicsRunning","constructor","performance","now","getDifficultySettings","difficulty","speed","gameSpeed","baseScore","scoreMultiplier","obstacleSpawnRate","startTimer","decrementTimeCallback","stopTimer","setInterval","clearInterval","startPhysicsLoop","updateDinosaur","updateObstacles","updateClouds","updateStars","updateGround","updateScore","updateSpeed","checkCollisions","stopGame","stopPhysicsLoop","physicsLoop","currentTime","deltaTime","Math","min","requestAnimationFrame","error","console","cancelAnimationFrame","startObstacleSpawning","addObstacle","getOffset","stopObstacleSpawning","settings","spawnObstacle","offset","obstacle","createRandomObstacle","nextSpawnTime","random","setTimeout","clearTimeout","startCloudSpawning","addCloud","stopCloudSpawning","spawnCloud","cloud","createRandomCloud","startStarSpawning","addStar","stopStarSpawning","spawnStar","star","createRandomStar","types","type","floor","length","width","height","y","groundY","id","x","SCREEN_WIDTH","formatTime","timeInSeconds","minutes","seconds","toString","padStart","calculateFinalScore","score","timeElapsed","timeBonus","max","isNewHighScore","currentScore","previousHighScore","generateGroundPattern","pattern","i","push","cleanup","reset"],"sourceRoot":"../../../../src","sources":["games/dino-jump/DinoJumpService.ts"],"mappings":";;AAAA,SACEA,mBAAmB,EACnBC,qBAAqB,EACrBC,UAAU,QACL,wBAAqB;AAG5B,OAAO,MAAMC,eAAe,CAAC;EACnBC,SAAS,GAA0B,IAAI;EACvCC,kBAAkB,GAAkB,IAAI;EACxCC,aAAa,GAA0B,IAAI;EAC3CC,UAAU,GAA0B,IAAI;EACxCC,SAAS,GAA0B,IAAI;EACvCC,aAAa,GAAW,CAAC;EACzBC,UAAU,GAAW,CAAC;EACtBC,OAAO,GAAW,CAAC;EACnBC,MAAM,GAAW,CAAC;EAClBC,gBAAgB,GAAY,KAAK;EAEzCC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACL,aAAa,GAAGM,WAAW,CAACC,GAAG,CAAC,CAAC;EACxC;;EAEA;EACAC,qBAAqBA,CAACC,UAAsC,EAAE;IAC5D,OAAO;MACLC,KAAK,EAAEnB,mBAAmB,CAACoB,SAAS,CAACF,UAAU,CAAC;MAChDG,SAAS,EAAErB,mBAAmB,CAACqB,SAAS,CAACH,UAAU,CAAC;MACpDI,eAAe,EAAEtB,mBAAmB,CAACsB,eAAe,CAACJ,UAAU,CAAC;MAChEK,iBAAiB,EAAEL,UAAU,KAAK,MAAM,GAAG,IAAI,GAAGA,UAAU,KAAK,QAAQ,GAAG,IAAI,GAAG;IACrF,CAAC;EACH;;EAEA;EACAM,UAAUA,CAACC,qBAAiC,EAAE;IAC5C,IAAI,CAACC,SAAS,CAAC,CAAC;IAChB,IAAI,CAACtB,SAAS,GAAGuB,WAAW,CAAC,MAAM;MACjCF,qBAAqB,CAAC,CAAC;IACzB,CAAC,EAAE,IAAI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