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,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { produce } from 'immer';
|
|
4
|
+
export const DEFAULT_GAME_SETTINGS = {
|
|
5
|
+
isVisible: false,
|
|
6
|
+
difficulty: 'medium',
|
|
7
|
+
enableSounds: true,
|
|
8
|
+
enableHaptics: true,
|
|
9
|
+
offset: 0
|
|
10
|
+
};
|
|
11
|
+
export let GAME_IDS = /*#__PURE__*/function (GAME_IDS) {
|
|
12
|
+
GAME_IDS["WHACK_A_MOLE"] = "whack-a-mole";
|
|
13
|
+
GAME_IDS["POPIT_FIDGET"] = "popit-fidget";
|
|
14
|
+
GAME_IDS["FRUIT_NINJA"] = "fruit-ninja";
|
|
15
|
+
GAME_IDS["BALLOON_BLASTER"] = "balloon-blaster";
|
|
16
|
+
GAME_IDS["SPACE_FIGHTER"] = "space-fighter";
|
|
17
|
+
GAME_IDS["MAZE_RUNNER"] = "maze-runner";
|
|
18
|
+
GAME_IDS["SLIDING_NUMBERS"] = "sliding-numbers";
|
|
19
|
+
GAME_IDS["GAME_2048"] = "game-2048";
|
|
20
|
+
GAME_IDS["DINO_JUMP"] = "dino-jump";
|
|
21
|
+
GAME_IDS["COLORS_SORT"] = "colors-sort";
|
|
22
|
+
GAME_IDS["FRUIT_MERGER"] = "fruit-merger";
|
|
23
|
+
GAME_IDS["FLAPPY_BIRD"] = "flappy-bird";
|
|
24
|
+
GAME_IDS["CANDY_CRUSH"] = "candy-crush";
|
|
25
|
+
GAME_IDS["SNAKE"] = "snake";
|
|
26
|
+
return GAME_IDS;
|
|
27
|
+
}({});
|
|
28
|
+
export const immerMiddleware = config => (set, get, api) => config((partial, ...args) => {
|
|
29
|
+
const nextState = typeof partial === 'function' ? produce(partial) : partial;
|
|
30
|
+
return set(nextState, ...args);
|
|
31
|
+
}, get, api);
|
|
32
|
+
//# sourceMappingURL=UtilsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["produce","DEFAULT_GAME_SETTINGS","isVisible","difficulty","enableSounds","enableHaptics","offset","GAME_IDS","immerMiddleware","config","set","get","api","partial","args","nextState"],"sourceRoot":"../../../src","sources":["services/UtilsService.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAgB/B,OAAO,MAAMC,qBAAmC,GAAG;EACjDC,SAAS,EAAE,KAAK;EAChBC,UAAU,EAAE,QAAQ;EACpBC,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE,IAAI;EACnBC,MAAM,EAAE;AACV,CAAC;AAED,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AA0BpB,OAAO,MAAMC,eAAe,GAAIC,MAAW,IAAK,CAACC,GAAQ,EAAEC,GAAQ,EAAEC,GAAQ,KAC3EH,MAAM,CACJ,CAACI,OAAY,EAAE,GAAGC,IAAW,KAAK;EAChC,MAAMC,SAAS,GAAG,OAAOF,OAAO,KAAK,UAAU,GAAGb,OAAO,CAACa,OAAO,CAAC,GAAGA,OAAO;EAC5E,OAAOH,GAAG,CAACK,SAAS,EAAE,GAAGD,IAAI,CAAC;AAChC,CAAC,EACDH,GAAG,EACHC,GACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalloonBlaster.d.ts","sourceRoot":"","sources":["../../../../../src/games/balloon-blaster/BalloonBlaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,OAAO,EAAY,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"BalloonBlaster.d.ts","sourceRoot":"","sources":["../../../../../src/games/balloon-blaster/BalloonBlaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE9F,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsJ7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/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/balloon-blaster/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;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuQvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/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/balloon-blaster/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,CAoC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CandyCrush.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrush.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAU9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0GzC,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare const CANDY_CRUSH_GAME_CONFIG: {
|
|
2
|
+
readonly GRID_SIZE: 8;
|
|
3
|
+
readonly CANDY_TYPES: 6;
|
|
4
|
+
readonly MIN_MATCH: 3;
|
|
5
|
+
readonly ANIMATION_DURATION: 300;
|
|
6
|
+
readonly FALL_DURATION: 400;
|
|
7
|
+
readonly SWAP_DURATION: 200;
|
|
8
|
+
readonly POINTS_PER_CANDY: 10;
|
|
9
|
+
readonly COMBO_MULTIPLIER: 1.5;
|
|
10
|
+
readonly SPECIAL_CANDY_THRESHOLD: 4;
|
|
11
|
+
};
|
|
12
|
+
export declare const CANDY_COLORS: readonly ["#FF3B30", "#34C759", "#007AFF", "#FFCC00", "#9D4EDD", "#FF6B9D"];
|
|
13
|
+
export declare const CANDY_TYPES: {
|
|
14
|
+
readonly NORMAL: "normal";
|
|
15
|
+
readonly STRIPED_HORIZONTAL: "striped_h";
|
|
16
|
+
readonly STRIPED_VERTICAL: "striped_v";
|
|
17
|
+
readonly WRAPPED: "wrapped";
|
|
18
|
+
readonly COLOR_BOMB: "color_bomb";
|
|
19
|
+
};
|
|
20
|
+
export declare const CANDY_CRUSH_COLORS: {
|
|
21
|
+
readonly BACKGROUND: "#2C3E50";
|
|
22
|
+
readonly GRID_BACKGROUND: "rgba(255, 149, 0, 0.1)";
|
|
23
|
+
readonly GRID_BORDER: "rgba(255, 149, 0, 0.3)";
|
|
24
|
+
readonly SELECTED: "rgba(255, 149, 0, 0.5)";
|
|
25
|
+
readonly BUTTON_PRIMARY: "#FF9500";
|
|
26
|
+
readonly BUTTON_SECONDARY: "#E68600";
|
|
27
|
+
readonly SCORE_BACKGROUND: "rgba(255, 149, 0, 0.4)";
|
|
28
|
+
readonly SCORE_TEXT: "#FFFFFF";
|
|
29
|
+
readonly TIME_GOOD: "#FF9500";
|
|
30
|
+
readonly TIME_WARNING: "#FF9500";
|
|
31
|
+
readonly TIME_CRITICAL: "#FF9500";
|
|
32
|
+
readonly COMBO_TEXT: "#FF9500";
|
|
33
|
+
readonly MODAL_PRIMARY: "rgba(255, 149, 0, 0.95)";
|
|
34
|
+
readonly MODAL_BORDER: "rgba(230, 134, 0, 0.9)";
|
|
35
|
+
readonly MODAL_BUTTON: "#FF9500";
|
|
36
|
+
readonly MODAL_BUTTON_BORDER: "#E68600";
|
|
37
|
+
};
|
|
38
|
+
export declare const DIFFICULTY_CONFIG: {
|
|
39
|
+
readonly easy: {
|
|
40
|
+
readonly gameDuration: 60;
|
|
41
|
+
readonly candyTypes: 4;
|
|
42
|
+
};
|
|
43
|
+
readonly medium: {
|
|
44
|
+
readonly gameDuration: 180;
|
|
45
|
+
readonly candyTypes: 5;
|
|
46
|
+
};
|
|
47
|
+
readonly hard: {
|
|
48
|
+
readonly gameDuration: 300;
|
|
49
|
+
readonly candyTypes: 6;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const CANDY_CRUSH_SOUNDS: {
|
|
53
|
+
readonly MATCH: {
|
|
54
|
+
readonly text: "Pop!";
|
|
55
|
+
readonly pitch: 1.2;
|
|
56
|
+
readonly rate: 1.5;
|
|
57
|
+
};
|
|
58
|
+
readonly SWAP: {
|
|
59
|
+
readonly text: "Swap";
|
|
60
|
+
readonly pitch: 1;
|
|
61
|
+
readonly rate: 1.8;
|
|
62
|
+
};
|
|
63
|
+
readonly SPECIAL: {
|
|
64
|
+
readonly text: "Boom!";
|
|
65
|
+
readonly pitch: 1.5;
|
|
66
|
+
readonly rate: 2;
|
|
67
|
+
};
|
|
68
|
+
readonly COMBO: {
|
|
69
|
+
readonly text: "Combo!";
|
|
70
|
+
readonly pitch: 1.8;
|
|
71
|
+
readonly rate: 2.2;
|
|
72
|
+
};
|
|
73
|
+
readonly WIN: {
|
|
74
|
+
readonly text: "Victory!";
|
|
75
|
+
readonly pitch: 1.6;
|
|
76
|
+
readonly rate: 1.8;
|
|
77
|
+
};
|
|
78
|
+
readonly LOSE: {
|
|
79
|
+
readonly text: "Game Over";
|
|
80
|
+
readonly pitch: 0.8;
|
|
81
|
+
readonly rate: 1.2;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const CANDY_CRUSH_THEME: {
|
|
85
|
+
readonly backgroundColor: "#2C3E50";
|
|
86
|
+
readonly headerBackgroundColor: "#FF9500";
|
|
87
|
+
readonly headerTextColor: "#FFFFFF";
|
|
88
|
+
readonly sectionBackgroundColor: "rgba(255, 149, 0, 0.15)";
|
|
89
|
+
readonly sectionTitleColor: "#FF9500";
|
|
90
|
+
readonly buttonSelectedColor: "#FF9500";
|
|
91
|
+
readonly buttonUnselectedColor: "rgba(255, 149, 0, 0.2)";
|
|
92
|
+
readonly buttonSelectedTextColor: "#FFFFFF";
|
|
93
|
+
readonly buttonUnselectedTextColor: "#FF9500";
|
|
94
|
+
readonly switchTrackColorFalse: "rgba(255, 149, 0, 0.3)";
|
|
95
|
+
readonly switchTrackColorTrue: "#FF9500";
|
|
96
|
+
readonly switchThumbColor: "#FFFFFF";
|
|
97
|
+
readonly infoTextColor: "rgba(255, 255, 255, 0.7)";
|
|
98
|
+
};
|
|
99
|
+
export declare const CANDY_CRUSH_DIFFICULTY_DESCRIPTIONS: {
|
|
100
|
+
readonly easy: "1 minute • 4 candy types";
|
|
101
|
+
readonly medium: "3 minutes • 5 candy types";
|
|
102
|
+
readonly hard: "5 minutes • 6 candy types";
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=CandyCrushConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CandyCrushConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushConstants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB;;;;;;;;;;CAU1B,CAAC;AAEX,eAAO,MAAM,YAAY,6EAOf,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAapB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAcpB,CAAC;AAGX,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
import { CANDY_TYPES } from './CandyCrushConstants';
|
|
3
|
+
export type CandyType = typeof CANDY_TYPES[keyof typeof CANDY_TYPES];
|
|
4
|
+
export interface Candy {
|
|
5
|
+
id: number;
|
|
6
|
+
row: number;
|
|
7
|
+
col: number;
|
|
8
|
+
type: number;
|
|
9
|
+
specialType: CandyType;
|
|
10
|
+
animatedValue: Animated.Value;
|
|
11
|
+
scaleValue: Animated.Value;
|
|
12
|
+
isMatched: boolean;
|
|
13
|
+
isFalling: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type CandyGrid = (Candy | null)[][];
|
|
16
|
+
export interface MatchResult {
|
|
17
|
+
matches: Candy[];
|
|
18
|
+
score: number;
|
|
19
|
+
hasMatches: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface SwapResult {
|
|
22
|
+
isValid: boolean;
|
|
23
|
+
matches: Candy[];
|
|
24
|
+
}
|
|
25
|
+
export declare class CandyCrushService {
|
|
26
|
+
private nextCandyId;
|
|
27
|
+
createGrid(): CandyGrid;
|
|
28
|
+
initializeGrid(candyTypes: number): CandyGrid;
|
|
29
|
+
private wouldCreateMatch;
|
|
30
|
+
canSwap(candy1: Candy, candy2: Candy): boolean;
|
|
31
|
+
swapCandies(grid: CandyGrid, candy1: Candy, candy2: Candy): void;
|
|
32
|
+
findMatches(grid: CandyGrid): MatchResult;
|
|
33
|
+
removeMatches(grid: CandyGrid, matches: Candy[]): void;
|
|
34
|
+
applyGravity(grid: CandyGrid): boolean;
|
|
35
|
+
fillEmptySpaces(grid: CandyGrid, candyTypes: number): Candy[];
|
|
36
|
+
hasPossibleMoves(grid: CandyGrid): boolean;
|
|
37
|
+
getCandyColor(type: number): string;
|
|
38
|
+
resetIdCounter(): void;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=CandyCrushService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CandyCrushService.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAyC,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3F,MAAM,MAAM,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAErE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,SAAS,CAAC;IACvB,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC9B,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,KAAK,EAAE,CAAC;CAClB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,WAAW,CAAK;IAGxB,UAAU,IAAI,SAAS;IAOvB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS;IAsC7C,OAAO,CAAC,gBAAgB;IA2DxB,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO;IAS9C,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI;IA+BhE,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW;IAqGzC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI;IAUtD,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IA2CtC,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE;IAyC7D,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IA8C1C,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAKnC,cAAc,IAAI,IAAI;CAGvB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CandyGrid, Candy } from './CandyCrushService';
|
|
2
|
+
export interface CandyCrushState {
|
|
3
|
+
grid: CandyGrid;
|
|
4
|
+
score: number;
|
|
5
|
+
timeRemaining: number;
|
|
6
|
+
gameDuration: number;
|
|
7
|
+
isPlaying: boolean;
|
|
8
|
+
isGameOver: boolean;
|
|
9
|
+
selectedCandy: Candy | null;
|
|
10
|
+
isProcessing: boolean;
|
|
11
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
12
|
+
candyTypes: number;
|
|
13
|
+
enableSounds: boolean;
|
|
14
|
+
enableHaptics: boolean;
|
|
15
|
+
comboCount: number;
|
|
16
|
+
gameTimer: NodeJS.Timeout | null;
|
|
17
|
+
matchedCandyIds: Set<number>;
|
|
18
|
+
fallingCandyIds: Set<number>;
|
|
19
|
+
}
|
|
20
|
+
export interface CandyCrushStore extends CandyCrushState {
|
|
21
|
+
startGame: () => void;
|
|
22
|
+
stopGame: () => void;
|
|
23
|
+
resetGame: () => void;
|
|
24
|
+
initializeGame: (difficulty?: 'easy' | 'medium' | 'hard') => void;
|
|
25
|
+
selectCandy: (candy: Candy) => void;
|
|
26
|
+
processMatches: () => Promise<void>;
|
|
27
|
+
updateSettings: (enableSounds: boolean, enableHaptics: boolean) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const useCandyCrushStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CandyCrushStore>, "subscribe"> & {
|
|
30
|
+
subscribe: {
|
|
31
|
+
(listener: (selectedState: CandyCrushStore, previousSelectedState: CandyCrushStore) => void): () => void;
|
|
32
|
+
<U>(selector: (state: CandyCrushStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
33
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
34
|
+
fireImmediately?: boolean;
|
|
35
|
+
} | undefined): () => void;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
export declare const useGrid: () => CandyGrid;
|
|
39
|
+
export declare const useScore: () => number;
|
|
40
|
+
export declare const useTimeRemaining: () => number;
|
|
41
|
+
export declare const useGameDuration: () => number;
|
|
42
|
+
export declare const useIsPlaying: () => boolean;
|
|
43
|
+
export declare const useIsGameOver: () => boolean;
|
|
44
|
+
export declare const useSelectedCandy: () => Candy | null;
|
|
45
|
+
export declare const useComboCount: () => number;
|
|
46
|
+
export declare const useMatchedCandyIds: () => Set<number>;
|
|
47
|
+
export declare const useFallingCandyIds: () => Set<number>;
|
|
48
|
+
//# sourceMappingURL=CandyCrushStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CandyCrushStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/CandyCrushStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAO5D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACjC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,cAAc,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;CACzE;AAID,eAAO,MAAM,kBAAkB;;;;;;;;EA+S9B,CAAC;AAGF,eAAO,MAAM,OAAO,iBAAgD,CAAC;AACrE,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,gBAAgB,cAAyD,CAAC;AACvF,eAAO,MAAM,eAAe,cAAwD,CAAC;AACrF,eAAO,MAAM,YAAY,eAAqD,CAAC;AAC/E,eAAO,MAAM,aAAa,eAAsD,CAAC;AACjF,eAAO,MAAM,gBAAgB,oBAAyD,CAAC;AACvF,eAAO,MAAM,aAAa,cAAsD,CAAC;AACjF,eAAO,MAAM,kBAAkB,mBAA2D,CAAC;AAC3F,eAAO,MAAM,kBAAkB,mBAA2D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Candy } from '../CandyCrushService';
|
|
3
|
+
interface CandyItemProps {
|
|
4
|
+
candy: Candy;
|
|
5
|
+
size: number;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
isMatched: boolean;
|
|
8
|
+
isFalling: boolean;
|
|
9
|
+
onSwipe: (direction: 'up' | 'down' | 'left' | 'right') => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const CandyItem: React.NamedExoticComponent<CandyItemProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=CandyItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CandyItem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/CandyItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAChE;AAqLD,eAAO,MAAM,SAAS,4CAWpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CA+BjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/GameGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AA+H1D,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAyL3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/candy-crush/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,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/games/candy-crush/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsSort.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAK9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAoHzC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const COLORS_SORT_COLORS: {
|
|
2
|
+
BACKGROUND: string;
|
|
3
|
+
PIECE_ORANGE: string;
|
|
4
|
+
PIECE_PINK: string;
|
|
5
|
+
PIECE_GREEN: string;
|
|
6
|
+
PIECE_RED: string;
|
|
7
|
+
PIECE_YELLOW: string;
|
|
8
|
+
PIECE_BLUE: string;
|
|
9
|
+
PIECE_PURPLE: string;
|
|
10
|
+
BASE_SILVER: string;
|
|
11
|
+
BASE_DARK: string;
|
|
12
|
+
SCREW_WHITE: string;
|
|
13
|
+
BUTTON_PRIMARY: string;
|
|
14
|
+
BUTTON_SECONDARY: string;
|
|
15
|
+
SCORE_TEXT: string;
|
|
16
|
+
SCORE_BACKGROUND: string;
|
|
17
|
+
SCORE_BORDER: string;
|
|
18
|
+
SELECTED_GLOW: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const COLORS_SORT_GAME_CONFIG: {
|
|
21
|
+
SCREEN_WIDTH: number;
|
|
22
|
+
SCREEN_HEIGHT: number;
|
|
23
|
+
PIECE_SIZE: number;
|
|
24
|
+
CONTAINER_SIZE: number;
|
|
25
|
+
CONTAINER_SPACING: number;
|
|
26
|
+
PIECE_SPACING: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const COLORS_SORT_CONSTANTS: {
|
|
29
|
+
baseScore: number;
|
|
30
|
+
moveScore: number;
|
|
31
|
+
perfectBonus: number;
|
|
32
|
+
};
|
|
33
|
+
export declare const PIECE_COLORS: string[];
|
|
34
|
+
export declare const COLORS_SORT_THEME: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
headerBackgroundColor: string;
|
|
37
|
+
headerTextColor: string;
|
|
38
|
+
sectionBackgroundColor: string;
|
|
39
|
+
sectionTitleColor: string;
|
|
40
|
+
buttonSelectedColor: string;
|
|
41
|
+
buttonUnselectedColor: string;
|
|
42
|
+
buttonSelectedTextColor: string;
|
|
43
|
+
buttonUnselectedTextColor: string;
|
|
44
|
+
switchTrackColorFalse: string;
|
|
45
|
+
switchTrackColorTrue: string;
|
|
46
|
+
switchThumbColor: string;
|
|
47
|
+
infoTextColor: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const COLORS_SORT_DIFFICULTY_DESCRIPTIONS: {
|
|
50
|
+
easy: string;
|
|
51
|
+
medium: string;
|
|
52
|
+
hard: string;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=ColorsSortConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsSortConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortConstants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAkB9B,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;CAOnC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,YAAY,UAQxB,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC;AAGF,eAAO,MAAM,mCAAmC;;;;CAI/C,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ColorSort Game Service
|
|
3
|
+
* Handles all utility functions, game logic, and background generation
|
|
4
|
+
*/
|
|
5
|
+
export interface FloatingBlock {
|
|
6
|
+
key: string;
|
|
7
|
+
type: 'square' | 'rect' | 'wide' | 'circle';
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
size: number;
|
|
11
|
+
color: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DecorativeBlock {
|
|
14
|
+
key: string;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
size: number;
|
|
18
|
+
color: string;
|
|
19
|
+
r: number;
|
|
20
|
+
}
|
|
21
|
+
export interface DecorativeCircle {
|
|
22
|
+
key: string;
|
|
23
|
+
cx: number;
|
|
24
|
+
cy: number;
|
|
25
|
+
r: number;
|
|
26
|
+
color: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const SORT_COLORS: readonly ["#FF6B35", "#FF4444", "#FF8C42", "#FFD700", "#32CD32", "#4169E1", "#FF1493", "#9370DB", "#00BCD4", "#FFA366", "#CDDC39", "#E91E63"];
|
|
29
|
+
/**
|
|
30
|
+
* Format time in seconds to MM:SS format
|
|
31
|
+
*/
|
|
32
|
+
export declare const formatTime: (seconds: number) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Get grid layout style based on difficulty
|
|
35
|
+
*/
|
|
36
|
+
export declare const getGridLayout: (difficulty: "easy" | "medium" | "hard") => {
|
|
37
|
+
maxWidth: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Get piece height based on difficulty
|
|
41
|
+
*/
|
|
42
|
+
export declare const getPieceHeight: (difficulty: "easy" | "medium" | "hard", baseSize: number) => number;
|
|
43
|
+
/**
|
|
44
|
+
* Generate floating color blocks for background
|
|
45
|
+
*/
|
|
46
|
+
export declare const generateFloatingBlocks: () => FloatingBlock[];
|
|
47
|
+
/**
|
|
48
|
+
* Get decorative blocks positioned around the screen
|
|
49
|
+
*/
|
|
50
|
+
export declare const getDecorativeBlocks: () => DecorativeBlock[];
|
|
51
|
+
/**
|
|
52
|
+
* Get decorative circles for variety
|
|
53
|
+
*/
|
|
54
|
+
export declare const getDecorativeCircles: () => DecorativeCircle[];
|
|
55
|
+
/**
|
|
56
|
+
* Get gradient colors for background layers
|
|
57
|
+
*/
|
|
58
|
+
export declare const getGradientColors: () => {
|
|
59
|
+
main: string[];
|
|
60
|
+
overlay: string[];
|
|
61
|
+
diagonal: string[];
|
|
62
|
+
};
|
|
63
|
+
export declare class ColorSortService {
|
|
64
|
+
cleanup(): void;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=ColorsSortService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsSortService.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf;AAKD,eAAO,MAAM,WAAW,+IAad,CAAC;AAIX;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,MAI5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;CAWnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,MAAM,KAAG,MAWzF,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,aAAa,EAqCtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,eAAe,EASrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,gBAAgB,EAIvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAwB5B,CAAC;AAIH,qBAAa,gBAAgB;IAC3B,OAAO;CAGR"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { GameSettings } from '../../services/UtilsService';
|
|
2
|
+
export interface Piece {
|
|
3
|
+
id: string;
|
|
4
|
+
color: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Container {
|
|
7
|
+
id: string;
|
|
8
|
+
pieces: Piece[];
|
|
9
|
+
maxCapacity: number;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ColorsSortState {
|
|
14
|
+
isPlaying: boolean;
|
|
15
|
+
isGameOver: boolean;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
containers: Container[];
|
|
18
|
+
selectedContainerId: string | null;
|
|
19
|
+
time: number;
|
|
20
|
+
timerInterval: NodeJS.Timeout | null;
|
|
21
|
+
startGame: () => void;
|
|
22
|
+
stopGame: () => void;
|
|
23
|
+
resetGame: () => void;
|
|
24
|
+
pauseGame: () => void;
|
|
25
|
+
resumeGame: () => void;
|
|
26
|
+
initializeGame: (difficulty: 'easy' | 'medium' | 'hard') => void;
|
|
27
|
+
selectContainer: (containerId: string, settings: GameSettings) => void;
|
|
28
|
+
canMovePiece: (fromContainerId: string, toContainerId: string) => boolean;
|
|
29
|
+
movePiece: (fromContainerId: string, toContainerId: string, settings: GameSettings) => void;
|
|
30
|
+
checkWinCondition: () => boolean;
|
|
31
|
+
incrementTime: () => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const useColorsSortStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ColorsSortState>, "subscribe"> & {
|
|
34
|
+
subscribe: {
|
|
35
|
+
(listener: (selectedState: ColorsSortState, previousSelectedState: ColorsSortState) => void): () => void;
|
|
36
|
+
<U>(selector: (state: ColorsSortState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
37
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
38
|
+
fireImmediately?: boolean;
|
|
39
|
+
} | undefined): () => void;
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
export declare const useIsPlaying: () => boolean;
|
|
43
|
+
export declare const useIsGameOver: () => boolean;
|
|
44
|
+
export declare const useIsPaused: () => boolean;
|
|
45
|
+
export declare const useTime: () => number;
|
|
46
|
+
export declare const useContainers: () => Container[];
|
|
47
|
+
export declare const useSelectedContainerId: () => string | null;
|
|
48
|
+
//# sourceMappingURL=ColorsSortStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsSortStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/colors-sort/ColorsSortStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,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,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAErC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,KAAK,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACvE,YAAY,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1E,SAAS,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5F,iBAAiB,EAAE,MAAM,OAAO,CAAC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAcD,eAAO,MAAM,kBAAkB;;;;;;;;EAsQ9B,CAAC;AAGF,eAAO,MAAM,YAAY,eAAuD,CAAC;AACjF,eAAO,MAAM,aAAa,eAAwD,CAAC;AACnF,eAAO,MAAM,WAAW,eAAsD,CAAC;AAC/E,eAAO,MAAM,OAAO,cAAkD,CAAC;AACvE,eAAO,MAAM,aAAa,mBAAwD,CAAC;AACnF,eAAO,MAAM,sBAAsB,qBAAiE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Container } from '../ColorsSortStore';
|
|
3
|
+
interface ColorContainerProps {
|
|
4
|
+
container: Container;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
8
|
+
}
|
|
9
|
+
export declare const ColorContainer: React.FC<ColorContainerProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ColorContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/ColorContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACxC;AA+BD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoCvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAmBvC,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+IvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/colors-sort/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/colors-sort/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DinoJump.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJump.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAI9F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqOvC,CAAC"}
|