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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticleSystem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/ParticleSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0BxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0BhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceTrail.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/SliceTrail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,eAAe;IACvB,IAAI,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsBhD,CAAC"}
|
|
@@ -3,7 +3,6 @@ export { FruitComponent } from './FruitComponent';
|
|
|
3
3
|
export { SliceTrail } from './SliceTrail';
|
|
4
4
|
export { ParticleSystem } from './ParticleSystem';
|
|
5
5
|
export { GameArea } from './GameArea';
|
|
6
|
-
export { GameControls } from './GameControls';
|
|
7
6
|
export { GameOverModal } from './GameOverModal';
|
|
8
7
|
export { GameBackground } from './GameBackground';
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
gameDuration: number;
|
|
4
|
-
difficulty: 'easy' | 'medium' | 'hard';
|
|
5
|
-
soundEnabled: boolean;
|
|
6
|
-
hapticEnabled: boolean;
|
|
7
|
-
gridSize: number;
|
|
8
|
-
showHints: boolean;
|
|
9
|
-
}
|
|
2
|
+
import { type MazeRunnerSettings } from './MazeRunnerConstants';
|
|
10
3
|
export interface MazeRunnerProps {
|
|
11
4
|
settings?: Partial<MazeRunnerSettings>;
|
|
12
5
|
onSettingsChange?: (settings: MazeRunnerSettings) => void;
|
|
@@ -14,5 +7,4 @@ export interface MazeRunnerProps {
|
|
|
14
7
|
onToggleSettingsModal?: () => void;
|
|
15
8
|
}
|
|
16
9
|
export declare const MazeRunner: React.FC<MazeRunnerProps>;
|
|
17
|
-
export {};
|
|
18
10
|
//# sourceMappingURL=MazeRunner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MazeRunner.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MazeRunner.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAMjF,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+NhD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../shared/settings/GameSettings';
|
|
2
|
+
export interface MazeRunnerSettings {
|
|
3
|
+
gameDuration: number;
|
|
4
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
5
|
+
soundEnabled: boolean;
|
|
6
|
+
hapticEnabled: boolean;
|
|
7
|
+
gridSize: number;
|
|
8
|
+
showHints: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_MAZE_RUNNER_SETTINGS: MazeRunnerSettings;
|
|
11
|
+
export declare const MAZE_RUNNER_DIFFICULTY_CONFIG: {
|
|
12
|
+
readonly easy: {
|
|
13
|
+
readonly gridSize: 8;
|
|
14
|
+
readonly timeBonus: 1.5;
|
|
15
|
+
readonly scoreMultiplier: 1;
|
|
16
|
+
readonly hintAvailable: true;
|
|
17
|
+
readonly gameDuration: 60;
|
|
18
|
+
};
|
|
19
|
+
readonly medium: {
|
|
20
|
+
readonly gridSize: 10;
|
|
21
|
+
readonly timeBonus: 1.2;
|
|
22
|
+
readonly scoreMultiplier: 1.2;
|
|
23
|
+
readonly hintAvailable: false;
|
|
24
|
+
readonly gameDuration: 120;
|
|
25
|
+
};
|
|
26
|
+
readonly hard: {
|
|
27
|
+
readonly gridSize: 12;
|
|
28
|
+
readonly timeBonus: 1;
|
|
29
|
+
readonly scoreMultiplier: 1.5;
|
|
30
|
+
readonly hintAvailable: false;
|
|
31
|
+
readonly gameDuration: 180;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const MAZE_RUNNER_THEME: GameSettingsTheme;
|
|
35
|
+
export declare const MAZE_RUNNER_DIFFICULTY_DESCRIPTIONS: {
|
|
36
|
+
readonly easy: "60 seconds, 8x8 grid, more forgiving";
|
|
37
|
+
readonly medium: "120 seconds, 10x10 grid, balanced challenge";
|
|
38
|
+
readonly hard: "180 seconds, 12x12 grid, maximum challenge!";
|
|
39
|
+
};
|
|
40
|
+
export declare const MAZE_ADVENTURE_COLORS: readonly ["#FF6B6B", "#4ECDC4", "#45B7D1", "#96CEB4", "#FFEAA7", "#DDA0DD", "#98D8C8", "#F7DC6F", "#BB8FCE", "#85C1E9", "#82E0AA", "#F8C471", "#D7BDE2", "#A9DFBF", "#FAD7A0", "#D5A6BD"];
|
|
41
|
+
//# sourceMappingURL=MazeRunnerConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MazeRunnerConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunnerConstants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,4BAA4B,EAAE,kBAO1C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC;AAGX,eAAO,MAAM,iBAAiB,EAAE,iBAgB/B,CAAC;AAGF,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC;AAGX,eAAO,MAAM,qBAAqB,2LAiBxB,CAAC"}
|
|
@@ -28,6 +28,7 @@ export interface GameState {
|
|
|
28
28
|
ballPosition: Position;
|
|
29
29
|
targetPosition: Position;
|
|
30
30
|
isCompleted: boolean;
|
|
31
|
+
gameOver: boolean;
|
|
31
32
|
}
|
|
32
33
|
export interface GameConfig {
|
|
33
34
|
GRID_SIZE: number;
|
|
@@ -39,6 +40,7 @@ export interface GameConfig {
|
|
|
39
40
|
COLLISION_TOLERANCE: number;
|
|
40
41
|
SCORE_PER_COMPLETION: number;
|
|
41
42
|
TIME_BONUS_MULTIPLIER: number;
|
|
43
|
+
GAME_DURATION: number;
|
|
42
44
|
}
|
|
43
45
|
export declare class MazeRunnerService {
|
|
44
46
|
private gameConfig;
|
|
@@ -47,7 +49,7 @@ export declare class MazeRunnerService {
|
|
|
47
49
|
private walls;
|
|
48
50
|
private gameTimer;
|
|
49
51
|
private onGameStateChange?;
|
|
50
|
-
constructor(gridSize?: number, gameAreaWidth?: number, gameAreaHeight?: number);
|
|
52
|
+
constructor(gridSize?: number, gameAreaWidth?: number, gameAreaHeight?: number, gameDuration?: number);
|
|
51
53
|
setGameStateChangeCallback(callback: (state: GameState) => void): void;
|
|
52
54
|
private notifyGameStateChange;
|
|
53
55
|
private initializeMaze;
|
|
@@ -60,7 +62,7 @@ export declare class MazeRunnerService {
|
|
|
60
62
|
private removeWallBetween;
|
|
61
63
|
private generateWalls;
|
|
62
64
|
private setStartAndEndPositions;
|
|
63
|
-
updateSettings(gridSize: number,
|
|
65
|
+
updateSettings(gridSize: number, gameDuration: number, gameAreaWidth?: number, gameAreaHeight?: number): void;
|
|
64
66
|
resetGame(): void;
|
|
65
67
|
startGame(): void;
|
|
66
68
|
pauseGame(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MazeRunnerService.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunnerService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE;QACL,GAAG,EAAE,OAAO,CAAC;QACb,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,QAAQ,CAAC;IACvB,cAAc,EAAE,QAAQ,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MazeRunnerService.d.ts","sourceRoot":"","sources":["../../../../../src/games/maze-runner/MazeRunnerService.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnhancedGameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/EnhancedGameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIjG,UAAU,qBAAqB;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,oBAAoB,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtD,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"EnhancedGameArea.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/EnhancedGameArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIjG,UAAU,qBAAqB;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,oBAAoB,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtD,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoT5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmLxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAehD,CAAC"}
|
|
@@ -3,6 +3,5 @@ export { WallComponent } from './WallComponent';
|
|
|
3
3
|
export { EnhancedGameArea } from './EnhancedGameArea';
|
|
4
4
|
export { GameBackground } from './GameBackground';
|
|
5
5
|
export { ScoreBoard } from './ScoreBoard';
|
|
6
|
-
export { GameControls } from './GameControls';
|
|
7
6
|
export { GameOverModal } from './GameOverModal';
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GameSettings } from '../../shared/settings/SettingsService';
|
|
3
|
+
interface PopitFidgetProps {
|
|
4
|
+
showSettingsModal?: boolean;
|
|
5
|
+
onToggleSettingsModal?: () => void;
|
|
6
|
+
externalSettings?: GameSettings;
|
|
7
|
+
onSettingsChange?: (settings: GameSettings) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const PopitFidget: React.FC<PopitFidgetProps>;
|
|
10
|
+
export { PopitFidget };
|
|
11
|
+
//# sourceMappingURL=PopitFidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopitFidget.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAQ9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAa1E,UAAU,gBAAgB;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;CACrD;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiT3C,CAAC;AAkBF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../shared/settings/GameSettings';
|
|
2
|
+
export declare const POPIT_FIDGET_GAME_CONFIG: {
|
|
3
|
+
readonly GAME_DURATION: 120;
|
|
4
|
+
readonly POINTS_PER_BUBBLE: 10;
|
|
5
|
+
readonly COMPLETION_BONUS: 500;
|
|
6
|
+
readonly TIME_BONUS_MULTIPLIER: 5;
|
|
7
|
+
readonly BUBBLE_SIZE: 40;
|
|
8
|
+
readonly ANIMATION_DURATION: 300;
|
|
9
|
+
readonly PARTICLE_COUNT: 4;
|
|
10
|
+
readonly PARTICLE_LIFETIME: 800;
|
|
11
|
+
readonly GRID_SIZES: {
|
|
12
|
+
readonly easy: 5;
|
|
13
|
+
readonly medium: 6;
|
|
14
|
+
readonly hard: 7;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const POPIT_FIDGET_ANIMATION_CONFIG: {
|
|
18
|
+
readonly POP_SCALE: 1.3;
|
|
19
|
+
readonly POP_DURATION: 200;
|
|
20
|
+
readonly FADE_DURATION: 300;
|
|
21
|
+
readonly BOUNCE_SCALE: 0.9;
|
|
22
|
+
readonly PARTICLE_VELOCITY: 3;
|
|
23
|
+
readonly PARTICLE_GRAVITY: 0.2;
|
|
24
|
+
};
|
|
25
|
+
export declare const POPIT_FIDGET_COLORS: {
|
|
26
|
+
readonly BACKGROUND: "#f5f5f5";
|
|
27
|
+
readonly FIDGET_BORDER: "#333";
|
|
28
|
+
readonly FIDGET_SHADOW: "rgba(0,0,0,0.3)";
|
|
29
|
+
readonly SCORE: "#4a90e2";
|
|
30
|
+
readonly UI: "#6c5ce7";
|
|
31
|
+
readonly POPPED_BUBBLE: "#d0d0d0";
|
|
32
|
+
readonly PARTICLE_GLOW: "rgba(255,255,255,0.9)";
|
|
33
|
+
readonly FIDGET_BASE: "#ffffff";
|
|
34
|
+
readonly BUBBLE_SHADOW: "rgba(0,0,0,0.2)";
|
|
35
|
+
readonly BUBBLE_HIGHLIGHT: "rgba(255,255,255,0.6)";
|
|
36
|
+
};
|
|
37
|
+
export declare const RAINBOW_COLORS: readonly ["#E91E63", "#F44336", "#FF5722", "#FF9800", "#FFC107", "#8E24AA", "#CDDC39", "#8BC34A", "#4CAF50", "#009688", "#00BCD4", "#03A9F4", "#2196F3", "#3F51B5", "#9C27B0", "#E91E63"];
|
|
38
|
+
export declare const BUBBLE_COLORS: readonly ["#E91E63", "#F44336", "#FF5722", "#FF9800", "#FFC107", "#8E24AA", "#CDDC39", "#8BC34A", "#4CAF50", "#009688", "#00BCD4", "#03A9F4", "#2196F3", "#3F51B5", "#9C27B0", "#E91E63"];
|
|
39
|
+
export declare const POPIT_FIDGET_THEME: GameSettingsTheme;
|
|
40
|
+
export declare const POPIT_FIDGET_DIFFICULTY_DESCRIPTIONS: {
|
|
41
|
+
readonly easy: "60 seconds, smaller fidget grids, relaxing pace";
|
|
42
|
+
readonly medium: "120 seconds, medium grids, satisfying pops";
|
|
43
|
+
readonly hard: "180 seconds, large complex shapes, ultimate satisfaction!";
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=PopitFidgetConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopitFidgetConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidgetConstants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;CAe3B,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;CAOhC,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAYtB,CAAC;AAGX,eAAO,MAAM,cAAc,2LAiBjB,CAAC;AAGX,eAAO,MAAM,aAAa,2LAAiB,CAAC;AAG5C,eAAO,MAAM,kBAAkB,EAAE,iBAgBhC,CAAC;AAGF,eAAO,MAAM,oCAAoC;;;;CAIvC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { POPIT_FIDGET_GAME_CONFIG as GAME_CONFIG, POPIT_FIDGET_ANIMATION_CONFIG as ANIMATION_CONFIG, POPIT_FIDGET_COLORS as COLORS, BUBBLE_COLORS } from './PopitFidgetConstants';
|
|
2
|
+
export { GAME_CONFIG, ANIMATION_CONFIG, COLORS, BUBBLE_COLORS };
|
|
3
|
+
export interface Bubble {
|
|
4
|
+
id: string;
|
|
5
|
+
row: number;
|
|
6
|
+
col: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
isPopped: boolean;
|
|
10
|
+
color: string;
|
|
11
|
+
popTime?: number;
|
|
12
|
+
animationProgress: number;
|
|
13
|
+
}
|
|
14
|
+
export interface FidgetGrid {
|
|
15
|
+
size: number;
|
|
16
|
+
bubbles: Bubble[][];
|
|
17
|
+
centerX: number;
|
|
18
|
+
centerY: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
}
|
|
22
|
+
export interface Particle {
|
|
23
|
+
id: string;
|
|
24
|
+
position: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
};
|
|
28
|
+
velocity: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
color: string;
|
|
33
|
+
size: number;
|
|
34
|
+
lifetime: number;
|
|
35
|
+
maxLifetime: number;
|
|
36
|
+
}
|
|
37
|
+
export declare class PopitFidgetService {
|
|
38
|
+
private gameTimerRef;
|
|
39
|
+
private animationRef;
|
|
40
|
+
private particles;
|
|
41
|
+
constructor();
|
|
42
|
+
generateFidgetGrid(difficulty: 'easy' | 'medium' | 'hard'): FidgetGrid;
|
|
43
|
+
private getRainbowColorForPosition;
|
|
44
|
+
popBubble(bubble: Bubble, onParticleCreated: (particles: Particle[]) => void): void;
|
|
45
|
+
checkAllBubblesPopped(grid: FidgetGrid): boolean;
|
|
46
|
+
calculateCompletionPercentage(grid: FidgetGrid): number;
|
|
47
|
+
startGameTimer(duration: number, onTick: (timeLeft: number) => void, onComplete: () => void): void;
|
|
48
|
+
stopGameTimer(): void;
|
|
49
|
+
updateParticles(deltaTime: number): Particle[];
|
|
50
|
+
addParticles(newParticles: Particle[]): void;
|
|
51
|
+
clearParticles(): void;
|
|
52
|
+
cleanup(): void;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=PopitFidgetService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopitFidgetService.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidgetService.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,IAAI,WAAW,EACvC,6BAA6B,IAAI,gBAAgB,EACjD,mBAAmB,IAAI,MAAM,EAE7B,aAAa,EACd,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AAIhE,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,YAAY,CAA+B;IACnD,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,SAAS,CAAkB;;IAMnC,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU;IAmDtE,OAAO,CAAC,0BAA0B;IAQlC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,GAAG,IAAI;IA6BnF,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;IAahD,6BAA6B,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAoBvD,cAAc,CACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAClC,UAAU,EAAE,MAAM,IAAI,GACrB,IAAI;IAgBP,aAAa,IAAI,IAAI;IAQrB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,EAAE;IAc9C,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAI;IAK5C,cAAc,IAAI,IAAI;IAKtB,OAAO,IAAI,IAAI;CAShB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { FidgetGrid, Particle } from './PopitFidgetService';
|
|
2
|
+
export interface GameState {
|
|
3
|
+
score: number;
|
|
4
|
+
timeLeft: number;
|
|
5
|
+
isPlaying: boolean;
|
|
6
|
+
gameOver: boolean;
|
|
7
|
+
gameWon: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PopitFidgetStore extends GameState {
|
|
10
|
+
fidgetGrid: FidgetGrid | null;
|
|
11
|
+
particles: Particle[];
|
|
12
|
+
bubblesPopped: number;
|
|
13
|
+
totalBubbles: number;
|
|
14
|
+
bubbleStates: Record<string, {
|
|
15
|
+
isPopped: boolean;
|
|
16
|
+
popTime?: number;
|
|
17
|
+
}>;
|
|
18
|
+
startGame: (gameDuration?: number) => void;
|
|
19
|
+
stopGame: () => void;
|
|
20
|
+
resetGame: () => void;
|
|
21
|
+
setFidgetGrid: (grid: FidgetGrid) => void;
|
|
22
|
+
popBubble: (row: number, col: number) => void;
|
|
23
|
+
updateScore: (points: number) => void;
|
|
24
|
+
decrementTime: () => void;
|
|
25
|
+
setTimeLeft: (timeLeft: number) => void;
|
|
26
|
+
setParticles: (particles: Particle[]) => void;
|
|
27
|
+
addParticles: (particles: Particle[]) => void;
|
|
28
|
+
clearParticles: () => void;
|
|
29
|
+
checkGameWon: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const usePopitFidgetStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<PopitFidgetStore>, "subscribe"> & {
|
|
32
|
+
subscribe: {
|
|
33
|
+
(listener: (selectedState: PopitFidgetStore, previousSelectedState: PopitFidgetStore) => void): () => void;
|
|
34
|
+
<U>(selector: (state: PopitFidgetStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
35
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
36
|
+
fireImmediately?: boolean;
|
|
37
|
+
} | undefined): () => void;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
//# sourceMappingURL=PopitFidgetStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopitFidgetStore.d.ts","sourceRoot":"","sources":["../../../../../src/games/popit-fidget/PopitFidgetStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIjE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAGtE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAGD,eAAO,MAAM,mBAAmB;;;;;;;;EA6M/B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Bubble } from '../PopitFidgetService';
|
|
3
|
+
interface BubbleComponentProps {
|
|
4
|
+
bubble: Bubble;
|
|
5
|
+
size: number;
|
|
6
|
+
onPop: () => void;
|
|
7
|
+
hapticEnabled?: boolean;
|
|
8
|
+
isPlaying: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const MemoizedBubbleComponent: React.NamedExoticComponent<BubbleComponentProps>;
|
|
11
|
+
export default MemoizedBubbleComponent;
|
|
12
|
+
//# sourceMappingURL=BubbleComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/BubbleComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGpD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB;AAuMD,QAAA,MAAM,uBAAuB,kDAY3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FidgetGrid as FidgetGridType } from '../PopitFidgetService';
|
|
3
|
+
interface FidgetGridProps {
|
|
4
|
+
grid: FidgetGridType;
|
|
5
|
+
bubbleSize: number;
|
|
6
|
+
onBubblePop: (row: number, col: number) => void;
|
|
7
|
+
hapticEnabled?: boolean;
|
|
8
|
+
isPlaying: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const MemoizedFidgetGrid: React.NamedExoticComponent<FidgetGridProps>;
|
|
11
|
+
export default MemoizedFidgetGrid;
|
|
12
|
+
//# sourceMappingURL=FidgetGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FidgetGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/FidgetGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI1E,UAAU,eAAe;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB;AA0KD,QAAA,MAAM,kBAAkB,6CAiBtB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface GameBackgroundProps {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
isPlaying: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const GameBackground: React.FC<GameBackgroundProps>;
|
|
8
|
+
export default GameBackground;
|
|
9
|
+
//# sourceMappingURL=GameBackground.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameBackground.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/GameBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiLjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface GameOverModalProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
score: number;
|
|
5
|
+
onPlayAgain: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const GameOverModal: React.FC<GameOverModalProps>;
|
|
8
|
+
export default GameOverModal;
|
|
9
|
+
//# sourceMappingURL=GameOverModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0B/C,CAAC;AA6EF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Particle } from '../PopitFidgetService';
|
|
3
|
+
interface ParticleSystemProps {
|
|
4
|
+
particles: Particle[];
|
|
5
|
+
onParticleComplete: (particleId: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ParticleSystem: React.FC<ParticleSystemProps>;
|
|
8
|
+
export default ParticleSystem;
|
|
9
|
+
//# sourceMappingURL=ParticleSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticleSystem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/ParticleSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAWzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD;AAiFD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAYjD,CAAC;AASF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreBoard.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/ScoreBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAezC,CAAC;AAmCF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as BubbleComponent } from './BubbleComponent';
|
|
2
|
+
export { default as FidgetGrid } from './FidgetGrid';
|
|
3
|
+
export { default as ParticleSystem } from './ParticleSystem';
|
|
4
|
+
export { default as ScoreBoard } from './ScoreBoard';
|
|
5
|
+
export { default as GameOverModal } from './GameOverModal';
|
|
6
|
+
export { default as GameBackground } from './GameBackground';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/games/popit-fidget/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SpaceFighterSettings } from './SpaceFighterConstants';
|
|
2
|
+
export interface SpaceFighterProps {
|
|
3
|
+
showSettingsModal: boolean;
|
|
4
|
+
onToggleSettingsModal?: () => void;
|
|
5
|
+
settings?: Partial<SpaceFighterSettings>;
|
|
6
|
+
onSettingsChange?: (settings: SpaceFighterSettings) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SpaceFighter: ({ showSettingsModal, onToggleSettingsModal, settings: externalSettings, onSettingsChange }: SpaceFighterProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=SpaceFighter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpaceFighter.d.ts","sourceRoot":"","sources":["../../../../../src/games/space-fighter/SpaceFighter.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,YAAY,GAAI,4FAK1B,iBAAiB,4CAyXnB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { GameSettingsTheme } from '../../shared/settings/GameSettings';
|
|
2
|
+
export interface SpaceFighterSettings {
|
|
3
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
4
|
+
soundEnabled: boolean;
|
|
5
|
+
hapticEnabled: boolean;
|
|
6
|
+
gameDuration: number;
|
|
7
|
+
asteroidSpawnInterval: number;
|
|
8
|
+
asteroidSpeed: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SPACE_FIGHTER_DIFFICULTY_CONFIG: {
|
|
11
|
+
readonly easy: {
|
|
12
|
+
readonly gameDuration: 60;
|
|
13
|
+
readonly asteroidSpawnInterval: 4000;
|
|
14
|
+
readonly asteroidSpeed: 1.5;
|
|
15
|
+
};
|
|
16
|
+
readonly medium: {
|
|
17
|
+
readonly gameDuration: 60;
|
|
18
|
+
readonly asteroidSpawnInterval: 3000;
|
|
19
|
+
readonly asteroidSpeed: 2;
|
|
20
|
+
};
|
|
21
|
+
readonly hard: {
|
|
22
|
+
readonly gameDuration: 60;
|
|
23
|
+
readonly asteroidSpawnInterval: 2000;
|
|
24
|
+
readonly asteroidSpeed: 3;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const getDifficultySettings: (difficulty: "easy" | "medium" | "hard") => {
|
|
28
|
+
readonly gameDuration: 60;
|
|
29
|
+
readonly asteroidSpawnInterval: 4000;
|
|
30
|
+
readonly asteroidSpeed: 1.5;
|
|
31
|
+
} | {
|
|
32
|
+
readonly gameDuration: 60;
|
|
33
|
+
readonly asteroidSpawnInterval: 3000;
|
|
34
|
+
readonly asteroidSpeed: 2;
|
|
35
|
+
} | {
|
|
36
|
+
readonly gameDuration: 60;
|
|
37
|
+
readonly asteroidSpawnInterval: 2000;
|
|
38
|
+
readonly asteroidSpeed: 3;
|
|
39
|
+
};
|
|
40
|
+
export declare const DEFAULT_SPACE_FIGHTER_SETTINGS: SpaceFighterSettings;
|
|
41
|
+
export declare const SPACE_FIGHTER_GAME_CONFIG: {
|
|
42
|
+
readonly GAME_DURATION: 120;
|
|
43
|
+
readonly SPACECRAFT_SIZE: 28;
|
|
44
|
+
readonly SPACECRAFT_SPEED: 3;
|
|
45
|
+
readonly ASTEROID_WIDTH: 80;
|
|
46
|
+
readonly ASTEROID_GAP: 120;
|
|
47
|
+
readonly ASTEROID_SPAWN_INTERVAL: 3000;
|
|
48
|
+
readonly ASTEROID_SPEED: 2;
|
|
49
|
+
readonly GRAVITY: 0.3;
|
|
50
|
+
readonly BOUNCE_DAMPING: 0.7;
|
|
51
|
+
readonly FRICTION: 0.98;
|
|
52
|
+
readonly MAX_VELOCITY: 8;
|
|
53
|
+
readonly COLLISION_TOLERANCE: 2;
|
|
54
|
+
readonly COLLISION_COOLDOWN: 2000;
|
|
55
|
+
};
|
|
56
|
+
export declare const SPACE_FIGHTER_COLORS: {
|
|
57
|
+
readonly BACKGROUND: "#0a0a1a";
|
|
58
|
+
readonly SPACECRAFT: "#00d4ff";
|
|
59
|
+
readonly ASTEROID: "#8b4513";
|
|
60
|
+
readonly ASTEROID_SHADOW: "#654321";
|
|
61
|
+
readonly SCORE: "#ffd700";
|
|
62
|
+
readonly UI: "#9370db";
|
|
63
|
+
readonly STARS: "#ffffff";
|
|
64
|
+
};
|
|
65
|
+
export declare const SPACE_FIGHTER_THEME: GameSettingsTheme;
|
|
66
|
+
export declare const SPACE_FIGHTER_DIFFICULTY_DESCRIPTIONS: {
|
|
67
|
+
readonly easy: "60 seconds, slow asteroids, relaxed gameplay";
|
|
68
|
+
readonly medium: "120 seconds, normal asteroid speed, balanced challenge";
|
|
69
|
+
readonly hard: "180 seconds, fast asteroids, quick reflexes needed!";
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=SpaceFighterConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpaceFighterConstants.d.ts","sourceRoot":"","sources":["../../../../../src/games/space-fighter/SpaceFighterConstants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;CAgBlC,CAAC;AAGX,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,GAAG,QAAQ,GAAG,MAAM;;;;;;;;;;;;CAE3E,CAAC;AAGF,eAAO,MAAM,8BAA8B,EAAE,oBAO5C,CAAC;AAGF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;CAc5B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;CAQvB,CAAC;AAGX,eAAO,MAAM,mBAAmB,EAAE,iBAgBjC,CAAC;AAGF,eAAO,MAAM,qCAAqC;;;;CAIxC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SPACE_FIGHTER_GAME_CONFIG as GAME_CONFIG, SPACE_FIGHTER_COLORS as COLORS } from './SpaceFighterConstants';
|
|
2
2
|
export { GAME_CONFIG, COLORS };
|
|
3
3
|
export interface Asteroid {
|
|
4
4
|
id: string;
|
|
@@ -30,7 +30,7 @@ export interface Particle {
|
|
|
30
30
|
maxLife: number;
|
|
31
31
|
size: number;
|
|
32
32
|
}
|
|
33
|
-
declare class
|
|
33
|
+
declare class SpaceFighterGameService {
|
|
34
34
|
private width;
|
|
35
35
|
private height;
|
|
36
36
|
private gameTimer;
|
|
@@ -38,10 +38,13 @@ declare class SpaceTravellerGameService {
|
|
|
38
38
|
private physicsTimer;
|
|
39
39
|
private particles;
|
|
40
40
|
private lastCollisionTime;
|
|
41
|
+
private currentAsteroidSpeed;
|
|
42
|
+
private currentSpawnInterval;
|
|
41
43
|
constructor(screenWidth: number, screenHeight: number);
|
|
42
44
|
startGame(): void;
|
|
43
45
|
cleanup(): void;
|
|
44
46
|
startGameTimer(decrementTime: () => void): void;
|
|
47
|
+
updateDifficultySettings(asteroidSpeed: number, spawnInterval: number): void;
|
|
45
48
|
startAsteroidSpawning(spawnAsteroid: (asteroid: Asteroid[]) => void): void;
|
|
46
49
|
startPhysicsLoop(updateSpacecraft: (spacecraft: Spacecraft) => void, updateAsteroid: (asteroidId: string, updates: Partial<Asteroid>) => void, removeAsteroid: (asteroidId: string) => void, getSpacecraft: () => Spacecraft, getAsteroids: () => Asteroid[]): void;
|
|
47
50
|
generateAsteroidPair(): Asteroid[];
|
|
@@ -61,5 +64,5 @@ declare class SpaceTravellerGameService {
|
|
|
61
64
|
getRemainingImmunityTime(): number;
|
|
62
65
|
getInitialSpacecraft(): Spacecraft;
|
|
63
66
|
}
|
|
64
|
-
export declare const
|
|
65
|
-
//# sourceMappingURL=
|
|
67
|
+
export declare const createSpaceFighterService: (width: number, height: number) => SpaceFighterGameService;
|
|
68
|
+
//# sourceMappingURL=SpaceFighterService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpaceFighterService.d.ts","sourceRoot":"","sources":["../../../../../src/games/space-fighter/SpaceFighterService.ts"],"names":[],"mappings":"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"}
|