@nayan-ui/games 1.20.0 → 1.21.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/lib/module/games/arrows/Arrows.js +1 -1
- package/lib/module/games/arrows/ArrowsScene.js +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlaster.js +1 -1
- package/lib/module/games/balloon-blaster/BalloonBlasterScene.js +1 -1
- package/lib/module/games/bike-racing/BikeMeshes.js +1 -1
- package/lib/module/games/bike-racing/BikeRacing.js +1 -1
- package/lib/module/games/bike-racing/BikeRacingConstants.js +1 -1
- package/lib/module/games/bike-racing/BikeRacingScene.js +1 -1
- package/lib/module/games/block-blast/BlockBlast.js +1 -1
- package/lib/module/games/block-blast/BlockBlastScene.js +1 -1
- package/lib/module/games/block-breaker/BlockBreaker.js +1 -1
- package/lib/module/games/block-breaker/BlockBreakerScene.js +1 -1
- package/lib/module/games/bluk/Bluk.js +1 -1
- package/lib/module/games/bluk/BlukScene.js +1 -1
- package/lib/module/games/bubble-shooter/BubbleShooter.js +1 -1
- package/lib/module/games/bubble-shooter/BubbleShooterScene.js +1 -1
- package/lib/module/games/candy-crush/CandyCrush.js +1 -1
- package/lib/module/games/candy-crush/CandyCrushScene.js +1 -1
- package/lib/module/games/car-racing/CarMeshes.js +1 -1
- package/lib/module/games/car-racing/CarRacing.js +1 -1
- package/lib/module/games/car-racing/CarRacingScene.js +1 -1
- package/lib/module/games/chameleon-run/ChameleonRun.js +1 -1
- package/lib/module/games/chameleon-run/ChameleonRunBackdrop.js +1 -1
- package/lib/module/games/chameleon-run/ChameleonRunMeshes.js +1 -1
- package/lib/module/games/checkers/Checkers.js +1 -1
- package/lib/module/games/checkers/CheckersScene.js +1 -1
- package/lib/module/games/color-switch/ColorSwitch.js +1 -1
- package/lib/module/games/color-switch/ColorSwitchScene.js +1 -1
- package/lib/module/games/colors-sort/ColorsSort.js +1 -1
- package/lib/module/games/colors-sort/ColorsSortScene.js +1 -1
- package/lib/module/games/connect-em-all/ConnectEmAll.js +1 -1
- package/lib/module/games/connect-em-all/ConnectEmAllScene.js +1 -1
- package/lib/module/games/crossy-road/CrossyRoad.js +1 -1
- package/lib/module/games/crossy-road/CrossyRoadMeshes.js +1 -1
- package/lib/module/games/crossy-road/CrossyRoadPerson.js +1 -1
- package/lib/module/games/dino-jump/DinoJump.js +1 -1
- package/lib/module/games/dino-jump/DinoJumpScene.js +1 -1
- package/lib/module/games/dots-and-boxes/DotsAndBoxes.js +1 -1
- package/lib/module/games/dots-and-boxes/DotsAndBoxesScene.js +1 -1
- package/lib/module/games/falling-sticks/FallingSticks.js +1 -1
- package/lib/module/games/falling-sticks/FallingSticksScene.js +1 -1
- package/lib/module/games/find-different-number/FindDifferentNumber.js +1 -1
- package/lib/module/games/find-different-number/FindDifferentNumberScene.js +1 -1
- package/lib/module/games/flappy-bird/FlappyBird.js +1 -1
- package/lib/module/games/flappy-bird/FlappyBirdScene.js +1 -1
- package/lib/module/games/fruit-merger/FruitMerger.js +1 -1
- package/lib/module/games/fruit-merger/FruitMergerScene.js +1 -1
- package/lib/module/games/fruit-ninja/FruitNinja.js +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaScene.js +1 -1
- package/lib/module/games/fruit-ninja/FruitNinjaWorld.js +1 -1
- package/lib/module/games/game-2048/Game2048.js +1 -1
- package/lib/module/games/game-2048/Game2048Scene.js +1 -1
- package/lib/module/games/knife-hit/KnifeHit.js +1 -1
- package/lib/module/games/knife-hit/KnifeHitScene.js +1 -1
- package/lib/module/games/ludo-king/LudoKing.js +1 -1
- package/lib/module/games/ludo-king/LudoKingScene.js +1 -1
- package/lib/module/games/maze-runner/MazeRunner.js +1 -1
- package/lib/module/games/maze-runner/MazeRunnerScene.js +1 -1
- package/lib/module/games/memory-match/MemoryMatch.js +1 -1
- package/lib/module/games/memory-match/MemoryMatchScene.js +1 -1
- package/lib/module/games/mine-sweeper/MineSweeper.js +1 -1
- package/lib/module/games/mine-sweeper/MineSweeperScene.js +1 -1
- package/lib/module/games/mob-control/MobControl.js +1 -1
- package/lib/module/games/mob-control/MobControlGame.js +1 -1
- package/lib/module/games/mob-control/MobControlMeshes.js +1 -1
- package/lib/module/games/mob-control/MobControlRenderer.js +1 -1
- package/lib/module/games/mob-control/MobControlRules.js +1 -1
- package/lib/module/games/mob-control/MobControlScene.js +1 -1
- package/lib/module/games/nuts-and-bolts/NutsAndBolts.js +1 -1
- package/lib/module/games/nuts-and-bolts/NutsAndBoltsScene.js +1 -1
- package/lib/module/games/pac-man/PacMan.js +1 -1
- package/lib/module/games/pac-man/PacManGame.js +1 -1
- package/lib/module/games/pac-man/PacManScene.js +1 -1
- package/lib/module/games/paper-io/PaperIo.js +1 -1
- package/lib/module/games/paper-io/PaperIoMeshes.js +1 -1
- package/lib/module/games/paper-io/PaperIoScene.js +1 -1
- package/lib/module/games/penguin-run/PenguinMeshes.js +1 -1
- package/lib/module/games/penguin-run/PenguinRun.js +1 -1
- package/lib/module/games/penguin-run/PenguinRunScene.js +1 -1
- package/lib/module/games/perfect-circle/PerfectCircle.js +1 -1
- package/lib/module/games/perfect-circle/PerfectCircleScene.js +1 -1
- package/lib/module/games/pipe-connect/PipeConnect.js +1 -1
- package/lib/module/games/pipe-connect/PipeConnectScene.js +1 -1
- package/lib/module/games/play-with-tua/PlayWithTua.js +1 -1
- package/lib/module/games/popit-fidget/PopitFidget.js +1 -1
- package/lib/module/games/popit-fidget/PopitFidgetScene.js +1 -1
- package/lib/module/games/reversi/Reversi.js +1 -1
- package/lib/module/games/reversi/ReversiScene.js +1 -1
- package/lib/module/games/search-grid/SearchGrid.js +1 -1
- package/lib/module/games/search-grid/SearchGridScene.js +1 -1
- package/lib/module/games/shared/BackdropCard.js +1 -1
- package/lib/module/games/shared/EngineBackdrop.js +1 -1
- package/lib/module/games/shared/EngineBlasts.js +1 -1
- package/lib/module/games/shared/EngineBlocks.js +1 -1
- package/lib/module/games/shared/EngineDice.js +1 -1
- package/lib/module/games/shared/EngineFruits.js +1 -1
- package/lib/module/games/shared/EngineGameLoader.js +1 -1
- package/lib/module/games/shared/EngineGameScreen.js +1 -1
- package/lib/module/games/shared/EngineGlyphs.js +1 -1
- package/lib/module/games/shared/EngineHud.js +1 -1
- package/lib/module/games/shared/EngineMeadow.js +1 -1
- package/lib/module/games/shared/EngineTouchSurface.js +1 -1
- package/lib/module/games/shared/GameActivity.js +1 -1
- package/lib/module/games/shared/GameLoading.js +1 -1
- package/lib/module/games/shared/GameLoadingTransition.js +1 -1
- package/lib/module/games/sliding-numbers/SlidingNumbers.js +1 -1
- package/lib/module/games/sliding-numbers/SlidingNumbersScene.js +1 -1
- package/lib/module/games/snake-3d/Snake3D.js +1 -1
- package/lib/module/games/snake-3d/Snake3DScene.js +1 -1
- package/lib/module/games/snakes-and-ladders/SnakesAndLadders.js +1 -1
- package/lib/module/games/snakes-and-ladders/SnakesAndLaddersScene.js +1 -1
- package/lib/module/games/space-fighter/SpaceFighter.js +1 -1
- package/lib/module/games/space-fighter/SpaceFighterScene.js +1 -1
- package/lib/module/games/spider-solitaire/SpiderSolitaire.js +1 -1
- package/lib/module/games/spider-solitaire/SpiderSolitaireScene.js +1 -1
- package/lib/module/games/stack-tower/StackTower.js +1 -1
- package/lib/module/games/stack-tower/StackTowerScene.js +1 -1
- package/lib/module/games/sudoku/Sudoku.js +1 -1
- package/lib/module/games/sudoku/SudokuScene.js +1 -1
- package/lib/module/games/tangram/Tangram.js +1 -1
- package/lib/module/games/tangram/TangramScene.js +1 -1
- package/lib/module/games/tank-1990/Tank1990.js +1 -1
- package/lib/module/games/tank-1990/Tank1990Scene.js +1 -1
- package/lib/module/games/tic-tac-toe/TicTacToe.js +1 -1
- package/lib/module/games/tic-tac-toe/TicTacToeScene.js +1 -1
- package/lib/module/games/tile-home/TileHome.js +1 -1
- package/lib/module/games/tile-home/TileHomeScene.js +1 -1
- package/lib/module/games/treasure-hunt/TreasureHunt.js +1 -1
- package/lib/module/games/treasure-hunt/TreasureHuntConstants.js +1 -1
- package/lib/module/games/treasure-hunt/TreasureHuntModel.js +1 -1
- package/lib/module/games/treasure-hunt/TreasureHuntScene.js +1 -1
- package/lib/module/games/whack-a-mole/WhackAMole.js +1 -1
- package/lib/module/games/whack-a-mole/WhackAMoleScene.js +1 -1
- package/lib/module/helpers/GameSettingsModal.js +1 -1
- package/lib/module/helpers/GameTheme.js +1 -1
- package/package.json +1 -2
- package/src/assets/fonts/Inter-SemiBold.ttf +0 -0
- package/src/assets/models/explorer/explorer.glb +0 -0
- package/src/assets/models/explorer/params.json +0 -51
- package/src/assets/models/explorer/source.json +0 -222
- package/src/assets/models/play-with-tua/play-with-tua.glb +0 -0
- package/src/assets/models/play-with-tua/sources.json +0 -141
- package/src/assets/sfx/balloon_pop.wav +0 -0
- package/src/assets/sfx/blocked.wav +0 -0
- package/src/assets/sfx/boing.wav +0 -0
- package/src/assets/sfx/bonus.wav +0 -0
- package/src/assets/sfx/boom.wav +0 -0
- package/src/assets/sfx/bump.wav +0 -0
- package/src/assets/sfx/cannon.wav +0 -0
- package/src/assets/sfx/capture.wav +0 -0
- package/src/assets/sfx/card_flip.wav +0 -0
- package/src/assets/sfx/card_place.wav +0 -0
- package/src/assets/sfx/catch.wav +0 -0
- package/src/assets/sfx/chime.wav +0 -0
- package/src/assets/sfx/chomp.wav +0 -0
- package/src/assets/sfx/chomp_alt.wav +0 -0
- package/src/assets/sfx/clack.wav +0 -0
- package/src/assets/sfx/clang.wav +0 -0
- package/src/assets/sfx/clash.wav +0 -0
- package/src/assets/sfx/click.wav +0 -0
- package/src/assets/sfx/coin.wav +0 -0
- package/src/assets/sfx/combo.wav +0 -0
- package/src/assets/sfx/crash.wav +0 -0
- package/src/assets/sfx/crunch.wav +0 -0
- package/src/assets/sfx/dance.wav +0 -0
- package/src/assets/sfx/deselect.wav +0 -0
- package/src/assets/sfx/dice_roll.wav +0 -0
- package/src/assets/sfx/die.wav +0 -0
- package/src/assets/sfx/draw.wav +0 -0
- package/src/assets/sfx/drop.wav +0 -0
- package/src/assets/sfx/eat.wav +0 -0
- package/src/assets/sfx/engine.wav +0 -0
- package/src/assets/sfx/error.wav +0 -0
- package/src/assets/sfx/flag.wav +0 -0
- package/src/assets/sfx/flap.wav +0 -0
- package/src/assets/sfx/flip_disc.wav +0 -0
- package/src/assets/sfx/footstep_run.wav +0 -0
- package/src/assets/sfx/footstep_walk.wav +0 -0
- package/src/assets/sfx/game_over.wav +0 -0
- package/src/assets/sfx/gate.wav +0 -0
- package/src/assets/sfx/hit.wav +0 -0
- package/src/assets/sfx/hop.wav +0 -0
- package/src/assets/sfx/hurt.wav +0 -0
- package/src/assets/sfx/invalid.wav +0 -0
- package/src/assets/sfx/jump.wav +0 -0
- package/src/assets/sfx/ladder.wav +0 -0
- package/src/assets/sfx/land.wav +0 -0
- package/src/assets/sfx/laugh.wav +0 -0
- package/src/assets/sfx/lose.wav +0 -0
- package/src/assets/sfx/merge.wav +0 -0
- package/src/assets/sfx/miss.wav +0 -0
- package/src/assets/sfx/nitro.wav +0 -0
- package/src/assets/sfx/pew.wav +0 -0
- package/src/assets/sfx/place.wav +0 -0
- package/src/assets/sfx/pling.wav +0 -0
- package/src/assets/sfx/point.wav +0 -0
- package/src/assets/sfx/pop.wav +0 -0
- package/src/assets/sfx/pop_soft.wav +0 -0
- package/src/assets/sfx/power_up.wav +0 -0
- package/src/assets/sfx/reveal.wav +0 -0
- package/src/assets/sfx/robot.wav +0 -0
- package/src/assets/sfx/rotate.wav +0 -0
- package/src/assets/sfx/run_steps.wav +0 -0
- package/src/assets/sfx/select.wav +0 -0
- package/src/assets/sfx/shuffle.wav +0 -0
- package/src/assets/sfx/six.wav +0 -0
- package/src/assets/sfx/slice.wav +0 -0
- package/src/assets/sfx/slide.wav +0 -0
- package/src/assets/sfx/snake.wav +0 -0
- package/src/assets/sfx/snap.wav +0 -0
- package/src/assets/sfx/splash.wav +0 -0
- package/src/assets/sfx/star.wav +0 -0
- package/src/assets/sfx/start.wav +0 -0
- package/src/assets/sfx/swoosh.wav +0 -0
- package/src/assets/sfx/tap.wav +0 -0
- package/src/assets/sfx/thud.wav +0 -0
- package/src/assets/sfx/thunk.wav +0 -0
- package/src/assets/sfx/tick.wav +0 -0
- package/src/assets/sfx/time_up.wav +0 -0
- package/src/assets/sfx/tock.wav +0 -0
- package/src/assets/sfx/walk_steps.wav +0 -0
- package/src/assets/sfx/warning.wav +0 -0
- package/src/assets/sfx/whack.wav +0 -0
- package/src/assets/sfx/whoosh.wav +0 -0
- package/src/assets/sfx/win.wav +0 -0
- package/src/assets/sfx/zap.wav +0 -0
- package/src/assets/textures/ad_bolt.png +0 -0
- package/src/assets/textures/ad_bubbles.png +0 -0
- package/src/assets/textures/ad_chevrons.png +0 -0
- package/src/assets/textures/asphalt.png +0 -0
- package/src/assets/textures/bark.jpg +0 -0
- package/src/assets/textures/explorer-atlas.png +0 -0
- package/src/assets/textures/facade.png +0 -0
- package/src/assets/textures/grass.png +0 -0
- package/src/assets/textures/leaves.png +0 -0
- package/src/assets/textures/limestone.jpg +0 -0
- package/src/assets/textures/meadow.jpg +0 -0
- package/src/assets/textures/nature-sources.json +0 -87
- package/src/assets/textures/pine.png +0 -0
- package/src/assets/textures/river.jpg +0 -0
- package/src/assets/textures/soft_glow.png +0 -0
- package/src/games/arrows/Arrows.tsx +0 -69
- package/src/games/arrows/ArrowsConstants.ts +0 -107
- package/src/games/arrows/ArrowsGame.ts +0 -735
- package/src/games/arrows/ArrowsScene.ts +0 -395
- package/src/games/balloon-blaster/BalloonBlaster.tsx +0 -75
- package/src/games/balloon-blaster/BalloonBlasterConstants.ts +0 -79
- package/src/games/balloon-blaster/BalloonBlasterGame.ts +0 -287
- package/src/games/balloon-blaster/BalloonBlasterPhysics.ts +0 -95
- package/src/games/balloon-blaster/BalloonBlasterScene.ts +0 -225
- package/src/games/bike-racing/BikeMeshes.ts +0 -273
- package/src/games/bike-racing/BikeRacing.tsx +0 -211
- package/src/games/bike-racing/BikeRacingConstants.ts +0 -103
- package/src/games/bike-racing/BikeRacingGame.ts +0 -557
- package/src/games/bike-racing/BikeRacingScene.ts +0 -119
- package/src/games/block-blast/BlockBlast.tsx +0 -73
- package/src/games/block-blast/BlockBlastConstants.ts +0 -179
- package/src/games/block-blast/BlockBlastGame.ts +0 -471
- package/src/games/block-blast/BlockBlastScene.ts +0 -156
- package/src/games/block-breaker/BlockBreaker.tsx +0 -79
- package/src/games/block-breaker/BlockBreakerConstants.ts +0 -139
- package/src/games/block-breaker/BlockBreakerGame.ts +0 -459
- package/src/games/block-breaker/BlockBreakerScene.ts +0 -257
- package/src/games/bluk/Bluk.tsx +0 -82
- package/src/games/bluk/BlukConstants.ts +0 -121
- package/src/games/bluk/BlukGame.ts +0 -323
- package/src/games/bluk/BlukRules.ts +0 -154
- package/src/games/bluk/BlukScene.ts +0 -514
- package/src/games/bubble-shooter/BubbleShooter.tsx +0 -76
- package/src/games/bubble-shooter/BubbleShooterConstants.ts +0 -103
- package/src/games/bubble-shooter/BubbleShooterGame.ts +0 -459
- package/src/games/bubble-shooter/BubbleShooterScene.ts +0 -158
- package/src/games/candy-crush/CandyCrush.tsx +0 -77
- package/src/games/candy-crush/CandyCrushConstants.ts +0 -94
- package/src/games/candy-crush/CandyCrushGame.ts +0 -477
- package/src/games/candy-crush/CandyCrushScene.ts +0 -209
- package/src/games/car-racing/CarMeshes.ts +0 -440
- package/src/games/car-racing/CarRacing.tsx +0 -211
- package/src/games/car-racing/CarRacingConstants.ts +0 -167
- package/src/games/car-racing/CarRacingFacade.ts +0 -40
- package/src/games/car-racing/CarRacingGame.ts +0 -539
- package/src/games/car-racing/CarRacingScene.ts +0 -1026
- package/src/games/car-racing/CarRacingScenery.ts +0 -265
- package/src/games/chameleon-run/ChameleonRun.tsx +0 -96
- package/src/games/chameleon-run/ChameleonRunBackdrop.ts +0 -186
- package/src/games/chameleon-run/ChameleonRunConstants.ts +0 -47
- package/src/games/chameleon-run/ChameleonRunGame.ts +0 -309
- package/src/games/chameleon-run/ChameleonRunMeshes.ts +0 -305
- package/src/games/chameleon-run/ChameleonRunRules.ts +0 -252
- package/src/games/chameleon-run/ChameleonRunScene.ts +0 -310
- package/src/games/checkers/Checkers.tsx +0 -83
- package/src/games/checkers/CheckersAI.ts +0 -255
- package/src/games/checkers/CheckersConstants.ts +0 -68
- package/src/games/checkers/CheckersGame.ts +0 -322
- package/src/games/checkers/CheckersRules.ts +0 -167
- package/src/games/checkers/CheckersScene.ts +0 -308
- package/src/games/color-switch/ColorSwitch.tsx +0 -75
- package/src/games/color-switch/ColorSwitchConstants.ts +0 -61
- package/src/games/color-switch/ColorSwitchGame.ts +0 -329
- package/src/games/color-switch/ColorSwitchScene.ts +0 -220
- package/src/games/colors-sort/ColorsSort.tsx +0 -82
- package/src/games/colors-sort/ColorsSortConstants.ts +0 -119
- package/src/games/colors-sort/ColorsSortGame.ts +0 -246
- package/src/games/colors-sort/ColorsSortScene.ts +0 -315
- package/src/games/connect-em-all/ConnectEmAll.tsx +0 -70
- package/src/games/connect-em-all/ConnectEmAllConstants.ts +0 -77
- package/src/games/connect-em-all/ConnectEmAllGame.ts +0 -401
- package/src/games/connect-em-all/ConnectEmAllScene.ts +0 -235
- package/src/games/crossy-road/CrossyRoad.tsx +0 -74
- package/src/games/crossy-road/CrossyRoadCamera.ts +0 -59
- package/src/games/crossy-road/CrossyRoadConstants.ts +0 -132
- package/src/games/crossy-road/CrossyRoadGame.ts +0 -293
- package/src/games/crossy-road/CrossyRoadMeshes.ts +0 -195
- package/src/games/crossy-road/CrossyRoadPerson.ts +0 -198
- package/src/games/crossy-road/CrossyRoadRules.ts +0 -99
- package/src/games/crossy-road/CrossyRoadScene.ts +0 -355
- package/src/games/dino-jump/DinoJump.tsx +0 -77
- package/src/games/dino-jump/DinoJumpConstants.ts +0 -80
- package/src/games/dino-jump/DinoJumpGame.ts +0 -344
- package/src/games/dino-jump/DinoJumpScene.ts +0 -686
- package/src/games/dots-and-boxes/DotsAndBoxes.tsx +0 -83
- package/src/games/dots-and-boxes/DotsAndBoxesConstants.ts +0 -77
- package/src/games/dots-and-boxes/DotsAndBoxesGame.ts +0 -271
- package/src/games/dots-and-boxes/DotsAndBoxesScene.ts +0 -249
- package/src/games/falling-sticks/FallingSticks.tsx +0 -72
- package/src/games/falling-sticks/FallingSticksConstants.ts +0 -62
- package/src/games/falling-sticks/FallingSticksGame.ts +0 -220
- package/src/games/falling-sticks/FallingSticksRules.ts +0 -145
- package/src/games/falling-sticks/FallingSticksScene.ts +0 -245
- package/src/games/find-different-number/FindDifferentNumber.tsx +0 -74
- package/src/games/find-different-number/FindDifferentNumberConstants.ts +0 -74
- package/src/games/find-different-number/FindDifferentNumberGame.ts +0 -174
- package/src/games/find-different-number/FindDifferentNumberRules.ts +0 -43
- package/src/games/find-different-number/FindDifferentNumberScene.ts +0 -193
- package/src/games/flappy-bird/FlappyBird.tsx +0 -73
- package/src/games/flappy-bird/FlappyBirdConstants.ts +0 -95
- package/src/games/flappy-bird/FlappyBirdGame.ts +0 -375
- package/src/games/flappy-bird/FlappyBirdScene.ts +0 -630
- package/src/games/fruit-merger/FruitMerger.tsx +0 -73
- package/src/games/fruit-merger/FruitMergerConstants.ts +0 -102
- package/src/games/fruit-merger/FruitMergerGame.ts +0 -285
- package/src/games/fruit-merger/FruitMergerRules.ts +0 -286
- package/src/games/fruit-merger/FruitMergerScene.ts +0 -498
- package/src/games/fruit-ninja/FruitNinja.tsx +0 -129
- package/src/games/fruit-ninja/FruitNinjaConstants.ts +0 -107
- package/src/games/fruit-ninja/FruitNinjaGame.ts +0 -391
- package/src/games/fruit-ninja/FruitNinjaScene.ts +0 -319
- package/src/games/fruit-ninja/FruitNinjaWorld.ts +0 -17
- package/src/games/game-2048/Game2048.tsx +0 -84
- package/src/games/game-2048/Game2048Constants.ts +0 -68
- package/src/games/game-2048/Game2048Game.ts +0 -181
- package/src/games/game-2048/Game2048Rules.ts +0 -101
- package/src/games/game-2048/Game2048Scene.ts +0 -206
- package/src/games/knife-hit/KnifeHit.tsx +0 -78
- package/src/games/knife-hit/KnifeHitConstants.ts +0 -89
- package/src/games/knife-hit/KnifeHitGame.ts +0 -264
- package/src/games/knife-hit/KnifeHitScene.ts +0 -360
- package/src/games/ludo-king/LudoKing.tsx +0 -86
- package/src/games/ludo-king/LudoKingConstants.ts +0 -212
- package/src/games/ludo-king/LudoKingGame.ts +0 -326
- package/src/games/ludo-king/LudoKingRules.ts +0 -143
- package/src/games/ludo-king/LudoKingScene.ts +0 -397
- package/src/games/maze-runner/MazeRunner.tsx +0 -88
- package/src/games/maze-runner/MazeRunnerConstants.ts +0 -65
- package/src/games/maze-runner/MazeRunnerGame.ts +0 -176
- package/src/games/maze-runner/MazeRunnerRules.ts +0 -161
- package/src/games/maze-runner/MazeRunnerScene.ts +0 -245
- package/src/games/memory-match/MemoryMatch.tsx +0 -77
- package/src/games/memory-match/MemoryMatchConstants.ts +0 -105
- package/src/games/memory-match/MemoryMatchGame.ts +0 -222
- package/src/games/memory-match/MemoryMatchRules.ts +0 -38
- package/src/games/memory-match/MemoryMatchScene.ts +0 -268
- package/src/games/mine-sweeper/MineSweeper.tsx +0 -77
- package/src/games/mine-sweeper/MineSweeperConstants.ts +0 -94
- package/src/games/mine-sweeper/MineSweeperGame.ts +0 -234
- package/src/games/mine-sweeper/MineSweeperRules.ts +0 -67
- package/src/games/mine-sweeper/MineSweeperScene.ts +0 -262
- package/src/games/mob-control/MobControl.tsx +0 -73
- package/src/games/mob-control/MobControlConstants.ts +0 -106
- package/src/games/mob-control/MobControlGame.ts +0 -176
- package/src/games/mob-control/MobControlMeshes.ts +0 -85
- package/src/games/mob-control/MobControlRenderer.ts +0 -108
- package/src/games/mob-control/MobControlRules.ts +0 -522
- package/src/games/mob-control/MobControlScene.ts +0 -399
- package/src/games/number-search/NumberSearch.tsx +0 -18
- package/src/games/number-search/NumberSearchNumbers.ts +0 -623
- package/src/games/nuts-and-bolts/NutsAndBolts.tsx +0 -85
- package/src/games/nuts-and-bolts/NutsAndBoltsConstants.ts +0 -75
- package/src/games/nuts-and-bolts/NutsAndBoltsGame.ts +0 -298
- package/src/games/nuts-and-bolts/NutsAndBoltsRules.ts +0 -474
- package/src/games/nuts-and-bolts/NutsAndBoltsScene.ts +0 -498
- package/src/games/pac-man/PacMan.tsx +0 -86
- package/src/games/pac-man/PacManConstants.ts +0 -169
- package/src/games/pac-man/PacManGame.ts +0 -406
- package/src/games/pac-man/PacManRules.ts +0 -255
- package/src/games/pac-man/PacManScene.ts +0 -387
- package/src/games/paper-io/PaperIo.tsx +0 -91
- package/src/games/paper-io/PaperIoConstants.ts +0 -86
- package/src/games/paper-io/PaperIoGame.ts +0 -193
- package/src/games/paper-io/PaperIoMeshes.ts +0 -233
- package/src/games/paper-io/PaperIoRules.ts +0 -315
- package/src/games/paper-io/PaperIoScene.ts +0 -310
- package/src/games/penguin-run/PenguinMeshes.ts +0 -269
- package/src/games/penguin-run/PenguinModel.ts +0 -712
- package/src/games/penguin-run/PenguinRun.tsx +0 -77
- package/src/games/penguin-run/PenguinRunConstants.ts +0 -69
- package/src/games/penguin-run/PenguinRunGame.ts +0 -406
- package/src/games/penguin-run/PenguinRunScene.ts +0 -949
- package/src/games/perfect-circle/PerfectCircle.tsx +0 -74
- package/src/games/perfect-circle/PerfectCircleConstants.ts +0 -52
- package/src/games/perfect-circle/PerfectCircleGame.ts +0 -153
- package/src/games/perfect-circle/PerfectCircleRules.ts +0 -111
- package/src/games/perfect-circle/PerfectCircleScene.ts +0 -176
- package/src/games/pipe-connect/PipeConnect.tsx +0 -69
- package/src/games/pipe-connect/PipeConnectConstants.ts +0 -101
- package/src/games/pipe-connect/PipeConnectGame.ts +0 -179
- package/src/games/pipe-connect/PipeConnectRules.ts +0 -326
- package/src/games/pipe-connect/PipeConnectScene.ts +0 -271
- package/src/games/play-with-tua/PlayWithTua.tsx +0 -123
- package/src/games/play-with-tua/PlayWithTuaConstants.ts +0 -70
- package/src/games/play-with-tua/PlayWithTuaGame.ts +0 -167
- package/src/games/play-with-tua/PlayWithTuaModel.ts +0 -42
- package/src/games/play-with-tua/PlayWithTuaScene.ts +0 -36
- package/src/games/popit-fidget/PopitFidget.tsx +0 -72
- package/src/games/popit-fidget/PopitFidgetConstants.ts +0 -71
- package/src/games/popit-fidget/PopitFidgetGame.ts +0 -148
- package/src/games/popit-fidget/PopitFidgetScene.ts +0 -242
- package/src/games/reversi/Reversi.tsx +0 -94
- package/src/games/reversi/ReversiConstants.ts +0 -67
- package/src/games/reversi/ReversiGame.ts +0 -266
- package/src/games/reversi/ReversiRules.ts +0 -176
- package/src/games/reversi/ReversiScene.ts +0 -240
- package/src/games/search-grid/SearchGrid.tsx +0 -92
- package/src/games/search-grid/SearchGridConstants.ts +0 -178
- package/src/games/search-grid/SearchGridGame.ts +0 -209
- package/src/games/search-grid/SearchGridScene.ts +0 -301
- package/src/games/shared/BackdropCard.tsx +0 -54
- package/src/games/shared/EngineBackdrop.ts +0 -300
- package/src/games/shared/EngineBlasts.ts +0 -136
- package/src/games/shared/EngineBlocks.ts +0 -91
- package/src/games/shared/EngineControlText.ts +0 -17
- package/src/games/shared/EngineDice.ts +0 -250
- package/src/games/shared/EngineFootprint.ts +0 -35
- package/src/games/shared/EngineFruits.ts +0 -1435
- package/src/games/shared/EngineGameLoader.tsx +0 -88
- package/src/games/shared/EngineGameScreen.tsx +0 -325
- package/src/games/shared/EngineGameWidth.ts +0 -3
- package/src/games/shared/EngineGameWidth.web.ts +0 -3
- package/src/games/shared/EngineGlyphs.ts +0 -178
- package/src/games/shared/EngineHud.ts +0 -815
- package/src/games/shared/EngineLoading.ts +0 -477
- package/src/games/shared/EngineMeadow.ts +0 -725
- package/src/games/shared/EngineMeshCache.ts +0 -15
- package/src/games/shared/EngineMeshes.ts +0 -10
- package/src/games/shared/EngineRacingChase.ts +0 -21
- package/src/games/shared/EngineRacingHandling.ts +0 -48
- package/src/games/shared/EngineReadyContext.ts +0 -4
- package/src/games/shared/EngineTilt.ts +0 -44
- package/src/games/shared/EngineTouchSurface.tsx +0 -103
- package/src/games/shared/EngineUtils.ts +0 -52
- package/src/games/shared/GameActivity.ts +0 -13
- package/src/games/shared/GameLoading.tsx +0 -202
- package/src/games/shared/GameLoadingTransition.tsx +0 -61
- package/src/games/shared/ProceduralCacheVersion.ts +0 -2
- package/src/games/shared/useEngineGame.ts +0 -240
- package/src/games/shared/useGameResource.ts +0 -21
- package/src/games/shared/useLiveState.ts +0 -58
- package/src/games/sliding-numbers/SlidingNumbers.tsx +0 -71
- package/src/games/sliding-numbers/SlidingNumbersConstants.ts +0 -65
- package/src/games/sliding-numbers/SlidingNumbersGame.ts +0 -192
- package/src/games/sliding-numbers/SlidingNumbersRules.ts +0 -79
- package/src/games/sliding-numbers/SlidingNumbersScene.ts +0 -193
- package/src/games/snake-3d/Snake3D.tsx +0 -76
- package/src/games/snake-3d/Snake3DConstants.ts +0 -61
- package/src/games/snake-3d/Snake3DGame.ts +0 -192
- package/src/games/snake-3d/Snake3DMotion.ts +0 -22
- package/src/games/snake-3d/Snake3DRules.ts +0 -116
- package/src/games/snake-3d/Snake3DScene.ts +0 -322
- package/src/games/snakes-and-ladders/SnakesAndLadders.tsx +0 -87
- package/src/games/snakes-and-ladders/SnakesAndLaddersConstants.ts +0 -136
- package/src/games/snakes-and-ladders/SnakesAndLaddersGame.ts +0 -310
- package/src/games/snakes-and-ladders/SnakesAndLaddersScene.ts +0 -515
- package/src/games/space-fighter/SpaceFighter.tsx +0 -74
- package/src/games/space-fighter/SpaceFighterConstants.ts +0 -86
- package/src/games/space-fighter/SpaceFighterGame.ts +0 -292
- package/src/games/space-fighter/SpaceFighterScene.ts +0 -550
- package/src/games/spider-solitaire/SpiderSolitaire.tsx +0 -80
- package/src/games/spider-solitaire/SpiderSolitaireConstants.ts +0 -107
- package/src/games/spider-solitaire/SpiderSolitaireGame.ts +0 -387
- package/src/games/spider-solitaire/SpiderSolitaireRules.ts +0 -123
- package/src/games/spider-solitaire/SpiderSolitaireScene.ts +0 -352
- package/src/games/stack-tower/StackTower.tsx +0 -76
- package/src/games/stack-tower/StackTowerConstants.ts +0 -74
- package/src/games/stack-tower/StackTowerGame.ts +0 -236
- package/src/games/stack-tower/StackTowerScene.ts +0 -186
- package/src/games/sudoku/Sudoku.tsx +0 -73
- package/src/games/sudoku/SudokuConstants.ts +0 -127
- package/src/games/sudoku/SudokuGame.ts +0 -250
- package/src/games/sudoku/SudokuRules.ts +0 -125
- package/src/games/sudoku/SudokuScene.ts +0 -304
- package/src/games/tangram/Tangram.tsx +0 -79
- package/src/games/tangram/TangramConstants.ts +0 -64
- package/src/games/tangram/TangramGame.ts +0 -356
- package/src/games/tangram/TangramRules.ts +0 -409
- package/src/games/tangram/TangramScene.ts +0 -203
- package/src/games/tank-1990/Tank1990.tsx +0 -78
- package/src/games/tank-1990/Tank1990Constants.ts +0 -81
- package/src/games/tank-1990/Tank1990Game.ts +0 -331
- package/src/games/tank-1990/Tank1990Rules.ts +0 -390
- package/src/games/tank-1990/Tank1990Scene.ts +0 -434
- package/src/games/tic-tac-toe/TicTacToe.tsx +0 -98
- package/src/games/tic-tac-toe/TicTacToeConstants.ts +0 -69
- package/src/games/tic-tac-toe/TicTacToeGame.ts +0 -200
- package/src/games/tic-tac-toe/TicTacToeRules.ts +0 -103
- package/src/games/tic-tac-toe/TicTacToeScene.ts +0 -245
- package/src/games/tile-home/TileHome.tsx +0 -92
- package/src/games/tile-home/TileHomeConstants.ts +0 -139
- package/src/games/tile-home/TileHomeGame.ts +0 -435
- package/src/games/tile-home/TileHomeScene.ts +0 -154
- package/src/games/treasure-hunt/TreasureHunt.tsx +0 -206
- package/src/games/treasure-hunt/TreasureHuntConstants.ts +0 -266
- package/src/games/treasure-hunt/TreasureHuntControls.ts +0 -280
- package/src/games/treasure-hunt/TreasureHuntGame.ts +0 -402
- package/src/games/treasure-hunt/TreasureHuntMeshes.ts +0 -422
- package/src/games/treasure-hunt/TreasureHuntModel.ts +0 -506
- package/src/games/treasure-hunt/TreasureHuntRules.ts +0 -1210
- package/src/games/treasure-hunt/TreasureHuntScene.ts +0 -586
- package/src/games/whack-a-mole/WhackAMole.tsx +0 -79
- package/src/games/whack-a-mole/WhackAMoleConstants.ts +0 -94
- package/src/games/whack-a-mole/WhackAMoleGame.ts +0 -233
- package/src/games/whack-a-mole/WhackAMoleScene.ts +0 -349
- package/src/games/word-search/WordSearch.tsx +0 -18
- package/src/games/word-search/WordSearchWords.ts +0 -1642
- package/src/helpers/GamePatternData.ts +0 -120
- package/src/helpers/GameSettingsModal.tsx +0 -384
- package/src/helpers/GameTheme.tsx +0 -37
- package/src/helpers/IconPaths.ts +0 -6
- package/src/helpers/index.ts +0 -2
- package/src/index.tsx +0 -60
- package/src/services/GameAssetLoader.ts +0 -111
- package/src/services/GameAssets.ts +0 -149
- package/src/services/GameLoaders.ts +0 -93
- package/src/services/GamesConstants.ts +0 -193
- package/src/services/GamesMetadata.ts +0 -711
- package/src/services/GamesService.ts +0 -116
- package/src/services/HapticsService.ts +0 -48
- package/src/services/ScoringService.ts +0 -19
- package/src/services/SfxSources.ts +0 -81
- package/src/services/SoundsService.ts +0 -582
- package/src/services/ThemeService.ts +0 -281
- package/src/services/UtilsService.ts +0 -134
- package/src/services/index.ts +0 -6
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// The game background pattern as plain data, with no renderer: three translucent rainbow gradients,
|
|
2
|
-
// floating shapes, large decorations and a faint 40pt grid, in window points and drawing order.
|
|
3
|
-
// Shared seeded geometry and colors keep the engine scenes and website pattern consistent.
|
|
4
|
-
|
|
5
|
-
export const PATTERN_RAINBOW = [
|
|
6
|
-
'#E91E63',
|
|
7
|
-
'#F44336',
|
|
8
|
-
'#FF5722',
|
|
9
|
-
'#FF9800',
|
|
10
|
-
'#FFC107',
|
|
11
|
-
'#8E24AA',
|
|
12
|
-
'#CDDC39',
|
|
13
|
-
'#8BC34A',
|
|
14
|
-
'#4CAF50',
|
|
15
|
-
'#009688',
|
|
16
|
-
'#00BCD4',
|
|
17
|
-
'#03A9F4',
|
|
18
|
-
'#2196F3',
|
|
19
|
-
'#3F51B5',
|
|
20
|
-
'#9C27B0'
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
|
-
const R = PATTERN_RAINBOW;
|
|
24
|
-
|
|
25
|
-
/** A linear gradient across the whole pattern: evenly spaced CSS color stops from `start` to `end`. */
|
|
26
|
-
export type PatternGradient = { start: [number, number]; end: [number, number]; colors: readonly string[] };
|
|
27
|
-
|
|
28
|
-
export type PatternShape =
|
|
29
|
-
| { kind: 'circle'; cx: number; cy: number; r: number; color: string }
|
|
30
|
-
| { kind: 'rrect'; x: number; y: number; w: number; h: number; r: number; color: string }
|
|
31
|
-
| { kind: 'diamond'; cx: number; cy: number; size: number; color: string };
|
|
32
|
-
|
|
33
|
-
export type PatternLine = { x: number; y: number; w: number; h: number };
|
|
34
|
-
|
|
35
|
-
export type GamePattern = {
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
gradients: PatternGradient[];
|
|
39
|
-
/** Floating shapes, then the large decorations, in drawing order. */
|
|
40
|
-
shapes: PatternShape[];
|
|
41
|
-
/** The faint grid, drawn last in `GRID_COLOR`. */
|
|
42
|
-
grid: PatternLine[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const PATTERN_GRID_COLOR = 'rgba(0, 0, 0, 0.02)';
|
|
46
|
-
|
|
47
|
-
const seededRandom = (seed: number) => {
|
|
48
|
-
const x = Math.sin(seed * 12.9898 + seed * 78.233) * 43758.5453;
|
|
49
|
-
return x - Math.floor(x);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const hexAlpha = (opacity: number) =>
|
|
53
|
-
Math.floor(opacity * 255)
|
|
54
|
-
.toString(16)
|
|
55
|
-
.padStart(2, '0');
|
|
56
|
-
|
|
57
|
-
/** The pattern for a window `width` x `height` points. */
|
|
58
|
-
export function gamePattern(width: number, height: number): GamePattern {
|
|
59
|
-
const gradients: PatternGradient[] = [
|
|
60
|
-
{
|
|
61
|
-
start: [0, 0],
|
|
62
|
-
end: [width, height],
|
|
63
|
-
colors: [`${R[0]}40`, `${R[2]}35`, `${R[4]}40`, `${R[6]}35`, `${R[8]}40`, `${R[10]}35`, `${R[12]}40`, `${R[14]}35`]
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
start: [0, 0],
|
|
67
|
-
end: [width / 2, height / 2],
|
|
68
|
-
colors: [`${R[1]}25`, 'transparent', `${R[5]}25`, 'transparent', `${R[9]}25`, 'transparent', `${R[13]}25`, 'transparent']
|
|
69
|
-
},
|
|
70
|
-
{ start: [width, 0], end: [0, height], colors: [`${R[3]}20`, 'transparent', `${R[7]}20`, 'transparent', `${R[11]}20`, 'transparent'] }
|
|
71
|
-
];
|
|
72
|
-
|
|
73
|
-
const shapes: PatternShape[] = [];
|
|
74
|
-
// Floating shapes: circle, square, tall rect, wide rect, diamond, in turn
|
|
75
|
-
const count = 20;
|
|
76
|
-
for (let i = 0; i < count; i++) {
|
|
77
|
-
const x = (width / count) * i + Math.sin(i * 0.5) * 40 + seededRandom(i * 3 + 1) * 80;
|
|
78
|
-
const y = (height / count) * i + Math.cos(i * 0.7) * 50 + seededRandom(i * 3 + 2) * 100;
|
|
79
|
-
const size = 24 + seededRandom(i * 3 + 3) * 24;
|
|
80
|
-
const color = `${R[i % R.length]}${hexAlpha(0.2 + Math.sin(i) * 0.1)}`;
|
|
81
|
-
const px = Math.max(size, Math.min(width - size, x));
|
|
82
|
-
const py = Math.max(size, Math.min(height - size, y));
|
|
83
|
-
switch (i % 5) {
|
|
84
|
-
case 0:
|
|
85
|
-
shapes.push({ kind: 'circle', cx: px + size / 2, cy: py + size / 2, r: size / 2, color });
|
|
86
|
-
break;
|
|
87
|
-
case 1:
|
|
88
|
-
shapes.push({ kind: 'rrect', x: px, y: py, w: size, h: size, r: size * 0.2, color });
|
|
89
|
-
break;
|
|
90
|
-
case 2:
|
|
91
|
-
shapes.push({ kind: 'rrect', x: px, y: py, w: size * 0.55, h: size * 1.3, r: size * 0.12, color });
|
|
92
|
-
break;
|
|
93
|
-
case 3:
|
|
94
|
-
shapes.push({ kind: 'rrect', x: px, y: py, w: size * 1.3, h: size * 0.55, r: size * 0.12, color });
|
|
95
|
-
break;
|
|
96
|
-
default:
|
|
97
|
-
shapes.push({ kind: 'diamond', cx: px + size / 2, cy: py + size / 2, size, color });
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// Large decorations
|
|
101
|
-
const deco = (i: number) => `${R[i]}30`;
|
|
102
|
-
shapes.push(
|
|
103
|
-
{ kind: 'circle', cx: width * 0.1, cy: height * 0.15, r: 40, color: deco(0) },
|
|
104
|
-
{ kind: 'rrect', x: width * 0.85, y: height * 0.82, w: 70, h: 70, r: 14, color: deco(3) },
|
|
105
|
-
{ kind: 'diamond', cx: width * 0.85, cy: height * 0.2, size: 60, color: deco(8) },
|
|
106
|
-
{ kind: 'rrect', x: width * 0.1, y: height * 0.77, w: 90, h: 40, r: 8, color: deco(12) },
|
|
107
|
-
{ kind: 'circle', cx: width * 0.5, cy: height * 0.1, r: 25, color: deco(14) },
|
|
108
|
-
{ kind: 'rrect', x: width * 0.17, y: height * 0.47, w: 36, h: 64, r: 8, color: deco(6) },
|
|
109
|
-
{ kind: 'diamond', cx: width * 0.8, cy: height * 0.6, size: 56, color: deco(10) },
|
|
110
|
-
{ kind: 'rrect', x: width * 0.56, y: height * 0.87, w: 50, h: 50, r: 10, color: deco(1) },
|
|
111
|
-
{ kind: 'circle', cx: width * 0.3, cy: height * 0.25, r: 24, color: deco(4) },
|
|
112
|
-
{ kind: 'rrect', x: width * 0.66, y: height * 0.32, w: 56, h: 30, r: 6, color: deco(9) }
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
const grid: PatternLine[] = [];
|
|
116
|
-
for (let i = 0; i < Math.floor(width / 40); i++) grid.push({ x: i * 40, y: 0, w: 1, h: height });
|
|
117
|
-
for (let i = 0; i < Math.floor(height / 40); i++) grid.push({ x: 0, y: i * 40, w: width, h: 1 });
|
|
118
|
-
|
|
119
|
-
return { width, height, gradients, shapes, grid };
|
|
120
|
-
}
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Modal, Platform, Pressable, ScrollView, StyleSheet, Text, TouchableOpacity, useWindowDimensions, View } from 'react-native';
|
|
3
|
-
import { BackdropCard as CardBackground } from '../games/shared/BackdropCard';
|
|
4
|
-
import { getGameTitle } from '../services/GamesConstants';
|
|
5
|
-
import { GAMES_METADATA } from '../services/GamesMetadata';
|
|
6
|
-
import type { GameTheme } from '../services/ThemeService';
|
|
7
|
-
import { isThemedGame } from '../services/ThemeService';
|
|
8
|
-
import { type GAME_IDS, type GameSettings, isTablet } from '../services/UtilsService';
|
|
9
|
-
import { createThemedStyles, useGameTheme } from './GameTheme';
|
|
10
|
-
|
|
11
|
-
export interface GameSettingsProps {
|
|
12
|
-
gameId: string;
|
|
13
|
-
settings: GameSettings;
|
|
14
|
-
onSettingsChange?: (settings: GameSettings) => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface CustomSwitchProps {
|
|
18
|
-
label: string;
|
|
19
|
-
value: boolean;
|
|
20
|
-
onValueChange: (value: boolean) => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const CustomSwitch: React.FC<CustomSwitchProps> = React.memo(({ label, value, onValueChange }) => {
|
|
24
|
-
const theme = useGameTheme();
|
|
25
|
-
const styles = getStyles(theme);
|
|
26
|
-
return (
|
|
27
|
-
<Pressable
|
|
28
|
-
accessibilityRole="switch"
|
|
29
|
-
accessibilityLabel={label}
|
|
30
|
-
accessibilityState={{ checked: value }}
|
|
31
|
-
aria-checked={value}
|
|
32
|
-
onPress={() => onValueChange(!value)}>
|
|
33
|
-
<View style={[styles.switchTrack, { backgroundColor: value ? theme.SWITCH_TRACK_ON : theme.SWITCH_TRACK_OFF }]}>
|
|
34
|
-
<View style={[styles.switchThumb, { left: value ? 25 : 3 }]} />
|
|
35
|
-
</View>
|
|
36
|
-
</Pressable>
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// Module-level so an omitted handler doesn't mint a new default function every render
|
|
41
|
-
const noopSettingsChange = (_settings: GameSettings) => undefined;
|
|
42
|
-
|
|
43
|
-
const GameSettingsModalComponent: React.FC<GameSettingsProps> = ({ gameId, settings, onSettingsChange = noopSettingsChange }) => {
|
|
44
|
-
const theme = useGameTheme();
|
|
45
|
-
const styles = getStyles(theme);
|
|
46
|
-
const title = `${getGameTitle(gameId)} Settings`;
|
|
47
|
-
const game = GAMES_METADATA[gameId as keyof typeof GAMES_METADATA];
|
|
48
|
-
|
|
49
|
-
const { isVisible, enableSounds, enableHaptics } = settings;
|
|
50
|
-
const viewport = useWindowDimensions();
|
|
51
|
-
const popover = Platform.OS === 'web';
|
|
52
|
-
const width = Math.max(0, Math.min(360, viewport.width - 32));
|
|
53
|
-
const top = Math.max(16, Math.min(settings.anchor?.top ?? 80, viewport.height - 160));
|
|
54
|
-
const maxRight = Math.max(16, viewport.width - width - 16);
|
|
55
|
-
const right = Math.min(maxRight, Math.max(16, settings.anchor?.right ?? 16));
|
|
56
|
-
// Only games that follow the light / dark theme get the toggle (the rest keep their own classic look)
|
|
57
|
-
const themed = isThemedGame(gameId as GAME_IDS);
|
|
58
|
-
const darkMode = settings.theme === 'dark';
|
|
59
|
-
|
|
60
|
-
const handleSoundToggle = (enabled: boolean) => {
|
|
61
|
-
onSettingsChange({
|
|
62
|
-
...settings,
|
|
63
|
-
enableSounds: enabled
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const handleHapticToggle = (enabled: boolean) => {
|
|
68
|
-
onSettingsChange({
|
|
69
|
-
...settings,
|
|
70
|
-
enableHaptics: enabled
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const handleThemeToggle = (dark: boolean) => {
|
|
75
|
-
onSettingsChange({
|
|
76
|
-
...settings,
|
|
77
|
-
theme: dark ? 'dark' : 'light'
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const handleOnClose = () => {
|
|
82
|
-
onSettingsChange({
|
|
83
|
-
...settings,
|
|
84
|
-
isVisible: false
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<Modal visible={isVisible} transparent={true} onRequestClose={handleOnClose}>
|
|
90
|
-
<View style={[styles.overlay, popover && { backgroundColor: 'transparent' }]}>
|
|
91
|
-
{popover && (
|
|
92
|
-
<Pressable accessibilityRole="button" accessibilityLabel="Dismiss game settings" style={StyleSheet.absoluteFill} onPress={handleOnClose} />
|
|
93
|
-
)}
|
|
94
|
-
<View
|
|
95
|
-
testID={popover ? 'game-settings-popover' : undefined}
|
|
96
|
-
role={popover ? 'dialog' : undefined}
|
|
97
|
-
accessibilityLabel={popover ? title : undefined}
|
|
98
|
-
style={[
|
|
99
|
-
styles.container,
|
|
100
|
-
popover && {
|
|
101
|
-
position: 'absolute',
|
|
102
|
-
top,
|
|
103
|
-
right,
|
|
104
|
-
width,
|
|
105
|
-
maxHeight: Math.max(0, viewport.height - top - 16),
|
|
106
|
-
backgroundColor: theme.SURFACE,
|
|
107
|
-
borderRadius: 16,
|
|
108
|
-
borderWidth: 1,
|
|
109
|
-
borderColor: theme.SURFACE,
|
|
110
|
-
padding: 20,
|
|
111
|
-
boxShadow: '0 12px 40px #0004'
|
|
112
|
-
}
|
|
113
|
-
]}>
|
|
114
|
-
{!popover && <CardBackground />}
|
|
115
|
-
<View style={[styles.header, popover && styles.popoverHeader]}>
|
|
116
|
-
<Text accessibilityRole="header" style={[styles.headerTitle, popover && styles.popoverHeaderTitle]}>
|
|
117
|
-
{popover ? 'Settings' : title}
|
|
118
|
-
</Text>
|
|
119
|
-
<TouchableOpacity
|
|
120
|
-
accessibilityRole="button"
|
|
121
|
-
accessibilityLabel="Close settings"
|
|
122
|
-
onPress={handleOnClose}
|
|
123
|
-
style={[styles.closeButton, popover && styles.popoverCloseButton]}>
|
|
124
|
-
<Text style={[styles.closeButtonText, popover && styles.popoverCloseButtonText]}>✕</Text>
|
|
125
|
-
</TouchableOpacity>
|
|
126
|
-
</View>
|
|
127
|
-
|
|
128
|
-
<ScrollView
|
|
129
|
-
style={[styles.scrollView, popover && styles.popoverScrollView]}
|
|
130
|
-
contentContainerStyle={styles.scrollContent}
|
|
131
|
-
showsVerticalScrollIndicator={false}>
|
|
132
|
-
{/* Preferences */}
|
|
133
|
-
<View style={[styles.section, popover && styles.popoverSection]}>
|
|
134
|
-
<View style={styles.toggleContainer}>
|
|
135
|
-
<View style={styles.toggleLeft}>
|
|
136
|
-
<View>
|
|
137
|
-
<Text style={[styles.toggleTitle, popover && styles.popoverText]}>Sound Effects</Text>
|
|
138
|
-
<Text style={[styles.toggleSubtitle, popover && styles.popoverText]}>Play sounds during gameplay</Text>
|
|
139
|
-
</View>
|
|
140
|
-
</View>
|
|
141
|
-
<CustomSwitch label="Sound Effects" value={enableSounds} onValueChange={handleSoundToggle} />
|
|
142
|
-
</View>
|
|
143
|
-
<View style={[styles.divider, popover && styles.popoverDivider]} />
|
|
144
|
-
<View style={styles.toggleContainer}>
|
|
145
|
-
<View style={styles.toggleLeft}>
|
|
146
|
-
<View>
|
|
147
|
-
<Text style={[styles.toggleTitle, popover && styles.popoverText]}>Haptic Feedback</Text>
|
|
148
|
-
<Text style={[styles.toggleSubtitle, popover && styles.popoverText]}>Vibration on interactions</Text>
|
|
149
|
-
</View>
|
|
150
|
-
</View>
|
|
151
|
-
<CustomSwitch label="Haptic Feedback" value={enableHaptics} onValueChange={handleHapticToggle} />
|
|
152
|
-
</View>
|
|
153
|
-
{themed && (
|
|
154
|
-
<>
|
|
155
|
-
<View style={[styles.divider, popover && styles.popoverDivider]} />
|
|
156
|
-
<View style={styles.toggleContainer}>
|
|
157
|
-
<View style={styles.toggleLeft}>
|
|
158
|
-
<View>
|
|
159
|
-
<Text style={[styles.toggleTitle, popover && styles.popoverText]}>Dark Mode</Text>
|
|
160
|
-
<Text style={[styles.toggleSubtitle, popover && styles.popoverText]}>Play with the dark theme</Text>
|
|
161
|
-
</View>
|
|
162
|
-
</View>
|
|
163
|
-
<CustomSwitch label="Dark Mode" value={darkMode} onValueChange={handleThemeToggle} />
|
|
164
|
-
</View>
|
|
165
|
-
</>
|
|
166
|
-
)}
|
|
167
|
-
</View>
|
|
168
|
-
|
|
169
|
-
{/* How to Play */}
|
|
170
|
-
{!popover && game && (
|
|
171
|
-
<View style={[styles.section]}>
|
|
172
|
-
<View style={styles.sectionLabelRow}>
|
|
173
|
-
<Text style={styles.sectionLabel}>How to Play</Text>
|
|
174
|
-
</View>
|
|
175
|
-
<Text style={styles.gameDescription}>{game.description}</Text>
|
|
176
|
-
{game.instructions.map((instruction, index) => (
|
|
177
|
-
<View key={index} style={styles.instructionRow}>
|
|
178
|
-
<View style={styles.instructionBadge}>
|
|
179
|
-
<Text style={styles.instructionNumber}>{index + 1}</Text>
|
|
180
|
-
</View>
|
|
181
|
-
<Text style={styles.instructionText}>{instruction}</Text>
|
|
182
|
-
</View>
|
|
183
|
-
))}
|
|
184
|
-
</View>
|
|
185
|
-
)}
|
|
186
|
-
</ScrollView>
|
|
187
|
-
</View>
|
|
188
|
-
</View>
|
|
189
|
-
</Modal>
|
|
190
|
-
);
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
// Games already memoize these props, which only pays off if the modal itself is memoized
|
|
194
|
-
export const GameSettingsModal = React.memo(GameSettingsModalComponent);
|
|
195
|
-
GameSettingsModal.displayName = 'GameSettingsModal';
|
|
196
|
-
|
|
197
|
-
const getStyles = createThemedStyles((theme: GameTheme) => ({
|
|
198
|
-
overlay: {
|
|
199
|
-
flex: 1,
|
|
200
|
-
backgroundColor: theme.OVERLAY,
|
|
201
|
-
justifyContent: 'center',
|
|
202
|
-
alignItems: 'center'
|
|
203
|
-
},
|
|
204
|
-
container: {
|
|
205
|
-
width: '95%',
|
|
206
|
-
maxWidth: isTablet ? 500 : 360,
|
|
207
|
-
maxHeight: '70%',
|
|
208
|
-
borderRadius: 10,
|
|
209
|
-
overflow: 'hidden',
|
|
210
|
-
backgroundColor: theme.BACKGROUND
|
|
211
|
-
},
|
|
212
|
-
header: {
|
|
213
|
-
flexDirection: 'row',
|
|
214
|
-
justifyContent: 'space-between',
|
|
215
|
-
alignItems: 'center',
|
|
216
|
-
padding: 10,
|
|
217
|
-
paddingHorizontal: 16,
|
|
218
|
-
backgroundColor: theme.SURFACE,
|
|
219
|
-
borderBottomWidth: 1,
|
|
220
|
-
borderBottomColor: theme.DIVIDER
|
|
221
|
-
},
|
|
222
|
-
headerTitle: {
|
|
223
|
-
fontSize: 20,
|
|
224
|
-
fontWeight: 'semibold',
|
|
225
|
-
color: theme.TEXT
|
|
226
|
-
},
|
|
227
|
-
closeButton: {
|
|
228
|
-
padding: 8
|
|
229
|
-
},
|
|
230
|
-
closeButtonText: {
|
|
231
|
-
fontSize: 18,
|
|
232
|
-
fontWeight: 'semibold',
|
|
233
|
-
color: theme.TEXT
|
|
234
|
-
},
|
|
235
|
-
popoverHeader: {
|
|
236
|
-
padding: 0,
|
|
237
|
-
paddingHorizontal: 0,
|
|
238
|
-
marginBottom: 16,
|
|
239
|
-
backgroundColor: 'transparent',
|
|
240
|
-
borderBottomWidth: 0
|
|
241
|
-
},
|
|
242
|
-
popoverText: {
|
|
243
|
-
fontFamily: 'inherit',
|
|
244
|
-
color: theme.TEXT
|
|
245
|
-
},
|
|
246
|
-
popoverHeaderTitle: {
|
|
247
|
-
fontFamily: 'inherit',
|
|
248
|
-
fontSize: 16,
|
|
249
|
-
fontWeight: '700'
|
|
250
|
-
},
|
|
251
|
-
popoverCloseButton: {
|
|
252
|
-
width: 40,
|
|
253
|
-
height: 40,
|
|
254
|
-
padding: 0,
|
|
255
|
-
alignItems: 'center',
|
|
256
|
-
justifyContent: 'center',
|
|
257
|
-
borderRadius: 20,
|
|
258
|
-
borderWidth: 1,
|
|
259
|
-
borderColor: theme.SURFACE,
|
|
260
|
-
backgroundColor: theme.SURFACE
|
|
261
|
-
},
|
|
262
|
-
popoverCloseButtonText: {
|
|
263
|
-
fontSize: 18,
|
|
264
|
-
fontWeight: '400',
|
|
265
|
-
lineHeight: 18
|
|
266
|
-
},
|
|
267
|
-
popoverScrollView: {
|
|
268
|
-
padding: 0,
|
|
269
|
-
paddingBottom: 0
|
|
270
|
-
},
|
|
271
|
-
popoverSection: {
|
|
272
|
-
padding: 0,
|
|
273
|
-
marginBottom: 0,
|
|
274
|
-
borderWidth: 0,
|
|
275
|
-
backgroundColor: 'transparent'
|
|
276
|
-
},
|
|
277
|
-
popoverDivider: {
|
|
278
|
-
backgroundColor: theme.SURFACE
|
|
279
|
-
},
|
|
280
|
-
scrollView: {
|
|
281
|
-
flexShrink: 1,
|
|
282
|
-
padding: 10,
|
|
283
|
-
paddingBottom: 0
|
|
284
|
-
},
|
|
285
|
-
scrollContent: {
|
|
286
|
-
paddingBottom: 0
|
|
287
|
-
},
|
|
288
|
-
section: {
|
|
289
|
-
borderRadius: 12,
|
|
290
|
-
padding: 16,
|
|
291
|
-
marginBottom: 10,
|
|
292
|
-
backgroundColor: theme.SURFACE,
|
|
293
|
-
borderWidth: theme.BORDER_WIDTH,
|
|
294
|
-
borderColor: theme.BORDER
|
|
295
|
-
},
|
|
296
|
-
toggleContainer: {
|
|
297
|
-
flexDirection: 'row',
|
|
298
|
-
justifyContent: 'space-between',
|
|
299
|
-
alignItems: 'center'
|
|
300
|
-
},
|
|
301
|
-
toggleLeft: {
|
|
302
|
-
flexDirection: 'row',
|
|
303
|
-
alignItems: 'center',
|
|
304
|
-
flex: 1,
|
|
305
|
-
gap: 12,
|
|
306
|
-
marginRight: 12
|
|
307
|
-
},
|
|
308
|
-
toggleTitle: {
|
|
309
|
-
fontSize: 15,
|
|
310
|
-
fontWeight: '600' as const,
|
|
311
|
-
color: theme.TEXT
|
|
312
|
-
},
|
|
313
|
-
toggleSubtitle: {
|
|
314
|
-
fontSize: 13,
|
|
315
|
-
marginTop: 2,
|
|
316
|
-
color: theme.TEXT_MUTED
|
|
317
|
-
},
|
|
318
|
-
divider: {
|
|
319
|
-
height: 1,
|
|
320
|
-
backgroundColor: theme.DIVIDER,
|
|
321
|
-
marginVertical: 12
|
|
322
|
-
},
|
|
323
|
-
sectionLabelRow: {
|
|
324
|
-
flexDirection: 'row' as const,
|
|
325
|
-
alignItems: 'center' as const,
|
|
326
|
-
gap: 8,
|
|
327
|
-
marginBottom: 8
|
|
328
|
-
},
|
|
329
|
-
sectionLabel: {
|
|
330
|
-
fontSize: 15,
|
|
331
|
-
fontWeight: '600' as const,
|
|
332
|
-
color: theme.TEXT
|
|
333
|
-
},
|
|
334
|
-
gameDescription: {
|
|
335
|
-
fontSize: 13,
|
|
336
|
-
color: theme.TEXT,
|
|
337
|
-
lineHeight: 19,
|
|
338
|
-
marginBottom: 12
|
|
339
|
-
},
|
|
340
|
-
instructionRow: {
|
|
341
|
-
flexDirection: 'row' as const,
|
|
342
|
-
alignItems: 'flex-start' as const,
|
|
343
|
-
marginBottom: 8
|
|
344
|
-
},
|
|
345
|
-
instructionBadge: {
|
|
346
|
-
width: 22,
|
|
347
|
-
height: 22,
|
|
348
|
-
borderRadius: 11,
|
|
349
|
-
backgroundColor: theme.CHIP,
|
|
350
|
-
alignItems: 'center' as const,
|
|
351
|
-
justifyContent: 'center' as const,
|
|
352
|
-
marginRight: 10,
|
|
353
|
-
marginTop: 1
|
|
354
|
-
},
|
|
355
|
-
instructionNumber: {
|
|
356
|
-
fontSize: 12,
|
|
357
|
-
fontWeight: '700' as const,
|
|
358
|
-
color: theme.TEXT
|
|
359
|
-
},
|
|
360
|
-
instructionText: {
|
|
361
|
-
fontSize: 14,
|
|
362
|
-
color: theme.TEXT,
|
|
363
|
-
flex: 1,
|
|
364
|
-
lineHeight: 20
|
|
365
|
-
},
|
|
366
|
-
switchTrack: {
|
|
367
|
-
width: 52,
|
|
368
|
-
height: 30,
|
|
369
|
-
borderRadius: 15,
|
|
370
|
-
justifyContent: 'center'
|
|
371
|
-
},
|
|
372
|
-
switchThumb: {
|
|
373
|
-
width: 24,
|
|
374
|
-
height: 24,
|
|
375
|
-
borderRadius: 12,
|
|
376
|
-
position: 'absolute',
|
|
377
|
-
backgroundColor: theme.SWITCH_THUMB,
|
|
378
|
-
shadowColor: '#000',
|
|
379
|
-
shadowOffset: { width: 0, height: 2 },
|
|
380
|
-
shadowOpacity: 0.25,
|
|
381
|
-
shadowRadius: 4,
|
|
382
|
-
elevation: 4
|
|
383
|
-
}
|
|
384
|
-
}));
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useContext } from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
|
-
import { GAME_THEMES, type GameTheme, resolveGameTheme } from '../services/ThemeService';
|
|
4
|
-
import type { GameThemeMode } from '../services/UtilsService';
|
|
5
|
-
|
|
6
|
-
// Same constraint StyleSheet.create uses (RN does not export it by name)
|
|
7
|
-
type NamedStyles = Parameters<typeof StyleSheet.create>[0];
|
|
8
|
-
|
|
9
|
-
// Default is classic, so helpers rendered outside a provider look exactly as they always have
|
|
10
|
-
const GameThemeContext = createContext<GameTheme>(GAME_THEMES.classic);
|
|
11
|
-
|
|
12
|
-
interface GameThemeProviderProps {
|
|
13
|
-
theme?: GameThemeMode;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** Wrap a game in this to render its shared chrome (background, scoreboard, controls, modals) in the host's theme. */
|
|
18
|
-
export const GameThemeProvider: React.FC<GameThemeProviderProps> = ({ theme, children }) => (
|
|
19
|
-
<GameThemeContext.Provider value={resolveGameTheme(theme)}>{children}</GameThemeContext.Provider>
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export const useGameTheme = (): GameTheme => useContext(GameThemeContext);
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Build a StyleSheet per theme, once. There are only three theme objects, so the cache stays tiny
|
|
26
|
-
* and every render after the first is a Map lookup.
|
|
27
|
-
*/
|
|
28
|
-
export const createThemedStyles = <S extends NamedStyles>(factory: (theme: GameTheme) => S & NamedStyles) => {
|
|
29
|
-
const cache = new Map<GameTheme, Readonly<S>>();
|
|
30
|
-
return (theme: GameTheme): Readonly<S> => {
|
|
31
|
-
const cached = cache.get(theme);
|
|
32
|
-
if (cached) return cached;
|
|
33
|
-
const styles = StyleSheet.create<S>(factory(theme));
|
|
34
|
-
cache.set(theme, styles);
|
|
35
|
-
return styles;
|
|
36
|
-
};
|
|
37
|
-
};
|
package/src/helpers/IconPaths.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Icon outlines (512 x 512), shared with the engine-drawn HUD. */
|
|
2
|
-
export const TROPHY_PATH =
|
|
3
|
-
'M134.7 33.8Q138.7 32.8 256.7 32.3Q374.7 31.8 378.7 33.8Q391.7 38.8 396.7 51.8Q399.7 57.8 399.7 68.8V79.8H434.7L469.7 80.8L472.7 82.8Q477.7 86.8 479.7 94.8Q482.7 112.8 476.7 143.8Q468.7 178.8 450.2 203.3Q431.7 227.8 406.7 235.8L398.7 238.8L396.7 246.8Q384.7 293.8 329.7 327.8Q303.7 343.8 277.7 348.8L272.7 349.8L271.7 398.8V447.8H305.7Q338.7 447.8 342.7 449.8Q348.7 452.8 350.7 459.8Q352.7 465.8 349.7 471.8Q346.7 477.8 340.7 478.8Q337.7 479.8 255.7 479.8Q173.7 479.8 170.7 478.8Q164.7 477.8 161.7 471.8Q158.7 465.8 160.7 459.8Q162.7 452.8 168.7 449.8Q172.7 447.8 205.7 447.8H239.7V398.8V350.8L236.7 349.8Q192.7 339.8 158.2 310.8Q123.7 281.8 114.7 245.8L112.7 238.8L104.7 235.8Q67.7 223.8 46.7 179.8Q33.7 151.8 31.7 116.8Q30.7 98.8 32.2 92.8Q33.7 86.8 38.7 82.8L41.7 80.8L76.7 79.8H111.7V68.8Q111.7 57.8 113.7 52.8Q119.7 37.8 134.7 33.8ZM367.7 146.8V63.8H255.7H143.7V149.8Q144.7 221.8 145.2 231.8Q145.7 241.8 150.7 252.8Q164.7 280.8 198.7 300.8Q230.7 319.8 255.7 319.8Q283.7 319.8 317.7 297.8Q352.7 274.8 363.7 245.8Q366.7 237.8 367.2 225.3Q367.7 212.8 367.7 146.8ZM111.7 157.8V111.8H87.7H63.7V118.8Q66.7 159.8 89.7 187.8Q97.7 197.8 107.7 202.8L111.7 204.8ZM447.7 118.8Q447.7 118.8 447.7 118.8V111.8H423.7H399.7V157.8V204.8L403.7 202.8Q413.7 197.8 421.7 187.8Q444.7 159.8 447.7 118.8Z';
|
|
4
|
-
export const SHARE_PATH =
|
|
5
|
-
'M376.2 48.8Q406.2 44.8 427.2 64.8Q439.2 75.8 444.2 87.8Q453.2 113.8 441.7 138.8Q430.2 163.8 404.2 172.8Q397.2 174.8 384.2 174.8Q371.2 174.8 364.2 172.8Q353.2 168.8 343.2 160.8L338.2 156.8L264.2 197.8L190.2 238.8L191.2 243.8Q192.2 247.8 192.2 255.8Q192.2 263.8 191.2 267.8L190.2 272.8L264.2 313.8L337.2 355.8L343.2 350.8Q358.2 338.8 376.7 336.3Q395.2 333.8 412.2 342.8Q446.2 358.8 448.2 395.8Q449.2 425.8 428.2 445.8Q417.2 455.8 404.2 460.8Q396.2 463.8 384.2 463.8Q372.2 463.8 364.2 460.8Q356.2 457.8 351.2 454.8Q332.2 442.8 324.2 423.8Q319.2 410.8 320.2 395.8Q321.2 387.8 321.2 385.8L316.2 380.8Q309.2 375.8 251.2 342.8Q180.2 302.8 177.2 301.8L174.2 299.8L169.2 304.8Q159.2 312.8 146.2 317.8Q140.2 319.8 128.2 319.8Q116.2 319.8 110.2 317.8Q77.2 306.8 66.2 273.8Q61.2 255.8 66.2 237.8Q77.2 204.8 110.2 194.8Q116.2 192.8 128.2 192.8Q140.2 192.8 146.2 194.8Q159.2 198.8 169.2 206.8Q174.2 211.8 176.7 210.3Q179.2 208.8 250.2 168.8Q321.2 128.8 321.2 126.3Q321.2 123.8 320.2 115.8Q318.2 85.8 341.2 64.8Q356.2 50.8 376.2 48.8ZM398.2 82.8Q392.2 80.8 385.2 80.3Q378.2 79.8 375.2 80.8Q362.2 85.8 355.2 98.8Q353.2 102.8 353.2 111.8Q353.2 120.8 355.2 124.8Q360.2 134.8 369.7 139.8Q379.2 144.8 389.2 142.8Q406.2 139.8 413.2 124.8Q415.2 120.8 415.2 111.8Q415.2 102.8 413.2 98.8Q408.2 87.8 398.2 82.8ZM142.2 226.8Q137.2 224.8 129.2 224.3Q121.2 223.8 118.2 225.8Q105.2 229.8 99.2 242.8Q97.2 246.8 97.2 255.8Q97.2 264.8 99.2 269.8Q110.2 290.8 133.2 287.8Q149.2 284.8 157.2 269.8Q159.2 264.8 159.2 255.8Q159.2 246.8 157.2 242.8Q152.2 231.8 142.2 226.8ZM389.2 368.8Q389.2 368.8 389.2 368.8Q384.2 367.8 383.7 367.8Q383.2 367.8 378.2 368.8Q362.2 370.8 355.2 386.8Q353.2 390.8 353.2 399.8Q353.2 408.8 355.2 412.8Q360.2 423.8 370.2 428.8Q376.2 430.8 384.2 430.8Q392.2 430.8 398.2 428.8Q408.2 423.8 413.2 412.8Q415.2 408.8 415.2 399.8Q415.2 390.8 413.2 386.8Q408.2 376.8 398.2 371.8Q394.2 369.8 389.2 368.8Z';
|
|
6
|
-
export const PLAY_PATH = 'M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z';
|
package/src/helpers/index.ts
DELETED
package/src/index.tsx
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Games
|
|
2
|
-
export * from './games/play-with-tua/PlayWithTua';
|
|
3
|
-
export * from './games/treasure-hunt/TreasureHunt';
|
|
4
|
-
export * from './games/arrows/Arrows';
|
|
5
|
-
export * from './games/balloon-blaster/BalloonBlaster';
|
|
6
|
-
export * from './games/bike-racing/BikeRacing';
|
|
7
|
-
export * from './games/bluk/Bluk';
|
|
8
|
-
export * from './games/chameleon-run/ChameleonRun';
|
|
9
|
-
export * from './games/mob-control/MobControl';
|
|
10
|
-
export * from './games/paper-io/PaperIo';
|
|
11
|
-
export * from './games/crossy-road/CrossyRoad';
|
|
12
|
-
export * from './games/block-blast/BlockBlast';
|
|
13
|
-
export * from './games/block-breaker/BlockBreaker';
|
|
14
|
-
export * from './games/bubble-shooter/BubbleShooter';
|
|
15
|
-
export * from './games/candy-crush/CandyCrush';
|
|
16
|
-
export * from './games/car-racing/CarRacing';
|
|
17
|
-
export * from './games/color-switch/ColorSwitch';
|
|
18
|
-
export * from './games/colors-sort/ColorsSort';
|
|
19
|
-
export * from './games/connect-em-all/ConnectEmAll';
|
|
20
|
-
export * from './games/dino-jump/DinoJump';
|
|
21
|
-
export * from './games/dots-and-boxes/DotsAndBoxes';
|
|
22
|
-
export * from './games/flappy-bird/FlappyBird';
|
|
23
|
-
export * from './games/fruit-merger/FruitMerger';
|
|
24
|
-
export * from './games/fruit-ninja/FruitNinja';
|
|
25
|
-
export * from './games/game-2048/Game2048';
|
|
26
|
-
export * from './games/knife-hit/KnifeHit';
|
|
27
|
-
export * from './games/ludo-king/LudoKing';
|
|
28
|
-
export * from './games/maze-runner/MazeRunner';
|
|
29
|
-
export * from './games/mine-sweeper/MineSweeper';
|
|
30
|
-
export * from './games/number-search/NumberSearch';
|
|
31
|
-
export * from './games/nuts-and-bolts/NutsAndBolts';
|
|
32
|
-
export * from './games/pac-man/PacMan';
|
|
33
|
-
export * from './games/perfect-circle/PerfectCircle';
|
|
34
|
-
export * from './games/pipe-connect/PipeConnect';
|
|
35
|
-
export * from './games/popit-fidget/PopitFidget';
|
|
36
|
-
export * from './games/sliding-numbers/SlidingNumbers';
|
|
37
|
-
export * from './games/snake-3d/Snake3D';
|
|
38
|
-
export * from './games/space-fighter/SpaceFighter';
|
|
39
|
-
export * from './games/sudoku/Sudoku';
|
|
40
|
-
export * from './games/stack-tower/StackTower';
|
|
41
|
-
export * from './games/spider-solitaire/SpiderSolitaire';
|
|
42
|
-
export * from './games/tank-1990/Tank1990';
|
|
43
|
-
export * from './games/tic-tac-toe/TicTacToe';
|
|
44
|
-
export * from './games/tile-home/TileHome';
|
|
45
|
-
export * from './games/whack-a-mole/WhackAMole';
|
|
46
|
-
export * from './games/word-search/WordSearch';
|
|
47
|
-
export * from './games/find-different-number/FindDifferentNumber';
|
|
48
|
-
export * from './games/snakes-and-ladders/SnakesAndLadders';
|
|
49
|
-
export * from './games/tangram/Tangram';
|
|
50
|
-
export * from './games/checkers/Checkers';
|
|
51
|
-
export * from './games/memory-match/MemoryMatch';
|
|
52
|
-
export * from './games/falling-sticks/FallingSticks';
|
|
53
|
-
export * from './games/reversi/Reversi';
|
|
54
|
-
export * from './games/penguin-run/PenguinRun';
|
|
55
|
-
|
|
56
|
-
// Services
|
|
57
|
-
export * from './services/GamesService';
|
|
58
|
-
export * from './services/GamesMetadata';
|
|
59
|
-
export * from './services/SoundsService';
|
|
60
|
-
export * from './services/UtilsService';
|