react-native-games 0.3.0 → 0.4.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 +45 -32
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +160 -75
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +183 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js +152 -55
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +108 -92
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js +48 -65
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/GameArea.js +7 -2
- 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/ParticleSystem.js +9 -6
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js +8 -16
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/index.js +0 -1
- package/lib/module/games/balloon-blaster/components/index.js.map +1 -1
- package/lib/module/games/{fruit-slicer/FruitSlicer.js → fruit-ninja/FruitNinja.js} +68 -54
- package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -0
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +151 -0
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -0
- package/lib/module/games/{fruit-slicer/FruitSlicerService.js → fruit-ninja/FruitNinjaService.js} +13 -12
- package/lib/module/games/fruit-ninja/FruitNinjaService.js.map +1 -0
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js +166 -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.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/GameBackground.js +198 -169
- package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -0
- package/lib/module/games/fruit-ninja/components/GameOverModal.js.map +1 -0
- package/lib/module/games/fruit-ninja/components/ParticleSystem.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/ScoreBoard.js +8 -17
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/SliceTrail.js +1 -1
- package/lib/module/games/fruit-ninja/components/SliceTrail.js.map +1 -0
- package/lib/module/games/{fruit-slicer → fruit-ninja}/components/index.js +0 -1
- package/lib/module/games/fruit-ninja/components/index.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunner.js +109 -91
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
- package/lib/module/games/maze-runner/MazeRunnerConstants.js +105 -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/EnhancedGameArea.js +5 -9
- 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 +8 -23
- package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/maze-runner/components/index.js +0 -1
- package/lib/module/games/maze-runner/components/index.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +293 -0
- package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js +116 -0
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetService.js +191 -0
- package/lib/module/games/popit-fidget/PopitFidgetService.js.map +1 -0
- package/lib/module/games/popit-fidget/PopitFidgetStore.js +190 -0
- package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -0
- package/lib/module/games/popit-fidget/components/BubbleComponent.js +196 -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 +174 -0
- package/lib/module/games/popit-fidget/components/GameBackground.js.map +1 -0
- package/lib/module/games/popit-fidget/components/GameOverModal.js +132 -0
- package/lib/module/games/popit-fidget/components/GameOverModal.js.map +1 -0
- package/lib/module/games/popit-fidget/components/ParticleSystem.js +89 -0
- package/lib/module/games/popit-fidget/components/ParticleSystem.js.map +1 -0
- package/lib/module/games/popit-fidget/components/ScoreBoard.js +68 -0
- package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/popit-fidget/components/index.js +9 -0
- package/lib/module/games/popit-fidget/components/index.js.map +1 -0
- package/lib/module/games/{space-traveller/SpaceTraveller.js → space-fighter/SpaceFighter.js} +94 -70
- package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighterConstants.js +110 -0
- package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -0
- package/lib/module/games/{space-traveller/SpaceTravellerService.js → space-fighter/SpaceFighterService.js} +18 -10
- package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -0
- package/lib/module/games/space-fighter/SpaceFighterStore.js +143 -0
- package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -0
- package/lib/module/games/space-fighter/components/AsteroidComponent.js.map +1 -0
- package/lib/module/games/space-fighter/components/GameArea.js.map +1 -0
- package/lib/module/games/space-fighter/components/GameBackground.js.map +1 -0
- package/lib/module/games/space-fighter/components/GameOverModal.js.map +1 -0
- package/lib/module/games/space-fighter/components/ParticleComponent.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/ScoreBoard.js +11 -19
- package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/space-fighter/components/SettingsModal.js.map +1 -0
- package/lib/module/games/space-fighter/components/Spacecraft3D.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/SpacecraftPath.js +1 -1
- package/lib/module/games/space-fighter/components/SpacecraftPath.js.map +1 -0
- package/lib/module/games/{space-traveller → space-fighter}/components/index.js +0 -1
- package/lib/module/games/space-fighter/components/index.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMole.js +273 -0
- package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -0
- package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +117 -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 +159 -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 → whack-a-mole}/components/GameOverModal.js +2 -2
- package/lib/module/games/whack-a-mole/components/GameOverModal.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 +8 -16
- 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 -2
- 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 +36 -506
- package/lib/module/services/GamesConstants.js.map +1 -1
- package/lib/module/services/GamesService.js +22 -14
- 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/{games/balloon-blaster/components/GameControls.js → shared/helpers/GameControlButton.js} +39 -58
- package/lib/module/shared/helpers/GameControlButton.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 +5 -0
- package/lib/module/shared/helpers/index.js.map +1 -0
- package/lib/module/shared/settings/SettingsService.js +18 -12
- package/lib/module/shared/settings/SettingsService.js.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +143 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +3 -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.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/ParticleSystem.d.ts.map +1 -1
- 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 -1
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +16 -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} +4 -4
- 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} +12 -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-slicer → fruit-ninja}/components/GameArea.d.ts +1 -1
- 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/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/ParticleSystem.d.ts +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/ParticleSystem.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-ninja/components/SliceTrail.d.ts.map +1 -0
- package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/index.d.ts +0 -1
- package/lib/typescript/src/games/fruit-ninja/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +1 -9
- 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/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/index.d.ts +0 -1
- package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts +11 -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 +54 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +40 -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/GameOverModal.d.ts +9 -0
- package/lib/typescript/src/games/popit-fidget/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.d.ts +9 -0
- package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.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 +7 -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 +9 -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-traveller → space-fighter}/components/AsteroidComponent.d.ts +1 -1
- package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller → space-fighter}/components/GameArea.d.ts +1 -1
- 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/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/{space-traveller → space-fighter}/components/ParticleComponent.d.ts +1 -1
- package/lib/typescript/src/games/space-fighter/components/ParticleComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/space-fighter/components/SettingsModal.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 -1
- package/lib/typescript/src/games/space-fighter/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/{cat-popper/CatPopper.d.ts → whack-a-mole/WhackAMole.d.ts} +4 -4
- 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/{fruit-slicer → whack-a-mole}/components/GameOverModal.d.ts.map +1 -1
- 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/{cat-popper → whack-a-mole}/components/index.d.ts +1 -2
- 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 +30 -318
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesService.d.ts +1 -0
- 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/GameControlButton.d.ts +17 -0
- package/lib/typescript/src/shared/helpers/GameControlButton.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 +4 -0
- package/lib/typescript/src/shared/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/shared/settings/SettingsService.d.ts +2 -1
- package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +1 -1
- package/package.json +9 -6
- package/lib/module/games/balloon-blaster/components/GameControls.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.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.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.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.map +0 -1
- 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.map +0 -1
- 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/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.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.map +0 -1
- 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.map +0 -1
- package/lib/module/games/space-traveller/components/Spacecraft3D.js.map +0 -1
- 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/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/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.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.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/ParticleSystem.d.ts.map +0 -1
- 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.map +0 -1
- 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/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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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/module/games/{fruit-slicer → fruit-ninja}/components/GameArea.js +0 -0
- /package/lib/module/games/{fruit-slicer → fruit-ninja}/components/GameOverModal.js +0 -0
- /package/lib/module/games/{fruit-slicer → fruit-ninja}/components/ParticleSystem.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/AsteroidComponent.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/GameArea.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/GameBackground.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/GameOverModal.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/ParticleComponent.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/SettingsModal.js +0 -0
- /package/lib/module/games/{space-traveller → space-fighter}/components/Spacecraft3D.js +0 -0
- /package/lib/typescript/src/games/{cat-popper → fruit-ninja}/components/GameBackground.d.ts +0 -0
- /package/lib/typescript/src/games/{cat-popper → fruit-ninja}/components/GameOverModal.d.ts +0 -0
- /package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/ScoreBoard.d.ts +0 -0
- /package/lib/typescript/src/games/{fruit-slicer → fruit-ninja}/components/SliceTrail.d.ts +0 -0
- /package/lib/typescript/src/games/{fruit-slicer → space-fighter}/components/GameBackground.d.ts +0 -0
- /package/lib/typescript/src/games/{fruit-slicer → space-fighter}/components/GameOverModal.d.ts +0 -0
- /package/lib/typescript/src/games/{cat-popper → space-fighter}/components/ScoreBoard.d.ts +0 -0
- /package/lib/typescript/src/games/{space-traveller → space-fighter}/components/SettingsModal.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/{space-traveller → whack-a-mole}/components/GameOverModal.d.ts +0 -0
- /package/lib/typescript/src/games/{space-traveller → whack-a-mole}/components/ScoreBoard.d.ts +0 -0
|
@@ -1,216 +1,175 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { Dimensions } from 'react-native';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { Canvas, LinearGradient, Rect, Circle, vec } from '@shopify/react-native-skia';
|
|
6
|
+
import { MAZE_ADVENTURE_COLORS } from "../MazeRunnerConstants.js";
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
width: screenWidth,
|
|
11
|
-
height: screenHeight
|
|
12
|
-
} = Dimensions.get('window');
|
|
13
8
|
export const GameBackground = ({
|
|
14
|
-
|
|
9
|
+
width,
|
|
10
|
+
height
|
|
15
11
|
}) => {
|
|
16
|
-
//
|
|
17
|
-
const
|
|
18
|
-
const particleFloat = useSharedValue(0);
|
|
19
|
-
const glowPulse = useSharedValue(0);
|
|
20
|
-
React.useEffect(() => {
|
|
21
|
-
// Maze pattern floating animation
|
|
22
|
-
mazeFloat.value = withRepeat(withSequence(withTiming(1, {
|
|
23
|
-
duration: 4000
|
|
24
|
-
}), withTiming(0, {
|
|
25
|
-
duration: 4000
|
|
26
|
-
})), -1, true);
|
|
27
|
-
|
|
28
|
-
// Particle floating animation
|
|
29
|
-
particleFloat.value = withRepeat(withTiming(1, {
|
|
30
|
-
duration: 6000
|
|
31
|
-
}), -1, true);
|
|
32
|
-
|
|
33
|
-
// Glow pulse animation
|
|
34
|
-
glowPulse.value = withRepeat(withSequence(withTiming(1, {
|
|
35
|
-
duration: 2000
|
|
36
|
-
}), withTiming(0.3, {
|
|
37
|
-
duration: 2000
|
|
38
|
-
})), -1, true);
|
|
39
|
-
}, []);
|
|
40
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
41
|
-
return {
|
|
42
|
-
position: 'absolute',
|
|
43
|
-
top: 0,
|
|
44
|
-
left: 0,
|
|
45
|
-
right: 0,
|
|
46
|
-
bottom: 0,
|
|
47
|
-
zIndex: -1
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
const renderMazePattern = React.useMemo(() => {
|
|
51
|
-
const gridSize = 20;
|
|
52
|
-
const cellSize = screenWidth / gridSize;
|
|
12
|
+
// Generate static colorful floating adventure decorations
|
|
13
|
+
const generateFloatingElements = React.useMemo(() => {
|
|
53
14
|
const elements = [];
|
|
15
|
+
const elementCount = 12; // Reduced count for better performance
|
|
54
16
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const x = i * cellSize;
|
|
59
|
-
const y = j * cellSize;
|
|
60
|
-
// Use deterministic values based on position instead of Math.random()
|
|
61
|
-
const seed = (i * 31 + j * 17) % 100;
|
|
62
|
-
const opacity = seed > 70 ? 0.1 : 0.05;
|
|
17
|
+
for (let i = 0; i < elementCount; i++) {
|
|
18
|
+
const baseX = width / elementCount * i;
|
|
19
|
+
const baseY = height / elementCount * i;
|
|
63
20
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
color: `rgba(139, 69, 19, ${opacity})`
|
|
71
|
-
}, `v-${i}-${j}`));
|
|
72
|
-
}
|
|
21
|
+
// Add subtle positioning variations for natural look
|
|
22
|
+
const x = baseX + Math.sin(i * 0.5) * 40 + i % 3 * 20;
|
|
23
|
+
const y = baseY + Math.cos(i * 0.7) * 50 + i % 4 * 25;
|
|
24
|
+
const radius = 10 + i % 8 + Math.sin(i) * 5;
|
|
25
|
+
const colorIndex = i % MAZE_ADVENTURE_COLORS.length;
|
|
26
|
+
const opacity = 0.25 + Math.sin(i * 0.3) * 0.1; // Subtle opacity variation
|
|
73
27
|
|
|
74
|
-
// Horizontal lines - deterministic based on position
|
|
75
|
-
if ((i * 2 + j) % 5 > 2) {
|
|
76
|
-
elements.push(/*#__PURE__*/_jsx(Path, {
|
|
77
|
-
path: `M ${x} ${y} L ${x + cellSize} ${y}`,
|
|
78
|
-
style: "stroke",
|
|
79
|
-
strokeWidth: 1,
|
|
80
|
-
color: `rgba(139, 69, 19, ${opacity})`
|
|
81
|
-
}, `h-${i}-${j}`));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return elements;
|
|
86
|
-
}, []);
|
|
87
|
-
const renderFloatingElements = React.useMemo(() => {
|
|
88
|
-
const elements = [];
|
|
89
|
-
|
|
90
|
-
// Floating maze pieces with deterministic positioning
|
|
91
|
-
for (let i = 0; i < 8; i++) {
|
|
92
|
-
const seed = i * 37; // Use index-based seed for consistent positioning
|
|
93
|
-
const x = screenWidth / 8 * i + seed % 50;
|
|
94
|
-
const y = screenHeight / 4 * (i % 4) + seed * 2 % 100;
|
|
95
|
-
const size = 15 + seed * 3 % 10;
|
|
96
28
|
elements.push(/*#__PURE__*/_jsx(Circle, {
|
|
97
|
-
cx: x,
|
|
98
|
-
cy: y,
|
|
99
|
-
r:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
children: /*#__PURE__*/_jsx(Shadow, {
|
|
103
|
-
dx: 1,
|
|
104
|
-
dy: 1,
|
|
105
|
-
blur: 3,
|
|
106
|
-
color: "rgba(0,0,0,0.2)"
|
|
107
|
-
})
|
|
108
|
-
}, `maze-piece-${i}`));
|
|
29
|
+
cx: Math.max(radius, Math.min(width - radius, x)),
|
|
30
|
+
cy: Math.max(radius, Math.min(height - radius, y)),
|
|
31
|
+
r: radius,
|
|
32
|
+
color: `${MAZE_ADVENTURE_COLORS[colorIndex]}${Math.floor(opacity * 255).toString(16).padStart(2, '0')}`
|
|
33
|
+
}, `floating-element-${i}`));
|
|
109
34
|
}
|
|
110
|
-
|
|
111
|
-
// Corner accent pieces
|
|
112
|
-
const cornerSize = 40;
|
|
113
|
-
elements.push(
|
|
114
|
-
/*#__PURE__*/
|
|
115
|
-
// Top-left corner
|
|
116
|
-
_jsx(Path, {
|
|
117
|
-
path: `M 20 20 L ${cornerSize + 20} 20 L ${cornerSize + 20} 40 L 40 40 L 40 ${cornerSize + 20} L 20 ${cornerSize + 20} Z`,
|
|
118
|
-
color: "rgba(139, 69, 19, 0.2)",
|
|
119
|
-
opacity: 0.6,
|
|
120
|
-
children: /*#__PURE__*/_jsx(Shadow, {
|
|
121
|
-
dx: 2,
|
|
122
|
-
dy: 2,
|
|
123
|
-
blur: 4,
|
|
124
|
-
color: "rgba(0,0,0,0.1)"
|
|
125
|
-
})
|
|
126
|
-
}, "corner-tl"),
|
|
127
|
-
/*#__PURE__*/
|
|
128
|
-
// Top-right corner
|
|
129
|
-
_jsx(Path, {
|
|
130
|
-
path: `M ${screenWidth - cornerSize - 20} 20 L ${screenWidth - 20} 20 L ${screenWidth - 20} ${cornerSize + 20} L ${screenWidth - 40} ${cornerSize + 20} L ${screenWidth - 40} 40 L ${screenWidth - cornerSize - 20} 40 Z`,
|
|
131
|
-
color: "rgba(139, 69, 19, 0.2)",
|
|
132
|
-
opacity: 0.6,
|
|
133
|
-
children: /*#__PURE__*/_jsx(Shadow, {
|
|
134
|
-
dx: -2,
|
|
135
|
-
dy: 2,
|
|
136
|
-
blur: 4,
|
|
137
|
-
color: "rgba(0,0,0,0.1)"
|
|
138
|
-
})
|
|
139
|
-
}, "corner-tr"),
|
|
140
|
-
/*#__PURE__*/
|
|
141
|
-
// Bottom-left corner
|
|
142
|
-
_jsx(Path, {
|
|
143
|
-
path: `M 20 ${screenHeight - cornerSize - 20} L 40 ${screenHeight - cornerSize - 20} L 40 ${screenHeight - 40} L ${cornerSize + 20} ${screenHeight - 40} L ${cornerSize + 20} ${screenHeight - 20} L 20 ${screenHeight - 20} Z`,
|
|
144
|
-
color: "rgba(139, 69, 19, 0.2)",
|
|
145
|
-
opacity: 0.6,
|
|
146
|
-
children: /*#__PURE__*/_jsx(Shadow, {
|
|
147
|
-
dx: 2,
|
|
148
|
-
dy: -2,
|
|
149
|
-
blur: 4,
|
|
150
|
-
color: "rgba(0,0,0,0.1)"
|
|
151
|
-
})
|
|
152
|
-
}, "corner-bl"),
|
|
153
|
-
/*#__PURE__*/
|
|
154
|
-
// Bottom-right corner
|
|
155
|
-
_jsx(Path, {
|
|
156
|
-
path: `M ${screenWidth - 40} ${screenHeight - cornerSize - 20} L ${screenWidth - 20} ${screenHeight - cornerSize - 20} L ${screenWidth - 20} ${screenHeight - 20} L ${screenWidth - cornerSize - 20} ${screenHeight - 20} L ${screenWidth - cornerSize - 20} ${screenHeight - 40} L ${screenWidth - 40} ${screenHeight - 40} Z`,
|
|
157
|
-
color: "rgba(139, 69, 19, 0.2)",
|
|
158
|
-
opacity: 0.6,
|
|
159
|
-
children: /*#__PURE__*/_jsx(Shadow, {
|
|
160
|
-
dx: -2,
|
|
161
|
-
dy: -2,
|
|
162
|
-
blur: 4,
|
|
163
|
-
color: "rgba(0,0,0,0.1)"
|
|
164
|
-
})
|
|
165
|
-
}, "corner-br"));
|
|
166
35
|
return elements;
|
|
167
|
-
}, []);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// Use deterministic values based on index
|
|
172
|
-
const seed = i * 43;
|
|
173
|
-
const x = seed % screenWidth;
|
|
174
|
-
const y = seed * 7 % screenHeight;
|
|
175
|
-
const size = 2 + seed * 3 % 3;
|
|
176
|
-
const opacity = 0.1 + seed * 5 % 20 / 100;
|
|
177
|
-
particles.push(/*#__PURE__*/_jsx(Circle, {
|
|
178
|
-
cx: x,
|
|
179
|
-
cy: y,
|
|
180
|
-
r: size,
|
|
181
|
-
color: `rgba(160, 82, 45, ${opacity})`
|
|
182
|
-
}, `particle-${i}`));
|
|
183
|
-
}
|
|
184
|
-
return particles;
|
|
185
|
-
}, []);
|
|
186
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
187
|
-
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
188
|
-
style: animatedStyle,
|
|
36
|
+
}, [width, height]);
|
|
37
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
38
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
39
|
+
style: StyleSheet.absoluteFillObject,
|
|
189
40
|
children: /*#__PURE__*/_jsxs(Canvas, {
|
|
190
41
|
style: {
|
|
191
|
-
width
|
|
192
|
-
height
|
|
42
|
+
width,
|
|
43
|
+
height
|
|
193
44
|
},
|
|
194
|
-
children: [/*#__PURE__*/_jsx(
|
|
195
|
-
|
|
45
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 0,
|
|
48
|
+
width: width,
|
|
49
|
+
height: height,
|
|
196
50
|
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
197
51
|
start: vec(0, 0),
|
|
198
|
-
end: vec(
|
|
199
|
-
colors: [
|
|
200
|
-
//
|
|
201
|
-
|
|
202
|
-
//
|
|
203
|
-
|
|
204
|
-
//
|
|
205
|
-
|
|
52
|
+
end: vec(width, height),
|
|
53
|
+
colors: [`${MAZE_ADVENTURE_COLORS[0]}40`,
|
|
54
|
+
// Vibrant coral red
|
|
55
|
+
`${MAZE_ADVENTURE_COLORS[2]}35`,
|
|
56
|
+
// Vibrant sky blue
|
|
57
|
+
`${MAZE_ADVENTURE_COLORS[4]}40`,
|
|
58
|
+
// Vibrant golden yellow
|
|
59
|
+
`${MAZE_ADVENTURE_COLORS[6]}35`,
|
|
60
|
+
// Vibrant seafoam
|
|
61
|
+
`${MAZE_ADVENTURE_COLORS[8]}40`,
|
|
62
|
+
// Vibrant lavender
|
|
63
|
+
`${MAZE_ADVENTURE_COLORS[10]}35`,
|
|
64
|
+
// Vibrant light green
|
|
65
|
+
`${MAZE_ADVENTURE_COLORS[12]}40`,
|
|
66
|
+
// Vibrant light purple
|
|
67
|
+
`${MAZE_ADVENTURE_COLORS[14]}35` // Vibrant cream
|
|
206
68
|
]
|
|
207
69
|
})
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
70
|
+
}), /*#__PURE__*/_jsx(Rect, {
|
|
71
|
+
x: 0,
|
|
72
|
+
y: 0,
|
|
73
|
+
width: width,
|
|
74
|
+
height: height,
|
|
75
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
76
|
+
start: vec(0, 0),
|
|
77
|
+
end: vec(width / 2, height / 2),
|
|
78
|
+
colors: [`${MAZE_ADVENTURE_COLORS[1]}25`,
|
|
79
|
+
// Vibrant teal
|
|
80
|
+
'transparent', `${MAZE_ADVENTURE_COLORS[5]}25`,
|
|
81
|
+
// Vibrant plum
|
|
82
|
+
'transparent', `${MAZE_ADVENTURE_COLORS[9]}25`,
|
|
83
|
+
// Vibrant light blue
|
|
84
|
+
'transparent', `${MAZE_ADVENTURE_COLORS[13]}25`,
|
|
85
|
+
// Vibrant pale green
|
|
86
|
+
'transparent']
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/_jsx(Rect, {
|
|
89
|
+
x: 0,
|
|
90
|
+
y: 0,
|
|
91
|
+
width: width,
|
|
92
|
+
height: height,
|
|
93
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
94
|
+
start: vec(width, 0),
|
|
95
|
+
end: vec(0, height),
|
|
96
|
+
colors: [`${MAZE_ADVENTURE_COLORS[3]}20`,
|
|
97
|
+
// Vibrant mint green
|
|
98
|
+
'transparent', `${MAZE_ADVENTURE_COLORS[7]}20`,
|
|
99
|
+
// Vibrant lemon
|
|
100
|
+
'transparent', `${MAZE_ADVENTURE_COLORS[11]}20`,
|
|
101
|
+
// Vibrant peach
|
|
102
|
+
'transparent']
|
|
103
|
+
})
|
|
104
|
+
}), generateFloatingElements, /*#__PURE__*/_jsx(Circle, {
|
|
105
|
+
cx: width * 0.1,
|
|
106
|
+
cy: height * 0.15,
|
|
107
|
+
r: 40,
|
|
108
|
+
color: `${MAZE_ADVENTURE_COLORS[0]}30` // Vibrant coral red
|
|
109
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
110
|
+
cx: width * 0.9,
|
|
111
|
+
cy: height * 0.85,
|
|
112
|
+
r: 35,
|
|
113
|
+
color: `${MAZE_ADVENTURE_COLORS[3]}30` // Vibrant mint green
|
|
114
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
115
|
+
cx: width * 0.85,
|
|
116
|
+
cy: height * 0.2,
|
|
117
|
+
r: 30,
|
|
118
|
+
color: `${MAZE_ADVENTURE_COLORS[8]}30` // Vibrant lavender
|
|
119
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
120
|
+
cx: width * 0.15,
|
|
121
|
+
cy: height * 0.8,
|
|
122
|
+
r: 45,
|
|
123
|
+
color: `${MAZE_ADVENTURE_COLORS[12]}30` // Vibrant light purple
|
|
124
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
125
|
+
cx: width * 0.5,
|
|
126
|
+
cy: height * 0.1,
|
|
127
|
+
r: 25,
|
|
128
|
+
color: `${MAZE_ADVENTURE_COLORS[14]}30` // Vibrant cream
|
|
129
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
130
|
+
cx: width * 0.2,
|
|
131
|
+
cy: height * 0.5,
|
|
132
|
+
r: 32,
|
|
133
|
+
color: `${MAZE_ADVENTURE_COLORS[6]}30` // Vibrant seafoam
|
|
134
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
135
|
+
cx: width * 0.8,
|
|
136
|
+
cy: height * 0.6,
|
|
137
|
+
r: 28,
|
|
138
|
+
color: `${MAZE_ADVENTURE_COLORS[10]}30` // Vibrant light green
|
|
139
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
140
|
+
cx: width * 0.6,
|
|
141
|
+
cy: height * 0.9,
|
|
142
|
+
r: 20,
|
|
143
|
+
color: `${MAZE_ADVENTURE_COLORS[1]}30` // Vibrant teal
|
|
144
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
145
|
+
cx: width * 0.3,
|
|
146
|
+
cy: height * 0.25,
|
|
147
|
+
r: 24,
|
|
148
|
+
color: `${MAZE_ADVENTURE_COLORS[4]}30` // Vibrant golden yellow
|
|
149
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
150
|
+
cx: width * 0.7,
|
|
151
|
+
cy: height * 0.35,
|
|
152
|
+
r: 26,
|
|
153
|
+
color: `${MAZE_ADVENTURE_COLORS[9]}30` // Vibrant light blue
|
|
154
|
+
}), Array.from({
|
|
155
|
+
length: Math.floor(width / 40)
|
|
156
|
+
}, (_, i) => /*#__PURE__*/_jsx(Rect, {
|
|
157
|
+
x: i * 40,
|
|
158
|
+
y: 0,
|
|
159
|
+
width: 1,
|
|
160
|
+
height: height,
|
|
161
|
+
color: "rgba(0, 0, 0, 0.02)"
|
|
162
|
+
}, `grid-v-${i}`)), Array.from({
|
|
163
|
+
length: Math.floor(height / 40)
|
|
164
|
+
}, (_, i) => /*#__PURE__*/_jsx(Rect, {
|
|
165
|
+
x: 0,
|
|
166
|
+
y: i * 40,
|
|
167
|
+
width: width,
|
|
168
|
+
height: 1,
|
|
169
|
+
color: "rgba(0, 0, 0, 0.02)"
|
|
170
|
+
}, `grid-h-${i}`))]
|
|
212
171
|
})
|
|
213
|
-
})
|
|
172
|
+
})
|
|
214
173
|
});
|
|
215
174
|
};
|
|
216
175
|
//# sourceMappingURL=GameBackground.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Canvas","LinearGradient","Rect","Circle","vec","MAZE_ADVENTURE_COLORS","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","GameBackground","width","height","generateFloatingElements","useMemo","elements","elementCount","i","baseX","baseY","x","Math","sin","y","cos","radius","colorIndex","length","opacity","push","cx","max","min","cy","r","color","floor","toString","padStart","children","style","absoluteFillObject","start","end","colors","Array","from","_"],"sourceRoot":"../../../../../src","sources":["games/maze-runner/components/GameBackground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,cAAc,EAAEC,IAAI,EAAEC,MAAM,EAAEC,GAAG,QAAQ,4BAA4B;AACtF,SAASC,qBAAqB,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAO/D,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAO,CAAC,KAAK;EAElF;EACA,MAAMC,wBAAwB,GAAGlB,KAAK,CAACmB,OAAO,CAAC,MAAM;IACnD,MAAMC,QAAQ,GAAG,EAAE;IACnB,MAAMC,YAAY,GAAG,EAAE,CAAC,CAAC;;IAEzB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,YAAY,EAAEC,CAAC,EAAE,EAAE;MACrC,MAAMC,KAAK,GAAIP,KAAK,GAAGK,YAAY,GAAIC,CAAC;MACxC,MAAME,KAAK,GAAIP,MAAM,GAAGI,YAAY,GAAIC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ALtB,UAAUlB,CAAC,EAMjB,CACF,CAAC;MAAA,CACM;IAAC,CACL;EAAC,CACP,CAAC;AAEP,CAAC","ignoreList":[]}
|
|
@@ -2,15 +2,11 @@
|
|
|
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
7
|
export const ScoreBoard = ({
|
|
7
8
|
gameState
|
|
8
9
|
}) => {
|
|
9
|
-
const formatTime = seconds => {
|
|
10
|
-
const mins = Math.floor(seconds / 60);
|
|
11
|
-
const secs = seconds % 60;
|
|
12
|
-
return `${mins}:${secs.toString().padStart(2, '0')}`;
|
|
13
|
-
};
|
|
14
10
|
return /*#__PURE__*/_jsxs(View, {
|
|
15
11
|
style: styles.scoreBoard,
|
|
16
12
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
@@ -29,51 +25,40 @@ export const ScoreBoard = ({
|
|
|
29
25
|
children: "Time"
|
|
30
26
|
}), /*#__PURE__*/_jsx(Text, {
|
|
31
27
|
style: styles.timeValue,
|
|
32
|
-
children:
|
|
28
|
+
children: gameState.timeElapsed
|
|
33
29
|
})]
|
|
34
30
|
})]
|
|
35
31
|
});
|
|
36
32
|
};
|
|
37
33
|
const styles = StyleSheet.create({
|
|
38
34
|
scoreBoard: {
|
|
35
|
+
...RESPONSIVE_SCOREBOARD_CONTAINER,
|
|
39
36
|
flexDirection: 'row',
|
|
40
37
|
justifyContent: 'space-between',
|
|
41
38
|
alignItems: 'center',
|
|
42
39
|
backgroundColor: 'rgba(139, 69, 19, 0.4)',
|
|
43
40
|
// Semi-transparent brown for maze theme
|
|
44
|
-
|
|
45
|
-
padding: 20,
|
|
46
|
-
margin: 20,
|
|
41
|
+
marginBottom: 20,
|
|
47
42
|
borderWidth: 1,
|
|
48
|
-
borderColor: 'rgba(255, 255, 255, 0.3)'
|
|
49
|
-
// Subtle white border
|
|
50
|
-
shadowColor: '#000',
|
|
51
|
-
shadowOffset: {
|
|
52
|
-
width: 0,
|
|
53
|
-
height: 2
|
|
54
|
-
},
|
|
55
|
-
shadowOpacity: 0.15,
|
|
56
|
-
// Reduced shadow opacity
|
|
57
|
-
shadowRadius: 3.84,
|
|
58
|
-
elevation: 3 // Reduced elevation
|
|
43
|
+
borderColor: 'rgba(255, 255, 255, 0.3)' // Subtle white border
|
|
59
44
|
},
|
|
60
45
|
scoreSection: {
|
|
61
46
|
alignItems: 'center',
|
|
62
47
|
flex: 1
|
|
63
48
|
},
|
|
64
49
|
scoreLabel: {
|
|
65
|
-
fontSize:
|
|
50
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.labelSize,
|
|
66
51
|
fontWeight: 'bold',
|
|
67
52
|
color: '#ffffff',
|
|
68
53
|
marginBottom: 4
|
|
69
54
|
},
|
|
70
55
|
scoreValue: {
|
|
71
|
-
fontSize:
|
|
56
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.valueSize,
|
|
72
57
|
fontWeight: 'bold',
|
|
73
58
|
color: '#92400e' // Brown color for score value
|
|
74
59
|
},
|
|
75
60
|
timeValue: {
|
|
76
|
-
fontSize:
|
|
61
|
+
fontSize: RESPONSIVE_SCOREBOARD_FONTS.timeSize,
|
|
77
62
|
fontWeight: 'bold',
|
|
78
63
|
color: '#92400e' // Brown color for time value
|
|
79
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","jsx","_jsx","jsxs","_jsxs","ScoreBoard","gameState","
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","RESPONSIVE_SCOREBOARD_CONTAINER","RESPONSIVE_SCOREBOARD_FONTS","jsx","_jsx","jsxs","_jsxs","ScoreBoard","gameState","style","styles","scoreBoard","children","scoreSection","scoreLabel","scoreValue","score","timeValue","timeElapsed","create","flexDirection","justifyContent","alignItems","backgroundColor","marginBottom","borderWidth","borderColor","flex","fontSize","labelSize","fontWeight","color","valueSize","timeSize"],"sourceRoot":"../../../../../src","sources":["games/maze-runner/components/ScoreBoard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,+BAA+B,EAAEC,2BAA2B,QAAQ,kCAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMvG,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EACpDC;AACF,CAAC,KAAK;EACJ,oBACEF,KAAA,CAACR,IAAI;IAACW,KAAK,EAAEC,MAAM,CAACC,UAAW;IAAAC,QAAA,gBAC7BN,KAAA,CAACR,IAAI;MAACW,KAAK,EAAEC,MAAM,CAACG,YAAa;MAAAD,QAAA,gBAC/BR,IAAA,CAACL,IAAI;QAACU,KAAK,EAAEC,MAAM,CAACI,UAAW;QAAAF,QAAA,EAAC;MAAK,CAAM,CAAC,eAC5CR,IAAA,CAACL,IAAI;QAACU,KAAK,EAAEC,MAAM,CAACK,UAAW;QAAAH,QAAA,EAAEJ,SAAS,CAACQ;MAAK,CAAO,CAAC;IAAA,CACpD,CAAC,eACPV,KAAA,CAACR,IAAI;MAACW,KAAK,EAAEC,MAAM,CAACG,YAAa;MAAAD,QAAA,gBAC/BR,IAAA,CAACL,IAAI;QAACU,KAAK,EAAEC,MAAM,CAACI,UAAW;QAAAF,QAAA,EAAC;MAAI,CAAM,CAAC,eAC3CR,IAAA,CAACL,IAAI;QAACU,KAAK,EAAEC,MAAM,CAACO,SAAU;QAAAL,QAAA,EAAEJ,SAAS,CAACU;MAAW,CAAO,CAAC;IAAA,CACzD,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMR,MAAM,GAAGV,UAAU,CAACmB,MAAM,CAAC;EAC/BR,UAAU,EAAE;IACV,GAAGV,+BAA+B;IAClCmB,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,wBAAwB;IAAE;IAC3CC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,0BAA0B,CAAE;EAC3C,CAAC;EACDb,YAAY,EAAE;IACZS,UAAU,EAAE,QAAQ;IACpBK,IAAI,EAAE;EACR,CAAC;EACDb,UAAU,EAAE;IACVc,QAAQ,EAAE1B,2BAA2B,CAAC2B,SAAS;IAC/CC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS;IAChBP,YAAY,EAAE;EAChB,CAAC;EACDT,UAAU,EAAE;IACVa,QAAQ,EAAE1B,2BAA2B,CAAC8B,SAAS;IAC/CF,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAE;EACpB,CAAC;EACDd,SAAS,EAAE;IACTW,QAAQ,EAAE1B,2BAA2B,CAAC+B,QAAQ;IAC9CH,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE,SAAS,CAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,5 @@ export { WallComponent } from "./WallComponent.js";
|
|
|
5
5
|
export { EnhancedGameArea } from "./EnhancedGameArea.js";
|
|
6
6
|
export { GameBackground } from "./GameBackground.js";
|
|
7
7
|
export { ScoreBoard } from "./ScoreBoard.js";
|
|
8
|
-
export { GameControls } from "./GameControls.js";
|
|
9
8
|
export { GameOverModal } from "./GameOverModal.js";
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EnhancedBallComponent","WallComponent","EnhancedGameArea","GameBackground","ScoreBoard","
|
|
1
|
+
{"version":3,"names":["EnhancedBallComponent","WallComponent","EnhancedGameArea","GameBackground","ScoreBoard","GameOverModal"],"sourceRoot":"../../../../../src","sources":["games/maze-runner/components/index.ts"],"mappings":";;AAAA,SAASA,qBAAqB,QAAQ,4BAAyB;AAC/D,SAASC,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,aAAa,QAAQ,oBAAiB","ignoreList":[]}
|