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,97 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../services/GamesConstants';
|
|
2
|
+
export declare const DINO_JUMP_CONSTANTS: {
|
|
3
|
+
readonly gravity: 1;
|
|
4
|
+
readonly jumpForce: -20;
|
|
5
|
+
readonly gameSpeed: {
|
|
6
|
+
readonly easy: 4;
|
|
7
|
+
readonly medium: 6;
|
|
8
|
+
readonly hard: 8;
|
|
9
|
+
};
|
|
10
|
+
readonly baseScore: {
|
|
11
|
+
readonly easy: 1;
|
|
12
|
+
readonly medium: 1;
|
|
13
|
+
readonly hard: 1;
|
|
14
|
+
};
|
|
15
|
+
readonly scoreMultiplier: {
|
|
16
|
+
readonly easy: 1;
|
|
17
|
+
readonly medium: 1.5;
|
|
18
|
+
readonly hard: 2;
|
|
19
|
+
};
|
|
20
|
+
readonly speedIncreaseRate: 0.001;
|
|
21
|
+
readonly maxSpeed: 12;
|
|
22
|
+
readonly timeLimit: {
|
|
23
|
+
readonly easy: 120;
|
|
24
|
+
readonly medium: 180;
|
|
25
|
+
readonly hard: 300;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const DINO_JUMP_GAME_CONFIG: {
|
|
29
|
+
readonly SCREEN_WIDTH: number;
|
|
30
|
+
readonly SCREEN_HEIGHT: number;
|
|
31
|
+
readonly GROUND_HEIGHT: 150;
|
|
32
|
+
readonly DINOSAUR_WIDTH: 55;
|
|
33
|
+
readonly DINOSAUR_HEIGHT: 58;
|
|
34
|
+
readonly DINOSAUR_X: 80;
|
|
35
|
+
readonly OBSTACLE_WIDTH: 20;
|
|
36
|
+
readonly OBSTACLE_HEIGHT: 40;
|
|
37
|
+
readonly OBSTACLE_SPAWN_DISTANCE: 600;
|
|
38
|
+
readonly GAME_DURATION: 120;
|
|
39
|
+
readonly PHYSICS_FRAME_RATE: 60;
|
|
40
|
+
readonly OBSTACLE_SPAWN_INTERVAL: 2000;
|
|
41
|
+
readonly JUMP_DURATION: 600;
|
|
42
|
+
readonly GROUND_SCROLL_SPEED: 4;
|
|
43
|
+
};
|
|
44
|
+
export declare const getGroundHeight: (offset?: number) => number;
|
|
45
|
+
export declare const getGroundY: (offset?: number) => number;
|
|
46
|
+
export declare const DINO_JUMP_ANIMATION_CONFIG: {
|
|
47
|
+
readonly DINO_JUMP: {
|
|
48
|
+
readonly damping: 15;
|
|
49
|
+
readonly stiffness: 300;
|
|
50
|
+
readonly mass: 1;
|
|
51
|
+
};
|
|
52
|
+
readonly OBSTACLE_MOVE: {
|
|
53
|
+
readonly duration: 3000;
|
|
54
|
+
};
|
|
55
|
+
readonly COLLISION_FEEDBACK: {
|
|
56
|
+
readonly duration: 200;
|
|
57
|
+
readonly intensity: 0.1;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const DINO_JUMP_COLORS: {
|
|
61
|
+
readonly SKY_TOP: "#FF9A9E";
|
|
62
|
+
readonly SKY_BOTTOM: "#FECFEF";
|
|
63
|
+
readonly GROUND: "#FFD93D";
|
|
64
|
+
readonly GROUND_LINE: "#FF6B6B";
|
|
65
|
+
readonly DINOSAUR_PRIMARY: "#4ECDC4";
|
|
66
|
+
readonly DINOSAUR_SECONDARY: "#45B7D1";
|
|
67
|
+
readonly DINOSAUR_OUTLINE: "#2C3E50";
|
|
68
|
+
readonly OBSTACLE_PRIMARY: "#2ECC71";
|
|
69
|
+
readonly OBSTACLE_SECONDARY: "#27AE60";
|
|
70
|
+
readonly OBSTACLE_OUTLINE: "#1E8449";
|
|
71
|
+
readonly SCORE_TEXT: "#2C3E50";
|
|
72
|
+
readonly GAME_OVER_OVERLAY: "rgba(231, 76, 60, 0.8)";
|
|
73
|
+
readonly BUTTON_PRIMARY: "#E74C3C";
|
|
74
|
+
readonly BUTTON_SECONDARY: "#C0392B";
|
|
75
|
+
readonly TEXT_PRIMARY: "#FFFFFF";
|
|
76
|
+
readonly TEXT_SECONDARY: "#ECF0F1";
|
|
77
|
+
readonly CLOUD_COLOR: "#FFFFFF";
|
|
78
|
+
readonly CLOUD_SHADOW: "rgba(52, 152, 219, 0.2)";
|
|
79
|
+
};
|
|
80
|
+
export declare const DINOSAUR_STATES: {
|
|
81
|
+
readonly RUNNING: "running";
|
|
82
|
+
readonly JUMPING: "jumping";
|
|
83
|
+
readonly DUCKING: "ducking";
|
|
84
|
+
readonly DEAD: "dead";
|
|
85
|
+
};
|
|
86
|
+
export declare const OBSTACLE_TYPES: {
|
|
87
|
+
readonly CACTUS_SMALL: "cactus_small";
|
|
88
|
+
readonly CACTUS_LARGE: "cactus_large";
|
|
89
|
+
readonly BIRD: "bird";
|
|
90
|
+
};
|
|
91
|
+
export declare const DINO_JUMP_THEME: GameSettingsTheme;
|
|
92
|
+
export declare const DINO_JUMP_DIFFICULTY_DESCRIPTIONS: {
|
|
93
|
+
readonly easy: "Slow speed, easy obstacles, perfect for beginners";
|
|
94
|
+
readonly medium: "Medium speed, moderate challenge with mixed obstacles";
|
|
95
|
+
readonly hard: "Fast speed, frequent obstacles, expert level challenge";
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=DinoJumpConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DinoJumpConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJumpConstants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;CAwBxB,CAAC;AAGX,eAAO,MAAM,eAAe,GAAI,SAAQ,MAAU,KAAG,MAEpD,CAAC;AAGF,eAAO,MAAM,UAAU,GAAI,SAAQ,MAAU,KAAG,MAE/C,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAa7B,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CA4BnB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAGX,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAGX,eAAO,MAAM,eAAe,EAAE,iBAc7B,CAAC;AAGF,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Obstacle, Cloud, Star } from './DinoJumpStore';
|
|
2
|
+
export declare class DinoJumpService {
|
|
3
|
+
private gameTimer;
|
|
4
|
+
private physicsAnimationId;
|
|
5
|
+
private obstacleTimer;
|
|
6
|
+
private cloudTimer;
|
|
7
|
+
private starTimer;
|
|
8
|
+
private lastFrameTime;
|
|
9
|
+
private obstacleId;
|
|
10
|
+
private cloudId;
|
|
11
|
+
private starId;
|
|
12
|
+
private isPhysicsRunning;
|
|
13
|
+
constructor();
|
|
14
|
+
getDifficultySettings(difficulty: 'easy' | 'medium' | 'hard'): {
|
|
15
|
+
speed: 8 | 6 | 4;
|
|
16
|
+
baseScore: 1;
|
|
17
|
+
scoreMultiplier: 2 | 1.5 | 1;
|
|
18
|
+
obstacleSpawnRate: number;
|
|
19
|
+
};
|
|
20
|
+
startTimer(decrementTimeCallback: () => void): void;
|
|
21
|
+
stopTimer(): void;
|
|
22
|
+
startPhysicsLoop(updateDinosaur: (deltaTime: number) => void, updateObstacles: (deltaTime: number) => void, updateClouds: (deltaTime: number) => void, updateStars: (deltaTime: number) => void, updateGround: (deltaTime: number) => void, updateScore: (points: number) => void, updateSpeed: () => void, checkCollisions: () => boolean, stopGame: () => void): void;
|
|
23
|
+
stopPhysicsLoop(): void;
|
|
24
|
+
startObstacleSpawning(addObstacle: (obstacle: Obstacle) => void, difficulty: 'easy' | 'medium' | 'hard', getOffset: () => number): void;
|
|
25
|
+
stopObstacleSpawning(): void;
|
|
26
|
+
startCloudSpawning(addCloud: (cloud: Cloud) => void): void;
|
|
27
|
+
stopCloudSpawning(): void;
|
|
28
|
+
startStarSpawning(addStar: (star: Star) => void, getOffset: () => number): void;
|
|
29
|
+
stopStarSpawning(): void;
|
|
30
|
+
createRandomObstacle(offset?: number): Obstacle;
|
|
31
|
+
private createRandomCloud;
|
|
32
|
+
createRandomStar(offset?: number): Star;
|
|
33
|
+
formatTime(timeInSeconds: number): string;
|
|
34
|
+
calculateFinalScore(score: number, timeElapsed: number, difficulty: 'easy' | 'medium' | 'hard'): number;
|
|
35
|
+
isNewHighScore(currentScore: number, previousHighScore: number): boolean;
|
|
36
|
+
generateGroundPattern(): number[];
|
|
37
|
+
cleanup(): void;
|
|
38
|
+
reset(): void;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=DinoJumpService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DinoJumpService.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJumpService.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE7D,qBAAa,eAAe;IAC1B,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,kBAAkB,CAAuB;IACjD,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,gBAAgB,CAAkB;;IAO1C,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;IAU5D,UAAU,CAAC,qBAAqB,EAAE,MAAM,IAAI;IAQ5C,SAAS;IAQT,gBAAgB,CACd,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EAC3C,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EAC5C,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACzC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACxC,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EACzC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACrC,WAAW,EAAE,MAAM,IAAI,EACvB,eAAe,EAAE,MAAM,OAAO,EAC9B,QAAQ,EAAE,MAAM,IAAI;IA0CtB,eAAe;IASf,qBAAqB,CACnB,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EACzC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,EACtC,SAAS,EAAE,MAAM,MAAM;IAoBzB,oBAAoB;IAQpB,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAiBnD,iBAAiB;IAQjB,iBAAiB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM;IAkBxE,gBAAgB;IAQT,oBAAoB,CAAC,MAAM,GAAE,MAAU,GAAG,QAAQ;IAgCzD,OAAO,CAAC,iBAAiB;IAYlB,gBAAgB,CAAC,MAAM,GAAE,MAAU,GAAG,IAAI;IAgBjD,UAAU,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAOzC,mBAAmB,CACjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GACrC,MAAM;IAOT,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO;IAKxE,qBAAqB,IAAI,MAAM,EAAE;IASjC,OAAO;IASP,KAAK;CAON"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { GameSettings } from '../../services/UtilsService';
|
|
2
|
+
export interface Obstacle {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'cactus_small' | 'cactus_large' | 'bird';
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
speed: number;
|
|
10
|
+
}
|
|
11
|
+
export interface Cloud {
|
|
12
|
+
id: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
speed: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CollisionBlast {
|
|
20
|
+
id: string;
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
}
|
|
24
|
+
export interface Star {
|
|
25
|
+
id: string;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
speed: number;
|
|
31
|
+
}
|
|
32
|
+
export interface DinoJumpState {
|
|
33
|
+
isPlaying: boolean;
|
|
34
|
+
isGameOver: boolean;
|
|
35
|
+
isPaused: boolean;
|
|
36
|
+
dinosaurY: number;
|
|
37
|
+
dinosaurVelocityY: number;
|
|
38
|
+
dinosaurState: 'running' | 'jumping' | 'ducking' | 'dead';
|
|
39
|
+
isJumping: boolean;
|
|
40
|
+
isDucking: boolean;
|
|
41
|
+
obstacles: Obstacle[];
|
|
42
|
+
clouds: Cloud[];
|
|
43
|
+
stars: Star[];
|
|
44
|
+
collisionBlasts: CollisionBlast[];
|
|
45
|
+
score: number;
|
|
46
|
+
distance: number;
|
|
47
|
+
speed: number;
|
|
48
|
+
timeLeft: number;
|
|
49
|
+
timeElapsed: number;
|
|
50
|
+
startTime: number | null;
|
|
51
|
+
lives: number;
|
|
52
|
+
groundOffset: number;
|
|
53
|
+
offset: number;
|
|
54
|
+
setOffset: (offset: number) => void;
|
|
55
|
+
startGame: () => void;
|
|
56
|
+
stopGame: () => void;
|
|
57
|
+
resetGame: () => void;
|
|
58
|
+
pauseGame: () => void;
|
|
59
|
+
resumeGame: () => void;
|
|
60
|
+
jump: () => void;
|
|
61
|
+
duck: () => void;
|
|
62
|
+
stopDuck: () => void;
|
|
63
|
+
updateDinosaur: (deltaTime: number) => void;
|
|
64
|
+
addObstacle: (obstacle: Obstacle) => void;
|
|
65
|
+
removeObstacle: (id: string) => void;
|
|
66
|
+
updateObstacles: (deltaTime: number) => void;
|
|
67
|
+
addCloud: (cloud: Cloud) => void;
|
|
68
|
+
updateClouds: (deltaTime: number) => void;
|
|
69
|
+
addStar: (star: Star) => void;
|
|
70
|
+
updateStars: (deltaTime: number) => void;
|
|
71
|
+
removeCollisionBlast: (id: string) => void;
|
|
72
|
+
checkCollisions: (settings: GameSettings) => boolean;
|
|
73
|
+
updateScore: (points: number) => void;
|
|
74
|
+
updateSpeed: () => void;
|
|
75
|
+
updateGround: (deltaTime: number) => void;
|
|
76
|
+
decrementTime: () => void;
|
|
77
|
+
initializeGame: (difficulty: 'easy' | 'medium' | 'hard') => void;
|
|
78
|
+
}
|
|
79
|
+
export declare const useDinoJumpStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<DinoJumpState>, "subscribe"> & {
|
|
80
|
+
subscribe: {
|
|
81
|
+
(listener: (selectedState: DinoJumpState, previousSelectedState: DinoJumpState) => void): () => void;
|
|
82
|
+
<U>(selector: (state: DinoJumpState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
83
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
84
|
+
fireImmediately?: boolean;
|
|
85
|
+
} | undefined): () => void;
|
|
86
|
+
};
|
|
87
|
+
}>;
|
|
88
|
+
export declare const useIsPlaying: () => boolean;
|
|
89
|
+
export declare const useIsGameOver: () => boolean;
|
|
90
|
+
export declare const useIsPaused: () => boolean;
|
|
91
|
+
export declare const useDinosaurY: () => number;
|
|
92
|
+
export declare const useDinosaurVelocityY: () => number;
|
|
93
|
+
export declare const useDinosaurStateValue: () => "running" | "jumping" | "ducking" | "dead";
|
|
94
|
+
export declare const useIsJumping: () => boolean;
|
|
95
|
+
export declare const useIsDucking: () => boolean;
|
|
96
|
+
export declare const useScore: () => number;
|
|
97
|
+
export declare const useTimeLeft: () => number;
|
|
98
|
+
export declare const useLives: () => number;
|
|
99
|
+
export declare const useObstacles: () => Obstacle[];
|
|
100
|
+
export declare const useClouds: () => Cloud[];
|
|
101
|
+
export declare const useGroundOffset: () => number;
|
|
102
|
+
export declare const useStars: () => Star[];
|
|
103
|
+
//# sourceMappingURL=DinoJumpStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DinoJumpStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/dino-jump/DinoJumpStore.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DinoSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/DinoSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAqS7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GameSettings } from '../../../services/UtilsService';
|
|
3
|
+
interface GameAreaProps {
|
|
4
|
+
settings: GameSettings;
|
|
5
|
+
}
|
|
6
|
+
export declare const GameArea: React.FC<GameAreaProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GameArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,UAAU,aAAa;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsD3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsCD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8NvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObstacleSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/ObstacleSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkP1B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA2BjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4C/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StarSprite.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/StarSprite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAc7B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { GameBackground } from './GameBackground';
|
|
2
|
+
export { GameArea } from './GameArea';
|
|
3
|
+
export { DinoSprite } from './DinoSprite';
|
|
4
|
+
export { ObstacleSprite } from './ObstacleSprite';
|
|
5
|
+
export { StarSprite } from './StarSprite';
|
|
6
|
+
export { ScoreBoard } from './ScoreBoard';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/dino-jump/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlappyBird.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBird.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAU9F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsGzC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const FLAPPY_BIRD_GAME_CONFIG: {
|
|
2
|
+
BIRD_SIZE: number;
|
|
3
|
+
BIRD_START_X: number;
|
|
4
|
+
BIRD_START_Y: number;
|
|
5
|
+
GRAVITY: number;
|
|
6
|
+
JUMP_VELOCITY: number;
|
|
7
|
+
MAX_FALL_SPEED: number;
|
|
8
|
+
VELOCITY_DAMPING: number;
|
|
9
|
+
PIPE_WIDTH: number;
|
|
10
|
+
PIPE_GAP: number;
|
|
11
|
+
PIPE_SPEED_EASY: number;
|
|
12
|
+
PIPE_SPEED_MEDIUM: number;
|
|
13
|
+
PIPE_SPEED_HARD: number;
|
|
14
|
+
PIPE_SPAWN_INTERVAL: number;
|
|
15
|
+
MIN_PIPE_HEIGHT: number;
|
|
16
|
+
MAX_PIPE_HEIGHT: number;
|
|
17
|
+
GROUND_HEIGHT: number;
|
|
18
|
+
GAME_WIDTH: number;
|
|
19
|
+
GAME_HEIGHT: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const FLAPPY_BIRD_COLORS: {
|
|
22
|
+
SKY_START: string;
|
|
23
|
+
SKY_END: string;
|
|
24
|
+
GROUND: string;
|
|
25
|
+
GROUND_DARK: string;
|
|
26
|
+
PIPE_GREEN: string;
|
|
27
|
+
PIPE_DARK: string;
|
|
28
|
+
BIRD_YELLOW: string;
|
|
29
|
+
BIRD_ORANGE: string;
|
|
30
|
+
SCORE_TEXT: string;
|
|
31
|
+
BUTTON_PRIMARY: string;
|
|
32
|
+
BUTTON_SECONDARY: string;
|
|
33
|
+
GAME_OVER_BG: string;
|
|
34
|
+
SCORE_BACKGROUND: string;
|
|
35
|
+
SCORE_BORDER: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const FLAPPY_BIRD_THEME: {
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
headerBackgroundColor: string;
|
|
40
|
+
headerTextColor: string;
|
|
41
|
+
sectionBackgroundColor: string;
|
|
42
|
+
sectionTitleColor: string;
|
|
43
|
+
buttonSelectedColor: string;
|
|
44
|
+
buttonUnselectedColor: string;
|
|
45
|
+
buttonSelectedTextColor: string;
|
|
46
|
+
buttonUnselectedTextColor: string;
|
|
47
|
+
switchTrackColorFalse: string;
|
|
48
|
+
switchTrackColorTrue: string;
|
|
49
|
+
switchThumbColor: string;
|
|
50
|
+
infoTextColor: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const FLAPPY_BIRD_DIFFICULTY_DESCRIPTIONS: {
|
|
53
|
+
easy: {
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
features: string[];
|
|
57
|
+
};
|
|
58
|
+
medium: {
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
features: string[];
|
|
62
|
+
};
|
|
63
|
+
hard: {
|
|
64
|
+
title: string;
|
|
65
|
+
description: string;
|
|
66
|
+
features: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare const DIFFICULTY_CONFIG: {
|
|
70
|
+
easy: {
|
|
71
|
+
pipeSpeed: number;
|
|
72
|
+
pipeGap: number;
|
|
73
|
+
};
|
|
74
|
+
medium: {
|
|
75
|
+
pipeSpeed: number;
|
|
76
|
+
pipeGap: number;
|
|
77
|
+
};
|
|
78
|
+
hard: {
|
|
79
|
+
pipeSpeed: number;
|
|
80
|
+
pipeGap: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=FlappyBirdConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlappyBirdConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBirdConstants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;CAmBnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAa7B,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { GameSettings } from '../../services/UtilsService';
|
|
2
|
+
export interface Pipe {
|
|
3
|
+
id: string;
|
|
4
|
+
x: number;
|
|
5
|
+
topHeight: number;
|
|
6
|
+
bottomY: number;
|
|
7
|
+
passed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CollisionBlast {
|
|
10
|
+
id: string;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}
|
|
14
|
+
export interface FlappyBirdState {
|
|
15
|
+
isPlaying: boolean;
|
|
16
|
+
isGameOver: boolean;
|
|
17
|
+
score: number;
|
|
18
|
+
survivalTime: number;
|
|
19
|
+
birdY: number;
|
|
20
|
+
birdVelocity: number;
|
|
21
|
+
pipes: Pipe[];
|
|
22
|
+
collisionBlasts: CollisionBlast[];
|
|
23
|
+
gameLoopInterval: NodeJS.Timeout | null;
|
|
24
|
+
pipeSpawnInterval: NodeJS.Timeout | null;
|
|
25
|
+
timerInterval: NodeJS.Timeout | null;
|
|
26
|
+
startGame: (settings: GameSettings) => void;
|
|
27
|
+
stopGame: () => void;
|
|
28
|
+
resetGame: () => void;
|
|
29
|
+
initializeGame: () => void;
|
|
30
|
+
jump: () => void;
|
|
31
|
+
updatePhysics: (settings: GameSettings) => void;
|
|
32
|
+
spawnPipe: (settings: GameSettings) => void;
|
|
33
|
+
checkCollision: () => boolean;
|
|
34
|
+
addCollisionBlast: (x: number, y: number) => void;
|
|
35
|
+
removeCollisionBlast: (id: string) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare const useFlappyBirdStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FlappyBirdState>, "subscribe"> & {
|
|
38
|
+
subscribe: {
|
|
39
|
+
(listener: (selectedState: FlappyBirdState, previousSelectedState: FlappyBirdState) => void): () => void;
|
|
40
|
+
<U>(selector: (state: FlappyBirdState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
41
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
42
|
+
fireImmediately?: boolean;
|
|
43
|
+
} | undefined): () => void;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
export declare const useIsPlaying: () => boolean;
|
|
47
|
+
export declare const useIsGameOver: () => boolean;
|
|
48
|
+
export declare const useScore: () => number;
|
|
49
|
+
export declare const useSurvivalTime: () => number;
|
|
50
|
+
export declare const useBirdY: () => number;
|
|
51
|
+
export declare const usePipes: () => Pipe[];
|
|
52
|
+
export declare const useCollisionBlasts: () => CollisionBlast[];
|
|
53
|
+
//# sourceMappingURL=FlappyBirdStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlappyBirdStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/flappy-bird/FlappyBirdStore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAErC,SAAS,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,aAAa,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAgBD,eAAO,MAAM,kBAAkB;;;;;;;;EAgS9B,CAAC;AAEF,eAAO,MAAM,YAAY,eAAqD,CAAC;AAC/E,eAAO,MAAM,aAAa,eAAsD,CAAC;AACjF,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,eAAe,cAAwD,CAAC;AACrF,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,QAAQ,cAAiD,CAAC;AACvE,eAAO,MAAM,kBAAkB,wBAA2D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bird.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/Bird.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAgBD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkEnC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GameSettings } from '../../../services/UtilsService';
|
|
3
|
+
interface GameAreaProps {
|
|
4
|
+
settings: GameSettings;
|
|
5
|
+
}
|
|
6
|
+
export declare const GameArea: React.FC<GameAreaProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GameArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/GameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKnE,UAAU,aAAa;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAUD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+CvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pipes.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/Pipes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,UAAU,UAAU;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsKrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkB/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/flappy-bird/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FruitMerger.d.ts","sourceRoot":"","sources":["../../../../../src/games/fruit-merger/FruitMerger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAY,KAAK,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAK9F,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiG1C,CAAC"}
|