react-native-games 0.3.0 → 0.5.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 +134 -130
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +116 -343
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +182 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js +123 -101
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +119 -92
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js +123 -113
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/GameArea.js +137 -23
- package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/GameBackground.js +8 -83
- package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js +15 -22
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/index.js +0 -4
- package/lib/module/games/balloon-blaster/components/index.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinja.js +143 -0
- package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -0
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +148 -0
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -0
- package/lib/module/games/{fruit-slicer/FruitSlicerService.js → fruit-ninja/FruitNinjaService.js} +43 -21
- package/lib/module/games/fruit-ninja/FruitNinjaService.js.map +1 -0
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js +191 -0
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/FruitComponent.js +1 -1
- package/lib/module/games/fruit-ninja/components/FruitComponent.js.map +1 -0
- package/lib/module/games/fruit-ninja/components/GameArea.js +215 -0
- package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/GameBackground.js +250 -304
- package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/ScoreBoard.js +17 -47
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/fruit-ninja/components/index.js +7 -0
- package/lib/module/games/fruit-ninja/components/index.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunner.js +184 -169
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
- package/lib/module/games/maze-runner/MazeRunnerConstants.js +100 -0
- package/lib/module/games/maze-runner/MazeRunnerConstants.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunnerService.js +37 -14
- package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -1
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +5 -4
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -1
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js +20 -15
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -1
- package/lib/module/games/maze-runner/components/GameBackground.js +151 -192
- package/lib/module/games/maze-runner/components/GameBackground.js.map +1 -1
- package/lib/module/games/maze-runner/components/ScoreBoard.js +15 -25
- package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/maze-runner/components/WallComponent.js +3 -2
- package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -1
- package/lib/module/games/maze-runner/components/index.js +0 -2
- package/lib/module/games/maze-runner/components/index.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +294 -0
- package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js +113 -0
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetService.js +132 -0
- package/lib/module/games/popit-fidget/PopitFidgetService.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetStore.js +163 -0
- package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -0
- package/lib/module/games/popit-fidget/components/BubbleComponent.js +198 -0
- package/lib/module/games/popit-fidget/components/BubbleComponent.js.map +1 -0
- package/lib/module/games/popit-fidget/components/FidgetGrid.js +165 -0
- package/lib/module/games/popit-fidget/components/FidgetGrid.js.map +1 -0
- package/lib/module/games/popit-fidget/components/GameBackground.js +177 -0
- package/lib/module/games/popit-fidget/components/GameBackground.js.map +1 -0
- package/lib/module/games/popit-fidget/components/ScoreBoard.js +75 -0
- package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/popit-fidget/components/index.js +7 -0
- package/lib/module/games/popit-fidget/components/index.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighter.js +169 -0
- package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighterConstants.js +108 -0
- package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -0
- package/lib/module/games/{space-traveller/SpaceTravellerService.js → space-fighter/SpaceFighterService.js} +48 -21
- package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighterStore.js +195 -0
- package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/AsteroidComponent.js +7 -5
- package/lib/module/games/space-fighter/components/AsteroidComponent.js.map +1 -0
- package/lib/module/games/space-fighter/components/GameArea.js +295 -0
- package/lib/module/games/space-fighter/components/GameArea.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/GameBackground.js +10 -65
- package/lib/module/games/space-fighter/components/GameBackground.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/ScoreBoard.js +20 -26
- package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/Spacecraft3D.js +72 -111
- package/lib/module/games/space-fighter/components/Spacecraft3D.js.map +1 -0
- package/lib/module/games/space-fighter/components/SpacecraftPath.js +52 -0
- package/lib/module/games/space-fighter/components/SpacecraftPath.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/index.js +0 -4
- package/lib/module/games/space-fighter/components/index.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMole.js +263 -0
- package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +115 -0
- package/lib/module/games/whack-a-mole/WhackAMoleConstants.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMoleService.js +120 -0
- package/lib/module/games/whack-a-mole/WhackAMoleService.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMoleStore.js +172 -0
- package/lib/module/games/whack-a-mole/WhackAMoleStore.js.map +1 -0
- package/lib/module/games/{cat-popper → whack-a-mole}/components/GameBackground.js +31 -91
- package/lib/module/games/whack-a-mole/components/GameBackground.js.map +1 -0
- package/lib/module/games/whack-a-mole/components/GameGrid.js +97 -0
- package/lib/module/games/whack-a-mole/components/GameGrid.js.map +1 -0
- package/lib/module/games/{cat-popper → whack-a-mole}/components/GameHole.js +67 -54
- package/lib/module/games/whack-a-mole/components/GameHole.js.map +1 -0
- package/lib/module/games/{cat-popper/components/CatCharacter.js → whack-a-mole/components/MoleCharacter.js} +75 -115
- package/lib/module/games/whack-a-mole/components/MoleCharacter.js.map +1 -0
- package/lib/module/games/{cat-popper → whack-a-mole}/components/ScoreBoard.js +13 -17
- package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/{cat-popper → whack-a-mole}/components/index.js +1 -3
- package/lib/module/games/whack-a-mole/components/index.js.map +1 -0
- package/lib/module/index.js +4 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/GamesConstants.js +41 -519
- package/lib/module/services/GamesConstants.js.map +1 -1
- package/lib/module/services/GamesService.js +35 -23
- package/lib/module/services/GamesService.js.map +1 -1
- package/lib/module/services/HapticsService.js +77 -0
- package/lib/module/services/HapticsService.js.map +1 -0
- package/lib/module/services/SoundsService.js +171 -0
- package/lib/module/services/SoundsService.js.map +1 -0
- package/lib/module/shared/helpers/AnimationFrame.js +120 -0
- package/lib/module/shared/helpers/AnimationFrame.js.map +1 -0
- package/lib/module/shared/helpers/AnimationTracker.js +89 -0
- package/lib/module/shared/helpers/AnimationTracker.js.map +1 -0
- package/lib/module/shared/helpers/ErrorHandler.js +269 -0
- package/lib/module/shared/helpers/ErrorHandler.js.map +1 -0
- package/lib/module/shared/helpers/GameControlButton.js +219 -0
- package/lib/module/shared/helpers/GameControlButton.js.map +1 -0
- package/lib/module/{games/balloon-blaster/components → shared/helpers}/GameOverModal.js +25 -17
- package/lib/module/shared/helpers/GameOverModal.js.map +1 -0
- package/lib/module/shared/helpers/GameSettingsModal.js +287 -0
- package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -0
- package/lib/module/shared/helpers/ParticleBlast.js +133 -0
- package/lib/module/shared/helpers/ParticleBlast.js.map +1 -0
- package/lib/module/shared/helpers/ResponsiveScoreBoard.js +81 -0
- package/lib/module/shared/helpers/ResponsiveScoreBoard.js.map +1 -0
- package/lib/module/shared/helpers/index.js +12 -0
- package/lib/module/shared/helpers/index.js.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +2 -14
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +144 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts +12 -2
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +1 -15
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -1
- 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 +1 -7
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +0 -4
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +4 -0
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts +112 -0
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/{fruit-slicer/FruitSlicerService.d.ts → fruit-ninja/FruitNinjaService.d.ts} +13 -5
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts.map +1 -0
- package/lib/typescript/src/games/{fruit-slicer/FruitSlicerStore.d.ts → fruit-ninja/FruitNinjaStore.d.ts} +13 -4
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts.map +1 -0
- package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/FruitComponent.d.ts +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/FruitComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts +3 -0
- package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +3 -0
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/index.d.ts +5 -0
- package/lib/typescript/src/games/fruit-ninja/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +2 -16
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts +41 -0
- package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +4 -2
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts +2 -1
- package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/index.d.ts +0 -2
- package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +5 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts +45 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts +33 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +36 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts +12 -0
- package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/FidgetGrid.d.ts +12 -0
- package/lib/typescript/src/games/popit-fidget/components/FidgetGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts +9 -0
- package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +8 -0
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/index.d.ts +5 -0
- package/lib/typescript/src/games/popit-fidget/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +4 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts +71 -0
- package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller/SpaceTravellerService.d.ts → space-fighter/SpaceFighterService.d.ts} +7 -4
- package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller/SpaceTravellerStore.d.ts → space-fighter/SpaceFighterStore.d.ts} +12 -4
- package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts +8 -0
- package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts +3 -0
- package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +3 -0
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller → space-fighter}/components/Spacecraft3D.d.ts +1 -1
- package/lib/typescript/src/games/space-fighter/components/Spacecraft3D.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/SpacecraftPath.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller → space-fighter}/components/index.d.ts +0 -4
- package/lib/typescript/src/games/space-fighter/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +4 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts +79 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleService.d.ts +33 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleService.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts +41 -0
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/GameGrid.d.ts +2 -2
- package/lib/typescript/src/games/whack-a-mole/components/GameGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/GameHole.d.ts +3 -2
- package/lib/typescript/src/games/whack-a-mole/components/GameHole.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/MoleCharacter.d.ts +7 -0
- package/lib/typescript/src/games/whack-a-mole/components/MoleCharacter.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/whack-a-mole/components/index.d.ts +6 -0
- package/lib/typescript/src/games/whack-a-mole/components/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesConstants.d.ts +61 -340
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesService.d.ts +21 -3
- package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
- package/lib/typescript/src/services/HapticsService.d.ts +16 -0
- package/lib/typescript/src/services/HapticsService.d.ts.map +1 -0
- package/lib/typescript/src/services/SoundsService.d.ts +154 -0
- package/lib/typescript/src/services/SoundsService.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts +41 -0
- package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts +45 -0
- package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts +124 -0
- package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/GameControlButton.d.ts +17 -0
- package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +1 -0
- package/lib/typescript/src/{games/cat-popper/components → shared/helpers}/GameOverModal.d.ts +5 -0
- package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts +9 -0
- package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts +12 -0
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts +42 -0
- package/lib/typescript/src/shared/helpers/ResponsiveScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/index.d.ts +13 -0
- package/lib/typescript/src/shared/helpers/index.d.ts.map +1 -0
- package/package.json +9 -6
- package/lib/module/games/balloon-blaster/components/GameControls.js +0 -229
- package/lib/module/games/balloon-blaster/components/GameControls.js.map +0 -1
- package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +0 -1
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js +0 -52
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +0 -1
- package/lib/module/games/balloon-blaster/components/SliceTrail.js +0 -58
- package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +0 -1
- package/lib/module/games/cat-popper/CatPopper.js +0 -230
- package/lib/module/games/cat-popper/CatPopper.js.map +0 -1
- package/lib/module/games/cat-popper/CatPopperService.js +0 -100
- package/lib/module/games/cat-popper/CatPopperService.js.map +0 -1
- package/lib/module/games/cat-popper/CatPopperStore.js +0 -113
- package/lib/module/games/cat-popper/CatPopperStore.js.map +0 -1
- package/lib/module/games/cat-popper/components/CatCharacter.js.map +0 -1
- package/lib/module/games/cat-popper/components/GameBackground.js.map +0 -1
- package/lib/module/games/cat-popper/components/GameControls.js +0 -230
- package/lib/module/games/cat-popper/components/GameControls.js.map +0 -1
- package/lib/module/games/cat-popper/components/GameGrid.js +0 -66
- package/lib/module/games/cat-popper/components/GameGrid.js.map +0 -1
- package/lib/module/games/cat-popper/components/GameHole.js.map +0 -1
- package/lib/module/games/cat-popper/components/GameOverModal.js +0 -131
- package/lib/module/games/cat-popper/components/GameOverModal.js.map +0 -1
- package/lib/module/games/cat-popper/components/ScoreBoard.js.map +0 -1
- package/lib/module/games/cat-popper/components/index.js.map +0 -1
- package/lib/module/games/fruit-slicer/FruitSlicer.js +0 -411
- package/lib/module/games/fruit-slicer/FruitSlicer.js.map +0 -1
- package/lib/module/games/fruit-slicer/FruitSlicerService.js.map +0 -1
- package/lib/module/games/fruit-slicer/FruitSlicerStore.js +0 -156
- package/lib/module/games/fruit-slicer/FruitSlicerStore.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/FruitComponent.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/GameArea.js +0 -50
- package/lib/module/games/fruit-slicer/components/GameArea.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/GameBackground.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/GameControls.js +0 -230
- package/lib/module/games/fruit-slicer/components/GameControls.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/GameOverModal.js +0 -189
- package/lib/module/games/fruit-slicer/components/GameOverModal.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/ParticleSystem.js +0 -52
- package/lib/module/games/fruit-slicer/components/ParticleSystem.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/ScoreBoard.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/SliceTrail.js +0 -58
- package/lib/module/games/fruit-slicer/components/SliceTrail.js.map +0 -1
- package/lib/module/games/fruit-slicer/components/index.js +0 -11
- package/lib/module/games/fruit-slicer/components/index.js.map +0 -1
- package/lib/module/games/maze-runner/components/GameControls.js +0 -129
- package/lib/module/games/maze-runner/components/GameControls.js.map +0 -1
- package/lib/module/games/maze-runner/components/GameOverModal.js +0 -134
- package/lib/module/games/maze-runner/components/GameOverModal.js.map +0 -1
- package/lib/module/games/space-traveller/SpaceTraveller.js +0 -393
- package/lib/module/games/space-traveller/SpaceTraveller.js.map +0 -1
- package/lib/module/games/space-traveller/SpaceTravellerService.js.map +0 -1
- package/lib/module/games/space-traveller/SpaceTravellerStore.js +0 -139
- package/lib/module/games/space-traveller/SpaceTravellerStore.js.map +0 -1
- package/lib/module/games/space-traveller/components/AsteroidComponent.js.map +0 -1
- package/lib/module/games/space-traveller/components/GameArea.js +0 -75
- package/lib/module/games/space-traveller/components/GameArea.js.map +0 -1
- package/lib/module/games/space-traveller/components/GameBackground.js.map +0 -1
- package/lib/module/games/space-traveller/components/GameControls.js +0 -177
- package/lib/module/games/space-traveller/components/GameControls.js.map +0 -1
- package/lib/module/games/space-traveller/components/GameOverModal.js +0 -182
- package/lib/module/games/space-traveller/components/GameOverModal.js.map +0 -1
- package/lib/module/games/space-traveller/components/ParticleComponent.js +0 -34
- package/lib/module/games/space-traveller/components/ParticleComponent.js.map +0 -1
- package/lib/module/games/space-traveller/components/ScoreBoard.js.map +0 -1
- package/lib/module/games/space-traveller/components/SettingsModal.js +0 -222
- package/lib/module/games/space-traveller/components/SettingsModal.js.map +0 -1
- package/lib/module/games/space-traveller/components/Spacecraft3D.js.map +0 -1
- package/lib/module/games/space-traveller/components/SpacecraftPath.js +0 -37
- package/lib/module/games/space-traveller/components/SpacecraftPath.js.map +0 -1
- package/lib/module/games/space-traveller/components/index.js.map +0 -1
- package/lib/module/shared/settings/GameSettings.js +0 -295
- package/lib/module/shared/settings/GameSettings.js.map +0 -1
- package/lib/module/shared/settings/SettingsService.js +0 -119
- package/lib/module/shared/settings/SettingsService.js.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts +0 -10
- package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +0 -8
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +0 -11
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/CatPopper.d.ts +0 -13
- package/lib/typescript/src/games/cat-popper/CatPopper.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts +0 -32
- package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts +0 -21
- package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts +0 -7
- package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts +0 -10
- package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts.map +0 -1
- package/lib/typescript/src/games/cat-popper/components/index.d.ts +0 -8
- package/lib/typescript/src/games/cat-popper/components/index.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts +0 -16
- package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts +0 -17
- package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts +0 -10
- package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts +0 -8
- package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts +0 -9
- package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts +0 -11
- package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-slicer/components/index.d.ts +0 -9
- package/lib/typescript/src/games/fruit-slicer/components/index.d.ts.map +0 -1
- package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts +0 -10
- package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts.map +0 -1
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +0 -11
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts +0 -17
- package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts +0 -9
- package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts +0 -17
- package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts +0 -10
- package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts +0 -8
- package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts +0 -8
- package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts +0 -9
- package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts.map +0 -1
- package/lib/typescript/src/games/space-traveller/components/index.d.ts.map +0 -1
- package/lib/typescript/src/shared/settings/GameSettings.d.ts +0 -36
- package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +0 -1
- package/lib/typescript/src/shared/settings/SettingsService.d.ts +0 -32
- package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +0 -1
- /package/lib/typescript/src/games/{cat-popper → fruit-ninja}/components/GameBackground.d.ts +0 -0
- /package/lib/typescript/src/games/{fruit-slicer → space-fighter}/components/GameBackground.d.ts +0 -0
- /package/lib/typescript/src/games/{space-traveller → space-fighter}/components/SpacecraftPath.d.ts +0 -0
- /package/lib/typescript/src/games/{space-traveller → whack-a-mole}/components/GameBackground.d.ts +0 -0
- /package/lib/typescript/src/games/{cat-popper → whack-a-mole}/components/ScoreBoard.d.ts +0 -0
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useCallback, useMemo } from 'react';
|
|
4
4
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
|
-
import { useSharedValue, useAnimatedStyle, withSpring, withSequence, withTiming, interpolate, Extrapolation } from 'react-native-reanimated';
|
|
6
|
-
import Animated from 'react-native-reanimated';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withSpring, withSequence, withTiming, interpolate, Extrapolation } from 'react-native-reanimated';
|
|
7
6
|
import { Canvas as SkiaCanvas, Circle, Group } from '@shopify/react-native-skia';
|
|
8
|
-
import { GAME_CONFIG, COLORS } from "../
|
|
9
|
-
import {
|
|
7
|
+
import { GAME_CONFIG, COLORS } from "../WhackAMoleService.js";
|
|
8
|
+
import { MoleCharacter } from "./MoleCharacter.js";
|
|
10
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const GameHole = ({
|
|
10
|
+
export const GameHole = /*#__PURE__*/React.memo(({
|
|
12
11
|
hole,
|
|
13
|
-
|
|
12
|
+
moleAnimation,
|
|
14
13
|
hitAnimation,
|
|
15
|
-
onPress
|
|
14
|
+
onPress,
|
|
15
|
+
holeSize = GAME_CONFIG.HOLE_SIZE
|
|
16
16
|
}) => {
|
|
17
17
|
// Enhanced animation values for whack effect
|
|
18
18
|
const whackScale = useSharedValue(1);
|
|
19
19
|
const whackRotation = useSharedValue(0);
|
|
20
20
|
const whackBounce = useSharedValue(0);
|
|
21
|
-
const catStyle = useAnimatedStyle(() => {
|
|
22
|
-
// Cat emerges from deep inside the hole
|
|
23
|
-
const translateY = interpolate(catAnimation.value, [0, 0.3, 1], [GAME_CONFIG.HOLE_SIZE * 0.3, GAME_CONFIG.HOLE_SIZE * 0.1, -GAME_CONFIG.HOLE_SIZE * 0.05], Extrapolation.CLAMP);
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
// Memoize animation constants to prevent recalculation
|
|
23
|
+
const animationConstants = useMemo(() => ({
|
|
24
|
+
translateYRange: [holeSize * 0.3, holeSize * 0.1, -holeSize * 0.05],
|
|
25
|
+
scaleRange: [0.3, 0.8, 1],
|
|
26
|
+
maxTranslateY: -holeSize * 0.1
|
|
27
|
+
}), [holeSize]);
|
|
28
|
+
const moleStyle = useAnimatedStyle(() => {
|
|
29
|
+
// Mole emerges from deep inside the hole
|
|
30
|
+
const translateY = interpolate(moleAnimation.value, [0, 0.3, 1], animationConstants.translateYRange, Extrapolation.CLAMP);
|
|
27
31
|
|
|
28
|
-
//
|
|
32
|
+
// Mole grows as it emerges from the hole
|
|
33
|
+
const emergenceScale = interpolate(moleAnimation.value, [0, 0.4, 1], animationConstants.scaleRange, Extrapolation.CLAMP);
|
|
34
|
+
|
|
35
|
+
// Constrained bounce - keep mole within hole area
|
|
29
36
|
const bounceY = whackBounce.value * -8;
|
|
30
|
-
const finalTranslateY = Math.max(translateY + bounceY,
|
|
37
|
+
const finalTranslateY = Math.max(translateY + bounceY, animationConstants.maxTranslateY);
|
|
31
38
|
return {
|
|
32
39
|
transform: [{
|
|
33
40
|
translateY: finalTranslateY
|
|
@@ -36,9 +43,9 @@ export const GameHole = ({
|
|
|
36
43
|
}, {
|
|
37
44
|
rotate: `${whackRotation.value}deg`
|
|
38
45
|
}],
|
|
39
|
-
opacity:
|
|
46
|
+
opacity: moleAnimation.value
|
|
40
47
|
};
|
|
41
|
-
});
|
|
48
|
+
}, [animationConstants]);
|
|
42
49
|
const hitStyle = useAnimatedStyle(() => {
|
|
43
50
|
const scale = 1 + hitAnimation.value * 0.5;
|
|
44
51
|
return {
|
|
@@ -49,10 +56,28 @@ export const GameHole = ({
|
|
|
49
56
|
};
|
|
50
57
|
});
|
|
51
58
|
|
|
52
|
-
//
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
// Memoize style calculations to prevent re-computation on every render
|
|
60
|
+
const holeContainerStyle = useMemo(() => [styles.holeContainer, {
|
|
61
|
+
width: holeSize,
|
|
62
|
+
height: holeSize
|
|
63
|
+
}], [holeSize]);
|
|
64
|
+
const holeStyle = useMemo(() => [styles.hole, {
|
|
65
|
+
width: holeSize * 0.8,
|
|
66
|
+
height: holeSize * 0.8
|
|
67
|
+
}], [holeSize]);
|
|
68
|
+
const hitEffectContainerStyle = useMemo(() => [styles.hitEffectContainer, {
|
|
69
|
+
width: holeSize,
|
|
70
|
+
height: holeSize
|
|
71
|
+
}], [holeSize]);
|
|
72
|
+
const moleContainerStyle = useMemo(() => [styles.moleContainer, {
|
|
73
|
+
bottom: holeSize * 0.1,
|
|
74
|
+
zIndex: 10
|
|
75
|
+
}], [holeSize]);
|
|
76
|
+
|
|
77
|
+
// Optimized hit handler with memoized hole state check
|
|
78
|
+
const handlePress = useCallback(() => {
|
|
79
|
+
// Only trigger whack animation if mole is active (optimized check)
|
|
80
|
+
if (hole.isActive || moleAnimation.value > 0) {
|
|
56
81
|
// Whack animation sequence - constrained to hole area
|
|
57
82
|
whackScale.value = withSequence(withSpring(1.3, {
|
|
58
83
|
damping: 8,
|
|
@@ -80,9 +105,9 @@ export const GameHole = ({
|
|
|
80
105
|
stiffness: 300
|
|
81
106
|
}));
|
|
82
107
|
|
|
83
|
-
// Delay hit effect to let
|
|
108
|
+
// Delay hit effect to let mole animation show first
|
|
84
109
|
setTimeout(() => {
|
|
85
|
-
// Trigger hit effect after
|
|
110
|
+
// Trigger hit effect after mole starts reacting
|
|
86
111
|
onPress(hole.id);
|
|
87
112
|
}, 150);
|
|
88
113
|
|
|
@@ -93,57 +118,45 @@ export const GameHole = ({
|
|
|
93
118
|
whackBounce.value = 0;
|
|
94
119
|
}, 800);
|
|
95
120
|
} else {
|
|
96
|
-
// No
|
|
121
|
+
// No mole present, just trigger normal hit
|
|
97
122
|
onPress(hole.id);
|
|
98
123
|
}
|
|
99
|
-
};
|
|
124
|
+
}, [hole.id, hole.isActive, onPress, moleAnimation]);
|
|
100
125
|
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
101
|
-
style:
|
|
102
|
-
width: GAME_CONFIG.HOLE_SIZE,
|
|
103
|
-
height: GAME_CONFIG.HOLE_SIZE
|
|
104
|
-
}],
|
|
126
|
+
style: holeContainerStyle,
|
|
105
127
|
onPress: handlePress,
|
|
106
128
|
activeOpacity: 0.8,
|
|
107
129
|
children: [/*#__PURE__*/_jsx(View, {
|
|
108
|
-
style:
|
|
109
|
-
width: GAME_CONFIG.HOLE_SIZE * 0.8,
|
|
110
|
-
height: GAME_CONFIG.HOLE_SIZE * 0.8
|
|
111
|
-
}]
|
|
130
|
+
style: holeStyle
|
|
112
131
|
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
113
|
-
style: [
|
|
114
|
-
width: GAME_CONFIG.HOLE_SIZE,
|
|
115
|
-
height: GAME_CONFIG.HOLE_SIZE
|
|
116
|
-
}, hitStyle],
|
|
132
|
+
style: [hitEffectContainerStyle, hitStyle],
|
|
117
133
|
children: /*#__PURE__*/_jsx(SkiaCanvas, {
|
|
118
134
|
style: {
|
|
119
|
-
width:
|
|
120
|
-
height:
|
|
135
|
+
width: holeSize,
|
|
136
|
+
height: holeSize
|
|
121
137
|
},
|
|
122
138
|
children: /*#__PURE__*/_jsxs(Group, {
|
|
123
139
|
children: [/*#__PURE__*/_jsx(Circle, {
|
|
124
|
-
cx:
|
|
125
|
-
cy:
|
|
126
|
-
r:
|
|
140
|
+
cx: holeSize / 2,
|
|
141
|
+
cy: holeSize / 2,
|
|
142
|
+
r: holeSize * 0.25,
|
|
127
143
|
color: COLORS.HIT_EFFECT_OUTER
|
|
128
144
|
}), /*#__PURE__*/_jsx(Circle, {
|
|
129
|
-
cx:
|
|
130
|
-
cy:
|
|
131
|
-
r:
|
|
145
|
+
cx: holeSize / 2,
|
|
146
|
+
cy: holeSize / 2,
|
|
147
|
+
r: holeSize * 0.17,
|
|
132
148
|
color: COLORS.HIT_EFFECT_INNER
|
|
133
149
|
})]
|
|
134
150
|
})
|
|
135
151
|
})
|
|
136
|
-
}),
|
|
137
|
-
style: [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}, catStyle],
|
|
141
|
-
children: /*#__PURE__*/_jsx(CatCharacter, {
|
|
142
|
-
size: GAME_CONFIG.HOLE_SIZE * 0.6
|
|
152
|
+
}), hole.isActive && /*#__PURE__*/_jsx(Animated.View, {
|
|
153
|
+
style: [moleContainerStyle, moleStyle],
|
|
154
|
+
children: /*#__PURE__*/_jsx(MoleCharacter, {
|
|
155
|
+
size: holeSize * 0.6
|
|
143
156
|
})
|
|
144
157
|
})]
|
|
145
158
|
});
|
|
146
|
-
};
|
|
159
|
+
});
|
|
147
160
|
const styles = StyleSheet.create({
|
|
148
161
|
holeContainer: {
|
|
149
162
|
justifyContent: 'center',
|
|
@@ -164,7 +177,7 @@ const styles = StyleSheet.create({
|
|
|
164
177
|
shadowRadius: 3.84,
|
|
165
178
|
elevation: 5
|
|
166
179
|
},
|
|
167
|
-
|
|
180
|
+
moleContainer: {
|
|
168
181
|
position: 'absolute',
|
|
169
182
|
justifyContent: 'center',
|
|
170
183
|
alignItems: 'center',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","View","TouchableOpacity","StyleSheet","Animated","useSharedValue","useAnimatedStyle","withSpring","withSequence","withTiming","interpolate","Extrapolation","Canvas","SkiaCanvas","Circle","Group","GAME_CONFIG","COLORS","MoleCharacter","jsx","_jsx","jsxs","_jsxs","GameHole","memo","hole","moleAnimation","hitAnimation","onPress","holeSize","HOLE_SIZE","whackScale","whackRotation","whackBounce","animationConstants","translateYRange","scaleRange","maxTranslateY","moleStyle","translateY","value","CLAMP","emergenceScale","bounceY","finalTranslateY","Math","max","transform","scale","rotate","opacity","hitStyle","holeContainerStyle","styles","holeContainer","width","height","holeStyle","hitEffectContainerStyle","hitEffectContainer","moleContainerStyle","moleContainer","bottom","zIndex","handlePress","isActive","damping","stiffness","duration","setTimeout","id","style","activeOpacity","children","cx","cy","r","color","HIT_EFFECT_OUTER","HIT_EFFECT_INNER","size","create","justifyContent","alignItems","position","backgroundColor","borderWidth","borderColor","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/GameHole.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACjE,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,YAAY,EACZC,UAAU,EACVC,WAAW,EACXC,aAAa,QAER,yBAAyB;AAChC,SAASC,M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;IACpBW,aAAa,EAAE,MAAM;IACrB/B,MAAM,EAAE,CAAC;IACT8B,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,61 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
import { useSharedValue, useAnimatedStyle, withRepeat, withTiming, withSequence } from 'react-native-reanimated';
|
|
6
|
-
import Animated from 'react-native-reanimated';
|
|
7
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export const
|
|
6
|
+
export const MoleCharacter = /*#__PURE__*/React.memo(({
|
|
9
7
|
size
|
|
10
8
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
const styles = createStyles(
|
|
9
|
+
const moleSize = size * 0.8;
|
|
10
|
+
const styles = createStyles(moleSize);
|
|
13
11
|
|
|
14
|
-
//
|
|
15
|
-
const breathingScale = useSharedValue(1);
|
|
16
|
-
const blinkOpacity = useSharedValue(1);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
// Gentle breathing effect
|
|
19
|
-
breathingScale.value = withRepeat(withSequence(withTiming(1.02, {
|
|
20
|
-
duration: 1500
|
|
21
|
-
}), withTiming(1, {
|
|
22
|
-
duration: 1500
|
|
23
|
-
})), -1, false);
|
|
12
|
+
// Static mole - no animations for better performance
|
|
24
13
|
|
|
25
|
-
|
|
26
|
-
const startBlinking = () => {
|
|
27
|
-
blinkOpacity.value = withSequence(withTiming(0.1, {
|
|
28
|
-
duration: 100
|
|
29
|
-
}), withTiming(1, {
|
|
30
|
-
duration: 100
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// Random blinking every 2-4 seconds
|
|
35
|
-
const blinkInterval = setInterval(() => {
|
|
36
|
-
if (Math.random() > 0.3) {
|
|
37
|
-
startBlinking();
|
|
38
|
-
}
|
|
39
|
-
}, 2000 + Math.random() * 2000);
|
|
40
|
-
return () => clearInterval(blinkInterval);
|
|
41
|
-
}, []);
|
|
42
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
43
|
-
return {
|
|
44
|
-
transform: [{
|
|
45
|
-
scale: breathingScale.value
|
|
46
|
-
}]
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
const eyeStyle = useAnimatedStyle(() => {
|
|
50
|
-
return {
|
|
51
|
-
opacity: blinkOpacity.value
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
14
|
+
return /*#__PURE__*/_jsx(View, {
|
|
55
15
|
style: [styles.container, {
|
|
56
16
|
width: size,
|
|
57
17
|
height: size
|
|
58
|
-
}
|
|
18
|
+
}],
|
|
59
19
|
children: /*#__PURE__*/_jsxs(View, {
|
|
60
20
|
style: styles.body,
|
|
61
21
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
@@ -68,13 +28,13 @@ export const CatCharacter = ({
|
|
|
68
28
|
style: styles.leftInnerEar
|
|
69
29
|
}), /*#__PURE__*/_jsx(View, {
|
|
70
30
|
style: styles.rightInnerEar
|
|
71
|
-
}), /*#__PURE__*/_jsx(
|
|
72
|
-
style:
|
|
31
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
32
|
+
style: styles.leftEye,
|
|
73
33
|
children: /*#__PURE__*/_jsx(View, {
|
|
74
34
|
style: styles.eyeHighlight
|
|
75
35
|
})
|
|
76
|
-
}), /*#__PURE__*/_jsx(
|
|
77
|
-
style:
|
|
36
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
37
|
+
style: styles.rightEye,
|
|
78
38
|
children: /*#__PURE__*/_jsx(View, {
|
|
79
39
|
style: styles.eyeHighlight
|
|
80
40
|
})
|
|
@@ -99,17 +59,17 @@ export const CatCharacter = ({
|
|
|
99
59
|
})]
|
|
100
60
|
})
|
|
101
61
|
});
|
|
102
|
-
};
|
|
103
|
-
const createStyles =
|
|
62
|
+
});
|
|
63
|
+
const createStyles = moleSize => StyleSheet.create({
|
|
104
64
|
container: {
|
|
105
65
|
justifyContent: 'center',
|
|
106
66
|
alignItems: 'center'
|
|
107
67
|
},
|
|
108
68
|
body: {
|
|
109
|
-
width:
|
|
110
|
-
height:
|
|
69
|
+
width: moleSize,
|
|
70
|
+
height: moleSize * 0.9,
|
|
111
71
|
backgroundColor: '#FF8C42',
|
|
112
|
-
borderRadius:
|
|
72
|
+
borderRadius: moleSize * 0.4,
|
|
113
73
|
justifyContent: 'center',
|
|
114
74
|
alignItems: 'center',
|
|
115
75
|
shadowColor: '#000',
|
|
@@ -122,111 +82,111 @@ const createStyles = catSize => StyleSheet.create({
|
|
|
122
82
|
elevation: 5
|
|
123
83
|
},
|
|
124
84
|
head: {
|
|
125
|
-
width:
|
|
126
|
-
height:
|
|
85
|
+
width: moleSize * 0.8,
|
|
86
|
+
height: moleSize * 0.7,
|
|
127
87
|
backgroundColor: '#FFA366',
|
|
128
|
-
borderRadius:
|
|
88
|
+
borderRadius: moleSize * 0.35,
|
|
129
89
|
position: 'relative',
|
|
130
90
|
justifyContent: 'center',
|
|
131
91
|
alignItems: 'center',
|
|
132
|
-
marginTop: -
|
|
92
|
+
marginTop: -moleSize * 0.1
|
|
133
93
|
},
|
|
134
94
|
leftEar: {
|
|
135
95
|
position: 'absolute',
|
|
136
|
-
top: -
|
|
137
|
-
left:
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
96
|
+
top: -moleSize * 0.15,
|
|
97
|
+
left: moleSize * 0.15,
|
|
98
|
+
width: moleSize * 0.25,
|
|
99
|
+
height: moleSize * 0.25,
|
|
140
100
|
backgroundColor: '#FF8C42',
|
|
141
|
-
borderRadius:
|
|
101
|
+
borderRadius: moleSize * 0.125,
|
|
142
102
|
transform: [{
|
|
143
103
|
rotate: '-30deg'
|
|
144
104
|
}]
|
|
145
105
|
},
|
|
146
106
|
rightEar: {
|
|
147
107
|
position: 'absolute',
|
|
148
|
-
top: -
|
|
149
|
-
right:
|
|
150
|
-
width:
|
|
151
|
-
height:
|
|
108
|
+
top: -moleSize * 0.15,
|
|
109
|
+
right: moleSize * 0.15,
|
|
110
|
+
width: moleSize * 0.25,
|
|
111
|
+
height: moleSize * 0.25,
|
|
152
112
|
backgroundColor: '#FF8C42',
|
|
153
|
-
borderRadius:
|
|
113
|
+
borderRadius: moleSize * 0.125,
|
|
154
114
|
transform: [{
|
|
155
115
|
rotate: '30deg'
|
|
156
116
|
}]
|
|
157
117
|
},
|
|
158
118
|
leftInnerEar: {
|
|
159
119
|
position: 'absolute',
|
|
160
|
-
top: -
|
|
161
|
-
left:
|
|
162
|
-
width:
|
|
163
|
-
height:
|
|
120
|
+
top: -moleSize * 0.12,
|
|
121
|
+
left: moleSize * 0.18,
|
|
122
|
+
width: moleSize * 0.15,
|
|
123
|
+
height: moleSize * 0.15,
|
|
164
124
|
backgroundColor: '#FF6B1A',
|
|
165
|
-
borderRadius:
|
|
125
|
+
borderRadius: moleSize * 0.075,
|
|
166
126
|
transform: [{
|
|
167
127
|
rotate: '-30deg'
|
|
168
128
|
}]
|
|
169
129
|
},
|
|
170
130
|
rightInnerEar: {
|
|
171
131
|
position: 'absolute',
|
|
172
|
-
top: -
|
|
173
|
-
right:
|
|
174
|
-
width:
|
|
175
|
-
height:
|
|
132
|
+
top: -moleSize * 0.12,
|
|
133
|
+
right: moleSize * 0.18,
|
|
134
|
+
width: moleSize * 0.15,
|
|
135
|
+
height: moleSize * 0.15,
|
|
176
136
|
backgroundColor: '#FF6B1A',
|
|
177
|
-
borderRadius:
|
|
137
|
+
borderRadius: moleSize * 0.075,
|
|
178
138
|
transform: [{
|
|
179
139
|
rotate: '30deg'
|
|
180
140
|
}]
|
|
181
141
|
},
|
|
182
142
|
leftEye: {
|
|
183
143
|
position: 'absolute',
|
|
184
|
-
top:
|
|
185
|
-
left:
|
|
186
|
-
width:
|
|
187
|
-
height:
|
|
144
|
+
top: moleSize * 0.15,
|
|
145
|
+
left: moleSize * 0.2,
|
|
146
|
+
width: moleSize * 0.12,
|
|
147
|
+
height: moleSize * 0.15,
|
|
188
148
|
backgroundColor: '#000000',
|
|
189
|
-
borderRadius:
|
|
149
|
+
borderRadius: moleSize * 0.075,
|
|
190
150
|
justifyContent: 'center',
|
|
191
151
|
alignItems: 'center'
|
|
192
152
|
},
|
|
193
153
|
rightEye: {
|
|
194
154
|
position: 'absolute',
|
|
195
|
-
top:
|
|
196
|
-
right:
|
|
197
|
-
width:
|
|
198
|
-
height:
|
|
155
|
+
top: moleSize * 0.15,
|
|
156
|
+
right: moleSize * 0.2,
|
|
157
|
+
width: moleSize * 0.12,
|
|
158
|
+
height: moleSize * 0.15,
|
|
199
159
|
backgroundColor: '#000000',
|
|
200
|
-
borderRadius:
|
|
160
|
+
borderRadius: moleSize * 0.075,
|
|
201
161
|
justifyContent: 'center',
|
|
202
162
|
alignItems: 'center'
|
|
203
163
|
},
|
|
204
164
|
eyeHighlight: {
|
|
205
|
-
width:
|
|
206
|
-
height:
|
|
165
|
+
width: moleSize * 0.04,
|
|
166
|
+
height: moleSize * 0.06,
|
|
207
167
|
backgroundColor: '#FFFFFF',
|
|
208
|
-
borderRadius:
|
|
168
|
+
borderRadius: moleSize * 0.02
|
|
209
169
|
},
|
|
210
170
|
nose: {
|
|
211
171
|
position: 'absolute',
|
|
212
|
-
top:
|
|
213
|
-
width:
|
|
214
|
-
height:
|
|
172
|
+
top: moleSize * 0.28,
|
|
173
|
+
width: moleSize * 0.08,
|
|
174
|
+
height: moleSize * 0.06,
|
|
215
175
|
backgroundColor: '#FF1493',
|
|
216
|
-
borderRadius:
|
|
176
|
+
borderRadius: moleSize * 0.04
|
|
217
177
|
},
|
|
218
178
|
mouth: {
|
|
219
179
|
position: 'absolute',
|
|
220
|
-
top:
|
|
221
|
-
width:
|
|
222
|
-
height:
|
|
180
|
+
top: moleSize * 0.35,
|
|
181
|
+
width: moleSize * 0.2,
|
|
182
|
+
height: moleSize * 0.1,
|
|
223
183
|
justifyContent: 'center',
|
|
224
184
|
alignItems: 'center'
|
|
225
185
|
},
|
|
226
186
|
leftMouth: {
|
|
227
187
|
position: 'absolute',
|
|
228
188
|
left: 0,
|
|
229
|
-
width:
|
|
189
|
+
width: moleSize * 0.08,
|
|
230
190
|
height: 2,
|
|
231
191
|
backgroundColor: '#000000',
|
|
232
192
|
borderRadius: 1,
|
|
@@ -237,7 +197,7 @@ const createStyles = catSize => StyleSheet.create({
|
|
|
237
197
|
rightMouth: {
|
|
238
198
|
position: 'absolute',
|
|
239
199
|
right: 0,
|
|
240
|
-
width:
|
|
200
|
+
width: moleSize * 0.08,
|
|
241
201
|
height: 2,
|
|
242
202
|
backgroundColor: '#000000',
|
|
243
203
|
borderRadius: 1,
|
|
@@ -247,35 +207,35 @@ const createStyles = catSize => StyleSheet.create({
|
|
|
247
207
|
},
|
|
248
208
|
leftWhisker1: {
|
|
249
209
|
position: 'absolute',
|
|
250
|
-
top:
|
|
251
|
-
left: -
|
|
252
|
-
width:
|
|
210
|
+
top: moleSize * 0.35,
|
|
211
|
+
left: -moleSize * 0.15,
|
|
212
|
+
width: moleSize * 0.2,
|
|
253
213
|
height: 1,
|
|
254
214
|
backgroundColor: '#000000'
|
|
255
215
|
},
|
|
256
216
|
leftWhisker2: {
|
|
257
217
|
position: 'absolute',
|
|
258
|
-
top:
|
|
259
|
-
left: -
|
|
260
|
-
width:
|
|
218
|
+
top: moleSize * 0.4,
|
|
219
|
+
left: -moleSize * 0.15,
|
|
220
|
+
width: moleSize * 0.18,
|
|
261
221
|
height: 1,
|
|
262
222
|
backgroundColor: '#000000'
|
|
263
223
|
},
|
|
264
224
|
rightWhisker1: {
|
|
265
225
|
position: 'absolute',
|
|
266
|
-
top:
|
|
267
|
-
right: -
|
|
268
|
-
width:
|
|
226
|
+
top: moleSize * 0.35,
|
|
227
|
+
right: -moleSize * 0.15,
|
|
228
|
+
width: moleSize * 0.2,
|
|
269
229
|
height: 1,
|
|
270
230
|
backgroundColor: '#000000'
|
|
271
231
|
},
|
|
272
232
|
rightWhisker2: {
|
|
273
233
|
position: 'absolute',
|
|
274
|
-
top:
|
|
275
|
-
right: -
|
|
276
|
-
width:
|
|
234
|
+
top: moleSize * 0.4,
|
|
235
|
+
right: -moleSize * 0.15,
|
|
236
|
+
width: moleSize * 0.18,
|
|
277
237
|
height: 1,
|
|
278
238
|
backgroundColor: '#000000'
|
|
279
239
|
}
|
|
280
240
|
});
|
|
281
|
-
//# sourceMappingURL=
|
|
241
|
+
//# sourceMappingURL=MoleCharacter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","jsx","_jsx","jsxs","_jsxs","MoleCharacter","memo","size","moleSize","styles","createStyles","style","container","width","height","children","body","head","leftEar","rightEar","leftInnerEar","rightInnerEar","leftEye","eyeHighlight","rightEye","nose","mouth","leftMouth","rightMouth","leftWhisker1","leftWhisker2","rightWhisker1","rightWhisker2","create","justifyContent","alignItems","backgroundColor","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","position","marginTop","top","left","transform","rotate","right"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/MoleCharacter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMhD,OAAO,MAAMC,aAA2C,gBAAGP,KAAK,CAACQ,IAAI,CAAC,CAAC;EAAEC;AAAK,CAAC,KAAK;EAClF,MAAMC,QAAQ,GAAGD,IAAI,GAAG,GAAG;EAC3B,MAAME,MAAM,GAAGC,YAAY,CAACF,QAAQ,CAAC;;EAErC;;EAEA,oBACEN,IAAA,CAACH,IAAI;IAACY,KAAK,EAAE,CAACF,MAAM,CAACG,SAAS,EAAE;MAAEC,KAAK,EAAEN,IAAI;MAAEO,MAAM,EAAEP;IAAK,CAAC,CAAE;IAAAQ,QAAA,eA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AAQ,GAAG,GAAG;IACrBM,MAAM,EAAE,CAAC;IACTsB,eAAe,EAAE;EACnB,CAAC;EACDJ,aAAa,EAAE;IACbW,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAErC,QAAQ,GAAG,GAAG;IACnByC,KAAK,EAAE,CAACzC,QAAQ,GAAG,IAAI;IACvBK,KAAK,EAAEL,QAAQ,GAAG,IAAI;IACtBM,MAAM,EAAE,CAAC;IACTsB,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, Text, StyleSheet } from 'react-native';
|
|
5
|
+
import { RESPONSIVE_SCOREBOARD_CONTAINER, RESPONSIVE_SCOREBOARD_FONTS } from "../../../shared/helpers/index.js";
|
|
5
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
export const ScoreBoard = ({
|
|
7
|
+
export const ScoreBoard = /*#__PURE__*/React.memo(({
|
|
7
8
|
score,
|
|
8
9
|
timeLeft
|
|
9
10
|
}) => {
|
|
@@ -29,9 +30,15 @@ export const ScoreBoard = ({
|
|
|
29
30
|
})]
|
|
30
31
|
})]
|
|
31
32
|
});
|
|
32
|
-
};
|
|
33
|
+
});
|
|
33
34
|
const styles = StyleSheet.create({
|
|
34
35
|
scoreBoard: {
|
|
36
|
+
...RESPONSIVE_SCOREBOARD_CONTAINER,
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
top: 0,
|
|
39
|
+
left: 20,
|
|
40
|
+
right: 20,
|
|
41
|
+
zIndex: 100,
|
|
35
42
|
flexDirection: 'row',
|
|
36
43
|
justifyContent: 'space-between',
|
|
37
44
|
alignItems: 'center',
|
|
@@ -39,37 +46,26 @@ const styles = StyleSheet.create({
|
|
|
39
46
|
// Semi-transparent green
|
|
40
47
|
borderRadius: 16,
|
|
41
48
|
padding: 20,
|
|
42
|
-
marginBottom: 20,
|
|
43
49
|
borderWidth: 1,
|
|
44
|
-
borderColor: 'rgba(255, 255, 255, 0.3)'
|
|
45
|
-
// Subtle white border
|
|
46
|
-
shadowColor: '#000',
|
|
47
|
-
shadowOffset: {
|
|
48
|
-
width: 0,
|
|
49
|
-
height: 2
|
|
50
|
-
},
|
|
51
|
-
shadowOpacity: 0.15,
|
|
52
|
-
// Reduced shadow opacity
|
|
53
|
-
shadowRadius: 3.84,
|
|
54
|
-
elevation: 3 // Reduced elevation
|
|
50
|
+
borderColor: 'rgba(255, 255, 255, 0.3)' // Subtle white border
|
|
55
51
|
},
|
|
56
52
|
scoreSection: {
|
|
57
53
|
alignItems: 'center',
|
|
58
54
|
flex: 1
|
|
59
55
|
},
|
|
60
56
|
scoreLabel: {
|
|
61
|
-
fontSize:
|
|
57
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.labelSize,
|
|
62
58
|
fontWeight: 'bold',
|
|
63
59
|
color: '#ffffff',
|
|
64
60
|
marginBottom: 4
|
|
65
61
|
},
|
|
66
62
|
scoreValue: {
|
|
67
|
-
fontSize:
|
|
63
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.valueSize,
|
|
68
64
|
fontWeight: 'bold',
|
|
69
65
|
color: '#92400e'
|
|
70
66
|
},
|
|
71
67
|
timeValue: {
|
|
72
|
-
fontSize:
|
|
68
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.timeSize,
|
|
73
69
|
fontWeight: 'bold',
|
|
74
70
|
color: '#92400e'
|
|
75
71
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","RESPONSIVE_SCOREBOARD_CONTAINER","RESPONSIVE_SCOREBOARD_FONTS","jsx","_jsx","jsxs","_jsxs","ScoreBoard","memo","score","timeLeft","style","styles","scoreBoard","children","scoreSection","scoreLabel","scoreValue","timeValue","create","position","top","left","right","zIndex","flexDirection","justifyContent","alignItems","backgroundColor","borderRadius","padding","borderWidth","borderColor","flex","fontSize","labelSize","fontWeight","color","marginBottom","valueSize","timeSize"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,+BAA+B,EAAEC,2BAA2B,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOvG,OAAO,MAAMC,UAAqC,gBAAGV,KAAK,CAACW,IAAI,CAAC,CAAC;EAAEC,KAAK;EAAEC;AAAS,CAAC,KAAK;EACvF,oBACEJ,KAAA,CAACR,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,UAAW;IAAAC,QAAA,gBAC7BR,KAAA,CAACR,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACG,YAAa;MAAAD,QAAA,gBAC/BV,IAAA,CAACL,IAAI;QAACY,KAAK,EAAEC,MAAM,CAACI,UAAW;QAAAF,QAAA,EAAC;MAAK,CAAM,CAAC,eAC5CV,IAAA,CAACL,IAAI;QAACY,KAAK,EAAEC,MAAM,CAACK,UAAW;QAAAH,QAAA,EAAEL;MAAK,CAAO,CAAC;IAAA,CAC1C,CAAC,eACPH,KAAA,CAACR,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACG,YAAa;MAAAD,QAAA,gBAC/BV,IAAA,CAACL,IAAI;QAACY,KAAK,EAAEC,MAAM,CAACI,UAAW;QAAAF,QAAA,EAAC;MAAI,CAAM,CAAC,eAC3CV,IAAA,CAACL,IAAI;QAACY,KAAK,EAAEC,MAAM,CAACM,SAAU;QAAAJ,QAAA,EAAEJ;MAAQ,CAAO,CAAC;IAAA,CAC5C,CAAC;EAAA,CACH,CAAC;AAEX,CAAC,CAAC;AAEF,MAAME,MAAM,GAAGZ,UAAU,CAACmB,MAAM,CAAC;EAC/BN,UAAU,EAAE;IACV,GAAGZ,+BAA+B;IAClCmB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,GAAG;IACXC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,wBAAwB;IAAE;IAC3CC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAE,EAAE;IACXC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,0BAA0B,CAAE;EAC3C,CAAC;EACDjB,YAAY,EAAE;IACZY,UAAU,EAAE,QAAQ;IACpBM,IAAI,EAAE;EACR,CAAC;EACDjB,UAAU,EAAE;IACVkB,QAAQ,EAAEhC,2BAA2B,CAACiC,SAAS;IAC/CC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS;IAChBC,YAAY,EAAE;EAChB,CAAC;EACDrB,UAAU,EAAE;IACViB,QAAQ,EAAEhC,2BAA2B,CAACqC,SAAS;IAC/CH,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT,CAAC;EACDnB,SAAS,EAAE;IACTgB,QAAQ,EAAEhC,2BAA2B,CAACsC,QAAQ;IAC9CJ,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
export { ScoreBoard } from "./ScoreBoard.js";
|
|
4
4
|
export { GameHole } from "./GameHole.js";
|
|
5
5
|
export { GameGrid } from "./GameGrid.js";
|
|
6
|
-
export {
|
|
7
|
-
export { GameOverModal } from "./GameOverModal.js";
|
|
8
|
-
export { CatCharacter } from "./CatCharacter.js";
|
|
6
|
+
export { MoleCharacter } from "./MoleCharacter.js";
|
|
9
7
|
export { GameBackground } from "./GameBackground.js";
|
|
10
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ScoreBoard","GameHole","GameGrid","MoleCharacter","GameBackground"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/index.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAc;AACzC,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,cAAc,QAAQ,qBAAkB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
// Games
|
|
4
4
|
export * from "./games/balloon-blaster/BalloonBlaster.js";
|
|
5
|
-
export * from "./games/
|
|
5
|
+
export * from "./games/popit-fidget/PopitFidget.js";
|
|
6
|
+
export * from "./games/whack-a-mole/WhackAMole.js";
|
|
7
|
+
export * from "./games/fruit-ninja/FruitNinja.js";
|
|
6
8
|
export * from "./games/maze-runner/MazeRunner.js";
|
|
7
|
-
export * from "./games/space-
|
|
8
|
-
export * from "./games/cat-popper/CatPopper.js";
|
|
9
|
+
export * from "./games/space-fighter/SpaceFighter.js";
|
|
9
10
|
|
|
10
11
|
// Services
|
|
11
12
|
export * from "./services/GamesService.js";
|