react-native-games 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -130
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +111 -423
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js +27 -28
- package/lib/module/games/balloon-blaster/BalloonBlasterConstants.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js +42 -117
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +12 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js +102 -75
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/GameArea.js +139 -30
- package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js +7 -6
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/balloon-blaster/components/index.js +0 -3
- package/lib/module/games/balloon-blaster/components/index.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinja.js +94 -376
- package/lib/module/games/fruit-ninja/FruitNinja.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js +19 -22
- package/lib/module/games/fruit-ninja/FruitNinjaConstants.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaService.js +30 -9
- package/lib/module/games/fruit-ninja/FruitNinjaService.js.map +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js +29 -4
- package/lib/module/games/fruit-ninja/FruitNinjaStore.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/GameArea.js +194 -29
- package/lib/module/games/fruit-ninja/components/GameArea.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/GameBackground.js +107 -190
- package/lib/module/games/fruit-ninja/components/GameBackground.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js +9 -30
- package/lib/module/games/fruit-ninja/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/fruit-ninja/components/index.js +0 -3
- package/lib/module/games/fruit-ninja/components/index.js.map +1 -1
- package/lib/module/games/maze-runner/MazeRunner.js +106 -109
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -1
- package/lib/module/games/maze-runner/MazeRunnerConstants.js +19 -24
- package/lib/module/games/maze-runner/MazeRunnerConstants.js.map +1 -1
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +5 -4
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -1
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js +16 -7
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -1
- package/lib/module/games/maze-runner/components/ScoreBoard.js +8 -3
- package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/maze-runner/components/WallComponent.js +3 -2
- package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -1
- package/lib/module/games/maze-runner/components/index.js +0 -1
- package/lib/module/games/maze-runner/components/index.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +113 -112
- package/lib/module/games/popit-fidget/PopitFidget.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js +20 -23
- package/lib/module/games/popit-fidget/PopitFidgetConstants.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidgetService.js +0 -59
- package/lib/module/games/popit-fidget/PopitFidgetService.js.map +1 -1
- package/lib/module/games/popit-fidget/PopitFidgetStore.js +0 -27
- package/lib/module/games/popit-fidget/PopitFidgetStore.js.map +1 -1
- package/lib/module/games/popit-fidget/components/BubbleComponent.js +24 -22
- package/lib/module/games/popit-fidget/components/BubbleComponent.js.map +1 -1
- package/lib/module/games/popit-fidget/components/GameBackground.js +4 -1
- package/lib/module/games/popit-fidget/components/GameBackground.js.map +1 -1
- package/lib/module/games/popit-fidget/components/ScoreBoard.js +9 -2
- package/lib/module/games/popit-fidget/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/popit-fidget/components/index.js +0 -2
- package/lib/module/games/popit-fidget/components/index.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighter.js +121 -369
- package/lib/module/games/space-fighter/SpaceFighter.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighterConstants.js +21 -23
- package/lib/module/games/space-fighter/SpaceFighterConstants.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighterService.js +30 -11
- package/lib/module/games/space-fighter/SpaceFighterService.js.map +1 -1
- package/lib/module/games/space-fighter/SpaceFighterStore.js +54 -2
- package/lib/module/games/space-fighter/SpaceFighterStore.js.map +1 -1
- package/lib/module/games/space-fighter/components/AsteroidComponent.js +7 -5
- package/lib/module/games/space-fighter/components/AsteroidComponent.js.map +1 -1
- package/lib/module/games/space-fighter/components/GameArea.js +234 -14
- package/lib/module/games/space-fighter/components/GameArea.js.map +1 -1
- package/lib/module/games/space-fighter/components/GameBackground.js +10 -65
- package/lib/module/games/space-fighter/components/GameBackground.js.map +1 -1
- package/lib/module/games/space-fighter/components/ScoreBoard.js +9 -7
- package/lib/module/games/space-fighter/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/space-fighter/components/Spacecraft3D.js +72 -111
- package/lib/module/games/space-fighter/components/Spacecraft3D.js.map +1 -1
- package/lib/module/games/space-fighter/components/SpacecraftPath.js +42 -27
- package/lib/module/games/space-fighter/components/SpacecraftPath.js.map +1 -1
- package/lib/module/games/space-fighter/components/index.js +0 -3
- package/lib/module/games/space-fighter/components/index.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMole.js +63 -73
- package/lib/module/games/whack-a-mole/WhackAMole.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMoleConstants.js +17 -19
- package/lib/module/games/whack-a-mole/WhackAMoleConstants.js.map +1 -1
- package/lib/module/games/whack-a-mole/WhackAMoleStore.js +20 -7
- package/lib/module/games/whack-a-mole/WhackAMoleStore.js.map +1 -1
- package/lib/module/games/whack-a-mole/components/GameHole.js +2 -2
- package/lib/module/games/whack-a-mole/components/GameHole.js.map +1 -1
- package/lib/module/games/whack-a-mole/components/ScoreBoard.js +5 -1
- package/lib/module/games/whack-a-mole/components/ScoreBoard.js.map +1 -1
- package/lib/module/games/whack-a-mole/components/index.js +0 -1
- package/lib/module/games/whack-a-mole/components/index.js.map +1 -1
- package/lib/module/services/GamesConstants.js +13 -21
- package/lib/module/services/GamesConstants.js.map +1 -1
- package/lib/module/services/GamesService.js +30 -26
- package/lib/module/services/GamesService.js.map +1 -1
- package/lib/module/services/SoundsService.js +21 -21
- package/lib/module/shared/helpers/AnimationFrame.js +120 -0
- package/lib/module/shared/helpers/AnimationFrame.js.map +1 -0
- package/lib/module/shared/helpers/AnimationTracker.js +89 -0
- package/lib/module/shared/helpers/AnimationTracker.js.map +1 -0
- package/lib/module/shared/helpers/ErrorHandler.js +269 -0
- package/lib/module/shared/helpers/ErrorHandler.js.map +1 -0
- package/lib/module/shared/helpers/GameControlButton.js +67 -58
- package/lib/module/shared/helpers/GameControlButton.js.map +1 -1
- package/lib/module/{games/whack-a-mole/components → shared/helpers}/GameOverModal.js +23 -13
- package/lib/module/shared/helpers/GameOverModal.js.map +1 -0
- package/lib/module/shared/helpers/GameSettingsModal.js +287 -0
- package/lib/module/shared/helpers/GameSettingsModal.js.map +1 -0
- package/lib/module/shared/helpers/ParticleBlast.js +133 -0
- package/lib/module/shared/helpers/ParticleBlast.js.map +1 -0
- package/lib/module/shared/helpers/index.js +7 -0
- package/lib/module/shared/helpers/index.js.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +2 -14
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts +8 -7
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +0 -2
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +1 -15
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +1 -7
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +0 -3
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts +2 -14
- package/lib/typescript/src/games/fruit-ninja/FruitNinja.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts +5 -5
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts +9 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaService.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts +1 -0
- package/lib/typescript/src/games/fruit-ninja/FruitNinjaStore.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts +1 -15
- package/lib/typescript/src/games/fruit-ninja/components/GameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts +1 -7
- package/lib/typescript/src/games/fruit-ninja/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/fruit-ninja/components/index.d.ts +0 -3
- package/lib/typescript/src/games/fruit-ninja/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +2 -8
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts +4 -4
- package/lib/typescript/src/games/maze-runner/MazeRunnerConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/maze-runner/components/index.d.ts +0 -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 +2 -8
- package/lib/typescript/src/games/popit-fidget/PopitFidget.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts +4 -4
- package/lib/typescript/src/games/popit-fidget/PopitFidgetConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts +0 -21
- package/lib/typescript/src/games/popit-fidget/PopitFidgetService.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts +1 -5
- package/lib/typescript/src/games/popit-fidget/PopitFidgetStore.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/components/BubbleComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts +2 -2
- package/lib/typescript/src/games/popit-fidget/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts +2 -2
- package/lib/typescript/src/games/popit-fidget/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/popit-fidget/components/index.d.ts +0 -2
- package/lib/typescript/src/games/popit-fidget/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts +3 -8
- package/lib/typescript/src/games/space-fighter/SpaceFighter.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts +4 -4
- package/lib/typescript/src/games/space-fighter/SpaceFighterConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighterService.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/SpaceFighterStore.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts +0 -1
- package/lib/typescript/src/games/space-fighter/components/AsteroidComponent.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts +1 -15
- package/lib/typescript/src/games/space-fighter/components/GameArea.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/GameBackground.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts +1 -6
- package/lib/typescript/src/games/space-fighter/components/ScoreBoard.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/Spacecraft3D.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/SpacecraftPath.d.ts.map +1 -1
- package/lib/typescript/src/games/space-fighter/components/index.d.ts +0 -3
- package/lib/typescript/src/games/space-fighter/components/index.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts +2 -11
- package/lib/typescript/src/games/whack-a-mole/WhackAMole.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts +2 -2
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleConstants.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/WhackAMoleStore.d.ts.map +1 -1
- package/lib/typescript/src/games/whack-a-mole/components/index.d.ts +0 -1
- package/lib/typescript/src/games/whack-a-mole/components/index.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesConstants.d.ts +47 -38
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -1
- package/lib/typescript/src/services/GamesService.d.ts +20 -3
- package/lib/typescript/src/services/GamesService.d.ts.map +1 -1
- package/lib/typescript/src/services/SoundsService.d.ts +20 -20
- package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts +41 -0
- package/lib/typescript/src/shared/helpers/AnimationFrame.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts +45 -0
- package/lib/typescript/src/shared/helpers/AnimationTracker.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts +124 -0
- package/lib/typescript/src/shared/helpers/ErrorHandler.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/GameControlButton.d.ts.map +1 -1
- package/lib/typescript/src/{games/balloon-blaster/components → shared/helpers}/GameOverModal.d.ts +5 -0
- package/lib/typescript/src/shared/helpers/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts +9 -0
- package/lib/typescript/src/shared/helpers/GameSettingsModal.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts +12 -0
- package/lib/typescript/src/shared/helpers/ParticleBlast.d.ts.map +1 -0
- package/lib/typescript/src/shared/helpers/index.d.ts +9 -0
- package/lib/typescript/src/shared/helpers/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/module/games/balloon-blaster/components/GameOverModal.js +0 -133
- package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +0 -1
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js +0 -55
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +0 -1
- package/lib/module/games/balloon-blaster/components/SliceTrail.js +0 -58
- package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +0 -1
- package/lib/module/games/fruit-ninja/components/GameOverModal.js +0 -189
- package/lib/module/games/fruit-ninja/components/GameOverModal.js.map +0 -1
- package/lib/module/games/fruit-ninja/components/ParticleSystem.js +0 -52
- package/lib/module/games/fruit-ninja/components/ParticleSystem.js.map +0 -1
- package/lib/module/games/fruit-ninja/components/SliceTrail.js +0 -58
- package/lib/module/games/fruit-ninja/components/SliceTrail.js.map +0 -1
- package/lib/module/games/maze-runner/components/GameOverModal.js +0 -134
- package/lib/module/games/maze-runner/components/GameOverModal.js.map +0 -1
- package/lib/module/games/popit-fidget/components/GameOverModal.js +0 -132
- package/lib/module/games/popit-fidget/components/GameOverModal.js.map +0 -1
- package/lib/module/games/popit-fidget/components/ParticleSystem.js +0 -89
- package/lib/module/games/popit-fidget/components/ParticleSystem.js.map +0 -1
- package/lib/module/games/space-fighter/components/GameOverModal.js +0 -182
- package/lib/module/games/space-fighter/components/GameOverModal.js.map +0 -1
- package/lib/module/games/space-fighter/components/ParticleComponent.js +0 -34
- package/lib/module/games/space-fighter/components/ParticleComponent.js.map +0 -1
- package/lib/module/games/space-fighter/components/SettingsModal.js +0 -222
- package/lib/module/games/space-fighter/components/SettingsModal.js.map +0 -1
- package/lib/module/games/whack-a-mole/components/GameOverModal.js.map +0 -1
- package/lib/module/shared/settings/GameSettings.js +0 -295
- package/lib/module/shared/settings/GameSettings.js.map +0 -1
- package/lib/module/shared/settings/SettingsService.js +0 -125
- package/lib/module/shared/settings/SettingsService.js.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +0 -8
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +0 -1
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +0 -11
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-ninja/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/fruit-ninja/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-ninja/components/ParticleSystem.d.ts +0 -8
- package/lib/typescript/src/games/fruit-ninja/components/ParticleSystem.d.ts.map +0 -1
- package/lib/typescript/src/games/fruit-ninja/components/SliceTrail.d.ts +0 -11
- package/lib/typescript/src/games/fruit-ninja/components/SliceTrail.d.ts.map +0 -1
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +0 -11
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/popit-fidget/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/popit-fidget/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.d.ts +0 -9
- package/lib/typescript/src/games/popit-fidget/components/ParticleSystem.d.ts.map +0 -1
- package/lib/typescript/src/games/space-fighter/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/space-fighter/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/games/space-fighter/components/ParticleComponent.d.ts +0 -8
- package/lib/typescript/src/games/space-fighter/components/ParticleComponent.d.ts.map +0 -1
- package/lib/typescript/src/games/space-fighter/components/SettingsModal.d.ts +0 -9
- package/lib/typescript/src/games/space-fighter/components/SettingsModal.d.ts.map +0 -1
- package/lib/typescript/src/games/whack-a-mole/components/GameOverModal.d.ts +0 -9
- package/lib/typescript/src/games/whack-a-mole/components/GameOverModal.d.ts.map +0 -1
- package/lib/typescript/src/shared/settings/GameSettings.d.ts +0 -36
- package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +0 -1
- package/lib/typescript/src/shared/settings/SettingsService.d.ts +0 -33
- package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +0 -1
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, Text, ScrollView, TouchableOpacity, Switch, StyleSheet } from 'react-native';
|
|
5
|
-
import { getGameTheme, getGameDifficultyDescriptions, getGameTitle } from "../../services/GamesConstants.js";
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const GameSettings = ({
|
|
8
|
-
gameId,
|
|
9
|
-
onClose,
|
|
10
|
-
settingsStore
|
|
11
|
-
}) => {
|
|
12
|
-
const theme = getGameTheme(gameId);
|
|
13
|
-
const difficultyDescriptions = getGameDifficultyDescriptions(gameId);
|
|
14
|
-
const title = `${getGameTitle(gameId)} Settings`;
|
|
15
|
-
const {
|
|
16
|
-
difficulty,
|
|
17
|
-
soundEnabled,
|
|
18
|
-
hapticEnabled
|
|
19
|
-
} = settingsStore;
|
|
20
|
-
const handleDifficultyChange = newDifficulty => {
|
|
21
|
-
if (settingsStore.setDifficulty) {
|
|
22
|
-
settingsStore.setDifficulty(newDifficulty);
|
|
23
|
-
} else if (settingsStore.updateSettings) {
|
|
24
|
-
settingsStore.updateSettings({
|
|
25
|
-
difficulty: newDifficulty
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const handleSoundToggle = enabled => {
|
|
30
|
-
if (settingsStore.setSoundEnabled) {
|
|
31
|
-
settingsStore.setSoundEnabled(enabled);
|
|
32
|
-
} else if (settingsStore.updateSettings) {
|
|
33
|
-
settingsStore.updateSettings({
|
|
34
|
-
soundEnabled: enabled
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const handleHapticToggle = enabled => {
|
|
39
|
-
if (settingsStore.setHapticEnabled) {
|
|
40
|
-
settingsStore.setHapticEnabled(enabled);
|
|
41
|
-
} else if (settingsStore.updateSettings) {
|
|
42
|
-
settingsStore.updateSettings({
|
|
43
|
-
hapticEnabled: enabled
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const handleResetDefaults = () => {
|
|
48
|
-
settingsStore.resetToDefaults();
|
|
49
|
-
};
|
|
50
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
51
|
-
style: [styles.container, {
|
|
52
|
-
backgroundColor: theme.backgroundColor
|
|
53
|
-
}],
|
|
54
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
55
|
-
style: [styles.header, {
|
|
56
|
-
backgroundColor: theme.headerBackgroundColor
|
|
57
|
-
}],
|
|
58
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
59
|
-
style: [styles.headerTitle, {
|
|
60
|
-
color: theme.headerTextColor
|
|
61
|
-
}],
|
|
62
|
-
children: title
|
|
63
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
64
|
-
onPress: onClose,
|
|
65
|
-
style: styles.closeButton,
|
|
66
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
67
|
-
style: [styles.closeButtonText, {
|
|
68
|
-
color: theme.headerTextColor
|
|
69
|
-
}],
|
|
70
|
-
children: "\u2715"
|
|
71
|
-
})
|
|
72
|
-
})]
|
|
73
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
74
|
-
style: styles.scrollView,
|
|
75
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
76
|
-
style: [styles.section, {
|
|
77
|
-
backgroundColor: theme.sectionBackgroundColor
|
|
78
|
-
}],
|
|
79
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
80
|
-
style: [styles.sectionTitle, {
|
|
81
|
-
color: theme.sectionTitleColor
|
|
82
|
-
}],
|
|
83
|
-
children: "Difficulty Level"
|
|
84
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
85
|
-
style: styles.difficultyRow,
|
|
86
|
-
children: ['easy', 'medium', 'hard'].map(level => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
87
|
-
onPress: () => handleDifficultyChange(level),
|
|
88
|
-
style: [styles.difficultyButton, {
|
|
89
|
-
backgroundColor: difficulty === level ? theme.buttonSelectedColor : theme.buttonUnselectedColor
|
|
90
|
-
}],
|
|
91
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
92
|
-
style: [styles.buttonText, styles.capitalize, {
|
|
93
|
-
color: difficulty === level ? theme.buttonSelectedTextColor : theme.buttonUnselectedTextColor
|
|
94
|
-
}],
|
|
95
|
-
children: level
|
|
96
|
-
})
|
|
97
|
-
}, level))
|
|
98
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
99
|
-
style: styles.infoBox,
|
|
100
|
-
children: /*#__PURE__*/_jsxs(Text, {
|
|
101
|
-
style: [styles.infoText, {
|
|
102
|
-
color: theme.infoTextColor
|
|
103
|
-
}],
|
|
104
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
105
|
-
style: styles.boldText,
|
|
106
|
-
children: "Easy:"
|
|
107
|
-
}), " ", difficultyDescriptions.easy, '\n', /*#__PURE__*/_jsx(Text, {
|
|
108
|
-
style: styles.boldText,
|
|
109
|
-
children: "Medium:"
|
|
110
|
-
}), " ", difficultyDescriptions.medium, '\n', /*#__PURE__*/_jsx(Text, {
|
|
111
|
-
style: styles.boldText,
|
|
112
|
-
children: "Hard:"
|
|
113
|
-
}), " ", difficultyDescriptions.hard]
|
|
114
|
-
})
|
|
115
|
-
})]
|
|
116
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
117
|
-
style: [styles.section, {
|
|
118
|
-
backgroundColor: theme.sectionBackgroundColor
|
|
119
|
-
}],
|
|
120
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
121
|
-
style: styles.toggleContainer,
|
|
122
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
123
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
124
|
-
style: [styles.toggleTitle, {
|
|
125
|
-
color: theme.sectionTitleColor
|
|
126
|
-
}],
|
|
127
|
-
children: "Sound Effects"
|
|
128
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
129
|
-
style: [styles.toggleSubtitle, {
|
|
130
|
-
color: theme.infoTextColor
|
|
131
|
-
}],
|
|
132
|
-
children: "Play sounds during gameplay"
|
|
133
|
-
})]
|
|
134
|
-
}), /*#__PURE__*/_jsx(Switch, {
|
|
135
|
-
value: soundEnabled,
|
|
136
|
-
onValueChange: handleSoundToggle,
|
|
137
|
-
trackColor: {
|
|
138
|
-
false: theme.switchTrackColorFalse,
|
|
139
|
-
true: theme.switchTrackColorTrue
|
|
140
|
-
},
|
|
141
|
-
thumbColor: theme.switchThumbColor
|
|
142
|
-
})]
|
|
143
|
-
})
|
|
144
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
145
|
-
style: [styles.section, {
|
|
146
|
-
backgroundColor: theme.sectionBackgroundColor
|
|
147
|
-
}],
|
|
148
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
149
|
-
style: styles.toggleContainer,
|
|
150
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
151
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
152
|
-
style: [styles.toggleTitle, {
|
|
153
|
-
color: theme.sectionTitleColor
|
|
154
|
-
}],
|
|
155
|
-
children: "Haptic Feedback"
|
|
156
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
157
|
-
style: [styles.toggleSubtitle, {
|
|
158
|
-
color: theme.infoTextColor
|
|
159
|
-
}],
|
|
160
|
-
children: "Vibration feedback for interactions"
|
|
161
|
-
})]
|
|
162
|
-
}), /*#__PURE__*/_jsx(Switch, {
|
|
163
|
-
value: hapticEnabled,
|
|
164
|
-
onValueChange: handleHapticToggle,
|
|
165
|
-
trackColor: {
|
|
166
|
-
false: theme.switchTrackColorFalse,
|
|
167
|
-
true: theme.switchTrackColorTrue
|
|
168
|
-
},
|
|
169
|
-
thumbColor: theme.switchThumbColor
|
|
170
|
-
})]
|
|
171
|
-
})
|
|
172
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
173
|
-
style: styles.resetSection,
|
|
174
|
-
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
175
|
-
onPress: handleResetDefaults,
|
|
176
|
-
style: [styles.resetButton, {
|
|
177
|
-
backgroundColor: theme.resetButtonColor
|
|
178
|
-
}],
|
|
179
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
180
|
-
style: [styles.resetButtonText, {
|
|
181
|
-
color: theme.resetButtonTextColor
|
|
182
|
-
}],
|
|
183
|
-
children: "Reset to Defaults"
|
|
184
|
-
})
|
|
185
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
186
|
-
style: [styles.resetDescription, {
|
|
187
|
-
color: theme.infoTextColor
|
|
188
|
-
}],
|
|
189
|
-
children: "This will restore all settings to their original values"
|
|
190
|
-
})]
|
|
191
|
-
})]
|
|
192
|
-
})]
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
const styles = StyleSheet.create({
|
|
196
|
-
container: {
|
|
197
|
-
flex: 1
|
|
198
|
-
},
|
|
199
|
-
header: {
|
|
200
|
-
flexDirection: 'row',
|
|
201
|
-
justifyContent: 'space-between',
|
|
202
|
-
alignItems: 'center',
|
|
203
|
-
padding: 16
|
|
204
|
-
},
|
|
205
|
-
headerTitle: {
|
|
206
|
-
fontSize: 20,
|
|
207
|
-
fontWeight: 'bold'
|
|
208
|
-
},
|
|
209
|
-
closeButton: {
|
|
210
|
-
padding: 8
|
|
211
|
-
},
|
|
212
|
-
closeButtonText: {
|
|
213
|
-
fontSize: 18,
|
|
214
|
-
fontWeight: 'bold'
|
|
215
|
-
},
|
|
216
|
-
scrollView: {
|
|
217
|
-
flex: 1,
|
|
218
|
-
padding: 16
|
|
219
|
-
},
|
|
220
|
-
section: {
|
|
221
|
-
borderRadius: 12,
|
|
222
|
-
padding: 16,
|
|
223
|
-
marginBottom: 16
|
|
224
|
-
},
|
|
225
|
-
sectionTitle: {
|
|
226
|
-
fontSize: 18,
|
|
227
|
-
fontWeight: 'bold',
|
|
228
|
-
marginBottom: 12
|
|
229
|
-
},
|
|
230
|
-
difficultyRow: {
|
|
231
|
-
flexDirection: 'row',
|
|
232
|
-
justifyContent: 'space-between',
|
|
233
|
-
marginBottom: 12
|
|
234
|
-
},
|
|
235
|
-
difficultyButton: {
|
|
236
|
-
flex: 1,
|
|
237
|
-
paddingVertical: 12,
|
|
238
|
-
paddingHorizontal: 8,
|
|
239
|
-
borderRadius: 8,
|
|
240
|
-
marginHorizontal: 4,
|
|
241
|
-
alignItems: 'center'
|
|
242
|
-
},
|
|
243
|
-
buttonText: {
|
|
244
|
-
fontSize: 16,
|
|
245
|
-
fontWeight: '600'
|
|
246
|
-
},
|
|
247
|
-
capitalize: {
|
|
248
|
-
textTransform: 'capitalize'
|
|
249
|
-
},
|
|
250
|
-
infoBox: {
|
|
251
|
-
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
252
|
-
borderRadius: 8,
|
|
253
|
-
padding: 12
|
|
254
|
-
},
|
|
255
|
-
infoText: {
|
|
256
|
-
fontSize: 14,
|
|
257
|
-
lineHeight: 20
|
|
258
|
-
},
|
|
259
|
-
boldText: {
|
|
260
|
-
fontWeight: 'bold'
|
|
261
|
-
},
|
|
262
|
-
toggleContainer: {
|
|
263
|
-
flexDirection: 'row',
|
|
264
|
-
justifyContent: 'space-between',
|
|
265
|
-
alignItems: 'center'
|
|
266
|
-
},
|
|
267
|
-
toggleTitle: {
|
|
268
|
-
fontSize: 16,
|
|
269
|
-
fontWeight: '600'
|
|
270
|
-
},
|
|
271
|
-
toggleSubtitle: {
|
|
272
|
-
fontSize: 14,
|
|
273
|
-
marginTop: 2
|
|
274
|
-
},
|
|
275
|
-
resetSection: {
|
|
276
|
-
alignItems: 'center',
|
|
277
|
-
marginTop: 8
|
|
278
|
-
},
|
|
279
|
-
resetButton: {
|
|
280
|
-
paddingVertical: 12,
|
|
281
|
-
paddingHorizontal: 24,
|
|
282
|
-
borderRadius: 8,
|
|
283
|
-
marginBottom: 8
|
|
284
|
-
},
|
|
285
|
-
resetButtonText: {
|
|
286
|
-
fontSize: 16,
|
|
287
|
-
fontWeight: '600'
|
|
288
|
-
},
|
|
289
|
-
resetDescription: {
|
|
290
|
-
fontSize: 12,
|
|
291
|
-
textAlign: 'center'
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
export default GameSettings;
|
|
295
|
-
//# sourceMappingURL=GameSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","ScrollView","TouchableOpacity","Switch","StyleSheet","getGameTheme","getGameDifficultyDescriptions","getGameTitle","jsx","_jsx","jsxs","_jsxs","GameSettings","gameId","onClose","settingsStore","theme","difficultyDescriptions","title","difficulty","soundEnabled","hapticEnabled","handleDifficultyChange","newDifficulty","setDifficulty","updateSettings","handleSoundToggle","enabled","setSoundEnabled","handleHapticToggle","setHapticEnabled","handleResetDefaults","resetToDefaults","style","styles","container","backgroundColor","children","header","headerBackgroundColor","headerTitle","color","headerTextColor","onPress","closeButton","closeButtonText","scrollView","section","sectionBackgroundColor","sectionTitle","sectionTitleColor","difficultyRow","map","level","difficultyButton","buttonSelectedColor","buttonUnselectedColor","buttonText","capitalize","buttonSelectedTextColor","buttonUnselectedTextColor","infoBox","infoText","infoTextColor","boldText","easy","medium","hard","toggleContainer","toggleTitle","toggleSubtitle","value","onValueChange","trackColor","false","switchTrackColorFalse","true","switchTrackColorTrue","thumbColor","switchThumbColor","resetSection","resetButton","resetButtonColor","resetButtonText","resetButtonTextColor","resetDescription","create","flex","flexDirection","justifyContent","alignItems","padding","fontSize","fontWeight","borderRadius","marginBottom","paddingVertical","paddingHorizontal","marginHorizontal","textTransform","lineHeight","marginTop","textAlign"],"sourceRoot":"../../../../src","sources":["shared/settings/GameSettings.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,UAAU,QAAQ,cAAc;AAC3F,SAASC,YAAY,EAAEC,6BAA6B,EAAEC,YAAY,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsC1G,OAAO,MAAMC,YAAsD,GAAGA,CAAC;EACrEC,MAAM;EACNC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAGX,YAAY,C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A0B;IAC3C0D,YAAY,EAAE,CAAC;IACfH,OAAO,EAAE;EACX,CAAC;EACD7B,QAAQ,EAAE;IACR8B,QAAQ,EAAE,EAAE;IACZQ,UAAU,EAAE;EACd,CAAC;EACDpC,QAAQ,EAAE;IACR6B,UAAU,EAAE;EACd,CAAC;EACDzB,eAAe,EAAE;IACfoB,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EACDrB,WAAW,EAAE;IACXuB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDvB,cAAc,EAAE;IACdsB,QAAQ,EAAE,EAAE;IACZS,SAAS,EAAE;EACb,CAAC;EACDrB,YAAY,EAAE;IACZU,UAAU,EAAE,QAAQ;IACpBW,SAAS,EAAE;EACb,CAAC;EACDpB,WAAW,EAAE;IACXe,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBH,YAAY,EAAE,CAAC;IACfC,YAAY,EAAE;EAChB,CAAC;EACDZ,eAAe,EAAE;IACfS,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDR,gBAAgB,EAAE;IAChBO,QAAQ,EAAE,EAAE;IACZU,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAe1F,YAAY","ignoreList":[]}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { create } from 'zustand';
|
|
4
|
-
import { immerMiddleware } from "../../services/GamesService.js";
|
|
5
|
-
|
|
6
|
-
// Simplified game settings interface - only the essentials
|
|
7
|
-
|
|
8
|
-
// Game duration constants
|
|
9
|
-
export const GAME_DURATIONS = {
|
|
10
|
-
easy: 60,
|
|
11
|
-
// 1 minute
|
|
12
|
-
medium: 120,
|
|
13
|
-
// 2 minutes
|
|
14
|
-
hard: 180 // 3 minutes
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// Helper function to get duration based on difficulty
|
|
18
|
-
export const getDurationForDifficulty = difficulty => {
|
|
19
|
-
return GAME_DURATIONS[difficulty];
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// Default settings that work for all games
|
|
23
|
-
export const DEFAULT_GAME_SETTINGS = {
|
|
24
|
-
difficulty: 'medium',
|
|
25
|
-
soundEnabled: true,
|
|
26
|
-
hapticEnabled: true
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// Store interface with actions
|
|
30
|
-
|
|
31
|
-
// Factory function to create game-specific settings store
|
|
32
|
-
export const createGameSettingsStore = (initialSettings = {}, onSettingsChange) => {
|
|
33
|
-
const mergedSettings = {
|
|
34
|
-
...DEFAULT_GAME_SETTINGS,
|
|
35
|
-
...initialSettings
|
|
36
|
-
};
|
|
37
|
-
return create()(immerMiddleware((set, get) => ({
|
|
38
|
-
...mergedSettings,
|
|
39
|
-
// Computed game duration based on difficulty
|
|
40
|
-
get gameDuration() {
|
|
41
|
-
return getDurationForDifficulty(get().difficulty);
|
|
42
|
-
},
|
|
43
|
-
setDifficulty: difficulty => {
|
|
44
|
-
set(draft => {
|
|
45
|
-
draft.difficulty = difficulty;
|
|
46
|
-
});
|
|
47
|
-
if (onSettingsChange) {
|
|
48
|
-
const currentState = get();
|
|
49
|
-
onSettingsChange({
|
|
50
|
-
difficulty: currentState.difficulty,
|
|
51
|
-
soundEnabled: currentState.soundEnabled,
|
|
52
|
-
hapticEnabled: currentState.hapticEnabled,
|
|
53
|
-
gameDuration: currentState.gameDuration
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
setSoundEnabled: soundEnabled => {
|
|
58
|
-
set(draft => {
|
|
59
|
-
draft.soundEnabled = soundEnabled;
|
|
60
|
-
});
|
|
61
|
-
if (onSettingsChange) {
|
|
62
|
-
const currentState = get();
|
|
63
|
-
onSettingsChange({
|
|
64
|
-
difficulty: currentState.difficulty,
|
|
65
|
-
soundEnabled: currentState.soundEnabled,
|
|
66
|
-
hapticEnabled: currentState.hapticEnabled,
|
|
67
|
-
gameDuration: currentState.gameDuration
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
setHapticEnabled: hapticEnabled => {
|
|
72
|
-
set(draft => {
|
|
73
|
-
draft.hapticEnabled = hapticEnabled;
|
|
74
|
-
});
|
|
75
|
-
if (onSettingsChange) {
|
|
76
|
-
const currentState = get();
|
|
77
|
-
onSettingsChange({
|
|
78
|
-
difficulty: currentState.difficulty,
|
|
79
|
-
soundEnabled: currentState.soundEnabled,
|
|
80
|
-
hapticEnabled: currentState.hapticEnabled,
|
|
81
|
-
gameDuration: currentState.gameDuration
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
updateSettings: settings => {
|
|
86
|
-
set(draft => {
|
|
87
|
-
Object.assign(draft, settings);
|
|
88
|
-
});
|
|
89
|
-
if (onSettingsChange) {
|
|
90
|
-
const currentState = get();
|
|
91
|
-
onSettingsChange({
|
|
92
|
-
difficulty: currentState.difficulty,
|
|
93
|
-
soundEnabled: currentState.soundEnabled,
|
|
94
|
-
hapticEnabled: currentState.hapticEnabled,
|
|
95
|
-
gameDuration: currentState.gameDuration
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
resetToDefaults: () => {
|
|
100
|
-
const defaultSettings = {
|
|
101
|
-
...DEFAULT_GAME_SETTINGS
|
|
102
|
-
};
|
|
103
|
-
set(draft => {
|
|
104
|
-
Object.assign(draft, defaultSettings);
|
|
105
|
-
});
|
|
106
|
-
if (onSettingsChange) {
|
|
107
|
-
onSettingsChange({
|
|
108
|
-
...defaultSettings,
|
|
109
|
-
gameDuration: getDurationForDifficulty(defaultSettings.difficulty)
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
})));
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
// Export game IDs for consistency
|
|
117
|
-
export const GAME_IDS = {
|
|
118
|
-
WHACK_IT: 'whack-it',
|
|
119
|
-
POPIT_FIDGET: 'popit-fidget',
|
|
120
|
-
FRUIT_NINJA: 'fruit-ninja',
|
|
121
|
-
BALLOON_BLASTER: 'balloon-blaster',
|
|
122
|
-
SPACE_FIGHTER: 'space-fighter',
|
|
123
|
-
MAZE_RUNNER: 'maze-runner'
|
|
124
|
-
};
|
|
125
|
-
//# sourceMappingURL=SettingsService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["create","immerMiddleware","GAME_DURATIONS","easy","medium","hard","getDurationForDifficulty","difficulty","DEFAULT_GAME_SETTINGS","soundEnabled","hapticEnabled","createGameSettingsStore","initialSettings","onSettingsChange","mergedSettings","set","get","gameDuration","setDifficulty","draft","currentState","setSoundEnabled","setHapticEnabled","updateSettings","settings","Object","assign","resetToDefaults","defaultSettings","GAME_IDS","WHACK_IT","POPIT_FIDGET","FRUIT_NINJA","BALLOON_BLASTER","SPACE_FIGHTER","MAZE_RUNNER"],"sourceRoot":"../../../../src","sources":["shared/settings/SettingsService.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,eAAe,QAAQ,gCAA6B;;AAE7D;;AAOA;AACA,OAAO,MAAMC,cAAc,GAAG;EAC5BC,IAAI,EAAE,EAAE;EAAK;EACbC,MAAM,EAAE,GAAG;EAAE;EACbC,IAAI,EAAE,GAAG,CAAI;AACf,CAAU;;AAEV;AACA,OAAO,MAAMC,wBAAwB,GAAIC,UAAsC,IAAa;EAC1F,OAAOL,cAAc,CAACK,UAAU,CAAC;AACnC,CAAC;;AAED;AACA,OAAO,MAAMC,qBAAmC,GAAG;EACjDD,UAAU,EAAE,QAAQ;EACpBE,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;AACjB,CAAC;;AAED;;AAaA;AACA,OAAO,MAAMC,uBAAuB,GAAGA,CACrCC,eAAsC,GAAG,CAAC,CAAC,EAC3CC,gBAA8E,KAC3E;EACH,MAAMC,cAAc,GAAG;IAAE,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ACf,CAAU","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6BtD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Particle } from '../BalloonBlasterService';
|
|
3
|
-
interface ParticleSystemProps {
|
|
4
|
-
particles: Particle[];
|
|
5
|
-
}
|
|
6
|
-
export declare const ParticleSystem: React.FC<ParticleSystemProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ParticleSystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleSystem.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/components/ParticleSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6BvD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SliceTrail.d.ts","sourceRoot":"","sources":["../../../../../../src/games/balloon-blaster/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/fruit-ninja/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0CtD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Particle } from '../FruitNinjaService';
|
|
3
|
-
interface ParticleSystemProps {
|
|
4
|
-
particles: Particle[];
|
|
5
|
-
}
|
|
6
|
-
export declare const ParticleSystem: React.FC<ParticleSystemProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ParticleSystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GameState } from '../MazeRunnerService';
|
|
3
|
-
interface GameOverModalProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
gameState: GameState;
|
|
6
|
-
onPlayAgain: () => void;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const GameOverModal: React.FC<GameOverModalProps>;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=GameOverModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/maze-runner/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiCtD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/space-fighter/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0CtD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Particle } from '../SpaceFighterService';
|
|
3
|
-
interface ParticleComponentProps {
|
|
4
|
-
particle: Particle;
|
|
5
|
-
}
|
|
6
|
-
export declare const ParticleComponent: React.FC<ParticleComponentProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ParticleComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/games/space-fighter/components/ParticleComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAyB9D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SettingsModalProps {
|
|
3
|
-
isVisible: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onResetHighScore?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const SettingsModal: React.FC<SettingsModalProps>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=SettingsModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/space-fighter/components/SettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwDtD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GameOverModal.d.ts","sourceRoot":"","sources":["../../../../../../src/games/whack-a-mole/components/GameOverModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0BrD,CAAC"}
|