react-native-games 0.3.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/LICENSE +66 -0
- package/README.md +269 -0
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +391 -0
- package/lib/module/games/balloon-blaster/BalloonBlaster.js.map +1 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js +293 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterService.js.map +1 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js +156 -0
- package/lib/module/games/balloon-blaster/BalloonBlasterStore.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js +227 -0
- package/lib/module/games/balloon-blaster/components/BalloonComponent.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/GameArea.js +42 -0
- package/lib/module/games/balloon-blaster/components/GameArea.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/GameBackground.js +544 -0
- package/lib/module/games/balloon-blaster/components/GameBackground.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/GameControls.js +229 -0
- package/lib/module/games/balloon-blaster/components/GameControls.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/GameOverModal.js +133 -0
- package/lib/module/games/balloon-blaster/components/GameOverModal.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js +52 -0
- package/lib/module/games/balloon-blaster/components/ParticleSystem.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js +119 -0
- package/lib/module/games/balloon-blaster/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/SliceTrail.js +58 -0
- package/lib/module/games/balloon-blaster/components/SliceTrail.js.map +1 -0
- package/lib/module/games/balloon-blaster/components/index.js +11 -0
- package/lib/module/games/balloon-blaster/components/index.js.map +1 -0
- package/lib/module/games/cat-popper/CatPopper.js +230 -0
- package/lib/module/games/cat-popper/CatPopper.js.map +1 -0
- package/lib/module/games/cat-popper/CatPopperService.js +100 -0
- package/lib/module/games/cat-popper/CatPopperService.js.map +1 -0
- package/lib/module/games/cat-popper/CatPopperStore.js +113 -0
- package/lib/module/games/cat-popper/CatPopperStore.js.map +1 -0
- package/lib/module/games/cat-popper/components/CatCharacter.js +281 -0
- package/lib/module/games/cat-popper/components/CatCharacter.js.map +1 -0
- package/lib/module/games/cat-popper/components/GameBackground.js +531 -0
- package/lib/module/games/cat-popper/components/GameBackground.js.map +1 -0
- package/lib/module/games/cat-popper/components/GameControls.js +230 -0
- package/lib/module/games/cat-popper/components/GameControls.js.map +1 -0
- package/lib/module/games/cat-popper/components/GameGrid.js +66 -0
- package/lib/module/games/cat-popper/components/GameGrid.js.map +1 -0
- package/lib/module/games/cat-popper/components/GameHole.js +183 -0
- package/lib/module/games/cat-popper/components/GameHole.js.map +1 -0
- package/lib/module/games/cat-popper/components/GameOverModal.js +131 -0
- package/lib/module/games/cat-popper/components/GameOverModal.js.map +1 -0
- package/lib/module/games/cat-popper/components/ScoreBoard.js +77 -0
- package/lib/module/games/cat-popper/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/cat-popper/components/index.js +10 -0
- package/lib/module/games/cat-popper/components/index.js.map +1 -0
- package/lib/module/games/fruit-slicer/FruitSlicer.js +411 -0
- package/lib/module/games/fruit-slicer/FruitSlicer.js.map +1 -0
- package/lib/module/games/fruit-slicer/FruitSlicerService.js +293 -0
- package/lib/module/games/fruit-slicer/FruitSlicerService.js.map +1 -0
- package/lib/module/games/fruit-slicer/FruitSlicerStore.js +156 -0
- package/lib/module/games/fruit-slicer/FruitSlicerStore.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/FruitComponent.js +99 -0
- package/lib/module/games/fruit-slicer/components/FruitComponent.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/GameArea.js +50 -0
- package/lib/module/games/fruit-slicer/components/GameArea.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/GameBackground.js +1296 -0
- package/lib/module/games/fruit-slicer/components/GameBackground.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/GameControls.js +230 -0
- package/lib/module/games/fruit-slicer/components/GameControls.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/GameOverModal.js +189 -0
- package/lib/module/games/fruit-slicer/components/GameOverModal.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/ParticleSystem.js +52 -0
- package/lib/module/games/fruit-slicer/components/ParticleSystem.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/ScoreBoard.js +121 -0
- package/lib/module/games/fruit-slicer/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/SliceTrail.js +58 -0
- package/lib/module/games/fruit-slicer/components/SliceTrail.js.map +1 -0
- package/lib/module/games/fruit-slicer/components/index.js +11 -0
- package/lib/module/games/fruit-slicer/components/index.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunner.js +242 -0
- package/lib/module/games/maze-runner/MazeRunner.js.map +1 -0
- package/lib/module/games/maze-runner/MazeRunnerService.js +560 -0
- package/lib/module/games/maze-runner/MazeRunnerService.js.map +1 -0
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js +149 -0
- package/lib/module/games/maze-runner/components/EnhancedBallComponent.js.map +1 -0
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js +357 -0
- package/lib/module/games/maze-runner/components/EnhancedGameArea.js.map +1 -0
- package/lib/module/games/maze-runner/components/GameBackground.js +216 -0
- package/lib/module/games/maze-runner/components/GameBackground.js.map +1 -0
- package/lib/module/games/maze-runner/components/GameControls.js +129 -0
- package/lib/module/games/maze-runner/components/GameControls.js.map +1 -0
- package/lib/module/games/maze-runner/components/GameOverModal.js +134 -0
- package/lib/module/games/maze-runner/components/GameOverModal.js.map +1 -0
- package/lib/module/games/maze-runner/components/ScoreBoard.js +81 -0
- package/lib/module/games/maze-runner/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/maze-runner/components/SkiaPipeComponent.js +209 -0
- package/lib/module/games/maze-runner/components/SkiaPipeComponent.js.map +1 -0
- package/lib/module/games/maze-runner/components/StaticGameBackground.js +169 -0
- package/lib/module/games/maze-runner/components/StaticGameBackground.js.map +1 -0
- package/lib/module/games/maze-runner/components/WallComponent.js +90 -0
- package/lib/module/games/maze-runner/components/WallComponent.js.map +1 -0
- package/lib/module/games/maze-runner/components/index.js +10 -0
- package/lib/module/games/maze-runner/components/index.js.map +1 -0
- package/lib/module/games/space-traveller/SpaceTraveller.js +393 -0
- package/lib/module/games/space-traveller/SpaceTraveller.js.map +1 -0
- package/lib/module/games/space-traveller/SpaceTravellerService.js +298 -0
- package/lib/module/games/space-traveller/SpaceTravellerService.js.map +1 -0
- package/lib/module/games/space-traveller/SpaceTravellerStore.js +139 -0
- package/lib/module/games/space-traveller/SpaceTravellerStore.js.map +1 -0
- package/lib/module/games/space-traveller/components/AsteroidComponent.js +111 -0
- package/lib/module/games/space-traveller/components/AsteroidComponent.js.map +1 -0
- package/lib/module/games/space-traveller/components/GameArea.js +75 -0
- package/lib/module/games/space-traveller/components/GameArea.js.map +1 -0
- package/lib/module/games/space-traveller/components/GameBackground.js +294 -0
- package/lib/module/games/space-traveller/components/GameBackground.js.map +1 -0
- package/lib/module/games/space-traveller/components/GameControls.js +177 -0
- package/lib/module/games/space-traveller/components/GameControls.js.map +1 -0
- package/lib/module/games/space-traveller/components/GameOverModal.js +182 -0
- package/lib/module/games/space-traveller/components/GameOverModal.js.map +1 -0
- package/lib/module/games/space-traveller/components/ParticleComponent.js +34 -0
- package/lib/module/games/space-traveller/components/ParticleComponent.js.map +1 -0
- package/lib/module/games/space-traveller/components/ScoreBoard.js +143 -0
- package/lib/module/games/space-traveller/components/ScoreBoard.js.map +1 -0
- package/lib/module/games/space-traveller/components/SettingsModal.js +222 -0
- package/lib/module/games/space-traveller/components/SettingsModal.js.map +1 -0
- package/lib/module/games/space-traveller/components/Spacecraft3D.js +362 -0
- package/lib/module/games/space-traveller/components/Spacecraft3D.js.map +1 -0
- package/lib/module/games/space-traveller/components/SpacecraftPath.js +37 -0
- package/lib/module/games/space-traveller/components/SpacecraftPath.js.map +1 -0
- package/lib/module/games/space-traveller/components/index.js +13 -0
- package/lib/module/games/space-traveller/components/index.js.map +1 -0
- package/lib/module/index.js +12 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/services/GamesConstants.js +561 -0
- package/lib/module/services/GamesConstants.js.map +1 -0
- package/lib/module/services/GamesService.js +34 -0
- package/lib/module/services/GamesService.js.map +1 -0
- package/lib/module/shared/settings/GameSettings.js +295 -0
- package/lib/module/shared/settings/GameSettings.js.map +1 -0
- package/lib/module/shared/settings/SettingsService.js +119 -0
- package/lib/module/shared/settings/SettingsService.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts +16 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlaster.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts +66 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterService.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts +37 -0
- package/lib/typescript/src/games/balloon-blaster/BalloonBlasterStore.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts +10 -0
- package/lib/typescript/src/games/balloon-blaster/components/BalloonComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts +17 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts +10 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameControls.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts +9 -0
- package/lib/typescript/src/games/balloon-blaster/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts +8 -0
- package/lib/typescript/src/games/balloon-blaster/components/ParticleSystem.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts +9 -0
- package/lib/typescript/src/games/balloon-blaster/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts +11 -0
- package/lib/typescript/src/games/balloon-blaster/components/SliceTrail.d.ts.map +1 -0
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts +9 -0
- package/lib/typescript/src/games/balloon-blaster/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/CatPopper.d.ts +13 -0
- package/lib/typescript/src/games/cat-popper/CatPopper.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts +32 -0
- package/lib/typescript/src/games/cat-popper/CatPopperService.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts +21 -0
- package/lib/typescript/src/games/cat-popper/CatPopperStore.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts +7 -0
- package/lib/typescript/src/games/cat-popper/components/CatCharacter.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/cat-popper/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts +10 -0
- package/lib/typescript/src/games/cat-popper/components/GameControls.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts +13 -0
- package/lib/typescript/src/games/cat-popper/components/GameGrid.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts +12 -0
- package/lib/typescript/src/games/cat-popper/components/GameHole.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts +9 -0
- package/lib/typescript/src/games/cat-popper/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts +8 -0
- package/lib/typescript/src/games/cat-popper/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/cat-popper/components/index.d.ts +8 -0
- package/lib/typescript/src/games/cat-popper/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts +16 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicer.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts +67 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerService.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts +37 -0
- package/lib/typescript/src/games/fruit-slicer/FruitSlicerStore.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts +10 -0
- package/lib/typescript/src/games/fruit-slicer/components/FruitComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts +17 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts +10 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameControls.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts +9 -0
- package/lib/typescript/src/games/fruit-slicer/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts +8 -0
- package/lib/typescript/src/games/fruit-slicer/components/ParticleSystem.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts +9 -0
- package/lib/typescript/src/games/fruit-slicer/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts +11 -0
- package/lib/typescript/src/games/fruit-slicer/components/SliceTrail.d.ts.map +1 -0
- package/lib/typescript/src/games/fruit-slicer/components/index.d.ts +9 -0
- package/lib/typescript/src/games/fruit-slicer/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts +18 -0
- package/lib/typescript/src/games/maze-runner/MazeRunner.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts +82 -0
- package/lib/typescript/src/games/maze-runner/MazeRunnerService.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts +11 -0
- package/lib/typescript/src/games/maze-runner/components/EnhancedBallComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts +12 -0
- package/lib/typescript/src/games/maze-runner/components/EnhancedGameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/maze-runner/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts +10 -0
- package/lib/typescript/src/games/maze-runner/components/GameControls.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts +11 -0
- package/lib/typescript/src/games/maze-runner/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts +8 -0
- package/lib/typescript/src/games/maze-runner/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/SkiaPipeComponent.d.ts +25 -0
- package/lib/typescript/src/games/maze-runner/components/SkiaPipeComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/StaticGameBackground.d.ts +7 -0
- package/lib/typescript/src/games/maze-runner/components/StaticGameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts +10 -0
- package/lib/typescript/src/games/maze-runner/components/WallComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/maze-runner/components/index.d.ts +8 -0
- package/lib/typescript/src/games/maze-runner/components/index.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts +17 -0
- package/lib/typescript/src/games/space-traveller/SpaceTraveller.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts +65 -0
- package/lib/typescript/src/games/space-traveller/SpaceTravellerService.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts +35 -0
- package/lib/typescript/src/games/space-traveller/SpaceTravellerStore.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts +9 -0
- package/lib/typescript/src/games/space-traveller/components/AsteroidComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts +17 -0
- package/lib/typescript/src/games/space-traveller/components/GameArea.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts +7 -0
- package/lib/typescript/src/games/space-traveller/components/GameBackground.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts +10 -0
- package/lib/typescript/src/games/space-traveller/components/GameControls.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts +9 -0
- package/lib/typescript/src/games/space-traveller/components/GameOverModal.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts +8 -0
- package/lib/typescript/src/games/space-traveller/components/ParticleComponent.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts +8 -0
- package/lib/typescript/src/games/space-traveller/components/ScoreBoard.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts +9 -0
- package/lib/typescript/src/games/space-traveller/components/SettingsModal.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts +9 -0
- package/lib/typescript/src/games/space-traveller/components/Spacecraft3D.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts +10 -0
- package/lib/typescript/src/games/space-traveller/components/SpacecraftPath.d.ts.map +1 -0
- package/lib/typescript/src/games/space-traveller/components/index.d.ts +11 -0
- package/lib/typescript/src/games/space-traveller/components/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/services/GamesConstants.d.ts +372 -0
- package/lib/typescript/src/services/GamesConstants.d.ts.map +1 -0
- package/lib/typescript/src/services/GamesService.d.ts +8 -0
- package/lib/typescript/src/services/GamesService.d.ts.map +1 -0
- package/lib/typescript/src/shared/settings/GameSettings.d.ts +36 -0
- package/lib/typescript/src/shared/settings/GameSettings.d.ts.map +1 -0
- package/lib/typescript/src/shared/settings/SettingsService.d.ts +32 -0
- package/lib/typescript/src/shared/settings/SettingsService.d.ts.map +1 -0
- package/package.json +125 -0
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { gamesList } from "./GamesService.js";
|
|
4
|
+
import { Dimensions } from 'react-native';
|
|
5
|
+
const {
|
|
6
|
+
width
|
|
7
|
+
} = Dimensions.get('window');
|
|
8
|
+
|
|
9
|
+
// Game Theme Constants
|
|
10
|
+
export const GAME_THEMES = {
|
|
11
|
+
balloonBlaster: {
|
|
12
|
+
backgroundColor: '#87CEEB',
|
|
13
|
+
// Sky blue
|
|
14
|
+
headerBackgroundColor: 'rgba(20, 83, 45, 0.8)',
|
|
15
|
+
// Green with transparency
|
|
16
|
+
headerTextColor: '#ffffff',
|
|
17
|
+
sectionBackgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
18
|
+
sectionTitleColor: '#1f2937',
|
|
19
|
+
// Dark gray
|
|
20
|
+
buttonSelectedColor: '#22c55e',
|
|
21
|
+
// Green
|
|
22
|
+
buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
|
|
23
|
+
buttonSelectedTextColor: '#ffffff',
|
|
24
|
+
buttonUnselectedTextColor: '#1f2937',
|
|
25
|
+
switchTrackColorFalse: '#16a34a',
|
|
26
|
+
switchTrackColorTrue: '#22c55e',
|
|
27
|
+
switchThumbColor: '#fbbf24',
|
|
28
|
+
// Amber
|
|
29
|
+
infoTextColor: '#374151',
|
|
30
|
+
// Gray
|
|
31
|
+
resetButtonColor: '#ef4444',
|
|
32
|
+
// Red
|
|
33
|
+
resetButtonTextColor: '#ffffff'
|
|
34
|
+
},
|
|
35
|
+
fruitSlicer: {
|
|
36
|
+
backgroundColor: '#87CEEB',
|
|
37
|
+
// Sky blue
|
|
38
|
+
headerBackgroundColor: 'rgba(20, 83, 45, 0.8)',
|
|
39
|
+
// Green with transparency
|
|
40
|
+
headerTextColor: '#ffffff',
|
|
41
|
+
sectionBackgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
42
|
+
sectionTitleColor: '#1f2937',
|
|
43
|
+
// Dark gray
|
|
44
|
+
buttonSelectedColor: '#22c55e',
|
|
45
|
+
// Green
|
|
46
|
+
buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
|
|
47
|
+
buttonSelectedTextColor: '#ffffff',
|
|
48
|
+
buttonUnselectedTextColor: '#1f2937',
|
|
49
|
+
switchTrackColorFalse: '#16a34a',
|
|
50
|
+
switchTrackColorTrue: '#22c55e',
|
|
51
|
+
switchThumbColor: '#fbbf24',
|
|
52
|
+
// Amber
|
|
53
|
+
infoTextColor: '#374151',
|
|
54
|
+
// Gray
|
|
55
|
+
resetButtonColor: '#ef4444',
|
|
56
|
+
// Red
|
|
57
|
+
resetButtonTextColor: '#ffffff'
|
|
58
|
+
},
|
|
59
|
+
mazeRunner: {
|
|
60
|
+
backgroundColor: '#87CEEB',
|
|
61
|
+
// Sky blue
|
|
62
|
+
headerBackgroundColor: 'rgba(20, 83, 45, 0.8)',
|
|
63
|
+
// Green with transparency
|
|
64
|
+
headerTextColor: '#ffffff',
|
|
65
|
+
sectionBackgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
66
|
+
sectionTitleColor: '#1f2937',
|
|
67
|
+
// Dark gray
|
|
68
|
+
buttonSelectedColor: '#22c55e',
|
|
69
|
+
// Green
|
|
70
|
+
buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
|
|
71
|
+
buttonSelectedTextColor: '#ffffff',
|
|
72
|
+
buttonUnselectedTextColor: '#1f2937',
|
|
73
|
+
switchTrackColorFalse: '#8B4513',
|
|
74
|
+
// Brown theme for maze
|
|
75
|
+
switchTrackColorTrue: '#D2691E',
|
|
76
|
+
// Orange brown
|
|
77
|
+
switchThumbColor: '#fbbf24',
|
|
78
|
+
// Amber
|
|
79
|
+
infoTextColor: '#374151',
|
|
80
|
+
// Gray
|
|
81
|
+
resetButtonColor: '#ef4444',
|
|
82
|
+
// Red
|
|
83
|
+
resetButtonTextColor: '#ffffff'
|
|
84
|
+
},
|
|
85
|
+
catPopper: {
|
|
86
|
+
backgroundColor: '#87CEEB',
|
|
87
|
+
// Sky blue
|
|
88
|
+
headerBackgroundColor: 'rgba(20, 83, 45, 0.8)',
|
|
89
|
+
// Green with transparency
|
|
90
|
+
headerTextColor: '#ffffff',
|
|
91
|
+
sectionBackgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
92
|
+
sectionTitleColor: '#1f2937',
|
|
93
|
+
// Dark gray
|
|
94
|
+
buttonSelectedColor: '#22c55e',
|
|
95
|
+
// Green
|
|
96
|
+
buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
|
|
97
|
+
buttonSelectedTextColor: '#ffffff',
|
|
98
|
+
buttonUnselectedTextColor: '#1f2937',
|
|
99
|
+
switchTrackColorFalse: '#16a34a',
|
|
100
|
+
switchTrackColorTrue: '#22c55e',
|
|
101
|
+
switchThumbColor: '#fbbf24',
|
|
102
|
+
// Amber
|
|
103
|
+
infoTextColor: '#374151',
|
|
104
|
+
// Gray
|
|
105
|
+
resetButtonColor: '#ef4444',
|
|
106
|
+
// Red
|
|
107
|
+
resetButtonTextColor: '#ffffff'
|
|
108
|
+
},
|
|
109
|
+
spaceTraveller: {
|
|
110
|
+
backgroundColor: '#87CEEB',
|
|
111
|
+
// Sky blue
|
|
112
|
+
headerBackgroundColor: 'rgba(20, 83, 45, 0.8)',
|
|
113
|
+
// Green with transparency
|
|
114
|
+
headerTextColor: '#ffffff',
|
|
115
|
+
sectionBackgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
116
|
+
sectionTitleColor: '#1f2937',
|
|
117
|
+
// Dark gray
|
|
118
|
+
buttonSelectedColor: '#22c55e',
|
|
119
|
+
// Green
|
|
120
|
+
buttonUnselectedColor: 'rgba(255, 255, 255, 0.3)',
|
|
121
|
+
buttonSelectedTextColor: '#ffffff',
|
|
122
|
+
buttonUnselectedTextColor: '#1f2937',
|
|
123
|
+
switchTrackColorFalse: '#16a34a',
|
|
124
|
+
switchTrackColorTrue: '#22c55e',
|
|
125
|
+
switchThumbColor: '#fbbf24',
|
|
126
|
+
// Amber
|
|
127
|
+
infoTextColor: '#374151',
|
|
128
|
+
// Gray
|
|
129
|
+
resetButtonColor: '#ef4444',
|
|
130
|
+
// Red
|
|
131
|
+
resetButtonTextColor: '#ffffff'
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// Game Difficulty Descriptions
|
|
136
|
+
export const GAME_DIFFICULTY_DESCRIPTIONS = {
|
|
137
|
+
balloonBlaster: {
|
|
138
|
+
easy: '60 seconds, balloons spawn slower',
|
|
139
|
+
medium: '120 seconds, balanced gameplay',
|
|
140
|
+
hard: '180 seconds, fast balloons, quick reflexes needed!'
|
|
141
|
+
},
|
|
142
|
+
fruitSlicer: {
|
|
143
|
+
easy: '60 seconds, fruits spawn slower',
|
|
144
|
+
medium: '120 seconds, balanced gameplay',
|
|
145
|
+
hard: '180 seconds, fast fruits, quick reflexes needed!'
|
|
146
|
+
},
|
|
147
|
+
mazeRunner: {
|
|
148
|
+
easy: '60 seconds, 8x8 grid, more forgiving',
|
|
149
|
+
medium: '120 seconds, 10x10 grid, balanced challenge',
|
|
150
|
+
hard: '180 seconds, 12x12 grid, maximum challenge!'
|
|
151
|
+
},
|
|
152
|
+
catPopper: {
|
|
153
|
+
easy: '60 seconds, cats appear slower and stay longer',
|
|
154
|
+
medium: '120 seconds, balanced gameplay',
|
|
155
|
+
hard: '180 seconds, fast cats, quick reflexes needed!'
|
|
156
|
+
},
|
|
157
|
+
spaceTraveller: {
|
|
158
|
+
easy: '60 seconds, asteroids spawn slower',
|
|
159
|
+
medium: '120 seconds, balanced gameplay',
|
|
160
|
+
hard: '180 seconds, fast asteroids, quick reflexes needed!'
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// Game Duration Constants
|
|
165
|
+
export const GAME_DURATIONS = {
|
|
166
|
+
EASY: 60,
|
|
167
|
+
MEDIUM: 120,
|
|
168
|
+
HARD: 180
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// Difficulty Levels
|
|
172
|
+
export const DIFFICULTY_LEVELS = ['easy', 'medium', 'hard'];
|
|
173
|
+
// Game Names
|
|
174
|
+
export const GAME_NAMES = {
|
|
175
|
+
BALLOON_BLASTER: 'balloonBlaster',
|
|
176
|
+
FRUIT_SLICER: 'fruitSlicer',
|
|
177
|
+
MAZE_RUNNER: 'mazeRunner',
|
|
178
|
+
CAT_POPPER: 'catPopper',
|
|
179
|
+
SPACE_TRAVELLER: 'spaceTraveller'
|
|
180
|
+
};
|
|
181
|
+
// Helper functions to get game-specific data
|
|
182
|
+
export const getGameTheme = gameId => {
|
|
183
|
+
switch (gameId) {
|
|
184
|
+
case 'balloon-blaster':
|
|
185
|
+
return GAME_THEMES.balloonBlaster;
|
|
186
|
+
case 'fruit-slicer':
|
|
187
|
+
return GAME_THEMES.fruitSlicer;
|
|
188
|
+
case 'maze-runner':
|
|
189
|
+
return GAME_THEMES.mazeRunner;
|
|
190
|
+
case 'cat-popper':
|
|
191
|
+
return GAME_THEMES.catPopper;
|
|
192
|
+
case 'space-traveller':
|
|
193
|
+
return GAME_THEMES.spaceTraveller;
|
|
194
|
+
default:
|
|
195
|
+
return GAME_THEMES.balloonBlaster;
|
|
196
|
+
// fallback
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
export const getGameDifficultyDescriptions = gameId => {
|
|
200
|
+
switch (gameId) {
|
|
201
|
+
case 'balloon-blaster':
|
|
202
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.balloonBlaster;
|
|
203
|
+
case 'fruit-slicer':
|
|
204
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.fruitSlicer;
|
|
205
|
+
case 'maze-runner':
|
|
206
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.mazeRunner;
|
|
207
|
+
case 'cat-popper':
|
|
208
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.catPopper;
|
|
209
|
+
case 'space-traveller':
|
|
210
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.spaceTraveller;
|
|
211
|
+
default:
|
|
212
|
+
return GAME_DIFFICULTY_DESCRIPTIONS.balloonBlaster;
|
|
213
|
+
// fallback
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
export const getGameTitle = gameId => {
|
|
217
|
+
const game = gamesList.find(g => g.id === gameId);
|
|
218
|
+
return game ? game.title : 'Game Settings';
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
// =============================================================================
|
|
222
|
+
// CENTRALIZED GAME CONSTANTS
|
|
223
|
+
// =============================================================================
|
|
224
|
+
|
|
225
|
+
// Cat Popper Game Constants
|
|
226
|
+
export const CAT_POPPER_CONSTANTS = {
|
|
227
|
+
catSpawnInterval: {
|
|
228
|
+
easy: 2000,
|
|
229
|
+
medium: 1500,
|
|
230
|
+
hard: 1000
|
|
231
|
+
},
|
|
232
|
+
catVisibleDuration: {
|
|
233
|
+
easy: 2500,
|
|
234
|
+
medium: 2000,
|
|
235
|
+
hard: 1500
|
|
236
|
+
},
|
|
237
|
+
gridSize: {
|
|
238
|
+
easy: 3,
|
|
239
|
+
medium: 3,
|
|
240
|
+
hard: 4
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
export const CAT_POPPER_GAME_CONFIG = {
|
|
244
|
+
GRID_SIZE: 3,
|
|
245
|
+
HOLE_SIZE: width * 0.25,
|
|
246
|
+
CAT_APPEAR_DURATION: 1500,
|
|
247
|
+
// ms
|
|
248
|
+
GAME_DURATION: 60,
|
|
249
|
+
// seconds
|
|
250
|
+
MIN_SPAWN_INTERVAL: 500,
|
|
251
|
+
// ms
|
|
252
|
+
MAX_SPAWN_INTERVAL: 1500,
|
|
253
|
+
// ms
|
|
254
|
+
INITIAL_SPAWN_DELAY: 1000 // ms
|
|
255
|
+
};
|
|
256
|
+
export const CAT_POPPER_ANIMATION_CONFIG = {
|
|
257
|
+
CAT_SPRING: {
|
|
258
|
+
damping: 15,
|
|
259
|
+
stiffness: 200
|
|
260
|
+
},
|
|
261
|
+
HIT_TIMING: {
|
|
262
|
+
duration: 200
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
export const CAT_POPPER_COLORS = {
|
|
266
|
+
BACKGROUND: '#2E7D32',
|
|
267
|
+
SCORE_BOARD: '#1B5E20',
|
|
268
|
+
HOLE: '#3E2723',
|
|
269
|
+
HOLE_BORDER: '#5D4037',
|
|
270
|
+
SCORE_TEXT: '#FFD700',
|
|
271
|
+
TIMER_TEXT: '#FF5722',
|
|
272
|
+
WHITE: '#FFFFFF',
|
|
273
|
+
START_BUTTON: '#4CAF50',
|
|
274
|
+
HIT_EFFECT_OUTER: '#FFD700',
|
|
275
|
+
HIT_EFFECT_INNER: '#FFA500',
|
|
276
|
+
GAME_OVER_OVERLAY: 'rgba(0, 0, 0, 0.85)',
|
|
277
|
+
BUTTON_BORDER: '#66BB6A'
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// Fruit Slicer Game Constants
|
|
281
|
+
export const FRUIT_SLICER_GAME_CONFIG = {
|
|
282
|
+
GAME_DURATION: 60,
|
|
283
|
+
// seconds
|
|
284
|
+
MAX_LIVES: 3,
|
|
285
|
+
FRUIT_SPAWN_INTERVAL: 1500,
|
|
286
|
+
// ms - even slower spawning for better gameplay
|
|
287
|
+
FRUIT_FALL_SPEED: 2,
|
|
288
|
+
// pixels per frame
|
|
289
|
+
GRAVITY: 0.18,
|
|
290
|
+
// acceleration - further reduced for slower movement
|
|
291
|
+
INITIAL_VELOCITY_Y: -15,
|
|
292
|
+
// upward velocity - balanced to reach ~75% of screen height
|
|
293
|
+
INITIAL_VELOCITY_X_RANGE: 3,
|
|
294
|
+
// horizontal velocity range - further reduced for slower movement
|
|
295
|
+
FRUIT_SIZE: 60,
|
|
296
|
+
SLICE_TRAIL_LENGTH: 10,
|
|
297
|
+
COMBO_TIMEOUT: 2000,
|
|
298
|
+
// ms
|
|
299
|
+
PARTICLE_COUNT: 8,
|
|
300
|
+
PARTICLE_LIFETIME: 1000 // ms
|
|
301
|
+
};
|
|
302
|
+
export const FRUIT_SLICER_ANIMATION_CONFIG = {
|
|
303
|
+
FRUIT_SPRING: {
|
|
304
|
+
damping: 15,
|
|
305
|
+
stiffness: 200
|
|
306
|
+
},
|
|
307
|
+
SLICE_TIMING: {
|
|
308
|
+
duration: 300
|
|
309
|
+
},
|
|
310
|
+
PARTICLE_TIMING: {
|
|
311
|
+
duration: 800
|
|
312
|
+
},
|
|
313
|
+
COMBO_TIMING: {
|
|
314
|
+
duration: 200
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
export const FRUIT_SLICER_COLORS = {
|
|
318
|
+
BACKGROUND: '#87CEEB',
|
|
319
|
+
// Sky blue
|
|
320
|
+
SCORE_BOARD: '#4169E1',
|
|
321
|
+
SLICE_TRAIL: '#FFD700',
|
|
322
|
+
PARTICLE_COLORS: ['#FF6B6B', '#4ECDC4', '#45B7D1', '#96CEB4', '#FFEAA7', '#DDA0DD'],
|
|
323
|
+
COMBO_TEXT: '#FF4757',
|
|
324
|
+
LIVES_COLOR: '#FF6B6B',
|
|
325
|
+
WHITE: '#FFFFFF',
|
|
326
|
+
START_BUTTON: '#4CAF50',
|
|
327
|
+
GAME_OVER_OVERLAY: 'rgba(0, 0, 0, 0.85)'
|
|
328
|
+
};
|
|
329
|
+
export const FRUIT_TYPES = [{
|
|
330
|
+
emoji: '🍎',
|
|
331
|
+
points: 10,
|
|
332
|
+
name: 'apple'
|
|
333
|
+
}, {
|
|
334
|
+
emoji: '🍊',
|
|
335
|
+
points: 10,
|
|
336
|
+
name: 'orange'
|
|
337
|
+
}, {
|
|
338
|
+
emoji: '🍌',
|
|
339
|
+
points: 15,
|
|
340
|
+
name: 'banana'
|
|
341
|
+
}, {
|
|
342
|
+
emoji: '🍇',
|
|
343
|
+
points: 20,
|
|
344
|
+
name: 'grapes'
|
|
345
|
+
}, {
|
|
346
|
+
emoji: '🥝',
|
|
347
|
+
points: 25,
|
|
348
|
+
name: 'kiwi'
|
|
349
|
+
}, {
|
|
350
|
+
emoji: '🍓',
|
|
351
|
+
points: 15,
|
|
352
|
+
name: 'strawberry'
|
|
353
|
+
}, {
|
|
354
|
+
emoji: '🥭',
|
|
355
|
+
points: 30,
|
|
356
|
+
name: 'mango'
|
|
357
|
+
}, {
|
|
358
|
+
emoji: '🍑',
|
|
359
|
+
points: 25,
|
|
360
|
+
name: 'cherry'
|
|
361
|
+
}, {
|
|
362
|
+
emoji: '🍒',
|
|
363
|
+
points: 35,
|
|
364
|
+
name: 'cherries'
|
|
365
|
+
}, {
|
|
366
|
+
emoji: '🥥',
|
|
367
|
+
points: 40,
|
|
368
|
+
name: 'coconut'
|
|
369
|
+
}];
|
|
370
|
+
export const FRUIT_SPECIAL_ITEMS = [{
|
|
371
|
+
emoji: '💣',
|
|
372
|
+
points: -50,
|
|
373
|
+
name: 'bomb',
|
|
374
|
+
isBomb: true
|
|
375
|
+
}, {
|
|
376
|
+
emoji: '⭐',
|
|
377
|
+
points: 50,
|
|
378
|
+
name: 'star',
|
|
379
|
+
isBonus: true
|
|
380
|
+
}, {
|
|
381
|
+
emoji: '❄️',
|
|
382
|
+
points: 0,
|
|
383
|
+
name: 'freeze',
|
|
384
|
+
isFreeze: true
|
|
385
|
+
}];
|
|
386
|
+
|
|
387
|
+
// Balloon Blaster Game Constants
|
|
388
|
+
export const BALLOON_BLASTER_GAME_CONFIG = {
|
|
389
|
+
GAME_DURATION: 60,
|
|
390
|
+
// seconds
|
|
391
|
+
MAX_LIVES: 3,
|
|
392
|
+
BALLOON_SPAWN_INTERVAL: 1200,
|
|
393
|
+
// ms - faster balloon spawning
|
|
394
|
+
BALLOON_RISE_SPEED: 0.1,
|
|
395
|
+
// pixels per frame - balloons rise from bottom to top (reduced from 1)
|
|
396
|
+
GRAVITY: -0.005,
|
|
397
|
+
// negative gravity for upward movement (reduced from -0.03)
|
|
398
|
+
INITIAL_VELOCITY_Y: -0.5,
|
|
399
|
+
// negative for upward movement (reduced from -2.5)
|
|
400
|
+
INITIAL_VELOCITY_X_RANGE: 0.2,
|
|
401
|
+
// horizontal velocity range (reduced from 0.8)
|
|
402
|
+
BALLOON_SIZE: 60,
|
|
403
|
+
SLICE_TRAIL_LENGTH: 10,
|
|
404
|
+
COMBO_TIMEOUT: 2000,
|
|
405
|
+
// ms
|
|
406
|
+
PARTICLE_COUNT: 8,
|
|
407
|
+
PARTICLE_LIFETIME: 1000 // ms
|
|
408
|
+
};
|
|
409
|
+
export const BALLOON_BLASTER_ANIMATION_CONFIG = {
|
|
410
|
+
BALLOON_SPRING: {
|
|
411
|
+
damping: 30,
|
|
412
|
+
stiffness: 50
|
|
413
|
+
},
|
|
414
|
+
SLICE_TIMING: {
|
|
415
|
+
duration: 300
|
|
416
|
+
},
|
|
417
|
+
PARTICLE_TIMING: {
|
|
418
|
+
duration: 800
|
|
419
|
+
},
|
|
420
|
+
COMBO_TIMING: {
|
|
421
|
+
duration: 200
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
export const BALLOON_BLASTER_COLORS = {
|
|
425
|
+
BACKGROUND: '#87CEEB',
|
|
426
|
+
// Sky blue
|
|
427
|
+
SCORE_BOARD: '#4169E1',
|
|
428
|
+
SLICE_TRAIL: '#FFD700',
|
|
429
|
+
PARTICLE_COLORS: ['#FF6B6B', '#4ECDC4', '#45B7D1', '#96CEB4', '#FFEAA7', '#DDA0DD'],
|
|
430
|
+
COMBO_TEXT: '#FF4757',
|
|
431
|
+
LIVES_COLOR: '#FF6B6B',
|
|
432
|
+
WHITE: '#FFFFFF',
|
|
433
|
+
START_BUTTON: '#4CAF50',
|
|
434
|
+
GAME_OVER_OVERLAY: 'rgba(0, 0, 0, 0.85)'
|
|
435
|
+
};
|
|
436
|
+
export const BALLOON_TYPES = [{
|
|
437
|
+
emoji: '🎈',
|
|
438
|
+
points: 10,
|
|
439
|
+
name: 'red balloon',
|
|
440
|
+
color: '#FF0040',
|
|
441
|
+
gradient: ['#FF0040', '#FF4080']
|
|
442
|
+
}, {
|
|
443
|
+
emoji: '🎈',
|
|
444
|
+
points: 10,
|
|
445
|
+
name: 'blue balloon',
|
|
446
|
+
color: '#0080FF',
|
|
447
|
+
gradient: ['#0080FF', '#40A0FF']
|
|
448
|
+
}, {
|
|
449
|
+
emoji: '🎈',
|
|
450
|
+
points: 15,
|
|
451
|
+
name: 'yellow balloon',
|
|
452
|
+
color: '#FFD700',
|
|
453
|
+
gradient: ['#FFD700', '#FFEB3B']
|
|
454
|
+
}, {
|
|
455
|
+
emoji: '🎈',
|
|
456
|
+
points: 20,
|
|
457
|
+
name: 'green balloon',
|
|
458
|
+
color: '#00FF80',
|
|
459
|
+
gradient: ['#00FF80', '#40FFA0']
|
|
460
|
+
}, {
|
|
461
|
+
emoji: '🎈',
|
|
462
|
+
points: 25,
|
|
463
|
+
name: 'purple balloon',
|
|
464
|
+
color: '#8000FF',
|
|
465
|
+
gradient: ['#8000FF', '#A040FF']
|
|
466
|
+
}, {
|
|
467
|
+
emoji: '🎈',
|
|
468
|
+
points: 15,
|
|
469
|
+
name: 'pink balloon',
|
|
470
|
+
color: '#FF0080',
|
|
471
|
+
gradient: ['#FF0080', '#FF40A0']
|
|
472
|
+
}, {
|
|
473
|
+
emoji: '🎈',
|
|
474
|
+
points: 30,
|
|
475
|
+
name: 'orange balloon',
|
|
476
|
+
color: '#FF4000',
|
|
477
|
+
gradient: ['#FF4000', '#FF8040']
|
|
478
|
+
}, {
|
|
479
|
+
emoji: '🎈',
|
|
480
|
+
points: 25,
|
|
481
|
+
name: 'cyan balloon',
|
|
482
|
+
color: '#00FFFF',
|
|
483
|
+
gradient: ['#00FFFF', '#40FFFF']
|
|
484
|
+
}, {
|
|
485
|
+
emoji: '🎈',
|
|
486
|
+
points: 35,
|
|
487
|
+
name: 'magenta balloon',
|
|
488
|
+
color: '#FF00FF',
|
|
489
|
+
gradient: ['#FF00FF', '#FF40FF']
|
|
490
|
+
}, {
|
|
491
|
+
emoji: '🎈',
|
|
492
|
+
points: 40,
|
|
493
|
+
name: 'gold balloon',
|
|
494
|
+
color: '#FFB000',
|
|
495
|
+
gradient: ['#FFB000', '#FFD700']
|
|
496
|
+
}, {
|
|
497
|
+
emoji: '🎈',
|
|
498
|
+
points: 45,
|
|
499
|
+
name: 'rainbow balloon',
|
|
500
|
+
color: '#FF0080',
|
|
501
|
+
gradient: ['#FF0080', '#8000FF', '#0080FF', '#00FF80']
|
|
502
|
+
}, {
|
|
503
|
+
emoji: '🎈',
|
|
504
|
+
points: 50,
|
|
505
|
+
name: 'neon balloon',
|
|
506
|
+
color: '#00FF00',
|
|
507
|
+
gradient: ['#00FF00', '#FFFF00']
|
|
508
|
+
}];
|
|
509
|
+
export const BALLOON_SPECIAL_ITEMS = [{
|
|
510
|
+
emoji: '💣',
|
|
511
|
+
points: -50,
|
|
512
|
+
name: 'bomb',
|
|
513
|
+
isBomb: true,
|
|
514
|
+
color: '#FF4444'
|
|
515
|
+
}, {
|
|
516
|
+
emoji: '⭐',
|
|
517
|
+
points: 50,
|
|
518
|
+
name: 'star',
|
|
519
|
+
isBonus: true,
|
|
520
|
+
color: '#FFD700'
|
|
521
|
+
}];
|
|
522
|
+
|
|
523
|
+
// Space Traveller Game Constants
|
|
524
|
+
export const SPACE_TRAVELLER_GAME_CONFIG = {
|
|
525
|
+
GAME_DURATION: 120,
|
|
526
|
+
// seconds
|
|
527
|
+
SPACECRAFT_SIZE: 28,
|
|
528
|
+
// Increased from 20 for better visibility
|
|
529
|
+
SPACECRAFT_SPEED: 3,
|
|
530
|
+
ASTEROID_WIDTH: 80,
|
|
531
|
+
ASTEROID_GAP: 120,
|
|
532
|
+
// Increased gap between asteroid pairs for easier navigation
|
|
533
|
+
ASTEROID_SPAWN_INTERVAL: 3000,
|
|
534
|
+
// Increased from 2000ms to 3500ms for better spacing
|
|
535
|
+
ASTEROID_SPEED: 2,
|
|
536
|
+
GRAVITY: 0.3,
|
|
537
|
+
BOUNCE_DAMPING: 0.7,
|
|
538
|
+
FRICTION: 0.98,
|
|
539
|
+
MAX_VELOCITY: 8,
|
|
540
|
+
COLLISION_TOLERANCE: 2,
|
|
541
|
+
COLLISION_COOLDOWN: 2000 // 2 seconds between collisions
|
|
542
|
+
};
|
|
543
|
+
export const SPACE_TRAVELLER_COLORS = {
|
|
544
|
+
BACKGROUND: '#0a0a1a',
|
|
545
|
+
// Deep space black
|
|
546
|
+
SPACECRAFT: '#00d4ff',
|
|
547
|
+
// Bright cyan for spacecraft
|
|
548
|
+
ASTEROID: '#8b4513',
|
|
549
|
+
// Brown for asteroids
|
|
550
|
+
ASTEROID_SHADOW: '#654321',
|
|
551
|
+
// Darker brown shadow
|
|
552
|
+
SCORE: '#ffd700',
|
|
553
|
+
// Gold for score
|
|
554
|
+
UI: '#9370db',
|
|
555
|
+
// Purple for UI elements
|
|
556
|
+
STARS: '#ffffff' // White for stars
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
// Export unified settings service
|
|
560
|
+
export { createGameSettingsStore, DEFAULT_GAME_SETTINGS } from "../shared/settings/SettingsService.js";
|
|
561
|
+
//# sourceMappingURL=GamesConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["gamesList","Dimensions","width","get","GAME_THEMES","balloonBlaster","backgroundColor","headerBackgroundColor","headerTextColor","sectionBackgroundColor","sectionTitleColor","buttonSelectedColor","buttonUnselectedColor","buttonSelectedTextColor","buttonUnselectedTextColor","switchTrackColorFalse","switchTrackColorTrue","switchThumbColor","infoTextColor","resetButtonColor","resetButtonTextColor","fruitSlicer","mazeRunner","catPopper","spaceTraveller","GAME_DIFFICULTY_DESCRIPTIONS","easy","medium","hard","GAME_DURATIONS","EASY","MEDIUM","HARD","DIFFICULTY_LEVELS","GAME_NAMES","BALLOON_BLASTER","FRUIT_SLICER","MAZE_RUNNER","CAT_POPPER","SPACE_TRAVELLER","getGameTheme","gameId","getGameDifficultyDescriptions","getGameTitle","game","find","g","id","title","CAT_POPPER_CONSTANTS","catSpawnInterval","catVisibleDuration","gridSize","CAT_POPPER_GAME_CONFIG","GRID_SIZE","HOLE_SIZE","CAT_APPEAR_DURATION","GAME_DURATION","MIN_SPAWN_INTERVAL","MAX_SPAWN_INTERVAL","INITIAL_SPAWN_DELAY","CAT_POPPER_ANIMATION_CONFIG","CAT_SPRING","damping","stiffness","HIT_TIMING","duration","CAT_POPPER_COLORS","BACKGROUND","SCORE_BOARD","HOLE","HOLE_BORDER","SCORE_TEXT","TIMER_TEXT","WHITE","START_BUTTON","HIT_EFFECT_OUTER","HIT_EFFECT_INNER","GAME_OVER_OVERLAY","BUTTON_BORDER","FRUIT_SLICER_GAME_CONFIG","MAX_LIVES","FRUIT_SPAWN_INTERVAL","FRUIT_FALL_SPEED","GRAVITY","INITIAL_VELOCITY_Y","INITIAL_VELOCITY_X_RANGE","FRUIT_SIZE","SLICE_TRAIL_LENGTH","COMBO_TIMEOUT","PARTICLE_COUNT","PARTICLE_LIFETIME","FRUIT_SLICER_ANIMATION_CONFIG","FRUIT_SPRING","SLICE_TIMING","PARTICLE_TIMING","COMBO_TIMING","FRUIT_SLICER_COLORS","SLICE_TRAIL","PARTICLE_COLORS","COMBO_TEXT","LIVES_COLOR","FRUIT_TYPES","emoji","points","name","FRUIT_SPECIAL_ITEMS","isBomb","isBonus","isFreeze","BALLOON_BLASTER_GAME_CONFIG","BALLOON_SPAWN_INTERVAL","BALLOON_RISE_SPEED","BALLOON_SIZE","BALLOON_BLASTER_ANIMATION_CONFIG","BALLOON_SPRING","BALLOON_BLASTER_COLORS","BALLOON_TYPES","color","gradient","BALLOON_SPECIAL_ITEMS","SPACE_TRAVELLER_GAME_CONFIG","SPACECRAFT_SIZE","SPACECRAFT_SPEED","ASTEROID_WIDTH","ASTEROID_GAP","ASTEROID_SPAWN_INTERVAL","ASTEROID_SPEED","BOUNCE_DAMPING","FRICTION","MAX_VELOCITY","COLLISION_TOLERANCE","COLLISION_COOLDOWN","SPACE_TRAVELLER_COLORS","SPACECRAFT","ASTEROID","ASTEROID_SHADOW","SCORE","UI","STARS","createGameSettingsStore","DEFAULT_GAME_SETTINGS"],"sourceRoot":"../../../src","sources":["services/GamesConstants.ts"],"mappings":";;AACA,SAASA,SAAS,QAAQ,mBAAgB;AAC1C,SAASC,UAAU,QAAQ,cAAc;AAEzC,MAAM;EAAEC;AAAM,CAAC,GAAGD,UAAU,CAACE,GAAG,CAAC,QAAQ,CAAC;;AAE1C;AACA,OAAO,MAAMC,WAAW,GAAG;EACzBC,cAAc,EAAE;IACdC,eAAe,EAAE,SAAS;IAAE;IAC5BC,qBAAqB,EAAE,uBAAuB;IAAE;IAChDC,eAAe,EAAE,SAAS;IAC1BC,sBAAsB,EAAE,0BAA0B;IAClDC,iBAAiB,EAAE,SAAS;IAAE;IAC9BC,mBAAmB,EAAE,SAAS;IAAE;IAChCC,qBAAqB,EAAE,0BAA0B;IACjDC,uBAAuB,EAAE,SAAS;IAClCC,yBAAyB,EAAE,SAAS;IACpCC,qBAAqB,EAAE,SAAS;IAChCC,oBAAoB,EAAE,SAAS;IAC/BC,gBAAgB,EA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E;EACpBiE,eAAe,EAAE,EAAE;EAAE;EACrBC,gBAAgB,EAAE,CAAC;EACnBC,cAAc,EAAE,EAAE;EAClBC,YAAY,EAAE,GAAG;EAAE;EACnBC,uBAAuB,EAAE,IAAI;EAAE;EAC/BC,cAAc,EAAE,CAAC;EACjB3C,OAAO,EAAE,GAAG;EACZ4C,cAAc,EAAE,GAAG;EACnBC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAE,CAAC;EACfC,mBAAmB,EAAE,CAAC;EACtBC,kBAAkB,EAAE,IAAI,CAAC;AAC3B,CAAU;AAEV,OAAO,MAAMC,sBAAsB,GAAG;EACpCjE,UAAU,EAAE,SAAS;EAAE;EACvBkE,UAAU,EAAE,SAAS;EAAE;EACvBC,QAAQ,EAAE,SAAS;EAAE;EACrBC,eAAe,EAAE,SAAS;EAAE;EAC5BC,KAAK,EAAE,SAAS;EAAE;EAClBC,EAAE,EAAE,SAAS;EAAE;EACfC,KAAK,EAAE,SAAS,CAAC;AACnB,CAAU;;AAEV;AACA,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,uCAAoC","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const gamesList = [{
|
|
4
|
+
id: 'cat-popper',
|
|
5
|
+
title: 'Cat Popper',
|
|
6
|
+
description: 'Classic cat popper game with fun animations and sound effects',
|
|
7
|
+
icon: 'hammer',
|
|
8
|
+
color: '#ff6b6b'
|
|
9
|
+
}, {
|
|
10
|
+
id: 'fruit-slicer',
|
|
11
|
+
title: 'Fruit Slicer',
|
|
12
|
+
description: 'Slice fruits with smooth gesture controls and particle effects',
|
|
13
|
+
icon: 'cut',
|
|
14
|
+
color: '#4ecdc4'
|
|
15
|
+
}, {
|
|
16
|
+
id: 'balloon-blaster',
|
|
17
|
+
title: 'Balloon Blaster',
|
|
18
|
+
description: 'Pop colorful balloons rising from the bottom with gesture controls',
|
|
19
|
+
icon: 'balloon',
|
|
20
|
+
color: '#ff9ff3'
|
|
21
|
+
}, {
|
|
22
|
+
id: 'space-traveller',
|
|
23
|
+
title: 'Space Traveller',
|
|
24
|
+
description: 'Navigate through space avoiding asteroids in this endless travelling',
|
|
25
|
+
icon: 'rocket',
|
|
26
|
+
color: '#45b7d1'
|
|
27
|
+
}, {
|
|
28
|
+
id: 'maze-runner',
|
|
29
|
+
title: 'Maze Runner',
|
|
30
|
+
description: 'Guide the ball through complex mazes with physics-based gameplay',
|
|
31
|
+
icon: 'trail-sign',
|
|
32
|
+
color: '#96ceb4'
|
|
33
|
+
}];
|
|
34
|
+
//# sourceMappingURL=GamesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["gamesList","id","title","description","icon","color"],"sourceRoot":"../../../src","sources":["services/GamesService.ts"],"mappings":";;AAAA,OAAO,MAAMA,SAAS,GAAG,CACvB;EACEC,EAAE,EAAE,YAAY;EAChBC,KAAK,EAAE,YAAY;EACnBC,WAAW,EAAE,+DAA+D;EAC5EC,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;AACT,CAAC,EACD;EACEJ,EAAE,EAAE,cAAc;EAClBC,KAAK,EAAE,cAAc;EACrBC,WAAW,EAAE,gEAAgE;EAC7EC,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC,EACD;EACEJ,EAAE,EAAE,iBAAiB;EACrBC,KAAK,EAAE,iBAAiB;EACxBC,WAAW,EAAE,oEAAoE;EACjFC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE;AACT,CAAC,EACD;EACEJ,EAAE,EAAE,iBAAiB;EACrBC,KAAK,EAAE,iBAAiB;EACxBC,WAAW,EAAE,sEAAsE;EACnFC,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;AACT,CAAC,EACD;EACEJ,EAAE,EAAE,aAAa;EACjBC,KAAK,EAAE,aAAa;EACpBC,WAAW,EAAE,kEAAkE;EAC/EC,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAE;AACT,CAAC,CACF","ignoreList":[]}
|