react-native-games 0.7.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 (341) 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/index.js +8 -0
  163. package/lib/module/index.js.map +1 -1
  164. package/lib/module/services/GamesConstants.js +58 -2
  165. package/lib/module/services/GamesConstants.js.map +1 -1
  166. package/lib/module/services/GamesService.js +40 -0
  167. package/lib/module/services/GamesService.js.map +1 -1
  168. package/lib/module/services/SoundsService.js +132 -1
  169. package/lib/module/services/SoundsService.js.map +1 -1
  170. package/lib/module/shared/helpers/GameOverModal.js +6 -3
  171. package/lib/module/shared/helpers/GameOverModal.js.map +1 -1
  172. package/lib/module/shared/helpers/GameSettingsModal.js +3 -3
  173. package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -1
  174. package/lib/module/shared/helpers/ParticleBlast.js +3 -2
  175. package/lib/module/shared/helpers/ParticleBlast.js.map +1 -1
  176. package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
  177. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts +4 -0
  178. package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -0
  179. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +104 -0
  180. package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts.map +1 -0
  181. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts +40 -0
  182. package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts.map +1 -0
  183. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts +48 -0
  184. package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts.map +1 -0
  185. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts +13 -0
  186. package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts.map +1 -0
  187. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts +5 -0
  188. package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts.map +1 -0
  189. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts +3 -0
  190. package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts.map +1 -0
  191. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts +3 -0
  192. package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts.map +1 -0
  193. package/lib/typescript/src/games/candy-crush/components/index.d.ts +5 -0
  194. package/lib/typescript/src/games/candy-crush/components/index.d.ts.map +1 -0
  195. package/lib/typescript/src/games/candy-crush/index.d.ts +4 -0
  196. package/lib/typescript/src/games/candy-crush/index.d.ts.map +1 -0
  197. package/lib/typescript/src/games/color-sort/ColorSort.d.ts +4 -0
  198. package/lib/typescript/src/games/color-sort/ColorSort.d.ts.map +1 -0
  199. package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts +52 -0
  200. package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts.map +1 -0
  201. package/lib/typescript/src/games/color-sort/ColorSortService.d.ts +66 -0
  202. package/lib/typescript/src/games/color-sort/ColorSortService.d.ts.map +1 -0
  203. package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts +48 -0
  204. package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts.map +1 -0
  205. package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts +11 -0
  206. package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts.map +1 -0
  207. package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts +7 -0
  208. package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts.map +1 -0
  209. package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts +3 -0
  210. package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts.map +1 -0
  211. package/lib/typescript/src/games/color-sort/components/index.d.ts +4 -0
  212. package/lib/typescript/src/games/color-sort/components/index.d.ts.map +1 -0
  213. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts +4 -0
  214. package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -0
  215. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts +95 -0
  216. package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts.map +1 -0
  217. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts +40 -0
  218. package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts.map +1 -0
  219. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts +103 -0
  220. package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts.map +1 -0
  221. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts +3 -0
  222. package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -0
  223. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts +8 -0
  224. package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts.map +1 -0
  225. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts +7 -0
  226. package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts.map +1 -0
  227. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts +3 -0
  228. package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts.map +1 -0
  229. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts +3 -0
  230. package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts.map +1 -0
  231. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts +3 -0
  232. package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts.map +1 -0
  233. package/lib/typescript/src/games/dino-jump/components/index.d.ts +7 -0
  234. package/lib/typescript/src/games/dino-jump/components/index.d.ts.map +1 -0
  235. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts +4 -0
  236. package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -0
  237. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts +83 -0
  238. package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -0
  239. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts +53 -0
  240. package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts.map +1 -0
  241. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts +8 -0
  242. package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts.map +1 -0
  243. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts +8 -0
  244. package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts.map +1 -0
  245. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts +7 -0
  246. package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts.map +1 -0
  247. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts +8 -0
  248. package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts.map +1 -0
  249. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts +3 -0
  250. package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts.map +1 -0
  251. package/lib/typescript/src/games/flappy-bird/components/index.d.ts +6 -0
  252. package/lib/typescript/src/games/flappy-bird/components/index.d.ts.map +1 -0
  253. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts +4 -0
  254. package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -0
  255. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts +115 -0
  256. package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -0
  257. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts +5 -0
  258. package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts.map +1 -0
  259. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts +43 -0
  260. package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts.map +1 -0
  261. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts +10 -0
  262. package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts.map +1 -0
  263. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts +8 -0
  264. package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts.map +1 -0
  265. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts +7 -0
  266. package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts.map +1 -0
  267. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts +3 -0
  268. package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts.map +1 -0
  269. package/lib/typescript/src/games/fruit-merger/components/index.d.ts +5 -0
  270. package/lib/typescript/src/games/fruit-merger/components/index.d.ts.map +1 -0
  271. package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
  272. package/lib/typescript/src/games/game-2048/Game2048.d.ts +4 -0
  273. package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -0
  274. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts +163 -0
  275. package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts.map +1 -0
  276. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts +113 -0
  277. package/lib/typescript/src/games/game-2048/Game2048Service.d.ts.map +1 -0
  278. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts +48 -0
  279. package/lib/typescript/src/games/game-2048/Game2048Store.d.ts.map +1 -0
  280. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts +7 -0
  281. package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts.map +1 -0
  282. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts +7 -0
  283. package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts.map +1 -0
  284. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts +13 -0
  285. package/lib/typescript/src/games/game-2048/components/GameTile.d.ts.map +1 -0
  286. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts +3 -0
  287. package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts.map +1 -0
  288. package/lib/typescript/src/games/game-2048/components/index.d.ts +5 -0
  289. package/lib/typescript/src/games/game-2048/components/index.d.ts.map +1 -0
  290. package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
  291. package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
  292. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts +4 -0
  293. package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -0
  294. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts +108 -0
  295. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts.map +1 -0
  296. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts +34 -0
  297. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts.map +1 -0
  298. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts +56 -0
  299. package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts.map +1 -0
  300. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts +7 -0
  301. package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts.map +1 -0
  302. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts +7 -0
  303. package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts.map +1 -0
  304. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts +11 -0
  305. package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts.map +1 -0
  306. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts +3 -0
  307. package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts.map +1 -0
  308. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts +5 -0
  309. package/lib/typescript/src/games/sliding-numbers/components/index.d.ts.map +1 -0
  310. package/lib/typescript/src/games/snake/Snake.d.ts +4 -0
  311. package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -0
  312. package/lib/typescript/src/games/snake/SnakeConstants.d.ts +93 -0
  313. package/lib/typescript/src/games/snake/SnakeConstants.d.ts.map +1 -0
  314. package/lib/typescript/src/games/snake/SnakeService.d.ts +30 -0
  315. package/lib/typescript/src/games/snake/SnakeService.d.ts.map +1 -0
  316. package/lib/typescript/src/games/snake/SnakeStore.d.ts +43 -0
  317. package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -0
  318. package/lib/typescript/src/games/snake/components/GameBackground.d.ts +5 -0
  319. package/lib/typescript/src/games/snake/components/GameBackground.d.ts.map +1 -0
  320. package/lib/typescript/src/games/snake/components/GameGrid.d.ts +3 -0
  321. package/lib/typescript/src/games/snake/components/GameGrid.d.ts.map +1 -0
  322. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts +3 -0
  323. package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -0
  324. package/lib/typescript/src/games/snake/components/index.d.ts +4 -0
  325. package/lib/typescript/src/games/snake/components/index.d.ts.map +1 -0
  326. package/lib/typescript/src/games/snake/index.d.ts +4 -0
  327. package/lib/typescript/src/games/snake/index.d.ts.map +1 -0
  328. package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
  329. package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
  330. package/lib/typescript/src/index.d.ts +8 -0
  331. package/lib/typescript/src/index.d.ts.map +1 -1
  332. package/lib/typescript/src/services/GamesConstants.d.ts +156 -0
  333. package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
  334. package/lib/typescript/src/services/GamesService.d.ts +10 -2
  335. package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
  336. package/lib/typescript/src/services/SoundsService.d.ts +103 -0
  337. package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
  338. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts +2 -0
  339. package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -1
  340. package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -1
  341. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ import type { Obstacle, Cloud, Star } from './DinoJumpStore';
