1681-engine 0.0.0-stage → 0.5.9
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/CHANGELOG.md +357 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/1681-engine.js +471 -0
- package/dist/ambient/ColorGrade.js +40 -0
- package/dist/ambient/DayClock.js +56 -0
- package/dist/ambient/WeatherLayer.js +90 -0
- package/dist/ambient/grade.js +12 -0
- package/dist/ambient/weather.js +51 -0
- package/dist/anim/AnimStateMachine.js +163 -0
- package/dist/anim/Animator.js +66 -0
- package/dist/anim/animStateCompile.js +112 -0
- package/dist/anim/animStateSystem.js +16 -0
- package/dist/anim/animationSystem.js +14 -0
- package/dist/anim/asepriteSlices.js +21 -0
- package/dist/anim/asepriteTags.js +34 -0
- package/dist/anim/parseAseprite.js +82 -0
- package/dist/assets/AssetLoader.js +202 -0
- package/dist/assets/loadAseprite.js +49 -0
- package/dist/assets/takeCleanerWorker-DTcI_Jqr.js +30 -0
- package/dist/assets/textureAtlas.js +58 -0
- package/dist/audio/Footsteps.js +25 -0
- package/dist/audio/MusicPlayer.js +77 -0
- package/dist/audio/SoundEngine.js +125 -0
- package/dist/audio/cleanTake.js +29 -0
- package/dist/audio/music/ElementVoice.js +34 -0
- package/dist/audio/music/GraphVoice.js +38 -0
- package/dist/audio/music/MusicChannel.js +57 -0
- package/dist/audio/music/musicVoice.js +12 -0
- package/dist/audio/sampleBank.js +81 -0
- package/dist/audio/soundTable.js +8 -0
- package/dist/audio/synth.js +35 -0
- package/dist/core/BitmapLabel.js +48 -0
- package/dist/core/Camera.js +149 -0
- package/dist/core/Clock.js +40 -0
- package/dist/core/Graphics.js +68 -0
- package/dist/core/Group.js +28 -0
- package/dist/core/Image.js +50 -0
- package/dist/core/ObjectFactory.js +54 -0
- package/dist/core/Pointer.js +80 -0
- package/dist/core/Rectangle.js +50 -0
- package/dist/core/Stage.js +85 -0
- package/dist/core/Text.js +21 -0
- package/dist/core/TextureRegistry.js +141 -0
- package/dist/core/Timeline.js +210 -0
- package/dist/core/TimelineBuilder.js +72 -0
- package/dist/core/TimelineChild.js +83 -0
- package/dist/core/Tweener.js +135 -0
- package/dist/core/atlas.js +37 -0
- package/dist/core/atlasPlan.js +21 -0
- package/dist/core/blendLayer.js +11 -0
- package/dist/core/eases.js +20 -0
- package/dist/core/gameObject.js +117 -0
- package/dist/core/pixelZoom.js +43 -0
- package/dist/core/pixiPatches.js +17 -0
- package/dist/core/runDue.js +28 -0
- package/dist/core/silhouette.js +49 -0
- package/dist/core/timelinePlace.js +23 -0
- package/dist/core/tweenProps.js +11 -0
- package/dist/debug/DebugOverlay.js +93 -0
- package/dist/debug/DrawCallCounter.js +44 -0
- package/dist/debug/ErrorLog.js +21 -0
- package/dist/debug/FrameStats.js +41 -0
- package/dist/debug/inspectWorld.js +28 -0
- package/dist/diagnostics/ErrorDeduper.js +26 -0
- package/dist/diagnostics/FrameSampler.js +41 -0
- package/dist/diagnostics/bootWatch.js +20 -0
- package/dist/diagnostics/captureErrors.js +26 -0
- package/dist/diagnostics/contextLoss.js +24 -0
- package/dist/diagnostics/frameStats.js +30 -0
- package/dist/diagnostics/gpuInfo.js +21 -0
- package/dist/diagnostics/renderGuard.js +23 -0
- package/dist/ecs/SparseSet.js +54 -0
- package/dist/ecs/World.js +306 -0
- package/dist/ecs/fields.js +25 -0
- package/dist/engine/Engine.js +106 -0
- package/dist/engine/FixedLoop.js +36 -0
- package/dist/engine/HiddenPause.js +27 -0
- package/dist/engine/Scene.js +78 -0
- package/dist/engine/SceneManager.js +72 -0
- package/dist/events/EventBus.js +41 -0
- package/dist/fx/Afterimages.js +82 -0
- package/dist/fx/FloatingText.js +71 -0
- package/dist/fx/hitStop.js +27 -0
- package/dist/fx/viewCull.js +9 -0
- package/dist/i18n/Translator.js +71 -0
- package/dist/i18n/extractStrings.js +57 -0
- package/dist/i18n/formatMessage.js +18 -0
- package/dist/input/Actions.js +139 -0
- package/dist/input/AimGesture.js +74 -0
- package/dist/input/Keyboard.js +53 -0
- package/dist/input/Keymap.js +170 -0
- package/dist/input/TargetLock.js +72 -0
- package/dist/input/aimAxis.js +7 -0
- package/dist/input/keyChord.js +28 -0
- package/dist/input/longPress.js +31 -0
- package/dist/input/rumble.js +42 -0
- package/dist/input/stickAxis.js +22 -0
- package/dist/input/touchDetect.js +6 -0
- package/dist/light/LightLayer.js +83 -0
- package/dist/nav/MinHeap.js +38 -0
- package/dist/nav/findPath.js +77 -0
- package/dist/nav/navGrid.js +35 -0
- package/dist/nav/nearestOpen.js +18 -0
- package/dist/nav/straightenPath.js +50 -0
- package/dist/net/Connection.js +107 -0
- package/dist/net/InterpolationBuffer.js +56 -0
- package/dist/net/PredictedMover.js +60 -0
- package/dist/net/Room.js +91 -0
- package/dist/net/RoomHost.js +100 -0
- package/dist/net/cadence.js +21 -0
- package/dist/net/constants.js +10 -0
- package/dist/net/lobby/LobbyClient.js +123 -0
- package/dist/net/lobby/LobbyHost.js +365 -0
- package/dist/net/lobby/LobbyRooms.js +65 -0
- package/dist/net/lobby/Matchmaker.js +105 -0
- package/dist/net/movement.js +84 -0
- package/dist/net/protocol.js +10 -0
- package/dist/net/reconnect.js +10 -0
- package/dist/net/serverClock.js +21 -0
- package/dist/net/snapshotCodec.js +91 -0
- package/dist/parallax/Parallax.js +31 -0
- package/dist/parallax/ParallaxLayer.js +69 -0
- package/dist/parallax/parallaxMath.js +26 -0
- package/dist/particles/Emitter.js +107 -0
- package/dist/particles/ParticleBudget.js +31 -0
- package/dist/particles/ParticleSim.js +59 -0
- package/dist/particles/particleCurves.js +47 -0
- package/dist/particles/particleSampling.js +29 -0
- package/dist/physics/Body.js +201 -0
- package/dist/physics/BroadPhase.js +55 -0
- package/dist/physics/Contact.js +75 -0
- package/dist/physics/ContactSolver.js +69 -0
- package/dist/physics/PhysicsWorld.js +220 -0
- package/dist/physics/SpatialHash.js +38 -0
- package/dist/physics/collide.js +75 -0
- package/dist/physics/collidePolygon.js +93 -0
- package/dist/physics/contactReport.js +13 -0
- package/dist/physics/drawColliders.js +30 -0
- package/dist/physics/physicsSystem.js +7 -0
- package/dist/physics/polygon.js +79 -0
- package/dist/physics/raycast.js +61 -0
- package/dist/physics/syncToBody.js +18 -0
- package/dist/physics/tileBodies.js +58 -0
- package/dist/physics/types.js +7 -0
- package/dist/pixel/Darkness.js +169 -0
- package/dist/pixel/DitherVignette.js +56 -0
- package/dist/pixel/Evaporation.js +84 -0
- package/dist/pixel/NightShade.js +33 -0
- package/dist/pixel/PixelLayer.js +210 -0
- package/dist/pixel/PixelMarks.js +99 -0
- package/dist/pixel/SwayProp.js +74 -0
- package/dist/pixel/aimPixels.js +67 -0
- package/dist/pixel/lights.js +43 -0
- package/dist/pixel/nineSlice.js +61 -0
- package/dist/pixel/paintLayer.js +35 -0
- package/dist/pixel/palette.js +56 -0
- package/dist/pixel/pixel.js +277 -0
- package/dist/pixel/pixelPaint.js +197 -0
- package/dist/pixel/pixelParticles.js +35 -0
- package/dist/pixel/pixelTone.js +163 -0
- package/dist/pixel/propKit.js +40 -0
- package/dist/pixel/ramp.js +101 -0
- package/dist/pixel/selout.js +34 -0
- package/dist/pixel/spritePixels.js +58 -0
- package/dist/pixel/swayRig.js +86 -0
- package/dist/pixel/vignetteMask.js +23 -0
- package/dist/pixel/weatherArt.js +60 -0
- package/dist/pixel.js +96 -0
- package/dist/platform/appResume.js +18 -0
- package/dist/platform/fullscreen.js +52 -0
- package/dist/platform/orientation.js +26 -0
- package/dist/platform/pointerLock.js +37 -0
- package/dist/platform/reducedMotion.js +23 -0
- package/dist/platform/timeoutSignal.js +14 -0
- package/dist/platform/touch.js +32 -0
- package/dist/postfx/BloomFilter.js +64 -0
- package/dist/postfx/ChromaticAberrationFilter.js +24 -0
- package/dist/postfx/ColorAdjustFilter.js +75 -0
- package/dist/postfx/CrtFilter.js +41 -0
- package/dist/postfx/PixelateFilter.js +26 -0
- package/dist/postfx/PostFx.js +122 -0
- package/dist/postfx/ShockwaveFilter.js +48 -0
- package/dist/postfx/VignetteFilter.js +36 -0
- package/dist/postfx/fxAnimator.js +37 -0
- package/dist/postfx/fxShader.js +127 -0
- package/dist/postfx.js +25 -0
- package/dist/react/ChoiceDialog.js +50 -0
- package/dist/react/ConfirmDialog.js +52 -0
- package/dist/react/Glyph.js +62 -0
- package/dist/react/Modal.js +37 -0
- package/dist/react/Panel.js +23 -0
- package/dist/react/PixelImage.js +23 -0
- package/dist/react/Select.js +98 -0
- package/dist/react/Slider.js +61 -0
- package/dist/react/SplitPane.js +23 -0
- package/dist/react/TabStrip.js +31 -0
- package/dist/react/TitleTips.js +41 -0
- package/dist/react/Tooltip.js +27 -0
- package/dist/react/UiProvider.js +49 -0
- package/dist/react/baseCss.js +221 -0
- package/dist/react/choiceStore.js +22 -0
- package/dist/react/classNames.js +18 -0
- package/dist/react/confirmStore.js +29 -0
- package/dist/react/labels.js +17 -0
- package/dist/react/placement.js +48 -0
- package/dist/react/useFillSheet.js +22 -0
- package/dist/react/useFitToViewport.js +28 -0
- package/dist/react/usePicked.js +12 -0
- package/dist/react/useStore.js +8 -0
- package/dist/react/useViewport.js +16 -0
- package/dist/react.js +77 -0
- package/dist/rig/PosePlayer.js +91 -0
- package/dist/rig/RigView.js +124 -0
- package/dist/rig/Skeleton.js +30 -0
- package/dist/rig/humanoid.js +5 -0
- package/dist/rig/humanoid.json.js +29 -0
- package/dist/rig/humanoidPoses.js +29 -0
- package/dist/rig/poseMath.js +53 -0
- package/dist/rig/poses.json.js +149 -0
- package/dist/save/Autosaver.js +53 -0
- package/dist/save/MemoryBackend.js +18 -0
- package/dist/save/SaveStore.js +102 -0
- package/dist/save/WebStorageBackend.js +26 -0
- package/dist/save/checksum.js +9 -0
- package/dist/save/migrateSave.js +26 -0
- package/dist/settings.js +26 -0
- package/dist/tilemap/TilemapView.js +68 -0
- package/dist/tilemap/collision.js +24 -0
- package/dist/tilemap/tiled.js +137 -0
- package/dist/transitions/CrossfadeTransition.js +23 -0
- package/dist/transitions/DitherWipeTransition.js +69 -0
- package/dist/transitions/FadeTransition.js +33 -0
- package/dist/transitions/Letterbox.js +41 -0
- package/dist/transitions/ditherMask.js +14 -0
- package/dist/transitions/transitionTo.js +27 -0
- package/dist/transitions/tweenDone.js +14 -0
- package/dist/types/ambient/ColorGrade.d.ts +41 -0
- package/dist/types/ambient/ColorGrade.d.ts.map +1 -0
- package/dist/types/ambient/DayClock.d.ts +80 -0
- package/dist/types/ambient/DayClock.d.ts.map +1 -0
- package/dist/types/ambient/WeatherLayer.d.ts +78 -0
- package/dist/types/ambient/WeatherLayer.d.ts.map +1 -0
- package/dist/types/ambient/grade.d.ts +22 -0
- package/dist/types/ambient/grade.d.ts.map +1 -0
- package/dist/types/ambient/weather.d.ts +49 -0
- package/dist/types/ambient/weather.d.ts.map +1 -0
- package/dist/types/anim/AnimStateMachine.d.ts +80 -0
- package/dist/types/anim/AnimStateMachine.d.ts.map +1 -0
- package/dist/types/anim/Animator.d.ts +50 -0
- package/dist/types/anim/Animator.d.ts.map +1 -0
- package/dist/types/anim/animStateCompile.d.ts +52 -0
- package/dist/types/anim/animStateCompile.d.ts.map +1 -0
- package/dist/types/anim/animStateSystem.d.ts +10 -0
- package/dist/types/anim/animStateSystem.d.ts.map +1 -0
- package/dist/types/anim/animStateTypes.d.ts +50 -0
- package/dist/types/anim/animStateTypes.d.ts.map +1 -0
- package/dist/types/anim/animationSystem.d.ts +13 -0
- package/dist/types/anim/animationSystem.d.ts.map +1 -0
- package/dist/types/anim/asepriteSlices.d.ts +19 -0
- package/dist/types/anim/asepriteSlices.d.ts.map +1 -0
- package/dist/types/anim/asepriteTags.d.ts +16 -0
- package/dist/types/anim/asepriteTags.d.ts.map +1 -0
- package/dist/types/anim/asepriteTypes.d.ts +159 -0
- package/dist/types/anim/asepriteTypes.d.ts.map +1 -0
- package/dist/types/anim/parseAseprite.d.ts +21 -0
- package/dist/types/anim/parseAseprite.d.ts.map +1 -0
- package/dist/types/assets/AssetLoader.d.ts +140 -0
- package/dist/types/assets/AssetLoader.d.ts.map +1 -0
- package/dist/types/assets/loadAseprite.d.ts +27 -0
- package/dist/types/assets/loadAseprite.d.ts.map +1 -0
- package/dist/types/assets/textureAtlas.d.ts +35 -0
- package/dist/types/assets/textureAtlas.d.ts.map +1 -0
- package/dist/types/audio/Footsteps.d.ts +33 -0
- package/dist/types/audio/Footsteps.d.ts.map +1 -0
- package/dist/types/audio/MusicPlayer.d.ts +65 -0
- package/dist/types/audio/MusicPlayer.d.ts.map +1 -0
- package/dist/types/audio/SoundEngine.d.ts +47 -0
- package/dist/types/audio/SoundEngine.d.ts.map +1 -0
- package/dist/types/audio/cleanTake.d.ts +3 -0
- package/dist/types/audio/cleanTake.d.ts.map +1 -0
- package/dist/types/audio/music/ElementVoice.d.ts +14 -0
- package/dist/types/audio/music/ElementVoice.d.ts.map +1 -0
- package/dist/types/audio/music/GraphVoice.d.ts +22 -0
- package/dist/types/audio/music/GraphVoice.d.ts.map +1 -0
- package/dist/types/audio/music/MusicChannel.d.ts +35 -0
- package/dist/types/audio/music/MusicChannel.d.ts.map +1 -0
- package/dist/types/audio/music/musicVoice.d.ts +26 -0
- package/dist/types/audio/music/musicVoice.d.ts.map +1 -0
- package/dist/types/audio/sampleBank.d.ts +27 -0
- package/dist/types/audio/sampleBank.d.ts.map +1 -0
- package/dist/types/audio/soundTable.d.ts +14 -0
- package/dist/types/audio/soundTable.d.ts.map +1 -0
- package/dist/types/audio/synth.d.ts +34 -0
- package/dist/types/audio/synth.d.ts.map +1 -0
- package/dist/types/audio/takeCleanerWorker.d.ts +2 -0
- package/dist/types/audio/takeCleanerWorker.d.ts.map +1 -0
- package/dist/types/core/BitmapLabel.d.ts +36 -0
- package/dist/types/core/BitmapLabel.d.ts.map +1 -0
- package/dist/types/core/Camera.d.ts +115 -0
- package/dist/types/core/Camera.d.ts.map +1 -0
- package/dist/types/core/Clock.d.ts +23 -0
- package/dist/types/core/Clock.d.ts.map +1 -0
- package/dist/types/core/Graphics.d.ts +37 -0
- package/dist/types/core/Graphics.d.ts.map +1 -0
- package/dist/types/core/Group.d.ts +15 -0
- package/dist/types/core/Group.d.ts.map +1 -0
- package/dist/types/core/Image.d.ts +25 -0
- package/dist/types/core/Image.d.ts.map +1 -0
- package/dist/types/core/ObjectFactory.d.ts +34 -0
- package/dist/types/core/ObjectFactory.d.ts.map +1 -0
- package/dist/types/core/Pointer.d.ts +45 -0
- package/dist/types/core/Pointer.d.ts.map +1 -0
- package/dist/types/core/Rectangle.d.ts +26 -0
- package/dist/types/core/Rectangle.d.ts.map +1 -0
- package/dist/types/core/Stage.d.ts +58 -0
- package/dist/types/core/Stage.d.ts.map +1 -0
- package/dist/types/core/Text.d.ts +22 -0
- package/dist/types/core/Text.d.ts.map +1 -0
- package/dist/types/core/TextureRegistry.d.ts +90 -0
- package/dist/types/core/TextureRegistry.d.ts.map +1 -0
- package/dist/types/core/Timeline.d.ts +115 -0
- package/dist/types/core/Timeline.d.ts.map +1 -0
- package/dist/types/core/TimelineBuilder.d.ts +53 -0
- package/dist/types/core/TimelineBuilder.d.ts.map +1 -0
- package/dist/types/core/TimelineChild.d.ts +51 -0
- package/dist/types/core/TimelineChild.d.ts.map +1 -0
- package/dist/types/core/Tweener.d.ts +70 -0
- package/dist/types/core/Tweener.d.ts.map +1 -0
- package/dist/types/core/atlas.d.ts +16 -0
- package/dist/types/core/atlas.d.ts.map +1 -0
- package/dist/types/core/atlasPlan.d.ts +34 -0
- package/dist/types/core/atlasPlan.d.ts.map +1 -0
- package/dist/types/core/blendLayer.d.ts +23 -0
- package/dist/types/core/blendLayer.d.ts.map +1 -0
- package/dist/types/core/eases.d.ts +3 -0
- package/dist/types/core/eases.d.ts.map +1 -0
- package/dist/types/core/gameObject.d.ts +42 -0
- package/dist/types/core/gameObject.d.ts.map +1 -0
- package/dist/types/core/pixelZoom.d.ts +45 -0
- package/dist/types/core/pixelZoom.d.ts.map +1 -0
- package/dist/types/core/pixiPatches.d.ts +9 -0
- package/dist/types/core/pixiPatches.d.ts.map +1 -0
- package/dist/types/core/runDue.d.ts +15 -0
- package/dist/types/core/runDue.d.ts.map +1 -0
- package/dist/types/core/silhouette.d.ts +16 -0
- package/dist/types/core/silhouette.d.ts.map +1 -0
- package/dist/types/core/timelinePlace.d.ts +23 -0
- package/dist/types/core/timelinePlace.d.ts.map +1 -0
- package/dist/types/core/tweenProps.d.ts +8 -0
- package/dist/types/core/tweenProps.d.ts.map +1 -0
- package/dist/types/core/types.d.ts +4 -0
- package/dist/types/core/types.d.ts.map +1 -0
- package/dist/types/debug/DebugOverlay.d.ts +63 -0
- package/dist/types/debug/DebugOverlay.d.ts.map +1 -0
- package/dist/types/debug/DrawCallCounter.d.ts +20 -0
- package/dist/types/debug/DrawCallCounter.d.ts.map +1 -0
- package/dist/types/debug/ErrorLog.d.ts +20 -0
- package/dist/types/debug/ErrorLog.d.ts.map +1 -0
- package/dist/types/debug/FrameStats.d.ts +21 -0
- package/dist/types/debug/FrameStats.d.ts.map +1 -0
- package/dist/types/debug/inspectWorld.d.ts +14 -0
- package/dist/types/debug/inspectWorld.d.ts.map +1 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts +17 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts.map +1 -0
- package/dist/types/diagnostics/FrameSampler.d.ts +37 -0
- package/dist/types/diagnostics/FrameSampler.d.ts.map +1 -0
- package/dist/types/diagnostics/bootWatch.d.ts +25 -0
- package/dist/types/diagnostics/bootWatch.d.ts.map +1 -0
- package/dist/types/diagnostics/captureErrors.d.ts +24 -0
- package/dist/types/diagnostics/captureErrors.d.ts.map +1 -0
- package/dist/types/diagnostics/contextLoss.d.ts +35 -0
- package/dist/types/diagnostics/contextLoss.d.ts.map +1 -0
- package/dist/types/diagnostics/frameStats.d.ts +30 -0
- package/dist/types/diagnostics/frameStats.d.ts.map +1 -0
- package/dist/types/diagnostics/gpuInfo.d.ts +9 -0
- package/dist/types/diagnostics/gpuInfo.d.ts.map +1 -0
- package/dist/types/diagnostics/renderGuard.d.ts +12 -0
- package/dist/types/diagnostics/renderGuard.d.ts.map +1 -0
- package/dist/types/ecs/SparseSet.d.ts +25 -0
- package/dist/types/ecs/SparseSet.d.ts.map +1 -0
- package/dist/types/ecs/World.d.ts +137 -0
- package/dist/types/ecs/World.d.ts.map +1 -0
- package/dist/types/ecs/fields.d.ts +34 -0
- package/dist/types/ecs/fields.d.ts.map +1 -0
- package/dist/types/engine/Engine.d.ts +96 -0
- package/dist/types/engine/Engine.d.ts.map +1 -0
- package/dist/types/engine/FixedLoop.d.ts +32 -0
- package/dist/types/engine/FixedLoop.d.ts.map +1 -0
- package/dist/types/engine/HiddenPause.d.ts +22 -0
- package/dist/types/engine/HiddenPause.d.ts.map +1 -0
- package/dist/types/engine/Scene.d.ts +67 -0
- package/dist/types/engine/Scene.d.ts.map +1 -0
- package/dist/types/engine/SceneManager.d.ts +36 -0
- package/dist/types/engine/SceneManager.d.ts.map +1 -0
- package/dist/types/events/EventBus.d.ts +20 -0
- package/dist/types/events/EventBus.d.ts.map +1 -0
- package/dist/types/fx/Afterimages.d.ts +62 -0
- package/dist/types/fx/Afterimages.d.ts.map +1 -0
- package/dist/types/fx/FloatingText.d.ts +71 -0
- package/dist/types/fx/FloatingText.d.ts.map +1 -0
- package/dist/types/fx/hitStop.d.ts +20 -0
- package/dist/types/fx/hitStop.d.ts.map +1 -0
- package/dist/types/fx/viewCull.d.ts +14 -0
- package/dist/types/fx/viewCull.d.ts.map +1 -0
- package/dist/types/i18n/Translator.d.ts +52 -0
- package/dist/types/i18n/Translator.d.ts.map +1 -0
- package/dist/types/i18n/extractStrings.d.ts +25 -0
- package/dist/types/i18n/extractStrings.d.ts.map +1 -0
- package/dist/types/i18n/formatMessage.d.ts +10 -0
- package/dist/types/i18n/formatMessage.d.ts.map +1 -0
- package/dist/types/index.d.ts +164 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input/Actions.d.ts +100 -0
- package/dist/types/input/Actions.d.ts.map +1 -0
- package/dist/types/input/AimGesture.d.ts +106 -0
- package/dist/types/input/AimGesture.d.ts.map +1 -0
- package/dist/types/input/Keyboard.d.ts +30 -0
- package/dist/types/input/Keyboard.d.ts.map +1 -0
- package/dist/types/input/Keymap.d.ts +85 -0
- package/dist/types/input/Keymap.d.ts.map +1 -0
- package/dist/types/input/TargetLock.d.ts +56 -0
- package/dist/types/input/TargetLock.d.ts.map +1 -0
- package/dist/types/input/aimAxis.d.ts +9 -0
- package/dist/types/input/aimAxis.d.ts.map +1 -0
- package/dist/types/input/keyChord.d.ts +15 -0
- package/dist/types/input/keyChord.d.ts.map +1 -0
- package/dist/types/input/longPress.d.ts +21 -0
- package/dist/types/input/longPress.d.ts.map +1 -0
- package/dist/types/input/rumble.d.ts +41 -0
- package/dist/types/input/rumble.d.ts.map +1 -0
- package/dist/types/input/stickAxis.d.ts +26 -0
- package/dist/types/input/stickAxis.d.ts.map +1 -0
- package/dist/types/input/touchDetect.d.ts +18 -0
- package/dist/types/input/touchDetect.d.ts.map +1 -0
- package/dist/types/light/LightLayer.d.ts +65 -0
- package/dist/types/light/LightLayer.d.ts.map +1 -0
- package/dist/types/nav/MinHeap.d.ts +15 -0
- package/dist/types/nav/MinHeap.d.ts.map +1 -0
- package/dist/types/nav/findPath.d.ts +38 -0
- package/dist/types/nav/findPath.d.ts.map +1 -0
- package/dist/types/nav/navGrid.d.ts +48 -0
- package/dist/types/nav/navGrid.d.ts.map +1 -0
- package/dist/types/nav/nearestOpen.d.ts +8 -0
- package/dist/types/nav/nearestOpen.d.ts.map +1 -0
- package/dist/types/nav/straightenPath.d.ts +13 -0
- package/dist/types/nav/straightenPath.d.ts.map +1 -0
- package/dist/types/net/Connection.d.ts +88 -0
- package/dist/types/net/Connection.d.ts.map +1 -0
- package/dist/types/net/InterpolationBuffer.d.ts +36 -0
- package/dist/types/net/InterpolationBuffer.d.ts.map +1 -0
- package/dist/types/net/PredictedMover.d.ts +43 -0
- package/dist/types/net/PredictedMover.d.ts.map +1 -0
- package/dist/types/net/Room.d.ts +69 -0
- package/dist/types/net/Room.d.ts.map +1 -0
- package/dist/types/net/RoomHost.d.ts +74 -0
- package/dist/types/net/RoomHost.d.ts.map +1 -0
- package/dist/types/net/cadence.d.ts +22 -0
- package/dist/types/net/cadence.d.ts.map +1 -0
- package/dist/types/net/constants.d.ts +33 -0
- package/dist/types/net/constants.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyClient.d.ts +107 -0
- package/dist/types/net/lobby/LobbyClient.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyHost.d.ts +147 -0
- package/dist/types/net/lobby/LobbyHost.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts +56 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts.map +1 -0
- package/dist/types/net/lobby/Matchmaker.d.ts +57 -0
- package/dist/types/net/lobby/Matchmaker.d.ts.map +1 -0
- package/dist/types/net/lobby/index.d.ts +6 -0
- package/dist/types/net/lobby/index.d.ts.map +1 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts +143 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts.map +1 -0
- package/dist/types/net/movement.d.ts +50 -0
- package/dist/types/net/movement.d.ts.map +1 -0
- package/dist/types/net/protocol.d.ts +59 -0
- package/dist/types/net/protocol.d.ts.map +1 -0
- package/dist/types/net/reconnect.d.ts +14 -0
- package/dist/types/net/reconnect.d.ts.map +1 -0
- package/dist/types/net/serverClock.d.ts +14 -0
- package/dist/types/net/serverClock.d.ts.map +1 -0
- package/dist/types/net/snapshotCodec.d.ts +55 -0
- package/dist/types/net/snapshotCodec.d.ts.map +1 -0
- package/dist/types/parallax/Parallax.d.ts +37 -0
- package/dist/types/parallax/Parallax.d.ts.map +1 -0
- package/dist/types/parallax/ParallaxLayer.d.ts +80 -0
- package/dist/types/parallax/ParallaxLayer.d.ts.map +1 -0
- package/dist/types/parallax/parallaxMath.d.ts +50 -0
- package/dist/types/parallax/parallaxMath.d.ts.map +1 -0
- package/dist/types/particles/Emitter.d.ts +97 -0
- package/dist/types/particles/Emitter.d.ts.map +1 -0
- package/dist/types/particles/ParticleBudget.d.ts +28 -0
- package/dist/types/particles/ParticleBudget.d.ts.map +1 -0
- package/dist/types/particles/ParticleSim.d.ts +38 -0
- package/dist/types/particles/ParticleSim.d.ts.map +1 -0
- package/dist/types/particles/particleCurves.d.ts +21 -0
- package/dist/types/particles/particleCurves.d.ts.map +1 -0
- package/dist/types/particles/particleSampling.d.ts +20 -0
- package/dist/types/particles/particleSampling.d.ts.map +1 -0
- package/dist/types/physics/Body.d.ts +130 -0
- package/dist/types/physics/Body.d.ts.map +1 -0
- package/dist/types/physics/BroadPhase.d.ts +26 -0
- package/dist/types/physics/BroadPhase.d.ts.map +1 -0
- package/dist/types/physics/Contact.d.ts +62 -0
- package/dist/types/physics/Contact.d.ts.map +1 -0
- package/dist/types/physics/ContactSolver.d.ts +29 -0
- package/dist/types/physics/ContactSolver.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorld.d.ts +78 -0
- package/dist/types/physics/PhysicsWorld.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts +24 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts.map +1 -0
- package/dist/types/physics/SpatialHash.d.ts +23 -0
- package/dist/types/physics/SpatialHash.d.ts.map +1 -0
- package/dist/types/physics/collide.d.ts +27 -0
- package/dist/types/physics/collide.d.ts.map +1 -0
- package/dist/types/physics/collidePolygon.d.ts +14 -0
- package/dist/types/physics/collidePolygon.d.ts.map +1 -0
- package/dist/types/physics/contactReport.d.ts +8 -0
- package/dist/types/physics/contactReport.d.ts.map +1 -0
- package/dist/types/physics/drawColliders.d.ts +43 -0
- package/dist/types/physics/drawColliders.d.ts.map +1 -0
- package/dist/types/physics/physicsSystem.d.ts +5 -0
- package/dist/types/physics/physicsSystem.d.ts.map +1 -0
- package/dist/types/physics/polygon.d.ts +28 -0
- package/dist/types/physics/polygon.d.ts.map +1 -0
- package/dist/types/physics/raycast.d.ts +19 -0
- package/dist/types/physics/raycast.d.ts.map +1 -0
- package/dist/types/physics/syncToBody.d.ts +16 -0
- package/dist/types/physics/syncToBody.d.ts.map +1 -0
- package/dist/types/physics/tileBodies.d.ts +36 -0
- package/dist/types/physics/tileBodies.d.ts.map +1 -0
- package/dist/types/physics/types.d.ts +116 -0
- package/dist/types/physics/types.d.ts.map +1 -0
- package/dist/types/pixel/Darkness.d.ts +90 -0
- package/dist/types/pixel/Darkness.d.ts.map +1 -0
- package/dist/types/pixel/DitherVignette.d.ts +35 -0
- package/dist/types/pixel/DitherVignette.d.ts.map +1 -0
- package/dist/types/pixel/Evaporation.d.ts +30 -0
- package/dist/types/pixel/Evaporation.d.ts.map +1 -0
- package/dist/types/pixel/NightShade.d.ts +38 -0
- package/dist/types/pixel/NightShade.d.ts.map +1 -0
- package/dist/types/pixel/PixelLayer.d.ts +85 -0
- package/dist/types/pixel/PixelLayer.d.ts.map +1 -0
- package/dist/types/pixel/PixelMarks.d.ts +68 -0
- package/dist/types/pixel/PixelMarks.d.ts.map +1 -0
- package/dist/types/pixel/SwayProp.d.ts +52 -0
- package/dist/types/pixel/SwayProp.d.ts.map +1 -0
- package/dist/types/pixel/aimPixels.d.ts +23 -0
- package/dist/types/pixel/aimPixels.d.ts.map +1 -0
- package/dist/types/pixel/index.d.ts +33 -0
- package/dist/types/pixel/index.d.ts.map +1 -0
- package/dist/types/pixel/lights.d.ts +34 -0
- package/dist/types/pixel/lights.d.ts.map +1 -0
- package/dist/types/pixel/nineSlice.d.ts +71 -0
- package/dist/types/pixel/nineSlice.d.ts.map +1 -0
- package/dist/types/pixel/paintLayer.d.ts +35 -0
- package/dist/types/pixel/paintLayer.d.ts.map +1 -0
- package/dist/types/pixel/palette.d.ts +58 -0
- package/dist/types/pixel/palette.d.ts.map +1 -0
- package/dist/types/pixel/pixel.d.ts +80 -0
- package/dist/types/pixel/pixel.d.ts.map +1 -0
- package/dist/types/pixel/pixelPaint.d.ts +44 -0
- package/dist/types/pixel/pixelPaint.d.ts.map +1 -0
- package/dist/types/pixel/pixelParticles.d.ts +21 -0
- package/dist/types/pixel/pixelParticles.d.ts.map +1 -0
- package/dist/types/pixel/pixelTone.d.ts +51 -0
- package/dist/types/pixel/pixelTone.d.ts.map +1 -0
- package/dist/types/pixel/propKit.d.ts +26 -0
- package/dist/types/pixel/propKit.d.ts.map +1 -0
- package/dist/types/pixel/ramp.d.ts +57 -0
- package/dist/types/pixel/ramp.d.ts.map +1 -0
- package/dist/types/pixel/selout.d.ts +3 -0
- package/dist/types/pixel/selout.d.ts.map +1 -0
- package/dist/types/pixel/spritePixels.d.ts +29 -0
- package/dist/types/pixel/spritePixels.d.ts.map +1 -0
- package/dist/types/pixel/swayRig.d.ts +72 -0
- package/dist/types/pixel/swayRig.d.ts.map +1 -0
- package/dist/types/pixel/vignetteMask.d.ts +16 -0
- package/dist/types/pixel/vignetteMask.d.ts.map +1 -0
- package/dist/types/pixel/weatherArt.d.ts +29 -0
- package/dist/types/pixel/weatherArt.d.ts.map +1 -0
- package/dist/types/platform/appResume.d.ts +25 -0
- package/dist/types/platform/appResume.d.ts.map +1 -0
- package/dist/types/platform/fullscreen.d.ts +37 -0
- package/dist/types/platform/fullscreen.d.ts.map +1 -0
- package/dist/types/platform/orientation.d.ts +19 -0
- package/dist/types/platform/orientation.d.ts.map +1 -0
- package/dist/types/platform/pointerLock.d.ts +26 -0
- package/dist/types/platform/pointerLock.d.ts.map +1 -0
- package/dist/types/platform/reducedMotion.d.ts +20 -0
- package/dist/types/platform/reducedMotion.d.ts.map +1 -0
- package/dist/types/platform/timeoutSignal.d.ts +6 -0
- package/dist/types/platform/timeoutSignal.d.ts.map +1 -0
- package/dist/types/platform/touch.d.ts +10 -0
- package/dist/types/platform/touch.d.ts.map +1 -0
- package/dist/types/postfx/BloomFilter.d.ts +33 -0
- package/dist/types/postfx/BloomFilter.d.ts.map +1 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts +11 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts.map +1 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts +32 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts.map +1 -0
- package/dist/types/postfx/CrtFilter.d.ts +16 -0
- package/dist/types/postfx/CrtFilter.d.ts.map +1 -0
- package/dist/types/postfx/PixelateFilter.d.ts +8 -0
- package/dist/types/postfx/PixelateFilter.d.ts.map +1 -0
- package/dist/types/postfx/PostFx.d.ts +92 -0
- package/dist/types/postfx/PostFx.d.ts.map +1 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts +20 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts.map +1 -0
- package/dist/types/postfx/VignetteFilter.d.ts +19 -0
- package/dist/types/postfx/VignetteFilter.d.ts.map +1 -0
- package/dist/types/postfx/fxAnimator.d.ts +32 -0
- package/dist/types/postfx/fxAnimator.d.ts.map +1 -0
- package/dist/types/postfx/fxShader.d.ts +49 -0
- package/dist/types/postfx/fxShader.d.ts.map +1 -0
- package/dist/types/postfx/index.d.ts +11 -0
- package/dist/types/postfx/index.d.ts.map +1 -0
- package/dist/types/react/ChoiceDialog.d.ts +8 -0
- package/dist/types/react/ChoiceDialog.d.ts.map +1 -0
- package/dist/types/react/ConfirmDialog.d.ts +9 -0
- package/dist/types/react/ConfirmDialog.d.ts.map +1 -0
- package/dist/types/react/Glyph.d.ts +54 -0
- package/dist/types/react/Glyph.d.ts.map +1 -0
- package/dist/types/react/Modal.d.ts +22 -0
- package/dist/types/react/Modal.d.ts.map +1 -0
- package/dist/types/react/Panel.d.ts +29 -0
- package/dist/types/react/Panel.d.ts.map +1 -0
- package/dist/types/react/PixelImage.d.ts +19 -0
- package/dist/types/react/PixelImage.d.ts.map +1 -0
- package/dist/types/react/Select.d.ts +27 -0
- package/dist/types/react/Select.d.ts.map +1 -0
- package/dist/types/react/Slider.d.ts +24 -0
- package/dist/types/react/Slider.d.ts.map +1 -0
- package/dist/types/react/SplitPane.d.ts +26 -0
- package/dist/types/react/SplitPane.d.ts.map +1 -0
- package/dist/types/react/TabStrip.d.ts +31 -0
- package/dist/types/react/TabStrip.d.ts.map +1 -0
- package/dist/types/react/TitleTips.d.ts +15 -0
- package/dist/types/react/TitleTips.d.ts.map +1 -0
- package/dist/types/react/Tooltip.d.ts +22 -0
- package/dist/types/react/Tooltip.d.ts.map +1 -0
- package/dist/types/react/UiProvider.d.ts +52 -0
- package/dist/types/react/UiProvider.d.ts.map +1 -0
- package/dist/types/react/baseCss.d.ts +27 -0
- package/dist/types/react/baseCss.d.ts.map +1 -0
- package/dist/types/react/choiceStore.d.ts +34 -0
- package/dist/types/react/choiceStore.d.ts.map +1 -0
- package/dist/types/react/classNames.d.ts +12 -0
- package/dist/types/react/classNames.d.ts.map +1 -0
- package/dist/types/react/confirmStore.d.ts +30 -0
- package/dist/types/react/confirmStore.d.ts.map +1 -0
- package/dist/types/react/index.d.ts +33 -0
- package/dist/types/react/index.d.ts.map +1 -0
- package/dist/types/react/labels.d.ts +24 -0
- package/dist/types/react/labels.d.ts.map +1 -0
- package/dist/types/react/placement.d.ts +59 -0
- package/dist/types/react/placement.d.ts.map +1 -0
- package/dist/types/react/useFillSheet.d.ts +9 -0
- package/dist/types/react/useFillSheet.d.ts.map +1 -0
- package/dist/types/react/useFitToViewport.d.ts +20 -0
- package/dist/types/react/useFitToViewport.d.ts.map +1 -0
- package/dist/types/react/usePicked.d.ts +9 -0
- package/dist/types/react/usePicked.d.ts.map +1 -0
- package/dist/types/react/useStore.d.ts +8 -0
- package/dist/types/react/useStore.d.ts.map +1 -0
- package/dist/types/react/useViewport.d.ts +4 -0
- package/dist/types/react/useViewport.d.ts.map +1 -0
- package/dist/types/rig/PosePlayer.d.ts +64 -0
- package/dist/types/rig/PosePlayer.d.ts.map +1 -0
- package/dist/types/rig/RigView.d.ts +68 -0
- package/dist/types/rig/RigView.d.ts.map +1 -0
- package/dist/types/rig/Skeleton.d.ts +14 -0
- package/dist/types/rig/Skeleton.d.ts.map +1 -0
- package/dist/types/rig/humanoid.d.ts +4 -0
- package/dist/types/rig/humanoid.d.ts.map +1 -0
- package/dist/types/rig/humanoidPoses.d.ts +117 -0
- package/dist/types/rig/humanoidPoses.d.ts.map +1 -0
- package/dist/types/rig/poseMath.d.ts +14 -0
- package/dist/types/rig/poseMath.d.ts.map +1 -0
- package/dist/types/rig/rigTypes.d.ts +82 -0
- package/dist/types/rig/rigTypes.d.ts.map +1 -0
- package/dist/types/save/Autosaver.d.ts +43 -0
- package/dist/types/save/Autosaver.d.ts.map +1 -0
- package/dist/types/save/MemoryBackend.d.ts +10 -0
- package/dist/types/save/MemoryBackend.d.ts.map +1 -0
- package/dist/types/save/SaveBackend.d.ts +14 -0
- package/dist/types/save/SaveBackend.d.ts.map +1 -0
- package/dist/types/save/SaveStore.d.ts +73 -0
- package/dist/types/save/SaveStore.d.ts.map +1 -0
- package/dist/types/save/WebStorageBackend.d.ts +14 -0
- package/dist/types/save/WebStorageBackend.d.ts.map +1 -0
- package/dist/types/save/checksum.d.ts +7 -0
- package/dist/types/save/checksum.d.ts.map +1 -0
- package/dist/types/save/migrateSave.d.ts +17 -0
- package/dist/types/save/migrateSave.d.ts.map +1 -0
- package/dist/types/settings.d.ts +25 -0
- package/dist/types/settings.d.ts.map +1 -0
- package/dist/types/tilemap/TilemapView.d.ts +42 -0
- package/dist/types/tilemap/TilemapView.d.ts.map +1 -0
- package/dist/types/tilemap/collision.d.ts +16 -0
- package/dist/types/tilemap/collision.d.ts.map +1 -0
- package/dist/types/tilemap/tiled.d.ts +104 -0
- package/dist/types/tilemap/tiled.d.ts.map +1 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts +20 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts +35 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts.map +1 -0
- package/dist/types/transitions/FadeTransition.d.ts +20 -0
- package/dist/types/transitions/FadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/Letterbox.d.ts +33 -0
- package/dist/types/transitions/Letterbox.d.ts.map +1 -0
- package/dist/types/transitions/Transition.d.ts +22 -0
- package/dist/types/transitions/Transition.d.ts.map +1 -0
- package/dist/types/transitions/ditherMask.d.ts +13 -0
- package/dist/types/transitions/ditherMask.d.ts.map +1 -0
- package/dist/types/transitions/transitionTo.d.ts +16 -0
- package/dist/types/transitions/transitionTo.d.ts.map +1 -0
- package/dist/types/transitions/tweenDone.d.ts +5 -0
- package/dist/types/transitions/tweenDone.d.ts.map +1 -0
- package/dist/types/ui/Bar.d.ts +41 -0
- package/dist/types/ui/Bar.d.ts.map +1 -0
- package/dist/types/ui/Button.d.ts +47 -0
- package/dist/types/ui/Button.d.ts.map +1 -0
- package/dist/types/ui/Dialog.d.ts +47 -0
- package/dist/types/ui/Dialog.d.ts.map +1 -0
- package/dist/types/ui/FocusManager.d.ts +53 -0
- package/dist/types/ui/FocusManager.d.ts.map +1 -0
- package/dist/types/ui/Label.d.ts +24 -0
- package/dist/types/ui/Label.d.ts.map +1 -0
- package/dist/types/ui/List.d.ts +23 -0
- package/dist/types/ui/List.d.ts.map +1 -0
- package/dist/types/ui/Panel.d.ts +38 -0
- package/dist/types/ui/Panel.d.ts.map +1 -0
- package/dist/types/ui/ScrollView.d.ts +56 -0
- package/dist/types/ui/ScrollView.d.ts.map +1 -0
- package/dist/types/ui/Slider.d.ts +47 -0
- package/dist/types/ui/Slider.d.ts.map +1 -0
- package/dist/types/ui/Stack.d.ts +16 -0
- package/dist/types/ui/Stack.d.ts.map +1 -0
- package/dist/types/ui/Toggle.d.ts +31 -0
- package/dist/types/ui/Toggle.d.ts.map +1 -0
- package/dist/types/ui/UiHost.d.ts +18 -0
- package/dist/types/ui/UiHost.d.ts.map +1 -0
- package/dist/types/ui/UiPointerGate.d.ts +17 -0
- package/dist/types/ui/UiPointerGate.d.ts.map +1 -0
- package/dist/types/ui/UiRoot.d.ts +73 -0
- package/dist/types/ui/UiRoot.d.ts.map +1 -0
- package/dist/types/ui/Widget.d.ts +56 -0
- package/dist/types/ui/Widget.d.ts.map +1 -0
- package/dist/types/ui/dom/DomOverlay.d.ts +52 -0
- package/dist/types/ui/dom/DomOverlay.d.ts.map +1 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts +50 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts.map +1 -0
- package/dist/types/ui/dom/InputShield.d.ts +20 -0
- package/dist/types/ui/dom/InputShield.d.ts.map +1 -0
- package/dist/types/ui/dom/createStore.d.ts +22 -0
- package/dist/types/ui/dom/createStore.d.ts.map +1 -0
- package/dist/types/ui/dom/shieldDecision.d.ts +34 -0
- package/dist/types/ui/dom/shieldDecision.d.ts.map +1 -0
- package/dist/types/ui/dom/worldToScreen.d.ts +24 -0
- package/dist/types/ui/dom/worldToScreen.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +42 -0
- package/dist/types/ui/index.d.ts.map +1 -0
- package/dist/types/ui/layout/anchor.d.ts +9 -0
- package/dist/types/ui/layout/anchor.d.ts.map +1 -0
- package/dist/types/ui/layout/barDrain.d.ts +25 -0
- package/dist/types/ui/layout/barDrain.d.ts.map +1 -0
- package/dist/types/ui/layout/fitToViewport.d.ts +32 -0
- package/dist/types/ui/layout/fitToViewport.d.ts.map +1 -0
- package/dist/types/ui/layout/focusNav.d.ts +13 -0
- package/dist/types/ui/layout/focusNav.d.ts.map +1 -0
- package/dist/types/ui/layout/geometry.d.ts +35 -0
- package/dist/types/ui/layout/geometry.d.ts.map +1 -0
- package/dist/types/ui/layout/listWidth.d.ts +13 -0
- package/dist/types/ui/layout/listWidth.d.ts.map +1 -0
- package/dist/types/ui/layout/placeTooltip.d.ts +23 -0
- package/dist/types/ui/layout/placeTooltip.d.ts.map +1 -0
- package/dist/types/ui/layout/scroll.d.ts +17 -0
- package/dist/types/ui/layout/scroll.d.ts.map +1 -0
- package/dist/types/ui/layout/slider.d.ts +7 -0
- package/dist/types/ui/layout/slider.d.ts.map +1 -0
- package/dist/types/ui/layout/stack.d.ts +26 -0
- package/dist/types/ui/layout/stack.d.ts.map +1 -0
- package/dist/types/ui/layout/wrapRow.d.ts +6 -0
- package/dist/types/ui/layout/wrapRow.d.ts.map +1 -0
- package/dist/types/ui/rich/RichText.d.ts +48 -0
- package/dist/types/ui/rich/RichText.d.ts.map +1 -0
- package/dist/types/ui/rich/richFonts.d.ts +70 -0
- package/dist/types/ui/rich/richFonts.d.ts.map +1 -0
- package/dist/types/ui/rich/richLayout.d.ts +76 -0
- package/dist/types/ui/rich/richLayout.d.ts.map +1 -0
- package/dist/types/ui/rich/richMarkup.d.ts +48 -0
- package/dist/types/ui/rich/richMarkup.d.ts.map +1 -0
- package/dist/ui/Bar.js +53 -0
- package/dist/ui/Button.js +57 -0
- package/dist/ui/Dialog.js +55 -0
- package/dist/ui/FocusManager.js +96 -0
- package/dist/ui/Label.js +35 -0
- package/dist/ui/List.js +44 -0
- package/dist/ui/Panel.js +37 -0
- package/dist/ui/ScrollView.js +95 -0
- package/dist/ui/Slider.js +54 -0
- package/dist/ui/Stack.js +27 -0
- package/dist/ui/Toggle.js +36 -0
- package/dist/ui/UiHost.js +8 -0
- package/dist/ui/UiPointerGate.js +24 -0
- package/dist/ui/UiRoot.js +92 -0
- package/dist/ui/Widget.js +89 -0
- package/dist/ui/dom/DomOverlay.js +58 -0
- package/dist/ui/dom/DomWorldAnchors.js +58 -0
- package/dist/ui/dom/InputShield.js +26 -0
- package/dist/ui/dom/createStore.js +41 -0
- package/dist/ui/dom/shieldDecision.js +35 -0
- package/dist/ui/dom/worldToScreen.js +10 -0
- package/dist/ui/layout/anchor.js +19 -0
- package/dist/ui/layout/barDrain.js +24 -0
- package/dist/ui/layout/fitToViewport.js +16 -0
- package/dist/ui/layout/focusNav.js +41 -0
- package/dist/ui/layout/geometry.js +20 -0
- package/dist/ui/layout/listWidth.js +9 -0
- package/dist/ui/layout/placeTooltip.js +27 -0
- package/dist/ui/layout/scroll.js +23 -0
- package/dist/ui/layout/slider.js +19 -0
- package/dist/ui/layout/stack.js +26 -0
- package/dist/ui/layout/wrapRow.js +12 -0
- package/dist/ui/rich/RichText.js +87 -0
- package/dist/ui/rich/richFonts.js +105 -0
- package/dist/ui/rich/richLayout.js +132 -0
- package/dist/ui/rich/richMarkup.js +67 -0
- package/dist/ui.js +95 -0
- package/package.json +112 -4
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { Engine as r } from "./engine/Engine.js";
|
|
2
|
+
import { Scene as m } from "./engine/Scene.js";
|
|
3
|
+
import { SceneManager as a } from "./engine/SceneManager.js";
|
|
4
|
+
import { FixedLoop as x } from "./engine/FixedLoop.js";
|
|
5
|
+
import { HiddenPause as s } from "./engine/HiddenPause.js";
|
|
6
|
+
import { World as l, defineComponent as c, defineFields as d, entityIndex as S, system as u } from "./ecs/World.js";
|
|
7
|
+
import { EventBus as A } from "./events/EventBus.js";
|
|
8
|
+
import { engineSettings as g } from "./settings.js";
|
|
9
|
+
import { Stage as _ } from "./core/Stage.js";
|
|
10
|
+
import { Camera as L } from "./core/Camera.js";
|
|
11
|
+
import { baseZoom as y, fitScale as R, worldZoom as O, zoomResolution as F, zoomSteps as M } from "./core/pixelZoom.js";
|
|
12
|
+
import { Clock as b } from "./core/Clock.js";
|
|
13
|
+
import { runDue as N } from "./core/runDue.js";
|
|
14
|
+
import { Tween as D, Tweener as B } from "./core/Tweener.js";
|
|
15
|
+
import { Timeline as G } from "./core/Timeline.js";
|
|
16
|
+
import { TimelineBuilder as K } from "./core/TimelineBuilder.js";
|
|
17
|
+
import { easeByName as W } from "./core/eases.js";
|
|
18
|
+
import { ObjectFactory as Y } from "./core/ObjectFactory.js";
|
|
19
|
+
import { Graphics as Z } from "./core/Graphics.js";
|
|
20
|
+
import { Image as j } from "./core/Image.js";
|
|
21
|
+
import { clearSilhouettes as J, fillSolid as Q, solidSilhouette as $ } from "./core/silhouette.js";
|
|
22
|
+
import { Group as oe } from "./core/Group.js";
|
|
23
|
+
import { blendLayer as te } from "./core/blendLayer.js";
|
|
24
|
+
import { Rectangle as pe } from "./core/Rectangle.js";
|
|
25
|
+
import { Text as ie } from "./core/Text.js";
|
|
26
|
+
import { BitmapLabel as fe, addLabelGlyphs as se, installLabelFont as ne } from "./core/BitmapLabel.js";
|
|
27
|
+
import { Pointer as ce } from "./core/Pointer.js";
|
|
28
|
+
import { CanvasTexture as Se, TextureRegistry as ue } from "./core/TextureRegistry.js";
|
|
29
|
+
import { AtlasBuilder as Ae } from "./core/atlas.js";
|
|
30
|
+
import { atlasPageLimit as ge, planAtlas as Pe } from "./core/atlasPlan.js";
|
|
31
|
+
import { AssetLoader as Ee, resolveUrl as Le } from "./assets/AssetLoader.js";
|
|
32
|
+
import { collectAtlasPages as ye, duplicateFrames as Re, parseAtlas as Oe } from "./assets/textureAtlas.js";
|
|
33
|
+
import { Animator as Me } from "./anim/Animator.js";
|
|
34
|
+
import { clipMarkers as be, frameNamed as ke, parseAseprite as Ne } from "./anim/parseAseprite.js";
|
|
35
|
+
import { tagDirection as De, tagFrames as Be, tagRepeat as He } from "./anim/asepriteTags.js";
|
|
36
|
+
import { sliceAt as we, sliceBorders as Ke, sliceNamed as Ue } from "./anim/asepriteSlices.js";
|
|
37
|
+
import { addAsepriteTextures as Ve, loadAseprite as Ye } from "./assets/loadAseprite.js";
|
|
38
|
+
import { AnimStateMachine as Ze } from "./anim/AnimStateMachine.js";
|
|
39
|
+
import { AnimStateComponent as je, animStateSystem as qe } from "./anim/animStateSystem.js";
|
|
40
|
+
import { AnimationComponent as Qe, SpriteComponent as $e, animationSystem as eo } from "./anim/animationSystem.js";
|
|
41
|
+
import { FLIP_D as ro, FLIP_H as to, FLIP_V as mo, gidOf as po, layerByName as ao, objectsOf as io, parseTiled as xo, tileAt as fo, tileRect as so } from "./tilemap/tiled.js";
|
|
42
|
+
import { collisionFromTiled as lo } from "./tilemap/collision.js";
|
|
43
|
+
import { TilemapView as So } from "./tilemap/TilemapView.js";
|
|
44
|
+
import { Skeleton as To } from "./rig/Skeleton.js";
|
|
45
|
+
import { HUMANOID_RIG as Co } from "./rig/humanoid.js";
|
|
46
|
+
import { blendPose as Po, overlay as _o, upperOver as Eo } from "./rig/poseMath.js";
|
|
47
|
+
import { HUMANOID_CLIPS as ho, HUMANOID_POSES as yo } from "./rig/humanoidPoses.js";
|
|
48
|
+
import { PosePlayer as Oo } from "./rig/PosePlayer.js";
|
|
49
|
+
import { RIG_PARTS as Mo, RigView as Io } from "./rig/RigView.js";
|
|
50
|
+
import { LightLayer as ko } from "./light/LightLayer.js";
|
|
51
|
+
import { HEAVY_FLASH_GAP_MS as vo, RECOIL_MS as Do, hitStopMs as Bo, hurtFlashGapMs as Ho, hurtFlashMs as Go, recoilAt as wo, recoilPx as Ko } from "./fx/hitStop.js";
|
|
52
|
+
import { FloatingText as Wo } from "./fx/FloatingText.js";
|
|
53
|
+
import { inView as Yo } from "./fx/viewCull.js";
|
|
54
|
+
import { Afterimages as Zo } from "./fx/Afterimages.js";
|
|
55
|
+
import { SoundEngine as jo, sound as qo } from "./audio/SoundEngine.js";
|
|
56
|
+
import { MusicPlayer as Qo, music as $o } from "./audio/MusicPlayer.js";
|
|
57
|
+
import { MusicChannel as or } from "./audio/music/MusicChannel.js";
|
|
58
|
+
import { elementVolumeLocked as tr } from "./audio/music/musicVoice.js";
|
|
59
|
+
import { registerSounds as pr } from "./audio/soundTable.js";
|
|
60
|
+
import { hasTakes as ir, registerTakes as xr } from "./audio/sampleBank.js";
|
|
61
|
+
import { Footsteps as sr } from "./audio/Footsteps.js";
|
|
62
|
+
import { SYNTH_RATE as lr, renderRecipe as cr } from "./audio/synth.js";
|
|
63
|
+
import { Keyboard as Sr } from "./input/Keyboard.js";
|
|
64
|
+
import { Actions as Tr, PAD_BUTTONS as Ar } from "./input/Actions.js";
|
|
65
|
+
import { chordHeld as gr, parseChord as Pr } from "./input/keyChord.js";
|
|
66
|
+
import { aimAxis as Er } from "./input/aimAxis.js";
|
|
67
|
+
import { STICK_DEAD_ZONE as hr, stickActive as yr, stickToAxis as Rr, stickVector as Or } from "./input/stickAxis.js";
|
|
68
|
+
import { LongPress as Mr } from "./input/longPress.js";
|
|
69
|
+
import { AIM_CENTRE as br, AIM_EARLY_SLOP as kr, AIM_PRESS_MS as Nr, AIM_TAP_SLOP as vr, AimGesture as Dr, aimPoint as Br, dragSlop as Hr, spotReach as Gr, spotShare as wr } from "./input/AimGesture.js";
|
|
70
|
+
import { LOCK_KEEP_RANGE as Ur, LOCK_PICK_CONE as Wr, LOCK_PICK_RANGE as Vr, TargetLock as Yr, keptTarget as zr, nearestTarget as Zr, pickTarget as Xr } from "./input/TargetLock.js";
|
|
71
|
+
import { Keymap as qr, keyLabel as Jr, keymapStorage as Qr, mergeKeymap as $r } from "./input/Keymap.js";
|
|
72
|
+
import { isTouchUi as ot, setNativeShell as rt, setTouchOverrideKey as tt } from "./platform/touch.js";
|
|
73
|
+
import { onAppResume as pt } from "./platform/appResume.js";
|
|
74
|
+
import { timeoutSignal as it } from "./platform/timeoutSignal.js";
|
|
75
|
+
import { rumble as ft, rumblePad as st, rumbleParams as nt, stopRumble as lt } from "./input/rumble.js";
|
|
76
|
+
import { enterFullscreen as dt, exitFullscreen as St, fullscreenSupported as ut, isFullscreen as Tt, onFullscreenChange as At, toggleFullscreen as Ct } from "./platform/fullscreen.js";
|
|
77
|
+
import { currentOrientationKind as Pt, lockOrientation as _t, unlockOrientation as Et } from "./platform/orientation.js";
|
|
78
|
+
import { followReducedMotion as ht, onReducedMotionChange as yt, prefersReducedMotion as Rt } from "./platform/reducedMotion.js";
|
|
79
|
+
import { exitPointerLock as Ft, isPointerLocked as Mt, onPointerLockChange as It, requestPointerLock as bt } from "./platform/pointerLock.js";
|
|
80
|
+
import { detectTouch as Nt } from "./input/touchDetect.js";
|
|
81
|
+
import { DayClock as Dt, clockText as Bt, mixRgb as Ht, tintNight as Gt } from "./ambient/DayClock.js";
|
|
82
|
+
import { hash01 as Kt, weatherAt as Ut } from "./ambient/weather.js";
|
|
83
|
+
import { WeatherLayer as Vt } from "./ambient/WeatherLayer.js";
|
|
84
|
+
import { gradeAt as zt, mixToWhite as Zt } from "./ambient/grade.js";
|
|
85
|
+
import { ColorGrade as jt } from "./ambient/ColorGrade.js";
|
|
86
|
+
import { Parallax as Jt } from "./parallax/Parallax.js";
|
|
87
|
+
import { ParallaxLayer as $t } from "./parallax/ParallaxLayer.js";
|
|
88
|
+
import { parallaxOrigin as om, placeAxis as rm, spanVisible as tm, wrap as mm } from "./parallax/parallaxMath.js";
|
|
89
|
+
import { Emitter as am } from "./particles/Emitter.js";
|
|
90
|
+
import { ParticleSim as xm } from "./particles/ParticleSim.js";
|
|
91
|
+
import { ParticleBudget as sm, particleBudget as nm } from "./particles/ParticleBudget.js";
|
|
92
|
+
import { lerpColor as cm, sampleColor as dm, sampleCurve as Sm } from "./particles/particleCurves.js";
|
|
93
|
+
import { dueParticles as Tm, sampleRange as Am, scaleCount as Cm, seededRandom as gm, spreadAngle as Pm } from "./particles/particleSampling.js";
|
|
94
|
+
import { PhysicsWorld as Em } from "./physics/PhysicsWorld.js";
|
|
95
|
+
import { Body as hm } from "./physics/Body.js";
|
|
96
|
+
import { Contact as Rm, ContactPoint as Om } from "./physics/Contact.js";
|
|
97
|
+
import { MAX_POLYGON_VERTICES as Mm, polygonCentroid as Im, polygonShape as bm, regularPolygon as km } from "./physics/polygon.js";
|
|
98
|
+
import { mergeTileRects as vm, tileBodies as Dm, tileBodiesFromGrid as Bm } from "./physics/tileBodies.js";
|
|
99
|
+
import { physicsSystem as Gm } from "./physics/physicsSystem.js";
|
|
100
|
+
import { syncToBody as Km } from "./physics/syncToBody.js";
|
|
101
|
+
import { COLLIDER_COLORS as Wm, colliderColor as Vm, drawColliders as Ym } from "./physics/drawColliders.js";
|
|
102
|
+
import { FACE_BOTTOM as Zm, FACE_LEFT as Xm, FACE_RIGHT as jm, FACE_TOP as qm } from "./physics/types.js";
|
|
103
|
+
import { MinHeap as Qm } from "./nav/MinHeap.js";
|
|
104
|
+
import { NAV_STEPS as ep, canStep as op, isOpen as rp, navGrid as tp, navGridFromCollision as mp, nearWallCost as pp } from "./nav/navGrid.js";
|
|
105
|
+
import { nearestOpen as ip } from "./nav/nearestOpen.js";
|
|
106
|
+
import { findPath as fp, floodFill as sp, octile as np, reachedCount as lp } from "./nav/findPath.js";
|
|
107
|
+
import { simplifyPath as dp, straightenPath as Sp } from "./nav/straightenPath.js";
|
|
108
|
+
import { SaveStore as Tp } from "./save/SaveStore.js";
|
|
109
|
+
import { MemoryBackend as Cp } from "./save/MemoryBackend.js";
|
|
110
|
+
import { WebStorageBackend as Pp } from "./save/WebStorageBackend.js";
|
|
111
|
+
import { MigrationError as Ep, migrateSave as Lp } from "./save/migrateSave.js";
|
|
112
|
+
import { checksum as yp } from "./save/checksum.js";
|
|
113
|
+
import { Autosaver as Op } from "./save/Autosaver.js";
|
|
114
|
+
import { transitionTo as Mp } from "./transitions/transitionTo.js";
|
|
115
|
+
import { tweenDone as bp } from "./transitions/tweenDone.js";
|
|
116
|
+
import { FadeTransition as Np } from "./transitions/FadeTransition.js";
|
|
117
|
+
import { CrossfadeTransition as Dp } from "./transitions/CrossfadeTransition.js";
|
|
118
|
+
import { DitherWipeTransition as Hp } from "./transitions/DitherWipeTransition.js";
|
|
119
|
+
import { BAYER4 as wp, DITHER_LEVELS as Kp, ditherCovered as Up, wipeLevel as Wp } from "./transitions/ditherMask.js";
|
|
120
|
+
import { Letterbox as Yp } from "./transitions/Letterbox.js";
|
|
121
|
+
import { Translator as Zp } from "./i18n/Translator.js";
|
|
122
|
+
import { CONTEXT_MARK as jp, formatMessage as qp, sourceText as Jp } from "./i18n/formatMessage.js";
|
|
123
|
+
import { extractStrings as $p } from "./i18n/extractStrings.js";
|
|
124
|
+
import { noteContextLoss as oa, rebuildDelayMs as ra, watchContextLoss as ta } from "./diagnostics/contextLoss.js";
|
|
125
|
+
import { bootWatch as pa } from "./diagnostics/bootWatch.js";
|
|
126
|
+
import { describeError as ia, guardRender as xa } from "./diagnostics/renderGuard.js";
|
|
127
|
+
import { gpuName as sa, maxTextureSize as na } from "./diagnostics/gpuInfo.js";
|
|
128
|
+
import { countHitches as ca, looksThrottled as da, percentile as Sa, summarizeFrames as ua } from "./diagnostics/frameStats.js";
|
|
129
|
+
import { FrameSampler as Aa } from "./diagnostics/FrameSampler.js";
|
|
130
|
+
import { ErrorDeduper as ga, trimStack as Pa } from "./diagnostics/ErrorDeduper.js";
|
|
131
|
+
import { captureErrors as Ea } from "./diagnostics/captureErrors.js";
|
|
132
|
+
import { DebugOverlay as ha } from "./debug/DebugOverlay.js";
|
|
133
|
+
import { FrameStats as Ra } from "./debug/FrameStats.js";
|
|
134
|
+
import { ErrorLog as Fa } from "./debug/ErrorLog.js";
|
|
135
|
+
import { inspectWorld as Ia } from "./debug/inspectWorld.js";
|
|
136
|
+
import { DrawCallCounter as ka } from "./debug/DrawCallCounter.js";
|
|
137
|
+
import { BODY_HALF_HEIGHT as va, BODY_HALF_WIDTH as Da, INPUT_FLAG_DASH as Ba, INPUT_STEP_DT as Ha, INPUT_STEP_RATE as Ga, TILE_SIZE as wa } from "./net/constants.js";
|
|
138
|
+
import { DIAGONAL as Ua, blocksShot as Wa, bodyCollides as Va, createCollisionGrid as Ya, createMover as za, isSolidTile as Za, moveX as Xa, moveY as ja, stepMover as qa } from "./net/movement.js";
|
|
139
|
+
import { UPDATE_RECORD_BYTES as Qa, decodeSnapshotFrame as $a, decodeUpdates as ei, encodeSnapshotFrame as oi, encodeUpdates as ri, quantizeUpdates as ti } from "./net/snapshotCodec.js";
|
|
140
|
+
import { CADENCE as pi, cadenceEarly as ai, cadenceNext as ii } from "./net/cadence.js";
|
|
141
|
+
import { noteServerTime as fi, resetServerClock as si, serverNow as ni, serverOffset as li } from "./net/serverClock.js";
|
|
142
|
+
import { PredictedMover as di } from "./net/PredictedMover.js";
|
|
143
|
+
import { InterpolationBuffer as ui } from "./net/InterpolationBuffer.js";
|
|
144
|
+
import { Room as Ai } from "./net/Room.js";
|
|
145
|
+
import { RoomHost as gi } from "./net/RoomHost.js";
|
|
146
|
+
import { CLOSE_NO_ANSWER as _i, Connection as Ei } from "./net/Connection.js";
|
|
147
|
+
import { reconnectDelay as hi, shouldReconnect as yi } from "./net/reconnect.js";
|
|
148
|
+
import { moverFromWire as Oi, moverToWire as Fi } from "./net/protocol.js";
|
|
149
|
+
import { LobbyClient as Ii } from "./net/lobby/LobbyClient.js";
|
|
150
|
+
import { LobbyHost as ki } from "./net/lobby/LobbyHost.js";
|
|
151
|
+
import { LobbyRooms as vi } from "./net/lobby/LobbyRooms.js";
|
|
152
|
+
import { Matchmaker as Bi, balanceTeams as Hi } from "./net/lobby/Matchmaker.js";
|
|
153
|
+
export {
|
|
154
|
+
br as AIM_CENTRE,
|
|
155
|
+
kr as AIM_EARLY_SLOP,
|
|
156
|
+
Nr as AIM_PRESS_MS,
|
|
157
|
+
vr as AIM_TAP_SLOP,
|
|
158
|
+
Tr as Actions,
|
|
159
|
+
Zo as Afterimages,
|
|
160
|
+
Dr as AimGesture,
|
|
161
|
+
je as AnimStateComponent,
|
|
162
|
+
Ze as AnimStateMachine,
|
|
163
|
+
Qe as AnimationComponent,
|
|
164
|
+
Me as Animator,
|
|
165
|
+
Ee as AssetLoader,
|
|
166
|
+
Ae as AtlasBuilder,
|
|
167
|
+
Op as Autosaver,
|
|
168
|
+
wp as BAYER4,
|
|
169
|
+
va as BODY_HALF_HEIGHT,
|
|
170
|
+
Da as BODY_HALF_WIDTH,
|
|
171
|
+
fe as BitmapLabel,
|
|
172
|
+
hm as Body,
|
|
173
|
+
pi as CADENCE,
|
|
174
|
+
_i as CLOSE_NO_ANSWER,
|
|
175
|
+
Wm as COLLIDER_COLORS,
|
|
176
|
+
jp as CONTEXT_MARK,
|
|
177
|
+
L as Camera,
|
|
178
|
+
Se as CanvasTexture,
|
|
179
|
+
b as Clock,
|
|
180
|
+
jt as ColorGrade,
|
|
181
|
+
Ei as Connection,
|
|
182
|
+
Rm as Contact,
|
|
183
|
+
Om as ContactPoint,
|
|
184
|
+
Dp as CrossfadeTransition,
|
|
185
|
+
Ua as DIAGONAL,
|
|
186
|
+
Kp as DITHER_LEVELS,
|
|
187
|
+
Dt as DayClock,
|
|
188
|
+
ha as DebugOverlay,
|
|
189
|
+
Hp as DitherWipeTransition,
|
|
190
|
+
ka as DrawCallCounter,
|
|
191
|
+
am as Emitter,
|
|
192
|
+
r as Engine,
|
|
193
|
+
ga as ErrorDeduper,
|
|
194
|
+
Fa as ErrorLog,
|
|
195
|
+
A as EventBus,
|
|
196
|
+
Zm as FACE_BOTTOM,
|
|
197
|
+
Xm as FACE_LEFT,
|
|
198
|
+
jm as FACE_RIGHT,
|
|
199
|
+
qm as FACE_TOP,
|
|
200
|
+
ro as FLIP_D,
|
|
201
|
+
to as FLIP_H,
|
|
202
|
+
mo as FLIP_V,
|
|
203
|
+
Np as FadeTransition,
|
|
204
|
+
x as FixedLoop,
|
|
205
|
+
Wo as FloatingText,
|
|
206
|
+
sr as Footsteps,
|
|
207
|
+
Aa as FrameSampler,
|
|
208
|
+
Ra as FrameStats,
|
|
209
|
+
Z as Graphics,
|
|
210
|
+
oe as Group,
|
|
211
|
+
vo as HEAVY_FLASH_GAP_MS,
|
|
212
|
+
ho as HUMANOID_CLIPS,
|
|
213
|
+
yo as HUMANOID_POSES,
|
|
214
|
+
Co as HUMANOID_RIG,
|
|
215
|
+
s as HiddenPause,
|
|
216
|
+
Ba as INPUT_FLAG_DASH,
|
|
217
|
+
Ha as INPUT_STEP_DT,
|
|
218
|
+
Ga as INPUT_STEP_RATE,
|
|
219
|
+
j as Image,
|
|
220
|
+
ui as InterpolationBuffer,
|
|
221
|
+
Sr as Keyboard,
|
|
222
|
+
qr as Keymap,
|
|
223
|
+
Ur as LOCK_KEEP_RANGE,
|
|
224
|
+
Wr as LOCK_PICK_CONE,
|
|
225
|
+
Vr as LOCK_PICK_RANGE,
|
|
226
|
+
Yp as Letterbox,
|
|
227
|
+
ko as LightLayer,
|
|
228
|
+
Ii as LobbyClient,
|
|
229
|
+
ki as LobbyHost,
|
|
230
|
+
vi as LobbyRooms,
|
|
231
|
+
Mr as LongPress,
|
|
232
|
+
Mm as MAX_POLYGON_VERTICES,
|
|
233
|
+
Bi as Matchmaker,
|
|
234
|
+
Cp as MemoryBackend,
|
|
235
|
+
Ep as MigrationError,
|
|
236
|
+
Qm as MinHeap,
|
|
237
|
+
or as MusicChannel,
|
|
238
|
+
Qo as MusicPlayer,
|
|
239
|
+
ep as NAV_STEPS,
|
|
240
|
+
Y as ObjectFactory,
|
|
241
|
+
Ar as PAD_BUTTONS,
|
|
242
|
+
Jt as Parallax,
|
|
243
|
+
$t as ParallaxLayer,
|
|
244
|
+
sm as ParticleBudget,
|
|
245
|
+
xm as ParticleSim,
|
|
246
|
+
Em as PhysicsWorld,
|
|
247
|
+
ce as Pointer,
|
|
248
|
+
Oo as PosePlayer,
|
|
249
|
+
di as PredictedMover,
|
|
250
|
+
Do as RECOIL_MS,
|
|
251
|
+
Mo as RIG_PARTS,
|
|
252
|
+
pe as Rectangle,
|
|
253
|
+
Io as RigView,
|
|
254
|
+
Ai as Room,
|
|
255
|
+
gi as RoomHost,
|
|
256
|
+
hr as STICK_DEAD_ZONE,
|
|
257
|
+
lr as SYNTH_RATE,
|
|
258
|
+
Tp as SaveStore,
|
|
259
|
+
m as Scene,
|
|
260
|
+
a as SceneManager,
|
|
261
|
+
To as Skeleton,
|
|
262
|
+
jo as SoundEngine,
|
|
263
|
+
$e as SpriteComponent,
|
|
264
|
+
_ as Stage,
|
|
265
|
+
wa as TILE_SIZE,
|
|
266
|
+
Yr as TargetLock,
|
|
267
|
+
ie as Text,
|
|
268
|
+
ue as TextureRegistry,
|
|
269
|
+
So as TilemapView,
|
|
270
|
+
G as Timeline,
|
|
271
|
+
K as TimelineBuilder,
|
|
272
|
+
Zp as Translator,
|
|
273
|
+
D as Tween,
|
|
274
|
+
B as Tweener,
|
|
275
|
+
Qa as UPDATE_RECORD_BYTES,
|
|
276
|
+
Vt as WeatherLayer,
|
|
277
|
+
Pp as WebStorageBackend,
|
|
278
|
+
l as World,
|
|
279
|
+
Ve as addAsepriteTextures,
|
|
280
|
+
se as addLabelGlyphs,
|
|
281
|
+
Er as aimAxis,
|
|
282
|
+
Br as aimPoint,
|
|
283
|
+
qe as animStateSystem,
|
|
284
|
+
eo as animationSystem,
|
|
285
|
+
ge as atlasPageLimit,
|
|
286
|
+
Hi as balanceTeams,
|
|
287
|
+
y as baseZoom,
|
|
288
|
+
te as blendLayer,
|
|
289
|
+
Po as blendPose,
|
|
290
|
+
Wa as blocksShot,
|
|
291
|
+
Va as bodyCollides,
|
|
292
|
+
pa as bootWatch,
|
|
293
|
+
ai as cadenceEarly,
|
|
294
|
+
ii as cadenceNext,
|
|
295
|
+
op as canStep,
|
|
296
|
+
Ea as captureErrors,
|
|
297
|
+
yp as checksum,
|
|
298
|
+
gr as chordHeld,
|
|
299
|
+
J as clearSilhouettes,
|
|
300
|
+
be as clipMarkers,
|
|
301
|
+
Bt as clockText,
|
|
302
|
+
ye as collectAtlasPages,
|
|
303
|
+
Vm as colliderColor,
|
|
304
|
+
lo as collisionFromTiled,
|
|
305
|
+
ca as countHitches,
|
|
306
|
+
Ya as createCollisionGrid,
|
|
307
|
+
za as createMover,
|
|
308
|
+
Pt as currentOrientationKind,
|
|
309
|
+
$a as decodeSnapshotFrame,
|
|
310
|
+
ei as decodeUpdates,
|
|
311
|
+
c as defineComponent,
|
|
312
|
+
d as defineFields,
|
|
313
|
+
ia as describeError,
|
|
314
|
+
Nt as detectTouch,
|
|
315
|
+
Up as ditherCovered,
|
|
316
|
+
Hr as dragSlop,
|
|
317
|
+
Ym as drawColliders,
|
|
318
|
+
Tm as dueParticles,
|
|
319
|
+
Re as duplicateFrames,
|
|
320
|
+
W as easeByName,
|
|
321
|
+
tr as elementVolumeLocked,
|
|
322
|
+
oi as encodeSnapshotFrame,
|
|
323
|
+
ri as encodeUpdates,
|
|
324
|
+
g as engineSettings,
|
|
325
|
+
dt as enterFullscreen,
|
|
326
|
+
S as entityIndex,
|
|
327
|
+
St as exitFullscreen,
|
|
328
|
+
Ft as exitPointerLock,
|
|
329
|
+
$p as extractStrings,
|
|
330
|
+
Q as fillSolid,
|
|
331
|
+
fp as findPath,
|
|
332
|
+
R as fitScale,
|
|
333
|
+
sp as floodFill,
|
|
334
|
+
ht as followReducedMotion,
|
|
335
|
+
qp as formatMessage,
|
|
336
|
+
ke as frameNamed,
|
|
337
|
+
ut as fullscreenSupported,
|
|
338
|
+
po as gidOf,
|
|
339
|
+
sa as gpuName,
|
|
340
|
+
zt as gradeAt,
|
|
341
|
+
xa as guardRender,
|
|
342
|
+
ir as hasTakes,
|
|
343
|
+
Kt as hash01,
|
|
344
|
+
Bo as hitStopMs,
|
|
345
|
+
Ho as hurtFlashGapMs,
|
|
346
|
+
Go as hurtFlashMs,
|
|
347
|
+
Yo as inView,
|
|
348
|
+
Ia as inspectWorld,
|
|
349
|
+
ne as installLabelFont,
|
|
350
|
+
Tt as isFullscreen,
|
|
351
|
+
rp as isOpen,
|
|
352
|
+
Mt as isPointerLocked,
|
|
353
|
+
Za as isSolidTile,
|
|
354
|
+
ot as isTouchUi,
|
|
355
|
+
zr as keptTarget,
|
|
356
|
+
Jr as keyLabel,
|
|
357
|
+
Qr as keymapStorage,
|
|
358
|
+
ao as layerByName,
|
|
359
|
+
cm as lerpColor,
|
|
360
|
+
Ye as loadAseprite,
|
|
361
|
+
_t as lockOrientation,
|
|
362
|
+
da as looksThrottled,
|
|
363
|
+
na as maxTextureSize,
|
|
364
|
+
$r as mergeKeymap,
|
|
365
|
+
vm as mergeTileRects,
|
|
366
|
+
Lp as migrateSave,
|
|
367
|
+
Ht as mixRgb,
|
|
368
|
+
Zt as mixToWhite,
|
|
369
|
+
Xa as moveX,
|
|
370
|
+
ja as moveY,
|
|
371
|
+
Oi as moverFromWire,
|
|
372
|
+
Fi as moverToWire,
|
|
373
|
+
$o as music,
|
|
374
|
+
tp as navGrid,
|
|
375
|
+
mp as navGridFromCollision,
|
|
376
|
+
pp as nearWallCost,
|
|
377
|
+
ip as nearestOpen,
|
|
378
|
+
Zr as nearestTarget,
|
|
379
|
+
oa as noteContextLoss,
|
|
380
|
+
fi as noteServerTime,
|
|
381
|
+
io as objectsOf,
|
|
382
|
+
np as octile,
|
|
383
|
+
pt as onAppResume,
|
|
384
|
+
At as onFullscreenChange,
|
|
385
|
+
It as onPointerLockChange,
|
|
386
|
+
yt as onReducedMotionChange,
|
|
387
|
+
_o as overlay,
|
|
388
|
+
om as parallaxOrigin,
|
|
389
|
+
Ne as parseAseprite,
|
|
390
|
+
Oe as parseAtlas,
|
|
391
|
+
Pr as parseChord,
|
|
392
|
+
xo as parseTiled,
|
|
393
|
+
nm as particleBudget,
|
|
394
|
+
Sa as percentile,
|
|
395
|
+
Gm as physicsSystem,
|
|
396
|
+
Xr as pickTarget,
|
|
397
|
+
rm as placeAxis,
|
|
398
|
+
Pe as planAtlas,
|
|
399
|
+
Im as polygonCentroid,
|
|
400
|
+
bm as polygonShape,
|
|
401
|
+
Rt as prefersReducedMotion,
|
|
402
|
+
ti as quantizeUpdates,
|
|
403
|
+
lp as reachedCount,
|
|
404
|
+
ra as rebuildDelayMs,
|
|
405
|
+
wo as recoilAt,
|
|
406
|
+
Ko as recoilPx,
|
|
407
|
+
hi as reconnectDelay,
|
|
408
|
+
pr as registerSounds,
|
|
409
|
+
xr as registerTakes,
|
|
410
|
+
km as regularPolygon,
|
|
411
|
+
cr as renderRecipe,
|
|
412
|
+
bt as requestPointerLock,
|
|
413
|
+
si as resetServerClock,
|
|
414
|
+
Le as resolveUrl,
|
|
415
|
+
ft as rumble,
|
|
416
|
+
st as rumblePad,
|
|
417
|
+
nt as rumbleParams,
|
|
418
|
+
N as runDue,
|
|
419
|
+
dm as sampleColor,
|
|
420
|
+
Sm as sampleCurve,
|
|
421
|
+
Am as sampleRange,
|
|
422
|
+
Cm as scaleCount,
|
|
423
|
+
gm as seededRandom,
|
|
424
|
+
ni as serverNow,
|
|
425
|
+
li as serverOffset,
|
|
426
|
+
rt as setNativeShell,
|
|
427
|
+
tt as setTouchOverrideKey,
|
|
428
|
+
yi as shouldReconnect,
|
|
429
|
+
dp as simplifyPath,
|
|
430
|
+
we as sliceAt,
|
|
431
|
+
Ke as sliceBorders,
|
|
432
|
+
Ue as sliceNamed,
|
|
433
|
+
$ as solidSilhouette,
|
|
434
|
+
qo as sound,
|
|
435
|
+
Jp as sourceText,
|
|
436
|
+
tm as spanVisible,
|
|
437
|
+
Gr as spotReach,
|
|
438
|
+
wr as spotShare,
|
|
439
|
+
Pm as spreadAngle,
|
|
440
|
+
qa as stepMover,
|
|
441
|
+
yr as stickActive,
|
|
442
|
+
Rr as stickToAxis,
|
|
443
|
+
Or as stickVector,
|
|
444
|
+
lt as stopRumble,
|
|
445
|
+
Sp as straightenPath,
|
|
446
|
+
ua as summarizeFrames,
|
|
447
|
+
Km as syncToBody,
|
|
448
|
+
u as system,
|
|
449
|
+
De as tagDirection,
|
|
450
|
+
Be as tagFrames,
|
|
451
|
+
He as tagRepeat,
|
|
452
|
+
fo as tileAt,
|
|
453
|
+
Dm as tileBodies,
|
|
454
|
+
Bm as tileBodiesFromGrid,
|
|
455
|
+
so as tileRect,
|
|
456
|
+
it as timeoutSignal,
|
|
457
|
+
Gt as tintNight,
|
|
458
|
+
Ct as toggleFullscreen,
|
|
459
|
+
Mp as transitionTo,
|
|
460
|
+
Pa as trimStack,
|
|
461
|
+
bp as tweenDone,
|
|
462
|
+
Et as unlockOrientation,
|
|
463
|
+
Eo as upperOver,
|
|
464
|
+
ta as watchContextLoss,
|
|
465
|
+
Ut as weatherAt,
|
|
466
|
+
Wp as wipeLevel,
|
|
467
|
+
O as worldZoom,
|
|
468
|
+
mm as wrap,
|
|
469
|
+
F as zoomResolution,
|
|
470
|
+
M as zoomSteps
|
|
471
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Sprite as a, Texture as d } from "pixi.js";
|
|
2
|
+
import { mixToWhite as n } from "./grade.js";
|
|
3
|
+
class c {
|
|
4
|
+
constructor(e, s, t = {}) {
|
|
5
|
+
this.stage = e, this.read = s, this.every = t.readEveryMs ?? 500, this.sheet.blendMode = "multiply", this.sheet.visible = !1;
|
|
6
|
+
const i = t.parent ?? e.screen;
|
|
7
|
+
t.placement === "bottom" ? i.addChildAt(this.sheet, 0) : i.addChild(this.sheet);
|
|
8
|
+
}
|
|
9
|
+
stage;
|
|
10
|
+
read;
|
|
11
|
+
sheet = new a({ texture: d.WHITE });
|
|
12
|
+
readAt = -1 / 0;
|
|
13
|
+
blank = !1;
|
|
14
|
+
every;
|
|
15
|
+
/** Reads the grade again on the next update (the place changed). */
|
|
16
|
+
invalidate() {
|
|
17
|
+
this.readAt = -1 / 0;
|
|
18
|
+
}
|
|
19
|
+
/** `enabled`: the game's setting, and off under a battery saver — a full-screen blend is a cost on a phone. */
|
|
20
|
+
update(e, s = !0) {
|
|
21
|
+
if (!s) {
|
|
22
|
+
this.sheet.visible = !1, this.readAt = -1 / 0;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (e - this.readAt >= this.every) {
|
|
26
|
+
this.readAt = e;
|
|
27
|
+
const h = this.read(), r = h ? n(h.color, h.alpha) : 16777215;
|
|
28
|
+
this.blank = r === 16777215, this.sheet.tint = r;
|
|
29
|
+
}
|
|
30
|
+
if (this.sheet.visible = !this.blank, this.blank) return;
|
|
31
|
+
const { width: t, height: i } = this.stage;
|
|
32
|
+
this.sheet.width !== t && (this.sheet.width = t), this.sheet.height !== i && (this.sheet.height = i);
|
|
33
|
+
}
|
|
34
|
+
destroy() {
|
|
35
|
+
this.sheet.destroy();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
c as ColorGrade
|
|
40
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function f(h, s, t) {
|
|
2
|
+
const e = (a) => Math.round((h >> a & 255) * (1 - t) + (s >> a & 255) * t);
|
|
3
|
+
return e(16) << 16 | e(8) << 8 | e(0);
|
|
4
|
+
}
|
|
5
|
+
class u {
|
|
6
|
+
periodMs;
|
|
7
|
+
offsetMs;
|
|
8
|
+
keys;
|
|
9
|
+
phases;
|
|
10
|
+
maxAlpha;
|
|
11
|
+
/** A phase held still (a debug command, a cut scene at midnight); null follows the clock. */
|
|
12
|
+
held = null;
|
|
13
|
+
constructor(s) {
|
|
14
|
+
if (!(s.periodMs > 0)) throw new Error("DayClock: periodMs must be above 0");
|
|
15
|
+
if (!s.keys.length) throw new Error("DayClock: at least one key");
|
|
16
|
+
this.periodMs = s.periodMs, this.offsetMs = s.offsetMs ?? 0, this.keys = [...s.keys].sort((t, e) => t.at - e.at), this.phases = [...s.phases ?? []].sort((t, e) => t.from - e.from), this.maxAlpha = Math.max(0.01, ...this.keys.map((t) => t.alpha));
|
|
17
|
+
}
|
|
18
|
+
/** Holds the day at `phase` (0..1), or lets it run again with null. */
|
|
19
|
+
hold(s) {
|
|
20
|
+
this.held = s === null ? null : (s % 1 + 1) % 1;
|
|
21
|
+
}
|
|
22
|
+
/** Where the day stands at wall time `ms` (0..1). */
|
|
23
|
+
phaseAt(s) {
|
|
24
|
+
if (this.held !== null) return this.held;
|
|
25
|
+
const t = this.periodMs;
|
|
26
|
+
return ((s + this.offsetMs) % t + t) % t / t;
|
|
27
|
+
}
|
|
28
|
+
at(s) {
|
|
29
|
+
const t = this.phaseAt(s), e = this.keys;
|
|
30
|
+
let a = e[0], n = a.color, i = a.alpha;
|
|
31
|
+
t >= e[e.length - 1].at && (a = e[e.length - 1], n = a.color, i = a.alpha);
|
|
32
|
+
for (let o = 0; o < e.length - 1; o++) {
|
|
33
|
+
const r = e[o], l = e[o + 1];
|
|
34
|
+
if (t < r.at || t > l.at) continue;
|
|
35
|
+
const p = l.at > r.at ? (t - r.at) / (l.at - r.at) : 0;
|
|
36
|
+
n = f(r.color, l.color, p), i = r.alpha + (l.alpha - r.alpha) * p;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
let c = this.phases.length ? this.phases[this.phases.length - 1].id : "";
|
|
40
|
+
for (const o of this.phases) t >= o.from && (c = o.id);
|
|
41
|
+
return { phase: t, id: c, color: n, alpha: i, night: Math.min(1, i / this.maxAlpha) };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function d(h) {
|
|
45
|
+
const s = Math.floor((h % 1 + 1) % 1 * 24 * 60);
|
|
46
|
+
return `${String(Math.floor(s / 60)).padStart(2, "0")}:${String(s % 60).padStart(2, "0")}`;
|
|
47
|
+
}
|
|
48
|
+
function M(h, s, t = 0.6) {
|
|
49
|
+
return s === void 0 ? h.color : f(h.color, s, h.night * t);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
u as DayClock,
|
|
53
|
+
d as clockText,
|
|
54
|
+
f as mixRgb,
|
|
55
|
+
M as tintNight
|
|
56
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Sprite as y, Texture as x } from "pixi.js";
|
|
2
|
+
const r = 80, f = {
|
|
3
|
+
fall: { vx: [-48, -38], vy: [250, 320] },
|
|
4
|
+
flake: { vx: [4, 12], vy: [14, 30] },
|
|
5
|
+
bank: { vx: [3, 8], vy: [0, 0] }
|
|
6
|
+
};
|
|
7
|
+
class c {
|
|
8
|
+
constructor(t, i) {
|
|
9
|
+
this.stage = t, this.options = i, this.depth = i.depth ?? 900001, this.bankDepth = i.bankDepth ?? 900010, this.splashDepth = i.splashDepth ?? 0, this.snap = i.snap ?? !0, this.random = i.random ?? Math.random, this.tint.visible = !1, t.screen.addChild(this.tint);
|
|
10
|
+
}
|
|
11
|
+
stage;
|
|
12
|
+
options;
|
|
13
|
+
drops = [];
|
|
14
|
+
kind = "clear";
|
|
15
|
+
look;
|
|
16
|
+
tint = new y({ texture: x.WHITE });
|
|
17
|
+
depth;
|
|
18
|
+
bankDepth;
|
|
19
|
+
splashDepth;
|
|
20
|
+
snap;
|
|
21
|
+
random;
|
|
22
|
+
/**
|
|
23
|
+
* `now` in ms, `dt` the frame's ms, `view` the camera's world view. `share` (0..1) thins the pool on top of the
|
|
24
|
+
* weather's own strength (a reduced-effects setting keeps half).
|
|
25
|
+
*/
|
|
26
|
+
update(t, i, s, h, e = 1) {
|
|
27
|
+
h.kind !== this.kind && this.rebuild(h.kind, s);
|
|
28
|
+
const n = this.look, a = (n?.tintAlpha ?? 0) * h.intensity;
|
|
29
|
+
if (this.tint.visible = a > 4e-3, this.tint.visible && (this.tint.tint = n?.tint ?? 16777215, this.tint.alpha = a, this.tint.width = this.stage.width, this.tint.height = this.stage.height), !n) return;
|
|
30
|
+
const g = Math.round(this.drops.length * h.intensity * Math.max(0, Math.min(1, e))), l = i / 1e3;
|
|
31
|
+
for (let p = 0; p < this.drops.length; p++) {
|
|
32
|
+
const o = this.drops[p];
|
|
33
|
+
if (p >= g) {
|
|
34
|
+
o.img.visible && o.img.setVisible(!1);
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
o.img.visible || this.spawn(o, n, s, !1), n.motion === "fall" ? this.stepFall(o, n, t, l, s) : n.motion === "bank" ? this.stepBank(o, n, l, s, h.intensity) : this.stepFlake(o, n, t, l, s);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
rebuild(t, i) {
|
|
41
|
+
for (const h of this.drops) h.img.destroy();
|
|
42
|
+
this.drops.length = 0, this.kind = t, this.look = t === "clear" ? void 0 : this.options.looks[t];
|
|
43
|
+
const s = this.look;
|
|
44
|
+
if (!(!s || !s.keys.length))
|
|
45
|
+
for (let h = 0; h < s.max; h++) {
|
|
46
|
+
const e = s.keys[h % s.keys.length], n = this.stage.add.image(0, 0, e).setOrigin(0, 0).setVisible(!1), a = { img: n, key: e, x: 0, y: 0, vx: 0, vy: 0, ground: 0, splashAt: 0 };
|
|
47
|
+
this.drops.push(a), this.spawn(a, s, i, !0), n.setVisible(!1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
between(t) {
|
|
51
|
+
return t[0] + (t[1] - t[0]) * this.random();
|
|
52
|
+
}
|
|
53
|
+
place(t) {
|
|
54
|
+
t.img.setPosition(this.snap ? Math.round(t.x) : t.x, this.snap ? Math.round(t.y) : t.y);
|
|
55
|
+
}
|
|
56
|
+
spawn(t, i, s, h) {
|
|
57
|
+
const e = this.random, n = f[i.motion], a = s.x - 30 + e() * (s.width + 60);
|
|
58
|
+
t.vx = this.between(i.vx ?? n.vx), t.vy = this.between(i.vy ?? n.vy), i.motion === "fall" ? (t.ground = s.y + e() * (s.height + 12), t.y = h ? s.y - 10 + e() * (t.ground - s.y + 10) : t.ground - 30 - e() * s.height, t.x = a, t.splashAt = 0, t.img.setTexture(t.key).setDepth(this.depth).setAlpha(1)) : i.motion === "bank" ? (t.x = h ? a : s.x - t.img.width, t.y = s.y + e() * s.height, t.img.setDepth(this.bankDepth)) : (t.x = a, t.y = h ? s.y + e() * s.height : s.y - 4 - e() * 20, t.ground = e() * Math.PI * 2, t.img.setDepth(this.depth)), t.img.setVisible(!0);
|
|
59
|
+
}
|
|
60
|
+
stepFall(t, i, s, h, e) {
|
|
61
|
+
if (t.splashAt) {
|
|
62
|
+
const n = s - t.splashAt;
|
|
63
|
+
n > r * 2 ? this.spawn(t, i, e, !1) : n > r && i.splash && t.img.setTexture(i.splash[1]);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (t.x += t.vx * h, t.y += t.vy * h, t.y >= t.ground) {
|
|
67
|
+
i.splash && this.random() < 0.5 ? (t.splashAt = s, t.img.setTexture(i.splash[0]).setDepth(this.splashDepth), t.x -= t.img.width / 2, t.y = t.ground - 1, this.place(t)) : this.spawn(t, i, e, !1);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this.place(t);
|
|
71
|
+
}
|
|
72
|
+
stepFlake(t, i, s, h, e) {
|
|
73
|
+
if (t.x += t.vx * h, t.y += t.vy * h, t.y > e.bottom + 4 || t.x > e.right + 30 || t.x < e.x - 40) {
|
|
74
|
+
this.spawn(t, i, e, !1);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const n = Math.sin(s / 900 + t.ground) * (i.sway ?? 4), a = t.x + n;
|
|
78
|
+
t.img.setPosition(this.snap ? Math.round(a) : a, this.snap ? Math.round(t.y) : t.y);
|
|
79
|
+
}
|
|
80
|
+
stepBank(t, i, s, h, e) {
|
|
81
|
+
t.x += t.vx * s, (t.x > h.right + 10 || t.y < h.y - 20 || t.y > h.bottom + 10) && this.spawn(t, i, h, t.x <= h.right + 10), t.img.setAlpha(0.35 + 0.5 * e), this.place(t);
|
|
82
|
+
}
|
|
83
|
+
destroy() {
|
|
84
|
+
for (const t of this.drops) t.img.destroy();
|
|
85
|
+
this.drops.length = 0, this.tint.destroy();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
c as WeatherLayer
|
|
90
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function c(t, a, o = 0.14) {
|
|
2
|
+
const n = Math.max(0, Math.min(1, a));
|
|
3
|
+
return { color: t.color, alpha: Math.max(0, Math.min(o, t.day + (t.night - t.day) * n)) };
|
|
4
|
+
}
|
|
5
|
+
function i(t, a) {
|
|
6
|
+
const o = Math.max(0, Math.min(1, a)), n = (h) => Math.round(255 - (255 - (t >> h & 255)) * o) << h;
|
|
7
|
+
return n(16) | n(8) | n(0);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
c as gradeAt,
|
|
11
|
+
i as mixToWhite
|
|
12
|
+
};
|