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.
- package/README.md +507 -84
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +13 -21
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +1 -1
- package/lib/module/games/balloon-blaster/components/GameArea.js +1 -1
- package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/GameBackground.js +24 -17
- package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js +47 -47
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/candy-crush/CandyCrush.js +131 -0
- package/lib/module/games/candy-crush/CandyCrush.js.map +1 -0
- package/lib/module/games/candy-crush/CandyCrushConstants.js +125 -0
- package/lib/module/games/candy-crush/CandyCrushConstants.js.map +1 -0
- package/lib/module/games/candy-crush/CandyCrushService.js +370 -0
- package/lib/module/games/candy-crush/CandyCrushService.js.map +1 -0
- package/lib/module/games/candy-crush/CandyCrushStore.js +303 -0
- package/lib/module/games/candy-crush/CandyCrushStore.js.map +1 -0
- package/lib/module/games/candy-crush/components/CandyItem.js +191 -0
- package/lib/module/games/candy-crush/components/CandyItem.js.map +1 -0
- package/lib/module/games/candy-crush/components/GameBackground.js +85 -0
- package/lib/module/games/candy-crush/components/GameBackground.js.map +1 -0
- package/lib/module/games/candy-crush/components/GameGrid.js +314 -0
- package/lib/module/games/candy-crush/components/GameGrid.js.map +1 -0
- package/lib/module/games/candy-crush/components/ScoreBoard.js +79 -0
- package/lib/module/games/candy-crush/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/candy-crush/components/index.js +7 -0
- package/lib/module/games/candy-crush/components/index.js.map +1 -0
- package/lib/module/games/candy-crush/index.js +6 -0
- package/lib/module/games/candy-crush/index.js.map +1 -0
- package/lib/module/games/colors-sort/ColorsSort.js +143 -0
- package/lib/module/games/colors-sort/ColorsSort.js.map +1 -0
- package/lib/module/games/colors-sort/ColorsSortConstants.js +72 -0
- package/lib/module/games/colors-sort/ColorsSortConstants.js.map +1 -0
- package/lib/module/games/colors-sort/ColorsSortService.js +255 -0
- package/lib/module/games/colors-sort/ColorsSortService.js.map +1 -0
- package/lib/module/games/colors-sort/ColorsSortStore.js +257 -0
- package/lib/module/games/colors-sort/ColorsSortStore.js.map +1 -0
- package/lib/module/games/colors-sort/components/ColorContainer.js +140 -0
- package/lib/module/games/colors-sort/components/ColorContainer.js.map +1 -0
- package/lib/module/games/colors-sort/components/GameBackground.js +135 -0
- package/lib/module/games/colors-sort/components/GameBackground.js.map +1 -0
- package/lib/module/games/colors-sort/components/ScoreBoard.js +70 -0
- package/lib/module/games/colors-sort/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/colors-sort/components/index.js +6 -0
- package/lib/module/games/colors-sort/components/index.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJump.js +209 -0
- package/lib/module/games/dino-jump/DinoJump.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJumpConstants.js +189 -0
- package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJumpService.js +270 -0
- package/lib/module/games/dino-jump/DinoJumpService.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJumpStore.js +381 -0
- package/lib/module/games/dino-jump/DinoJumpStore.js.map +1 -0
- package/lib/module/games/dino-jump/components/DinoSprite.js +418 -0
- package/lib/module/games/dino-jump/components/DinoSprite.js.map +1 -0
- package/lib/module/games/dino-jump/components/GameArea.js +68 -0
- package/lib/module/games/dino-jump/components/GameArea.js.map +1 -0
- package/lib/module/games/dino-jump/components/GameBackground.js +444 -0
- package/lib/module/games/dino-jump/components/GameBackground.js.map +1 -0
- package/lib/module/games/dino-jump/components/ObstacleSprite.js +306 -0
- package/lib/module/games/dino-jump/components/ObstacleSprite.js.map +1 -0
- package/lib/module/games/dino-jump/components/ScoreBoard.js +105 -0
- package/lib/module/games/dino-jump/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/dino-jump/components/StarSprite.js +45 -0
- package/lib/module/games/dino-jump/components/StarSprite.js.map +1 -0
- package/lib/module/games/dino-jump/components/index.js +9 -0
- package/lib/module/games/dino-jump/components/index.js.map +1 -0
- package/lib/module/games/flappy-bird/FlappyBird.js +126 -0
- package/lib/module/games/flappy-bird/FlappyBird.js.map +1 -0
- package/lib/module/games/flappy-bird/FlappyBirdConstants.js +90 -0
- package/lib/module/games/flappy-bird/FlappyBirdConstants.js.map +1 -0
- package/lib/module/games/flappy-bird/FlappyBirdStore.js +300 -0
- package/lib/module/games/flappy-bird/FlappyBirdStore.js.map +1 -0
- package/lib/module/games/flappy-bird/components/Bird.js +87 -0
- package/lib/module/games/flappy-bird/components/Bird.js.map +1 -0
- package/lib/module/games/flappy-bird/components/GameArea.js +87 -0
- package/lib/module/games/flappy-bird/components/GameArea.js.map +1 -0
- package/lib/module/games/flappy-bird/components/GameBackground.js +79 -0
- package/lib/module/games/flappy-bird/components/GameBackground.js.map +1 -0
- package/lib/module/games/flappy-bird/components/Pipes.js +172 -0
- package/lib/module/games/flappy-bird/components/Pipes.js.map +1 -0
- package/lib/module/games/flappy-bird/components/ScoreBoard.js +73 -0
- package/lib/module/games/flappy-bird/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/flappy-bird/components/index.js +8 -0
- package/lib/module/games/flappy-bird/components/index.js.map +1 -0
- package/lib/module/games/fruit-merger/FruitMerger.js +120 -0
- package/lib/module/games/fruit-merger/FruitMerger.js.map +1 -0
- package/lib/module/games/fruit-merger/FruitMergerConstants.js +119 -0
- package/lib/module/games/fruit-merger/FruitMergerConstants.js.map +1 -0
- package/lib/module/games/fruit-merger/FruitMergerService.js +13 -0
- package/lib/module/games/fruit-merger/FruitMergerService.js.map +1 -0
- package/lib/module/games/fruit-merger/FruitMergerStore.js +315 -0
- package/lib/module/games/fruit-merger/FruitMergerStore.js.map +1 -0
- package/lib/module/games/fruit-merger/components/FruitItem.js +102 -0
- package/lib/module/games/fruit-merger/components/FruitItem.js.map +1 -0
- package/lib/module/games/fruit-merger/components/GameArea.js +103 -0
- package/lib/module/games/fruit-merger/components/GameArea.js.map +1 -0
- package/lib/module/games/fruit-merger/components/GameBackground.js +498 -0
- package/lib/module/games/fruit-merger/components/GameBackground.js.map +1 -0
- package/lib/module/games/fruit-merger/components/ScoreBoard.js +58 -0
- package/lib/module/games/fruit-merger/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/fruit-merger/components/index.js +7 -0
- package/lib/module/games/fruit-merger/components/index.js.map +1 -0
- package/lib/module/games/fruit-ninja/FruitNinja.js +14 -22
- package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js +1 -1
- package/lib/module/games/fruit-ninja/components/GameArea.js +1 -1
- package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/GameBackground.js +70 -45
- package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js +47 -46
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/game-2048/Game2048.js +149 -0
- package/lib/module/games/game-2048/Game2048.js.map +1 -0
- package/lib/module/games/game-2048/Game2048Constants.js +263 -0
- package/lib/module/games/game-2048/Game2048Constants.js.map +1 -0
- package/lib/module/games/game-2048/Game2048Service.js +457 -0
- package/lib/module/games/game-2048/Game2048Service.js.map +1 -0
- package/lib/module/games/game-2048/Game2048Store.js +236 -0
- package/lib/module/games/game-2048/Game2048Store.js.map +1 -0
- package/lib/module/games/game-2048/components/GameBackground.js +247 -0
- package/lib/module/games/game-2048/components/GameBackground.js.map +1 -0
- package/lib/module/games/game-2048/components/GameGrid.js +139 -0
- package/lib/module/games/game-2048/components/GameGrid.js.map +1 -0
- package/lib/module/games/game-2048/components/GameTile.js +72 -0
- package/lib/module/games/game-2048/components/GameTile.js.map +1 -0
- package/lib/module/games/game-2048/components/ScoreBoard.js +52 -0
- package/lib/module/games/game-2048/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/game-2048/components/index.js +7 -0
- package/lib/module/games/game-2048/components/index.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunner.js +51 -41
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
- package/lib/module/games/maze-runner/MazeRunnerService.js +19 -17
- package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
- package/lib/module/games/maze-runner/components/ScoreBoard.js +32 -42
- package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +57 -66
- package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidgetStore.js +6 -44
- package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -1
- package/lib/module/games/popit-fidget/components/ScoreBoard.js +31 -45
- package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/sliding-numbers/SlidingNumbers.js +159 -0
- package/lib/module/games/sliding-numbers/SlidingNumbers.js.map +1 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js +207 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersConstants.js.map +1 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersService.js +248 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersService.js.map +1 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersStore.js +274 -0
- package/lib/module/games/sliding-numbers/SlidingNumbersStore.js.map +1 -0
- package/lib/module/games/sliding-numbers/components/GameBackground.js +259 -0
- package/lib/module/games/sliding-numbers/components/GameBackground.js.map +1 -0
- package/lib/module/games/sliding-numbers/components/NumbersGrid.js +174 -0
- package/lib/module/games/sliding-numbers/components/NumbersGrid.js.map +1 -0
- package/lib/module/games/sliding-numbers/components/NumbersTile.js +116 -0
- package/lib/module/games/sliding-numbers/components/NumbersTile.js.map +1 -0
- package/lib/module/games/sliding-numbers/components/ScoreBoard.js +64 -0
- package/lib/module/games/sliding-numbers/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/sliding-numbers/components/index.js +7 -0
- package/lib/module/games/sliding-numbers/components/index.js.map +1 -0
- package/lib/module/games/snake/Snake.js +189 -0
- package/lib/module/games/snake/Snake.js.map +1 -0
- package/lib/module/games/snake/SnakeConstants.js +138 -0
- package/lib/module/games/snake/SnakeConstants.js.map +1 -0
- package/lib/module/games/snake/SnakeService.js +148 -0
- package/lib/module/games/snake/SnakeService.js.map +1 -0
- package/lib/module/games/snake/SnakeStore.js +182 -0
- package/lib/module/games/snake/SnakeStore.js.map +1 -0
- package/lib/module/games/snake/components/GameBackground.js +221 -0
- package/lib/module/games/snake/components/GameBackground.js.map +1 -0
- package/lib/module/games/snake/components/GameGrid.js +153 -0
- package/lib/module/games/snake/components/GameGrid.js.map +1 -0
- package/lib/module/games/snake/components/ScoreBoard.js +51 -0
- package/lib/module/games/snake/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/snake/components/index.js +6 -0
- package/lib/module/games/snake/components/index.js.map +1 -0
- package/lib/module/games/snake/index.js +6 -0
- package/lib/module/games/snake/index.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighter.js +22 -26
- package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighterService.js +7 -6
- package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighterStore.js +25 -11
- package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -1
- package/lib/module/games/space-fighter/components/GameArea.js +1 -7
- package/lib/module/games/space-fighter/components/GameArea.js.map +1 -1
- package/lib/module/games/space-fighter/components/ScoreBoard.js +47 -48
- package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMole.js +17 -10
- package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMoleStore.js +1 -1
- package/lib/module/games/whack-a-mole/components/GameBackground.js +37 -30
- package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -1
- package/lib/module/games/whack-a-mole/components/ScoreBoard.js +32 -38
- package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
- package/lib/module/helpers/AnimationFrame.js.map +1 -0
- package/lib/module/helpers/AnimationTracker.js.map +1 -0
- package/lib/module/helpers/ErrorHandler.js.map +1 -0
- package/lib/module/helpers/GameControlButton.js.map +1 -0
- package/lib/module/{shared/helpers → helpers}/GameOverModal.js +6 -3
- package/lib/module/helpers/GameOverModal.js.map +1 -0
- package/lib/module/{shared/helpers → helpers}/GameSettingsModal.js +5 -5
- package/lib/module/helpers/GameSettingsModal.js.map +1 -0
- package/lib/module/{shared/helpers → helpers}/ParticleBlast.js +3 -2
- package/lib/module/helpers/ParticleBlast.js.map +1 -0
- package/lib/module/helpers/ScoreBoardContainer.js +34 -0
- package/lib/module/helpers/ScoreBoardContainer.js.map +1 -0
- package/lib/module/{shared/helpers → helpers}/index.js +1 -1
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/GamesConstants.js +100 -5
- package/lib/module/services/GamesConstants.js.map +1 -1
- package/lib/module/services/GamesService.js +108 -42
- package/lib/module/services/GamesService.js.map +1 -1
- package/lib/module/services/SoundsService.js +132 -1
- package/lib/module/services/SoundsService.js.map +1 -1
- package/lib/module/services/UtilsService.js +32 -0
- package/lib/module/services/UtilsService.js.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +5 -1
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts +4 -0
- package/lib/typescript/src/games/candy-crush/CandyCrush.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts +104 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts +40 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushService.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts +48 -0
- package/lib/typescript/src/games/candy-crush/CandyCrushStore.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts +13 -0
- package/lib/typescript/src/games/candy-crush/components/CandyItem.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts +5 -0
- package/lib/typescript/src/games/candy-crush/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts +3 -0
- package/lib/typescript/src/games/candy-crush/components/GameGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts +6 -0
- package/lib/typescript/src/games/candy-crush/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/components/index.d.ts +5 -0
- package/lib/typescript/src/games/candy-crush/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/candy-crush/index.d.ts +4 -0
- package/lib/typescript/src/games/candy-crush/index.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts +4 -0
- package/lib/typescript/src/games/colors-sort/ColorsSort.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts +54 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts +66 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortService.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts +48 -0
- package/lib/typescript/src/games/colors-sort/ColorsSortStore.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts +11 -0
- package/lib/typescript/src/games/colors-sort/components/ColorContainer.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/colors-sort/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/colors-sort/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/colors-sort/components/index.d.ts +4 -0
- package/lib/typescript/src/games/colors-sort/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/DinoJump.d.ts +4 -0
- package/lib/typescript/src/games/dino-jump/DinoJump.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts +97 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts +40 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpService.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts +103 -0
- package/lib/typescript/src/games/dino-jump/DinoJumpStore.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts +3 -0
- package/lib/typescript/src/games/dino-jump/components/DinoSprite.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts +8 -0
- package/lib/typescript/src/games/dino-jump/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts +8 -0
- package/lib/typescript/src/games/dino-jump/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts +3 -0
- package/lib/typescript/src/games/dino-jump/components/ObstacleSprite.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/dino-jump/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts +3 -0
- package/lib/typescript/src/games/dino-jump/components/StarSprite.d.ts.map +1 -0
- package/lib/typescript/src/games/dino-jump/components/index.d.ts +7 -0
- package/lib/typescript/src/games/dino-jump/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts +4 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBird.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts +83 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBirdConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts +53 -0
- package/lib/typescript/src/games/flappy-bird/FlappyBirdStore.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts +8 -0
- package/lib/typescript/src/games/flappy-bird/components/Bird.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts +8 -0
- package/lib/typescript/src/games/flappy-bird/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts +8 -0
- package/lib/typescript/src/games/flappy-bird/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts +9 -0
- package/lib/typescript/src/games/flappy-bird/components/Pipes.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/flappy-bird/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/flappy-bird/components/index.d.ts +6 -0
- package/lib/typescript/src/games/flappy-bird/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts +4 -0
- package/lib/typescript/src/games/fruit-merger/FruitMerger.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts +115 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts +5 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerService.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts +43 -0
- package/lib/typescript/src/games/fruit-merger/FruitMergerStore.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts +10 -0
- package/lib/typescript/src/games/fruit-merger/components/FruitItem.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts +8 -0
- package/lib/typescript/src/games/fruit-merger/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts +8 -0
- package/lib/typescript/src/games/fruit-merger/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/fruit-merger/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-merger/components/index.d.ts +5 -0
- package/lib/typescript/src/games/fruit-merger/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +5 -1
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/game-2048/Game2048.d.ts +4 -0
- package/lib/typescript/src/games/game-2048/Game2048.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts +163 -0
- package/lib/typescript/src/games/game-2048/Game2048Constants.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/Game2048Service.d.ts +113 -0
- package/lib/typescript/src/games/game-2048/Game2048Service.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/Game2048Store.d.ts +48 -0
- package/lib/typescript/src/games/game-2048/Game2048Store.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/game-2048/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts +7 -0
- package/lib/typescript/src/games/game-2048/components/GameGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/components/GameTile.d.ts +13 -0
- package/lib/typescript/src/games/game-2048/components/GameTile.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/game-2048/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/game-2048/components/index.d.ts +5 -0
- package/lib/typescript/src/games/game-2048/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +1 -1
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts +1 -0
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +2 -5
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +2 -2
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts +4 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbers.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts +108 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts +34 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersService.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts +56 -0
- package/lib/typescript/src/games/sliding-numbers/SlidingNumbersStore.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/sliding-numbers/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts +7 -0
- package/lib/typescript/src/games/sliding-numbers/components/NumbersGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts +11 -0
- package/lib/typescript/src/games/sliding-numbers/components/NumbersTile.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/sliding-numbers/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/sliding-numbers/components/index.d.ts +5 -0
- package/lib/typescript/src/games/sliding-numbers/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/Snake.d.ts +4 -0
- package/lib/typescript/src/games/snake/Snake.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/SnakeConstants.d.ts +93 -0
- package/lib/typescript/src/games/snake/SnakeConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/SnakeService.d.ts +30 -0
- package/lib/typescript/src/games/snake/SnakeService.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/SnakeStore.d.ts +43 -0
- package/lib/typescript/src/games/snake/SnakeStore.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/components/GameBackground.d.ts +5 -0
- package/lib/typescript/src/games/snake/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/components/GameGrid.d.ts +3 -0
- package/lib/typescript/src/games/snake/components/GameGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts +7 -0
- package/lib/typescript/src/games/snake/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/components/index.d.ts +4 -0
- package/lib/typescript/src/games/snake/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/snake/index.d.ts +4 -0
- package/lib/typescript/src/games/snake/index.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts +2 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +5 -1
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +1 -1
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/helpers/AnimationFrame.d.ts.map +1 -0
- package/lib/typescript/src/helpers/AnimationTracker.d.ts.map +1 -0
- package/lib/typescript/src/helpers/ErrorHandler.d.ts.map +1 -0
- package/lib/typescript/src/helpers/GameControlButton.d.ts.map +1 -0
- package/lib/typescript/src/{shared/helpers → helpers}/GameOverModal.d.ts +2 -0
- package/lib/typescript/src/helpers/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/{shared/helpers → helpers}/GameSettingsModal.d.ts +1 -1
- package/lib/typescript/src/helpers/GameSettingsModal.d.ts.map +1 -0
- package/lib/typescript/src/helpers/ParticleBlast.d.ts.map +1 -0
- package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts +9 -0
- package/lib/typescript/src/helpers/ScoreBoardContainer.d.ts.map +1 -0
- package/lib/typescript/src/{shared/helpers → helpers}/index.d.ts +2 -1
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +9 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesConstants.d.ts +162 -0
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesService.d.ts +3 -25
- package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
- package/lib/typescript/src/services/SoundsService.d.ts +103 -0
- package/lib/typescript/src/services/SoundsService.d.ts.map +1 -1
- package/lib/typescript/src/services/UtilsService.d.ts +38 -0
- package/lib/typescript/src/services/UtilsService.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/module/shared/helpers/AnimationFrame.js.map +0 -1
- package/lib/module/shared/helpers/AnimationTracker.js.map +0 -1
- package/lib/module/shared/helpers/ErrorHandler.js.map +0 -1
- package/lib/module/shared/helpers/GameControlButton.js.map +0 -1
- package/lib/module/shared/helpers/GameOverModal.js.map +0 -1
- package/lib/module/shared/helpers/GameSettingsModal.js.map +0 -1
- package/lib/module/shared/helpers/ParticleBlast.js.map +0 -1
- package/lib/module/shared/helpers/ResponsiveScoreBoard.js +0 -81
- package/lib/module/shared/helpers/ResponsiveScoreBoard.js.map +0 -1
- package/lib/module/shared/helpers/index.js.map +0 -1
- package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts +0 -42
- package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts.map +0 -1
- package/lib/typescript/src/shared/helpers/index.d.ts.map +0 -1
- /package/lib/module/{shared/helpers → helpers}/AnimationFrame.js +0 -0
- /package/lib/module/{shared/helpers → helpers}/AnimationTracker.js +0 -0
- /package/lib/module/{shared/helpers → helpers}/ErrorHandler.js +0 -0
- /package/lib/module/{shared/helpers → helpers}/GameControlButton.js +0 -0
- /package/lib/typescript/src/{shared/helpers → helpers}/AnimationFrame.d.ts +0 -0
- /package/lib/typescript/src/{shared/helpers → helpers}/AnimationTracker.d.ts +0 -0
- /package/lib/typescript/src/{shared/helpers → helpers}/ErrorHandler.d.ts +0 -0
- /package/lib/typescript/src/{shared/helpers → helpers}/GameControlButton.d.ts +0 -0
- /package/lib/typescript/src/{shared/helpers → helpers}/ParticleBlast.d.ts +0 -0
|
@@ -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 @@
|
|
|
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/UtilsService';
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FruitMergerStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-merger/FruitMergerStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAK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AO,MAAM,mBAAmB,+EA2U/B,CAAC;AAEF,eAAO,MAAM,YAAY,eAAsD,CAAC;AAChF,eAAO,MAAM,aAAa,eAAuD,CAAC;AAClF,eAAO,MAAM,SAAS,eAAmD,CAAC;AAC1E,eAAO,MAAM,eAAe,oBAAyD,CAAC;AACtF,eAAO,MAAM,gBAAgB,cAA0D,CAAC;AACxF,eAAO,MAAM,QAAQ,cAAkD,CAAC;AACxE,eAAO,MAAM,OAAO,cAAiD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Fruit } from '../FruitMergerStore';
|
|
3
|
+
interface FruitItemProps {
|
|
4
|
+
fruit: Fruit;
|
|
5
|
+
onDrag?: (x: number) => void;
|
|
6
|
+
isDraggable: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const FruitItem: React.FC<FruitItemProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=FruitItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FruitItem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-merger/components/FruitItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4F7C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type GameSettings } from '../../../services/UtilsService';
|
|
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/fruit-merger/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,UAAU,aAAa;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+D3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-merger/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqQxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-merger/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkB/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-merger/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FruitNinja.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-ninja/FruitNinja.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAY,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"FruitNinja.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-ninja/FruitNinja.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8H1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2DD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAojBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Game2048.d.ts","sourceRoot":"","sources":["../../../../../src/games/game-2048/Game2048.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAY9F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+HvC,CAAC"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../services/GamesConstants';
|
|
2
|
+
export declare const GAME_2048_COLORS: {
|
|
3
|
+
BACKGROUND: string;
|
|
4
|
+
GRID_BACKGROUND: string;
|
|
5
|
+
TILE_COLORS: {
|
|
6
|
+
2: {
|
|
7
|
+
background: string;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
4: {
|
|
11
|
+
background: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
8: {
|
|
15
|
+
background: string;
|
|
16
|
+
text: string;
|
|
17
|
+
};
|
|
18
|
+
16: {
|
|
19
|
+
background: string;
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
22
|
+
32: {
|
|
23
|
+
background: string;
|
|
24
|
+
text: string;
|
|
25
|
+
};
|
|
26
|
+
64: {
|
|
27
|
+
background: string;
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
30
|
+
128: {
|
|
31
|
+
background: string;
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
256: {
|
|
35
|
+
background: string;
|
|
36
|
+
text: string;
|
|
37
|
+
};
|
|
38
|
+
512: {
|
|
39
|
+
background: string;
|
|
40
|
+
text: string;
|
|
41
|
+
};
|
|
42
|
+
1024: {
|
|
43
|
+
background: string;
|
|
44
|
+
text: string;
|
|
45
|
+
};
|
|
46
|
+
2048: {
|
|
47
|
+
background: string;
|
|
48
|
+
text: string;
|
|
49
|
+
};
|
|
50
|
+
4096: {
|
|
51
|
+
background: string;
|
|
52
|
+
text: string;
|
|
53
|
+
};
|
|
54
|
+
8192: {
|
|
55
|
+
background: string;
|
|
56
|
+
text: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
SCOREBOARD_BACKGROUND: string;
|
|
60
|
+
SCOREBOARD_TEXT: string;
|
|
61
|
+
BUTTON_BACKGROUND: string;
|
|
62
|
+
BUTTON_TEXT: string;
|
|
63
|
+
BUTTON_BORDER: string;
|
|
64
|
+
GAME_OVER_OVERLAY: string;
|
|
65
|
+
GAME_WIN_OVERLAY: string;
|
|
66
|
+
};
|
|
67
|
+
export declare const GAME_2048_SETTINGS: {
|
|
68
|
+
GRID_SIZE: number;
|
|
69
|
+
TILE_SIZE: number;
|
|
70
|
+
TILE_MARGIN: number;
|
|
71
|
+
TILE_BORDER_RADIUS: number;
|
|
72
|
+
ANIMATION_DURATION: number;
|
|
73
|
+
MERGE_ANIMATION_DURATION: number;
|
|
74
|
+
SPAWN_ANIMATION_DURATION: number;
|
|
75
|
+
INITIAL_TILES: number;
|
|
76
|
+
NEW_TILE_PROBABILITY_4: number;
|
|
77
|
+
SCORE_MULTIPLIER: {
|
|
78
|
+
easy: number;
|
|
79
|
+
medium: number;
|
|
80
|
+
hard: number;
|
|
81
|
+
};
|
|
82
|
+
DIFFICULTY_SETTINGS: {
|
|
83
|
+
easy: {
|
|
84
|
+
gridSize: number;
|
|
85
|
+
targetTile: number;
|
|
86
|
+
};
|
|
87
|
+
medium: {
|
|
88
|
+
gridSize: number;
|
|
89
|
+
targetTile: number;
|
|
90
|
+
};
|
|
91
|
+
hard: {
|
|
92
|
+
gridSize: number;
|
|
93
|
+
targetTile: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const GAME_2048_GESTURES: {
|
|
98
|
+
MIN_SWIPE_DISTANCE: number;
|
|
99
|
+
MAX_SWIPE_TIME: number;
|
|
100
|
+
MIN_VELOCITY: number;
|
|
101
|
+
};
|
|
102
|
+
export declare const GAME_2048_SOUNDS: Readonly<{
|
|
103
|
+
TILE_MOVE: Readonly<{
|
|
104
|
+
text: "swipe";
|
|
105
|
+
pitch: 1.2;
|
|
106
|
+
rate: 1.5;
|
|
107
|
+
}>;
|
|
108
|
+
TILE_MERGE: Readonly<{
|
|
109
|
+
text: "merge";
|
|
110
|
+
pitch: 1.5;
|
|
111
|
+
rate: 1.2;
|
|
112
|
+
}>;
|
|
113
|
+
GAME_WIN: Readonly<{
|
|
114
|
+
text: "victory!";
|
|
115
|
+
pitch: 1.8;
|
|
116
|
+
rate: 0.8;
|
|
117
|
+
}>;
|
|
118
|
+
GAME_OVER: Readonly<{
|
|
119
|
+
text: "game over";
|
|
120
|
+
pitch: 0.8;
|
|
121
|
+
rate: 0.9;
|
|
122
|
+
}>;
|
|
123
|
+
NEW_TILE: Readonly<{
|
|
124
|
+
text: "pop";
|
|
125
|
+
pitch: 1.6;
|
|
126
|
+
rate: 1.8;
|
|
127
|
+
}>;
|
|
128
|
+
INVALID_MOVE: Readonly<{
|
|
129
|
+
text: "blocked";
|
|
130
|
+
pitch: 0.6;
|
|
131
|
+
rate: 1.5;
|
|
132
|
+
}>;
|
|
133
|
+
}>;
|
|
134
|
+
export declare const getTileColor: (value: number) => {
|
|
135
|
+
background: string;
|
|
136
|
+
text: string;
|
|
137
|
+
};
|
|
138
|
+
export declare const formatScore: (score: number) => string;
|
|
139
|
+
export declare const BACKGROUND_TILE_COLORS: readonly ["#E91E63", "#F44336", "#FF5722", "#FF9800", "#FFC107", "#CDDC39", "#4CAF50", "#009688", "#00BCD4", "#2196F3", "#3F51B5", "#9C27B0"];
|
|
140
|
+
export declare const GAME_CONFIG: {
|
|
141
|
+
readonly GRID_SIZE: 4;
|
|
142
|
+
readonly INITIAL_TILES: 2;
|
|
143
|
+
readonly NEW_TILE_PROBABILITY_4: 0.1;
|
|
144
|
+
readonly TILE_SIZE: 70;
|
|
145
|
+
readonly TILE_MARGIN: 8;
|
|
146
|
+
readonly ANIMATION_CONFIG: {
|
|
147
|
+
readonly TENSION: 200;
|
|
148
|
+
readonly FRICTION: 10;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export declare const GAME_2048_THEME: GameSettingsTheme;
|
|
152
|
+
export declare const GAME_2048_DIFFICULTY_DESCRIPTIONS: {
|
|
153
|
+
readonly easy: "Reach 1024 tile on 4x4 grid";
|
|
154
|
+
readonly medium: "Reach 2048 tile on 4x4 grid";
|
|
155
|
+
readonly hard: "Reach 4096 tile on 4x4 grid";
|
|
156
|
+
};
|
|
157
|
+
export declare const getGridDimensions: (difficulty: "easy" | "medium" | "hard") => {
|
|
158
|
+
gridSize: number;
|
|
159
|
+
tileSize: number;
|
|
160
|
+
margin: number;
|
|
161
|
+
totalSize: number;
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=Game2048Constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Game2048Constants.d.ts","sourceRoot":"","sources":["../../../../../src/games/game-2048/Game2048Constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAS9B,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAC;AAKH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM;;;CAezC,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAO3C,CAAC;AAIF,eAAO,MAAM,sBAAsB,+IAazB,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;;;;;;CAUd,CAAC;AAGX,eAAO,MAAM,eAAe,EAAE,iBAcpB,CAAC;AAGX,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AAEX,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;CAcvE,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
export interface GameTile {
|
|
3
|
+
id: number;
|
|
4
|
+
value: number;
|
|
5
|
+
row: number;
|
|
6
|
+
col: number;
|
|
7
|
+
animatedValue?: Animated.Value;
|
|
8
|
+
scaleValue?: Animated.Value;
|
|
9
|
+
}
|
|
10
|
+
export type GameGrid = (GameTile | null)[][];
|
|
11
|
+
export interface MoveResult {
|
|
12
|
+
moved: boolean;
|
|
13
|
+
score: number;
|
|
14
|
+
}
|
|
15
|
+
export type Direction = 'up' | 'down' | 'left' | 'right';
|
|
16
|
+
export type Difficulty = 'easy' | 'medium' | 'hard';
|
|
17
|
+
export declare class Game2048Service {
|
|
18
|
+
getDifficultySettings(difficulty: 'easy' | 'medium' | 'hard'): {
|
|
19
|
+
gridSize: number;
|
|
20
|
+
targetTile: number;
|
|
21
|
+
} | {
|
|
22
|
+
gridSize: number;
|
|
23
|
+
targetTile: number;
|
|
24
|
+
} | {
|
|
25
|
+
gridSize: number;
|
|
26
|
+
targetTile: number;
|
|
27
|
+
};
|
|
28
|
+
calculateMergeScore(tileValue: number, difficulty: 'easy' | 'medium' | 'hard'): number;
|
|
29
|
+
formatTime(seconds: number): string;
|
|
30
|
+
detectSwipeDirection(startX: number, startY: number, endX: number, endY: number, velocity?: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
}): 'up' | 'down' | 'left' | 'right' | null;
|
|
34
|
+
calculateTilePosition(row: number, col: number, gridSize: number, containerSize: number): {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
generateHapticFeedback(type: 'move' | 'merge' | 'win' | 'gameOver'): string;
|
|
39
|
+
generateSoundEffect(type: 'move' | 'merge' | 'win' | 'gameOver' | 'newTile'): string;
|
|
40
|
+
animateTileMovement(fromPosition: {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
}, toPosition: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
}, duration?: number): {
|
|
47
|
+
from: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
to: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
duration: number;
|
|
56
|
+
easing: string;
|
|
57
|
+
};
|
|
58
|
+
animateTileMerge(position: {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
}, duration?: number): {
|
|
62
|
+
position: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
};
|
|
66
|
+
duration: number;
|
|
67
|
+
scaleFrom: number;
|
|
68
|
+
scaleTo: number;
|
|
69
|
+
scaleBack: number;
|
|
70
|
+
easing: string;
|
|
71
|
+
};
|
|
72
|
+
animateNewTileSpawn(position: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
}, duration?: number): {
|
|
76
|
+
position: {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
};
|
|
80
|
+
duration: number;
|
|
81
|
+
scaleFrom: number;
|
|
82
|
+
scaleTo: number;
|
|
83
|
+
easing: string;
|
|
84
|
+
};
|
|
85
|
+
isValidPosition(row: number, col: number, gridSize: number): boolean;
|
|
86
|
+
getAdjacentPositions(row: number, col: number, gridSize: number): {
|
|
87
|
+
row: number;
|
|
88
|
+
col: number;
|
|
89
|
+
direction: "up" | "down" | "left" | "right";
|
|
90
|
+
}[];
|
|
91
|
+
calculateGameStats(score: number, moves: number, timeElapsed: number): {
|
|
92
|
+
averageScorePerMove: number;
|
|
93
|
+
scorePerSecond: number;
|
|
94
|
+
efficiency: number;
|
|
95
|
+
};
|
|
96
|
+
saveGameState(gameState: any): Promise<boolean>;
|
|
97
|
+
loadGameState(): Promise<null>;
|
|
98
|
+
cleanup(): void;
|
|
99
|
+
createGrid(): GameGrid;
|
|
100
|
+
addRandomTile(grid: GameGrid, tileId: number): GameTile | null;
|
|
101
|
+
moveTiles(grid: GameGrid, direction: Direction): MoveResult;
|
|
102
|
+
checkGameOver(grid: GameGrid): boolean;
|
|
103
|
+
hasWon(grid: GameGrid, targetValue: number): boolean;
|
|
104
|
+
getTileBackgroundColor(value: number): string;
|
|
105
|
+
getTileTextColor(value: number): string;
|
|
106
|
+
getTileTextSize(value: number): number;
|
|
107
|
+
getTileAnimationDelay(row: number, col: number, direction: 'up' | 'down' | 'left' | 'right'): number;
|
|
108
|
+
interpolate(from: number, to: number, progress: number): number;
|
|
109
|
+
easeOutCubic(t: number): number;
|
|
110
|
+
easeInOutCubic(t: number): number;
|
|
111
|
+
easeOutBack(t: number): number;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=Game2048Service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Game2048Service.d.ts","sourceRoot":"","sources":["../../../../../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AG;IAY5B,aAAa;IAanB,OAAO;IAKP,UAAU,IAAI,QAAQ;IAKtB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAkC9D,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU;IAsG3D,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO;IAgCtC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;IAcpD,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAqB7C,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAKvC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQtC,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM;IAkBpG,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAK/D,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAI/B,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAIjC,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;CAK/B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { GameGrid } from './Game2048Service';
|
|
2
|
+
export interface GameState {
|
|
3
|
+
timeElapsed: number;
|
|
4
|
+
isPlaying: boolean;
|
|
5
|
+
isGameOver: boolean;
|
|
6
|
+
isWon: boolean;
|
|
7
|
+
isAnimating: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Game2048Store extends GameState {
|
|
10
|
+
grid: GameGrid;
|
|
11
|
+
nextTileId: number;
|
|
12
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
13
|
+
targetValue: number;
|
|
14
|
+
gridSize: number;
|
|
15
|
+
enableSounds: boolean;
|
|
16
|
+
enableHaptics: boolean;
|
|
17
|
+
startGame: () => void;
|
|
18
|
+
stopGame: () => void;
|
|
19
|
+
resetGame: () => void;
|
|
20
|
+
initializeGame: (difficulty?: 'easy' | 'medium' | 'hard') => void;
|
|
21
|
+
updateGrid: (newGrid: GameGrid) => void;
|
|
22
|
+
incrementTime: () => void;
|
|
23
|
+
setIsAnimating: (animating: boolean) => void;
|
|
24
|
+
setGameOver: (gameOver: boolean) => void;
|
|
25
|
+
setWon: (won: boolean) => void;
|
|
26
|
+
incrementTileId: () => number;
|
|
27
|
+
handleMove: (direction: 'up' | 'down' | 'left' | 'right') => void;
|
|
28
|
+
updateSettings: (enableSounds: boolean, enableHaptics: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const useGame2048Store: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<Game2048Store>, "subscribe"> & {
|
|
31
|
+
subscribe: {
|
|
32
|
+
(listener: (selectedState: Game2048Store, previousSelectedState: Game2048Store) => void): () => void;
|
|
33
|
+
<U>(selector: (state: Game2048Store) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
34
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
35
|
+
fireImmediately?: boolean;
|
|
36
|
+
} | undefined): () => void;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
export declare const useTimeElapsed: () => number;
|
|
40
|
+
export declare const useGrid: () => GameGrid;
|
|
41
|
+
export declare const useIsPlaying: () => boolean;
|
|
42
|
+
export declare const useIsGameOver: () => boolean;
|
|
43
|
+
export declare const useIsWon: () => boolean;
|
|
44
|
+
export declare const useIsAnimating: () => boolean;
|
|
45
|
+
export declare const useDifficulty: () => "easy" | "medium" | "hard";
|
|
46
|
+
export declare const useTargetValue: () => number;
|
|
47
|
+
export declare const useGridSize: () => number;
|
|
48
|
+
//# sourceMappingURL=Game2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