2
+ export declare class DinoJumpService {
3
+ private gameTimer;
4
+ private physicsAnimationId;
5
+ private obstacleTimer;
6
+ private cloudTimer;
7
+ private starTimer;
8
+ private lastFrameTime;
9
+ private obstacleId;
10
+ private cloudId;
11
+ private starId;
12
+ private isPhysicsRunning;
13
+ constructor();
14
+ getDifficultySettings(difficulty: 'easy' | 'medium' | 'hard'): {
15
+ speed: 8 | 6 | 4;
16
+ baseScore: 1;
17
+ scoreMultiplier: 2 | 1.5 | 1;
18
+ obstacleSpawnRate: number;
19
+ };
20
+ startTimer(decrementTimeCallback: () => void): void;
21
+ stopTimer(): void;
22
+ startPhysicsLoop(updateDinosaur: (deltaTime: number) => void, updateObstacles: (deltaTime: number) => void, updateClouds: (deltaTime: number) => void, updateStars: (deltaTime: number) => void, updateGround: (deltaTime: number) => void, updateScore: (points: number) => void, updateSpeed: () => void, checkCollisions: () => boolean, stopGame: () => void): void;
23
+ stopPhysicsLoop(): void;
24
+ startObstacleSpawning(addObstacle: (obstacle: Obstacle) => void, difficulty: 'easy' | 'medium' | 'hard'): void;
25
+ stopObstacleSpawning(): void;
26
+ startCloudSpawning(addCloud: (cloud: Cloud) => void): void;
27
+ stopCloudSpawning(): void;
28
+ startStarSpawning(addStar: (star: Star) => void): void;
29
+ stopStarSpawning(): void;
30
+ private createRandomObstacle;
31
+ private createRandomCloud;
32
+ private createRandomStar;
33
+ formatTime(timeInSeconds: number): string;
34
+ calculateFinalScore(score: number, timeElapsed: number, difficulty: 'easy' | 'medium' | 'hard'): number;
35
+ isNewHighScore(currentScore: number, previousHighScore: number): boolean;
36
+ generateGroundPattern(): number[];
37
+ cleanup(): void;
38
+ reset(): void;
39
+ }
40
+ //# sourceMappingURL=DinoJumpService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DinoJumpService.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJumpService.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE7D,qBAAa,eAAe;IAC1B,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,kBAAkB,CAAuB;IACjD,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,gBAAgB,CAAkB;;IAO1C,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;IAU5D,UAAU,CAAC,qBAAqB,EAAE,MAAM,IAAI;IAQ5C,SAAS;IAQT,gBAAgB,CACd,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EAC3C,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EAC5C,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACzC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACxC,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACzC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACrC,WAAW,EAAE,MAAM,IAAI,EACvB,eAAe,EAAE,MAAM,OAAO,EAC9B,QAAQ,EAAE,MAAM,IAAI;IA0CtB,eAAe;IASf,qBAAqB,CACnB,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EACzC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;IAmBxC,oBAAoB;IAQpB,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAiBnD,iBAAiB;IAQjB,iBAAiB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI;IAiB/C,gBAAgB;IAQhB,OAAO,CAAC,oBAAoB;IAgC5B,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,gBAAgB;IAgBxB,UAAU,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAOzC,mBAAmB,CACjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GACrC,MAAM;IAOT,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO;IAKxE,qBAAqB,IAAI,MAAM,EAAE;IASjC,OAAO;IASP,KAAK;CAON"}
@@ -0,0 +1,103 @@
1
+ import { type GameSettings } from '../../services/GamesService';
2
+ export interface Obstacle {
3
+ id: string;
4
+ type: 'cactus_small' | 'cactus_large' | 'bird';
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ speed: number;
10
+ }
11
+ export interface Cloud {
12
+ id: string;
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ speed: number;
18
+ }
19
+ export interface CollisionBlast {
20
+ id: string;
21
+ x: number;
22
+ y: number;
23
+ }
24
+ export interface Star {
25
+ id: string;
26
+ x: number;
27
+ y: number;
28
+ width: number;
29
+ height: number;
30
+ speed: number;
31
+ }
32
+ export interface DinoJumpState {
33
+ isPlaying: boolean;
34
+ isGameOver: boolean;
35
+ isPaused: boolean;
36
+ dinosaurY: number;
37
+ dinosaurVelocityY: number;
38
+ dinosaurState: 'running' | 'jumping' | 'ducking' | 'dead';
39
+ isJumping: boolean;
40
+ isDucking: boolean;
41
+ obstacles: Obstacle[];
42
+ clouds: Cloud[];
43
+ stars: Star[];
44
+ collisionBlasts: CollisionBlast[];
45
+ score: number;
46
+ highScore: number;
47
+ distance: number;
48
+ speed: number;
49
+ timeLeft: number;
50
+ timeElapsed: number;
51
+ startTime: number | null;
52
+ lives: number;
53
+ groundOffset: number;
54
+ startGame: () => void;
55
+ stopGame: () => void;
56
+ resetGame: () => void;
57
+ pauseGame: () => void;
58
+ resumeGame: () => void;
59
+ jump: () => void;
60
+ duck: () => void;
61
+ stopDuck: () => void;
62
+ updateDinosaur: (deltaTime: number) => void;
63
+ addObstacle: (obstacle: Obstacle) => void;
64
+ removeObstacle: (id: string) => void;
65
+ updateObstacles: (deltaTime: number) => void;
66
+ addCloud: (cloud: Cloud) => void;
67
+ updateClouds: (deltaTime: number) => void;
68
+ addStar: (star: Star) => void;
69
+ updateStars: (deltaTime: number) => void;
70
+ removeCollisionBlast: (id: string) => void;
71
+ checkCollisions: (settings: GameSettings) => boolean;
72
+ updateScore: (points: number) => void;
73
+ updateSpeed: () => void;
74
+ updateGround: (deltaTime: number) => void;
75
+ decrementTime: () => void;
76
+ initializeGame: (difficulty: 'easy' | 'medium' | 'hard') => void;
77
+ }
78
+ export declare const useDinoJumpStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<DinoJumpState>, "subscribe"> & {
79
+ subscribe: {
80
+ (listener: (selectedState: DinoJumpState, previousSelectedState: DinoJumpState) => void): () => void;
81
+ <U>(selector: (state: DinoJumpState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
82
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
83
+ fireImmediately?: boolean;
84
+ } | undefined): () => void;
85
+ };
86
+ }>;
87
+ export declare const useIsPlaying: () => boolean;
88
+ export declare const useIsGameOver: () => boolean;
89
+ export declare const useIsPaused: () => boolean;
90
+ export declare const useDinosaurY: () => number;
91
+ export declare const useDinosaurVelocityY: () => number;
92
+ export declare const useDinosaurStateValue: () => "running" | "jumping" | "ducking" | "dead";
93
+ export declare const useIsJumping: () => boolean;
94
+ export declare const useIsDucking: () => boolean;
95
+ export declare const useScore: () => number;
96
+ export declare const useHighScore: () => number;
97
+ export declare const useTimeLeft: () => number;
98
+ export declare const useLives: () => number;
99
+ export declare const useObstacles: () => Obstacle[];
100
+ export declare const useClouds: () => Cloud[];
101
+ export declare const useGroundOffset: () => number;
102
+ export declare const useStars: () => Star[];
103
+ //# sourceMappingURL=DinoJumpStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DinoJumpStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJumpStore.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const DinoSprite: React.FC;
3
+ //# sourceMappingURL=DinoSprite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DinoSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/DinoSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA+R7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { GameSettings } from '../../../services/GamesService';
3
+ interface GameAreaProps {
4
+ settings: GameSettings;
5
+ }
6
+ export declare const GameArea: React.FC<GameAreaProps>;
7
+ export {};
8
+ //# sourceMappingURL=GameArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,UAAU,aAAa;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsD3C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface GameBackgroundProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const GameBackground: React.FC<GameBackgroundProps>;
6
+ export {};
7
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AA2CD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8LvD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const ObstacleSprite: React.FC;
3
+ //# sourceMappingURL=ObstacleSprite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObstacleSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/ObstacleSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkP1B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA2BjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const ScoreBoard: React.FC;
3
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAsC7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const StarSprite: React.FC;
3
+ //# sourceMappingURL=StarSprite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StarSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/StarSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAc7B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { GameBackground } from './GameBackground';
2
+ export { GameArea } from './GameArea';
3
+ export { DinoSprite } from './DinoSprite';
4
+ export { ObstacleSprite } from './ObstacleSprite';
5
+ export { StarSprite } from './StarSprite';
6
+ export { ScoreBoard } from './ScoreBoard';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type GameProps } from '../../services/GamesService';
3
+ export declare const FlappyBird: React.FC<GameProps>;
4
+ //# sourceMappingURL=FlappyBird.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlappyBird.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBird.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAU9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqGzC,CAAC"}
@@ -0,0 +1,83 @@
1
+ export declare const FLAPPY_BIRD_GAME_CONFIG: {
2
+ BIRD_SIZE: number;
3
+ BIRD_START_X: number;
4
+ BIRD_START_Y: number;
5
+ GRAVITY: number;
6
+ JUMP_VELOCITY: number;
7
+ MAX_FALL_SPEED: number;
8
+ VELOCITY_DAMPING: number;
9
+ PIPE_WIDTH: number;
10
+ PIPE_GAP: number;
11
+ PIPE_SPEED_EASY: number;
12
+ PIPE_SPEED_MEDIUM: number;
13
+ PIPE_SPEED_HARD: number;
14
+ PIPE_SPAWN_INTERVAL: number;
15
+ MIN_PIPE_HEIGHT: number;
16
+ MAX_PIPE_HEIGHT: number;
17
+ GROUND_HEIGHT: number;
18
+ GAME_WIDTH: number;
19
+ GAME_HEIGHT: number;
20
+ };
21
+ export declare const FLAPPY_BIRD_COLORS: {
22
+ SKY_START: string;
23
+ SKY_END: string;
24
+ GROUND: string;
25
+ GROUND_DARK: string;
26
+ PIPE_GREEN: string;
27
+ PIPE_DARK: string;
28
+ BIRD_YELLOW: string;
29
+ BIRD_ORANGE: string;
30
+ SCORE_TEXT: string;
31
+ BUTTON_PRIMARY: string;
32
+ BUTTON_SECONDARY: string;
33
+ GAME_OVER_BG: string;
34
+ SCORE_BACKGROUND: string;
35
+ SCORE_BORDER: string;
36
+ };
37
+ export declare const FLAPPY_BIRD_THEME: {
38
+ backgroundColor: string;
39
+ headerBackgroundColor: string;
40
+ headerTextColor: string;
41
+ sectionBackgroundColor: string;
42
+ sectionTitleColor: string;
43
+ buttonSelectedColor: string;
44
+ buttonUnselectedColor: string;
45
+ buttonSelectedTextColor: string;
46
+ buttonUnselectedTextColor: string;
47
+ switchTrackColorFalse: string;
48
+ switchTrackColorTrue: string;
49
+ switchThumbColor: string;
50
+ infoTextColor: string;
51
+ };
52
+ export declare const FLAPPY_BIRD_DIFFICULTY_DESCRIPTIONS: {
53
+ easy: {
54
+ title: string;
55
+ description: string;
56
+ features: string[];
57
+ };
58
+ medium: {
59
+ title: string;
60
+ description: string;
61
+ features: string[];
62
+ };
63
+ hard: {
64
+ title: string;
65
+ description: string;
66
+ features: string[];
67
+ };
68
+ };
69
+ export declare const DIFFICULTY_CONFIG: {
70
+ easy: {
71
+ pipeSpeed: number;
72
+ pipeGap: number;
73
+ };
74
+ medium: {
75
+ pipeSpeed: number;
76
+ pipeGap: number;
77
+ };
78
+ hard: {
79
+ pipeSpeed: number;
80
+ pipeGap: number;
81
+ };
82
+ };
83
+ //# sourceMappingURL=FlappyBirdConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlappyBirdConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBirdConstants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;CAmBnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAa7B,CAAC"}
@@ -0,0 +1,53 @@
1
+ import type { GameSettings } from '../../services/GamesService';
2
+ export interface Pipe {
3
+ id: string;
4
+ x: number;
5
+ topHeight: number;
6
+ bottomY: number;
7
+ passed: boolean;
8
+ }
9
+ export interface CollisionBlast {
10
+ id: string;
11
+ x: number;
12
+ y: number;
13
+ }
14
+ export interface FlappyBirdState {
15
+ isPlaying: boolean;
16
+ isGameOver: boolean;
17
+ score: number;
18
+ survivalTime: number;
19
+ birdY: number;
20
+ birdVelocity: number;
21
+ pipes: Pipe[];
22
+ collisionBlasts: CollisionBlast[];
23
+ gameLoopInterval: NodeJS.Timeout | null;
24
+ pipeSpawnInterval: NodeJS.Timeout | null;
25
+ timerInterval: NodeJS.Timeout | null;
26
+ startGame: (settings: GameSettings) => void;
27
+ stopGame: () => void;
28
+ resetGame: () => void;
29
+ initializeGame: () => void;
30
+ jump: () => void;
31
+ updatePhysics: (settings: GameSettings) => void;
32
+ spawnPipe: (settings: GameSettings) => void;
33
+ checkCollision: () => boolean;
34
+ addCollisionBlast: (x: number, y: number) => void;
35
+ removeCollisionBlast: (id: string) => void;
36
+ }
37
+ export declare const useFlappyBirdStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FlappyBirdState>, "subscribe"> & {
38
+ subscribe: {
39
+ (listener: (selectedState: FlappyBirdState, previousSelectedState: FlappyBirdState) => void): () => void;
40
+ <U>(selector: (state: FlappyBirdState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
41
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
42
+ fireImmediately?: boolean;
43
+ } | undefined): () => void;
44
+ };
45
+ }>;
46
+ export declare const useIsPlaying: () => boolean;
47
+ export declare const useIsGameOver: () => boolean;
48
+ export declare const useScore: () => number;
49
+ export declare const useSurvivalTime: () => number;
50
+ export declare const useBirdY: () => number;
51
+ export declare const usePipes: () => Pipe[];
52
+ export declare const useCollisionBlasts: () => CollisionBlast[];
53
+ //# sourceMappingURL=FlappyBirdStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlappyBirdStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBirdStore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAErC,SAAS,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,aAAa,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAYD,eAAO,MAAM,kBAAkB;;;;;;;;EA4Q9B,CAAC;AAEF,eAAO,MAAM,YAAY,eAAqD,CAAC;AAC/E,eAAO,MAAM,aAAa,eAAsD,CAAC;AACjF,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,eAAe,cAAwD,CAAC;AACrF,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,kBAAkB,wBAA2D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface BirdProps {
3
+ birdY: number;
4
+ velocity: number;
5
+ }
6
+ export declare const Bird: React.FC<BirdProps>;
7
+ export {};
8
+ //# sourceMappingURL=Bird.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bird.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/Bird.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAgBD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkEnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { GameSettings } from '../../../services/GamesService';
3
+ interface GameAreaProps {
4
+ settings: GameSettings;
5
+ }
6
+ export declare const GameArea: React.FC<GameAreaProps>;
7
+ export {};
8
+ //# sourceMappingURL=GameArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKnE,UAAU,aAAa;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE3C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface GameBackgroundProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const GameBackground: React.FC<GameBackgroundProps>;
6
+ export {};
7
+ //# sourceMappingURL=GameBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAoBD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwEvD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { Pipe } from '../FlappyBirdStore';
3
+ interface PipesProps {
4
+ pipes: Pipe[];
5
+ }
6
+ export declare const Pipes: React.FC<PipesProps>;
7
+ export {};
8
+ //# sourceMappingURL=Pipes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pipes.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/Pipes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,UAAU,UAAU;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAuED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmHrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const ScoreBoard: React.FC;
3
+ //# sourceMappingURL=ScoreBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAY7B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ScoreBoard } from './ScoreBoard';
2
+ export { Bird } from './Bird';
3
+ export { Pipes } from './Pipes';
4
+ export { GameArea } from './GameArea';
5
+ export { GameBackground } from './GameBackground';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type GameProps } from '../../services/GamesService';
3
+ export declare const FruitMerger: React.FC<GameProps>;
4
+ //# sourceMappingURL=FruitMerger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FruitMerger.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-merger/FruitMerger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAK9F,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8F1C,CAAC"}
@@ -0,0 +1,115 @@
1
+ export declare const FRUIT_MERGER_COLORS: {
2
+ BACKGROUND: string;
3
+ SCORE_BACKGROUND: string;
4
+ SCORE_BORDER: string;
5
+ SCORE_TEXT: string;
6
+ BUTTON_PRIMARY: string;
7
+ BUTTON_SECONDARY: string;
8
+ GAME_OVER_BG: string;
9
+ };
10
+ export declare const FRUIT_TYPES: readonly [{
11
+ readonly id: 0;
12
+ readonly name: "Cherry";
13
+ readonly emoji: "🍒";
14
+ readonly size: 30;
15
+ readonly color: "#FFB3BA";
16
+ readonly score: 1;
17
+ }, {
18
+ readonly id: 1;
19
+ readonly name: "Strawberry";
20
+ readonly emoji: "🍓";
21
+ readonly size: 40;
22
+ readonly color: "#FFCDD2";
23
+ readonly score: 2;
24
+ }, {
25
+ readonly id: 2;
26
+ readonly name: "Grape";
27
+ readonly emoji: "🍇";
28
+ readonly size: 50;
29
+ readonly color: "#E1BEE7";
30
+ readonly score: 4;
31
+ }, {
32
+ readonly id: 3;
33
+ readonly name: "Mango";
34
+ readonly emoji: "🥭";
35
+ readonly size: 60;
36
+ readonly color: "#FFF9C4";
37
+ readonly score: 8;
38
+ }, {
39
+ readonly id: 4;
40
+ readonly name: "Orange";
41
+ readonly emoji: "🍊";
42
+ readonly size: 70;
43
+ readonly color: "#FFE0B2";
44
+ readonly score: 16;
45
+ }, {
46
+ readonly id: 5;
47
+ readonly name: "Apple";
48
+ readonly emoji: "🍎";
49
+ readonly size: 80;
50
+ readonly color: "#FFCDD2";
51
+ readonly score: 32;
52
+ }, {
53
+ readonly id: 6;
54
+ readonly name: "Peach";
55
+ readonly emoji: "🍑";
56
+ readonly size: 90;
57
+ readonly color: "#FFE4E1";
58
+ readonly score: 64;
59
+ }, {
60
+ readonly id: 7;
61
+ readonly name: "Pineapple";
62
+ readonly emoji: "🍍";
63
+ readonly size: 100;
64
+ readonly color: "#FFF59D";
65
+ readonly score: 128;
66
+ }, {
67
+ readonly id: 8;
68
+ readonly name: "Watermelon";
69
+ readonly emoji: "🍈";
70
+ readonly size: 110;
71
+ readonly color: "#C8E6C9";
72
+ readonly score: 256;
73
+ }, {
74
+ readonly id: 9;
75
+ readonly name: "Pumpkin";
76
+ readonly emoji: "🎃";
77
+ readonly size: 120;
78
+ readonly color: "#FFCC80";
79
+ readonly score: 512;
80
+ }];
81
+ export declare const FRUIT_MERGER_GAME_CONFIG: {
82
+ CONTAINER_WIDTH: number;
83
+ CONTAINER_HEIGHT: number;
84
+ PLAY_AREA_WIDTH: number;
85
+ PLAY_AREA_HEIGHT: number;
86
+ GRAVITY: number;
87
+ BOUNCE: number;
88
+ FRICTION: number;
89
+ SPAWN_Y: number;
90
+ MERGE_DISTANCE: number;
91
+ FALL_SPEED: number;
92
+ MAX_FRUIT_TYPE: number;
93
+ SPAWN_DELAY: number;
94
+ };
95
+ export declare const FRUIT_MERGER_THEME: {
96
+ backgroundColor: string;
97
+ headerBackgroundColor: string;
98
+ headerTextColor: string;
99
+ sectionBackgroundColor: string;
100
+ sectionTitleColor: string;
101
+ buttonSelectedColor: string;
102
+ buttonUnselectedColor: string;
103
+ buttonSelectedTextColor: string;
104
+ buttonUnselectedTextColor: string;
105
+ switchTrackColorFalse: string;
106
+ switchTrackColorTrue: string;
107
+ switchThumbColor: string;
108
+ infoTextColor: string;
109
+ };
110
+ export declare const FRUIT_MERGER_DIFFICULTY_DESCRIPTIONS: {
111
+ easy: string;
112
+ medium: string;
113
+ hard: string;
114
+ };
115
+ //# sourceMappingURL=FruitMergerConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FruitMergerConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-merger/FruitMergerConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;CAQ/B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWd,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAapC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAc9B,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;CAIhD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const formatTime: (seconds: number) => string;
2
+ export declare class FruitMergerService {
3
+ cleanup(): void;
4
+ }
5
+ //# sourceMappingURL=FruitMergerService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FruitMergerService.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-merger/FruitMergerService.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,MAI5C,CAAC;AAEF,qBAAa,kBAAkB;IAC7B,OAAO;CAGR"}
@@ -0,0 +1,43 @@
1
+ import { type GameSettings } from '../../services/GamesService';
2
+ export interface Fruit {
3
+ id: string;
4
+ typeId: number;
5
+ x: number;
6
+ y: number;
7
+ vx: number;
8
+ vy: number;
9
+ isActive: boolean;
10
+ isMerging: boolean;
11
+ }
12
+ export interface FruitMergerState {
13
+ isPlaying: boolean;
14
+ isGameOver: boolean;
15
+ fruits: Fruit[];
16
+ currentFruit: Fruit | null;
17
+ nextFruitType: number;
18
+ score: number;
19
+ time: number;
20
+ timerInterval: NodeJS.Timeout | null;
21
+ gameLoopInterval: NodeJS.Timeout | null;
22
+ spawnInterval: NodeJS.Timeout | null;
23
+ startGame: () => void;
24
+ stopGame: () => void;
25
+ resetGame: () => void;
26
+ initializeGame: () => void;
27
+ spawnCurrentFruit: () => void;
28
+ dropCurrentFruit: () => void;
29
+ updateCurrentFruitPosition: (x: number) => void;
30
+ updatePhysics: () => void;
31
+ checkMerges: (settings: GameSettings) => void;
32
+ mergeFruits: (fruit1: Fruit, fruit2: Fruit, settings: GameSettings) => void;
33
+ incrementTime: () => void;
34
+ }
35
+ export declare const useFruitMergerStore: import("zustand").UseBoundStore<import("zustand").StoreApi<FruitMergerState>>;
36
+ export declare const useIsPlaying: () => boolean;
37
+ export declare const useIsGameOver: () => boolean;
38
+ export declare const useFruits: () => Fruit[];
39
+ export declare const useCurrentFruit: () => Fruit | null;
40
+ export declare const useNextFruitType: () => number;
41
+ export declare const useScore: () => number;
42
+ export declare const useTime: () => number;
43
+ //# sourceMappingURL=FruitMergerStore.d.ts.map