react-native-games 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -23
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +5 -8
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
- package/lib/module/games/candy-crush/CandyCrush.js +121 -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 +305 -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 +112 -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/color-sort/ColorSort.js +130 -0
- package/lib/module/games/color-sort/ColorSort.js.map +1 -0
- package/lib/module/games/color-sort/ColorSortConstants.js +68 -0
- package/lib/module/games/color-sort/ColorSortConstants.js.map +1 -0
- package/lib/module/games/color-sort/ColorSortService.js +255 -0
- package/lib/module/games/color-sort/ColorSortService.js.map +1 -0
- package/lib/module/games/color-sort/ColorSortStore.js +258 -0
- package/lib/module/games/color-sort/ColorSortStore.js.map +1 -0
- package/lib/module/games/color-sort/components/ColorContainer.js +140 -0
- package/lib/module/games/color-sort/components/ColorContainer.js.map +1 -0
- package/lib/module/games/color-sort/components/GameBackground.js +135 -0
- package/lib/module/games/color-sort/components/GameBackground.js.map +1 -0
- package/lib/module/games/color-sort/components/ScoreBoard.js +78 -0
- package/lib/module/games/color-sort/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/color-sort/components/index.js +6 -0
- package/lib/module/games/color-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 +179 -0
- package/lib/module/games/dino-jump/DinoJumpConstants.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJumpService.js +268 -0
- package/lib/module/games/dino-jump/DinoJumpService.js.map +1 -0
- package/lib/module/games/dino-jump/DinoJumpStore.js +387 -0
- package/lib/module/games/dino-jump/DinoJumpStore.js.map +1 -0
- package/lib/module/games/dino-jump/components/DinoSprite.js +409 -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 +421 -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 +107 -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 +131 -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 +276 -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 +86 -0
- package/lib/module/games/flappy-bird/components/GameArea.js.map +1 -0
- package/lib/module/games/flappy-bird/components/GameBackground.js +112 -0
- package/lib/module/games/flappy-bird/components/GameBackground.js.map +1 -0
- package/lib/module/games/flappy-bird/components/Pipes.js +175 -0
- package/lib/module/games/flappy-bird/components/Pipes.js.map +1 -0
- package/lib/module/games/flappy-bird/components/ScoreBoard.js +72 -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 +112 -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 +318 -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 +123 -0
- package/lib/module/games/fruit-merger/components/GameArea.js.map +1 -0
- package/lib/module/games/fruit-merger/components/GameBackground.js +477 -0
- package/lib/module/games/fruit-merger/components/GameBackground.js.map +1 -0
- package/lib/module/games/fruit-merger/components/ScoreBoard.js +66 -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 +6 -9
- package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
- package/lib/module/games/game-2048/Game2048.js +120 -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 +238 -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 +70 -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 +33 -31
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +34 -32
- package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
- package/lib/module/games/sliding-numbers/SlidingNumbers.js +161 -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 +275 -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 +66 -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 +192 -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 +184 -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 +57 -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 +7 -10
- package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMole.js +6 -6
- package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
- package/lib/module/games/whack-a-mole/components/GameBackground.js +7 -8
- package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -1
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/GamesConstants.js +58 -2
- package/lib/module/services/GamesConstants.js.map +1 -1
- package/lib/module/services/GamesService.js +40 -0
- 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/shared/helpers/GameOverModal.js +6 -3
- package/lib/module/shared/helpers/GameOverModal.js.map +1 -1
- package/lib/module/shared/helpers/GameSettingsModal.js +3 -3
- package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -1
- package/lib/module/shared/helpers/ParticleBlast.js +3 -2
- package/lib/module/shared/helpers/ParticleBlast.js.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.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 +3 -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/color-sort/ColorSort.d.ts +4 -0
- package/lib/typescript/src/games/color-sort/ColorSort.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts +52 -0
- package/lib/typescript/src/games/color-sort/ColorSortConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/ColorSortService.d.ts +66 -0
- package/lib/typescript/src/games/color-sort/ColorSortService.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts +48 -0
- package/lib/typescript/src/games/color-sort/ColorSortStore.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts +11 -0
- package/lib/typescript/src/games/color-sort/components/ColorContainer.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/color-sort/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts +3 -0
- package/lib/typescript/src/games/color-sort/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/color-sort/components/index.d.ts +4 -0
- package/lib/typescript/src/games/color-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 +95 -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 +7 -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 +3 -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 +7 -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 +8 -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 +3 -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 +7 -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 +3 -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.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 +3 -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.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidget.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 +3 -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 +3 -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.map +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.map +1 -1
- package/lib/typescript/src/index.d.ts +8 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesConstants.d.ts +156 -0
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesService.d.ts +10 -2
- 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/shared/helpers/GameOverModal.d.ts +2 -0
- package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -1
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","TouchableOpacity","Text","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","memo","isVisible","score","onPlayAgain","buttonText","primaryColor","borderColor","buttonColor","buttonBorderColor","visible","animationType","transparent","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","backgroundColor","modalContent","gameOverTitle","finalScoreContainer","finalScoreLabel","finalScoreValue","playAgainContainer","playAgainButton","onPress","create","flex","justifyContent","alignItems","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","padding","fontSize","fontWeight","color","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../src","sources":["shared/helpers/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","View","TouchableOpacity","Text","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","memo","isVisible","score","onPlayAgain","buttonText","primaryColor","borderColor","buttonColor","buttonBorderColor","scoreLabel","scoreFormatter","displayScore","toString","visible","animationType","transparent","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","backgroundColor","modalContent","gameOverTitle","finalScoreContainer","finalScoreLabel","finalScoreValue","playAgainContainer","playAgainButton","onPress","create","flex","justifyContent","alignItems","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","padding","fontSize","fontWeight","color","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../src","sources":["shared/helpers/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAe/E,OAAO,MAAMC,aAA2C,gBAAGV,KAAK,CAACW,IAAI,CAAC,CAAC;EACrEC,SAAS;EACTC,KAAK;EACLC,WAAW;EACXC,UAAU,GAAG,YAAY;EACzBC,YAAY,GAAG,yBAAyB;EAAE;EAC1CC,WAAW,GAAG,yBAAyB;EACvCC,WAAW,GAAG,SAAS;EAAE;EACzBC,iBAAiB,GAAG,SAAS;EAC7BC,UAAU,GAAG,aAAa;E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AChBD,UAAU,EAAE,MAAM;IAClBE,YAAY,EAAE;EAChB,CAAC;EACDtB,eAAe,EAAE;IACfmB,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAE,SAAS;IAAE;IAClBD,UAAU,EAAE,MAAM;IAClBG,SAAS,EAAE;EACb,CAAC;EACDtB,kBAAkB,EAAE;IAClBM,UAAU,EAAE;EACd,CAAC;EACDL,eAAe,EAAE;IACfsB,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBjB,YAAY,EAAE,EAAE;IAChBE,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE;EACf,CAAC;EACDxC,UAAU,EAAE;IACV0C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS;IAChBE,SAAS,EAAE,QAAQ;IACnBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -107,13 +107,13 @@ export const GameSettingsModal = ({
|
|
|
107
107
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
108
108
|
style: styles.boldText,
|
|
109
109
|
children: "Easy:"
|
|
110
|
-
}), " ", difficultyDescriptions.easy, '\n', /*#__PURE__*/_jsx(Text, {
|
|
110
|
+
}), " ", typeof difficultyDescriptions.easy === 'string' ? difficultyDescriptions.easy : difficultyDescriptions.easy.description, '\n', /*#__PURE__*/_jsx(Text, {
|
|
111
111
|
style: styles.boldText,
|
|
112
112
|
children: "Medium:"
|
|
113
|
-
}), " ", difficultyDescriptions.medium, '\n', /*#__PURE__*/_jsx(Text, {
|
|
113
|
+
}), " ", typeof difficultyDescriptions.medium === 'string' ? difficultyDescriptions.medium : difficultyDescriptions.medium.description, '\n', /*#__PURE__*/_jsx(Text, {
|
|
114
114
|
style: styles.boldText,
|
|
115
115
|
children: "Hard:"
|
|
116
|
-
}), " ", difficultyDescriptions.hard]
|
|
116
|
+
}), " ", typeof difficultyDescriptions.hard === 'string' ? difficultyDescriptions.hard : difficultyDescriptions.hard.description]
|
|
117
117
|
})
|
|
118
118
|
})]
|
|
119
119
|
}), /*#__PURE__*/_jsx(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","ScrollView","TouchableOpacity","Switch","StyleSheet","Modal","getGameTheme","getGameDifficultyDescriptions","getGameTitle","jsx","_jsx","jsxs","_jsxs","GameSettingsModal","gameId","settings","onSettingsChange","undefined","theme","difficultyDescriptions","title","isVisible","difficulty","enableSounds","enableHaptics","handleDifficultyChange","newDifficulty","handleSoundToggle","enabled","handleHapticToggle","handleOnClose","visible","animationType","transparent","onRequestClose","children","style","styles","overlay","container","backgroundColor","header","headerBackgroundColor","headerTitle","color","headerTextColor","onPress","closeButton","closeButtonText","scrollView","contentContainerStyle","scrollContent","section","sectionBackgroundColor","sectionTitle","sectionTitleColor","difficultyRow","map","level","difficultyButton","buttonSelectedColor","buttonUnselectedColor","buttonText","capitalize","buttonSelectedTextColor","buttonUnselectedTextColor","infoBox","infoText","infoTextColor","boldText","easy","medium","hard","toggleContainer","toggleTitle","toggleSubtitle","value","onValueChange","trackColor","false","switchTrackColorFalse","true","switchTrackColorTrue","thumbColor","switchThumbColor","create","flex","justifyContent","alignItems","padding","width","maxWidth","maxHeight","minHeight","borderRadius","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","overflow","flexDirection","paddingHorizontal","fontSize","fontWeight","flexGrow","paddingBottom","marginBottom","paddingVertical","marginHorizontal","textTransform","lineHeight","marginTop"],"sourceRoot":"../../../../src","sources":["shared/helpers/GameSettingsModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,MA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,CAAC,CAAE;cAAApB,QAAA,EAAC;YAAgB,CAAM,CAAC,eAC/FzB,IAAA,CAACX,IAAI;cAACqC,KAAK,EAAEC,MAAM,CAACmB,aAAc;cAAArB,QAAA,EAC9B,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAWsB,GAAG,CAACC,KAAK,iBAC9ChD,IAAA,CAACR,gBAAgB;gBAEf4C,OAAO,EAAEA,CAAA,KAAMrB,sBAAsB,CAACiC,KAAK,CAAE;gBAC7CtB,KAAK,EAAE,CACLC,MAAM,CAACsB,gBAAgB,EACvB;kBACEnB,eAAe,EAAElB,UAAU,KAAKoC,KAAK,GACjCxC,KAAK,CAAC0C,mBAAmB,GACzB1C,KAAK,CAAC2C;gBACZ,CAAC,CACD;gBAAA1B,QAAA,eAEFzB,IAAA,CAACV,IAAI;kBAACoC,KAAK,EAAE,CACXC,MAAM,CAACyB,UAAU,EACjBzB,MAAM,CAAC0B,UAAU,EACjB;oBACEnB,KAAK,EAAEtB,UAAU,KAAKoC,KAAK,GACvBxC,KAAK,CAAC8C,uBAAuB,GAC7B9C,KAAK,CAAC+C;kBACZ,CAAC,CACD;kBAAA9B,QAAA,EACCuB;gBAAK,CACF;cAAC,GArBFA,KAsBW,CACnB;YAAC,CACE,CAAC,eACPhD,IAAA,CAACX,IAAI;cAACqC,KAAK,EAAEC,MAAM,CAAC6B,OAAQ;cAAA/B,QAAA,eAC1BvB,KAAA,CAACZ,IAAI;gBAACoC,KAAK,EAAE,CAACC,MAAM,CAAC8B,QAAQ,EAAE;kBAAEvB,KAAK,EAAE1B,KAAK,CAACkD;gBAAc,CAAC,CAAE;gBAAAjC,QAAA,gBAC7DzB,IAAA,CAACV,IAAI;kBAACoC,KAAK,EAAEC,MAAM,CAACgC,QAAS;kBAAAlC,QAAA,EAAC;gBAAK,CAAM,CAAC,KAAC,
|
|
1
|
+
{"version":3,"names":["React","View","Text","ScrollView","TouchableOpacity","Switch","StyleSheet","Modal","getGameTheme","getGameDifficultyDescriptions","getGameTitle","jsx","_jsx","jsxs","_jsxs","GameSettingsModal","gameId","settings","onSettingsChange","undefined","theme","difficultyDescriptions","title","isVisible","difficulty","enableSounds","enableHaptics","handleDifficultyChange","newDifficulty","handleSoundToggle","enabled","handleHapticToggle","handleOnClose","visible","animationType","transparent","onRequestClose","children","style","styles","overlay","container","backgroundColor","header","headerBackgroundColor","headerTitle","color","headerTextColor","onPress","closeButton","closeButtonText","scrollView","contentContainerStyle","scrollContent","section","sectionBackgroundColor","sectionTitle","sectionTitleColor","difficultyRow","map","level","difficultyButton","buttonSelectedColor","buttonUnselectedColor","buttonText","capitalize","buttonSelectedTextColor","buttonUnselectedTextColor","infoBox","infoText","infoTextColor","boldText","easy","description","medium","hard","toggleContainer","toggleTitle","toggleSubtitle","value","onValueChange","trackColor","false","switchTrackColorFalse","true","switchTrackColorTrue","thumbColor","switchThumbColor","create","flex","justifyContent","alignItems","padding","width","maxWidth","maxHeight","minHeight","borderRadius","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","overflow","flexDirection","paddingHorizontal","fontSize","fontWeight","flexGrow","paddingBottom","marginBottom","paddingVertical","marginHorizontal","textTransform","lineHeight","marginTop"],"sourceRoot":"../../../../src","sources":["shared/helpers/GameSettingsModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAClG,SAASC,YAAY,EAAEC,6BAA6B,EAAEC,YAAY,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS1G,OAAO,MAAMC,iBAA8C,GAAGA,CAAC;EAC7DC,MAAM;EACNC,QAAQ;EACRC,gBAAgB,GAAGA,CAAA,KAAMC;AAC3B,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAGZ,YAAY,CAACQ,M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AC;IACnBtB,UAAU,EAAE;EACd,CAAC;EACD3B,UAAU,EAAE;IACV2C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACD3C,UAAU,EAAE;IACViD,aAAa,EAAE;EACjB,CAAC;EACD9C,OAAO,EAAE;IACP1B,eAAe,EAAE,0BAA0B;IAC3CuD,YAAY,EAAE,CAAC;IACfL,OAAO,EAAE;EACX,CAAC;EACDvB,QAAQ,EAAE;IACRsC,QAAQ,EAAE,EAAE;IACZQ,UAAU,EAAE;EACd,CAAC;EACD5C,QAAQ,EAAE;IACRqC,UAAU,EAAE;EACd,CAAC;EACDhC,eAAe,EAAE;IACf6B,aAAa,EAAE,KAAK;IACpBf,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EACDd,WAAW,EAAE;IACX8B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACD9B,cAAc,EAAE;IACd6B,QAAQ,EAAE,EAAE;IACZS,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ const {
|
|
|
7
7
|
width,
|
|
8
8
|
height
|
|
9
9
|
} = Dimensions.get('window');
|
|
10
|
-
export const ParticleBlast = ({
|
|
10
|
+
export const ParticleBlast = /*#__PURE__*/React.memo(({
|
|
11
11
|
x,
|
|
12
12
|
y,
|
|
13
13
|
particleCount = 8,
|
|
@@ -118,7 +118,8 @@ export const ParticleBlast = ({
|
|
|
118
118
|
}, particle.id);
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
|
-
};
|
|
121
|
+
});
|
|
122
|
+
ParticleBlast.displayName = 'ParticleBlast';
|
|
122
123
|
const styles = StyleSheet.create({
|
|
123
124
|
container: {
|
|
124
125
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","View","Dimensions","StyleSheet","jsx","_jsx","width","height","get","ParticleBlast","x","y","particleCount","colors","duration","onComplete","particles","setParticles","isComplete","setIsComplete","initialParticles","i","angle","Math","PI","speed","random","push","id","Date","now","vx","cos","vy","sin","color","length","size","alpha","lifetime","maxLifetime","animationInterval","setInterval","prevParticles","updatedParticles","map","particle","newLifetime","newX","newY","newVy","max","filter","Boolean","cleanup","setTimeout","clearInterval","clearTimeout","style","styles","container","children","particleSize","left","top","backgroundColor","opacity","borderRadius","create","position","pointerEvents"],"sourceRoot":"../../../../src","sources":["shared/helpers/ParticleBlast.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC;AAwBlD,OAAO,MAAMC,aAA2C,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","View","Dimensions","StyleSheet","jsx","_jsx","width","height","get","ParticleBlast","memo","x","y","particleCount","colors","duration","onComplete","particles","setParticles","isComplete","setIsComplete","initialParticles","i","angle","Math","PI","speed","random","push","id","Date","now","vx","cos","vy","sin","color","length","size","alpha","lifetime","maxLifetime","animationInterval","setInterval","prevParticles","updatedParticles","map","particle","newLifetime","newX","newY","newVy","max","filter","Boolean","cleanup","setTimeout","clearInterval","clearTimeout","style","styles","container","children","particleSize","left","top","backgroundColor","opacity","borderRadius","displayName","create","position","pointerEvents"],"sourceRoot":"../../../../src","sources":["shared/helpers/ParticleBlast.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGL,UAAU,CAACM,GAAG,CAAC,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Y,GAAG;QAC/B,CAAC;MACD,GAZGhB,QAAQ,CAAClB,EAaf,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX,CAAC,CAAC;AAEFpB,aAAa,CAAC4D,WAAW,GAAG,eAAe;AAE3C,MAAMT,MAAM,GAAGzD,UAAU,CAACmE,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,QAAQ,EAAE,UAAU;IACpBN,GAAG,EAAE,CAAC;IACND,IAAI,EAAE,CAAC;IACPQ,aAAa,EAAE;EACjB,CAAC;EACDzB,QAAQ,EAAE;IACRwB,QAAQ,EAAE;EACZ;AACF,CAAC,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,CAqJ7C,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,CAiGzC,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,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AsD,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,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA2C7B,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":"ColorSort.d.ts","sourceRoot":"","sources":["../../../../../src/games/color-sort/ColorSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAK9F,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAyGxC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const COLOR_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
|
+
SELECTED_GLOW: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const COLOR_SORT_GAME_CONFIG: {
|
|
19
|
+
SCREEN_WIDTH: number;
|
|
20
|
+
SCREEN_HEIGHT: number;
|
|
21
|
+
PIECE_SIZE: number;
|
|
22
|
+
CONTAINER_SIZE: number;
|
|
23
|
+
CONTAINER_SPACING: number;
|
|
24
|
+
PIECE_SPACING: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const COLOR_SORT_CONSTANTS: {
|
|
27
|
+
baseScore: number;
|
|
28
|
+
moveScore: number;
|
|
29
|
+
perfectBonus: number;
|
|
30
|
+
};
|
|
31
|
+
export declare const PIECE_COLORS: string[];
|
|
32
|
+
export declare const COLOR_SORT_THEME: {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
headerBackgroundColor: string;
|
|
35
|
+
headerTextColor: string;
|
|
36
|
+
sectionBackgroundColor: string;
|
|
37
|
+
sectionTitleColor: string;
|
|
38
|
+
buttonSelectedColor: string;
|
|
39
|
+
buttonUnselectedColor: string;
|
|
40
|
+
buttonSelectedTextColor: string;
|
|
41
|
+
buttonUnselectedTextColor: string;
|
|
42
|
+
switchTrackColorFalse: string;
|
|
43
|
+
switchTrackColorTrue: string;
|
|
44
|
+
switchThumbColor: string;
|
|
45
|
+
infoTextColor: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const COLOR_SORT_DIFFICULTY_DESCRIPTIONS: {
|
|
48
|
+
easy: string;
|
|
49
|
+
medium: string;
|
|
50
|
+
hard: string;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=ColorSortConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorSortConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/color-sort/ColorSortConstants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAGF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC;AAEF,eAAO,MAAM,YAAY,UAQxB,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAc5B,CAAC;AAGF,eAAO,MAAM,kCAAkC;;;;CAI9C,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=ColorSortService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorSortService.d.ts","sourceRoot":"","sources":["../../../../../src/games/color-sort/ColorSortService.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/GamesService';
|
|
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 ColorSortState {
|
|
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 useColorSortStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ColorSortState>, "subscribe"> & {
|
|
34
|
+
subscribe: {
|
|
35
|
+
(listener: (selectedState: ColorSortState, previousSelectedState: ColorSortState) => void): () => void;
|
|
36
|
+
<U>(selector: (state: ColorSortState) => 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=ColorSortStore.d.ts.map
|