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 @@
|
|
|
1
|
+
{"version":3,"file":"GameGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/games/game-2048/components/GameGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACxC;AAID,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmG3C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GameTile as GameTileType } from '../Game2048Service';
|
|
3
|
+
interface GameTileProps {
|
|
4
|
+
tile: GameTileType;
|
|
5
|
+
position: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
size: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const GameTile: React.FC<GameTileProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GameTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameTile.d.ts","sourceRoot":"","sources":["../../../../../../src/games/game-2048/components/GameTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGnE,UAAU,aAAa;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4C3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/game-2048/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsB/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/game-2048/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MazeRunner.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAiBjF,OAAO,EAAY,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"MazeRunner.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAiBjF,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AA2B9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2N1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MazeRunnerService.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunnerService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE;QACL,GAAG,EAAE,OAAO,CAAC;QACb,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,OAAO,EAAE,OAAO,CA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IAuBzB,OAAO,CAAC,aAAa;IAiFrB,OAAO,CAAC,uBAAuB;IAgBxB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;IAwB7G,SAAS,IAAI,IAAI;IAejB,SAAS,IAAI,IAAI;IAkBjB,SAAS,IAAI,IAAI;IAMjB,UAAU,IAAI,IAAI;IAMlB,QAAQ,IAAI,IAAI;IAOvB,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,SAAS;IAOV,kBAAkB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAqBzD,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,aAAa;IASd,YAAY,IAAI,SAAS;IAIzB,aAAa,IAAI,UAAU;IAI3B,QAAQ,IAAI,IAAI,EAAE;IAIlB,OAAO,IAAI,QAAQ,EAAE,EAAE;IAKvB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAMnC,OAAO,IAAI,IAAI;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsB/C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type GameProps } from '../../services/
|
|
2
|
+
import { type GameProps } from '../../services/UtilsService';
|
|
3
3
|
declare const PopitFidget: React.FC<GameProps>;
|
|
4
4
|
export { PopitFidget };
|
|
5
5
|
//# sourceMappingURL=PopitFidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopitFidget.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopitFidget.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAa9F,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAyQpC,CAAC;AAkBF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FidgetGrid } from './PopitFidgetService';
|
|
2
2
|
export interface GameState {
|
|
3
|
-
|
|
4
|
-
timeLeft: number;
|
|
3
|
+
timeElapsed: number;
|
|
5
4
|
isPlaying: boolean;
|
|
6
5
|
gameOver: boolean;
|
|
7
6
|
gameWon: boolean;
|
|
@@ -19,9 +18,7 @@ export interface PopitFidgetStore extends GameState {
|
|
|
19
18
|
resetGame: () => void;
|
|
20
19
|
setFidgetGrid: (grid: FidgetGrid) => void;
|
|
21
20
|
popBubble: (row: number, col: number) => void;
|
|
22
|
-
|
|
23
|
-
decrementTime: () => void;
|
|
24
|
-
setTimeLeft: (timeLeft: number) => void;
|
|
21
|
+
incrementTime: () => void;
|
|
25
22
|
checkGameWon: () => void;
|
|
26
23
|
}
|
|
27
24
|
export declare const usePopitFidgetStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<PopitFidgetStore>, "subscribe"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopitFidgetStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidgetStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PopitFidgetStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidgetStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAGtE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAGD,eAAO,MAAM,mBAAmB;;;;;;;;EAuI/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACvB,
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AA2BD,QAAA,MAAM,kBAAkB,6CAAyB,CAAC;AAwBlD,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingNumbers.d.ts","sourceRoot":"","sources":["../../../../../src/games/sliding-numbers/SlidingNumbers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE9F,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4I7C,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../services/GamesConstants';
|
|
2
|
+
export declare const SLIDING_NUMBERS_CONSTANTS: {
|
|
3
|
+
readonly gridSize: {
|
|
4
|
+
readonly easy: 3;
|
|
5
|
+
readonly medium: 4;
|
|
6
|
+
readonly hard: 5;
|
|
7
|
+
};
|
|
8
|
+
readonly maxNumbers: {
|
|
9
|
+
readonly easy: 8;
|
|
10
|
+
readonly medium: 15;
|
|
11
|
+
readonly hard: 24;
|
|
12
|
+
};
|
|
13
|
+
readonly baseScore: {
|
|
14
|
+
readonly easy: 1000;
|
|
15
|
+
readonly medium: 2000;
|
|
16
|
+
readonly hard: 3000;
|
|
17
|
+
};
|
|
18
|
+
readonly scoreMultiplier: {
|
|
19
|
+
readonly easy: 5;
|
|
20
|
+
readonly medium: 10;
|
|
21
|
+
readonly hard: 15;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const SLIDING_NUMBERS_GAME_CONFIG: {
|
|
25
|
+
readonly TILE_SIZE: number;
|
|
26
|
+
readonly TILE_GAP: 4;
|
|
27
|
+
readonly GRID_PADDING: 20;
|
|
28
|
+
readonly GAME_DURATION: 600;
|
|
29
|
+
readonly SHUFFLE_MOVES: 100;
|
|
30
|
+
readonly ANIMATION_DURATION: 200;
|
|
31
|
+
};
|
|
32
|
+
export declare const SLIDING_NUMBERS_ANIMATION_CONFIG: {
|
|
33
|
+
readonly TILE_SLIDE: {
|
|
34
|
+
readonly damping: 25;
|
|
35
|
+
readonly stiffness: 400;
|
|
36
|
+
readonly mass: 1;
|
|
37
|
+
readonly restDisplacementThreshold: 0.01;
|
|
38
|
+
readonly restSpeedThreshold: 0.01;
|
|
39
|
+
};
|
|
40
|
+
readonly TILE_PRESS: {
|
|
41
|
+
readonly damping: 15;
|
|
42
|
+
readonly stiffness: 200;
|
|
43
|
+
};
|
|
44
|
+
readonly GESTURE: {
|
|
45
|
+
readonly activeScale: 1.05;
|
|
46
|
+
readonly snapThreshold: 0.3;
|
|
47
|
+
readonly velocityThreshold: 500;
|
|
48
|
+
};
|
|
49
|
+
readonly COMPLETION_CELEBRATION: {
|
|
50
|
+
readonly duration: 500;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const SLIDING_NUMBERS_COLORS: {
|
|
54
|
+
readonly BACKGROUND: "#F5F5DC";
|
|
55
|
+
readonly GRID_BACKGROUND: "#FFFFFF";
|
|
56
|
+
readonly GRID_BORDER: "#E0E0E0";
|
|
57
|
+
readonly TILE_COLORS: readonly ["#FFB3D9", "#B3E5FC", "#C8E6C9", "#FFF9C4", "#E1BEE7", "#FFCDD2", "#B2DFDB", "#F8BBD9", "#A5D6A7", "#FFECB3", "#D1C4E9", "#B3E5FC", "#FFE0B2", "#C8E6C9", "#F8BBD9", "#E0F2F1", "#FCE4EC", "#E8F5E8", "#FFF3E0", "#F3E5F5", "#E1F5FE", "#F9FBE7", "#FFF8E1", "#EFEBE9"];
|
|
58
|
+
readonly TILE_BORDER: "#D0D0D0";
|
|
59
|
+
readonly TILE_SHADOW: "rgba(0,0,0,0.1)";
|
|
60
|
+
readonly NUMBER_TEXT: "#333333";
|
|
61
|
+
readonly WORD_TEXT: "#666666";
|
|
62
|
+
readonly EMPTY_TILE: "#F8F8F8";
|
|
63
|
+
readonly SCORE_BOARD: "#f59e0b";
|
|
64
|
+
readonly SCORE_TEXT: "#FFFFFF";
|
|
65
|
+
readonly TIMER_TEXT: "#f59e0b";
|
|
66
|
+
readonly UI: "#f59e0b";
|
|
67
|
+
readonly BUTTON_ACTIVE: "#f59e0b";
|
|
68
|
+
readonly BUTTON_INACTIVE: "#fbbf24";
|
|
69
|
+
readonly TEXT_PRIMARY: "#FFFFFF";
|
|
70
|
+
readonly TEXT_SECONDARY: "#fef3c7";
|
|
71
|
+
readonly WHITE: "#FFFFFF";
|
|
72
|
+
readonly START_BUTTON: "#f59e0b";
|
|
73
|
+
readonly COMPLETION_OVERLAY: "rgba(245, 158, 11, 0.9)";
|
|
74
|
+
readonly BUTTON_BORDER: "#fbbf24";
|
|
75
|
+
};
|
|
76
|
+
export declare const NUMBER_WORDS: {
|
|
77
|
+
readonly 1: "one";
|
|
78
|
+
readonly 2: "two";
|
|
79
|
+
readonly 3: "three";
|
|
80
|
+
readonly 4: "four";
|
|
81
|
+
readonly 5: "five";
|
|
82
|
+
readonly 6: "six";
|
|
83
|
+
readonly 7: "seven";
|
|
84
|
+
readonly 8: "eight";
|
|
85
|
+
readonly 9: "nine";
|
|
86
|
+
readonly 10: "ten";
|
|
87
|
+
readonly 11: "eleven";
|
|
88
|
+
readonly 12: "twelve";
|
|
89
|
+
readonly 13: "thirteen";
|
|
90
|
+
readonly 14: "fourteen";
|
|
91
|
+
readonly 15: "fifteen";
|
|
92
|
+
readonly 16: "sixteen";
|
|
93
|
+
readonly 17: "seventeen";
|
|
94
|
+
readonly 18: "eighteen";
|
|
95
|
+
readonly 19: "nineteen";
|
|
96
|
+
readonly 20: "twenty";
|
|
97
|
+
readonly 21: "twenty-one";
|
|
98
|
+
readonly 22: "twenty-two";
|
|
99
|
+
readonly 23: "twenty-three";
|
|
100
|
+
readonly 24: "twenty-four";
|
|
101
|
+
};
|
|
102
|
+
export declare const SLIDING_NUMBERS_THEME: GameSettingsTheme;
|
|
103
|
+
export declare const SLIDING_NUMBERS_DIFFICULTY_DESCRIPTIONS: {
|
|
104
|
+
readonly easy: "3x3 grid with numbers 1-8, perfect for beginners";
|
|
105
|
+
readonly medium: "4x4 grid with numbers 1-15, moderate challenge";
|
|
106
|
+
readonly hard: "5x5 grid with numbers 1-24, expert level puzzle";
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=SlidingNumbersConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingNumbersConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/sliding-numbers/SlidingNumbersConstants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAsB5B,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AAEX,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;CAoBnC,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;CA+CzB,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBf,CAAC;AAGX,eAAO,MAAM,qBAAqB,EAAE,iBAcnC,CAAC;AAGF,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PuzzleTile } from './SlidingNumbersStore';
|
|
2
|
+
export declare class SlidingNumbersService {
|
|
3
|
+
private gameTimer;
|
|
4
|
+
createSolvedPuzzle(gridSize: number): PuzzleTile[];
|
|
5
|
+
canMoveTile(tile: PuzzleTile, emptyPosition: {
|
|
6
|
+
row: number;
|
|
7
|
+
col: number;
|
|
8
|
+
}): boolean;
|
|
9
|
+
getMovableTiles(tiles: PuzzleTile[], emptyPosition: {
|
|
10
|
+
row: number;
|
|
11
|
+
col: number;
|
|
12
|
+
}): PuzzleTile[];
|
|
13
|
+
isPuzzleSolvable(tiles: PuzzleTile[], gridSize: number): boolean;
|
|
14
|
+
shufflePuzzle(tiles: PuzzleTile[], gridSize: number): PuzzleTile[];
|
|
15
|
+
private shuffleWithValidMoves;
|
|
16
|
+
isPuzzleCompleted(tiles: PuzzleTile[], gridSize: number): boolean;
|
|
17
|
+
calculateScore(timeElapsed: number, difficulty: 'easy' | 'medium' | 'hard'): number;
|
|
18
|
+
getOptimalMoveCount(difficulty: 'easy' | 'medium' | 'hard'): number;
|
|
19
|
+
startTimer(onTick: () => void): void;
|
|
20
|
+
stopTimer(): void;
|
|
21
|
+
getHint(tiles: PuzzleTile[], emptyPosition: {
|
|
22
|
+
row: number;
|
|
23
|
+
col: number;
|
|
24
|
+
}): PuzzleTile | null;
|
|
25
|
+
formatTime(seconds: number): string;
|
|
26
|
+
getDifficultySettings(difficulty: 'easy' | 'medium' | 'hard'): {
|
|
27
|
+
gridSize: 3 | 4 | 5;
|
|
28
|
+
maxNumbers: 8 | 15 | 24;
|
|
29
|
+
baseScore: 2000 | 1000 | 3000;
|
|
30
|
+
scoreMultiplier: 10 | 15 | 5;
|
|
31
|
+
};
|
|
32
|
+
cleanup(): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=SlidingNumbersService.d.ts.map
|
|
@@ -0,0 +1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1C,UAAU,GAAG,IAAI;IAab,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOnC,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;IAU5D,OAAO,IAAI,IAAI;CAGvB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface PuzzleTile {
|
|
2
|
+
id: number;
|
|
3
|
+
value: number;
|
|
4
|
+
position: {
|
|
5
|
+
row: number;
|
|
6
|
+
col: number;
|
|
7
|
+
};
|
|
8
|
+
isCorrect: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SlidingNumbersState {
|
|
11
|
+
isPlaying: boolean;
|
|
12
|
+
isCompleted: boolean;
|
|
13
|
+
tiles: PuzzleTile[];
|
|
14
|
+
gridSize: number;
|
|
15
|
+
emptyPosition: {
|
|
16
|
+
row: number;
|
|
17
|
+
col: number;
|
|
18
|
+
};
|
|
19
|
+
score: number;
|
|
20
|
+
timeLeft: number;
|
|
21
|
+
timeElapsed: number;
|
|
22
|
+
startTime: number | null;
|
|
23
|
+
initializePuzzle: (gridSize: number) => void;
|
|
24
|
+
moveTile: (tileId: number) => boolean;
|
|
25
|
+
moveTileInDirection: (tileId: number, direction: 'up' | 'down' | 'left' | 'right') => boolean;
|
|
26
|
+
shufflePuzzle: () => void;
|
|
27
|
+
startGame: () => void;
|
|
28
|
+
stopGame: () => void;
|
|
29
|
+
resetGame: () => void;
|
|
30
|
+
decrementTime: () => void;
|
|
31
|
+
checkCompletion: (difficulty: 'easy' | 'medium' | 'hard') => void;
|
|
32
|
+
updateScore: (points: number) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const useSlidingNumbersStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SlidingNumbersState>, "subscribe"> & {
|
|
35
|
+
subscribe: {
|
|
36
|
+
(listener: (selectedState: SlidingNumbersState, previousSelectedState: SlidingNumbersState) => void): () => void;
|
|
37
|
+
<U>(selector: (state: SlidingNumbersState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
38
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
39
|
+
fireImmediately?: boolean;
|
|
40
|
+
} | undefined): () => void;
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
export declare const useGameState: () => {
|
|
44
|
+
isPlaying: boolean;
|
|
45
|
+
isCompleted: boolean;
|
|
46
|
+
};
|
|
47
|
+
export declare const useScore: () => number;
|
|
48
|
+
export declare const useTimeLeft: () => number;
|
|
49
|
+
export declare const useTimeElapsed: () => number;
|
|
50
|
+
export declare const useTiles: () => PuzzleTile[];
|
|
51
|
+
export declare const useGridSize: () => number;
|
|
52
|
+
export declare const useEmptyPosition: () => {
|
|
53
|
+
row: number;
|
|
54
|
+
col: number;
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=SlidingNumbersStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingNumbersStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/sliding-numbers/SlidingNumbersStore.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAElC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IAGrB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAG5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAA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AAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqQvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumbersGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/games/sliding-numbers/components/NumbersGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAoBvC,UAAU,gBAAgB;IACxB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsJjD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PuzzleTile as PuzzleTileType } from '../SlidingNumbersStore';
|
|
3
|
+
interface NumbersTileProps {
|
|
4
|
+
tile: PuzzleTileType;
|
|
5
|
+
onPress: (tileId: number) => void;
|
|
6
|
+
isMovable: boolean;
|
|
7
|
+
tileSize: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const NumbersTile: React.FC<NumbersTileProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=NumbersTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumbersTile.d.ts","sourceRoot":"","sources":["../../../../../../src/games/sliding-numbers/components/NumbersTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE3E,UAAU,gBAAgB;IACxB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4EjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/sliding-numbers/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsB/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/sliding-numbers/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Snake.d.ts","sourceRoot":"","sources":["../../../../../src/games/snake/Snake.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,KAAK,SAAS,EAAmC,MAAM,6BAA6B,CAAC;AAW9F,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqKpC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../services/GamesConstants';
|
|
2
|
+
export declare const SNAKE_GAME_CONFIG: {
|
|
3
|
+
readonly GRID_SIZE: 20;
|
|
4
|
+
readonly CELL_SIZE: number;
|
|
5
|
+
readonly GAME_SPEED: {
|
|
6
|
+
readonly easy: 400;
|
|
7
|
+
readonly medium: 300;
|
|
8
|
+
readonly hard: 200;
|
|
9
|
+
};
|
|
10
|
+
readonly POINTS_PER_FOOD: 10;
|
|
11
|
+
readonly POINTS_PER_SPECIAL_FOOD: 25;
|
|
12
|
+
readonly DIFFICULTY_MULTIPLIER: {
|
|
13
|
+
readonly easy: 1;
|
|
14
|
+
readonly medium: 2;
|
|
15
|
+
readonly hard: 3;
|
|
16
|
+
};
|
|
17
|
+
readonly SPECIAL_FOOD_CHANCE: 0.15;
|
|
18
|
+
readonly SPECIAL_FOOD_DURATION: 5000;
|
|
19
|
+
readonly INITIAL_SNAKE_LENGTH: 3;
|
|
20
|
+
};
|
|
21
|
+
export declare const SNAKE_COLORS: {
|
|
22
|
+
readonly BACKGROUND: "#252541";
|
|
23
|
+
readonly GRID_LINE: "rgba(255, 255, 255, 0.15)";
|
|
24
|
+
readonly SNAKE_HEAD: "#00ff88";
|
|
25
|
+
readonly SNAKE_BODY: "#00cc6a";
|
|
26
|
+
readonly SNAKE_TAIL: "#00994d";
|
|
27
|
+
readonly SNAKE_OUTLINE: "#004d26";
|
|
28
|
+
readonly FOOD_NORMAL: "#ff4757";
|
|
29
|
+
readonly FOOD_SPECIAL: "#ffa502";
|
|
30
|
+
readonly FOOD_GLOW: "rgba(255, 71, 87, 0.5)";
|
|
31
|
+
readonly SCORE_TEXT: "#ffffff";
|
|
32
|
+
readonly SCORE_BACKGROUND: "rgba(0, 255, 136, 0.2)";
|
|
33
|
+
readonly BUTTON_PRIMARY: "#00cc6a";
|
|
34
|
+
readonly BUTTON_SECONDARY: "#00994d";
|
|
35
|
+
readonly MODAL_PRIMARY: "rgba(0, 255, 136, 0.95)";
|
|
36
|
+
readonly MODAL_BORDER: "rgba(0, 204, 106, 0.9)";
|
|
37
|
+
readonly MODAL_BUTTON: "#00ff88";
|
|
38
|
+
readonly MODAL_BUTTON_BORDER: "#00cc6a";
|
|
39
|
+
readonly COLLISION_COLOR: "#ff4757";
|
|
40
|
+
};
|
|
41
|
+
export declare const DIRECTIONS: {
|
|
42
|
+
readonly UP: {
|
|
43
|
+
readonly x: 0;
|
|
44
|
+
readonly y: -1;
|
|
45
|
+
};
|
|
46
|
+
readonly DOWN: {
|
|
47
|
+
readonly x: 0;
|
|
48
|
+
readonly y: 1;
|
|
49
|
+
};
|
|
50
|
+
readonly LEFT: {
|
|
51
|
+
readonly x: -1;
|
|
52
|
+
readonly y: 0;
|
|
53
|
+
};
|
|
54
|
+
readonly RIGHT: {
|
|
55
|
+
readonly x: 1;
|
|
56
|
+
readonly y: 0;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type Direction = keyof typeof DIRECTIONS;
|
|
60
|
+
export declare const SNAKE_THEME: GameSettingsTheme;
|
|
61
|
+
export declare const SNAKE_DIFFICULTY_DESCRIPTIONS: {
|
|
62
|
+
readonly easy: "Slow speed • 1x points • Perfect for beginners";
|
|
63
|
+
readonly medium: "Medium speed • 2x points • Balanced challenge";
|
|
64
|
+
readonly hard: "Fast speed • 3x points • Expert level";
|
|
65
|
+
};
|
|
66
|
+
export declare const SNAKE_SOUNDS: {
|
|
67
|
+
readonly EAT: {
|
|
68
|
+
readonly text: "Nom!";
|
|
69
|
+
readonly pitch: 1.2;
|
|
70
|
+
readonly rate: 1.5;
|
|
71
|
+
};
|
|
72
|
+
readonly SPECIAL: {
|
|
73
|
+
readonly text: "Bonus!";
|
|
74
|
+
readonly pitch: 1.5;
|
|
75
|
+
readonly rate: 2;
|
|
76
|
+
};
|
|
77
|
+
readonly COLLISION: {
|
|
78
|
+
readonly text: "Ouch!";
|
|
79
|
+
readonly pitch: 0.8;
|
|
80
|
+
readonly rate: 1.2;
|
|
81
|
+
};
|
|
82
|
+
readonly WIN: {
|
|
83
|
+
readonly text: "Victory!";
|
|
84
|
+
readonly pitch: 1.6;
|
|
85
|
+
readonly rate: 1.8;
|
|
86
|
+
};
|
|
87
|
+
readonly LOSE: {
|
|
88
|
+
readonly text: "Game Over";
|
|
89
|
+
readonly pitch: 0.8;
|
|
90
|
+
readonly rate: 1.2;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=SnakeConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnakeConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/snake/SnakeConstants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAKvE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;CA2BpB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CA4Bf,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAKb,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC;AAGhD,eAAO,MAAM,WAAW,EAAE,iBAczB,CAAC;AAGF,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Direction } from './SnakeConstants';
|
|
2
|
+
export interface Position {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface SnakeSegment extends Position {
|
|
7
|
+
id: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Food extends Position {
|
|
10
|
+
id: number;
|
|
11
|
+
isSpecial: boolean;
|
|
12
|
+
expiresAt?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class SnakeService {
|
|
15
|
+
private nextId;
|
|
16
|
+
initializeSnake(): SnakeSegment[];
|
|
17
|
+
generateFood(snake: SnakeSegment[], isSpecial?: boolean): Food;
|
|
18
|
+
isPositionOnSnake(position: Position, snake: SnakeSegment[]): boolean;
|
|
19
|
+
moveSnake(snake: SnakeSegment[], direction: Direction): SnakeSegment[];
|
|
20
|
+
checkWallCollision(head: SnakeSegment): boolean;
|
|
21
|
+
checkSelfCollision(snake: SnakeSegment[]): boolean;
|
|
22
|
+
checkFoodCollision(head: SnakeSegment, food: Food): boolean;
|
|
23
|
+
growSnake(snake: SnakeSegment[]): SnakeSegment[];
|
|
24
|
+
isValidDirectionChange(currentDirection: Direction, newDirection: Direction): boolean;
|
|
25
|
+
getOppositeDirection(direction: Direction): Direction;
|
|
26
|
+
resetIdCounter(): void;
|
|
27
|
+
isSpecialFoodExpired(food: Food): boolean;
|
|
28
|
+
calculateScore(isSpecialFood: boolean, difficulty: 'easy' | 'medium' | 'hard'): number;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=SnakeService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnakeService.d.ts","sourceRoot":"","sources":["../../../../../src/games/snake/SnakeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjF,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,IAAK,SAAQ,QAAQ;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAK;IAGnB,eAAe,IAAI,YAAY,EAAE;IAgBjC,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,SAAS,GAAE,OAAe,GAAG,IAAI;IA+BrE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO;IAKrE,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,SAAS,EAAE,SAAS,GAAG,YAAY,EAAE;IAoBtE,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO;IAU/C,kBAAkB,CAAC,K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