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,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useEffect } from 'react';
|
|
4
|
-
import { StyleSheet } from 'react-native';
|
|
5
|
-
import { Canvas, Circle, LinearGradient, vec } from '@shopify/react-native-skia';
|
|
6
|
-
import Animated, { useSharedValue, useAnimatedStyle, withTiming, runOnJS, interpolate, Extrapolation } from 'react-native-reanimated';
|
|
7
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
-
const AnimatedParticle = ({
|
|
9
|
-
particle,
|
|
10
|
-
onComplete
|
|
11
|
-
}) => {
|
|
12
|
-
const progress = useSharedValue(0);
|
|
13
|
-
const positionX = useSharedValue(particle.position.x);
|
|
14
|
-
const positionY = useSharedValue(particle.position.y);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
// Start particle animation
|
|
17
|
-
progress.value = withTiming(1, {
|
|
18
|
-
duration: particle.maxLifetime
|
|
19
|
-
}, finished => {
|
|
20
|
-
if (finished) {
|
|
21
|
-
runOnJS(onComplete)(particle.id);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// Animate position with physics using Reanimated instead of setInterval
|
|
26
|
-
const finalX = particle.position.x + particle.velocity.x * 100;
|
|
27
|
-
const finalY = particle.position.y + particle.velocity.y * 100 + 0.5 * 200; // Gravity effect
|
|
28
|
-
|
|
29
|
-
positionX.value = withTiming(finalX, {
|
|
30
|
-
duration: particle.maxLifetime
|
|
31
|
-
});
|
|
32
|
-
positionY.value = withTiming(finalY, {
|
|
33
|
-
duration: particle.maxLifetime
|
|
34
|
-
});
|
|
35
|
-
}, [particle, progress, positionX, positionY, onComplete]);
|
|
36
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
37
|
-
const opacity = interpolate(progress.value, [0, 0.1, 0.8, 1], [0, 1, 1, 0], Extrapolation.CLAMP);
|
|
38
|
-
const scale = interpolate(progress.value, [0, 0.2, 1], [0, 1, 0.3], Extrapolation.CLAMP);
|
|
39
|
-
return {
|
|
40
|
-
opacity,
|
|
41
|
-
transform: [{
|
|
42
|
-
translateX: positionX.value
|
|
43
|
-
}, {
|
|
44
|
-
translateY: positionY.value
|
|
45
|
-
}, {
|
|
46
|
-
scale
|
|
47
|
-
}]
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
51
|
-
style: [styles.particle, animatedStyle],
|
|
52
|
-
children: /*#__PURE__*/_jsx(Canvas, {
|
|
53
|
-
style: {
|
|
54
|
-
width: particle.size,
|
|
55
|
-
height: particle.size
|
|
56
|
-
},
|
|
57
|
-
children: /*#__PURE__*/_jsx(Circle, {
|
|
58
|
-
cx: particle.size / 2,
|
|
59
|
-
cy: particle.size / 2,
|
|
60
|
-
r: particle.size / 2,
|
|
61
|
-
color: particle.color,
|
|
62
|
-
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
63
|
-
start: vec(0, 0),
|
|
64
|
-
end: vec(particle.size, particle.size),
|
|
65
|
-
colors: [particle.color, `${particle.color}AA`, `${particle.color}66`]
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
})
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
const ParticleSystem = ({
|
|
72
|
-
particles,
|
|
73
|
-
onParticleComplete
|
|
74
|
-
}) => {
|
|
75
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
76
|
-
children: particles.map((particle, index) => /*#__PURE__*/_jsx(AnimatedParticle, {
|
|
77
|
-
particle: particle,
|
|
78
|
-
onComplete: onParticleComplete
|
|
79
|
-
}, `${particle.id}-${index}`))
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
const styles = StyleSheet.create({
|
|
83
|
-
particle: {
|
|
84
|
-
position: 'absolute',
|
|
85
|
-
pointerEvents: 'none'
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
export default ParticleSystem;
|
|
89
|
-
//# sourceMappingURL=ParticleSystem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","StyleSheet","Canvas","Circle","LinearGradient","vec","Animated","useSharedValue","useAnimatedStyle","withTiming","runOnJS","interpolate","Extrapolation","jsx","_jsx","Fragment","_Fragment","AnimatedParticle","particle","onComplete","progress","positionX","position","x","positionY","y","value","duration","maxLifetime","finished","id","finalX","velocity","finalY","animatedStyle","opacity","CLAMP","scale","transform","translateX","translateY","View","style","styles","children","width","size","height","cx","cy","r","color","start","end","colors","ParticleSystem","particles","onParticleComplete","map","index","create","pointerEvents"],"sourceRoot":"../../../../../src","sources":["games/popit-fidget/components/ParticleSystem.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,MAAM,EAAEC,MAAM,EAAEC,cAAc,EAAEC,GAAG,QAAQ,4BAA4B;AAChF,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,OAAO,EACPC,WAAW,EACXC,aAAa,QACR,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAajC,MAAMC,gBAAiD,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAW,CAAC,KAAK;EACtF,MAAMC,QAAQ,GAAGb,cAAc,CAAC,CAAC,CAAC;EAClC,MAAMc,SAAS,GAAGd,cAAc,CAACW,QAAQ,CAACI,QAAQ,CAACC,CAAC,CAAC;EACrD,MAAMC,SAAS,GAAGjB,cAAc,CAACW,QAAQ,CAACI,QAAQ,CAACG,CAAC,CAAC;EAErDzB,SAAS,CAAC,MAAM;IACd;IACAoB,QAAQ,CAACM,KAAK,GAAGjB,UAAU,CAAC,CAAC,EAC3B;MAAEkB,QAAQ,EAAET,QAAQ,CAACU;IAAY,CAAC,EACjCC,QAAQ,IAAK;MACZ,IAAIA,QAAQ,EAAE;QACZnB,OAAO,CAACS,UAAU,CAAC,CAACD,QAAQ,CAACY,EAAE,CAAC;MAClC;IACF,CACF,CAAC;;IAED;IACA,MAAMC,MAAM,GAAGb,QAAQ,CAACI,QAAQ,CAACC,CAAC,GAAGL,QAAQ,CAACc,QAAQ,CAACT,CAAC,GAAG,GAAG;IAC9D,MAAMU,MAAM,GAAGf,QAAQ,CAACI,QAAQ,CAACG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C;AAEF,eAAeN,cAAc","ignoreList":[]}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, TouchableOpacity, Text, Modal, StyleSheet, Dimensions } from 'react-native';
|
|
5
|
-
import { Canvas, LinearGradient, Rect, vec } from '@shopify/react-native-skia';
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const {
|
|
8
|
-
width,
|
|
9
|
-
height
|
|
10
|
-
} = Dimensions.get('window');
|
|
11
|
-
export const GameOverModal = ({
|
|
12
|
-
isVisible,
|
|
13
|
-
score,
|
|
14
|
-
onPlayAgain
|
|
15
|
-
}) => {
|
|
16
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
17
|
-
visible: isVisible,
|
|
18
|
-
transparent: true,
|
|
19
|
-
animationType: "fade",
|
|
20
|
-
onRequestClose: () => {},
|
|
21
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
22
|
-
style: styles.gameOverOverlay,
|
|
23
|
-
children: [/*#__PURE__*/_jsx(Canvas, {
|
|
24
|
-
style: {
|
|
25
|
-
position: 'absolute',
|
|
26
|
-
top: 0,
|
|
27
|
-
left: 0,
|
|
28
|
-
right: 0,
|
|
29
|
-
bottom: 0,
|
|
30
|
-
width,
|
|
31
|
-
height
|
|
32
|
-
},
|
|
33
|
-
children: /*#__PURE__*/_jsx(Rect, {
|
|
34
|
-
x: 0,
|
|
35
|
-
y: 0,
|
|
36
|
-
width: width,
|
|
37
|
-
height: height,
|
|
38
|
-
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
39
|
-
start: vec(0, 0),
|
|
40
|
-
end: vec(0, height),
|
|
41
|
-
colors: ['#0c0a1f', '#1a1b3a', '#2d1b69', '#1e1b4b']
|
|
42
|
-
})
|
|
43
|
-
})
|
|
44
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
45
|
-
style: styles.gameOverModal,
|
|
46
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
47
|
-
style: styles.gameOverEmoji,
|
|
48
|
-
children: "\uD83D\uDE80"
|
|
49
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
50
|
-
style: styles.gameOverTitle,
|
|
51
|
-
children: "Mission Complete!"
|
|
52
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
53
|
-
style: styles.scoreContainer,
|
|
54
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
55
|
-
style: styles.finalScoreLabel,
|
|
56
|
-
children: "Final Score"
|
|
57
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
58
|
-
style: styles.finalScoreValue,
|
|
59
|
-
children: score
|
|
60
|
-
})]
|
|
61
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
62
|
-
onPress: onPlayAgain,
|
|
63
|
-
style: styles.playAgainButton,
|
|
64
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
65
|
-
style: styles.playAgainText,
|
|
66
|
-
children: "\uD83D\uDE80 Launch Again"
|
|
67
|
-
})
|
|
68
|
-
})]
|
|
69
|
-
})]
|
|
70
|
-
})
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
const styles = StyleSheet.create({
|
|
74
|
-
gameOverOverlay: {
|
|
75
|
-
flex: 1,
|
|
76
|
-
backgroundColor: 'rgba(12, 10, 31, 0.3)',
|
|
77
|
-
// Deep space overlay
|
|
78
|
-
justifyContent: 'center',
|
|
79
|
-
alignItems: 'center'
|
|
80
|
-
},
|
|
81
|
-
gameOverModal: {
|
|
82
|
-
backgroundColor: 'rgba(30, 27, 75, 0.5)',
|
|
83
|
-
// Deep space blue with transparency
|
|
84
|
-
borderRadius: 24,
|
|
85
|
-
padding: 32,
|
|
86
|
-
marginHorizontal: 24,
|
|
87
|
-
shadowColor: '#000',
|
|
88
|
-
shadowOffset: {
|
|
89
|
-
width: 0,
|
|
90
|
-
height: 8
|
|
91
|
-
},
|
|
92
|
-
shadowOpacity: 0.6,
|
|
93
|
-
shadowRadius: 16,
|
|
94
|
-
elevation: 16,
|
|
95
|
-
borderWidth: 2,
|
|
96
|
-
borderColor: 'rgba(139, 92, 246, 0.6)',
|
|
97
|
-
// Purple space border
|
|
98
|
-
maxWidth: 400,
|
|
99
|
-
width: '100%'
|
|
100
|
-
},
|
|
101
|
-
gameOverEmoji: {
|
|
102
|
-
fontSize: 64,
|
|
103
|
-
textAlign: 'center',
|
|
104
|
-
marginBottom: 16
|
|
105
|
-
},
|
|
106
|
-
gameOverTitle: {
|
|
107
|
-
color: '#ffffff',
|
|
108
|
-
fontSize: 28,
|
|
109
|
-
fontWeight: 'bold',
|
|
110
|
-
textAlign: 'center',
|
|
111
|
-
marginBottom: 24,
|
|
112
|
-
textShadowColor: 'rgba(0,0,0,0.5)',
|
|
113
|
-
textShadowOffset: {
|
|
114
|
-
width: 2,
|
|
115
|
-
height: 2
|
|
116
|
-
},
|
|
117
|
-
textShadowRadius: 4
|
|
118
|
-
},
|
|
119
|
-
scoreContainer: {
|
|
120
|
-
alignItems: 'center',
|
|
121
|
-
marginBottom: 20,
|
|
122
|
-
backgroundColor: 'rgba(45, 27, 105, 0.8)',
|
|
123
|
-
// Darker space blue
|
|
124
|
-
borderRadius: 16,
|
|
125
|
-
padding: 20,
|
|
126
|
-
borderWidth: 1,
|
|
127
|
-
borderColor: 'rgba(139, 92, 246, 0.3)'
|
|
128
|
-
},
|
|
129
|
-
finalScoreLabel: {
|
|
130
|
-
fontSize: 18,
|
|
131
|
-
color: '#e2e8f0',
|
|
132
|
-
fontWeight: 'bold',
|
|
133
|
-
marginBottom: 8,
|
|
134
|
-
textShadowColor: 'rgba(0,0,0,0.5)',
|
|
135
|
-
textShadowOffset: {
|
|
136
|
-
width: 1,
|
|
137
|
-
height: 1
|
|
138
|
-
},
|
|
139
|
-
textShadowRadius: 2
|
|
140
|
-
},
|
|
141
|
-
finalScoreValue: {
|
|
142
|
-
fontSize: 36,
|
|
143
|
-
color: '#fbbf24',
|
|
144
|
-
// Bright yellow
|
|
145
|
-
fontWeight: 'bold',
|
|
146
|
-
textAlign: 'center',
|
|
147
|
-
textShadowColor: 'rgba(0,0,0,0.5)',
|
|
148
|
-
textShadowOffset: {
|
|
149
|
-
width: 2,
|
|
150
|
-
height: 2
|
|
151
|
-
},
|
|
152
|
-
textShadowRadius: 4
|
|
153
|
-
},
|
|
154
|
-
playAgainButton: {
|
|
155
|
-
backgroundColor: '#22c55e',
|
|
156
|
-
// Bright green
|
|
157
|
-
paddingVertical: 18,
|
|
158
|
-
paddingHorizontal: 36,
|
|
159
|
-
borderRadius: 20,
|
|
160
|
-
shadowColor: '#000',
|
|
161
|
-
shadowOffset: {
|
|
162
|
-
width: 0,
|
|
163
|
-
height: 4
|
|
164
|
-
},
|
|
165
|
-
shadowOpacity: 0.3,
|
|
166
|
-
shadowRadius: 8,
|
|
167
|
-
elevation: 8
|
|
168
|
-
},
|
|
169
|
-
playAgainText: {
|
|
170
|
-
color: '#ffffff',
|
|
171
|
-
fontWeight: 'bold',
|
|
172
|
-
fontSize: 18,
|
|
173
|
-
textAlign: 'center',
|
|
174
|
-
textShadowColor: 'rgba(0,0,0,0.3)',
|
|
175
|
-
textShadowOffset: {
|
|
176
|
-
width: 1,
|
|
177
|
-
height: 1
|
|
178
|
-
},
|
|
179
|
-
textShadowRadius: 2
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
//# sourceMappingURL=GameOverModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","TouchableOpacity","Text","Modal","StyleSheet","Dimensions","Canvas","LinearGradient","Rect","vec","jsx","_jsx","jsxs","_jsxs","width","height","get","GameOverModal","isVisible","score","onPlayAgain","visible","transparent","animationType","onRequestClose","children","style","styles","gameOverOverlay","position","top","left","right","bottom","x","y","start","end","colors","gameOverModal","gameOverEmoji","gameOverTitle","scoreContainer","finalScoreLabel","finalScoreValue","onPress","playAgainButton","playAgainText","create","flex","backgroundColor","justifyContent","alignItems","borderRadius","padding","marginHorizontal","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","maxWidth","fontSize","textAlign","marginBottom","color","fontWeight","textShadowColor","textShadowOffset","textShadowRadius","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../../src","sources":["games/space-fighter/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC1F,SAASC,MAAM,EAAEC,cAAc,EAAEC,IAAI,EAAEC,GAAG,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/E,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC;AAQlD,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,SAAS;EAAEC,KAAK;EAAEC;AAAY,CAAC,KAAK;EAEhG,oBACET,IAAA,CAACR,KAAK;IACJkB,OAAO,EAAEH,SAAU;IACnBI,WAAW,EAAE,IAAK;IAClBC,aAAa,EAAC,MAAM;IACpBC,cAAc,EAAEA,CAAA,KAAM,CAAC,CAAE;IAAAC,QAAA,eAEzBZ,KAAA,CAACb,IAAI;MAAC0B,KAAK,EAAEC,MAAM,CAACC,eAAgB;MAAAH,QAAA,gBAElCd,IAAA,CAACL,MAAM;QAACoB,KAAK,EAAE;UAAEG,QAAQ,EAAE,UAAU;UAAEC,GAAG,EAAE,CAAC;UAAEC,IAAI,EAAE,CAAC;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE,CAAC;UAAEnB,KAAK;UAAEC;QAAO,CAAE;QAAAU,QAAA,eAC3Fd,IAAA,CAACH,IAAI;UAAC0B,CAAC,EAAE,CAAE;UAACC,CAAC,EAAE,CAAE;UAACrB,KAAK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,SAAS;IAChBC,UAAU,EAAE,MAAM;IAClBF,YAAY,EAAE,CAAC;IACfG,eAAe,EAAE,iBAAiB;IAClCC,gBAAgB,EAAE;MAAExD,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACzCwD,gBAAgB,EAAE;EACpB,CAAC;EACD3B,eAAe,EAAE;IACfoB,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAE,SAAS;IAAE;IAClBC,UAAU,EAAE,MAAM;IAClBH,SAAS,EAAE,QAAQ;IACnBI,eAAe,EAAE,iBAAiB;IAClCC,gBAAgB,EAAE;MAAExD,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACzCwD,gBAAgB,EAAE;EACpB,CAAC;EACDzB,eAAe,EAAE;IACfI,eAAe,EAAE,SAAS;IAAE;IAC5BsB,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBpB,YAAY,EAAE,EAAE;IAChBG,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAE3C,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrC2C,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDb,aAAa,EAAE;IACboB,KAAK,EAAE,SAAS;IAChBC,UAAU,EAAE,MAAM;IAClBJ,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBI,eAAe,EAAE,iBAAiB;IAClCC,gBAAgB,EAAE;MAAExD,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACzCwD,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const ParticleComponent = ({
|
|
7
|
-
particle
|
|
8
|
-
}) => {
|
|
9
|
-
const opacity = particle.life / particle.maxLife;
|
|
10
|
-
// Use the particle's size property, scaled by opacity for fade effect
|
|
11
|
-
const size = particle.size * opacity;
|
|
12
|
-
return /*#__PURE__*/_jsx(View, {
|
|
13
|
-
style: {
|
|
14
|
-
position: 'absolute',
|
|
15
|
-
left: particle.x - size / 2,
|
|
16
|
-
top: particle.y - size / 2,
|
|
17
|
-
width: size,
|
|
18
|
-
height: size,
|
|
19
|
-
borderRadius: size / 2,
|
|
20
|
-
backgroundColor: particle.color,
|
|
21
|
-
opacity,
|
|
22
|
-
// Add shadow for more dramatic effect on larger particles
|
|
23
|
-
shadowColor: particle.color,
|
|
24
|
-
shadowOffset: {
|
|
25
|
-
width: 0,
|
|
26
|
-
height: 0
|
|
27
|
-
},
|
|
28
|
-
shadowOpacity: 0.6,
|
|
29
|
-
shadowRadius: size * 0.3,
|
|
30
|
-
elevation: 5
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=ParticleComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","jsx","_jsx","ParticleComponent","particle","opacity","life","maxLife","size","style","position","left","x","top","y","width","height","borderRadius","backgroundColor","color","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../src","sources":["games/space-fighter/components/ParticleComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOpC,OAAO,MAAMC,iBAAmD,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACnF,MAAMC,OAAO,GAAGD,QAAQ,CAACE,IAAI,GAAGF,QAAQ,CAACG,OAAO;EAChD;EACA,MAAMC,IAAI,GAAGJ,QAAQ,CAACI,IAAI,GAAGH,OAAO;EAEpC,oBACEH,IAAA,CAACF,IAAI;IACHS,KAAK,EAAE;MACLC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAEP,QAAQ,CAACQ,CAAC,GAAGJ,IAAI,GAAG,CAAC;MAC3BK,GAAG,EAAET,QAAQ,CAACU,CAAC,GAAGN,IAAI,GAAG,CAAC;MAC1BO,KAAK,EAAEP,IAAI;MACXQ,MAAM,EAAER,IAAI;MACZS,YAAY,EAAET,IAAI,GAAG,CAAC;MACtBU,eAAe,EAAEd,QAAQ,CAACe,KAAK;MAC/Bd,OAAO;MACP;MACAe,WAAW,EAAEhB,QAAQ,CAACe,KAAK;MAC3BE,YAAY,EAAE;QAAEN,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MACrCM,aAAa,EAAE,GAAG;MAClBC,YAAY,EAAEf,IAAI,GAAG,GAAG;MACxBgB,SAAS,EAAE;IACb;EAAE,CACH,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, TouchableOpacity, Text, Modal, StyleSheet } from 'react-native';
|
|
5
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
export const SettingsModal = ({
|
|
7
|
-
isVisible,
|
|
8
|
-
onClose,
|
|
9
|
-
onResetHighScore
|
|
10
|
-
}) => {
|
|
11
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
12
|
-
visible: isVisible,
|
|
13
|
-
transparent: true,
|
|
14
|
-
animationType: "slide",
|
|
15
|
-
onRequestClose: onClose,
|
|
16
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
17
|
-
style: styles.settingsOverlay,
|
|
18
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
19
|
-
style: styles.settingsModal,
|
|
20
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
21
|
-
style: styles.settingsEmoji,
|
|
22
|
-
children: "\u2699\uFE0F"
|
|
23
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
24
|
-
style: styles.settingsTitle,
|
|
25
|
-
children: "Game Settings"
|
|
26
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
27
|
-
style: styles.gameInfoContainer,
|
|
28
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
29
|
-
style: styles.gameInfoTitle,
|
|
30
|
-
children: "Game Controls"
|
|
31
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
32
|
-
style: styles.gameInfoText,
|
|
33
|
-
children: "\uD83D\uDE80 Touch and drag to control spacecraft"
|
|
34
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
35
|
-
style: styles.gameInfoText,
|
|
36
|
-
children: "\uD83E\uDEA8 Avoid asteroids to survive"
|
|
37
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
38
|
-
style: styles.gameInfoText,
|
|
39
|
-
children: "\u23F1\uFE0F Survive as long as possible"
|
|
40
|
-
})]
|
|
41
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
42
|
-
style: styles.scoringContainer,
|
|
43
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
44
|
-
style: styles.scoringTitle,
|
|
45
|
-
children: "Scoring System"
|
|
46
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
47
|
-
style: styles.rookieText,
|
|
48
|
-
children: "\uD83D\uDE80 Rookie Astronaut: 0-49 points"
|
|
49
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
50
|
-
style: styles.navigatorText,
|
|
51
|
-
children: "\uD83E\uDD48 Space Navigator: 50-99 points"
|
|
52
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
53
|
-
style: styles.aceText,
|
|
54
|
-
children: "\uD83E\uDD47 Ace Pilot: 100-199 points"
|
|
55
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
56
|
-
style: styles.commanderText,
|
|
57
|
-
children: "\uD83C\uDFC6 Space Commander: 200+ points"
|
|
58
|
-
})]
|
|
59
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
60
|
-
style: styles.actionButtonsContainer,
|
|
61
|
-
children: [onResetHighScore && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
62
|
-
onPress: onResetHighScore,
|
|
63
|
-
style: styles.resetButton,
|
|
64
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
65
|
-
style: styles.resetButtonText,
|
|
66
|
-
children: "\uD83D\uDDD1\uFE0F Reset High Score"
|
|
67
|
-
})
|
|
68
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
69
|
-
onPress: onClose,
|
|
70
|
-
style: styles.closeSettingsButton,
|
|
71
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
72
|
-
style: styles.closeSettingsText,
|
|
73
|
-
children: "\u2705 Close Settings"
|
|
74
|
-
})
|
|
75
|
-
})]
|
|
76
|
-
})]
|
|
77
|
-
})
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
const styles = StyleSheet.create({
|
|
82
|
-
settingsOverlay: {
|
|
83
|
-
flex: 1,
|
|
84
|
-
backgroundColor: 'rgba(0, 0, 0, 0.85)',
|
|
85
|
-
justifyContent: 'center',
|
|
86
|
-
alignItems: 'center'
|
|
87
|
-
},
|
|
88
|
-
settingsModal: {
|
|
89
|
-
backgroundColor: '#1e3a8a',
|
|
90
|
-
// bg-blue-900
|
|
91
|
-
borderRadius: 24,
|
|
92
|
-
padding: 32,
|
|
93
|
-
marginHorizontal: 24,
|
|
94
|
-
shadowColor: '#000',
|
|
95
|
-
shadowOffset: {
|
|
96
|
-
width: 0,
|
|
97
|
-
height: 4
|
|
98
|
-
},
|
|
99
|
-
shadowOpacity: 0.5,
|
|
100
|
-
shadowRadius: 8,
|
|
101
|
-
elevation: 10,
|
|
102
|
-
borderWidth: 2,
|
|
103
|
-
borderColor: '#1d4ed8',
|
|
104
|
-
// border-blue-700
|
|
105
|
-
maxWidth: 400,
|
|
106
|
-
width: '100%'
|
|
107
|
-
},
|
|
108
|
-
settingsEmoji: {
|
|
109
|
-
fontSize: 48,
|
|
110
|
-
textAlign: 'center',
|
|
111
|
-
marginBottom: 16
|
|
112
|
-
},
|
|
113
|
-
settingsTitle: {
|
|
114
|
-
color: '#ffffff',
|
|
115
|
-
fontSize: 24,
|
|
116
|
-
fontWeight: 'bold',
|
|
117
|
-
textAlign: 'center',
|
|
118
|
-
marginBottom: 32
|
|
119
|
-
},
|
|
120
|
-
gameInfoContainer: {
|
|
121
|
-
marginBottom: 24,
|
|
122
|
-
backgroundColor: '#1e40af',
|
|
123
|
-
// bg-blue-800
|
|
124
|
-
borderRadius: 16,
|
|
125
|
-
padding: 16
|
|
126
|
-
},
|
|
127
|
-
gameInfoTitle: {
|
|
128
|
-
fontSize: 18,
|
|
129
|
-
color: '#ffffff',
|
|
130
|
-
fontWeight: 'bold',
|
|
131
|
-
marginBottom: 12,
|
|
132
|
-
textAlign: 'center'
|
|
133
|
-
},
|
|
134
|
-
gameInfoText: {
|
|
135
|
-
color: '#ffffff',
|
|
136
|
-
textAlign: 'center',
|
|
137
|
-
marginBottom: 8
|
|
138
|
-
},
|
|
139
|
-
scoringContainer: {
|
|
140
|
-
marginBottom: 24,
|
|
141
|
-
backgroundColor: '#1d4ed8',
|
|
142
|
-
// bg-blue-700
|
|
143
|
-
borderRadius: 12,
|
|
144
|
-
padding: 16
|
|
145
|
-
},
|
|
146
|
-
scoringTitle: {
|
|
147
|
-
fontSize: 18,
|
|
148
|
-
color: '#ffffff',
|
|
149
|
-
fontWeight: 'bold',
|
|
150
|
-
marginBottom: 12,
|
|
151
|
-
textAlign: 'center'
|
|
152
|
-
},
|
|
153
|
-
rookieText: {
|
|
154
|
-
color: '#22d3ee',
|
|
155
|
-
// text-cyan-400
|
|
156
|
-
textAlign: 'center',
|
|
157
|
-
marginBottom: 4
|
|
158
|
-
},
|
|
159
|
-
navigatorText: {
|
|
160
|
-
color: '#fb923c',
|
|
161
|
-
// text-orange-400
|
|
162
|
-
textAlign: 'center',
|
|
163
|
-
marginBottom: 4
|
|
164
|
-
},
|
|
165
|
-
aceText: {
|
|
166
|
-
color: '#d1d5db',
|
|
167
|
-
// text-gray-300
|
|
168
|
-
textAlign: 'center',
|
|
169
|
-
marginBottom: 4
|
|
170
|
-
},
|
|
171
|
-
commanderText: {
|
|
172
|
-
color: '#fbbf24',
|
|
173
|
-
// text-yellow-400
|
|
174
|
-
textAlign: 'center'
|
|
175
|
-
},
|
|
176
|
-
actionButtonsContainer: {
|
|
177
|
-
gap: 12
|
|
178
|
-
},
|
|
179
|
-
resetButton: {
|
|
180
|
-
backgroundColor: '#dc2626',
|
|
181
|
-
// bg-red-600
|
|
182
|
-
paddingVertical: 16,
|
|
183
|
-
paddingHorizontal: 24,
|
|
184
|
-
borderRadius: 16,
|
|
185
|
-
shadowColor: '#000',
|
|
186
|
-
shadowOffset: {
|
|
187
|
-
width: 0,
|
|
188
|
-
height: 2
|
|
189
|
-
},
|
|
190
|
-
shadowOpacity: 0.25,
|
|
191
|
-
shadowRadius: 3.84,
|
|
192
|
-
elevation: 5
|
|
193
|
-
},
|
|
194
|
-
resetButtonText: {
|
|
195
|
-
color: '#ffffff',
|
|
196
|
-
fontWeight: 'bold',
|
|
197
|
-
fontSize: 18,
|
|
198
|
-
textAlign: 'center'
|
|
199
|
-
},
|
|
200
|
-
closeSettingsButton: {
|
|
201
|
-
backgroundColor: '#4b5563',
|
|
202
|
-
// bg-gray-600
|
|
203
|
-
paddingVertical: 16,
|
|
204
|
-
paddingHorizontal: 24,
|
|
205
|
-
borderRadius: 16,
|
|
206
|
-
shadowColor: '#000',
|
|
207
|
-
shadowOffset: {
|
|
208
|
-
width: 0,
|
|
209
|
-
height: 2
|
|
210
|
-
},
|
|
211
|
-
shadowOpacity: 0.25,
|
|
212
|
-
shadowRadius: 3.84,
|
|
213
|
-
elevation: 5
|
|
214
|
-
},
|
|
215
|
-
closeSettingsText: {
|
|
216
|
-
color: '#ffffff',
|
|
217
|
-
fontWeight: 'bold',
|
|
218
|
-
fontSize: 18,
|
|
219
|
-
textAlign: 'center'
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
//# sourceMappingURL=SettingsModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","TouchableOpacity","Text","Modal","StyleSheet","jsx","_jsx","jsxs","_jsxs","SettingsModal","isVisible","onClose","onResetHighScore","visible","transparent","animationType","onRequestClose","children","style","styles","settingsOverlay","settingsModal","settingsEmoji","settingsTitle","gameInfoContainer","gameInfoTitle","gameInfoText","scoringContainer","scoringTitle","rookieText","navigatorText","aceText","commanderText","actionButtonsContainer","onPress","resetButton","resetButtonText","closeSettingsButton","closeSettingsText","create","flex","backgroundColor","justifyContent","alignItems","borderRadius","padding","marginHorizontal","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","maxWidth","fontSize","textAlign","marginBottom","color","fontWeight","gap","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../../src","sources":["games/space-fighter/components/SettingsModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ/E,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,SAAS;EAAEC,OAAO;EAAEC;AAAiB,CAAC,KAAK;EACvG,oBACEN,IAAA,CAACH,KAAK;IACJU,OAAO,EAAEH,SAAU;IACnBI,WAAW,EAAE,IAAK;IAClBC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAEL,OAAQ;IAAAM,QAAA,eAExBX,IAAA,CAACN,IAAI;MAACkB,KAAK,EAAEC,MAAM,CAACC,eAAgB;MAAAH,QAAA,eAClCT,KAAA,CAACR,IAAI;QAACkB,KAAK,EAAEC,MAAM,CAACE,aAAc;QAAAJ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Text","StyleSheet","Modal","jsx","_jsx","jsxs","_jsxs","GameOverModal","memo","isVisible","score","onPlayAgain","visible","animationType","transparent","onRequestClose","children","style","styles","gameOverOverlay","gameOverModal","modalContent","gameOverTitle","finalScoreContainer","finalScoreLabel","finalScoreValue","playAgainContainer","playAgainButton","onPress","buttonText","create","flex","justifyContent","alignItems","backgroundColor","borderRadius","minWidth","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderWidth","borderColor","padding","fontSize","fontWeight","color","marginBottom","textAlign","paddingHorizontal","paddingVertical","lineHeight"],"sourceRoot":"../../../../../src","sources":["games/whack-a-mole/components/GameOverModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ/E,OAAO,MAAMC,aAA2C,gBAAGV,KAAK,CAACW,IAAI,CAAC,CAAC;EAAEC,SAAS;EAAEC,KAAK;EAAEC;AAAY,CAAC,KAAK;EAC3G,oBACEP,IAAA,CAACF,KAAK;IACJU,OAAO,EAAEH,SAAU;IACnBI,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,cAAc,EAAEJ,WAAY;IAAAK,QAAA,eAE5BZ,IAAA,CAACN,IAAI;MAACmB,KAAK,EAAEC,MAAM,CAACC,eAAgB;MAAAH,QAAA,eAClCZ,IAAA,CAACN,IAAI;QAACmB,KAAK,EAAEC,MAAM,CAACE,aAAc;QAAAJ,QAAA,eAChCV,KAAA,CAACR,IAAI;UAACmB,KAAK,EAAEC,MAAM,CAACG,YAAa;UAAAL,QAAA,gBAC/BZ,IAAA,CAACJ,IAAI;YAACiB,KAAK,EAAEC,MAAM,CAACI,aAAc;YAAAN,QAAA,EAAC;UAAU,CAAM,CAAC,eACpDV,KAAA,CAACR,IAAI;YAAC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