diff --git a/CHANGELOG.md b/CHANGELOG.md
index f6ffda237f..430a5bb586 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,9 +1,10 @@
# Change Log
-## Version 3.next - Yui - in development
+## Version 3.9.0 - Yui - 24th May 2018
### New Features
+* The command `npm run help` will display a friendly list of all the scripts available (run `npm install` first)
* Game has a new property `hasFocus` which is a read-only boolean that lets you know if the window the game is embedded in (including in an iframe) currently has focus or not.
* Game.Config has a new property `autoFocus`, which is `true` by default, and will automatically call `window.focus()` when the game starts.
* Clicking on the canvas will automatically call `window.focus`. This means in games that use keyboard controls if you tab or click away from the game, then click back on it again, the keys will carry on working (where-as before they would remain unfocused)
@@ -55,10 +56,11 @@
### Examples, Documentation and TypeScript
-My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
+Thanks to the work of @hexus we have now documented nearly all of the Math namespace. This is hundreds of functions now covered by full docs and is work we'll continue in the coming weeks.
-@hexus @mikez @wtravO @thomastanck
+My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
+@mikez @wtravO @thomastanck
## Version 3.8.0 - Klein - 16th May 2018
diff --git a/README.md b/README.md
index 4200abef18..88ceec0a9b 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Thousands of developers from indie and multi-national digital agencies, and univ
**Visit:** The [Phaser website](https://phaser.io) and follow on [Twitter](https://twitter.com/phaser_) (#phaserjs)
**Learn:** [API Docs](https://github.com/photonstorm/phaser3-docs), [Support Forum][forum] and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)
**Code:** 700+ [Examples](https://labs.phaser.io) (source available in this [repo][examples])
-**Read:** Weekly [Phaser World](#newsletter) Newsletter
+**Read:** The [Phaser World](#newsletter) Newsletter
**Chat:** [Slack](https://phaser.io/community/slack) and [Discord](https://phaser.io/community/discord)
**Extend:** With [Phaser Plugins](https://phaser.io/shop/plugins)
**Be awesome:** [Support](#support) the future of Phaser
@@ -24,9 +24,13 @@ Grab the source and join the fun!
-> 16th May 2018
+> 24th May 2018
-I'm pleased to announce the immediate availability of Phaser 3.8.0. This release continues our mission of enhancing Phaser 3 as best and as quickly as we can. New in this version is a completely overhauled Plugin system, allowing you to add game and Scene level plugins into Phaser with ease, as well as custom Game Objects and File Types too. This continues the work carried out in 3.7.0, in which we made significant improvements to the Loader, allowing for far more flexible file loading, new loader packs, new file formats, normal map support and more. We've also improved our build process, making Phaser 3 much easier to package outside of Webpack. You'll also find hundreds and hundreds of items now have full documentation too. As always, please check out the [Change Log](#changelog) for comprehensive details about what recent versions contain.
+Our aim has always been to continue our mission of enhancing Phaser 3 as best and as quickly as we can. This means we're releasing often quite significant updates in relatively short periods of time. It also means we're jumping on bug reports as quickly as we can, keeping the issues list total nice and low (the vast majority of the items in there are feature requests now!)
+
+It's been a steady few weeks of development and we're ready with 3.9.0. There are no significant new features, but it contains a lot of important changes and fixes all the same. Highlights include better keyboard focus loss handling, new Camera lerp and follow offset features, new Plugin Manager features for registering custom file types and plenty more. We're also working hard on documentation and hundreds more functions have been completed in this release.
+
+In 3.8.0 we released a completely overhauled Plugin system, allowing you to add game and Scene level plugins into Phaser with ease, as well as custom Game Objects and File Types too. This continues the work carried out in 3.7.0, in which we made significant improvements to the Loader, allowing for far more flexible file loading, new loader packs, new file formats, normal map support and more. We've also improved our build process, making Phaser 3 much easier to package outside of Webpack. You'll also find hundreds and hundreds of items now have full documentation too. As always, please check out the [Change Log](#changelog) for comprehensive details about what recent versions contain.
**About Phaser 3**
@@ -36,7 +40,7 @@ Please understand this is a bleeding-edge and brand new release. There are featu
For us this is just the start of a new chapter in Phaser's life. We will be jumping on bug reports as quickly as we can and releasing new versions rapidly. We've structured v3 in such a way that we can push out point releases as fast as needed.
-We publish our [Developer Logs](https://phaser.io/phaser3/devlog) in the weekly [Phaser World](https://phaser.io/community/newsletter) newsletter. Subscribe to stay in touch and get all the latest news from us and the wider Phaser community.
+We publish our [Developer Logs](https://phaser.io/phaser3/devlog) in the [Phaser World](https://phaser.io/community/newsletter) newsletter. Subscribe to stay in touch and get all the latest news from us and the wider Phaser community.
You can also follow Phaser on [Twitter](https://twitter.com/phaser_) and chat with fellow Phaser devs in our [Slack](https://phaser.io/community/slack) and [Discord](https://phaser.io/community/discord) channels.
@@ -66,11 +70,11 @@ Extra special thanks to our top-tier sponsors: [Orange Games](http://orangegames
![Sponsors](https://phaser.io/images/github/patreon-sponsors-2018-1.png "Top Patreon Sponsors")
-![Weekly Newsletter](https://phaser.io/images/github/div-newsletter.png "Weekly Newsletter")
+![Phaser Newsletter](https://phaser.io/images/github/div-newsletter.png "Phaser Newsletter")
-Every week we publish the [Phaser World](https://phaser.io/community/newsletter) newsletter. It's packed full of the latest Phaser games, tutorials, videos, meet-ups, talks, and more. The newsletter also contains our weekly Development Progress updates which let you know about the new features we're working on.
+We publish the [Phaser World](https://phaser.io/community/newsletter) newsletter. It's packed full of the latest Phaser games, tutorials, videos, meet-ups, talks, and more. The newsletter also contains our weekly Development Progress updates which let you know about the new features we're working on.
Over 120 previous editions can be found on our [Back Issues](https://phaser.io/community/backissues) page.
@@ -98,18 +102,18 @@ npm install phaser
[Phaser is on jsDelivr](https://www.jsdelivr.com/projects/phaser) which is a "super-fast CDN for developers". Include the following in your html:
```html
-
+
```
or the minified version:
```html
-
+
```
### API Documentation
-1. Go to https://photonstorm.github.io/phaser3-docs/index.html to read the docs online.
+1. Go to https://photonstorm.github.io/phaser3-docs/index.html to read the docs online, or ...
2. Checkout the [phaser3-docs](https://github.com/photonstorm/phaser3-docs) repository and then read the documentation by pointing your browser to the local `docs/` folder.
The documentation for Phaser 3 is an on-going project. Please help us by searching the Phaser code for any instance of the string `[description]` and then replacing it with some documentation.
@@ -120,13 +124,11 @@ The documentation for Phaser 3 is an on-going project. Please help us by searchi
They are automatically generated from the jsdoc comments in the Phaser source code. If you wish to help refine them then you must edit the Phaser jsdoc blocks directly. You can find more details, including the source to the conversion tool we wrote in the Docs repo.
-As soon as we're happy with the accuracy of the TS defs we'll merge them into the main repo, for now, please download them from the docs repo, linked above, and add them to your project.
+As soon as we're happy with the accuracy of the TS defs we'll merge them into the main repo, for now, please download them from the docs repo, linked above, and add them to your project. When we release new versions of Phaser we publish new TS defs too.
### Webpack
-We use Webpack to build Phaser and we take advantage of several features specific to Webpack to do this, including `raw-loader` to handle our shader files and build-time flags for renderer swapping.
-
-If you wish to use Webpack with Phaser then please use our [Phaser 3 Project Template](https://github.com/photonstorm/phaser3-project-template) as it's already set-up to handle the build conditions Phaser needs.
+We use Webpack to build Phaser and we take advantage of its conditional build flag feature to handle renderer swapping. If you wish to use Webpack with Phaser then please use our [Phaser 3 Project Template](https://github.com/photonstorm/phaser3-project-template) as it's already set-up to handle the build conditions Phaser needs. Recent changes to our build steps mean you should now be able to us any other packager, like Parcel, without any config changes.
### License
@@ -245,7 +247,7 @@ Run it in your browser and you'll see the following:
This is a tiny example, and there are hundreds more for you to explore, but hopefully it shows how expressive and quick Phaser is to use. With just a few easily readable lines of code, we've got something pretty impressive up on screen!
-Subscribe to our weekly newsletter for further tutorials and examples.
+Subscribe to our newsletter for further tutorials and examples.
![Building Phaser](https://phaser.io/images/github/div-building-phaser.png "Building Phaser")
@@ -259,67 +261,74 @@ Phaser 3 is built using Webpack and we take advantage of the Webpack definePlugi
If you wish to build Phaser 3 from source, ensure you have the required packages by cloning the repository and then running `npm install`.
-You can then run `webpack` to create a development build in the `build` folder which includes source maps for local testing. You can also run `npm run dist` to create a minified packaged build in the `dist` folder.
+You can then run `webpack` to create a development build in the `build` folder which includes source maps for local testing. You can also `npm run dist` to create a minified packaged build in the `dist` folder. For a list of all commands available use `npm run help`.
![Change Log](https://phaser.io/images/github/div-change-log.png "Change Log")
-## Version 3.8.0 - Klein - 16th May 2018
-
-### New Plugin Manager
-
-New in this release is a revamped Plugin Manager. Phaser has always used plugins extensively internally but this release opens them up and builds in a lot of new features making them easy for you to both create and digest.
-
-There is a new `Phaser.Plugins` namespace in which the classes live. The functions of the old PluginManager have moved to the new PluginCache and the PluginManager, which is available under `this.plugins` from all Scenes by default, now allows you to install and access any plugin.
+# Change Log
-Plugins are split into two different types: A Global Plugin and a Scene Plugin.
-
-A **Global Plugin** is a plugin that lives within the Plugin Manager rather than a Scene. You can get access to it by calling `PluginManager.get` and providing a key. Any Scenes that request a plugin in this way all get access to the same plugin instance, allowing you to use a single plugin across multiple Scenes.
-
-A **Scene Plugin** is a plugin dedicated to running within a Scene. These are different to Global Plugins in that their instances do not live within the Plugin Manager, but within the Scene Systems class instead. And that every Scene created is given its own unique instance of a Scene Plugin. Examples of core Scene Plugins include the Input Plugin, the Tween Plugin and the physics Plugins.
-
-Plugins can now be installed in 3 different ways: 1) You can preload them, using the `load.plugin` and the new `load.scenePlugin` methods. This will allow you to load externally hosted plugins into your game, or pull down a plugin dynamically at run-time. 2) You can install global and scene plugins in your Game Configuration. The plugin code can be bundled with your game code into a single bundle. By specifying plugins in the game config they're instantly available as soon as your game boots. Finally, you can install plugins at run-time directly from within a Scene.
-
-Plugins can also create brand new Game Objects and File Types, which install themselves into the respective factories. This means you can now write a plugin that adds a new file type and Game Object in a single package.
-
-The new Plugin Manager and associated classes are 100% covered by JSDocs and there are stacks of new examples in the `plugins` folder in the Phaser 3 Labs too, so please dig in and have a play with these powerful new things!
+## Version 3.9.0 - Yui - 24th May 2018
### New Features
-* You can pass in your own `canvas` and `context` elements in your Game Config and Phaser will use those to render with instead of creating its own. This also allows you to pass in a WebGL 2 context. Fix #3653 (thanks @tgrajewski)
-* WebGLRenderer.config has a new property `maxTextures` which is derived from `gl.MAX_TEXTURE_IMAGE_UNITS`, you can get it via the new method `getMaxTextures()`.
-* WebGLRenderer.config has a new property `maxTextureSize` which is derived from `gl.MAX_TEXTURE_SIZE`, you can get it via the new method `getMaxTextureSize()`
-* WebGLRenderer has a new property `compression` which holds the browser / devices compressed texture support gl extensions, which is populated during `init`.
-* When calling `generateFrameNames` to define an animation from a texture atlas you can now leave out all of the config properties and it will create an animation using every frame found in the atlas. Please understand you've no control over the sequence of these frames if you do this and it's entirely dictated by the json data (thanks @Aram19)
-* The keycodes for 0 to 9 on the numeric keypad have been added. You can now use them in events, i.e. `this.input.keyboard.on('keydown_NUMPAD_ZERO')` (thanks @Gaushao)
-* All Game Objects have a new method `setRandomPosition` which will randomly position them anywhere within the defined area, or if no area is given, anywhere within the game size.
+* The command `npm run help` will display a friendly list of all the scripts available (run `npm install` first)
+* Game has a new property `hasFocus` which is a read-only boolean that lets you know if the window the game is embedded in (including in an iframe) currently has focus or not.
+* Game.Config has a new property `autoFocus`, which is `true` by default, and will automatically call `window.focus()` when the game starts.
+* Clicking on the canvas will automatically call `window.focus`. This means in games that use keyboard controls if you tab or click away from the game, then click back on it again, the keys will carry on working (where-as before they would remain unfocused)
+* Arcade Physics Body has a new method `setAllowDrag` which toggles the `allowDrag` property (thanks @samme)
+* Arcade Physics Body has a new method `setAllowGravity` which toggles the `allowGravity` property (thanks @samme)
+* Arcade Physics Body has a new method `setAllowRotation` which toggles the `allowRotation` property (thanks @samme)
+* Arcade Physics Group Config has 3 new properties you can use: `allowDrag`, `allowGravity` and `allowRotation` (thanks @samme)
+* PluginManager.registerFileType has a new property `addToScene` which allows you to inject the new file type into the LoaderPlugin of the given Scene. You could use this to add the file type into the Scene in which it was loaded.
+* PluginManager.install has a new property `mapping`. This allows you to give a Global Plugin a property key, so that it is automatically injected into any Scenes as a Scene level instance. This allows you to have a single global plugin running in the PluginManager, that is injected into every Scene automatically.
+* Camera.lerp has been implemented and allows you to specify the linear interpolation value used when following a target, to provide for smoothed camera tracking.
+* Camera.setLerp is a chainable method to set the Camera.lerp property.
+* Camera.followOffset is a new property that allows you to specify an offset from the target position that the camera is following (thanks @hermbit)
+* Camera.setFollowOffset is a chainable method to set the Camera.followOffset property.
+* Camera.startFollow has 4 new arguments: `lerpX` and `lerpY` which allow you to set the interpolation value used when following the target. The default is 1 (no interpolation) and `offsetX` and `offsetY` which allow you to set the follow offset values.
+* Camera.startFollow will now immediately set the camera `scrollX` and `scrollY` values to be that of the target position to avoid a large initial lerps during the first few preUpdates.
+* Math.Interpolation.SmoothStep is a new method that will return the smooth step interpolated value based on the given percentage and left and right edges.
+* Math.Interpolation.SmootherStep is a new method that will return the smoother step interpolated value based on the given percentage and left and right edges.
### Updates
-* Game.step now emits a `prestep` event, which some of the global systems hook in to, like Sound and Input. You can use it to perform pre-step tasks, ideally from plugins.
-* Game.step now emits a `step` event. This is emitted once per frame. You can hook into it from plugins or code that exists outside of a Scene.
-* Game.step now emits a `poststep` event. This is the last chance you get to do things before the render process begins.
-* Optimized TextureTintPipeline.drawBlitter so it skips bobs that have alpha of zero and only calls `setTexture2D` if the bob sourceIndex has changed, previously it called it for every single bob.
-* Game.context used to be undefined if running in WebGL. It is now set to be the `WebGLRenderingContext` during WebGLRenderer.init. If you provided your own custom context, it is set to this instead.
-* The Game `onStepCallback` has been removed. You can now listen for the new step events instead.
-* Phaser.EventEmitter was incorrectly namespaced, it's now only available under Phaser.Events.EventEmitter (thanks Tigran)
+* Container.setInteractive can now be called without any arguments as long as you have called Container.setSize first (thanks rex)
+* Bob.reset will now reset the position, frame, flip, visible and alpha values of the Bob.
+* VisibilityHandler now takes a game instance as its sole argument, instead of an event emitter.
+* PluginManager.createEntry is a new private method to create a plugin entry and return it. This avoids code duplication in several other methods, which now use this instead.
+* The Plugin File Type has a new optional argument `mapping`, which allows a global plugin to be injected into a Scene as a reference.
+* TileSprite.destroy has been renamed to `preDestroy` to take advantage of the preDestroy callback system.
+* RenderTexture.destroy has been renamed to `preDestroy` to take advantage of the preDestroy callback system.
+* Group.destroy now respects the `ignoreDestroy` property.
+* Graphics.preDestroy now clears the command buffer array.
+* Container addHandler will now remove a child's Scene shutdown listener and only listens to `destroy` once.
+* Container removeHandler will re-instate a child's Scene shutdown listener.
+* Container preDestroy now handles the pre-destroy calls, such as clearing the container.
+* Blitter preDestroy will now clear the children List and renderList.
+* The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437 (thanks @NebSehemvi)
### Bug Fixes
-* The Script File type in the Loader didn't create itself correctly as it was missing an argument (thanks @TadejZupancic)
-* The Plugin File type in the Loader didn't create itself correctly as it was missing an argument.
-* WebAudioSoundManager.unlock will now check if `document.body` is available before setting the listeners on it. Fixes old versions of Firefox, apparently. #3649 (thanks @squilibob)
-* Utils.Array.BringToTop failed to move the penultimate item in an array due to an index error. Fix #3658 (thanks @agar3s)
-* The Headless renderer was broken due to an invalid access during TextureSource.init.
-* Animation.yoyo was ignored when calculating the next frame to advance to, breaking the yoyo effect. It now yoyos properly (thanks Tomas)
-* Corrected an error in Container.getBoundsTransformMatrix that called a missing method, causing a `getBounds` on a nested container to fail. Fix #3624 (thanks @poasher)
-* Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this.
+* PluginManager.destroy didn't reference the plugin correctly, throwing an Uncaught TypeError if you tried to destroy a game instance. Fix #3668 (thanks @Telokis)
+* If a Container and its child were both input enabled they will now be sorted correctly in the InputPlugin (thanks rex)
+* Fix TypeError when colliding a Group as the only argument in Arcade Physics. Fix #3665 (thanks @samme)
+* The Particle tint value was incorrectly calculated, causing the color channels to be inversed. Fix #3643 (thanks @rgk)
+* All Game Objects that were in Containers were being destroyed twice when a Scene was shutdown. Although not required it still worked in most cases, except with TileSprites. TileSprites specifically have been hardened against this now but all Game Objects inside Containers now have a different event flow, stopping them from being destroyed twice (thanks @laptou @PaNaVTEC)
+* Camera.cull will now accurately return only the Game Objects in the camera view, instead of them all. Fix #3646 (thanks @KingCosmic @Yora)
+* The `dragend` event would be broadcast even if the drag distance or drag time thresholds were not met. Fix #3686 (thanks @RollinSafary)
+* Restarting a Tween immediately after creating it, without it having first started, would cause it to get stuck permanently in the Tween Managers add queue (thanks @Antriel @zacharysarette)
+* Setting an existing Game Object as a static Arcade Physics body would sometimes incorrectly pick-up the dimensions of the object, such as with TileSprites. Fix #3690 (thanks @fariazz)
+* Interactive Objects were not fully removed from the Input Plugin when cleared, causing the internal list array to grow. Fix #3645 (thanks @tjb295 for the fix and @rexrainbow for the issue)
+* Camera.shake would not effect dynamic tilemap layers. Fix #3669 (thanks @kainage)
### Examples, Documentation and TypeScript
+Thanks to the work of @hexus we have now documented nearly all of the Math namespace. This is hundreds of functions now covered by full docs and is work we'll continue in the coming weeks.
+
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
-@samme @mzguimaraes @NaNdreas @Matthew-Herman @melissaelopez @TheColorRed
+@mikez @wtravO @thomastanck
Please see the complete [Change Log](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md) for previous releases.
@@ -352,8 +361,8 @@ All rights reserved.
"Above all, video games are meant to be just one thing: fun. Fun for everyone." - Satoru Iwata
-[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.8.0/phaser.js
-[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.8.0/phaser.min.js
+[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.9.0/phaser.js
+[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.9.0/phaser.min.js
[clone-http]: https://github.com/photonstorm/phaser.git
[clone-ssh]: git@github.com:photonstorm/phaser.git
[clone-ghwin]: github-windows://openRepo/https://github.com/photonstorm/phaser
diff --git a/dist/phaser-arcade-physics.js b/dist/phaser-arcade-physics.js
index cd04f17a8b..59457f889d 100644
--- a/dist/phaser-arcade-physics.js
+++ b/dist/phaser-arcade-physics.js
@@ -76,7 +76,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/
/******/
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 1021);
+/******/ return __webpack_require__(__webpack_require__.s = 1023);
/******/ })
/************************************************************************/
/******/ ([
@@ -1132,14 +1132,16 @@ var Class = __webpack_require__(0);
/**
* @typedef {object} Vector2Like
*
- * @property {number} x - [description]
- * @property {number} y - [description]
+ * @property {number} x - The x component.
+ * @property {number} y - The y component.
*/
/**
* @classdesc
* A representation of a vector in 2D space.
*
+ * A two-component vector.
+ *
* @class Vector2
* @memberOf Phaser.Math
* @constructor
@@ -1202,7 +1204,7 @@ var Vector2 = new Class({
},
/**
- * Copy the components of a given vector, into this Vector.
+ * Copy the components of a given Vector into this Vector.
*
* @method Phaser.Math.Vector2#copy
* @since 3.0.0
@@ -1238,7 +1240,7 @@ var Vector2 = new Class({
},
/**
- * Set the x and y components of the this Vector to the given x and y values.
+ * Set the `x` and `y` components of the this Vector to the given `x` and `y` values.
*
* @method Phaser.Math.Vector2#set
* @since 3.0.0
@@ -1296,7 +1298,9 @@ var Vector2 = new Class({
},
/**
- * Check if this Vector is equal to a given Vector.
+ * Check whether this Vector is equal to a given Vector.
+ *
+ * Performs a strict equality check against each Vector's components.
*
* @method Phaser.Math.Vector2#equals
* @since 3.0.0
@@ -1333,7 +1337,7 @@ var Vector2 = new Class({
},
/**
- * Add a given Vector to this Vector. Addition is element-wise.
+ * Add a given Vector to this Vector. Addition is component-wise.
*
* @method Phaser.Math.Vector2#add
* @since 3.0.0
@@ -1351,7 +1355,7 @@ var Vector2 = new Class({
},
/**
- * Subtract the given Vector from this Vector. Subtraction is element-wise.
+ * Subtract the given Vector from this Vector. Subtraction is component-wise.
*
* @method Phaser.Math.Vector2#subtract
* @since 3.0.0
@@ -1369,7 +1373,9 @@ var Vector2 = new Class({
},
/**
- * Perform an element-wise multiplication between this Vector and the given Vector.
+ * Perform a component-wise multiplication between this Vector and the given Vector.
+ *
+ * Multiplies this Vector by the given Vector.
*
* @method Phaser.Math.Vector2#multiply
* @since 3.0.0
@@ -1413,7 +1419,9 @@ var Vector2 = new Class({
},
/**
- * Perform an element-wise division between this Vector and the given Vector. This Vector is divided by the given Vector.
+ * Perform a component-wise division between this Vector and the given Vector.
+ *
+ * Divides this Vector by the given Vector.
*
* @method Phaser.Math.Vector2#divide
* @since 3.0.0
@@ -1431,7 +1439,7 @@ var Vector2 = new Class({
},
/**
- * Negate the x and y components of this Vector.
+ * Negate the `x` and `y` components of this Vector.
*
* @method Phaser.Math.Vector2#negate
* @since 3.0.0
@@ -1447,14 +1455,14 @@ var Vector2 = new Class({
},
/**
- * Calculate the distance between this Vector, and the given Vector.
+ * Calculate the distance between this Vector and the given Vector.
*
* @method Phaser.Math.Vector2#distance
* @since 3.0.0
*
* @param {Phaser.Math.Vector2} src - The Vector to calculate the distance to.
*
- * @return {number} The distance to the given Vector from this Vector.
+ * @return {number} The distance from this Vector to the given Vector.
*/
distance: function (src)
{
@@ -1465,14 +1473,14 @@ var Vector2 = new Class({
},
/**
- * The distance between this Vector, and the given Vector, squared.
+ * Calculate the distance between this Vector, and the given Vector, squared.
*
* @method Phaser.Math.Vector2#distanceSq
* @since 3.0.0
*
* @param {Phaser.Math.Vector2} src - The Vector to calculate the distance to.
*
- * @return {number} The distance to this Vector and the given Vector, squared.
+ * @return {number} The distance from this Vector to the given Vector, squared.
*/
distanceSq: function (src)
{
@@ -1483,7 +1491,7 @@ var Vector2 = new Class({
},
/**
- * The length (or magnitude) of this Vector.
+ * Calculate the length (or magnitude) of this Vector.
*
* @method Phaser.Math.Vector2#length
* @since 3.0.0
@@ -1515,7 +1523,9 @@ var Vector2 = new Class({
},
/**
- * Normalise this Vector, that is, make it a unit length vector (magnitude of 1) in the same direction.
+ * Normalize this Vector.
+ *
+ * Makes the vector a unit length vector (magnitude of 1) in the same direction.
*
* @method Phaser.Math.Vector2#normalize
* @since 3.0.0
@@ -1531,6 +1541,7 @@ var Vector2 = new Class({
if (len > 0)
{
len = 1 / Math.sqrt(len);
+
this.x = x * len;
this.y = y * len;
}
@@ -1539,10 +1550,7 @@ var Vector2 = new Class({
},
/**
- * Right-hand normalize (make unit length) this Vector
- */
- /**
- * [description]
+ * Right-hand normalize (make unit length) this Vector.
*
* @method Phaser.Math.Vector2#normalizeRightHand
* @since 3.0.0
@@ -1560,14 +1568,14 @@ var Vector2 = new Class({
},
/**
- * Perform a dot product between this Vector and the given Vector
+ * Calculate the dot product of this Vector and the given Vector.
*
* @method Phaser.Math.Vector2#dot
* @since 3.0.0
*
* @param {Phaser.Math.Vector2} src - The Vector2 to dot product with this Vector2.
*
- * @return {number} The result of the dot product
+ * @return {number} The dot product of this Vector and the given Vector.
*/
dot: function (src)
{
@@ -1590,13 +1598,15 @@ var Vector2 = new Class({
},
/**
- * [description]
+ * Linearly interpolate between this Vector and the given Vector.
+ *
+ * Interpolates this Vector towards the given Vector.
*
* @method Phaser.Math.Vector2#lerp
* @since 3.0.0
*
- * @param {Phaser.Math.Vector2} src - [description]
- * @param {number} [t=0] - [description]
+ * @param {Phaser.Math.Vector2} src - The Vector2 to interpolate towards.
+ * @param {number} [t=0] - The interpolation percentage, between 0 and 1.
*
* @return {Phaser.Math.Vector2} This Vector2.
*/
@@ -1614,12 +1624,12 @@ var Vector2 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Matrix.
*
* @method Phaser.Math.Vector2#transformMat3
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} mat - [description]
+ * @param {Phaser.Math.Matrix3} mat - The Matrix3 to transform this Vector2 with.
*
* @return {Phaser.Math.Vector2} This Vector2.
*/
@@ -1636,12 +1646,12 @@ var Vector2 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Matrix.
*
* @method Phaser.Math.Vector2#transformMat4
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} mat - [description]
+ * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector2 with.
*
* @return {Phaser.Math.Vector2} This Vector2.
*/
@@ -2712,10 +2722,10 @@ module.exports = GameObjectCreator;
var Class = __webpack_require__(0);
var Contains = __webpack_require__(31);
-var GetPoint = __webpack_require__(131);
-var GetPoints = __webpack_require__(292);
+var GetPoint = __webpack_require__(132);
+var GetPoints = __webpack_require__(294);
var Line = __webpack_require__(95);
-var Random = __webpack_require__(151);
+var Random = __webpack_require__(152);
/**
* @classdesc
@@ -3208,7 +3218,7 @@ module.exports = Rectangle;
module.exports = {
Alpha: __webpack_require__(582),
- Animation: __webpack_require__(300),
+ Animation: __webpack_require__(302),
BlendMode: __webpack_require__(581),
ComputedSize: __webpack_require__(580),
Depth: __webpack_require__(579),
@@ -3217,7 +3227,7 @@ module.exports = {
Mask: __webpack_require__(576),
MatrixStack: __webpack_require__(575),
Origin: __webpack_require__(574),
- Pipeline: __webpack_require__(289),
+ Pipeline: __webpack_require__(291),
ScaleMode: __webpack_require__(573),
ScrollFactor: __webpack_require__(572),
Size: __webpack_require__(571),
@@ -3241,7 +3251,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RND = __webpack_require__(295);
+var RND = __webpack_require__(297);
var MATH_CONST = {
@@ -3570,7 +3580,7 @@ var CONST = __webpack_require__(17);
var GetFastValue = __webpack_require__(1);
var GetURL = __webpack_require__(106);
var MergeXHRSettings = __webpack_require__(105);
-var XHRLoader = __webpack_require__(165);
+var XHRLoader = __webpack_require__(166);
var XHRSettings = __webpack_require__(74);
/**
@@ -4178,7 +4188,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
- VERSION: '3.8.0',
+ VERSION: '3.9.0',
BlendModes: __webpack_require__(50),
@@ -4393,7 +4403,7 @@ module.exports = GetTilesWithin;
*/
var CONST = __webpack_require__(20);
-var Smoothing = __webpack_require__(127);
+var Smoothing = __webpack_require__(128);
// The pool into which the canvas elements are placed.
var pool = [];
@@ -4645,6 +4655,36 @@ module.exports = CanvasPool();
/***/ }),
/* 23 */
+/***/ (function(module, exports) {
+
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+/**
+ * Force a value within the boundaries by clamping it to the range `min`, `max`.
+ *
+ * @function Phaser.Math.Clamp
+ * @since 3.0.0
+ *
+ * @param {number} value - The value to be clamped.
+ * @param {number} min - The minimum bounds.
+ * @param {number} max - The maximum bounds.
+ *
+ * @return {number} The clamped value.
+ */
+var Clamp = function (value, min, max)
+{
+ return Math.max(min, Math.min(max, value));
+};
+
+module.exports = Clamp;
+
+
+/***/ }),
+/* 24 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -4796,36 +4836,6 @@ var BuildGameObject = function (scene, gameObject, config)
module.exports = BuildGameObject;
-/***/ }),
-/* 24 */
-/***/ (function(module, exports) {
-
-/**
- * @author Richard Davey
- * @copyright 2018 Photon Storm Ltd.
- * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
- */
-
-/**
- * Force a value within the boundaries by clamping it to the range `min`, `max`.
- *
- * @function Phaser.Math.Clamp
- * @since 3.0.0
- *
- * @param {number} value - The value to be clamped.
- * @param {number} min - The minimum bounds.
- * @param {number} max - The maximum bounds.
- *
- * @return {number} The clamped value.
- */
-var Clamp = function (value, min, max)
-{
- return Math.max(min, Math.min(max, value));
-};
-
-module.exports = Clamp;
-
-
/***/ }),
/* 25 */
/***/ (function(module, exports) {
@@ -5383,7 +5393,7 @@ module.exports = SafeRange;
*/
var Class = __webpack_require__(0);
-var GetColor = __webpack_require__(149);
+var GetColor = __webpack_require__(150);
var GetColor32 = __webpack_require__(284);
/**
@@ -6017,7 +6027,7 @@ module.exports = Clone;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var SpriteRender = __webpack_require__(547);
+var SpriteRender = __webpack_require__(549);
/**
* @classdesc
@@ -6758,16 +6768,16 @@ module.exports = DegToRad;
*/
/**
- * [description]
+ * Wrap the given `value` between `min` and `max.
*
* @function Phaser.Math.Wrap
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} min - [description]
- * @param {number} max - [description]
+ * @param {number} value - The value to wrap.
+ * @param {number} min - The minimum value.
+ * @param {number} max - The maximum value.
*
- * @return {number} [description]
+ * @return {number} The wrapped value.
*/
var Wrap = function (value, min, max)
{
@@ -6789,7 +6799,7 @@ module.exports = Wrap;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetTileAt = __webpack_require__(136);
+var GetTileAt = __webpack_require__(137);
var GetTilesWithin = __webpack_require__(21);
/**
@@ -7742,7 +7752,7 @@ function init ()
module.exports = init();
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(528)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(530)))
/***/ }),
/* 57 */
@@ -7755,17 +7765,17 @@ module.exports = init();
*/
/**
- * [description]
+ * Calculate the distance between two sets of coordinates (points).
*
* @function Phaser.Math.Distance.Between
* @since 3.0.0
*
- * @param {number} x1 - [description]
- * @param {number} y1 - [description]
- * @param {number} x2 - [description]
- * @param {number} y2 - [description]
+ * @param {number} x1 - The x coordinate of the first point.
+ * @param {number} y1 - The y coordinate of the first point.
+ * @param {number} x2 - The x coordinate of the second point.
+ * @param {number} y2 - The y coordinate of the second point.
*
- * @return {number} [description]
+ * @return {number} The distance between each point.
*/
var DistanceBetween = function (x1, y1, x2, y2)
{
@@ -8100,7 +8110,7 @@ module.exports = GetBoolean;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var EaseMap = __webpack_require__(438);
+var EaseMap = __webpack_require__(440);
/**
* [description]
@@ -8401,7 +8411,7 @@ var TransformMatrix = new Class({
* @method Phaser.GameObjects.Components.TransformMatrix#loadIdentity
* @since 3.0.0
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
loadIdentity: function ()
{
@@ -8426,7 +8436,7 @@ var TransformMatrix = new Class({
* @param {number} x - [description]
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
translate: function (x, y)
{
@@ -8447,7 +8457,7 @@ var TransformMatrix = new Class({
* @param {number} x - [description]
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
scale: function (x, y)
{
@@ -8469,7 +8479,7 @@ var TransformMatrix = new Class({
*
* @param {number} radian - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
rotate: function (radian)
{
@@ -8497,7 +8507,7 @@ var TransformMatrix = new Class({
*
* @param {Phaser.GameObjects.Components.TransformMatrix} rhs - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
multiply: function (rhs)
{
@@ -8541,7 +8551,7 @@ var TransformMatrix = new Class({
* @param {number} tx - The Translate X value.
* @param {number} ty - The Translate Y value.
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
transform: function (a, b, c, d, tx, ty)
{
@@ -8601,7 +8611,7 @@ var TransformMatrix = new Class({
* @method Phaser.GameObjects.Components.TransformMatrix#invert
* @since 3.0.0
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
invert: function ()
{
@@ -8639,7 +8649,7 @@ var TransformMatrix = new Class({
* @param {number} tx - [description]
* @param {number} ty - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
setTransform: function (a, b, c, d, tx, ty)
{
@@ -8710,7 +8720,7 @@ var TransformMatrix = new Class({
* @param {number} scaleX - [description]
* @param {number} scaleY - [description]
*
- * @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
+ * @return {this} This TransformMatrix.
*/
applyITRS: function (x, y, rotation, scaleX, scaleY)
{
@@ -8759,7 +8769,7 @@ module.exports = TransformMatrix;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
/**
* Return a value based on the range between `min` and `max` and the percentage given.
@@ -8768,10 +8778,10 @@ var Clamp = __webpack_require__(24);
* @since 3.0.0
*
* @param {float} percent - A value between 0 and 1 representing the percentage.
- * @param {number} min - [description]
- * @param {number} [max] - [description]
+ * @param {number} min - The minimum value.
+ * @param {number} [max] - The maximum value.
*
- * @return {number} [description]
+ * @return {number} The value that is `percent` percent between `min` and `max`.
*/
var FromPercent = function (percent, min, max)
{
@@ -8795,7 +8805,7 @@ module.exports = FromPercent;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
-var Rectangle = __webpack_require__(374);
+var Rectangle = __webpack_require__(376);
/**
* @classdesc
@@ -9766,10 +9776,10 @@ module.exports = CONST;
var Class = __webpack_require__(0);
var Contains = __webpack_require__(59);
-var GetPoint = __webpack_require__(225);
-var GetPoints = __webpack_require__(224);
+var GetPoint = __webpack_require__(226);
+var GetPoints = __webpack_require__(225);
var Line = __webpack_require__(95);
-var Random = __webpack_require__(150);
+var Random = __webpack_require__(151);
/**
* @classdesc
@@ -10202,7 +10212,7 @@ module.exports = Triangle;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var ImageRender = __webpack_require__(446);
+var ImageRender = __webpack_require__(448);
/**
* @classdesc
@@ -10763,7 +10773,7 @@ var GetAdvancedValue = __webpack_require__(10);
var GetBoolean = __webpack_require__(61);
var GetEaseFunction = __webpack_require__(62);
var GetNewValue = __webpack_require__(73);
-var GetProps = __webpack_require__(160);
+var GetProps = __webpack_require__(161);
var GetTargets = __webpack_require__(101);
var GetValue = __webpack_require__(4);
var GetValueOp = __webpack_require__(100);
@@ -11033,7 +11043,7 @@ module.exports = XHRSettings;
// Based on the routine from {@link http://jsfiddle.net/MrPolywhirl/NH42z/}.
var CheckMatrix = __webpack_require__(113);
-var TransposeMatrix = __webpack_require__(172);
+var TransposeMatrix = __webpack_require__(173);
/**
* [description]
@@ -11603,10 +11613,10 @@ var NOOP = __webpack_require__(3);
/**
* @callback EachActiveSoundCallback
*
- * @param {Phaser.Sound.BaseSoundManager} manager - [description]
- * @param {Phaser.Sound.BaseSound} sound - [description]
- * @param {number} index - [description]
- * @param {Phaser.Sound.BaseSound[]} sounds - [description]
+ * @param {Phaser.Sound.BaseSoundManager} manager - The SoundManager
+ * @param {Phaser.Sound.BaseSound} sound - The current active Sound
+ * @param {number} index - The index of the current active Sound
+ * @param {Phaser.Sound.BaseSound[]} sounds - All sounds
*/
/**
@@ -12117,7 +12127,7 @@ var BaseSoundManager = new Class({
* @private
* @since 3.0.0
*
- * @param {EachActiveSoundCallback} callback - Callback function. (sound: ISound, index: number, array: ISound[]) => void
+ * @param {EachActiveSoundCallback} callback - Callback function. (manager: Phaser.Sound.BaseSoundManager, sound: Phaser.Sound.BaseSound, index: number, sounds: Phaser.Manager.BaseSound[]) => void
* @param {*} [scope] - Callback context.
*/
forEachActiveSound: function (callback, scope)
@@ -14240,16 +14250,18 @@ var Class = __webpack_require__(0);
/**
* @classdesc
- * [description]
+ * A representation of a vector in 3D space.
+ *
+ * A three-component vector.
*
* @class Vector3
* @memberOf Phaser.Math
* @constructor
* @since 3.0.0
*
- * @param {number} [x] - [description]
- * @param {number} [y] - [description]
- * @param {number} [z] - [description]
+ * @param {number} [x] - The x component of this Vector.
+ * @param {number} [y] - The y component of this Vector.
+ * @param {number} [z] - The z component of this Vector.
*/
var Vector3 = new Class({
@@ -14265,6 +14277,7 @@ var Vector3 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.x = 0;
/**
* The y component of this Vector.
@@ -14274,6 +14287,7 @@ var Vector3 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.y = 0;
/**
* The z component of this Vector.
@@ -14283,6 +14297,7 @@ var Vector3 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.z = 0;
if (typeof x === 'object')
{
@@ -14299,12 +14314,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Set this Vector to point up.
+ *
+ * Sets the y component of the vector to 1, and the others to 0.
*
* @method Phaser.Math.Vector3#up
* @since 3.0.0
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
up: function ()
{
@@ -14316,7 +14333,7 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Make a clone of this Vector3.
*
* @method Phaser.Math.Vector3#clone
* @since 3.0.0
@@ -14337,7 +14354,7 @@ var Vector3 = new Class({
* @param {Phaser.Math.Vector3} a - [description]
* @param {Phaser.Math.Vector3} b - [description]
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
crossVectors: function (a, b)
{
@@ -14356,7 +14373,9 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Check whether this Vector is equal to a given Vector.
+ *
+ * Performs a strict equality check against each Vector's components.
*
* @method Phaser.Math.Vector3#equals
* @since 3.0.0
@@ -14371,14 +14390,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Copy the components of a given Vector into this Vector.
*
* @method Phaser.Math.Vector3#copy
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} src - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} src - The Vector to copy the components from.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
copy: function (src)
{
@@ -14390,16 +14409,16 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Set the `x`, `y`, and `z` components of this Vector to the given `x`, `y`, and `z` values.
*
* @method Phaser.Math.Vector3#set
* @since 3.0.0
*
- * @param {(number|object)} x - [description]
- * @param {number} [y] - [description]
- * @param {number} [z] - [description]
+ * @param {(number|object)} x - The x value to set for this Vector, or an object containing x, y and z components.
+ * @param {number} [y] - The y value to set for this Vector.
+ * @param {number} [z] - The z value to set for this Vector.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
set: function (x, y, z)
{
@@ -14420,14 +14439,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Add a given Vector to this Vector. Addition is component-wise.
*
* @method Phaser.Math.Vector3#add
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to add to this Vector.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
add: function (v)
{
@@ -14439,14 +14458,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Subtract the given Vector from this Vector. Subtraction is component-wise.
*
* @method Phaser.Math.Vector3#subtract
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to subtract from this Vector.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
subtract: function (v)
{
@@ -14458,14 +14477,16 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Perform a component-wise multiplication between this Vector and the given Vector.
+ *
+ * Multiplies this Vector by the given Vector.
*
* @method Phaser.Math.Vector3#multiply
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to multiply this Vector by.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
multiply: function (v)
{
@@ -14477,14 +14498,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Scale this Vector by the given value.
*
* @method Phaser.Math.Vector3#scale
* @since 3.0.0
*
- * @param {float} scale - [description]
+ * @param {number} scale - The value to scale this Vector by.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
scale: function (scale)
{
@@ -14505,14 +14526,16 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Perform a component-wise division between this Vector and the given Vector.
+ *
+ * Divides this Vector by the given Vector.
*
* @method Phaser.Math.Vector3#divide
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to divide this Vector by.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
divide: function (v)
{
@@ -14524,12 +14547,12 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Negate the `x`, `y` and `z` components of this Vector.
*
* @method Phaser.Math.Vector3#negate
* @since 3.0.0
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
negate: function ()
{
@@ -14541,14 +14564,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Calculate the distance between this Vector and the given Vector.
*
* @method Phaser.Math.Vector3#distance
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to calculate the distance to.
*
- * @return {number} [description]
+ * @return {number} The distance from this Vector to the given Vector.
*/
distance: function (v)
{
@@ -14560,14 +14583,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Calculate the distance between this Vector, and the given Vector, squared.
*
* @method Phaser.Math.Vector3#distanceSq
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to calculate the distance to.
*
- * @return {number} [description]
+ * @return {number} The distance from this Vector to the given Vector, squared.
*/
distanceSq: function (v)
{
@@ -14579,12 +14602,12 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Calculate the length (or magnitude) of this Vector.
*
* @method Phaser.Math.Vector3#length
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The length of this Vector.
*/
length: function ()
{
@@ -14596,12 +14619,12 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Calculate the length of this Vector squared.
*
* @method Phaser.Math.Vector3#lengthSq
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The length of this Vector, squared.
*/
lengthSq: function ()
{
@@ -14613,14 +14636,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Normalize this Vector.
+ *
+ * Makes the vector a unit length vector (magnitude of 1) in the same direction.
*
* @method Phaser.Math.Vector3#normalize
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - [description]
- *
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
normalize: function ()
{
@@ -14642,12 +14665,12 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Calculate the dot product of this Vector and the given Vector.
*
* @method Phaser.Math.Vector3#dot
* @since 3.0.0
*
- * @param {Phaser.Math.Vector3} v - [description]
+ * @param {Phaser.Math.Vector3} v - The Vector3 to dot product with this Vector3.
*
* @return {number} [description]
*/
@@ -14664,7 +14687,7 @@ var Vector3 = new Class({
*
* @param {Phaser.Math.Vector3} v - [description]
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
cross: function (v)
{
@@ -14683,15 +14706,17 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Linearly interpolate between this Vector and the given Vector.
+ *
+ * Interpolates this Vector towards the given Vector.
*
* @method Phaser.Math.Vector3#lerp
* @since 3.0.0
*
- * @param {Phaser.Math.Vector3} v - [description]
- * @param {number} [t=0] - [description]
+ * @param {Phaser.Math.Vector3} v - The Vector3 to interpolate towards.
+ * @param {number} [t=0] - The interpolation percentage, between 0 and 1.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
lerp: function (v, t)
{
@@ -14709,14 +14734,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Matrix.
*
* @method Phaser.Math.Vector3#transformMat3
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} mat - [description]
+ * @param {Phaser.Math.Matrix3} mat - The Matrix3 to transform this Vector3 with.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
transformMat3: function (mat)
{
@@ -14733,14 +14758,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Matrix.
*
* @method Phaser.Math.Vector3#transformMat4
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} mat - [description]
+ * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector3 with.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
transformMat4: function (mat)
{
@@ -14762,9 +14787,9 @@ var Vector3 = new Class({
* @method Phaser.Math.Vector3#transformCoordinates
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} mat - [description]
+ * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector3 with.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
transformCoordinates: function (mat)
{
@@ -14786,14 +14811,14 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Quaternion.
*
* @method Phaser.Math.Vector3#transformQuat
* @since 3.0.0
*
- * @param {Phaser.Math.Quaternion} q - [description]
+ * @param {Phaser.Math.Quaternion} q - The Quaternion to transform this Vector with.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
transformQuat: function (q)
{
@@ -14827,9 +14852,9 @@ var Vector3 = new Class({
* @method Phaser.Math.Vector3#project
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} mat - [description]
+ * @param {Phaser.Math.Matrix4} mat - The Matrix4 to multiply this Vector3 with.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
project: function (mat)
{
@@ -14880,7 +14905,7 @@ var Vector3 = new Class({
* @param {Phaser.Math.Vector4} viewport - Screen x, y, width and height in pixels.
* @param {Phaser.Math.Matrix4} invProjectionView - Combined projection and view matrix.
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
unproject: function (viewport, invProjectionView)
{
@@ -14901,12 +14926,12 @@ var Vector3 = new Class({
},
/**
- * [description]
+ * Make this Vector the zero vector (0, 0, 0).
*
* @method Phaser.Math.Vector3#reset
* @since 3.0.0
*
- * @return {Phaser.Math.Vector3} This Vector3 object.
+ * @return {Phaser.Math.Vector3} This Vector3.
*/
reset: function ()
{
@@ -15006,9 +15031,9 @@ module.exports = Vector3;
var Class = __webpack_require__(0);
var Contains = __webpack_require__(32);
-var GetPoint = __webpack_require__(296);
-var GetPoints = __webpack_require__(294);
-var Random = __webpack_require__(154);
+var GetPoint = __webpack_require__(298);
+var GetPoints = __webpack_require__(296);
+var Random = __webpack_require__(155);
/**
* @classdesc
@@ -15493,7 +15518,7 @@ module.exports = GetCenterX;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ArrayUtils = __webpack_require__(145);
+var ArrayUtils = __webpack_require__(146);
var Class = __webpack_require__(0);
var NOOP = __webpack_require__(3);
var StableSort = __webpack_require__(82);
@@ -16393,9 +16418,9 @@ module.exports = Shuffle;
*/
var Class = __webpack_require__(0);
-var GetPoint = __webpack_require__(291);
-var GetPoints = __webpack_require__(153);
-var Random = __webpack_require__(152);
+var GetPoint = __webpack_require__(293);
+var GetPoints = __webpack_require__(154);
+var Random = __webpack_require__(153);
var Vector2 = __webpack_require__(7);
/**
@@ -19091,17 +19116,17 @@ module.exports = GetURL;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var AddToDOM = __webpack_require__(126);
+var AddToDOM = __webpack_require__(127);
var CanvasPool = __webpack_require__(22);
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var CONST = __webpack_require__(20);
var GameObject = __webpack_require__(2);
-var GetTextSize = __webpack_require__(402);
+var GetTextSize = __webpack_require__(404);
var GetValue = __webpack_require__(4);
-var RemoveFromDOM = __webpack_require__(267);
-var TextRender = __webpack_require__(401);
-var TextStyle = __webpack_require__(398);
+var RemoveFromDOM = __webpack_require__(268);
+var TextRender = __webpack_require__(403);
+var TextStyle = __webpack_require__(400);
/**
* @classdesc
@@ -20182,9 +20207,10 @@ var Text = new Class({
},
/**
- * [description]
+ * Internal destroy handler, called as part of the destroy process.
*
* @method Phaser.GameObjects.Text#preDestroy
+ * @protected
* @since 3.0.0
*/
preDestroy: function ()
@@ -20245,7 +20271,7 @@ var Actions = __webpack_require__(594);
var Class = __webpack_require__(0);
var GetFastValue = __webpack_require__(1);
var GetValue = __webpack_require__(4);
-var Range = __webpack_require__(252);
+var Range = __webpack_require__(253);
var Set = __webpack_require__(70);
var Sprite = __webpack_require__(34);
@@ -20497,7 +20523,7 @@ var Group = new Class({
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of the new Game Object.
* @param {boolean} [active=true] - The {@link Phaser.GameObjects.GameObject#active} state of the new Game Object.
*
- * @return {Phaser.GameObjects.GameObject} The new Game Object.
+ * @return {any} The new Game Object (usually a Sprite, etc.).
*/
create: function (x, y, key, frame, visible, active)
{
@@ -20543,7 +20569,7 @@ var Group = new Class({
*
* @param {GroupCreateConfig|GroupCreateConfig[]} config - Creation settings. This can be a single configuration object or an array of such objects, which will be applied in turn.
*
- * @return {Phaser.GameObjects.GameObject[]} The newly created Game Objects.
+ * @return {any[]} The newly created Game Objects.
*/
createMultiple: function (config)
{
@@ -20582,7 +20608,7 @@ var Group = new Class({
*
* @param {GroupCreateConfig} options - Creation settings.
*
- * @return {Phaser.GameObjects.GameObject[]} The newly created Game Objects.
+ * @return {any[]} The newly created Game Objects.
*/
createFromConfig: function (options)
{
@@ -20956,7 +20982,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
+ * @return {?any} The first matching group member, or a newly created member, or null.
*/
getFirst: function (state, createIfNull, x, y, key, frame, visible)
{
@@ -20982,7 +21008,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
+ * @return {?any} The first matching group member, or a newly created member, or null.
*/
getFirstNth: function (nth, state, createIfNull, x, y, key, frame, visible)
{
@@ -21007,7 +21033,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
+ * @return {?any} The first matching group member, or a newly created member, or null.
*/
getLast: function (state, createIfNull, x, y, key, frame, visible)
{
@@ -21033,7 +21059,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
+ * @return {?any} The first matching group member, or a newly created member, or null.
*/
getLastNth: function (nth, state, createIfNull, x, y, key, frame, visible)
{
@@ -21061,7 +21087,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
+ * @return {?any} The first matching group member, or a newly created member, or null.
*/
getHandler: function (forwards, nth, state, createIfNull, x, y, key, frame, visible)
{
@@ -21160,7 +21186,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {?Phaser.GameObjects.GameObject} The first inactive group member, or a newly created member, or null.
+ * @return {?any} The first inactive group member, or a newly created member, or null.
*/
get: function (x, y, key, frame, visible)
{
@@ -21184,7 +21210,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {Phaser.GameObjects.GameObject} The first active group member, or a newly created member, or null.
+ * @return {any} The first active group member, or a newly created member, or null.
*/
getFirstAlive: function (createIfNull, x, y, key, frame, visible)
{
@@ -21209,7 +21235,7 @@ var Group = new Class({
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
*
- * @return {Phaser.GameObjects.GameObject} The first inactive group member, or a newly created member, or null.
+ * @return {any} The first inactive group member, or a newly created member, or null.
*/
getFirstDead: function (createIfNull, x, y, key, frame, visible)
{
@@ -21379,7 +21405,7 @@ var Group = new Class({
},
/**
- * Empties this group and removes it from the scene.
+ * Empties this group and removes it from the Scene.
*
* Does not call {@link Phaser.GameObjects.Group#removeCallback}.
*
@@ -21392,6 +21418,12 @@ var Group = new Class({
{
if (destroyChildren === undefined) { destroyChildren = false; }
+ // This Game Object had already been destroyed
+ if (!this.scene || this.ignoreDestroy)
+ {
+ return;
+ }
+
if (destroyChildren)
{
var children = this.children;
@@ -21472,9 +21504,9 @@ module.exports = CircumferencePoint;
var Class = __webpack_require__(0);
var Contains = __webpack_require__(53);
-var GetPoint = __webpack_require__(170);
-var GetPoints = __webpack_require__(169);
-var Random = __webpack_require__(130);
+var GetPoint = __webpack_require__(171);
+var GetPoints = __webpack_require__(170);
+var Random = __webpack_require__(131);
/**
* @classdesc
@@ -21838,15 +21870,15 @@ module.exports = Ellipse;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Camera = __webpack_require__(120);
+var Camera = __webpack_require__(121);
var Class = __webpack_require__(0);
var Commands = __webpack_require__(117);
var Components = __webpack_require__(15);
-var Ellipse = __webpack_require__(247);
+var Ellipse = __webpack_require__(248);
var GameObject = __webpack_require__(2);
var GetValue = __webpack_require__(4);
var MATH_CONST = __webpack_require__(16);
-var Render = __webpack_require__(448);
+var Render = __webpack_require__(450);
/**
* @classdesc
@@ -22978,6 +23010,18 @@ var Graphics = new Class({
}
return this;
+ },
+
+ /**
+ * Internal destroy handler, called as part of the destroy process.
+ *
+ * @method Phaser.GameObjects.Graphics#preDestroy
+ * @protected
+ * @since 3.9.0
+ */
+ preDestroy: function ()
+ {
+ this.commandBuffer = [];
}
});
@@ -23063,8 +23107,8 @@ module.exports = CheckMatrix;
*/
var Class = __webpack_require__(0);
-var Frame = __webpack_require__(124);
-var TextureSource = __webpack_require__(174);
+var Frame = __webpack_require__(125);
+var TextureSource = __webpack_require__(175);
/**
* @classdesc
@@ -23535,9 +23579,9 @@ module.exports = Texture;
var Class = __webpack_require__(0);
var CONST = __webpack_require__(54);
var DefaultPlugins = __webpack_require__(119);
-var GetPhysicsPlugins = __webpack_require__(503);
-var GetScenePlugins = __webpack_require__(502);
-var Settings = __webpack_require__(183);
+var GetPhysicsPlugins = __webpack_require__(505);
+var GetScenePlugins = __webpack_require__(504);
+var Settings = __webpack_require__(184);
/**
* @classdesc
@@ -23763,11 +23807,6 @@ var Systems = new Class({
pluginManager.addToScene(this, DefaultPlugins.Global, [ DefaultPlugins.CoreScene, GetScenePlugins(this), GetPhysicsPlugins(this) ]);
- // pluginManager.installSceneGlobal(this, DefaultPlugins.Global);
- // pluginManager.installSceneLocal(this, DefaultPlugins.CoreScene);
- // pluginManager.installSceneLocal(this, GetScenePlugins(this));
- // pluginManager.installSceneLocal(this, GetPhysicsPlugins(this));
-
this.events.emit('boot', this);
this.settings.isBooted = true;
@@ -24981,6 +25020,36 @@ module.exports = DefaultPlugins;
/***/ }),
/* 120 */
+/***/ (function(module, exports) {
+
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+/**
+ * Calculates a linear (interpolation) value over t.
+ *
+ * @function Phaser.Math.Linear
+ * @since 3.0.0
+ *
+ * @param {number} p0 - The first point.
+ * @param {number} p1 - The second point.
+ * @param {float} t - The percentage between p0 and p1 to return, represented as a number between 0 and 1.
+ *
+ * @return {number} The step t% of the way between p0 and p1.
+ */
+var Linear = function (p0, p1, t)
+{
+ return (p1 - p0) * t + p0;
+};
+
+module.exports = Linear;
+
+
+/***/ }),
+/* 121 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -24989,13 +25058,15 @@ module.exports = DefaultPlugins;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
var DegToRad = __webpack_require__(38);
+var Effects = __webpack_require__(202);
var EventEmitter = __webpack_require__(9);
-var Effects = __webpack_require__(201);
+var Linear = __webpack_require__(120);
var Rectangle = __webpack_require__(14);
var TransformMatrix = __webpack_require__(63);
-var ValueToColor = __webpack_require__(128);
+var ValueToColor = __webpack_require__(129);
var Vector2 = __webpack_require__(7);
/**
@@ -25285,6 +25356,35 @@ var Camera = new Class({
*/
this.culledObjects = [];
+ /**
+ * The linear interpolation value to use when following a target.
+ *
+ * Can also be set via `setLerp` or as part of the `startFollow` call.
+ *
+ * The default values of 1 means the camera will instantly snap to the target coordinates.
+ * A lower value, such as 0.1 means the camera will more slowly track the target, giving
+ * a smooth transition. You can set the horizontal and vertical values independently, and also
+ * adjust this value in real-time during your game.
+ *
+ * Be sure to keep the value between 0 and 1. A value of zero will disable tracking on that axis.
+ *
+ * @name Phaser.Cameras.Scene2D.Camera#lerp
+ * @type {Phaser.Math.Vector2}
+ * @since 3.9.0
+ */
+ this.lerp = new Vector2(1, 1);
+
+ /**
+ * The values stored in this property are subtracted from the Camera targets position, allowing you to
+ * offset the camera from the actual target x/y coordinates by this amount.
+ * Can also be set via `setFollowOffset` or as part of the `startFollow` call.
+ *
+ * @name Phaser.Cameras.Scene2D.Camera#followOffset
+ * @type {Phaser.Math.Vector2}
+ * @since 3.9.0
+ */
+ this.followOffset = new Vector2();
+
/**
* Internal follow target reference.
*
@@ -25413,8 +25513,8 @@ var Camera = new Class({
var cullW = cameraW + objectW;
var cullH = cameraH + objectH;
- if (tx > -objectW || ty > -objectH || tx < cullW || ty < cullH ||
- tw > -objectW || th > -objectH || tw < cullW || th < cullH)
+ if (tx > -objectW && ty > -objectH && tx < cullW && ty < cullH &&
+ tw > -objectW && th > -objectH && tw < cullW && th < cullH)
{
culledObjects.push(object);
}
@@ -25668,13 +25768,10 @@ var Camera = new Class({
var originY = height / 2;
var follow = this._follow;
- if (follow !== null)
+ if (follow)
{
- originX = follow.x;
- originY = follow.y;
-
- this.scrollX = (originX - width * 0.5) / zoom;
- this.scrollY = (originY - height * 0.5) / zoom;
+ this.scrollX = Linear(this.scrollX, (follow.x - this.followOffset.x) - originX, this.lerp.x) / zoom;
+ this.scrollY = Linear(this.scrollY, (follow.y - this.followOffset.y) - originY, this.lerp.y) / zoom;
}
if (this.useBounds)
@@ -25738,7 +25835,7 @@ var Camera = new Class({
/**
* Set the rotation of this Camera. This causes everything it renders to appear rotated.
- *
+ *
* Rotating a camera does not rotate the viewport itself, it is applied during rendering.
*
* @method Phaser.Cameras.Scene2D.Camera#setAngle
@@ -25757,9 +25854,59 @@ var Camera = new Class({
return this;
},
+ /**
+ * Sets the linear interpolation value to use when following a target.
+ *
+ * The default values of 1 means the camera will instantly snap to the target coordinates.
+ * A lower value, such as 0.1 means the camera will more slowly track the target, giving
+ * a smooth transition. You can set the horizontal and vertical values independently, and also
+ * adjust this value in real-time during your game.
+ *
+ * Be sure to keep the value between 0 and 1. A value of zero will disable tracking on that axis.
+ *
+ * @method Phaser.Cameras.Scene2D.Camera#setLerp
+ * @since 3.9.0
+ *
+ * @param {number} [x=1] - The amount added to the horizontal linear interpolation of the follow target.
+ * @param {number} [y=1] - The amount added to the vertical linear interpolation of the follow target.
+ *
+ * @return {this} This Camera instance.
+ */
+ setLerp: function (x, y)
+ {
+ if (x === undefined) { x = 1; }
+ if (y === undefined) { y = x; }
+
+ this.lerp.set(x, y);
+
+ return this;
+ },
+
+ /**
+ * Sets the horizontal and vertical offset of the camera from its follow target.
+ * The values are subtracted from the targets position during the Cameras update step.
+ *
+ * @method Phaser.Cameras.Scene2D.Camera#setFollowOffset
+ * @since 3.9.0
+ *
+ * @param {number} [x=0] - The horizontal offset from the camera follow target.x position.
+ * @param {number} [y=0] - The vertical offset from the camera follow target.y position.
+ *
+ * @return {this} This Camera instance.
+ */
+ setFollowOffset: function (x, y)
+ {
+ if (x === undefined) { x = 0; }
+ if (y === undefined) { y = 0; }
+
+ this.followOffset.set(x, y);
+
+ return this;
+ },
+
/**
* Sets the background color for this Camera.
- *
+ *
* By default a Camera has a transparent background but it can be given a solid color, with any level
* of transparency, via this method.
*
@@ -25830,7 +25977,7 @@ var Camera = new Class({
/**
* Set the position of the Camera viewport within the game.
- *
+ *
* This does not change where the camera is 'looking'. See `setScroll` to control that.
*
* @method Phaser.Cameras.Scene2D.Camera#setPosition
@@ -25853,7 +26000,7 @@ var Camera = new Class({
/**
* Set the rotation of this Camera. This causes everything it renders to appear rotated.
- *
+ *
* Rotating a camera does not rotate the viewport itself, it is applied during rendering.
*
* @method Phaser.Cameras.Scene2D.Camera#setRotation
@@ -25911,7 +26058,7 @@ var Camera = new Class({
* Set the position of where the Camera is looking within the game.
* You can also modify the properties `Camera.scrollX` and `Camera.scrollY` directly.
* Use this method, or the scroll properties, to move your camera around the game world.
- *
+ *
* This does not change where the camera viewport is placed. See `setPosition` to control that.
*
* @method Phaser.Cameras.Scene2D.Camera#setScroll
@@ -25963,7 +26110,7 @@ var Camera = new Class({
* If you're trying to change where the Camera is looking at in your game, then see
* the method `Camera.setScroll` instead. This method is for changing the viewport
* itself, not what the camera can see.
- *
+ *
* By default a Camera is the same size as the game, but can be made smaller via this method,
* allowing you to create mini-cam style effects by creating and positioning a smaller Camera
* viewport within your game.
@@ -26020,21 +26167,52 @@ var Camera = new Class({
* When enabled the Camera will automatically adjust its scroll position to keep the target Game Object
* in its center.
*
+ * You can set the linear interpolation value used in the follow code.
+ * Use low lerp values (such as 0.1) to automatically smooth the camera motion.
+ *
+ * If you find you're getting a slight "jitter" effect when following an object it's probably to do with sub-pixel
+ * rendering of the targets position. This can be rounded by setting the `roundPixels` argument to `true` to
+ * force full pixel rounding rendering. Note that this can still be broken if you have specified a non-integer zoom
+ * value on the camera. So be sure to keep the camera zoom to integers.
+ *
* @method Phaser.Cameras.Scene2D.Camera#startFollow
* @since 3.0.0
*
* @param {(Phaser.GameObjects.GameObject|object)} target - The target for the Camera to follow.
- * @param {boolean} [roundPx=false] - Round the movement pixels to whole integers?
+ * @param {boolean} [roundPixels=false] - Round the camera position to whole integers to avoid sub-pixel rendering?
+ * @param {float} [lerpX=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when horizontally tracking the target. The closer the value to 1, the faster the camera will track.
+ * @param {float} [lerpY=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when vertically tracking the target. The closer the value to 1, the faster the camera will track.
+ * @param {number} [offsetX=0] - The horizontal offset from the camera follow target.x position.
+ * @param {number} [offsetY=0] - The vertical offset from the camera follow target.y position.
*
- * @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.
+ * @return {this} This Camera instance.
*/
- startFollow: function (target, roundPx)
+ startFollow: function (target, roundPixels, lerpX, lerpY, offsetX, offsetY)
{
- if (roundPx === undefined) { roundPx = false; }
+ if (roundPixels === undefined) { roundPixels = false; }
+ if (lerpX === undefined) { lerpX = 1; }
+ if (lerpY === undefined) { lerpY = lerpX; }
+ if (offsetX === undefined) { offsetX = 0; }
+ if (offsetY === undefined) { offsetY = offsetX; }
this._follow = target;
- this.roundPixels = roundPx;
+ this.roundPixels = roundPixels;
+
+ lerpX = Clamp(lerpX, 0, 1);
+ lerpY = Clamp(lerpY, 0, 1);
+
+ this.lerp.set(lerpX, lerpY);
+
+ this.followOffset.set(offsetX, offsetY);
+
+ // Move the camera there immediately, to avoid a large lerp during preUpdate
+ var zoom = this.zoom;
+ var originX = this.width / 2;
+ var originY = this.height / 2;
+
+ this.scrollX = (target.x - offsetX - originX) / zoom;
+ this.scrollY = (target.y - offsetY - originY) / zoom;
return this;
},
@@ -26155,11 +26333,11 @@ var Camera = new Class({
this.culledObjects = [];
- this.target = undefined;
+ this._follow = null;
- this._bounds = undefined;
+ this._bounds = null;
- this.scene = undefined;
+ this.scene = null;
}
});
@@ -26168,7 +26346,7 @@ module.exports = Camera;
/***/ }),
-/* 121 */
+/* 122 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -26538,8 +26716,8 @@ module.exports = Map;
/***/ }),
-/* 122 */,
-/* 123 */
+/* 123 */,
+/* 124 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -26628,7 +26806,7 @@ module.exports = BuildGameObjectAnimation;
/***/ }),
-/* 124 */
+/* 125 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -27278,7 +27456,7 @@ module.exports = Frame;
/***/ }),
-/* 125 */
+/* 126 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -27289,9 +27467,9 @@ module.exports = Frame;
*/
var Class = __webpack_require__(0);
-var ModelViewProjection = __webpack_require__(199);
-var ShaderSourceFS = __webpack_require__(517);
-var ShaderSourceVS = __webpack_require__(516);
+var ModelViewProjection = __webpack_require__(200);
+var ShaderSourceFS = __webpack_require__(519);
+var ShaderSourceVS = __webpack_require__(518);
var Utils = __webpack_require__(27);
var WebGLPipeline = __webpack_require__(83);
@@ -27750,7 +27928,6 @@ var TextureTintPipeline = new Class({
scrollY = 0.0;
}
-
if (!emitter.visible || aliveLength === 0)
{
continue;
@@ -29482,7 +29659,7 @@ module.exports = TextureTintPipeline;
/***/ }),
-/* 126 */
+/* 127 */
/***/ (function(module, exports) {
/**
@@ -29544,7 +29721,7 @@ module.exports = AddToDOM;
/***/ }),
-/* 127 */
+/* 128 */
/***/ (function(module, exports) {
/**
@@ -29676,7 +29853,7 @@ module.exports = Smoothing();
/***/ }),
-/* 128 */
+/* 129 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -29732,7 +29909,7 @@ module.exports = ValueToColor;
/***/ }),
-/* 129 */
+/* 130 */
/***/ (function(module, exports) {
/**
@@ -29808,7 +29985,7 @@ module.exports = Pad;
/***/ }),
-/* 130 */
+/* 131 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -29849,7 +30026,7 @@ module.exports = Random;
/***/ }),
-/* 131 */
+/* 132 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -29926,7 +30103,7 @@ module.exports = GetPoint;
/***/ }),
-/* 132 */
+/* 133 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -29965,7 +30142,7 @@ module.exports = CircumferencePoint;
/***/ }),
-/* 133 */
+/* 134 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30357,7 +30534,7 @@ module.exports = Tileset;
/***/ }),
-/* 134 */
+/* 135 */
/***/ (function(module, exports) {
/**
@@ -30402,7 +30579,7 @@ module.exports = TileToWorldY;
/***/ }),
-/* 135 */
+/* 136 */
/***/ (function(module, exports) {
/**
@@ -30447,7 +30624,7 @@ module.exports = TileToWorldX;
/***/ }),
-/* 136 */
+/* 137 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30504,7 +30681,7 @@ module.exports = GetTileAt;
/***/ }),
-/* 137 */
+/* 138 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30519,7 +30696,7 @@ module.exports = GetTileAt;
module.exports = {
- CalculateFacesAt: __webpack_require__(217),
+ CalculateFacesAt: __webpack_require__(218),
CalculateFacesWithin: __webpack_require__(40),
Copy: __webpack_require__(662),
CreateFromTiles: __webpack_require__(661),
@@ -30529,22 +30706,22 @@ module.exports = {
FindByIndex: __webpack_require__(657),
FindTile: __webpack_require__(656),
ForEachTile: __webpack_require__(655),
- GetTileAt: __webpack_require__(136),
+ GetTileAt: __webpack_require__(137),
GetTileAtWorldXY: __webpack_require__(654),
GetTilesWithin: __webpack_require__(21),
GetTilesWithinShape: __webpack_require__(653),
GetTilesWithinWorldXY: __webpack_require__(652),
- HasTileAt: __webpack_require__(319),
+ HasTileAt: __webpack_require__(321),
HasTileAtWorldXY: __webpack_require__(651),
IsInLayerBounds: __webpack_require__(104),
- PutTileAt: __webpack_require__(216),
+ PutTileAt: __webpack_require__(217),
PutTileAtWorldXY: __webpack_require__(650),
PutTilesAt: __webpack_require__(649),
Randomize: __webpack_require__(648),
- RemoveTileAt: __webpack_require__(318),
+ RemoveTileAt: __webpack_require__(320),
RemoveTileAtWorldXY: __webpack_require__(647),
RenderDebug: __webpack_require__(646),
- ReplaceByIndex: __webpack_require__(320),
+ ReplaceByIndex: __webpack_require__(322),
SetCollision: __webpack_require__(645),
SetCollisionBetween: __webpack_require__(644),
SetCollisionByExclusion: __webpack_require__(643),
@@ -30554,9 +30731,9 @@ module.exports = {
SetTileLocationCallback: __webpack_require__(639),
Shuffle: __webpack_require__(638),
SwapByIndex: __webpack_require__(637),
- TileToWorldX: __webpack_require__(135),
+ TileToWorldX: __webpack_require__(136),
TileToWorldXY: __webpack_require__(636),
- TileToWorldY: __webpack_require__(134),
+ TileToWorldY: __webpack_require__(135),
WeightedRandomize: __webpack_require__(635),
WorldToTileX: __webpack_require__(52),
WorldToTileXY: __webpack_require__(634),
@@ -30566,9 +30743,9 @@ module.exports = {
/***/ }),
-/* 138 */,
/* 139 */,
-/* 140 */
+/* 140 */,
+/* 141 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30578,7 +30755,7 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var Components = __webpack_require__(341);
+var Components = __webpack_require__(343);
var Sprite = __webpack_require__(34);
/**
@@ -30656,6 +30833,16 @@ var ArcadeSprite = new Class({
function ArcadeSprite (scene, x, y, texture, frame)
{
Sprite.call(this, scene, x, y, texture, frame);
+
+ /**
+ * If this Game Object is enabled for physics then this property will contain a reference to a Physics Body.
+ *
+ * @name Phaser.Physics.Arcade.Sprite#body
+ * @type {?Phaser.Physics.Arcade.Body}
+ * @default null
+ * @since 3.0.0
+ */
+ this.body = null;
}
});
@@ -30664,7 +30851,7 @@ module.exports = ArcadeSprite;
/***/ }),
-/* 141 */
+/* 142 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30679,7 +30866,7 @@ var File = __webpack_require__(19);
var FileTypesManager = __webpack_require__(6);
var GetFastValue = __webpack_require__(1);
var IsPlainObject = __webpack_require__(8);
-var ParseXML = __webpack_require__(268);
+var ParseXML = __webpack_require__(269);
/**
* @typedef {object} Phaser.Loader.FileTypes.XMLFileConfig
@@ -30858,7 +31045,7 @@ module.exports = XMLFile;
/***/ }),
-/* 142 */
+/* 143 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30934,7 +31121,7 @@ module.exports = LineToLine;
/***/ }),
-/* 143 */
+/* 144 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -30946,7 +31133,7 @@ module.exports = LineToLine;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var MeshRender = __webpack_require__(858);
+var MeshRender = __webpack_require__(860);
/**
* @classdesc
@@ -31096,7 +31283,7 @@ module.exports = Mesh;
/***/ }),
-/* 144 */
+/* 145 */
/***/ (function(module, exports) {
/**
@@ -31131,7 +31318,7 @@ module.exports = GetRandom;
/***/ }),
-/* 145 */
+/* 146 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -31146,45 +31333,45 @@ module.exports = GetRandom;
module.exports = {
- Matrix: __webpack_require__(488),
-
- Add: __webpack_require__(481),
- AddAt: __webpack_require__(480),
- BringToTop: __webpack_require__(479),
- CountAllMatching: __webpack_require__(478),
- Each: __webpack_require__(477),
- EachInRange: __webpack_require__(476),
- FindClosestInSorted: __webpack_require__(206),
- GetAll: __webpack_require__(475),
- GetFirst: __webpack_require__(474),
- GetRandom: __webpack_require__(144),
- MoveDown: __webpack_require__(473),
- MoveTo: __webpack_require__(472),
- MoveUp: __webpack_require__(471),
- NumberArray: __webpack_require__(470),
- NumberArrayStep: __webpack_require__(469),
- QuickSelect: __webpack_require__(171),
- Range: __webpack_require__(252),
- Remove: __webpack_require__(186),
- RemoveAt: __webpack_require__(468),
- RemoveBetween: __webpack_require__(467),
- RemoveRandomElement: __webpack_require__(466),
- Replace: __webpack_require__(465),
- RotateLeft: __webpack_require__(288),
- RotateRight: __webpack_require__(287),
+ Matrix: __webpack_require__(490),
+
+ Add: __webpack_require__(483),
+ AddAt: __webpack_require__(482),
+ BringToTop: __webpack_require__(481),
+ CountAllMatching: __webpack_require__(480),
+ Each: __webpack_require__(479),
+ EachInRange: __webpack_require__(478),
+ FindClosestInSorted: __webpack_require__(207),
+ GetAll: __webpack_require__(477),
+ GetFirst: __webpack_require__(476),
+ GetRandom: __webpack_require__(145),
+ MoveDown: __webpack_require__(475),
+ MoveTo: __webpack_require__(474),
+ MoveUp: __webpack_require__(473),
+ NumberArray: __webpack_require__(472),
+ NumberArrayStep: __webpack_require__(471),
+ QuickSelect: __webpack_require__(172),
+ Range: __webpack_require__(253),
+ Remove: __webpack_require__(187),
+ RemoveAt: __webpack_require__(470),
+ RemoveBetween: __webpack_require__(469),
+ RemoveRandomElement: __webpack_require__(468),
+ Replace: __webpack_require__(467),
+ RotateLeft: __webpack_require__(290),
+ RotateRight: __webpack_require__(289),
SafeRange: __webpack_require__(29),
- SendToBack: __webpack_require__(464),
- SetAll: __webpack_require__(463),
+ SendToBack: __webpack_require__(466),
+ SetAll: __webpack_require__(465),
Shuffle: __webpack_require__(94),
SpliceOne: __webpack_require__(55),
StableSort: __webpack_require__(82),
- Swap: __webpack_require__(462)
+ Swap: __webpack_require__(464)
};
/***/ }),
-/* 146 */
+/* 147 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -31195,8 +31382,8 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var ShaderSourceFS = __webpack_require__(518);
-var TextureTintPipeline = __webpack_require__(125);
+var ShaderSourceFS = __webpack_require__(520);
+var TextureTintPipeline = __webpack_require__(126);
var LIGHT_COUNT = 10;
@@ -31600,7 +31787,7 @@ module.exports = ForwardDiffuseLightPipeline;
/***/ }),
-/* 147 */
+/* 148 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -31630,7 +31817,7 @@ module.exports = RadToDeg;
/***/ }),
-/* 148 */
+/* 149 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -31896,7 +32083,7 @@ module.exports = Sprite3D;
/***/ }),
-/* 149 */
+/* 150 */
/***/ (function(module, exports) {
/**
@@ -31926,7 +32113,7 @@ module.exports = GetColor;
/***/ }),
-/* 150 */
+/* 151 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -31982,7 +32169,7 @@ module.exports = Random;
/***/ }),
-/* 151 */
+/* 152 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -32020,7 +32207,7 @@ module.exports = Random;
/***/ }),
-/* 152 */
+/* 153 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -32060,7 +32247,7 @@ module.exports = Random;
/***/ }),
-/* 153 */
+/* 154 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -32120,7 +32307,7 @@ module.exports = GetPoints;
/***/ }),
-/* 154 */
+/* 155 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -32164,7 +32351,7 @@ module.exports = Random;
/***/ }),
-/* 155 */
+/* 156 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -32453,7 +32640,7 @@ module.exports = Zone;
/***/ }),
-/* 156 */
+/* 157 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -33322,7 +33509,7 @@ module.exports = Timeline;
/***/ }),
-/* 157 */
+/* 158 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -33338,9 +33525,9 @@ var GetBoolean = __webpack_require__(61);
var GetEaseFunction = __webpack_require__(62);
var GetNewValue = __webpack_require__(73);
var GetTargets = __webpack_require__(101);
-var GetTweens = __webpack_require__(159);
+var GetTweens = __webpack_require__(160);
var GetValue = __webpack_require__(4);
-var Timeline = __webpack_require__(156);
+var Timeline = __webpack_require__(157);
var TweenBuilder = __webpack_require__(72);
/**
@@ -33474,7 +33661,7 @@ module.exports = TimelineBuilder;
/***/ }),
-/* 158 */
+/* 159 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -33602,7 +33789,7 @@ module.exports = NumberTweenBuilder;
/***/ }),
-/* 159 */
+/* 160 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -33648,7 +33835,7 @@ module.exports = GetTweens;
/***/ }),
-/* 160 */
+/* 161 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -33657,7 +33844,7 @@ module.exports = GetTweens;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RESERVED = __webpack_require__(302);
+var RESERVED = __webpack_require__(304);
/**
* [description]
@@ -33706,7 +33893,7 @@ module.exports = GetProps;
/***/ }),
-/* 161 */
+/* 162 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -34023,7 +34210,7 @@ module.exports = TimerEvent;
/***/ }),
-/* 162 */
+/* 163 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -34034,23 +34221,17 @@ module.exports = TimerEvent;
var Class = __webpack_require__(0);
-// A Scene Level Plugin is installed into every Scene and belongs to that Scene.
-// It can listen for Scene events and respond to them.
-// It can map itself to a Scene property, or into the Scene Systems, or both.
-//
-// A Global Plugin is installed just once into the Game owned Plugin Manager.
-// It can listen for Game events and respond to them.
-
/**
* @classdesc
- * [description]
+ * A Global Plugin is installed just once into the Game owned Plugin Manager.
+ * It can listen for Game events and respond to them.
*
* @class BasePlugin
* @memberOf Phaser.Plugins
* @constructor
* @since 3.8.0
*
- * @param {Phaser.Game} game - [description]
+ * @param {Phaser.Game} game - A reference to the Game instance this plugin is running under.
*/
var BasePlugin = new Class({
@@ -34061,9 +34242,9 @@ var BasePlugin = new Class({
/**
* A handy reference to the Plugin Manager that is responsible for this plugin.
* Can be used as a route to gain access to game systems and events.
- *
+ *
* @name Phaser.Plugins.BasePlugin#pluginManager
- * @type {Phaser.Plugins.BasePluginManager}
+ * @type {Phaser.Plugins.PluginManager}
* @protected
* @since 3.8.0
*/
@@ -34099,7 +34280,7 @@ var BasePlugin = new Class({
* You cannot use it during the `init` method, but you can during the `boot` method.
*
* @name Phaser.Plugins.BasePlugin#systems
- * @type {?Phaser.Scene.Systems}
+ * @type {?Phaser.Scenes.Systems}
* @protected
* @since 3.8.0
*/
@@ -34208,7 +34389,7 @@ module.exports = BasePlugin;
/***/ }),
-/* 163 */
+/* 164 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -34404,7 +34585,7 @@ module.exports = HTML5AudioFile;
/***/ }),
-/* 164 */
+/* 165 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -34418,7 +34599,7 @@ var CONST = __webpack_require__(20);
var File = __webpack_require__(19);
var FileTypesManager = __webpack_require__(6);
var GetFastValue = __webpack_require__(1);
-var HTML5AudioFile = __webpack_require__(163);
+var HTML5AudioFile = __webpack_require__(164);
var IsPlainObject = __webpack_require__(8);
/**
@@ -34684,7 +34865,7 @@ module.exports = AudioFile;
/***/ }),
-/* 165 */
+/* 166 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -34752,7 +34933,7 @@ module.exports = XHRLoader;
/***/ }),
-/* 166 */
+/* 167 */
/***/ (function(module, exports) {
/**
@@ -34842,7 +35023,7 @@ module.exports = CreateInteractiveObject;
/***/ }),
-/* 167 */
+/* 168 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35114,7 +35295,7 @@ module.exports = GraphicsCanvasRenderer;
/***/ }),
-/* 168 */
+/* 169 */
/***/ (function(module, exports) {
/**
@@ -35146,7 +35327,7 @@ module.exports = Circumference;
/***/ }),
-/* 169 */
+/* 170 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35155,7 +35336,7 @@ module.exports = Circumference;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Circumference = __webpack_require__(168);
+var Circumference = __webpack_require__(169);
var CircumferencePoint = __webpack_require__(110);
var FromPercent = __webpack_require__(64);
var MATH_CONST = __webpack_require__(16);
@@ -35200,7 +35381,7 @@ module.exports = GetPoints;
/***/ }),
-/* 170 */
+/* 171 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35243,7 +35424,7 @@ module.exports = GetPoint;
/***/ }),
-/* 171 */
+/* 172 */
/***/ (function(module, exports) {
/**
@@ -35361,7 +35542,7 @@ module.exports = QuickSelect;
/***/ }),
-/* 172 */
+/* 173 */
/***/ (function(module, exports) {
/**
@@ -35407,7 +35588,7 @@ module.exports = TransposeMatrix;
/***/ }),
-/* 173 */
+/* 174 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35422,20 +35603,20 @@ module.exports = TransposeMatrix;
module.exports = {
- AtlasXML: __webpack_require__(499),
- Canvas: __webpack_require__(498),
- Image: __webpack_require__(497),
- JSONArray: __webpack_require__(496),
- JSONHash: __webpack_require__(495),
- SpriteSheet: __webpack_require__(494),
- SpriteSheetFromAtlas: __webpack_require__(493),
- UnityYAML: __webpack_require__(492)
+ AtlasXML: __webpack_require__(501),
+ Canvas: __webpack_require__(500),
+ Image: __webpack_require__(499),
+ JSONArray: __webpack_require__(498),
+ JSONHash: __webpack_require__(497),
+ SpriteSheet: __webpack_require__(496),
+ SpriteSheetFromAtlas: __webpack_require__(495),
+ UnityYAML: __webpack_require__(494)
};
/***/ }),
-/* 174 */
+/* 175 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35674,7 +35855,7 @@ module.exports = TextureSource;
/***/ }),
-/* 175 */
+/* 176 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -35684,14 +35865,14 @@ module.exports = TextureSource;
*/
var CanvasPool = __webpack_require__(22);
-var CanvasTexture = __webpack_require__(500);
+var CanvasTexture = __webpack_require__(502);
var Class = __webpack_require__(0);
var Color = __webpack_require__(30);
var CONST = __webpack_require__(20);
var EventEmitter = __webpack_require__(9);
var GenerateTexture = __webpack_require__(276);
var GetValue = __webpack_require__(4);
-var Parser = __webpack_require__(173);
+var Parser = __webpack_require__(174);
var Texture = __webpack_require__(114);
/**
@@ -36616,7 +36797,7 @@ module.exports = TextureManager;
/***/ }),
-/* 176 */
+/* 177 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -37583,7 +37764,7 @@ module.exports = WebAudioSound;
/***/ }),
-/* 177 */
+/* 178 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -37595,7 +37776,7 @@ module.exports = WebAudioSound;
var BaseSoundManager = __webpack_require__(77);
var Class = __webpack_require__(0);
-var WebAudioSound = __webpack_require__(176);
+var WebAudioSound = __webpack_require__(177);
/**
* @classdesc
@@ -37910,7 +38091,7 @@ module.exports = WebAudioSoundManager;
/***/ }),
-/* 178 */
+/* 179 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -38037,7 +38218,7 @@ module.exports = NoAudioSound;
/***/ }),
-/* 179 */
+/* 180 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -38050,7 +38231,7 @@ module.exports = NoAudioSound;
var BaseSoundManager = __webpack_require__(77);
var Class = __webpack_require__(0);
var EventEmitter = __webpack_require__(9);
-var NoAudioSound = __webpack_require__(178);
+var NoAudioSound = __webpack_require__(179);
var NOOP = __webpack_require__(3);
/**
@@ -38155,7 +38336,7 @@ module.exports = NoAudioSoundManager;
/***/ }),
-/* 180 */
+/* 181 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -39137,7 +39318,7 @@ module.exports = HTML5AudioSound;
/***/ }),
-/* 181 */
+/* 182 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -39149,7 +39330,7 @@ module.exports = HTML5AudioSound;
var BaseSoundManager = __webpack_require__(77);
var Class = __webpack_require__(0);
-var HTML5AudioSound = __webpack_require__(180);
+var HTML5AudioSound = __webpack_require__(181);
/**
* HTML5 Audio implementation of the Sound Manager.
@@ -39604,7 +39785,7 @@ module.exports = HTML5AudioSoundManager;
/***/ }),
-/* 182 */
+/* 183 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -39614,9 +39795,9 @@ module.exports = HTML5AudioSoundManager;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var HTML5AudioSoundManager = __webpack_require__(181);
-var NoAudioSoundManager = __webpack_require__(179);
-var WebAudioSoundManager = __webpack_require__(177);
+var HTML5AudioSoundManager = __webpack_require__(182);
+var NoAudioSoundManager = __webpack_require__(180);
+var WebAudioSoundManager = __webpack_require__(178);
/**
* Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings.
@@ -39654,7 +39835,7 @@ module.exports = SoundManagerCreator;
/***/ }),
-/* 183 */
+/* 184 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -39666,7 +39847,7 @@ module.exports = SoundManagerCreator;
var CONST = __webpack_require__(54);
var GetValue = __webpack_require__(4);
var Merge = __webpack_require__(93);
-var InjectionMap = __webpack_require__(501);
+var InjectionMap = __webpack_require__(503);
/**
* @namespace Phaser.Scenes.Settings
@@ -39782,7 +39963,7 @@ module.exports = Settings;
/***/ }),
-/* 184 */
+/* 185 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -40061,7 +40242,7 @@ module.exports = Scene;
/***/ }),
-/* 185 */
+/* 186 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -40074,7 +40255,7 @@ var Class = __webpack_require__(0);
var CONST = __webpack_require__(54);
var GetValue = __webpack_require__(4);
var NOOP = __webpack_require__(3);
-var Scene = __webpack_require__(184);
+var Scene = __webpack_require__(185);
var Systems = __webpack_require__(115);
/**
@@ -41570,7 +41751,7 @@ module.exports = SceneManager;
/***/ }),
-/* 186 */
+/* 187 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -41661,7 +41842,7 @@ module.exports = Remove;
/***/ }),
-/* 187 */
+/* 188 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -41677,7 +41858,7 @@ var GameObjectCreator = __webpack_require__(13);
var GameObjectFactory = __webpack_require__(11);
var GetFastValue = __webpack_require__(1);
var PluginCache = __webpack_require__(12);
-var Remove = __webpack_require__(186);
+var Remove = __webpack_require__(187);
/**
* @typedef {object} GlobalPlugin
@@ -41685,6 +41866,7 @@ var Remove = __webpack_require__(186);
* @property {string} key - The unique name of this plugin within the plugin cache.
* @property {function} plugin - An instance of the plugin.
* @property {boolean} [active] - Is the plugin active or not?
+ * @property {string} [mapping] - If this plugin is to be injected into the Scene Systems, this is the property key map used.
*/
/**
@@ -41823,15 +42005,16 @@ var PluginManager = new Class({
{
entry = list[i];
- // { key: 'TestPlugin', plugin: TestPlugin, start: true }
+ // { key: 'TestPlugin', plugin: TestPlugin, start: true, mapping: 'test' }
key = GetFastValue(entry, 'key', null);
plugin = GetFastValue(entry, 'plugin', null);
start = GetFastValue(entry, 'start', false);
+ mapping = GetFastValue(entry, 'mapping', null);
if (key && plugin)
{
- this.install(key, plugin, start);
+ this.install(key, plugin, start, mapping);
}
}
@@ -41866,6 +42049,10 @@ var PluginManager = new Class({
/**
* Called by the Scene Systems class. Tells the plugin manager to install all Scene plugins into it.
*
+ * First it will install global references, i.e. references from the Game systems into the Scene Systems (and Scene if mapped.)
+ * Then it will install Core Scene Plugins followed by Scene Plugins registered with the PluginManager.
+ * Finally it will install any references to Global Plugins that have a Scene mapping property into the Scene itself.
+ *
* @method Phaser.Plugins.PluginManager#addToScene
* @protected
* @since 3.8.0
@@ -41878,6 +42065,7 @@ var PluginManager = new Class({
{
var i;
var pluginKey;
+ var pluginList;
var game = this.game;
var scene = sys.scene;
var map = sys.settings.map;
@@ -41902,7 +42090,7 @@ var PluginManager = new Class({
for (var s = 0; s < scenePlugins.length; s++)
{
- var pluginList = scenePlugins[s];
+ pluginList = scenePlugins[s];
for (i = 0; i < pluginList.length; i++)
{
@@ -41936,6 +42124,19 @@ var PluginManager = new Class({
}
}
}
+
+ // And finally, inject any 'global scene plugins'
+ pluginList = this.plugins;
+
+ for (i = 0; i < pluginList.length; i++)
+ {
+ var entry = pluginList[i];
+
+ if (entry.mapping)
+ {
+ scene[entry.mapping] = entry.plugin;
+ }
+ }
},
/**
@@ -42043,11 +42244,13 @@ var PluginManager = new Class({
*
* @param {string} key - The unique handle given to this plugin within the Plugin Manager.
* @param {function} plugin - The plugin code. This should be the non-instantiated version.
- * @param {boolean} [start=false] - Automatically start the plugin running?
+ * @param {boolean} [start=false] - Automatically start the plugin running? This is always `true` if you provide a mapping value.
+ * @param {string} [mapping] - If this plugin is injected into the Phaser.Scene class, this is the property key to use.
*/
- install: function (key, plugin, start)
+ install: function (key, plugin, start, mapping)
{
if (start === undefined) { start = false; }
+ if (mapping === undefined) { mapping = null; }
if (typeof plugin !== 'function')
{
@@ -42061,16 +42264,21 @@ var PluginManager = new Class({
return;
}
+ if (mapping !== null)
+ {
+ start = true;
+ }
+
+ console.log('install', key, start, mapping);
+
if (!this.game.isBooted)
{
- this._pendingGlobal.push({ key: key, plugin: plugin, start: start });
+ this._pendingGlobal.push({ key: key, plugin: plugin, start: start, mapping: mapping });
}
else
{
// Add it to the plugin store
- PluginCache.registerCustom(key, plugin);
-
- // gamePlugins[key] = plugin;
+ PluginCache.registerCustom(key, plugin, mapping);
if (start)
{
@@ -42179,26 +42387,46 @@ var PluginManager = new Class({
}
else if (!entry)
{
- var plugin = this.getClass(key);
+ entry = this.createEntry(key, runAs);
+ }
- if (plugin)
- {
- var instance = new plugin(this);
+ return (entry) ? entry.plugin : null;
+ },
- entry = {
- key: runAs,
- plugin: instance,
- active: true
- };
+ /**
+ * Creates a new instance of a global plugin, adds an entry into the plugins array and returns it.
+ *
+ * @method Phaser.Plugins.PluginManager#createEntry
+ * @private
+ * @since 3.9.0
+ *
+ * @param {string} key - The key of the plugin to create an instance of.
+ * @param {string} [runAs] - Run the plugin under a new key. This allows you to run one plugin multiple times.
+ *
+ * @return {?Phaser.Plugins.BasePlugin} The plugin that was started, or `null` if invalid key given.
+ */
+ createEntry: function (key, runAs)
+ {
+ var entry = PluginCache.getCustom(key);
- this.plugins.push(entry);
+ if (entry)
+ {
+ var instance = new entry.plugin(this);
- instance.init();
- instance.start();
- }
+ entry = {
+ key: runAs,
+ plugin: instance,
+ active: true,
+ mapping: entry.mapping
+ };
+
+ this.plugins.push(entry);
+
+ instance.init();
+ instance.start();
}
- return (entry) ? entry.plugin : null;
+ return entry;
},
/**
@@ -42259,20 +42487,9 @@ var PluginManager = new Class({
if (plugin && autoStart)
{
- var instance = new plugin(this);
-
- entry = {
- key: key,
- plugin: instance,
- active: true
- };
-
- this.plugins.push(entry);
-
- instance.init();
- instance.start();
+ entry = this.createEntry(key, key);
- return instance;
+ return (entry) ? entry.plugin : null;
}
else if (plugin)
{
@@ -42421,10 +42638,16 @@ var PluginManager = new Class({
*
* @param {string} key - The key of the Game Object that the given callbacks will create, i.e. `image`, `sprite`.
* @param {function} callback - The callback to invoke when the Game Object Factory is called.
+ * @param {Phaser.Scene} [addToScene] - Optionally add this file type into the Loader Plugin owned by the given Scene.
*/
- registerFileType: function (key, callback)
+ registerFileType: function (key, callback, addToScene)
{
FileTypesManager.register(key, callback);
+
+ if (addToScene && addToScene.sys.load)
+ {
+ addToScene.sys.load[key] = callback;
+ }
},
/**
@@ -42439,7 +42662,7 @@ var PluginManager = new Class({
{
for (var i = 0; i < this.plugins.length; i++)
{
- this.plugins[i].destroy();
+ this.plugins[i].plugin.destroy();
}
this.game = null;
@@ -42459,7 +42682,7 @@ module.exports = PluginManager;
/***/ }),
-/* 188 */
+/* 189 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -42662,7 +42885,7 @@ module.exports = TouchManager;
/***/ }),
-/* 189 */
+/* 190 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -43301,7 +43524,7 @@ module.exports = Pointer;
/***/ }),
-/* 190 */
+/* 191 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -43613,7 +43836,7 @@ module.exports = MouseManager;
/***/ }),
-/* 191 */
+/* 192 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -43624,8 +43847,8 @@ module.exports = MouseManager;
var Class = __webpack_require__(0);
var GetFastValue = __webpack_require__(1);
-var ProcessKeyCombo = __webpack_require__(509);
-var ResetKeyCombo = __webpack_require__(507);
+var ProcessKeyCombo = __webpack_require__(511);
+var ResetKeyCombo = __webpack_require__(509);
/**
* @callback KeyboardKeydownCallback
@@ -43898,7 +44121,7 @@ module.exports = KeyCombo;
/***/ }),
-/* 192 */
+/* 193 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44123,7 +44346,7 @@ module.exports = Key;
/***/ }),
-/* 193 */
+/* 194 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44134,12 +44357,12 @@ module.exports = Key;
var Class = __webpack_require__(0);
var EventEmitter = __webpack_require__(9);
-var Key = __webpack_require__(192);
+var Key = __webpack_require__(193);
var KeyCodes = __webpack_require__(116);
-var KeyCombo = __webpack_require__(191);
-var KeyMap = __webpack_require__(506);
-var ProcessKeyDown = __webpack_require__(505);
-var ProcessKeyUp = __webpack_require__(504);
+var KeyCombo = __webpack_require__(192);
+var KeyMap = __webpack_require__(508);
+var ProcessKeyDown = __webpack_require__(507);
+var ProcessKeyUp = __webpack_require__(506);
/**
* @callback KeyboardHandler
@@ -44321,21 +44544,21 @@ var KeyboardManager = new Class({
/**
* @typedef {object} CursorKeys
*
- * @property {Phaser.Input.Keyboard.Key} [up] - [description]
- * @property {Phaser.Input.Keyboard.Key} [down] - [description]
- * @property {Phaser.Input.Keyboard.Key} [left] - [description]
- * @property {Phaser.Input.Keyboard.Key} [right] - [description]
- * @property {Phaser.Input.Keyboard.Key} [space] - [description]
- * @property {Phaser.Input.Keyboard.Key} [shift] - [description]
+ * @property {Phaser.Input.Keyboard.Key} [up] - A Key object mapping to the UP arrow key.
+ * @property {Phaser.Input.Keyboard.Key} [down] - A Key object mapping to the DOWN arrow key.
+ * @property {Phaser.Input.Keyboard.Key} [left] - A Key object mapping to the LEFT arrow key.
+ * @property {Phaser.Input.Keyboard.Key} [right] - A Key object mapping to the RIGHT arrow key.
+ * @property {Phaser.Input.Keyboard.Key} [space] - A Key object mapping to the SPACE BAR key.
+ * @property {Phaser.Input.Keyboard.Key} [shift] - A Key object mapping to the SHIFT key.
*/
/**
- * Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right, and also space and shift.
+ * Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right, and also Space Bar and shift.
*
* @method Phaser.Input.Keyboard.KeyboardManager#createCursorKeys
* @since 3.0.0
*
- * @return {CursorKeys} [description]
+ * @return {CursorKeys} An object containing the properties: `up`, `down`, `left`, `right`, `space` and `shift`.
*/
createCursorKeys: function ()
{
@@ -44571,7 +44794,7 @@ module.exports = KeyboardManager;
/***/ }),
-/* 194 */
+/* 195 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44691,7 +44914,7 @@ module.exports = Button;
/***/ }),
-/* 195 */
+/* 196 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44801,7 +45024,7 @@ module.exports = Axis;
/***/ }),
-/* 196 */
+/* 197 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44810,8 +45033,8 @@ module.exports = Axis;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Axis = __webpack_require__(195);
-var Button = __webpack_require__(194);
+var Axis = __webpack_require__(196);
+var Button = __webpack_require__(195);
var Class = __webpack_require__(0);
/**
@@ -44953,7 +45176,7 @@ module.exports = Gamepad;
/***/ }),
-/* 197 */
+/* 198 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -44964,7 +45187,7 @@ module.exports = Gamepad;
var Class = __webpack_require__(0);
var EventEmitter = __webpack_require__(9);
-var Gamepad = __webpack_require__(196);
+var Gamepad = __webpack_require__(197);
// https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API
// https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
@@ -45352,7 +45575,7 @@ module.exports = GamepadManager;
/***/ }),
-/* 198 */
+/* 199 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -45363,14 +45586,14 @@ module.exports = GamepadManager;
var Class = __webpack_require__(0);
var EventEmitter = __webpack_require__(9);
-var Gamepad = __webpack_require__(197);
-var Keyboard = __webpack_require__(193);
-var Mouse = __webpack_require__(190);
-var Pointer = __webpack_require__(189);
+var Gamepad = __webpack_require__(198);
+var Keyboard = __webpack_require__(194);
+var Mouse = __webpack_require__(191);
+var Pointer = __webpack_require__(190);
var Rectangle = __webpack_require__(14);
-var Touch = __webpack_require__(188);
+var Touch = __webpack_require__(189);
var TransformMatrix = __webpack_require__(63);
-var TransformXY = __webpack_require__(255);
+var TransformXY = __webpack_require__(256);
/**
* @classdesc
@@ -46000,7 +46223,7 @@ module.exports = InputManager;
/***/ }),
-/* 199 */
+/* 200 */
/***/ (function(module, exports) {
/**
@@ -46591,7 +46814,7 @@ module.exports = ModelViewProjection;
/***/ }),
-/* 200 */
+/* 201 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -46705,7 +46928,7 @@ module.exports = init();
/***/ }),
-/* 201 */
+/* 202 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -46720,15 +46943,15 @@ module.exports = init();
module.exports = {
- Fade: __webpack_require__(556),
- Flash: __webpack_require__(555),
- Shake: __webpack_require__(554)
+ Fade: __webpack_require__(558),
+ Flash: __webpack_require__(557),
+ Shake: __webpack_require__(556)
};
/***/ }),
-/* 202 */
+/* 203 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -46737,7 +46960,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BaseCache = __webpack_require__(203);
+var BaseCache = __webpack_require__(204);
var Class = __webpack_require__(0);
/**
@@ -46941,7 +47164,7 @@ module.exports = CacheManager;
/***/ }),
-/* 203 */
+/* 204 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -46951,7 +47174,7 @@ module.exports = CacheManager;
*/
var Class = __webpack_require__(0);
-var CustomMap = __webpack_require__(121);
+var CustomMap = __webpack_require__(122);
var EventEmitter = __webpack_require__(9);
/**
@@ -47135,7 +47358,7 @@ module.exports = BaseCache;
/***/ }),
-/* 204 */
+/* 205 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -47144,12 +47367,12 @@ module.exports = BaseCache;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Animation = __webpack_require__(207);
+var Animation = __webpack_require__(208);
var Class = __webpack_require__(0);
-var CustomMap = __webpack_require__(121);
+var CustomMap = __webpack_require__(122);
var EventEmitter = __webpack_require__(9);
var GetValue = __webpack_require__(4);
-var Pad = __webpack_require__(129);
+var Pad = __webpack_require__(130);
/**
* @typedef {object} JSONAnimationManager
@@ -47762,7 +47985,7 @@ module.exports = AnimationManager;
/***/ }),
-/* 205 */
+/* 206 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -47945,7 +48168,7 @@ module.exports = AnimationFrame;
/***/ }),
-/* 206 */
+/* 207 */
/***/ (function(module, exports) {
/**
@@ -48026,7 +48249,7 @@ module.exports = FindClosestInSorted;
/***/ }),
-/* 207 */
+/* 208 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -48035,10 +48258,10 @@ module.exports = FindClosestInSorted;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
-var FindClosestInSorted = __webpack_require__(206);
-var Frame = __webpack_require__(205);
+var FindClosestInSorted = __webpack_require__(207);
+var Frame = __webpack_require__(206);
var GetValue = __webpack_require__(4);
/**
@@ -48909,7 +49132,7 @@ module.exports = Animation;
/***/ }),
-/* 208 */
+/* 209 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -48921,14 +49144,16 @@ module.exports = Animation;
var Wrap = __webpack_require__(39);
/**
- * [description]
+ * Wrap an angle in degrees.
+ *
+ * Wraps the angle to a value in the range of -180 to 180.
*
* @function Phaser.Math.Angle.WrapDegrees
* @since 3.0.0
*
- * @param {number} angle - [description]
+ * @param {number} angle - The angle to wrap, in degrees.
*
- * @return {number} [description]
+ * @return {number} The wrapped angle, in degrees.
*/
var WrapDegrees = function (angle)
{
@@ -48939,7 +49164,7 @@ module.exports = WrapDegrees;
/***/ }),
-/* 209 */
+/* 210 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -48951,14 +49176,16 @@ module.exports = WrapDegrees;
var MathWrap = __webpack_require__(39);
/**
- * [description]
+ * Wrap an angle.
+ *
+ * Wraps the angle to a value in the range of -PI to PI.
*
* @function Phaser.Math.Angle.Wrap
* @since 3.0.0
*
- * @param {number} angle - [description]
+ * @param {number} angle - The angle to wrap, in radians.
*
- * @return {number} [description]
+ * @return {number} The wrapped angle, in radians.
*/
var Wrap = function (angle)
{
@@ -48969,7 +49196,7 @@ module.exports = Wrap;
/***/ }),
-/* 210 */
+/* 211 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49127,7 +49354,7 @@ module.exports = GeometryMask;
/***/ }),
-/* 211 */
+/* 212 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49349,7 +49576,7 @@ module.exports = BitmapMask;
/***/ }),
-/* 212 */
+/* 213 */
/***/ (function(module, exports) {
var g;
@@ -49375,7 +49602,7 @@ module.exports = g;
/***/ }),
-/* 213 */
+/* 214 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49386,8 +49613,8 @@ module.exports = g;
var Formats = __webpack_require__(26);
var MapData = __webpack_require__(102);
-var Parse = __webpack_require__(317);
-var Tilemap = __webpack_require__(309);
+var Parse = __webpack_require__(319);
+var Tilemap = __webpack_require__(311);
/**
* Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When
@@ -49461,7 +49688,7 @@ module.exports = ParseToTilemap;
/***/ }),
-/* 214 */
+/* 215 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49553,7 +49780,7 @@ module.exports = Parse2DArray;
/***/ }),
-/* 215 */
+/* 216 */
/***/ (function(module, exports) {
/**
@@ -49592,7 +49819,7 @@ module.exports = SetLayerCollisionIndex;
/***/ }),
-/* 216 */
+/* 217 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49603,7 +49830,7 @@ module.exports = SetLayerCollisionIndex;
var Tile = __webpack_require__(65);
var IsInLayerBounds = __webpack_require__(104);
-var CalculateFacesAt = __webpack_require__(217);
+var CalculateFacesAt = __webpack_require__(218);
var SetTileCollision = __webpack_require__(66);
/**
@@ -49672,7 +49899,7 @@ module.exports = PutTileAt;
/***/ }),
-/* 217 */
+/* 218 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49681,7 +49908,7 @@ module.exports = PutTileAt;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetTileAt = __webpack_require__(136);
+var GetTileAt = __webpack_require__(137);
/**
* Calculates interesting faces at the given tile coordinates of the specified layer. Interesting
@@ -49748,9 +49975,9 @@ module.exports = CalculateFacesAt;
/***/ }),
-/* 218 */,
/* 219 */,
-/* 220 */
+/* 220 */,
+/* 221 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -49759,7 +49986,7 @@ module.exports = CalculateFacesAt;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var quickselect = __webpack_require__(171);
+var quickselect = __webpack_require__(172);
/**
* @classdesc
@@ -50358,7 +50585,7 @@ function multiSelect (arr, left, right, n, compare)
module.exports = rbush;
/***/ }),
-/* 221 */
+/* 222 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -50574,7 +50801,7 @@ module.exports = ProcessQueue;
/***/ }),
-/* 222 */
+/* 223 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -50758,7 +50985,7 @@ module.exports = TextFile;
/***/ }),
-/* 223 */
+/* 224 */
/***/ (function(module, exports) {
/**
@@ -50812,7 +51039,7 @@ module.exports = RotateAroundXY;
/***/ }),
-/* 224 */
+/* 225 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -50905,7 +51132,7 @@ module.exports = GetPoints;
/***/ }),
-/* 225 */
+/* 226 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -50993,7 +51220,7 @@ module.exports = GetPoint;
/***/ }),
-/* 226 */
+/* 227 */
/***/ (function(module, exports) {
/**
@@ -51021,7 +51248,7 @@ module.exports = GetAspectRatio;
/***/ }),
-/* 227 */
+/* 228 */
/***/ (function(module, exports) {
/**
@@ -51070,7 +51297,7 @@ module.exports = Contains;
/***/ }),
-/* 228 */
+/* 229 */
/***/ (function(module, exports) {
/**
@@ -51118,7 +51345,7 @@ module.exports = RotateAroundXY;
/***/ }),
-/* 229 */
+/* 230 */
/***/ (function(module, exports) {
/**
@@ -51204,7 +51431,7 @@ module.exports = ContainsArray;
/***/ }),
-/* 230 */
+/* 231 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -51214,7 +51441,7 @@ module.exports = ContainsArray;
*/
var Class = __webpack_require__(0);
-var Mesh = __webpack_require__(143);
+var Mesh = __webpack_require__(144);
/**
* @classdesc
@@ -51803,7 +52030,7 @@ module.exports = Quad;
/***/ }),
-/* 231 */
+/* 232 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -51817,8 +52044,8 @@ var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var CONST = __webpack_require__(20);
var GameObject = __webpack_require__(2);
-var GetPowerOfTwo = __webpack_require__(396);
-var TileSpriteRender = __webpack_require__(882);
+var GetPowerOfTwo = __webpack_require__(398);
+var TileSpriteRender = __webpack_require__(884);
/**
* @classdesc
@@ -52077,14 +52304,15 @@ var TileSprite = new Class({
},
/**
- * [description]
+ * Internal destroy handler, called as part of the destroy process.
*
- * @method Phaser.GameObjects.TileSprite#destroy
- * @since 3.0.0
+ * @method Phaser.GameObjects.TileSprite#preDestroy
+ * @protected
+ * @since 3.9.0
*/
- destroy: function ()
+ preDestroy: function ()
{
- if (this.renderer.gl)
+ if (this.renderer && this.renderer.gl)
{
this.renderer.deleteTexture(this.tileTexture);
}
@@ -52096,7 +52324,6 @@ var TileSprite = new Class({
this.canvasBuffer = null;
this.renderer = null;
- this.visible = false;
}
});
@@ -52105,7 +52332,7 @@ module.exports = TileSprite;
/***/ }),
-/* 232 */
+/* 233 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52119,9 +52346,9 @@ var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var CONST = __webpack_require__(20);
var GameObject = __webpack_require__(2);
-var Render = __webpack_require__(890);
-var RenderTextureCanvas = __webpack_require__(887);
-var RenderTextureWebGL = __webpack_require__(886);
+var Render = __webpack_require__(892);
+var RenderTextureCanvas = __webpack_require__(889);
+var RenderTextureWebGL = __webpack_require__(888);
/**
* @classdesc
@@ -52245,23 +52472,6 @@ var RenderTexture = new Class({
this.initPipeline('TextureTintPipeline');
},
- /**
- * [description]
- *
- * @method Phaser.GameObjects.RenderTexture#destroy
- * @since 3.2.0
- */
- destroy: function ()
- {
- GameObject.prototype.destroy.call(this);
-
- if (this.renderer.type === CONST.WEBGL)
- {
- this.renderer.deleteTexture(this.texture);
- this.renderer.deleteFramebuffer(this.framebuffer);
- }
- },
-
/**
* [description]
*
@@ -52294,6 +52504,22 @@ var RenderTexture = new Class({
this.globalAlpha = alpha;
return this;
+ },
+
+ /**
+ * Internal destroy handler, called as part of the destroy process.
+ *
+ * @method Phaser.GameObjects.RenderTexture#preDestroy
+ * @protected
+ * @since 3.9.0
+ */
+ preDestroy: function ()
+ {
+ if (this.renderer && this.renderer.gl)
+ {
+ this.renderer.deleteTexture(this.texture);
+ this.renderer.deleteFramebuffer(this.framebuffer);
+ }
}
/**
@@ -52336,7 +52562,7 @@ module.exports = RenderTexture;
/***/ }),
-/* 233 */
+/* 234 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52348,10 +52574,10 @@ module.exports = RenderTexture;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var GravityWell = __webpack_require__(443);
+var GravityWell = __webpack_require__(445);
var List = __webpack_require__(92);
-var ParticleEmitter = __webpack_require__(441);
-var Render = __webpack_require__(894);
+var ParticleEmitter = __webpack_require__(443);
+var Render = __webpack_require__(896);
/**
* @classdesc
@@ -52437,7 +52663,7 @@ var ParticleEmitterManager = new Class({
* Names of this Emitter Manager's texture frames.
*
* @name Phaser.GameObjects.Particles.ParticleEmitterManager#frameNames
- * @type {Phaser.Textures.Frame[]}
+ * @type {string[]}
* @since 3.0.0
*/
this.frameNames = [];
@@ -52457,7 +52683,7 @@ var ParticleEmitterManager = new Class({
* A list of Emitters being managed by this Emitter Manager.
*
* @name Phaser.GameObjects.Particles.ParticleEmitterManager#emitters
- * @type {Phaser.Structs.List.}
+ * @type {Phaser.Structs.List.}
* @since 3.0.0
*/
this.emitters = new List(this);
@@ -52761,7 +52987,7 @@ module.exports = ParticleEmitterManager;
/***/ }),
-/* 234 */
+/* 235 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52774,11 +53000,11 @@ module.exports = ParticleEmitterManager;
* @namespace Phaser.Math.Easing.Stepped
*/
-module.exports = __webpack_require__(406);
+module.exports = __webpack_require__(408);
/***/ }),
-/* 235 */
+/* 236 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52793,15 +53019,15 @@ module.exports = __webpack_require__(406);
module.exports = {
- In: __webpack_require__(409),
- Out: __webpack_require__(408),
- InOut: __webpack_require__(407)
+ In: __webpack_require__(411),
+ Out: __webpack_require__(410),
+ InOut: __webpack_require__(409)
};
/***/ }),
-/* 236 */
+/* 237 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52816,15 +53042,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(412),
- Out: __webpack_require__(411),
- InOut: __webpack_require__(410)
+ In: __webpack_require__(414),
+ Out: __webpack_require__(413),
+ InOut: __webpack_require__(412)
};
/***/ }),
-/* 237 */
+/* 238 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52839,15 +53065,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(415),
- Out: __webpack_require__(414),
- InOut: __webpack_require__(413)
+ In: __webpack_require__(417),
+ Out: __webpack_require__(416),
+ InOut: __webpack_require__(415)
};
/***/ }),
-/* 238 */
+/* 239 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52862,15 +53088,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(418),
- Out: __webpack_require__(417),
- InOut: __webpack_require__(416)
+ In: __webpack_require__(420),
+ Out: __webpack_require__(419),
+ InOut: __webpack_require__(418)
};
/***/ }),
-/* 239 */
+/* 240 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52883,11 +53109,11 @@ module.exports = {
* @namespace Phaser.Math.Easing.Linear
*/
-module.exports = __webpack_require__(419);
+module.exports = __webpack_require__(421);
/***/ }),
-/* 240 */
+/* 241 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52902,15 +53128,15 @@ module.exports = __webpack_require__(419);
module.exports = {
- In: __webpack_require__(422),
- Out: __webpack_require__(421),
- InOut: __webpack_require__(420)
+ In: __webpack_require__(424),
+ Out: __webpack_require__(423),
+ InOut: __webpack_require__(422)
};
/***/ }),
-/* 241 */
+/* 242 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52925,15 +53151,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(425),
- Out: __webpack_require__(424),
- InOut: __webpack_require__(423)
+ In: __webpack_require__(427),
+ Out: __webpack_require__(426),
+ InOut: __webpack_require__(425)
};
/***/ }),
-/* 242 */
+/* 243 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52948,15 +53174,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(428),
- Out: __webpack_require__(427),
- InOut: __webpack_require__(426)
+ In: __webpack_require__(430),
+ Out: __webpack_require__(429),
+ InOut: __webpack_require__(428)
};
/***/ }),
-/* 243 */
+/* 244 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52971,15 +53197,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(431),
- Out: __webpack_require__(430),
- InOut: __webpack_require__(429)
+ In: __webpack_require__(433),
+ Out: __webpack_require__(432),
+ InOut: __webpack_require__(431)
};
/***/ }),
-/* 244 */
+/* 245 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -52994,15 +53220,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(434),
- Out: __webpack_require__(433),
- InOut: __webpack_require__(432)
+ In: __webpack_require__(436),
+ Out: __webpack_require__(435),
+ InOut: __webpack_require__(434)
};
/***/ }),
-/* 245 */
+/* 246 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -53017,15 +53243,15 @@ module.exports = {
module.exports = {
- In: __webpack_require__(437),
- Out: __webpack_require__(436),
- InOut: __webpack_require__(435)
+ In: __webpack_require__(439),
+ Out: __webpack_require__(438),
+ InOut: __webpack_require__(437)
};
/***/ }),
-/* 246 */
+/* 247 */
/***/ (function(module, exports) {
/**
@@ -53054,7 +53280,7 @@ module.exports = FloatBetween;
/***/ }),
-/* 247 */
+/* 248 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -53065,27 +53291,27 @@ module.exports = FloatBetween;
var Ellipse = __webpack_require__(111);
-Ellipse.Area = __webpack_require__(457);
-Ellipse.Circumference = __webpack_require__(168);
+Ellipse.Area = __webpack_require__(459);
+Ellipse.Circumference = __webpack_require__(169);
Ellipse.CircumferencePoint = __webpack_require__(110);
-Ellipse.Clone = __webpack_require__(456);
+Ellipse.Clone = __webpack_require__(458);
Ellipse.Contains = __webpack_require__(53);
-Ellipse.ContainsPoint = __webpack_require__(455);
-Ellipse.ContainsRect = __webpack_require__(454);
-Ellipse.CopyFrom = __webpack_require__(453);
-Ellipse.Equals = __webpack_require__(452);
-Ellipse.GetBounds = __webpack_require__(451);
-Ellipse.GetPoint = __webpack_require__(170);
-Ellipse.GetPoints = __webpack_require__(169);
-Ellipse.Offset = __webpack_require__(450);
-Ellipse.OffsetPoint = __webpack_require__(449);
-Ellipse.Random = __webpack_require__(130);
+Ellipse.ContainsPoint = __webpack_require__(457);
+Ellipse.ContainsRect = __webpack_require__(456);
+Ellipse.CopyFrom = __webpack_require__(455);
+Ellipse.Equals = __webpack_require__(454);
+Ellipse.GetBounds = __webpack_require__(453);
+Ellipse.GetPoint = __webpack_require__(171);
+Ellipse.GetPoints = __webpack_require__(170);
+Ellipse.Offset = __webpack_require__(452);
+Ellipse.OffsetPoint = __webpack_require__(451);
+Ellipse.Random = __webpack_require__(131);
module.exports = Ellipse;
/***/ }),
-/* 248 */
+/* 249 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -53097,8 +53323,8 @@ module.exports = Ellipse;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var GetBitmapTextSize = __webpack_require__(460);
-var Render = __webpack_require__(899);
+var GetBitmapTextSize = __webpack_require__(462);
+var Render = __webpack_require__(901);
/**
* @typedef {object} DisplayCallbackConfig
@@ -53493,7 +53719,7 @@ module.exports = DynamicBitmapText;
/***/ }),
-/* 249 */
+/* 250 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -53503,13 +53729,13 @@ module.exports = DynamicBitmapText;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ArrayUtils = __webpack_require__(145);
+var ArrayUtils = __webpack_require__(146);
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
var Rectangle = __webpack_require__(14);
-var Render = __webpack_require__(902);
-var Union = __webpack_require__(458);
+var Render = __webpack_require__(904);
+var Union = __webpack_require__(460);
var Vector2 = __webpack_require__(7);
/**
@@ -53558,6 +53784,7 @@ var Vector2 = __webpack_require__(7);
* @extends Phaser.GameObjects.Components.BlendMode
* @extends Phaser.GameObjects.Components.ComputedSize
* @extends Phaser.GameObjects.Components.Depth
+ * @extends Phaser.GameObjects.Components.Mask
* @extends Phaser.GameObjects.Components.ScrollFactor
* @extends Phaser.GameObjects.Components.Transform
* @extends Phaser.GameObjects.Components.Visible
@@ -53672,10 +53899,21 @@ var Container = new Class({
*
* @name Phaser.GameObjects.Container#_sortKey
* @type {string}
+ * @private
* @since 3.4.0
*/
this._sortKey = '';
+ /**
+ * A reference to the Scene Systems Event Emitter.
+ *
+ * @name Phaser.GameObjects.Container#_sysEvents
+ * @type {Phaser.Events.EventEmitter}
+ * @private
+ * @since 3.9.0
+ */
+ this._sysEvents = scene.sys.events;
+
this.setPosition(x, y);
this.clearAlpha();
@@ -53845,7 +54083,7 @@ var Container = new Class({
*/
addHandler: function (gameObject)
{
- gameObject.on('destroy', this.remove, this);
+ gameObject.once('destroy', this.remove, this);
if (this.exclusive)
{
@@ -53858,6 +54096,10 @@ var Container = new Class({
gameObject.parentContainer = this;
}
+
+ // Game Objects automatically listen to the Scene shutdown event, but
+ // we don't need this if they're in a Container
+ this._sysEvents.off('shutdown', gameObject.destroy, gameObject);
},
/**
@@ -53871,11 +54113,13 @@ var Container = new Class({
*/
removeHandler: function (gameObject)
{
- gameObject.off('destroy', this.remove, this);
+ gameObject.off('destroy', this.remove);
if (this.exclusive)
{
gameObject.parentContainer = null;
+
+ this._sysEvents.once('shutdown', gameObject.destroy, gameObject);
}
},
@@ -54690,21 +54934,13 @@ var Container = new Class({
},
/**
- * Destroys this Container, removing it from the Display List.
- *
- * If `Container.exclusive` is `true` then it will also destroy all children.
+ * Internal destroy handler, called as part of the destroy process.
*
- * Use this to remove a Container from your game if you don't ever plan to use it again.
- * As long as no reference to it exists within your own code it should become free for
- * garbage collection.
- *
- * If you just want to temporarily disable an object then look at using the
- * Game Object Pool instead of destroying it, as destroyed objects cannot be resurrected.
- *
- * @method Phaser.GameObjects.Container#destroy
- * @since 3.4.0
+ * @method Phaser.GameObjects.Container#preDestroy
+ * @protected
+ * @since 3.9.0
*/
- destroy: function ()
+ preDestroy: function ()
{
this.removeAll(!!this.exclusive);
@@ -54713,8 +54949,6 @@ var Container = new Class({
this.list = [];
this._displayList = null;
-
- GameObject.prototype.destroy.call(this);
}
});
@@ -54723,7 +54957,7 @@ module.exports = Container;
/***/ }),
-/* 250 */
+/* 251 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -54732,19 +54966,19 @@ module.exports = Container;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BlitterRender = __webpack_require__(906);
-var Bob = __webpack_require__(903);
+var BlitterRender = __webpack_require__(908);
+var Bob = __webpack_require__(905);
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
-var Frame = __webpack_require__(124);
+var Frame = __webpack_require__(125);
var GameObject = __webpack_require__(2);
var List = __webpack_require__(92);
/**
- * @callback Phaser.GameObjects.Blitter.BlitterFromCallback
+ * @callback Phaser.GameObjects.Blitter.CreateCallback
*
- * @param {Phaser.GameObjects.Blitter} blitter - [description]
- * @param {integer} index - [description]
+ * @param {Phaser.GameObjects.Blitter.Bob} bob - The Bob that was created by the Blitter.
+ * @param {integer} index - The position of the Bob within the Blitter display list.
*/
/**
@@ -54817,7 +55051,8 @@ var Blitter = new Class({
this.initPipeline('TextureTintPipeline');
/**
- * [description]
+ * The children of this Blitter.
+ * This List contains all of the Bob objects created by the Blitter.
*
* @name Phaser.GameObjects.Blitter#children
* @type {Phaser.Structs.List.}
@@ -54826,20 +55061,33 @@ var Blitter = new Class({
this.children = new List();
/**
- * [description]
+ * A transient array that holds all of the Bobs that will be rendered this frame.
+ * The array is re-populated whenever the dirty flag is set.
*
* @name Phaser.GameObjects.Blitter#renderList
* @type {Phaser.GameObjects.Blitter.Bob[]}
* @default []
+ * @private
* @since 3.0.0
*/
this.renderList = [];
+ /**
+ * Is the Blitter considered dirty?
+ * A 'dirty' Blitter has had its child count changed since the last frame.
+ *
+ * @name Phaser.GameObjects.Blitter#dirty
+ * @type {boolean}
+ * @since 3.0.0
+ */
this.dirty = false;
},
/**
- * [description]
+ * Creates a new Bob in this Blitter.
+ *
+ * The Bob is created at the given coordinates, relative to the Blitter and uses the given frame.
+ * A Bob can use any frame belonging to the texture bound to the Blitter.
*
* @method Phaser.GameObjects.Blitter#create
* @since 3.0.0
@@ -54876,15 +55124,15 @@ var Blitter = new Class({
},
/**
- * [description]
+ * Creates multiple Bob objects within this Blitter and then passes each of them to the specified callback.
*
* @method Phaser.GameObjects.Blitter#createFromCallback
* @since 3.0.0
*
- * @param {Phaser.GameObjects.Blitter.BlitterFromCallback} callback - The callback to invoke after creating a bob. It will be sent two arguments: The Bob and the index of the Bob.
+ * @param {Phaser.GameObjects.Blitter.CreateCallback} callback - The callback to invoke after creating a bob. It will be sent two arguments: The Bob and the index of the Bob.
* @param {integer} quantity - The quantity of Bob objects to create.
* @param {(string|integer|Phaser.Textures.Frame|string[]|integer[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
- * @param {boolean} [visible=true] - [description]
+ * @param {boolean} [visible=true] - Should the created Bob render or not?
*
* @return {Phaser.GameObjects.Blitter.Bob[]} An array of Bob objects that were created.
*/
@@ -54903,14 +55151,19 @@ var Blitter = new Class({
},
/**
- * [description]
+ * Creates multiple Bobs in one call.
+ *
+ * The amount created is controlled by a combination of the `quantity` argument and the number of frames provided.
+ *
+ * If the quantity is set to 10 and you provide 2 frames, then 20 Bobs will be created. 10 with the first
+ * frame and 10 with the second.
*
* @method Phaser.GameObjects.Blitter#createMultiple
* @since 3.0.0
*
* @param {integer} quantity - The quantity of Bob objects to create.
* @param {(string|integer|Phaser.Textures.Frame|string[]|integer[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
- * @param {boolean} [visible=true] - [description]
+ * @param {boolean} [visible=true] - Should the created Bob render or not?
*
* @return {Phaser.GameObjects.Blitter.Bob[]} An array of Bob objects that were created.
*/
@@ -54939,14 +55192,14 @@ var Blitter = new Class({
},
/**
- * [description]
+ * Checks if the given child can render or not, by checking its `visible` and `alpha` values.
*
* @method Phaser.GameObjects.Blitter#childCanRender
* @since 3.0.0
*
- * @param {Phaser.GameObjects.Blitter.Bob} child - [description]
+ * @param {Phaser.GameObjects.Blitter.Bob} child - The Bob to check for rendering.
*
- * @return {boolean} [description]
+ * @return {boolean} Returns `true` if the given child can render, otherwise `false`.
*/
childCanRender: function (child)
{
@@ -54954,7 +55207,8 @@ var Blitter = new Class({
},
/**
- * [description]
+ * Returns an array of Bobs to be rendered.
+ * If the Blitter is dirty then a new list is generated and stored in `renderList`.
*
* @method Phaser.GameObjects.Blitter#getRenderList
* @since 3.0.0
@@ -54973,7 +55227,7 @@ var Blitter = new Class({
},
/**
- * [description]
+ * Removes all Bobs from the children List and clears the dirty flag.
*
* @method Phaser.GameObjects.Blitter#clear
* @since 3.0.0
@@ -54982,6 +55236,20 @@ var Blitter = new Class({
{
this.children.removeAll();
this.dirty = true;
+ },
+
+ /**
+ * Internal destroy handler, called as part of the destroy process.
+ *
+ * @method Phaser.GameObjects.Blitter#preDestroy
+ * @protected
+ * @since 3.9.0
+ */
+ preDestroy: function ()
+ {
+ this.children.destroy();
+
+ this.renderList = [];
}
});
@@ -54990,7 +55258,7 @@ module.exports = Blitter;
/***/ }),
-/* 251 */
+/* 252 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -55002,9 +55270,9 @@ module.exports = Blitter;
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var GameObject = __webpack_require__(2);
-var GetBitmapTextSize = __webpack_require__(460);
-var ParseFromAtlas = __webpack_require__(910);
-var Render = __webpack_require__(909);
+var GetBitmapTextSize = __webpack_require__(462);
+var ParseFromAtlas = __webpack_require__(912);
+var Render = __webpack_require__(911);
/**
* @typedef {object} TextBounds
@@ -55315,7 +55583,7 @@ module.exports = BitmapText;
/***/ }),
-/* 252 */
+/* 253 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -55455,7 +55723,7 @@ module.exports = Range;
/***/ }),
-/* 253 */
+/* 254 */
/***/ (function(module, exports) {
/**
@@ -55484,7 +55752,7 @@ module.exports = RoundAwayFromZero;
/***/ }),
-/* 254 */
+/* 255 */
/***/ (function(module, exports) {
/**
@@ -55521,7 +55789,7 @@ module.exports = UppercaseFirst;
/***/ }),
-/* 255 */
+/* 256 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -55546,7 +55814,7 @@ var Vector2 = __webpack_require__(7);
* @param {number} rotation - Rotation of the transform point, in radians.
* @param {number} scaleX - Horizontal scale of the transform point.
* @param {number} scaleY - Vertical scale of the transform point.
- * @param {(Phaser.Math.Vector2|Phaser.Geom.Point|object)} [output] - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Geom.Point|object)} [output] - The output vector, point or object for the translated coordinates.
*
* @return {(Phaser.Math.Vector2|Phaser.Geom.Point|object)} The translated point.
*/
@@ -55587,7 +55855,7 @@ module.exports = TransformXY;
/***/ }),
-/* 256 */
+/* 257 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -56262,7 +56530,7 @@ earcut.flatten = function (data) {
};
/***/ }),
-/* 257 */
+/* 258 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -56274,10 +56542,10 @@ earcut.flatten = function (data) {
var Class = __webpack_require__(0);
var Commands = __webpack_require__(117);
-var Earcut = __webpack_require__(256);
-var ModelViewProjection = __webpack_require__(199);
-var ShaderSourceFS = __webpack_require__(520);
-var ShaderSourceVS = __webpack_require__(519);
+var Earcut = __webpack_require__(257);
+var ModelViewProjection = __webpack_require__(200);
+var ShaderSourceFS = __webpack_require__(522);
+var ShaderSourceVS = __webpack_require__(521);
var Utils = __webpack_require__(27);
var WebGLPipeline = __webpack_require__(83);
@@ -57544,7 +57812,7 @@ module.exports = FlatTintPipeline;
/***/ }),
-/* 258 */
+/* 259 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -57555,8 +57823,8 @@ module.exports = FlatTintPipeline;
*/
var Class = __webpack_require__(0);
-var ShaderSourceFS = __webpack_require__(522);
-var ShaderSourceVS = __webpack_require__(521);
+var ShaderSourceFS = __webpack_require__(524);
+var ShaderSourceVS = __webpack_require__(523);
var WebGLPipeline = __webpack_require__(83);
/**
@@ -57771,7 +58039,7 @@ module.exports = BitmapMaskPipeline;
/***/ }),
-/* 259 */
+/* 260 */
/***/ (function(module, exports) {
/**
@@ -57840,7 +58108,7 @@ module.exports = WebGLSnapshot;
/***/ }),
-/* 260 */
+/* 261 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -57855,13 +58123,13 @@ var CONST = __webpack_require__(20);
var IsSizePowerOfTwo = __webpack_require__(84);
var SpliceOne = __webpack_require__(55);
var Utils = __webpack_require__(27);
-var WebGLSnapshot = __webpack_require__(259);
+var WebGLSnapshot = __webpack_require__(260);
// Default Pipelines
-var BitmapMaskPipeline = __webpack_require__(258);
-var FlatTintPipeline = __webpack_require__(257);
-var ForwardDiffuseLightPipeline = __webpack_require__(146);
-var TextureTintPipeline = __webpack_require__(125);
+var BitmapMaskPipeline = __webpack_require__(259);
+var FlatTintPipeline = __webpack_require__(258);
+var ForwardDiffuseLightPipeline = __webpack_require__(147);
+var TextureTintPipeline = __webpack_require__(126);
/**
* @callback WebGLContextCallback
@@ -59843,7 +60111,7 @@ module.exports = WebGLRenderer;
/***/ }),
-/* 261 */
+/* 262 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -59853,7 +60121,7 @@ module.exports = WebGLRenderer;
*/
var modes = __webpack_require__(50);
-var CanvasFeatures = __webpack_require__(200);
+var CanvasFeatures = __webpack_require__(201);
/**
* [description]
@@ -59893,7 +60161,7 @@ module.exports = GetBlendModes;
/***/ }),
-/* 262 */
+/* 263 */
/***/ (function(module, exports) {
/**
@@ -60016,7 +60284,7 @@ module.exports = function (configRoundPixels)
/***/ }),
-/* 263 */
+/* 264 */
/***/ (function(module, exports) {
/**
@@ -60055,7 +60323,7 @@ module.exports = CanvasSnapshot;
/***/ }),
-/* 264 */
+/* 265 */
/***/ (function(module, exports) {
/**
@@ -60111,7 +60379,7 @@ module.exports = function (configRoundPixels)
/***/ }),
-/* 265 */
+/* 266 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -60121,14 +60389,14 @@ module.exports = function (configRoundPixels)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BlitImage = __webpack_require__(264);
-var CanvasSnapshot = __webpack_require__(263);
+var BlitImage = __webpack_require__(265);
+var CanvasSnapshot = __webpack_require__(264);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(20);
-var DrawImage = __webpack_require__(262);
-var GetBlendModes = __webpack_require__(261);
+var DrawImage = __webpack_require__(263);
+var GetBlendModes = __webpack_require__(262);
var ScaleModes = __webpack_require__(58);
-var Smoothing = __webpack_require__(127);
+var Smoothing = __webpack_require__(128);
/**
* @classdesc
@@ -60629,7 +60897,7 @@ module.exports = CanvasRenderer;
/***/ }),
-/* 266 */
+/* 267 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -60826,7 +61094,7 @@ module.exports = RequestAnimationFrame;
/***/ }),
-/* 267 */
+/* 268 */
/***/ (function(module, exports) {
/**
@@ -60855,7 +61123,7 @@ module.exports = RemoveFromDOM;
/***/ }),
-/* 268 */
+/* 269 */
/***/ (function(module, exports) {
/**
@@ -60912,7 +61180,7 @@ module.exports = ParseXML;
/***/ }),
-/* 269 */
+/* 270 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -60975,7 +61243,7 @@ module.exports = DOMContentLoaded;
/***/ }),
-/* 270 */
+/* 271 */
/***/ (function(module, exports) {
/**
@@ -60985,15 +61253,15 @@ module.exports = DOMContentLoaded;
*/
/**
- * [description]
+ * Compute a random integer between the `min` and `max` values, inclusive.
*
* @function Phaser.Math.Between
* @since 3.0.0
*
- * @param {integer} min - [description]
- * @param {integer} max - [description]
+ * @param {integer} min - The minimum value.
+ * @param {integer} max - The maximum value.
*
- * @return {integer} [description]
+ * @return {integer} The random integer.
*/
var Between = function (min, max)
{
@@ -61003,36 +61271,6 @@ var Between = function (min, max)
module.exports = Between;
-/***/ }),
-/* 271 */
-/***/ (function(module, exports) {
-
-/**
- * @author Richard Davey
- * @copyright 2018 Photon Storm Ltd.
- * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
- */
-
-/**
- * Calculates a linear (interpolation) value over t.
- *
- * @function Phaser.Math.Linear
- * @since 3.0.0
- *
- * @param {number} p0 - The first point
- * @param {number} p1 - The second point
- * @param {float} t -The percentage between p0 and p1 to return represented as a number between 0 and 1.
- *
- * @return {number} The step t% of the way between p0 and p1
- */
-var Linear = function (p0, p1, t)
-{
- return (p1 - p0) * t + p0;
-};
-
-module.exports = Linear;
-
-
/***/ }),
/* 272 */
/***/ (function(module, exports) {
@@ -61107,7 +61345,7 @@ module.exports = CanvasInterpolation;
*/
/**
- * [description]
+ * Calculates a Catmull-Rom value.
*
* @function Phaser.Math.CatmullRom
* @since 3.0.0
@@ -61118,7 +61356,7 @@ module.exports = CanvasInterpolation;
* @param {number} p2 - [description]
* @param {number} p3 - [description]
*
- * @return {number} [description]
+ * @return {number} The Catmull-Rom value.
*/
var CatmullRom = function (t, p0, p1, p2, p3)
{
@@ -61388,17 +61626,19 @@ var Class = __webpack_require__(0);
/**
* @classdesc
- * [description]
+ * A representation of a vector in 4D space.
+ *
+ * A four-component vector.
*
* @class Vector4
* @memberOf Phaser.Math
* @constructor
* @since 3.0.0
*
- * @param {number} [x] - [description]
- * @param {number} [y] - [description]
- * @param {number} [z] - [description]
- * @param {number} [w] - [description]
+ * @param {number} [x] - The x component of this Vector.
+ * @param {number} [y] - The y component of this Vector.
+ * @param {number} [z] - The z component of this Vector.
+ * @param {number} [w] - The w component of this Vector.
*/
var Vector4 = new Class({
@@ -61414,6 +61654,7 @@ var Vector4 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.x = 0;
/**
* The y component of this Vector.
@@ -61423,6 +61664,7 @@ var Vector4 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.y = 0;
/**
* The z component of this Vector.
@@ -61432,6 +61674,7 @@ var Vector4 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.z = 0;
/**
* The w component of this Vector.
@@ -61441,6 +61684,7 @@ var Vector4 = new Class({
* @default 0
* @since 3.0.0
*/
+ this.w = 0;
if (typeof x === 'object')
{
@@ -61459,12 +61703,12 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Make a clone of this Vector4.
*
* @method Phaser.Math.Vector4#clone
* @since 3.0.0
*
- * @return {Phaser.Math.Vector4} [description]
+ * @return {Phaser.Math.Vector4} A clone of this Vector4.
*/
clone: function ()
{
@@ -61472,14 +61716,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Copy the components of a given Vector into this Vector.
*
* @method Phaser.Math.Vector4#copy
* @since 3.0.0
*
- * @param {Phaser.Math.Vector4} src - [description]
+ * @param {Phaser.Math.Vector4} src - The Vector to copy the components from.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
copy: function (src)
{
@@ -61492,7 +61736,9 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Check whether this Vector is equal to a given Vector.
+ *
+ * Performs a strict quality check against each Vector's components.
*
* @method Phaser.Math.Vector4#equals
* @since 3.0.0
@@ -61507,17 +61753,17 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Set the `x`, `y`, `z` and `w` components of the this Vector to the given `x`, `y`, `z` and `w` values.
*
* @method Phaser.Math.Vector4#set
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {number} z - [description]
- * @param {number} w - [description]
+ * @param {(number|object)} x - The x value to set for this Vector, or an object containing x, y, z and w components.
+ * @param {number} y - The y value to set for this Vector.
+ * @param {number} z - The z value to set for this Vector.
+ * @param {number} w - The z value to set for this Vector.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
set: function (x, y, z, w)
{
@@ -61540,14 +61786,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Add a given Vector to this Vector. Addition is component-wise.
*
* @method Phaser.Math.Vector4#add
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to add to this Vector.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
add: function (v)
{
@@ -61560,14 +61806,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Subtract the given Vector from this Vector. Subtraction is component-wise.
*
* @method Phaser.Math.Vector4#subtract
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to subtract from this Vector.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
subtract: function (v)
{
@@ -61580,14 +61826,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Scale this Vector by the given value.
*
* @method Phaser.Math.Vector4#scale
* @since 3.0.0
*
- * @param {number} scale - [description]
+ * @param {number} scale - The value to scale this Vector by.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
scale: function (scale)
{
@@ -61600,12 +61846,12 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Calculate the length (or magnitude) of this Vector.
*
* @method Phaser.Math.Vector4#length
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The length of this Vector.
*/
length: function ()
{
@@ -61618,12 +61864,12 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Calculate the length of this Vector squared.
*
* @method Phaser.Math.Vector4#lengthSq
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The length of this Vector, squared.
*/
lengthSq: function ()
{
@@ -61636,12 +61882,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Normalize this Vector.
+ *
+ * Makes the vector a unit length vector (magnitude of 1) in the same direction.
*
* @method Phaser.Math.Vector4#normalize
* @since 3.0.0
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
normalize: function ()
{
@@ -61665,14 +61913,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Calculate the dot product of this Vector and the given Vector.
*
* @method Phaser.Math.Vector4#dot
* @since 3.0.0
*
- * @param {Phaser.Math.Vector4} v - [description]
+ * @param {Phaser.Math.Vector4} v - The Vector4 to dot product with this Vector4.
*
- * @return {number} [description]
+ * @return {number} The dot product of this Vector and the given Vector.
*/
dot: function (v)
{
@@ -61680,15 +61928,17 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Linearly interpolate between this Vector and the given Vector.
+ *
+ * Interpolates this Vector towards the given Vector.
*
* @method Phaser.Math.Vector4#lerp
* @since 3.0.0
*
- * @param {Phaser.Math.Vector4} v - [description]
- * @param {number} [t=0] - [description]
+ * @param {Phaser.Math.Vector4} v - The Vector4 to interpolate towards.
+ * @param {number} [t=0] - The interpolation percentage, between 0 and 1.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
lerp: function (v, t)
{
@@ -61708,14 +61958,16 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Perform a component-wise multiplication between this Vector and the given Vector.
+ *
+ * Multiplies this Vector by the given Vector.
*
* @method Phaser.Math.Vector4#multiply
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to multiply this Vector by.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
multiply: function (v)
{
@@ -61728,14 +61980,16 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Perform a component-wise division between this Vector and the given Vector.
+ *
+ * Divides this Vector by the given Vector.
*
* @method Phaser.Math.Vector4#divide
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to divide this Vector by.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
divide: function (v)
{
@@ -61748,14 +62002,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Calculate the distance between this Vector and the given Vector.
*
* @method Phaser.Math.Vector4#distance
* @since 3.0.0
*
* @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
*
- * @return {number} [description]
+ * @return {number} The distance from this Vector to the given Vector.
*/
distance: function (v)
{
@@ -61768,14 +62022,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Calculate the distance between this Vector, and the given Vector, squared.
*
* @method Phaser.Math.Vector4#distanceSq
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to calculate the distance to.
*
- * @return {number} [description]
+ * @return {number} The distance from this Vector to the given Vector, squared.
*/
distanceSq: function (v)
{
@@ -61788,12 +62042,12 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Negate the `x`, `y`, `z` and `w` components of this Vector.
*
* @method Phaser.Math.Vector4#negate
* @since 3.0.0
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
negate: function ()
{
@@ -61806,14 +62060,14 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Transform this Vector with the given Matrix.
*
* @method Phaser.Math.Vector4#transformMat4
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} mat - [description]
+ * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector4 with.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
transformMat4: function (mat)
{
@@ -61831,21 +62085,20 @@ var Vector4 = new Class({
return this;
},
- // TODO: is this really the same as Vector3?
- // Also, what about this: http://molecularmusings.wordpress.com/2013/05/24/a-faster-quaternion-vector-multiplication/
-
/**
- * [description]
+ * Transform this Vector with the given Quaternion.
*
* @method Phaser.Math.Vector4#transformQuat
* @since 3.0.0
*
- * @param {Phaser.Math.Quaternion} q - [description]
+ * @param {Phaser.Math.Quaternion} q - The Quaternion to transform this Vector with.
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
transformQuat: function (q)
{
+ // TODO: is this really the same as Vector3?
+ // Also, what about this: http://molecularmusings.wordpress.com/2013/05/24/a-faster-quaternion-vector-multiplication/
// benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations
var x = this.x;
var y = this.y;
@@ -61870,12 +62123,12 @@ var Vector4 = new Class({
},
/**
- * [description]
+ * Make this Vector the zero vector (0, 0, 0, 0).
*
* @method Phaser.Math.Vector4#reset
* @since 3.0.0
*
- * @return {Phaser.Math.Vector4} This Vector4 object.
+ * @return {Phaser.Math.Vector4} This Vector4.
*/
reset: function ()
{
@@ -61920,14 +62173,14 @@ var EPSILON = 0.000001;
/**
* @classdesc
- * [description]
+ * A four-dimensional matrix.
*
* @class Matrix4
* @memberOf Phaser.Math
* @constructor
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} [m] - [description]
+ * @param {Phaser.Math.Matrix4} [m] - Optional Matrix4 to copy values from.
*/
var Matrix4 = new Class({
@@ -61936,7 +62189,7 @@ var Matrix4 = new Class({
function Matrix4 (m)
{
/**
- * [description]
+ * The matrix values.
*
* @name Phaser.Math.Matrix4#val
* @type {Float32Array}
@@ -61957,12 +62210,12 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Make a clone of this Matrix4.
*
* @method Phaser.Math.Matrix4#clone
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} A new Matrix4 object.
+ * @return {Phaser.Math.Matrix4} A clone of this Matrix4.
*/
clone: function ()
{
@@ -61972,14 +62225,14 @@ var Matrix4 = new Class({
// TODO - Should work with basic values
/**
- * [description]
+ * This method is an alias for `Matrix4.copy`.
*
* @method Phaser.Math.Matrix4#set
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} src - [description]
+ * @param {Phaser.Math.Matrix4} src - The Matrix to set the values of this Matrix's from.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
set: function (src)
{
@@ -61987,14 +62240,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Copy the values of a given Matrix into this Matrix.
*
* @method Phaser.Math.Matrix4#copy
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} src - [description]
+ * @param {Phaser.Math.Matrix4} src - The Matrix to copy the values from.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
copy: function (src)
{
@@ -62022,14 +62275,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the values of this Matrix from the given array.
*
* @method Phaser.Math.Matrix4#fromArray
* @since 3.0.0
*
- * @param {array} a - [description]
+ * @param {array} a - The array to copy the values from.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
fromArray: function (a)
{
@@ -62056,12 +62309,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Reset this Matrix.
+ *
+ * Sets all values to `0`.
*
* @method Phaser.Math.Matrix4#zero
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
zero: function ()
{
@@ -62088,16 +62343,16 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the `x`, `y` and `z` values of this Matrix.
*
* @method Phaser.Math.Matrix4#xyz
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {number} z - [description]
+ * @param {number} x - The x value.
+ * @param {number} y - The y value.
+ * @param {number} z - The z value.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
xyz: function (x, y, z)
{
@@ -62113,16 +62368,16 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the scaling values of this Matrix.
*
* @method Phaser.Math.Matrix4#scaling
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {number} z - [description]
+ * @param {number} x - The x scaling value.
+ * @param {number} y - The y scaling value.
+ * @param {number} z - The z scaling value.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
scaling: function (x, y, z)
{
@@ -62139,12 +62394,12 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Reset this Matrix to an identity (default) matrix.
*
* @method Phaser.Math.Matrix4#identity
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
identity: function ()
{
@@ -62171,12 +62426,12 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Transpose this Matrix.
*
* @method Phaser.Math.Matrix4#transpose
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
transpose: function ()
{
@@ -62206,12 +62461,12 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Invert this Matrix.
*
* @method Phaser.Math.Matrix4#invert
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
invert: function ()
{
@@ -62288,7 +62543,7 @@ var Matrix4 = new Class({
* @method Phaser.Math.Matrix4#adjoint
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
adjoint: function ()
{
@@ -62335,12 +62590,12 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Calculate the determinant of this Matrix.
*
* @method Phaser.Math.Matrix4#determinant
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The determinant of this Matrix.
*/
determinant: function ()
{
@@ -62384,14 +62639,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Multiply this Matrix by the given Matrix.
*
* @method Phaser.Math.Matrix4#multiply
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} src - [description]
+ * @param {Phaser.Math.Matrix4} src - The Matrix to multiply this Matrix by.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
multiply: function (src)
{
@@ -62471,7 +62726,7 @@ var Matrix4 = new Class({
*
* @param {Phaser.Math.Matrix4} src - [description]
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
multiplyLocal: function (src)
{
@@ -62503,14 +62758,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Translate this Matrix using the given Vector.
*
* @method Phaser.Math.Matrix4#translate
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to translate this Matrix with.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
translate: function (v)
{
@@ -62528,14 +62783,16 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Apply a scale transformation to this Matrix.
+ *
+ * Uses the `x`, `y` and `z` components of the given Vector to scale the Matrix.
*
* @method Phaser.Math.Matrix4#scale
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to scale this Matrix with.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
scale: function (v)
{
@@ -62571,7 +62828,7 @@ var Matrix4 = new Class({
* @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} axis - [description]
* @param {float} angle - The angle of rotation in radians.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
makeRotationAxis: function (axis, angle)
{
@@ -62586,6 +62843,7 @@ var Matrix4 = new Class({
var tx = t * x;
var ty = t * y;
+ // TODO: Fix by using fromArray(), or change set() to accept individual values
this.set(
tx * x + c, tx * y - s * z, tx * z + s * y, 0,
tx * y + s * z, ty * y + c, ty * z - s * x, 0,
@@ -62596,17 +62854,16 @@ var Matrix4 = new Class({
return this;
},
- // aka rotationAxis
/**
- * [description]
+ * Apply a rotation transformation to this Matrix.
*
* @method Phaser.Math.Matrix4#rotate
* @since 3.0.0
*
- * @param {float} rad - [description]
- * @param {Phaser.Math.Vector3} axis - [description]
+ * @param {float} rad - The angle in radians to rotate by.
+ * @param {Phaser.Math.Vector3} axis - The axis to rotate upon.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
rotate: function (rad, axis)
{
@@ -62676,14 +62933,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Rotate this matrix on its X axis.
*
* @method Phaser.Math.Matrix4#rotateX
* @since 3.0.0
*
- * @param {float} rad - [description]
+ * @param {float} rad - The angle in radians to rotate by.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
rotateX: function (rad)
{
@@ -62715,14 +62972,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Rotate this matrix on its Y axis.
*
* @method Phaser.Math.Matrix4#rotateY
* @since 3.0.0
*
- * @param {float} rad - [description]
+ * @param {float} rad - The angle to rotate by, in radians.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
rotateY: function (rad)
{
@@ -62754,14 +63011,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Rotate this matrix on its Z axis.
*
* @method Phaser.Math.Matrix4#rotateZ
* @since 3.0.0
*
- * @param {float} rad - [description]
+ * @param {float} rad - The angle to rotate by, in radians.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
rotateZ: function (rad)
{
@@ -62793,15 +63050,15 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the values of this Matrix from the given rotation Quaternion and translation Vector.
*
* @method Phaser.Math.Matrix4#fromRotationTranslation
* @since 3.0.0
*
- * @param {Phaser.Math.Quaternion} q - [description]
- * @param {Phaser.Math.Vector3} v - [description]
+ * @param {Phaser.Math.Quaternion} q - The Quaternion to set rotation from.
+ * @param {Phaser.Math.Vector3} v - The Vector to set translation from.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
fromRotationTranslation: function (q, v)
{
@@ -62853,14 +63110,14 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the values of this Matrix from the given Quaternion.
*
* @method Phaser.Math.Matrix4#fromQuat
* @since 3.0.0
*
- * @param {Phaser.Math.Quaternion} q - [description]
+ * @param {Phaser.Math.Quaternion} q - The Quaternion to set the values of this Matrix from.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
fromQuat: function (q)
{
@@ -62911,7 +63168,7 @@ var Matrix4 = new Class({
},
/**
- * Generates a frustum matrix with the given bounds.
+ * Generate a frustum matrix with the given bounds.
*
* @method Phaser.Math.Matrix4#frustum
* @since 3.0.0
@@ -62923,7 +63180,7 @@ var Matrix4 = new Class({
* @param {number} near - The near bound of the frustum.
* @param {number} far - The far bound of the frustum.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
frustum: function (left, right, bottom, top, near, far)
{
@@ -62957,8 +63214,7 @@ var Matrix4 = new Class({
},
/**
- * Generates a perspective projection matrix with the given bounds.
- * perspective fov lh
+ * Generate a perspective projection matrix with the given bounds.
*
* @method Phaser.Math.Matrix4#perspective
* @since 3.0.0
@@ -62968,7 +63224,7 @@ var Matrix4 = new Class({
* @param {number} near - Near bound of the frustum.
* @param {number} far - Far bound of the frustum.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
perspective: function (fovy, aspect, near, far)
{
@@ -63000,17 +63256,17 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Generate a perspective projection matrix with the given bounds.
*
* @method Phaser.Math.Matrix4#perspectiveLH
* @since 3.0.0
*
- * @param {number} width - [description]
- * @param {number} height - [description]
+ * @param {number} width - The width of the frustum.
+ * @param {number} height - The height of the frustum.
* @param {number} near - Near bound of the frustum.
* @param {number} far - Far bound of the frustum.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
perspectiveLH: function (width, height, near, far)
{
@@ -63040,7 +63296,7 @@ var Matrix4 = new Class({
},
/**
- * Generates a orthogonal projection matrix with the given bounds.
+ * Generate an orthogonal projection matrix with the given bounds.
*
* @method Phaser.Math.Matrix4#ortho
* @since 3.0.0
@@ -63052,7 +63308,7 @@ var Matrix4 = new Class({
* @param {number} near - The near bound of the frustum.
* @param {number} far - The far bound of the frustum.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
ortho: function (left, right, bottom, top, near, far)
{
@@ -63090,7 +63346,7 @@ var Matrix4 = new Class({
},
/**
- * Generates a look-at matrix with the given eye position, focal point, and up axis.
+ * Generate a look-at matrix with the given eye position, focal point, and up axis.
*
* @method Phaser.Math.Matrix4#lookAt
* @since 3.0.0
@@ -63099,7 +63355,7 @@ var Matrix4 = new Class({
* @param {Phaser.Math.Vector3} center - Point the viewer is looking at
* @param {Phaser.Math.Vector3} up - vec3 pointing up.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
lookAt: function (eye, center, up)
{
@@ -63198,7 +63454,7 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Set the values of this matrix from the given `yaw`, `pitch` and `roll` values.
*
* @method Phaser.Math.Matrix4#yawPitchRoll
* @since 3.0.0
@@ -63207,7 +63463,7 @@ var Matrix4 = new Class({
* @param {number} pitch - [description]
* @param {number} roll - [description]
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
yawPitchRoll: function (yaw, pitch, roll)
{
@@ -63259,18 +63515,18 @@ var Matrix4 = new Class({
},
/**
- * [description]
+ * Generate a world matrix from the given rotation, position, scale, view matrix and projection matrix.
*
* @method Phaser.Math.Matrix4#setWorldMatrix
* @since 3.0.0
*
- * @param {Phaser.Math.Vector3} rotation - [description]
- * @param {Phaser.Math.Vector3} position - [description]
- * @param {Phaser.Math.Vector3} scale - [description]
- * @param {Phaser.Math.Matrix4} [viewMatrix] - [description]
- * @param {Phaser.Math.Matrix4} [projectionMatrix] - [description]
+ * @param {Phaser.Math.Vector3} rotation - The rotation of the world matrix.
+ * @param {Phaser.Math.Vector3} position - The position of the world matrix.
+ * @param {Phaser.Math.Vector3} scale - The scale of the world matrix.
+ * @param {Phaser.Math.Matrix4} [viewMatrix] - The view matrix.
+ * @param {Phaser.Math.Matrix4} [projectionMatrix] - The projection matrix.
*
- * @return {Phaser.Math.Matrix4} This Matrix4 object.
+ * @return {Phaser.Math.Matrix4} This Matrix4.
*/
setWorldMatrix: function (rotation, position, scale, viewMatrix, projectionMatrix)
{
@@ -63315,11 +63571,11 @@ module.exports = Matrix4;
var Class = __webpack_require__(0);
var Matrix4 = __webpack_require__(278);
-var RandomXYZ = __webpack_require__(552);
-var RandomXYZW = __webpack_require__(551);
-var RotateVec3 = __webpack_require__(550);
+var RandomXYZ = __webpack_require__(554);
+var RandomXYZW = __webpack_require__(553);
+var RotateVec3 = __webpack_require__(552);
var Set = __webpack_require__(70);
-var Sprite3D = __webpack_require__(148);
+var Sprite3D = __webpack_require__(149);
var Vector2 = __webpack_require__(7);
var Vector3 = __webpack_require__(86);
var Vector4 = __webpack_require__(277);
@@ -64623,6 +64879,92 @@ module.exports = HexStringToColor;
/* 286 */
/***/ (function(module, exports) {
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+/**
+ * Calculate a smooth interpolation percentage of `x` between `min` and `max`.
+ *
+ * The function receives the number `x` as an argument and returns 0 if `x` is less than or equal to the left edge,
+ * 1 if `x` is greater than or equal to the right edge, and smoothly interpolates, using a Hermite polynomial,
+ * between 0 and 1 otherwise.
+ *
+ * @function Phaser.Math.SmoothStep
+ * @since 3.0.0
+ * @see {@link https://en.wikipedia.org/wiki/Smoothstep}
+ *
+ * @param {number} x - The input value.
+ * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.
+ * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.
+ *
+ * @return {number} The percentage of interpolation, between 0 and 1.
+ */
+var SmoothStep = function (x, min, max)
+{
+ if (x <= min)
+ {
+ return 0;
+ }
+
+ if (x >= max)
+ {
+ return 1;
+ }
+
+ x = (x - min) / (max - min);
+
+ return x * x * (3 - 2 * x);
+};
+
+module.exports = SmoothStep;
+
+
+/***/ }),
+/* 287 */
+/***/ (function(module, exports) {
+
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+/**
+ * Calculate a smoother interpolation percentage of `x` between `min` and `max`.
+ *
+ * The function receives the number `x` as an argument and returns 0 if `x` is less than or equal to the left edge,
+ * 1 if `x` is greater than or equal to the right edge, and smoothly interpolates, using a Hermite polynomial,
+ * between 0 and 1 otherwise.
+ *
+ * Produces an even smoother interpolation than {@link Phaser.Math.SmoothStep}.
+ *
+ * @function Phaser.Math.SmootherStep
+ * @since 3.0.0
+ * @see {@link https://en.wikipedia.org/wiki/Smoothstep#Variations}
+ *
+ * @param {number} x - The input value.
+ * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.
+ * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.
+ *
+ * @return {number} The percentage of interpolation, between 0 and 1.
+ */
+var SmootherStep = function (x, min, max)
+{
+ x = Math.max(0, Math.min(1, (x - min) / (max - min)));
+
+ return x * x * x * (x * (x * 6 - 15) + 10);
+};
+
+module.exports = SmootherStep;
+
+
+/***/ }),
+/* 288 */
+/***/ (function(module, exports) {
+
/**
* @author Richard Davey
* @copyright 2018 Photon Storm Ltd.
@@ -64635,13 +64977,13 @@ module.exports = HexStringToColor;
* @function Phaser.Math.RotateAroundDistance
* @since 3.0.0
*
- * @param {(Phaser.Geom.Point|object)} point - The Point to be rotated.
+ * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.
* @param {number} x - The horizontal coordinate to rotate around.
* @param {number} y - The vertical coordinate to rotate around.
* @param {number} angle - The angle of rotation in radians.
* @param {number} distance - [description]
*
- * @return {Phaser.Geom.Point} [description]
+ * @return {Phaser.Geom.Point} The given point.
*/
var RotateAroundDistance = function (point, x, y, angle, distance)
{
@@ -64657,7 +64999,7 @@ module.exports = RotateAroundDistance;
/***/ }),
-/* 287 */
+/* 289 */
/***/ (function(module, exports) {
/**
@@ -64697,7 +65039,7 @@ module.exports = RotateRight;
/***/ }),
-/* 288 */
+/* 290 */
/***/ (function(module, exports) {
/**
@@ -64737,7 +65079,7 @@ module.exports = RotateLeft;
/***/ }),
-/* 289 */
+/* 291 */
/***/ (function(module, exports) {
/**
@@ -64866,7 +65208,7 @@ module.exports = Pipeline;
/***/ }),
-/* 290 */
+/* 292 */
/***/ (function(module, exports) {
/**
@@ -64876,17 +65218,17 @@ module.exports = Pipeline;
*/
/**
- * [description]
+ * Rotate a `point` around `x` and `y` by the given `angle`.
*
* @function Phaser.Math.RotateAround
* @since 3.0.0
*
- * @param {(Phaser.Geom.Point|object)} point - [description]
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {number} angle - [description]
+ * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.
+ * @param {number} x - The horizontal coordinate to rotate around.
+ * @param {number} y - The vertical coordinate to rotate around.
+ * @param {number} angle - The angle of rotation in radians.
*
- * @return {Phaser.Geom.Point} [description]
+ * @return {Phaser.Geom.Point} The given point, rotated by the given angle around the given coordinates.
*/
var RotateAround = function (point, x, y, angle)
{
@@ -64906,7 +65248,7 @@ module.exports = RotateAround;
/***/ }),
-/* 291 */
+/* 293 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -64948,7 +65290,7 @@ module.exports = GetPoint;
/***/ }),
-/* 292 */
+/* 294 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -64957,7 +65299,7 @@ module.exports = GetPoint;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetPoint = __webpack_require__(131);
+var GetPoint = __webpack_require__(132);
var Perimeter = __webpack_require__(96);
// Return an array of points from the perimeter of the rectangle
@@ -65002,7 +65344,7 @@ module.exports = GetPoints;
/***/ }),
-/* 293 */
+/* 295 */
/***/ (function(module, exports) {
/**
@@ -65030,7 +65372,7 @@ module.exports = Circumference;
/***/ }),
-/* 294 */
+/* 296 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -65039,8 +65381,8 @@ module.exports = Circumference;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Circumference = __webpack_require__(293);
-var CircumferencePoint = __webpack_require__(132);
+var Circumference = __webpack_require__(295);
+var CircumferencePoint = __webpack_require__(133);
var FromPercent = __webpack_require__(64);
var MATH_CONST = __webpack_require__(16);
@@ -65082,7 +65424,7 @@ module.exports = GetPoints;
/***/ }),
-/* 295 */
+/* 297 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -65095,14 +65437,14 @@ var Class = __webpack_require__(0);
/**
* @classdesc
- * [description]
+ * A seeded random data generator.
*
* @class RandomDataGenerator
* @memberOf Phaser.Math
* @constructor
* @since 3.0.0
*
- * @param {string[]} [seeds] - [description]
+ * @param {string[]} [seeds] - The seeds.
*/
var RandomDataGenerator = new Class({
@@ -65166,7 +65508,7 @@ var RandomDataGenerator = new Class({
this.n = 0;
/**
- * [description]
+ * Signs to choose from.
*
* @name Phaser.Math.RandomDataGenerator#signs
* @type {number[]}
@@ -65187,7 +65529,7 @@ var RandomDataGenerator = new Class({
* @since 3.0.0
* @private
*
- * @return {number} [description]
+ * @return {number} A random number.
*/
rnd: function ()
{
@@ -65208,7 +65550,7 @@ var RandomDataGenerator = new Class({
* @since 3.0.0
* @private
*
- * @param {string} data - [description]
+ * @param {string} data - The value to hash.
*
* @return {number} The hashed value.
*/
@@ -65237,12 +65579,12 @@ var RandomDataGenerator = new Class({
},
/**
- * [description]
+ * Initialize the state of the random data generator.
*
* @method Phaser.Math.RandomDataGenerator#init
* @since 3.0.0
*
- * @param {(string|string[])} seeds - [description]
+ * @param {(string|string[])} seeds - The seeds to initialize the random data generator with.
*/
init: function (seeds)
{
@@ -65543,8 +65885,8 @@ var RandomDataGenerator = new Class({
*
* @method Phaser.Math.RandomDataGenerator#shuffle
* @since 3.7.0
- *
- * @param {array[]} [array] - The array to be shuffled.
+ *
+ * @param {array} [array] - The array to be shuffled.
*
* @return {array} The shuffled array.
*/
@@ -65570,7 +65912,7 @@ module.exports = RandomDataGenerator;
/***/ }),
-/* 296 */
+/* 298 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -65579,7 +65921,7 @@ module.exports = RandomDataGenerator;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var CircumferencePoint = __webpack_require__(132);
+var CircumferencePoint = __webpack_require__(133);
var FromPercent = __webpack_require__(64);
var MATH_CONST = __webpack_require__(16);
var Point = __webpack_require__(5);
@@ -65613,7 +65955,7 @@ module.exports = GetPoint;
/***/ }),
-/* 297 */
+/* 299 */
/***/ (function(module, exports) {
/**
@@ -65747,9 +66089,9 @@ module.exports = ALIGN_CONST;
/***/ }),
-/* 298 */,
-/* 299 */,
-/* 300 */
+/* 300 */,
+/* 301 */,
+/* 302 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -66717,7 +67059,7 @@ module.exports = Animation;
/***/ }),
-/* 301 */
+/* 303 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -66727,9 +67069,9 @@ module.exports = Animation;
*/
var Class = __webpack_require__(0);
-var NumberTweenBuilder = __webpack_require__(158);
+var NumberTweenBuilder = __webpack_require__(159);
var PluginCache = __webpack_require__(12);
-var TimelineBuilder = __webpack_require__(157);
+var TimelineBuilder = __webpack_require__(158);
var TWEEN_CONST = __webpack_require__(60);
var TweenBuilder = __webpack_require__(72);
@@ -67398,7 +67740,7 @@ module.exports = TweenManager;
/***/ }),
-/* 302 */
+/* 304 */
/***/ (function(module, exports) {
/**
@@ -67470,7 +67812,7 @@ module.exports = [
/***/ }),
-/* 303 */
+/* 305 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -67488,19 +67830,19 @@ module.exports = {
GetBoolean: __webpack_require__(61),
GetEaseFunction: __webpack_require__(62),
GetNewValue: __webpack_require__(73),
- GetProps: __webpack_require__(160),
+ GetProps: __webpack_require__(161),
GetTargets: __webpack_require__(101),
- GetTweens: __webpack_require__(159),
+ GetTweens: __webpack_require__(160),
GetValueOp: __webpack_require__(100),
- NumberTweenBuilder: __webpack_require__(158),
- TimelineBuilder: __webpack_require__(157),
+ NumberTweenBuilder: __webpack_require__(159),
+ TimelineBuilder: __webpack_require__(158),
TweenBuilder: __webpack_require__(72)
};
/***/ }),
-/* 304 */
+/* 306 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -67518,12 +67860,12 @@ var Extend = __webpack_require__(18);
var Tweens = {
- Builders: __webpack_require__(303),
+ Builders: __webpack_require__(305),
- TweenManager: __webpack_require__(301),
+ TweenManager: __webpack_require__(303),
Tween: __webpack_require__(98),
TweenData: __webpack_require__(97),
- Timeline: __webpack_require__(156)
+ Timeline: __webpack_require__(157)
};
@@ -67534,7 +67876,7 @@ module.exports = Tweens;
/***/ }),
-/* 305 */
+/* 307 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -67545,7 +67887,7 @@ module.exports = Tweens;
var Class = __webpack_require__(0);
var PluginCache = __webpack_require__(12);
-var TimerEvent = __webpack_require__(161);
+var TimerEvent = __webpack_require__(162);
/**
* @classdesc
@@ -67928,7 +68270,7 @@ module.exports = Clock;
/***/ }),
-/* 306 */
+/* 308 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -67943,14 +68285,14 @@ module.exports = Clock;
module.exports = {
- Clock: __webpack_require__(305),
- TimerEvent: __webpack_require__(161)
+ Clock: __webpack_require__(307),
+ TimerEvent: __webpack_require__(162)
};
/***/ }),
-/* 307 */
+/* 309 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -67964,7 +68306,7 @@ var Components = __webpack_require__(15);
var CONST = __webpack_require__(20);
var GameObject = __webpack_require__(2);
var StaticTilemapLayerRender = __webpack_require__(619);
-var TilemapComponents = __webpack_require__(137);
+var TilemapComponents = __webpack_require__(138);
var Utils = __webpack_require__(27);
/**
@@ -68979,7 +69321,7 @@ module.exports = StaticTilemapLayer;
/***/ }),
-/* 308 */
+/* 310 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -68992,7 +69334,7 @@ var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
var DynamicTilemapLayerRender = __webpack_require__(622);
var GameObject = __webpack_require__(2);
-var TilemapComponents = __webpack_require__(137);
+var TilemapComponents = __webpack_require__(138);
/**
* @classdesc
@@ -70097,7 +70439,7 @@ module.exports = DynamicTilemapLayer;
/***/ }),
-/* 309 */
+/* 311 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -70108,15 +70450,15 @@ module.exports = DynamicTilemapLayer;
var Class = __webpack_require__(0);
var DegToRad = __webpack_require__(38);
-var DynamicTilemapLayer = __webpack_require__(308);
+var DynamicTilemapLayer = __webpack_require__(310);
var Extend = __webpack_require__(18);
var Formats = __webpack_require__(26);
var LayerData = __webpack_require__(103);
-var Rotate = __webpack_require__(344);
-var StaticTilemapLayer = __webpack_require__(307);
+var Rotate = __webpack_require__(346);
+var StaticTilemapLayer = __webpack_require__(309);
var Tile = __webpack_require__(65);
-var TilemapComponents = __webpack_require__(137);
-var Tileset = __webpack_require__(133);
+var TilemapComponents = __webpack_require__(138);
+var Tileset = __webpack_require__(134);
/**
* @callback TilemapFilterCallback
@@ -72375,7 +72717,7 @@ module.exports = Tilemap;
/***/ }),
-/* 310 */
+/* 312 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72446,7 +72788,7 @@ module.exports = ParseWeltmeister;
/***/ }),
-/* 311 */
+/* 313 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72552,7 +72894,7 @@ module.exports = ObjectLayer;
/***/ }),
-/* 312 */
+/* 314 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72562,7 +72904,7 @@ module.exports = ObjectLayer;
*/
var Pick = __webpack_require__(628);
-var ParseGID = __webpack_require__(314);
+var ParseGID = __webpack_require__(316);
var copyPoints = function (p) { return { x: p.x, y: p.y }; };
@@ -72634,7 +72976,7 @@ module.exports = ParseObject;
/***/ }),
-/* 313 */
+/* 315 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72806,7 +73148,7 @@ module.exports = ImageCollection;
/***/ }),
-/* 314 */
+/* 316 */
/***/ (function(module, exports) {
/**
@@ -72896,7 +73238,7 @@ module.exports = ParseGID;
/***/ }),
-/* 315 */
+/* 317 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72976,7 +73318,7 @@ module.exports = ParseJSONTiled;
/***/ }),
-/* 316 */
+/* 318 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -72986,7 +73328,7 @@ module.exports = ParseJSONTiled;
*/
var Formats = __webpack_require__(26);
-var Parse2DArray = __webpack_require__(214);
+var Parse2DArray = __webpack_require__(215);
/**
* Parses a CSV string of tile indexes into a new MapData object with a single layer.
@@ -73024,7 +73366,7 @@ module.exports = ParseCSV;
/***/ }),
-/* 317 */
+/* 319 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73034,10 +73376,10 @@ module.exports = ParseCSV;
*/
var Formats = __webpack_require__(26);
-var Parse2DArray = __webpack_require__(214);
-var ParseCSV = __webpack_require__(316);
-var ParseJSONTiled = __webpack_require__(315);
-var ParseWeltmeister = __webpack_require__(310);
+var Parse2DArray = __webpack_require__(215);
+var ParseCSV = __webpack_require__(318);
+var ParseJSONTiled = __webpack_require__(317);
+var ParseWeltmeister = __webpack_require__(312);
/**
* Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format
@@ -73094,7 +73436,7 @@ module.exports = Parse;
/***/ }),
-/* 318 */
+/* 320 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73105,7 +73447,7 @@ module.exports = Parse;
var Tile = __webpack_require__(65);
var IsInLayerBounds = __webpack_require__(104);
-var CalculateFacesAt = __webpack_require__(217);
+var CalculateFacesAt = __webpack_require__(218);
/**
* Removes the tile at the given tile coordinates in the specified layer and updates the layer's
@@ -73156,7 +73498,7 @@ module.exports = RemoveTileAt;
/***/ }),
-/* 319 */
+/* 321 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73199,7 +73541,7 @@ module.exports = HasTileAt;
/***/ }),
-/* 320 */
+/* 322 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73243,7 +73585,7 @@ module.exports = ReplaceByIndex;
/***/ }),
-/* 321 */
+/* 323 */
/***/ (function(module, exports) {
/**
@@ -73283,7 +73625,7 @@ module.exports = CONST;
/***/ }),
-/* 322 */
+/* 324 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73293,7 +73635,7 @@ module.exports = CONST;
*/
var Extend = __webpack_require__(18);
-var FilterMode = __webpack_require__(321);
+var FilterMode = __webpack_require__(323);
/**
* @namespace Phaser.Textures
@@ -73316,11 +73658,11 @@ var FilterMode = __webpack_require__(321);
var Textures = {
FilterMode: FilterMode,
- Frame: __webpack_require__(124),
- Parsers: __webpack_require__(173),
+ Frame: __webpack_require__(125),
+ Parsers: __webpack_require__(174),
Texture: __webpack_require__(114),
- TextureManager: __webpack_require__(175),
- TextureSource: __webpack_require__(174)
+ TextureManager: __webpack_require__(176),
+ TextureSource: __webpack_require__(175)
};
@@ -73330,7 +73672,7 @@ module.exports = Textures;
/***/ }),
-/* 323 */
+/* 325 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73346,16 +73688,16 @@ module.exports = Textures;
module.exports = {
List: __webpack_require__(92),
- Map: __webpack_require__(121),
- ProcessQueue: __webpack_require__(221),
- RTree: __webpack_require__(220),
+ Map: __webpack_require__(122),
+ ProcessQueue: __webpack_require__(222),
+ RTree: __webpack_require__(221),
Set: __webpack_require__(70)
};
/***/ }),
-/* 324 */
+/* 326 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73396,25 +73738,25 @@ module.exports = {
module.exports = {
- SoundManagerCreator: __webpack_require__(182),
+ SoundManagerCreator: __webpack_require__(183),
BaseSound: __webpack_require__(76),
BaseSoundManager: __webpack_require__(77),
- WebAudioSound: __webpack_require__(176),
- WebAudioSoundManager: __webpack_require__(177),
+ WebAudioSound: __webpack_require__(177),
+ WebAudioSoundManager: __webpack_require__(178),
- HTML5AudioSound: __webpack_require__(180),
- HTML5AudioSoundManager: __webpack_require__(181),
+ HTML5AudioSound: __webpack_require__(181),
+ HTML5AudioSoundManager: __webpack_require__(182),
- NoAudioSound: __webpack_require__(178),
- NoAudioSoundManager: __webpack_require__(179)
+ NoAudioSound: __webpack_require__(179),
+ NoAudioSoundManager: __webpack_require__(180)
};
/***/ }),
-/* 325 */
+/* 327 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -73423,7 +73765,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(54);
var GetFastValue = __webpack_require__(1);
@@ -73668,8 +74010,8 @@ var ScenePlugin = new Class({
* @property {integer} [duration=1000] - The duration, in ms, for the transition to last.
* @property {boolean} [sleep=false] - Will the Scene responsible for the transition be sent to sleep on completion (`true`), or stopped? (`false`)
* @property {boolean} [allowInput=false] - Will the Scenes Input system be able to process events while it is transitioning in or out?
- * @property {boolean} [moveAbove] - More the target Scene to be above this one before the transition starts.
- * @property {boolean} [moveBelow] - More the target Scene to be below this one before the transition starts.
+ * @property {boolean} [moveAbove] - Move the target Scene to be above this one before the transition starts.
+ * @property {boolean} [moveBelow] - Move the target Scene to be below this one before the transition starts.
* @property {function} [onUpdate] - This callback is invoked every frame for the duration of the transition.
* @property {any} [onUpdateScope] - The context in which the callback is invoked.
* @property {any} [data] - An object containing any data you wish to be passed to the target Scenes init / create methods.
@@ -74397,7 +74739,7 @@ module.exports = ScenePlugin;
/***/ }),
-/* 326 */
+/* 328 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -74415,9 +74757,9 @@ var Extend = __webpack_require__(18);
var Scene = {
- SceneManager: __webpack_require__(185),
- ScenePlugin: __webpack_require__(325),
- Settings: __webpack_require__(183),
+ SceneManager: __webpack_require__(186),
+ ScenePlugin: __webpack_require__(327),
+ Settings: __webpack_require__(184),
Systems: __webpack_require__(115)
};
@@ -74429,7 +74771,7 @@ module.exports = Scene;
/***/ }),
-/* 327 */
+/* 329 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -74438,7 +74780,7 @@ module.exports = Scene;
* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License}
*/
-var BasePlugin = __webpack_require__(162);
+var BasePlugin = __webpack_require__(163);
var Class = __webpack_require__(0);
/**
@@ -74449,10 +74791,11 @@ var Class = __webpack_require__(0);
*
* @class ScenePlugin
* @memberOf Phaser.Plugins
+ * @extends Phaser.Plugins.BasePlugin
* @constructor
* @since 3.8.0
*
- * @param {Phaser.Game} game - [description]
+ * @param {Phaser.Game} game - A reference to the Scene that has installed this plugin.
*/
var ScenePlugin = new Class({
@@ -74480,7 +74823,7 @@ var ScenePlugin = new Class({
* This property is only set when the plugin is instantiated and added to the Scene, not before.
*
* @name Phaser.Plugins.ScenePlugin#systems
- * @type {?Phaser.Scene.Systems}
+ * @type {?Phaser.Scenes.Systems}
* @protected
* @since 3.8.0
*/
@@ -74534,7 +74877,7 @@ module.exports = ScenePlugin;
/***/ }),
-/* 328 */
+/* 330 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -74549,20 +74892,20 @@ module.exports = ScenePlugin;
module.exports = {
- BasePlugin: __webpack_require__(162),
+ BasePlugin: __webpack_require__(163),
DefaultPlugins: __webpack_require__(119),
PluginCache: __webpack_require__(12),
- PluginManager: __webpack_require__(187),
- ScenePlugin: __webpack_require__(327)
+ PluginManager: __webpack_require__(188),
+ ScenePlugin: __webpack_require__(329)
};
/***/ }),
-/* 329 */,
-/* 330 */,
/* 331 */,
-/* 332 */
+/* 332 */,
+/* 333 */,
+/* 334 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -74595,6 +74938,9 @@ var StaticBody = new Class({
function StaticBody (world, gameObject)
{
+ var width = (gameObject.width) ? gameObject.width : 64;
+ var height = (gameObject.height) ? gameObject.height : 64;
+
/**
* [description]
*
@@ -74686,7 +75032,7 @@ var StaticBody = new Class({
* @type {number}
* @since 3.0.0
*/
- this.width = gameObject.displayWidth;
+ this.width = width;
/**
* [description]
@@ -74695,7 +75041,7 @@ var StaticBody = new Class({
* @type {number}
* @since 3.0.0
*/
- this.height = gameObject.displayHeight;
+ this.height = height;
/**
* [description]
@@ -75450,7 +75796,7 @@ module.exports = StaticBody;
/***/ }),
-/* 333 */
+/* 335 */
/***/ (function(module, exports) {
/**
@@ -75487,7 +75833,7 @@ module.exports = TileIntersectsBody;
/***/ }),
-/* 334 */
+/* 336 */
/***/ (function(module, exports) {
/**
@@ -75566,7 +75912,7 @@ module.exports = GetOverlapY;
/***/ }),
-/* 335 */
+/* 337 */
/***/ (function(module, exports) {
/**
@@ -75645,7 +75991,7 @@ module.exports = GetOverlapX;
/***/ }),
-/* 336 */
+/* 338 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -75667,8 +76013,8 @@ var Class = __webpack_require__(0);
*
* @param {Phaser.Physics.Arcade.World} world - [description]
* @param {boolean} overlapOnly - [description]
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - The first object to check for collision.
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - The second object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - The first object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - The second object to check for collision.
* @param {ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.
* @param {ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.
* @param {object} callbackContext - The scope in which to call the callbacks.
@@ -75825,7 +76171,7 @@ module.exports = Collider;
/***/ }),
-/* 337 */
+/* 339 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -75837,7 +76183,7 @@ module.exports = Collider;
var CircleContains = __webpack_require__(32);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(67);
-var RadToDeg = __webpack_require__(147);
+var RadToDeg = __webpack_require__(148);
var Rectangle = __webpack_require__(14);
var RectangleContains = __webpack_require__(31);
var TransformMatrix = __webpack_require__(63);
@@ -77256,12 +77602,14 @@ var Body = new Class({
* @method Phaser.Physics.Arcade.Body#setCollideWorldBounds
* @since 3.0.0
*
- * @param {boolean} value - True (collisions) or false (no collisions).
+ * @param {boolean} [value=true] - True (collisions) or false (no collisions).
*
* @return {Phaser.Physics.Arcade.Body} This Body object.
*/
setCollideWorldBounds: function (value)
{
+ if (value === undefined) { value = true; }
+
this.collideWorldBounds = value;
return this;
@@ -77423,6 +77771,66 @@ var Body = new Class({
return this;
},
+ /**
+ * Enables or disables drag.
+ *
+ * @method Phaser.Physics.Arcade.Body#setAllowDrag
+ * @since 3.9.0
+ * @see Phaser.Physics.Arcade.Body#allowDrag
+ *
+ * @param {boolean} [value=true] - `true` to allow drag on this body, or `false` to disable it.
+ *
+ * @return {Phaser.Physics.Arcade.Body} This Body object.
+ */
+ setAllowDrag: function (value)
+ {
+ if (value === undefined) { value = true; }
+
+ this.allowDrag = value;
+
+ return this;
+ },
+
+ /**
+ * Enables or disables gravity's effect on this Body.
+ *
+ * @method Phaser.Physics.Arcade.Body#setAllowGravity
+ * @since 3.9.0
+ * @see Phaser.Physics.Arcade.Body#allowGravity
+ *
+ * @param {boolean} [value=true] - `true` to allow gravity on this body, or `false` to disable it.
+ *
+ * @return {Phaser.Physics.Arcade.Body} This Body object.
+ */
+ setAllowGravity: function (value)
+ {
+ if (value === undefined) { value = true; }
+
+ this.allowGravity = value;
+
+ return this;
+ },
+
+ /**
+ * Enables or disables rotation.
+ *
+ * @method Phaser.Physics.Arcade.Body#setAllowRotation
+ * @since 3.9.0
+ * @see Phaser.Physics.Arcade.Body#allowRotation
+ *
+ * @param {boolean} [value=true] - `true` to allow rotation on this body, or `false` to disable it.
+ *
+ * @return {Phaser.Physics.Arcade.Body} This Body object.
+ */
+ setAllowRotation: function (value)
+ {
+ if (value === undefined) { value = true; }
+
+ this.allowRotation = value;
+
+ return this;
+ },
+
/**
* Sets the Body's drag.
*
@@ -77653,12 +78061,14 @@ var Body = new Class({
* @method Phaser.Physics.Arcade.Body#setImmovable
* @since 3.0.0
*
- * @param {boolean} value - The value to assign to `immovable`.
+ * @param {boolean} [value=true] - The value to assign to `immovable`.
*
* @return {Phaser.Physics.Arcade.Body} This Body object.
*/
setImmovable: function (value)
{
+ if (value === undefined) { value = true; }
+
this.immovable = value;
return this;
@@ -77780,7 +78190,7 @@ module.exports = Body;
/***/ }),
-/* 338 */
+/* 340 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -77789,26 +78199,26 @@ module.exports = Body;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Body = __webpack_require__(337);
-var Clamp = __webpack_require__(24);
+var Body = __webpack_require__(339);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
-var Collider = __webpack_require__(336);
+var Collider = __webpack_require__(338);
var CONST = __webpack_require__(67);
var DistanceBetween = __webpack_require__(57);
var EventEmitter = __webpack_require__(9);
-var GetOverlapX = __webpack_require__(335);
-var GetOverlapY = __webpack_require__(334);
+var GetOverlapX = __webpack_require__(337);
+var GetOverlapY = __webpack_require__(336);
var GetValue = __webpack_require__(4);
-var ProcessQueue = __webpack_require__(221);
+var ProcessQueue = __webpack_require__(222);
var ProcessTileCallbacks = __webpack_require__(684);
var Rectangle = __webpack_require__(14);
-var RTree = __webpack_require__(220);
+var RTree = __webpack_require__(221);
var SeparateTile = __webpack_require__(683);
var SeparateX = __webpack_require__(678);
var SeparateY = __webpack_require__(677);
var Set = __webpack_require__(70);
-var StaticBody = __webpack_require__(332);
-var TileIntersectsBody = __webpack_require__(333);
+var StaticBody = __webpack_require__(334);
+var TileIntersectsBody = __webpack_require__(335);
var Vector2 = __webpack_require__(7);
var Wrap = __webpack_require__(39);
@@ -78149,7 +78559,7 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#enable
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object - [description]
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object - [description]
* @param {integer} [bodyType] - The type of Body to create. Either `DYNAMIC_BODY` or `STATIC_BODY`.
*/
enable: function (object, bodyType)
@@ -78239,7 +78649,7 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#disable
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object - [description]
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object - [description]
*/
disable: function (object)
{
@@ -78449,8 +78859,8 @@ var World = new Class({
* @since 3.0.0
* @see Phaser.Physics.Arcade.World#collide
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - The first object to check for collision.
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - The second object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - The first object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - The second object to check for collision.
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.
* @param {*} [callbackContext] - The scope in which to call the callbacks.
@@ -78476,8 +78886,8 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#addOverlap
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - The first object to check for overlap.
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - The second object to check for overlap.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - The first object to check for overlap.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - The second object to check for overlap.
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects overlap.
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects overlap. Must return a boolean.
* @param {*} [callbackContext] - The scope in which to call the callbacks.
@@ -79137,8 +79547,8 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#overlap
* @since 3.0.0
*
- * @param {Phaser.GameObjects.GameObject} object1 - [description]
- * @param {Phaser.GameObjects.GameObject} object2 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object1 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object2 - [description]
* @param {ArcadePhysicsCallback} [overlapCallback] - [description]
* @param {ArcadePhysicsCallback} [processCallback] - [description]
* @param {*} [callbackContext] - [description]
@@ -79160,8 +79570,8 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#collide
* @since 3.0.0
*
- * @param {Phaser.GameObjects.GameObject} object1 - [description]
- * @param {Phaser.GameObjects.GameObject} object2 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object1 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object2 - [description]
* @param {ArcadePhysicsCallback} [collideCallback] - [description]
* @param {ArcadePhysicsCallback} [processCallback] - [description]
* @param {*} [callbackContext] - [description]
@@ -79183,8 +79593,8 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#collideObjects
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - [description]
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - [description]
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - [description]
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - [description]
* @param {ArcadePhysicsCallback} collideCallback - [description]
* @param {ArcadePhysicsCallback} processCallback - [description]
* @param {*} callbackContext - [description]
@@ -79195,8 +79605,17 @@ var World = new Class({
collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)
{
var i;
- object1 = object1.isParent && typeof(object1.physicsType) === 'undefined' ? object1.children.entries : object1;
- object2 = object2.isParent && typeof(object2.physicsType) === 'undefined' ? object2.children.entries : object2;
+
+ if (object1.isParent && object1.physicsType === undefined)
+ {
+ object1 = object1.children.entries;
+ }
+
+ if (object2 && object2.isParent && object2.physicsType === undefined)
+ {
+ object2 = object2.children.entries;
+ }
+
var object1isArray = Array.isArray(object1);
var object2isArray = Array.isArray(object2);
@@ -79244,8 +79663,8 @@ var World = new Class({
* @method Phaser.Physics.Arcade.World#collideHandler
* @since 3.0.0
*
- * @param {Phaser.GameObjects.GameObject} object1 - [description]
- * @param {Phaser.GameObjects.GameObject} object2 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object1 - [description]
+ * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.Group} object2 - [description]
* @param {ArcadePhysicsCallback} collideCallback - [description]
* @param {ArcadePhysicsCallback} processCallback - [description]
* @param {*} callbackContext - [description]
@@ -79695,7 +80114,7 @@ module.exports = World;
/***/ }),
-/* 339 */
+/* 341 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -79706,7 +80125,7 @@ module.exports = World;
// Phaser.Physics.Arcade.StaticGroup
-var ArcadeSprite = __webpack_require__(140);
+var ArcadeSprite = __webpack_require__(141);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(67);
var Group = __webpack_require__(109);
@@ -79842,7 +80261,7 @@ module.exports = StaticPhysicsGroup;
/***/ }),
-/* 340 */
+/* 342 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -79851,7 +80270,7 @@ module.exports = StaticPhysicsGroup;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ArcadeSprite = __webpack_require__(140);
+var ArcadeSprite = __webpack_require__(141);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(67);
var GetFastValue = __webpack_require__(1);
@@ -79864,6 +80283,9 @@ var Group = __webpack_require__(109);
* @property {boolean} [collideWorldBounds=false] - Sets {@link Phaser.Physics.Arcade.Body#collideWorldBounds}.
* @property {number} [accelerationX=0] - Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.x}.
* @property {number} [accelerationY=0] - Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.y}.
+ * @property {boolean} [allowDrag=true] - Sets {@link Phaser.Physics.Arcade.Body#allowDrag}.
+ * @property {boolean} [allowGravity=true] - Sets {@link Phaser.Physics.Arcade.Body#allowGravity}.
+ * @property {boolean} [allowRotation=true] - Sets {@link Phaser.Physics.Arcade.Body#allowRotation}.
* @property {number} [bounceX=0] - Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.x}.
* @property {number} [bounceY=0] - Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.y}.
* @property {number} [dragX=0] - Sets {@link Phaser.Physics.Arcade.Body#drag drag.x}.
@@ -79887,6 +80309,9 @@ var Group = __webpack_require__(109);
* @property {boolean} setCollideWorldBounds - [description]
* @property {number} setAccelerationX - [description]
* @property {number} setAccelerationY - [description]
+ * @property {boolean} setAllowDrag - [description]
+ * @property {boolean} setAllowGravity - [description]
+ * @property {boolean} setAllowRotation - [description]
* @property {number} setBounceX - [description]
* @property {number} setBounceY - [description]
* @property {number} setDragX - [description]
@@ -79980,6 +80405,9 @@ var PhysicsGroup = new Class({
setCollideWorldBounds: GetFastValue(config, 'collideWorldBounds', false),
setAccelerationX: GetFastValue(config, 'accelerationX', 0),
setAccelerationY: GetFastValue(config, 'accelerationY', 0),
+ setAllowDrag: GetFastValue(config, 'allowDrag', true),
+ setAllowGravity: GetFastValue(config, 'allowGravity', true),
+ setAllowRotation: GetFastValue(config, 'allowRotation', true),
setBounceX: GetFastValue(config, 'bounceX', 0),
setBounceY: GetFastValue(config, 'bounceY', 0),
setDragX: GetFastValue(config, 'dragX', 0),
@@ -80121,7 +80549,7 @@ module.exports = PhysicsGroup;
/***/ }),
-/* 341 */
+/* 343 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -80153,7 +80581,7 @@ module.exports = {
/***/ }),
-/* 342 */
+/* 344 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -80163,7 +80591,7 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var Components = __webpack_require__(341);
+var Components = __webpack_require__(343);
var Image = __webpack_require__(69);
/**
@@ -80246,7 +80674,7 @@ module.exports = ArcadeImage;
/***/ }),
-/* 343 */
+/* 345 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -80255,12 +80683,12 @@ module.exports = ArcadeImage;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ArcadeImage = __webpack_require__(342);
-var ArcadeSprite = __webpack_require__(140);
+var ArcadeImage = __webpack_require__(344);
+var ArcadeSprite = __webpack_require__(141);
var Class = __webpack_require__(0);
var CONST = __webpack_require__(67);
-var PhysicsGroup = __webpack_require__(340);
-var StaticPhysicsGroup = __webpack_require__(339);
+var PhysicsGroup = __webpack_require__(342);
+var StaticPhysicsGroup = __webpack_require__(341);
/**
* @classdesc
@@ -80314,8 +80742,8 @@ var Factory = new Class({
* @method Phaser.Physics.Arcade.Factory#collider
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - The first object to check for collision.
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - The second object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - The first object to check for collision.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - The second object to check for collision.
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.
* @param {*} [callbackContext] - The scope in which to call the callbacks.
@@ -80333,8 +80761,8 @@ var Factory = new Class({
* @method Phaser.Physics.Arcade.Factory#overlap
* @since 3.0.0
*
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object1 - The first object to check for overlap.
- * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} object2 - The second object to check for overlap.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object1 - The first object to check for overlap.
+ * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object2 - The second object to check for overlap.
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.
* @param {*} [callbackContext] - The scope in which to call the callbacks.
@@ -80471,7 +80899,7 @@ var Factory = new Class({
* @method Phaser.Physics.Arcade.Factory#staticGroup
* @since 3.0.0
*
- * @param {array} [children] - [description]
+ * @param {object|object[]} [children] - [description]
* @param {GroupConfig} [config] - [description]
*
* @return {Phaser.Physics.Arcade.StaticGroup} The Static Group object that was created.
@@ -80488,7 +80916,7 @@ var Factory = new Class({
* @method Phaser.Physics.Arcade.Factory#group
* @since 3.0.0
*
- * @param {array} [children] - [description]
+ * @param {object|object[]} [children] - [description]
* @param {PhysicsGroupConfig} [config] - [description]
*
* @return {Phaser.Physics.Arcade.Group} The Group object that was created.
@@ -80517,7 +80945,7 @@ module.exports = Factory;
/***/ }),
-/* 344 */
+/* 346 */
/***/ (function(module, exports) {
/**
@@ -80552,7 +80980,7 @@ module.exports = Rotate;
/***/ }),
-/* 345 */
+/* 347 */
/***/ (function(module, exports) {
/**
@@ -80592,7 +81020,7 @@ module.exports = Factorial;
/***/ }),
-/* 346 */
+/* 348 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -80601,7 +81029,7 @@ module.exports = Factorial;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Factorial = __webpack_require__(345);
+var Factorial = __webpack_require__(347);
/**
* [description]
@@ -80623,7 +81051,7 @@ module.exports = Bernstein;
/***/ }),
-/* 347 */
+/* 349 */
/***/ (function(module, exports) {
/**
@@ -80633,14 +81061,14 @@ module.exports = Bernstein;
*/
/**
- * [description]
+ * Normalize an angle to the [0, 2pi] range.
*
* @function Phaser.Math.Angle.Normalize
* @since 3.0.0
*
- * @param {number} angle - [description]
+ * @param {number} angle - The angle to normalize, in radians.
*
- * @return {number} [description]
+ * @return {number} The normalized angle, in radians.
*/
var Normalize = function (angle)
{
@@ -80660,7 +81088,7 @@ module.exports = Normalize;
/***/ }),
-/* 348 */
+/* 350 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -81740,7 +82168,7 @@ module.exports = LoaderPlugin;
/***/ }),
-/* 349 */
+/* 351 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -81942,7 +82370,7 @@ module.exports = SpriteSheetFile;
/***/ }),
-/* 350 */
+/* 352 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -82122,7 +82550,7 @@ module.exports = ScriptFile;
/***/ }),
-/* 351 */
+/* 353 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -82145,6 +82573,7 @@ var IsPlainObject = __webpack_require__(8);
* @property {string} [url] - The absolute or relative URL to load the file from.
* @property {string} [extension='js'] - The default file extension to use if no url is provided.
* @property {boolean} [start=false] - Automatically start the plugin after loading?
+ * @property {string} [mapping] - If this plugin is to be injected into the Scene, this is the property key used.
* @property {XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
*/
@@ -82166,6 +82595,7 @@ var IsPlainObject = __webpack_require__(8);
* @param {(string|Phaser.Loader.FileTypes.PluginFileConfig)} key - The key to use for this file, or a file configuration object.
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was "alien" then the URL will be "alien.js".
* @param {boolean} [start=false] - Automatically start the plugin after loading?
+ * @param {string} [mapping] - If this plugin is to be injected into the Scene, this is the property key used.
* @param {XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
*/
var PluginFile = new Class({
@@ -82174,7 +82604,7 @@ var PluginFile = new Class({
initialize:
- function PluginFile (loader, key, url, start, xhrSettings)
+ function PluginFile (loader, key, url, start, mapping, xhrSettings)
{
var extension = 'js';
@@ -82187,6 +82617,7 @@ var PluginFile = new Class({
xhrSettings = GetFastValue(config, 'xhrSettings');
extension = GetFastValue(config, 'extension', extension);
start = GetFastValue(config, 'start');
+ mapping = GetFastValue(config, 'mapping');
}
var fileConfig = {
@@ -82197,7 +82628,10 @@ var PluginFile = new Class({
key: key,
url: url,
xhrSettings: xhrSettings,
- config: { start: start }
+ config: {
+ start: start,
+ mapping: mapping
+ }
};
File.call(this, loader, fileConfig);
@@ -82224,10 +82658,11 @@ var PluginFile = new Class({
var config = this.config;
var start = GetFastValue(config, 'start', false);
+ var mapping = GetFastValue(config, 'mapping', null);
if (this.state === CONST.FILE_POPULATED)
{
- pluginManager.install(this.key, this.data, start);
+ pluginManager.install(this.key, this.data, start, mapping);
}
else
{
@@ -82242,7 +82677,7 @@ var PluginFile = new Class({
document.head.appendChild(this.data);
- pluginManager.install(this.key, window[this.key], start);
+ pluginManager.install(this.key, window[this.key], start, mapping);
}
this.onProcessComplete();
@@ -82294,7 +82729,7 @@ var PluginFile = new Class({
* and no URL is given then the Loader will set the URL to be "alien.js". It will always add `.js` as the extension, although
* this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.
*
- * Note: The ability to load this type of file will only be available if the Script File type has been built into Phaser.
+ * Note: The ability to load this type of file will only be available if the Plugin File type has been built into Phaser.
* It is available in the default build but can be excluded from custom builds.
*
* @method Phaser.Loader.LoaderPlugin#plugin
@@ -82304,11 +82739,12 @@ var PluginFile = new Class({
* @param {(string|Phaser.Loader.FileTypes.PluginFileConfig|Phaser.Loader.FileTypes.PluginFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
* @param {(string|function)} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was "alien" then the URL will be "alien.js". Or, a plugin function.
* @param {boolean} [start] - The plugin mapping configuration object.
+ * @param {string} [mapping] - If this plugin is to be injected into the Scene, this is the property key used.
* @param {XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
*
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
*/
-FileTypesManager.register('plugin', function (key, url, start, xhrSettings)
+FileTypesManager.register('plugin', function (key, url, start, mapping, xhrSettings)
{
if (Array.isArray(key))
{
@@ -82320,7 +82756,7 @@ FileTypesManager.register('plugin', function (key, url, start, xhrSettings)
}
else
{
- this.addFile(new PluginFile(this, key, url, start, xhrSettings));
+ this.addFile(new PluginFile(this, key, url, start, mapping, xhrSettings));
}
return this;
@@ -82330,7 +82766,7 @@ module.exports = PluginFile;
/***/ }),
-/* 352 */
+/* 354 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -82666,7 +83102,7 @@ module.exports = MultiAtlasFile;
/***/ }),
-/* 353 */
+/* 355 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -82675,7 +83111,7 @@ module.exports = MultiAtlasFile;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var AudioFile = __webpack_require__(164);
+var AudioFile = __webpack_require__(165);
var Class = __webpack_require__(0);
var FileTypesManager = __webpack_require__(6);
var GetFastValue = __webpack_require__(1);
@@ -82967,7 +83403,7 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio
/***/ }),
-/* 354 */
+/* 356 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83229,7 +83665,7 @@ module.exports = AtlasJSONFile;
/***/ }),
-/* 355 */
+/* 357 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83431,7 +83867,7 @@ module.exports = AnimationJSONFile;
/***/ }),
-/* 356 */
+/* 358 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83447,14 +83883,14 @@ module.exports = AnimationJSONFile;
/* eslint-disable */
module.exports = {
- TouchManager: __webpack_require__(188)
+ TouchManager: __webpack_require__(189)
};
/* eslint-enable */
/***/ }),
-/* 357 */
+/* 359 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83470,14 +83906,14 @@ module.exports = {
/* eslint-disable */
module.exports = {
- MouseManager: __webpack_require__(190)
+ MouseManager: __webpack_require__(191)
};
/* eslint-enable */
/***/ }),
-/* 358 */
+/* 360 */
/***/ (function(module, exports) {
/**
@@ -83509,7 +83945,7 @@ module.exports = UpDuration;
/***/ }),
-/* 359 */
+/* 361 */
/***/ (function(module, exports) {
/**
@@ -83541,7 +83977,7 @@ module.exports = DownDuration;
/***/ }),
-/* 360 */
+/* 362 */
/***/ (function(module, exports) {
/**
@@ -83581,7 +84017,7 @@ module.exports = JustUp;
/***/ }),
-/* 361 */
+/* 363 */
/***/ (function(module, exports) {
/**
@@ -83621,7 +84057,7 @@ module.exports = JustDown;
/***/ }),
-/* 362 */
+/* 364 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83636,23 +84072,23 @@ module.exports = JustDown;
module.exports = {
- KeyboardManager: __webpack_require__(193),
+ KeyboardManager: __webpack_require__(194),
- Key: __webpack_require__(192),
+ Key: __webpack_require__(193),
KeyCodes: __webpack_require__(116),
- KeyCombo: __webpack_require__(191),
+ KeyCombo: __webpack_require__(192),
- JustDown: __webpack_require__(361),
- JustUp: __webpack_require__(360),
- DownDuration: __webpack_require__(359),
- UpDuration: __webpack_require__(358)
+ JustDown: __webpack_require__(363),
+ JustUp: __webpack_require__(362),
+ DownDuration: __webpack_require__(361),
+ UpDuration: __webpack_require__(360)
};
/***/ }),
-/* 363 */
+/* 365 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -83668,7 +84104,7 @@ var DistanceBetween = __webpack_require__(57);
var Ellipse = __webpack_require__(111);
var EllipseContains = __webpack_require__(53);
var EventEmitter = __webpack_require__(9);
-var CreateInteractiveObject = __webpack_require__(166);
+var CreateInteractiveObject = __webpack_require__(167);
var PluginCache = __webpack_require__(12);
var Rectangle = __webpack_require__(14);
var RectangleContains = __webpack_require__(31);
@@ -84024,6 +84460,7 @@ var InputPlugin = new Class({
// Clear the removal list
removeList.length = 0;
+ this._pendingRemoval.length = 0;
// Move pendingInsertion to list (also clears pendingInsertion at the same time)
this._list = current.concat(insertList.splice(0));
@@ -84043,6 +84480,14 @@ var InputPlugin = new Class({
{
var input = gameObject.input;
+ // If GameObject.input already cleared from higher class
+ if (!input)
+ {
+ return;
+ }
+
+ this.queueForRemoval(gameObject);
+
input.gameObject = undefined;
input.target = undefined;
input.hitArea = undefined;
@@ -84343,7 +84788,7 @@ var InputPlugin = new Class({
}
// 4 = Pointer actively dragging the draglist and has moved
- if (pointer.dragState === 4 && pointer.justMoved)
+ if (pointer.dragState === 4 && pointer.justMoved && !pointer.justUp)
{
var dropZones = this._tempZones;
@@ -84436,32 +84881,36 @@ var InputPlugin = new Class({
input = gameObject.input;
- input.dragState = 0;
+ if (input.dragState === 2)
+ {
+ input.dragState = 0;
- input.dragX = input.localX - gameObject.displayOriginX;
- input.dragY = input.localY - gameObject.displayOriginY;
+ input.dragX = input.localX - gameObject.displayOriginX;
+ input.dragY = input.localY - gameObject.displayOriginY;
- var dropped = false;
+ var dropped = false;
- if (input.target)
- {
- gameObject.emit('drop', pointer, input.target);
+ if (input.target)
+ {
+ gameObject.emit('drop', pointer, input.target);
- this.emit('drop', pointer, gameObject, input.target);
+ this.emit('drop', pointer, gameObject, input.target);
- input.target = null;
+ input.target = null;
- dropped = true;
- }
+ dropped = true;
+ }
- // And finally the dragend event
+ // And finally the dragend event
- gameObject.emit('dragend', pointer, input.dragX, input.dragY, dropped);
+ gameObject.emit('dragend', pointer, input.dragX, input.dragY, dropped);
- this.emit('dragend', pointer, gameObject, dropped);
+ this.emit('dragend', pointer, gameObject, dropped);
+ }
}
pointer.dragState = 0;
+
list.splice(0);
}
@@ -84853,12 +85302,6 @@ var InputPlugin = new Class({
{
var gameObject = gameObjects[i];
- if (gameObject.type === 'Container')
- {
- console.warn('Container.setInteractive() must specify a Shape');
- continue;
- }
-
var frame = gameObject.frame;
var width = 0;
@@ -84875,6 +85318,12 @@ var InputPlugin = new Class({
height = gameObject.height;
}
+ if (gameObject.type === 'Container' && (width === 0 || height === 0))
+ {
+ console.warn('Container.setInteractive() must specify a Shape or call setSize() first');
+ continue;
+ }
+
if (width !== 0 && height !== 0)
{
gameObject.input = CreateInteractiveObject(gameObject, new Rectangle(0, 0, width, height), callback);
@@ -85067,6 +85516,16 @@ var InputPlugin = new Class({
// Quick bail out when both children have the same container
return childB.parentContainer.getIndex(childB) - childA.parentContainer.getIndex(childA);
}
+ else if (childA.parentContainer === childB)
+ {
+ // Quick bail out when childA is a child of childB
+ return -1;
+ }
+ else if (childB.parentContainer === childA)
+ {
+ // Quick bail out when childA is a child of childB
+ return 1;
+ }
else
{
// Container index check
@@ -85076,8 +85535,6 @@ var InputPlugin = new Class({
for (var i = 0; i < len; i++)
{
- // var indexA = listA[i][0];
- // var indexB = listB[i][0];
var indexA = listA[i];
var indexB = listB[i];
@@ -85284,7 +85741,7 @@ var InputPlugin = new Class({
},
/**
- * The Scene that owns this plugin is being destroyed.
+ * The Scene that owns this plugin is being destroyed.
* We need to shutdown and then kill off all external references.
*
* @method Phaser.Input.InputPlugin#destroy
@@ -85367,7 +85824,7 @@ module.exports = InputPlugin;
/***/ }),
-/* 364 */
+/* 366 */
/***/ (function(module, exports) {
/**
@@ -85418,7 +85875,7 @@ module.exports = {
/***/ }),
-/* 365 */
+/* 367 */
/***/ (function(module, exports) {
/**
@@ -85457,7 +85914,7 @@ module.exports = {
/***/ }),
-/* 366 */
+/* 368 */
/***/ (function(module, exports) {
/**
@@ -85507,7 +85964,7 @@ module.exports = {
/***/ }),
-/* 367 */
+/* 369 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85522,15 +85979,15 @@ module.exports = {
module.exports = {
- DUALSHOCK_4: __webpack_require__(366),
- SNES_USB: __webpack_require__(365),
- XBOX_360: __webpack_require__(364)
+ DUALSHOCK_4: __webpack_require__(368),
+ SNES_USB: __webpack_require__(367),
+ XBOX_360: __webpack_require__(366)
};
/***/ }),
-/* 368 */
+/* 370 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85545,17 +86002,17 @@ module.exports = {
module.exports = {
- Axis: __webpack_require__(195),
- Button: __webpack_require__(194),
- Gamepad: __webpack_require__(196),
- GamepadManager: __webpack_require__(197),
+ Axis: __webpack_require__(196),
+ Button: __webpack_require__(195),
+ Gamepad: __webpack_require__(197),
+ GamepadManager: __webpack_require__(198),
- Configs: __webpack_require__(367)
+ Configs: __webpack_require__(369)
};
/***/ }),
-/* 369 */
+/* 371 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85570,20 +86027,20 @@ module.exports = {
module.exports = {
- CreateInteractiveObject: __webpack_require__(166),
- Gamepad: __webpack_require__(368),
- InputManager: __webpack_require__(198),
- InputPlugin: __webpack_require__(363),
- Keyboard: __webpack_require__(362),
- Mouse: __webpack_require__(357),
- Pointer: __webpack_require__(189),
- Touch: __webpack_require__(356)
+ CreateInteractiveObject: __webpack_require__(167),
+ Gamepad: __webpack_require__(370),
+ InputManager: __webpack_require__(199),
+ InputPlugin: __webpack_require__(365),
+ Keyboard: __webpack_require__(364),
+ Mouse: __webpack_require__(359),
+ Pointer: __webpack_require__(190),
+ Touch: __webpack_require__(358)
};
/***/ }),
-/* 370 */
+/* 372 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85648,7 +86105,7 @@ module.exports = InCenter;
/***/ }),
-/* 371 */
+/* 373 */
/***/ (function(module, exports) {
/**
@@ -85689,7 +86146,7 @@ module.exports = Offset;
/***/ }),
-/* 372 */
+/* 374 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85731,7 +86188,7 @@ module.exports = Centroid;
/***/ }),
-/* 373 */
+/* 375 */
/***/ (function(module, exports) {
/**
@@ -85768,7 +86225,7 @@ module.exports = CenterOn;
/***/ }),
-/* 374 */
+/* 376 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85779,46 +86236,46 @@ module.exports = CenterOn;
var Rectangle = __webpack_require__(14);
-Rectangle.Area = __webpack_require__(793);
-Rectangle.Ceil = __webpack_require__(792);
-Rectangle.CeilAll = __webpack_require__(791);
-Rectangle.CenterOn = __webpack_require__(373);
-Rectangle.Clone = __webpack_require__(790);
+Rectangle.Area = __webpack_require__(795);
+Rectangle.Ceil = __webpack_require__(794);
+Rectangle.CeilAll = __webpack_require__(793);
+Rectangle.CenterOn = __webpack_require__(375);
+Rectangle.Clone = __webpack_require__(792);
Rectangle.Contains = __webpack_require__(31);
-Rectangle.ContainsPoint = __webpack_require__(789);
-Rectangle.ContainsRect = __webpack_require__(788);
-Rectangle.CopyFrom = __webpack_require__(787);
-Rectangle.Decompose = __webpack_require__(380);
-Rectangle.Equals = __webpack_require__(786);
-Rectangle.FitInside = __webpack_require__(785);
-Rectangle.FitOutside = __webpack_require__(784);
-Rectangle.Floor = __webpack_require__(783);
-Rectangle.FloorAll = __webpack_require__(782);
+Rectangle.ContainsPoint = __webpack_require__(791);
+Rectangle.ContainsRect = __webpack_require__(790);
+Rectangle.CopyFrom = __webpack_require__(789);
+Rectangle.Decompose = __webpack_require__(382);
+Rectangle.Equals = __webpack_require__(788);
+Rectangle.FitInside = __webpack_require__(787);
+Rectangle.FitOutside = __webpack_require__(786);
+Rectangle.Floor = __webpack_require__(785);
+Rectangle.FloorAll = __webpack_require__(784);
Rectangle.FromPoints = __webpack_require__(274);
-Rectangle.GetAspectRatio = __webpack_require__(226);
-Rectangle.GetCenter = __webpack_require__(781);
-Rectangle.GetPoint = __webpack_require__(131);
-Rectangle.GetPoints = __webpack_require__(292);
-Rectangle.GetSize = __webpack_require__(780);
-Rectangle.Inflate = __webpack_require__(779);
+Rectangle.GetAspectRatio = __webpack_require__(227);
+Rectangle.GetCenter = __webpack_require__(783);
+Rectangle.GetPoint = __webpack_require__(132);
+Rectangle.GetPoints = __webpack_require__(294);
+Rectangle.GetSize = __webpack_require__(782);
+Rectangle.Inflate = __webpack_require__(781);
Rectangle.MarchingAnts = __webpack_require__(565);
-Rectangle.MergePoints = __webpack_require__(778);
-Rectangle.MergeRect = __webpack_require__(777);
-Rectangle.MergeXY = __webpack_require__(776);
-Rectangle.Offset = __webpack_require__(775);
-Rectangle.OffsetPoint = __webpack_require__(774);
-Rectangle.Overlaps = __webpack_require__(773);
+Rectangle.MergePoints = __webpack_require__(780);
+Rectangle.MergeRect = __webpack_require__(779);
+Rectangle.MergeXY = __webpack_require__(778);
+Rectangle.Offset = __webpack_require__(777);
+Rectangle.OffsetPoint = __webpack_require__(776);
+Rectangle.Overlaps = __webpack_require__(775);
Rectangle.Perimeter = __webpack_require__(96);
-Rectangle.PerimeterPoint = __webpack_require__(772);
-Rectangle.Random = __webpack_require__(151);
-Rectangle.Scale = __webpack_require__(771);
-Rectangle.Union = __webpack_require__(458);
+Rectangle.PerimeterPoint = __webpack_require__(774);
+Rectangle.Random = __webpack_require__(152);
+Rectangle.Scale = __webpack_require__(773);
+Rectangle.Union = __webpack_require__(460);
module.exports = Rectangle;
/***/ }),
-/* 375 */
+/* 377 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -85828,7 +86285,7 @@ module.exports = Rectangle;
*/
var Class = __webpack_require__(0);
-var Contains = __webpack_require__(227);
+var Contains = __webpack_require__(228);
/**
* @classdesc
@@ -86002,7 +86459,7 @@ module.exports = Polygon;
/***/ }),
-/* 376 */
+/* 378 */
/***/ (function(module, exports) {
/**
@@ -86030,7 +86487,7 @@ module.exports = GetMagnitudeSq;
/***/ }),
-/* 377 */
+/* 379 */
/***/ (function(module, exports) {
/**
@@ -86058,7 +86515,7 @@ module.exports = GetMagnitude;
/***/ }),
-/* 378 */
+/* 380 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86092,7 +86549,7 @@ module.exports = NormalAngle;
/***/ }),
-/* 379 */
+/* 381 */
/***/ (function(module, exports) {
/**
@@ -86127,7 +86584,7 @@ module.exports = Decompose;
/***/ }),
-/* 380 */
+/* 382 */
/***/ (function(module, exports) {
/**
@@ -86163,7 +86620,7 @@ module.exports = Decompose;
/***/ }),
-/* 381 */
+/* 383 */
/***/ (function(module, exports) {
/**
@@ -86192,7 +86649,7 @@ module.exports = PointToLine;
/***/ }),
-/* 382 */
+/* 384 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86277,7 +86734,7 @@ module.exports = LineToCircle;
/***/ }),
-/* 383 */
+/* 385 */
/***/ (function(module, exports) {
/**
@@ -86311,7 +86768,7 @@ module.exports = RectangleToRectangle;
/***/ }),
-/* 384 */
+/* 386 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86326,26 +86783,26 @@ module.exports = RectangleToRectangle;
module.exports = {
- CircleToCircle: __webpack_require__(840),
- CircleToRectangle: __webpack_require__(839),
- GetRectangleIntersection: __webpack_require__(838),
- LineToCircle: __webpack_require__(382),
- LineToLine: __webpack_require__(142),
- LineToRectangle: __webpack_require__(837),
- PointToLine: __webpack_require__(381),
- PointToLineSegment: __webpack_require__(836),
- RectangleToRectangle: __webpack_require__(383),
- RectangleToTriangle: __webpack_require__(835),
- RectangleToValues: __webpack_require__(834),
- TriangleToCircle: __webpack_require__(833),
- TriangleToLine: __webpack_require__(832),
- TriangleToTriangle: __webpack_require__(831)
+ CircleToCircle: __webpack_require__(842),
+ CircleToRectangle: __webpack_require__(841),
+ GetRectangleIntersection: __webpack_require__(840),
+ LineToCircle: __webpack_require__(384),
+ LineToLine: __webpack_require__(143),
+ LineToRectangle: __webpack_require__(839),
+ PointToLine: __webpack_require__(383),
+ PointToLineSegment: __webpack_require__(838),
+ RectangleToRectangle: __webpack_require__(385),
+ RectangleToTriangle: __webpack_require__(837),
+ RectangleToValues: __webpack_require__(836),
+ TriangleToCircle: __webpack_require__(835),
+ TriangleToLine: __webpack_require__(834),
+ TriangleToTriangle: __webpack_require__(833)
};
/***/ }),
-/* 385 */
+/* 387 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86360,20 +86817,20 @@ module.exports = {
module.exports = {
- Circle: __webpack_require__(850),
- Ellipse: __webpack_require__(247),
- Intersects: __webpack_require__(384),
- Line: __webpack_require__(830),
- Point: __webpack_require__(812),
- Polygon: __webpack_require__(798),
- Rectangle: __webpack_require__(374),
- Triangle: __webpack_require__(770)
+ Circle: __webpack_require__(852),
+ Ellipse: __webpack_require__(248),
+ Intersects: __webpack_require__(386),
+ Line: __webpack_require__(832),
+ Point: __webpack_require__(814),
+ Polygon: __webpack_require__(800),
+ Rectangle: __webpack_require__(376),
+ Triangle: __webpack_require__(772)
};
/***/ }),
-/* 386 */
+/* 388 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86383,8 +86840,8 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var Light = __webpack_require__(387);
-var LightPipeline = __webpack_require__(146);
+var Light = __webpack_require__(389);
+var LightPipeline = __webpack_require__(147);
var Utils = __webpack_require__(27);
/**
@@ -86709,7 +87166,7 @@ module.exports = LightsManager;
/***/ }),
-/* 387 */
+/* 389 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86963,7 +87420,7 @@ module.exports = Light;
/***/ }),
-/* 388 */
+/* 390 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -86972,7 +87429,7 @@ module.exports = Light;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var Text = __webpack_require__(107);
@@ -87050,7 +87507,7 @@ GameObjectCreator.register('text', function (config, addToScene)
/***/ }),
-/* 389 */
+/* 391 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87059,8 +87516,8 @@ GameObjectCreator.register('text', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
-var BuildGameObjectAnimation = __webpack_require__(123);
+var BuildGameObject = __webpack_require__(24);
+var BuildGameObjectAnimation = __webpack_require__(124);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var Sprite = __webpack_require__(34);
@@ -87103,7 +87560,7 @@ GameObjectCreator.register('sprite', function (config, addToScene)
/***/ }),
-/* 390 */
+/* 392 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87112,7 +87569,7 @@ GameObjectCreator.register('sprite', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var Image = __webpack_require__(69);
@@ -87153,7 +87610,7 @@ GameObjectCreator.register('image', function (config, addToScene)
/***/ }),
-/* 391 */
+/* 393 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87201,7 +87658,7 @@ GameObjectCreator.register('graphics', function (config, addToScene)
/***/ }),
-/* 392 */
+/* 394 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87243,7 +87700,7 @@ GameObjectFactory.register('text', function (x, y, text, style)
/***/ }),
-/* 393 */
+/* 395 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87290,7 +87747,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame)
/***/ }),
-/* 394 */
+/* 396 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87332,7 +87789,7 @@ GameObjectFactory.register('image', function (x, y, key, frame)
/***/ }),
-/* 395 */
+/* 397 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87371,7 +87828,7 @@ GameObjectFactory.register('graphics', function (config)
/***/ }),
-/* 396 */
+/* 398 */
/***/ (function(module, exports) {
/**
@@ -87386,13 +87843,12 @@ GameObjectFactory.register('graphics', function (config)
* @function Phaser.Math.Pow2.GetPowerOfTwo
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {number} value - The value.
*
- * @return {integer} [description]
+ * @return {integer} The nearest power of 2 to `value`.
*/
var GetPowerOfTwo = function (value)
{
- // Math.log(2)
var index = Math.log(value) / 0.6931471805599453;
return (1 << Math.ceil(index));
@@ -87402,7 +87858,7 @@ module.exports = GetPowerOfTwo;
/***/ }),
-/* 397 */
+/* 399 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87537,7 +87993,7 @@ module.exports = MeasureText;
/***/ }),
-/* 398 */
+/* 400 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -87549,7 +88005,7 @@ module.exports = MeasureText;
var Class = __webpack_require__(0);
var GetAdvancedValue = __webpack_require__(10);
var GetValue = __webpack_require__(4);
-var MeasureText = __webpack_require__(397);
+var MeasureText = __webpack_require__(399);
// Key: [ Object Key, Default Value ]
@@ -88487,7 +88943,7 @@ module.exports = TextStyle;
/***/ }),
-/* 399 */
+/* 401 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -88582,7 +89038,7 @@ module.exports = TextCanvasRenderer;
/***/ }),
-/* 400 */
+/* 402 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -88628,7 +89084,7 @@ module.exports = TextWebGLRenderer;
/***/ }),
-/* 401 */
+/* 403 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -88642,12 +89098,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(400);
+ renderWebGL = __webpack_require__(402);
}
if (true)
{
- renderCanvas = __webpack_require__(399);
+ renderCanvas = __webpack_require__(401);
}
module.exports = {
@@ -88659,7 +89115,7 @@ module.exports = {
/***/ }),
-/* 402 */
+/* 404 */
/***/ (function(module, exports) {
/**
@@ -88746,7 +89202,7 @@ module.exports = GetTextSize;
/***/ }),
-/* 403 */
+/* 405 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -89179,7 +89635,7 @@ module.exports = PathFollower;
/***/ }),
-/* 404 */
+/* 406 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -89271,7 +89727,7 @@ module.exports = RandomZone;
/***/ }),
-/* 405 */
+/* 407 */
/***/ (function(module, exports) {
/**
@@ -89308,7 +89764,7 @@ module.exports = HasAny;
/***/ }),
-/* 406 */
+/* 408 */
/***/ (function(module, exports) {
/**
@@ -89318,15 +89774,15 @@ module.exports = HasAny;
*/
/**
- * [description]
+ * Stepped easing.
*
* @function Phaser.Math.Easing.Stepped.Stepped
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {float} [steps=1] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Stepped = function (v, steps)
{
@@ -89350,7 +89806,7 @@ module.exports = Stepped;
/***/ }),
-/* 407 */
+/* 409 */
/***/ (function(module, exports) {
/**
@@ -89360,14 +89816,14 @@ module.exports = Stepped;
*/
/**
- * [description]
+ * Sinusoidal ease-in/out.
*
* @function Phaser.Math.Easing.Sine.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -89389,7 +89845,7 @@ module.exports = InOut;
/***/ }),
-/* 408 */
+/* 410 */
/***/ (function(module, exports) {
/**
@@ -89399,14 +89855,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Sinusoidal ease-out.
*
* @function Phaser.Math.Easing.Sine.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -89428,7 +89884,7 @@ module.exports = Out;
/***/ }),
-/* 409 */
+/* 411 */
/***/ (function(module, exports) {
/**
@@ -89438,14 +89894,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Sinusoidal ease-in.
*
* @function Phaser.Math.Easing.Sine.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -89467,7 +89923,7 @@ module.exports = In;
/***/ }),
-/* 410 */
+/* 412 */
/***/ (function(module, exports) {
/**
@@ -89477,14 +89933,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Quintic ease-in/out.
*
* @function Phaser.Math.Easing.Quintic.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -89502,7 +89958,7 @@ module.exports = InOut;
/***/ }),
-/* 411 */
+/* 413 */
/***/ (function(module, exports) {
/**
@@ -89512,14 +89968,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Quintic ease-out.
*
* @function Phaser.Math.Easing.Quintic.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -89530,7 +89986,7 @@ module.exports = Out;
/***/ }),
-/* 412 */
+/* 414 */
/***/ (function(module, exports) {
/**
@@ -89540,14 +89996,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Quintic ease-in.
*
* @function Phaser.Math.Easing.Quintic.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -89558,7 +90014,7 @@ module.exports = In;
/***/ }),
-/* 413 */
+/* 415 */
/***/ (function(module, exports) {
/**
@@ -89568,14 +90024,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Quartic ease-in/out.
*
* @function Phaser.Math.Easing.Quartic.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -89593,7 +90049,7 @@ module.exports = InOut;
/***/ }),
-/* 414 */
+/* 416 */
/***/ (function(module, exports) {
/**
@@ -89603,14 +90059,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Quartic ease-out.
*
* @function Phaser.Math.Easing.Quartic.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -89621,7 +90077,7 @@ module.exports = Out;
/***/ }),
-/* 415 */
+/* 417 */
/***/ (function(module, exports) {
/**
@@ -89631,14 +90087,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Quartic ease-in.
*
* @function Phaser.Math.Easing.Quartic.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -89649,7 +90105,7 @@ module.exports = In;
/***/ }),
-/* 416 */
+/* 418 */
/***/ (function(module, exports) {
/**
@@ -89659,14 +90115,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Quadratic ease-in/out.
*
* @function Phaser.Math.Easing.Quadratic.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -89684,7 +90140,7 @@ module.exports = InOut;
/***/ }),
-/* 417 */
+/* 419 */
/***/ (function(module, exports) {
/**
@@ -89694,14 +90150,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Quadratic ease-out.
*
* @function Phaser.Math.Easing.Quadratic.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -89712,7 +90168,7 @@ module.exports = Out;
/***/ }),
-/* 418 */
+/* 420 */
/***/ (function(module, exports) {
/**
@@ -89722,14 +90178,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Quadratic ease-in.
*
* @function Phaser.Math.Easing.Quadratic.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -89740,7 +90196,7 @@ module.exports = In;
/***/ }),
-/* 419 */
+/* 421 */
/***/ (function(module, exports) {
/**
@@ -89750,14 +90206,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Linear easing (no variation).
*
* @function Phaser.Math.Easing.Linear.Linear
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Linear = function (v)
{
@@ -89768,7 +90224,7 @@ module.exports = Linear;
/***/ }),
-/* 420 */
+/* 422 */
/***/ (function(module, exports) {
/**
@@ -89778,14 +90234,14 @@ module.exports = Linear;
*/
/**
- * [description]
+ * Exponential ease-in/out.
*
* @function Phaser.Math.Easing.Expo.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -89803,7 +90259,7 @@ module.exports = InOut;
/***/ }),
-/* 421 */
+/* 423 */
/***/ (function(module, exports) {
/**
@@ -89813,14 +90269,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Exponential ease-out.
*
* @function Phaser.Math.Easing.Expo.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -89831,7 +90287,7 @@ module.exports = Out;
/***/ }),
-/* 422 */
+/* 424 */
/***/ (function(module, exports) {
/**
@@ -89841,14 +90297,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Exponential ease-in.
*
* @function Phaser.Math.Easing.Expo.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -89859,7 +90315,7 @@ module.exports = In;
/***/ }),
-/* 423 */
+/* 425 */
/***/ (function(module, exports) {
/**
@@ -89869,16 +90325,16 @@ module.exports = In;
*/
/**
- * [description]
+ * Elastic ease-in/out.
*
* @function Phaser.Math.Easing.Elastic.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {float} [amplitude=0.1] - [description]
* @param {float} [period=0.1] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v, amplitude, period)
{
@@ -89921,7 +90377,7 @@ module.exports = InOut;
/***/ }),
-/* 424 */
+/* 426 */
/***/ (function(module, exports) {
/**
@@ -89931,16 +90387,16 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Elastic ease-out.
*
* @function Phaser.Math.Easing.Elastic.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {float} [amplitude=0.1] - [description]
* @param {float} [period=0.1] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v, amplitude, period)
{
@@ -89976,7 +90432,7 @@ module.exports = Out;
/***/ }),
-/* 425 */
+/* 427 */
/***/ (function(module, exports) {
/**
@@ -89986,16 +90442,16 @@ module.exports = Out;
*/
/**
- * [description]
+ * Elastic ease-in.
*
* @function Phaser.Math.Easing.Elastic.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {float} [amplitude=0.1] - [description]
* @param {float} [period=0.1] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v, amplitude, period)
{
@@ -90031,7 +90487,7 @@ module.exports = In;
/***/ }),
-/* 426 */
+/* 428 */
/***/ (function(module, exports) {
/**
@@ -90041,14 +90497,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Cubic ease-in/out.
*
* @function Phaser.Math.Easing.Cubic.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -90066,7 +90522,7 @@ module.exports = InOut;
/***/ }),
-/* 427 */
+/* 429 */
/***/ (function(module, exports) {
/**
@@ -90076,14 +90532,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Cubic ease-out.
*
* @function Phaser.Math.Easing.Cubic.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -90094,7 +90550,7 @@ module.exports = Out;
/***/ }),
-/* 428 */
+/* 430 */
/***/ (function(module, exports) {
/**
@@ -90104,14 +90560,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Cubic ease-in.
*
* @function Phaser.Math.Easing.Cubic.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -90122,7 +90578,7 @@ module.exports = In;
/***/ }),
-/* 429 */
+/* 431 */
/***/ (function(module, exports) {
/**
@@ -90132,14 +90588,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Circular ease-in/out.
*
* @function Phaser.Math.Easing.Circular.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -90157,7 +90613,7 @@ module.exports = InOut;
/***/ }),
-/* 430 */
+/* 432 */
/***/ (function(module, exports) {
/**
@@ -90167,14 +90623,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Circular ease-out.
*
* @function Phaser.Math.Easing.Circular.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -90185,7 +90641,7 @@ module.exports = Out;
/***/ }),
-/* 431 */
+/* 433 */
/***/ (function(module, exports) {
/**
@@ -90195,14 +90651,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Circular ease-in.
*
* @function Phaser.Math.Easing.Circular.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -90213,7 +90669,7 @@ module.exports = In;
/***/ }),
-/* 432 */
+/* 434 */
/***/ (function(module, exports) {
/**
@@ -90223,14 +90679,14 @@ module.exports = In;
*/
/**
- * [description]
+ * Bounce ease-in/out.
*
* @function Phaser.Math.Easing.Bounce.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v)
{
@@ -90277,7 +90733,7 @@ module.exports = InOut;
/***/ }),
-/* 433 */
+/* 435 */
/***/ (function(module, exports) {
/**
@@ -90287,14 +90743,14 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Bounce ease-out.
*
* @function Phaser.Math.Easing.Bounce.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v)
{
@@ -90320,7 +90776,7 @@ module.exports = Out;
/***/ }),
-/* 434 */
+/* 436 */
/***/ (function(module, exports) {
/**
@@ -90330,14 +90786,14 @@ module.exports = Out;
*/
/**
- * [description]
+ * Bounce ease-in.
*
* @function Phaser.Math.Easing.Bounce.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v)
{
@@ -90365,7 +90821,7 @@ module.exports = In;
/***/ }),
-/* 435 */
+/* 437 */
/***/ (function(module, exports) {
/**
@@ -90375,15 +90831,15 @@ module.exports = In;
*/
/**
- * [description]
+ * Back ease-in/out.
*
* @function Phaser.Math.Easing.Back.InOut
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {number} [overshoot=1.70158] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var InOut = function (v, overshoot)
{
@@ -90405,7 +90861,7 @@ module.exports = InOut;
/***/ }),
-/* 436 */
+/* 438 */
/***/ (function(module, exports) {
/**
@@ -90415,15 +90871,15 @@ module.exports = InOut;
*/
/**
- * [description]
+ * Back ease-out.
*
* @function Phaser.Math.Easing.Back.Out
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {number} [overshoot=1.70158] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var Out = function (v, overshoot)
{
@@ -90436,7 +90892,7 @@ module.exports = Out;
/***/ }),
-/* 437 */
+/* 439 */
/***/ (function(module, exports) {
/**
@@ -90446,15 +90902,15 @@ module.exports = Out;
*/
/**
- * [description]
+ * Back ease-in.
*
* @function Phaser.Math.Easing.Back.In
* @since 3.0.0
*
- * @param {number} v - [description]
+ * @param {number} v - The value to be tweened.
* @param {number} [overshoot=1.70158] - [description]
*
- * @return {number} [description]
+ * @return {number} The tweened value.
*/
var In = function (v, overshoot)
{
@@ -90467,7 +90923,7 @@ module.exports = In;
/***/ }),
-/* 438 */
+/* 440 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -90476,18 +90932,18 @@ module.exports = In;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Back = __webpack_require__(245);
-var Bounce = __webpack_require__(244);
-var Circular = __webpack_require__(243);
-var Cubic = __webpack_require__(242);
-var Elastic = __webpack_require__(241);
-var Expo = __webpack_require__(240);
-var Linear = __webpack_require__(239);
-var Quadratic = __webpack_require__(238);
-var Quartic = __webpack_require__(237);
-var Quintic = __webpack_require__(236);
-var Sine = __webpack_require__(235);
-var Stepped = __webpack_require__(234);
+var Back = __webpack_require__(246);
+var Bounce = __webpack_require__(245);
+var Circular = __webpack_require__(244);
+var Cubic = __webpack_require__(243);
+var Elastic = __webpack_require__(242);
+var Expo = __webpack_require__(241);
+var Linear = __webpack_require__(240);
+var Quadratic = __webpack_require__(239);
+var Quartic = __webpack_require__(238);
+var Quintic = __webpack_require__(237);
+var Sine = __webpack_require__(236);
+var Stepped = __webpack_require__(235);
// EaseMap
module.exports = {
@@ -90548,7 +91004,7 @@ module.exports = {
/***/ }),
-/* 439 */
+/* 441 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -90811,7 +91267,7 @@ module.exports = EdgeZone;
/***/ }),
-/* 440 */
+/* 442 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -90910,7 +91366,7 @@ module.exports = DeathZone;
/***/ }),
-/* 441 */
+/* 443 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -90922,15 +91378,15 @@ module.exports = DeathZone;
var BlendModes = __webpack_require__(50);
var Class = __webpack_require__(0);
var Components = __webpack_require__(15);
-var DeathZone = __webpack_require__(440);
-var EdgeZone = __webpack_require__(439);
-var EmitterOp = __webpack_require__(895);
+var DeathZone = __webpack_require__(442);
+var EdgeZone = __webpack_require__(441);
+var EmitterOp = __webpack_require__(897);
var GetFastValue = __webpack_require__(1);
-var GetRandom = __webpack_require__(144);
-var HasAny = __webpack_require__(405);
+var GetRandom = __webpack_require__(145);
+var HasAny = __webpack_require__(407);
var HasValue = __webpack_require__(108);
-var Particle = __webpack_require__(442);
-var RandomZone = __webpack_require__(404);
+var Particle = __webpack_require__(444);
+var RandomZone = __webpack_require__(406);
var Rectangle = __webpack_require__(14);
var StableSort = __webpack_require__(82);
var Vector2 = __webpack_require__(7);
@@ -93077,7 +93533,7 @@ module.exports = ParticleEmitter;
/***/ }),
-/* 442 */
+/* 444 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -93090,6 +93546,11 @@ var Class = __webpack_require__(0);
var DegToRad = __webpack_require__(38);
var DistanceBetween = __webpack_require__(57);
+var GetColor = function (value)
+{
+ return (value >> 16) + (value & 0xff00) + ((value & 0xff) << 16);
+};
+
/**
* @classdesc
* A Particle is a simple Game Object controlled by a Particle Emitter and Manager, and rendered by the Manager.
@@ -93283,20 +93744,20 @@ var Particle = new Class({
* The tint applied to this Particle.
*
* @name Phaser.GameObjects.Particles.Particle#tint
- * @type {number}
+ * @type {integer}
* @webglOnly
* @since 3.0.0
*/
- this.tint = 0xffffffff;
+ this.tint = 0xffffff;
/**
* The full color of this Particle, computed from its alpha and tint.
*
* @name Phaser.GameObjects.Particles.Particle#color
- * @type {number}
+ * @type {integer}
* @since 3.0.0
*/
- this.color = 0xffffffff;
+ this.color = 16777215;
/**
* The lifespan of this Particle in ms.
@@ -93474,7 +93935,9 @@ var Particle = new Class({
this.tint = emitter.tint.onEmit(this, 'tint');
- this.color = (this.tint & 0x00FFFFFF) | (((this.alpha * 0xFF) | 0) << 24);
+ var ua = ((this.alpha * 255) | 0) & 0xFF;
+
+ this.color = ((ua << 24) | GetColor(this.tint)) >>> 0;
this.index = emitter.alive.length;
},
@@ -93646,7 +94109,9 @@ var Particle = new Class({
this.tint = emitter.tint.onUpdate(this, 'tint', t, this.tint);
- this.color = (this.tint & 0x00FFFFFF) | (((this.alpha * 0xFF) | 0) << 24);
+ var ua = ((this.alpha * 255) | 0) & 0xFF;
+
+ this.color = ((ua << 24) | GetColor(this.tint)) >>> 0;
this.lifeCurrent -= delta;
@@ -93659,7 +94124,7 @@ module.exports = Particle;
/***/ }),
-/* 443 */
+/* 445 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -93884,7 +94349,7 @@ module.exports = GravityWell;
/***/ }),
-/* 444 */
+/* 446 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -93924,7 +94389,7 @@ module.exports = ImageCanvasRenderer;
/***/ }),
-/* 445 */
+/* 447 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -93964,7 +94429,7 @@ module.exports = ImageWebGLRenderer;
/***/ }),
-/* 446 */
+/* 448 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -93978,12 +94443,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(445);
+ renderWebGL = __webpack_require__(447);
}
if (true)
{
- renderCanvas = __webpack_require__(444);
+ renderCanvas = __webpack_require__(446);
}
module.exports = {
@@ -93995,7 +94460,7 @@ module.exports = {
/***/ }),
-/* 447 */
+/* 449 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94035,7 +94500,7 @@ module.exports = GraphicsWebGLRenderer;
/***/ }),
-/* 448 */
+/* 450 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94049,15 +94514,15 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(447);
+ renderWebGL = __webpack_require__(449);
// Needed for Graphics.generateTexture
- renderCanvas = __webpack_require__(167);
+ renderCanvas = __webpack_require__(168);
}
if (true)
{
- renderCanvas = __webpack_require__(167);
+ renderCanvas = __webpack_require__(168);
}
module.exports = {
@@ -94069,7 +94534,7 @@ module.exports = {
/***/ }),
-/* 449 */
+/* 451 */
/***/ (function(module, exports) {
/**
@@ -94103,7 +94568,7 @@ module.exports = OffsetPoint;
/***/ }),
-/* 450 */
+/* 452 */
/***/ (function(module, exports) {
/**
@@ -94138,7 +94603,7 @@ module.exports = Offset;
/***/ }),
-/* 451 */
+/* 453 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94178,7 +94643,7 @@ module.exports = GetBounds;
/***/ }),
-/* 452 */
+/* 454 */
/***/ (function(module, exports) {
/**
@@ -94213,7 +94678,7 @@ module.exports = Equals;
/***/ }),
-/* 453 */
+/* 455 */
/***/ (function(module, exports) {
/**
@@ -94245,7 +94710,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 454 */
+/* 456 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94281,7 +94746,7 @@ module.exports = ContainsRect;
/***/ }),
-/* 455 */
+/* 457 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94312,7 +94777,7 @@ module.exports = ContainsPoint;
/***/ }),
-/* 456 */
+/* 458 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94342,7 +94807,7 @@ module.exports = Clone;
/***/ }),
-/* 457 */
+/* 459 */
/***/ (function(module, exports) {
/**
@@ -94376,7 +94841,7 @@ module.exports = Area;
/***/ }),
-/* 458 */
+/* 460 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94418,7 +94883,7 @@ module.exports = Union;
/***/ }),
-/* 459 */
+/* 461 */
/***/ (function(module, exports) {
/**
@@ -94548,7 +95013,7 @@ module.exports = ParseXMLBitmapFont;
/***/ }),
-/* 460 */
+/* 462 */
/***/ (function(module, exports) {
/**
@@ -94697,7 +95162,7 @@ module.exports = GetBitmapTextSize;
/***/ }),
-/* 461 */
+/* 463 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -94989,7 +95454,7 @@ module.exports = UpdateList;
/***/ }),
-/* 462 */
+/* 464 */
/***/ (function(module, exports) {
/**
@@ -95037,7 +95502,7 @@ module.exports = Swap;
/***/ }),
-/* 463 */
+/* 465 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95092,7 +95557,7 @@ module.exports = SetAll;
/***/ }),
-/* 464 */
+/* 466 */
/***/ (function(module, exports) {
/**
@@ -95130,7 +95595,7 @@ module.exports = SendToBack;
/***/ }),
-/* 465 */
+/* 467 */
/***/ (function(module, exports) {
/**
@@ -95173,7 +95638,7 @@ module.exports = Replace;
/***/ }),
-/* 466 */
+/* 468 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95211,7 +95676,7 @@ module.exports = RemoveRandomElement;
/***/ }),
-/* 467 */
+/* 469 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95274,7 +95739,7 @@ module.exports = RemoveBetween;
/***/ }),
-/* 468 */
+/* 470 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95325,7 +95790,7 @@ module.exports = RemoveAt;
/***/ }),
-/* 469 */
+/* 471 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95334,7 +95799,7 @@ module.exports = RemoveAt;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RoundAwayFromZero = __webpack_require__(253);
+var RoundAwayFromZero = __webpack_require__(254);
/**
* Create an array of numbers (positive and/or negative) progressing from `start`
@@ -95402,7 +95867,7 @@ module.exports = NumberArrayStep;
/***/ }),
-/* 470 */
+/* 472 */
/***/ (function(module, exports) {
/**
@@ -95466,7 +95931,7 @@ module.exports = NumberArray;
/***/ }),
-/* 471 */
+/* 473 */
/***/ (function(module, exports) {
/**
@@ -95508,7 +95973,7 @@ module.exports = MoveUp;
/***/ }),
-/* 472 */
+/* 474 */
/***/ (function(module, exports) {
/**
@@ -95555,7 +96020,7 @@ module.exports = MoveTo;
/***/ }),
-/* 473 */
+/* 475 */
/***/ (function(module, exports) {
/**
@@ -95597,7 +96062,7 @@ module.exports = MoveDown;
/***/ }),
-/* 474 */
+/* 476 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95656,7 +96121,7 @@ module.exports = GetFirst;
/***/ }),
-/* 475 */
+/* 477 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95718,7 +96183,7 @@ module.exports = GetAll;
/***/ }),
-/* 476 */
+/* 478 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95774,7 +96239,7 @@ module.exports = EachInRange;
/***/ }),
-/* 477 */
+/* 479 */
/***/ (function(module, exports) {
/**
@@ -95820,7 +96285,7 @@ module.exports = Each;
/***/ }),
-/* 478 */
+/* 480 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -95872,7 +96337,7 @@ module.exports = CountAllMatching;
/***/ }),
-/* 479 */
+/* 481 */
/***/ (function(module, exports) {
/**
@@ -95910,7 +96375,7 @@ module.exports = BringToTop;
/***/ }),
-/* 480 */
+/* 482 */
/***/ (function(module, exports) {
/**
@@ -96032,7 +96497,7 @@ module.exports = AddAt;
/***/ }),
-/* 481 */
+/* 483 */
/***/ (function(module, exports) {
/**
@@ -96149,7 +96614,7 @@ module.exports = Add;
/***/ }),
-/* 482 */
+/* 484 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96179,7 +96644,7 @@ module.exports = RotateRight;
/***/ }),
-/* 483 */
+/* 485 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96209,7 +96674,7 @@ module.exports = RotateLeft;
/***/ }),
-/* 484 */
+/* 486 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96239,7 +96704,7 @@ module.exports = Rotate180;
/***/ }),
-/* 485 */
+/* 487 */
/***/ (function(module, exports) {
/**
@@ -96267,7 +96732,7 @@ module.exports = ReverseRows;
/***/ }),
-/* 486 */
+/* 488 */
/***/ (function(module, exports) {
/**
@@ -96300,7 +96765,7 @@ module.exports = ReverseColumns;
/***/ }),
-/* 487 */
+/* 489 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96309,7 +96774,7 @@ module.exports = ReverseColumns;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Pad = __webpack_require__(129);
+var Pad = __webpack_require__(130);
var CheckMatrix = __webpack_require__(113);
// Generates a string (which you can pass to console.log) from the given
@@ -96381,7 +96846,7 @@ module.exports = MatrixToString;
/***/ }),
-/* 488 */
+/* 490 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96397,20 +96862,20 @@ module.exports = MatrixToString;
module.exports = {
CheckMatrix: __webpack_require__(113),
- MatrixToString: __webpack_require__(487),
- ReverseColumns: __webpack_require__(486),
- ReverseRows: __webpack_require__(485),
- Rotate180: __webpack_require__(484),
- RotateLeft: __webpack_require__(483),
+ MatrixToString: __webpack_require__(489),
+ ReverseColumns: __webpack_require__(488),
+ ReverseRows: __webpack_require__(487),
+ Rotate180: __webpack_require__(486),
+ RotateLeft: __webpack_require__(485),
RotateMatrix: __webpack_require__(75),
- RotateRight: __webpack_require__(482),
- TransposeMatrix: __webpack_require__(172)
+ RotateRight: __webpack_require__(484),
+ TransposeMatrix: __webpack_require__(173)
};
/***/ }),
-/* 489 */
+/* 491 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96626,7 +97091,7 @@ module.exports = DisplayList;
/***/ }),
-/* 490 */
+/* 492 */
/***/ (function(module, exports) {
/**
@@ -96679,11 +97144,12 @@ module.exports = DisplayList;
* @fires Phaser.Boot.VisibilityHandler#focus
* @since 3.0.0
*
- * @param {Phaser.Events.EventEmitter} eventEmitter - The EventEmitter that will emit the visibility events.
+ * @param {Phaser.Game} game - The Game instance this Visibility Handler is working on.
*/
-var VisibilityHandler = function (eventEmitter)
+var VisibilityHandler = function (game)
{
var hiddenVar;
+ var eventEmitter = game.events;
if (document.hidden !== undefined)
{
@@ -96734,13 +97200,24 @@ var VisibilityHandler = function (eventEmitter)
{
eventEmitter.emit('focus');
};
+
+ // Automatically give the window focus unless config says otherwise
+ if (window.focus && game.config.autoFocus)
+ {
+ window.focus();
+
+ game.canvas.addEventListener('mousedown', function ()
+ {
+ window.focus();
+ }, { passive: true });
+ }
};
module.exports = VisibilityHandler;
/***/ }),
-/* 491 */
+/* 493 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -96752,7 +97229,7 @@ module.exports = VisibilityHandler;
var Class = __webpack_require__(0);
var GetValue = __webpack_require__(4);
var NOOP = __webpack_require__(3);
-var RequestAnimationFrame = __webpack_require__(266);
+var RequestAnimationFrame = __webpack_require__(267);
// Frame Rate config
// fps: {
@@ -97396,7 +97873,7 @@ module.exports = TimeStep;
/***/ }),
-/* 492 */
+/* 494 */
/***/ (function(module, exports) {
/**
@@ -97566,7 +98043,7 @@ TextureImporter:
/***/ }),
-/* 493 */
+/* 495 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -97757,7 +98234,7 @@ module.exports = SpriteSheetFromAtlas;
/***/ }),
-/* 494 */
+/* 496 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -97877,7 +98354,7 @@ module.exports = SpriteSheet;
/***/ }),
-/* 495 */
+/* 497 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -97976,7 +98453,7 @@ module.exports = JSONHash;
/***/ }),
-/* 496 */
+/* 498 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98083,7 +98560,7 @@ module.exports = JSONArray;
/***/ }),
-/* 497 */
+/* 499 */
/***/ (function(module, exports) {
/**
@@ -98118,7 +98595,7 @@ module.exports = Image;
/***/ }),
-/* 498 */
+/* 500 */
/***/ (function(module, exports) {
/**
@@ -98153,7 +98630,7 @@ module.exports = Canvas;
/***/ }),
-/* 499 */
+/* 501 */
/***/ (function(module, exports) {
/**
@@ -98234,7 +98711,7 @@ module.exports = AtlasXML;
/***/ }),
-/* 500 */
+/* 502 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98443,7 +98920,7 @@ module.exports = CanvasTexture;
/***/ }),
-/* 501 */
+/* 503 */
/***/ (function(module, exports) {
/**
@@ -98498,7 +98975,7 @@ module.exports = InjectionMap;
/***/ }),
-/* 502 */
+/* 504 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98545,7 +99022,7 @@ module.exports = GetScenePlugins;
/***/ }),
-/* 503 */
+/* 505 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98555,7 +99032,7 @@ module.exports = GetScenePlugins;
*/
var GetFastValue = __webpack_require__(1);
-var UppercaseFirst = __webpack_require__(254);
+var UppercaseFirst = __webpack_require__(255);
/**
* Builds an array of which physics plugins should be activated for the given Scene.
@@ -98607,7 +99084,7 @@ module.exports = GetPhysicsPlugins;
/***/ }),
-/* 504 */
+/* 506 */
/***/ (function(module, exports) {
/**
@@ -98657,7 +99134,7 @@ module.exports = ProcessKeyUp;
/***/ }),
-/* 505 */
+/* 507 */
/***/ (function(module, exports) {
/**
@@ -98715,7 +99192,7 @@ module.exports = ProcessKeyDown;
/***/ }),
-/* 506 */
+/* 508 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98737,7 +99214,7 @@ module.exports = KeyMap;
/***/ }),
-/* 507 */
+/* 509 */
/***/ (function(module, exports) {
/**
@@ -98771,7 +99248,7 @@ module.exports = ResetKeyCombo;
/***/ }),
-/* 508 */
+/* 510 */
/***/ (function(module, exports) {
/**
@@ -98812,7 +99289,7 @@ module.exports = AdvanceKeyCombo;
/***/ }),
-/* 509 */
+/* 511 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -98821,7 +99298,7 @@ module.exports = AdvanceKeyCombo;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var AdvanceKeyCombo = __webpack_require__(508);
+var AdvanceKeyCombo = __webpack_require__(510);
/**
* Used internally by the KeyCombo class.
@@ -98892,7 +99369,7 @@ module.exports = ProcessKeyCombo;
/***/ }),
-/* 510 */
+/* 512 */
/***/ (function(module, exports) {
/**
@@ -98990,7 +99467,7 @@ module.exports = init();
/***/ }),
-/* 511 */
+/* 513 */
/***/ (function(module, exports) {
/**
@@ -99075,7 +99552,7 @@ module.exports = init();
/***/ }),
-/* 512 */
+/* 514 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99200,7 +99677,7 @@ module.exports = init();
/***/ }),
-/* 513 */
+/* 515 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99279,7 +99756,7 @@ module.exports = init();
/***/ }),
-/* 514 */
+/* 516 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99316,17 +99793,17 @@ module.exports = {
os: __webpack_require__(56),
browser: __webpack_require__(78),
features: __webpack_require__(118),
- input: __webpack_require__(513),
- audio: __webpack_require__(512),
- video: __webpack_require__(511),
- fullscreen: __webpack_require__(510),
- canvasFeatures: __webpack_require__(200)
+ input: __webpack_require__(515),
+ audio: __webpack_require__(514),
+ video: __webpack_require__(513),
+ fullscreen: __webpack_require__(512),
+ canvasFeatures: __webpack_require__(201)
};
/***/ }),
-/* 515 */
+/* 517 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99454,7 +99931,7 @@ module.exports = DebugHeader;
/***/ }),
-/* 516 */
+/* 518 */
/***/ (function(module, exports) {
module.exports = [
@@ -99485,7 +99962,7 @@ module.exports = [
/***/ }),
-/* 517 */
+/* 519 */
/***/ (function(module, exports) {
module.exports = [
@@ -99509,7 +99986,7 @@ module.exports = [
/***/ }),
-/* 518 */
+/* 520 */
/***/ (function(module, exports) {
module.exports = [
@@ -99567,7 +100044,7 @@ module.exports = [
/***/ }),
-/* 519 */
+/* 521 */
/***/ (function(module, exports) {
module.exports = [
@@ -99593,7 +100070,7 @@ module.exports = [
/***/ }),
-/* 520 */
+/* 522 */
/***/ (function(module, exports) {
module.exports = [
@@ -99611,7 +100088,7 @@ module.exports = [
/***/ }),
-/* 521 */
+/* 523 */
/***/ (function(module, exports) {
module.exports = [
@@ -99630,7 +100107,7 @@ module.exports = [
/***/ }),
-/* 522 */
+/* 524 */
/***/ (function(module, exports) {
module.exports = [
@@ -99666,7 +100143,7 @@ module.exports = [
/***/ }),
-/* 523 */
+/* 525 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99764,8 +100241,8 @@ var CreateRenderer = function (game)
if (true)
{
- CanvasRenderer = __webpack_require__(265);
- WebGLRenderer = __webpack_require__(260);
+ CanvasRenderer = __webpack_require__(266);
+ WebGLRenderer = __webpack_require__(261);
// Let the config pick the renderer type, as both are included
if (config.renderType === CONST.WEBGL)
@@ -99793,7 +100270,7 @@ module.exports = CreateRenderer;
/***/ }),
-/* 524 */
+/* 526 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -99810,7 +100287,7 @@ var IsPlainObject = __webpack_require__(8);
var MATH = __webpack_require__(16);
var NOOP = __webpack_require__(3);
var DefaultPlugins = __webpack_require__(119);
-var ValueToColor = __webpack_require__(128);
+var ValueToColor = __webpack_require__(129);
/**
* This callback type is completely empty, a no-operation.
@@ -99865,6 +100342,7 @@ var ValueToColor = __webpack_require__(128);
* @property {string} [title=''] - [description]
* @property {string} [url='http://phaser.io'] - [description]
* @property {string} [version=''] - [description]
+ * @property {boolean} [autoFocus=true] - Automatically call window.focus() when the game boots.
* @property {(boolean|object)} [input] - [description]
* @property {boolean} [input.keyboard=true] - [description]
* @property {*} [input.keyboard.target=window] - [description]
@@ -100002,6 +100480,11 @@ var Config = new Class({
*/
this.gameVersion = GetValue(config, 'version', '');
+ /**
+ * @const {boolean} Phaser.Boot.Config#autoFocus - [description]
+ */
+ this.autoFocus = GetValue(config, 'autoFocus', true);
+
// Input
/**
@@ -100323,7 +100806,7 @@ module.exports = Config;
/***/ }),
-/* 525 */
+/* 527 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -100332,25 +100815,25 @@ module.exports = Config;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var AddToDOM = __webpack_require__(126);
-var AnimationManager = __webpack_require__(204);
-var CacheManager = __webpack_require__(202);
+var AddToDOM = __webpack_require__(127);
+var AnimationManager = __webpack_require__(205);
+var CacheManager = __webpack_require__(203);
var CanvasPool = __webpack_require__(22);
var Class = __webpack_require__(0);
-var Config = __webpack_require__(524);
-var CreateRenderer = __webpack_require__(523);
+var Config = __webpack_require__(526);
+var CreateRenderer = __webpack_require__(525);
var DataManager = __webpack_require__(79);
-var DebugHeader = __webpack_require__(515);
-var Device = __webpack_require__(514);
-var DOMContentLoaded = __webpack_require__(269);
+var DebugHeader = __webpack_require__(517);
+var Device = __webpack_require__(516);
+var DOMContentLoaded = __webpack_require__(270);
var EventEmitter = __webpack_require__(9);
-var InputManager = __webpack_require__(198);
-var PluginManager = __webpack_require__(187);
-var SceneManager = __webpack_require__(185);
-var SoundManagerCreator = __webpack_require__(182);
-var TextureManager = __webpack_require__(175);
-var TimeStep = __webpack_require__(491);
-var VisibilityHandler = __webpack_require__(490);
+var InputManager = __webpack_require__(199);
+var PluginManager = __webpack_require__(188);
+var SceneManager = __webpack_require__(186);
+var SoundManagerCreator = __webpack_require__(183);
+var TextureManager = __webpack_require__(176);
+var TimeStep = __webpack_require__(493);
+var VisibilityHandler = __webpack_require__(492);
/**
* @classdesc
@@ -100415,7 +100898,7 @@ var Game = new Class({
* in your Game Config.
*
* @name Phaser.Game#context
- * @type {(CanvasRenderingContext2D|WebGLRenderingContext|WebGL2RenderingContext)}
+ * @type {(CanvasRenderingContext2D|WebGLRenderingContext)}
* @since 3.0.0
*/
this.context = null;
@@ -100580,6 +101063,17 @@ var Game = new Class({
*/
this.removeCanvas = false;
+ /**
+ * Does the window the game is running in currently have focus or not?
+ * This is modified by the VisibilityHandler.
+ *
+ * @name Phaser.Game#hasFocus
+ * @type {boolean}
+ * @readOnly
+ * @since 3.9.0
+ */
+ this.hasFocus = false;
+
// Wait for the DOM Ready event, then call boot.
DOMContentLoaded(this.boot.bind(this));
},
@@ -100645,7 +101139,7 @@ var Game = new Class({
this.loop.start(this.headlessStep.bind(this));
}
- VisibilityHandler(this.events);
+ VisibilityHandler(this);
var eventEmitter = this.events;
@@ -100874,6 +101368,8 @@ var Game = new Class({
*/
onBlur: function ()
{
+ this.hasFocus = false;
+
this.loop.blur();
},
@@ -100887,6 +101383,8 @@ var Game = new Class({
*/
onFocus: function ()
{
+ this.hasFocus = true;
+
this.loop.focus();
},
@@ -100979,7 +101477,7 @@ module.exports = Game;
/***/ }),
-/* 526 */
+/* 528 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101163,7 +101661,7 @@ module.exports = EventEmitter;
/***/ }),
-/* 527 */
+/* 529 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101176,11 +101674,11 @@ module.exports = EventEmitter;
* @namespace Phaser.Events
*/
-module.exports = { EventEmitter: __webpack_require__(526) };
+module.exports = { EventEmitter: __webpack_require__(528) };
/***/ }),
-/* 528 */
+/* 530 */
/***/ (function(module, exports) {
// shim for using process in browser
@@ -101370,7 +101868,7 @@ process.umask = function() { return 0; };
/***/ }),
-/* 529 */
+/* 531 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101385,14 +101883,14 @@ process.umask = function() { return 0; };
module.exports = {
- BitmapMask: __webpack_require__(211),
- GeometryMask: __webpack_require__(210)
+ BitmapMask: __webpack_require__(212),
+ GeometryMask: __webpack_require__(211)
};
/***/ }),
-/* 530 */
+/* 532 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101401,7 +101899,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetColor = __webpack_require__(149);
+var GetColor = __webpack_require__(150);
/**
* Converts an HSV (hue, saturation and value) color value to RGB.
@@ -101476,7 +101974,7 @@ module.exports = HSVToRGB;
/***/ }),
-/* 531 */
+/* 533 */
/***/ (function(module, exports) {
/**
@@ -101532,7 +102030,7 @@ module.exports = HueToComponent;
/***/ }),
-/* 532 */
+/* 534 */
/***/ (function(module, exports) {
/**
@@ -101562,7 +102060,7 @@ module.exports = ComponentToHex;
/***/ }),
-/* 533 */
+/* 535 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101590,30 +102088,30 @@ module.exports = ComponentToHex;
var Color = __webpack_require__(30);
-Color.ColorToRGBA = __webpack_require__(919);
-Color.ComponentToHex = __webpack_require__(532);
-Color.GetColor = __webpack_require__(149);
+Color.ColorToRGBA = __webpack_require__(921);
+Color.ComponentToHex = __webpack_require__(534);
+Color.GetColor = __webpack_require__(150);
Color.GetColor32 = __webpack_require__(284);
Color.HexStringToColor = __webpack_require__(285);
-Color.HSLToColor = __webpack_require__(918);
-Color.HSVColorWheel = __webpack_require__(917);
-Color.HSVToRGB = __webpack_require__(530);
-Color.HueToComponent = __webpack_require__(531);
+Color.HSLToColor = __webpack_require__(920);
+Color.HSVColorWheel = __webpack_require__(919);
+Color.HSVToRGB = __webpack_require__(532);
+Color.HueToComponent = __webpack_require__(533);
Color.IntegerToColor = __webpack_require__(283);
Color.IntegerToRGB = __webpack_require__(282);
-Color.Interpolate = __webpack_require__(916);
+Color.Interpolate = __webpack_require__(918);
Color.ObjectToColor = __webpack_require__(281);
-Color.RandomRGB = __webpack_require__(915);
+Color.RandomRGB = __webpack_require__(917);
Color.RGBStringToColor = __webpack_require__(280);
-Color.RGBToHSV = __webpack_require__(914);
-Color.RGBToString = __webpack_require__(913);
-Color.ValueToColor = __webpack_require__(128);
+Color.RGBToHSV = __webpack_require__(916);
+Color.RGBToString = __webpack_require__(915);
+Color.ValueToColor = __webpack_require__(129);
module.exports = Color;
/***/ }),
-/* 534 */
+/* 536 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101638,7 +102136,7 @@ var PluginCache = __webpack_require__(12);
* @constructor
* @since 3.0.0
*
- * @param {Phaser.Scene} scene - [description]
+ * @param {Phaser.Scene} scene - A reference to the Scene that this DataManager belongs to.
*/
var DataManagerPlugin = new Class({
@@ -101651,7 +102149,7 @@ var DataManagerPlugin = new Class({
DataManager.call(this, scene, scene.sys.events);
/**
- * [description]
+ * A reference to the Scene that this DataManager belongs to.
*
* @name Phaser.Data.DataManagerPlugin#scene
* @type {Phaser.Scene}
@@ -101660,7 +102158,7 @@ var DataManagerPlugin = new Class({
this.scene = scene;
/**
- * [description]
+ * A reference to the Scene's Systems.
*
* @name Phaser.Data.DataManagerPlugin#systems
* @type {Phaser.Scenes.Systems}
@@ -101739,7 +102237,7 @@ module.exports = DataManagerPlugin;
/***/ }),
-/* 535 */
+/* 537 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101755,13 +102253,13 @@ module.exports = DataManagerPlugin;
module.exports = {
DataManager: __webpack_require__(79),
- DataManagerPlugin: __webpack_require__(534)
+ DataManagerPlugin: __webpack_require__(536)
};
/***/ }),
-/* 536 */
+/* 538 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -101781,7 +102279,7 @@ var Vector2 = __webpack_require__(7);
* @classdesc
* [description]
*
- * @class SplineCurve
+ * @class Spline
* @extends Phaser.Curves.Curve
* @memberOf Phaser.Curves
* @constructor
@@ -101804,7 +102302,7 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.SplineCurve#points
+ * @name Phaser.Curves.Spline#points
* @type {Phaser.Math.Vector2[]}
* @default []
* @since 3.0.0
@@ -101817,12 +102315,12 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.SplineCurve#addPoints
+ * @method Phaser.Curves.Spline#addPoints
* @since 3.0.0
*
* @param {(Phaser.Math.Vector2[]|number[]|number[][])} points - [description]
*
- * @return {Phaser.Curves.SplineCurve} This curve object.
+ * @return {Phaser.Curves.Spline} This curve object.
*/
addPoints: function (points)
{
@@ -101857,7 +102355,7 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.SplineCurve#addPoint
+ * @method Phaser.Curves.Spline#addPoint
* @since 3.0.0
*
* @param {number} x - [description]
@@ -101877,7 +102375,7 @@ var SplineCurve = new Class({
/**
* Gets the starting point on the curve.
*
- * @method Phaser.Curves.SplineCurve#getStartPoint
+ * @method Phaser.Curves.Spline#getStartPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -101896,7 +102394,7 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.SplineCurve#getResolution
+ * @method Phaser.Curves.Spline#getResolution
* @since 3.0.0
*
* @param {number} divisions - [description]
@@ -101911,7 +102409,7 @@ var SplineCurve = new Class({
/**
* Get point at relative position in curve according to length.
*
- * @method Phaser.Curves.SplineCurve#getPoint
+ * @method Phaser.Curves.Spline#getPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -101944,7 +102442,7 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.SplineCurve#toJSON
+ * @method Phaser.Curves.Spline#toJSON
* @since 3.0.0
*
* @return {JSONCurve} The JSON object containing this curve data.
@@ -101970,12 +102468,12 @@ var SplineCurve = new Class({
/**
* [description]
*
- * @function Phaser.Curves.SplineCurve.fromJSON
+ * @function Phaser.Curves.Spline.fromJSON
* @since 3.0.0
*
* @param {JSONCurve} data - The JSON object containing this curve data.
*
- * @return {Phaser.Curves.SplineCurve} [description]
+ * @return {Phaser.Curves.Spline} [description]
*/
SplineCurve.fromJSON = function (data)
{
@@ -101986,7 +102484,7 @@ module.exports = SplineCurve;
/***/ }),
-/* 537 */
+/* 539 */
/***/ (function(module, exports) {
/**
@@ -102019,17 +102517,17 @@ function P2 (t, p)
// https://github.com/mrdoob/three.js/blob/master/src/extras/core/Interpolations.js
/**
- * [description]
+ * A quadratic bezier interpolation method.
*
* @function Phaser.Math.Interpolation.QuadraticBezier
* @since 3.2.0
*
- * @param {float} t - [description]
- * @param {number} p0 - [description]
- * @param {number} p1 - [description]
- * @param {number} p2 - [description]
+ * @param {float} t - The percentage of interpolation, between 0 and 1.
+ * @param {number} p0 - The start point.
+ * @param {number} p1 - The control point.
+ * @param {number} p2 - The end point.
*
- * @return {number} [description]
+ * @return {number} The interpolated value.
*/
var QuadraticBezierInterpolation = function (t, p0, p1, p2)
{
@@ -102040,7 +102538,7 @@ module.exports = QuadraticBezierInterpolation;
/***/ }),
-/* 538 */
+/* 540 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -102051,7 +102549,7 @@ module.exports = QuadraticBezierInterpolation;
var Class = __webpack_require__(0);
var Curve = __webpack_require__(85);
-var QuadraticBezierInterpolation = __webpack_require__(537);
+var QuadraticBezierInterpolation = __webpack_require__(539);
var Vector2 = __webpack_require__(7);
/**
@@ -102254,7 +102752,7 @@ module.exports = QuadraticBezier;
/***/ }),
-/* 539 */
+/* 541 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -102277,7 +102775,7 @@ var tmpVec2 = new Vector2();
* @classdesc
* [description]
*
- * @class LineCurve
+ * @class Line
* @extends Phaser.Curves.Curve
* @memberOf Phaser.Curves
* @constructor
@@ -102306,7 +102804,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.LineCurve#p0
+ * @name Phaser.Curves.Line#p0
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -102315,7 +102813,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.LineCurve#p1
+ * @name Phaser.Curves.Line#p1
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -102325,7 +102823,7 @@ var LineCurve = new Class({
/**
* Returns a Rectangle where the position and dimensions match the bounds of this Curve.
*
- * @method Phaser.Curves.LineCurve#getBounds
+ * @method Phaser.Curves.Line#getBounds
* @since 3.0.0
*
* @generic {Phaser.Geom.Rectangle} O - [out,$return]
@@ -102344,7 +102842,7 @@ var LineCurve = new Class({
/**
* Gets the starting point on the curve.
*
- * @method Phaser.Curves.LineCurve#getStartPoint
+ * @method Phaser.Curves.Line#getStartPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102363,7 +102861,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.LineCurve#getResolution
+ * @method Phaser.Curves.Line#getResolution
* @since 3.0.0
*
* @param {number} [divisions=1] - [description]
@@ -102380,7 +102878,7 @@ var LineCurve = new Class({
/**
* Get point at relative position in curve according to length.
*
- * @method Phaser.Curves.LineCurve#getPoint
+ * @method Phaser.Curves.Line#getPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102409,7 +102907,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.LineCurve#getPointAt
+ * @method Phaser.Curves.Line#getPointAt
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102427,7 +102925,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.LineCurve#getTangent
+ * @method Phaser.Curves.Line#getTangent
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102449,7 +102947,7 @@ var LineCurve = new Class({
* The curve is drawn using `Graphics.lineBetween` so will be drawn at whatever the present Graphics line color is.
* The Graphics object is not cleared before the draw, so the curve will appear on-top of anything else already rendered to it.
*
- * @method Phaser.Curves.LineCurve#draw
+ * @method Phaser.Curves.Line#draw
* @since 3.0.0
*
* @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]
@@ -102469,7 +102967,7 @@ var LineCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.LineCurve#toJSON
+ * @method Phaser.Curves.Line#toJSON
* @since 3.0.0
*
* @return {JSONCurve} The JSON object containing this curve data.
@@ -102490,12 +102988,12 @@ var LineCurve = new Class({
/**
* [description]
*
- * @function Phaser.Curves.LineCurve.fromJSON
+ * @function Phaser.Curves.Line.fromJSON
* @since 3.0.0
*
* @param {JSONCurve} data - The JSON object containing this curve data.
*
- * @return {Phaser.Curves.LineCurve} [description]
+ * @return {Phaser.Curves.Line} [description]
*/
LineCurve.fromJSON = function (data)
{
@@ -102511,7 +103009,7 @@ module.exports = LineCurve;
/***/ }),
-/* 540 */
+/* 542 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -102526,7 +103024,7 @@ var Class = __webpack_require__(0);
var Curve = __webpack_require__(85);
var DegToRad = __webpack_require__(38);
var GetValue = __webpack_require__(4);
-var RadToDeg = __webpack_require__(147);
+var RadToDeg = __webpack_require__(148);
var Vector2 = __webpack_require__(7);
/**
@@ -102560,7 +103058,7 @@ var Vector2 = __webpack_require__(7);
* @classdesc
* [description]
*
- * @class EllipseCurve
+ * @class Ellipse
* @extends Phaser.Curves.Curve
* @memberOf Phaser.Curves
* @constructor
@@ -102612,7 +103110,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#p0
+ * @name Phaser.Curves.Ellipse#p0
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -102621,7 +103119,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#_xRadius
+ * @name Phaser.Curves.Ellipse#_xRadius
* @type {number}
* @private
* @since 3.0.0
@@ -102631,7 +103129,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#_yRadius
+ * @name Phaser.Curves.Ellipse#_yRadius
* @type {number}
* @private
* @since 3.0.0
@@ -102643,7 +103141,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#_startAngle
+ * @name Phaser.Curves.Ellipse#_startAngle
* @type {number}
* @private
* @since 3.0.0
@@ -102653,7 +103151,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#_endAngle
+ * @name Phaser.Curves.Ellipse#_endAngle
* @type {number}
* @private
* @since 3.0.0
@@ -102663,7 +103161,7 @@ var EllipseCurve = new Class({
/**
* Anti-clockwise direction.
*
- * @name Phaser.Curves.EllipseCurve#_clockwise
+ * @name Phaser.Curves.Ellipse#_clockwise
* @type {boolean}
* @private
* @since 3.0.0
@@ -102673,7 +103171,7 @@ var EllipseCurve = new Class({
/**
* The rotation of the arc.
*
- * @name Phaser.Curves.EllipseCurve#_rotation
+ * @name Phaser.Curves.Ellipse#_rotation
* @type {number}
* @private
* @since 3.0.0
@@ -102684,7 +103182,7 @@ var EllipseCurve = new Class({
/**
* Gets the starting point on the curve.
*
- * @method Phaser.Curves.EllipseCurve#getStartPoint
+ * @method Phaser.Curves.Ellipse#getStartPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102703,7 +103201,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.EllipseCurve#getResolution
+ * @method Phaser.Curves.Ellipse#getResolution
* @since 3.0.0
*
* @param {number} divisions - [description]
@@ -102718,7 +103216,7 @@ var EllipseCurve = new Class({
/**
* Get point at relative position in curve according to length.
*
- * @method Phaser.Curves.EllipseCurve#getPoint
+ * @method Phaser.Curves.Ellipse#getPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -102794,12 +103292,12 @@ var EllipseCurve = new Class({
/**
* Sets the horizontal radius of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setXRadius
+ * @method Phaser.Curves.Ellipse#setXRadius
* @since 3.0.0
*
* @param {number} value - The horizontal radius of this curve.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setXRadius: function (value)
{
@@ -102811,12 +103309,12 @@ var EllipseCurve = new Class({
/**
* Sets the vertical radius of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setYRadius
+ * @method Phaser.Curves.Ellipse#setYRadius
* @since 3.0.0
*
* @param {number} value - The vertical radius of this curve.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setYRadius: function (value)
{
@@ -102828,12 +103326,12 @@ var EllipseCurve = new Class({
/**
* Sets the width of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setWidth
+ * @method Phaser.Curves.Ellipse#setWidth
* @since 3.0.0
*
* @param {number} value - The width of this curve.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setWidth: function (value)
{
@@ -102845,12 +103343,12 @@ var EllipseCurve = new Class({
/**
* Sets the height of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setHeight
+ * @method Phaser.Curves.Ellipse#setHeight
* @since 3.0.0
*
* @param {number} value - The height of this curve.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setHeight: function (value)
{
@@ -102862,12 +103360,12 @@ var EllipseCurve = new Class({
/**
* Sets the start angle of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setStartAngle
+ * @method Phaser.Curves.Ellipse#setStartAngle
* @since 3.0.0
*
* @param {number} value - The start angle of this curve, in radians.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setStartAngle: function (value)
{
@@ -102879,12 +103377,12 @@ var EllipseCurve = new Class({
/**
* Sets the end angle of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setEndAngle
+ * @method Phaser.Curves.Ellipse#setEndAngle
* @since 3.0.0
*
* @param {number} value - The end angle of this curve, in radians.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setEndAngle: function (value)
{
@@ -102896,12 +103394,12 @@ var EllipseCurve = new Class({
/**
* Sets if this curve extends clockwise or anti-clockwise.
*
- * @method Phaser.Curves.EllipseCurve#setClockwise
+ * @method Phaser.Curves.Ellipse#setClockwise
* @since 3.0.0
*
* @param {boolean} value - The clockwise state of this curve.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setClockwise: function (value)
{
@@ -102913,12 +103411,12 @@ var EllipseCurve = new Class({
/**
* Sets the rotation of this curve.
*
- * @method Phaser.Curves.EllipseCurve#setRotation
+ * @method Phaser.Curves.Ellipse#setRotation
* @since 3.0.0
*
* @param {number} value - The rotation of this curve, in radians.
*
- * @return {Phaser.Curves.EllipseCurve} This curve object.
+ * @return {Phaser.Curves.Ellipse} This curve object.
*/
setRotation: function (value)
{
@@ -102930,7 +103428,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#x
+ * @name Phaser.Curves.Ellipse#x
* @type {number}
* @since 3.0.0
*/
@@ -102951,7 +103449,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#y
+ * @name Phaser.Curves.Ellipse#y
* @type {number}
* @since 3.0.0
*/
@@ -102972,7 +103470,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#xRadius
+ * @name Phaser.Curves.Ellipse#xRadius
* @type {number}
* @since 3.0.0
*/
@@ -102993,7 +103491,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#yRadius
+ * @name Phaser.Curves.Ellipse#yRadius
* @type {number}
* @since 3.0.0
*/
@@ -103014,7 +103512,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#startAngle
+ * @name Phaser.Curves.Ellipse#startAngle
* @type {number}
* @since 3.0.0
*/
@@ -103035,7 +103533,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#endAngle
+ * @name Phaser.Curves.Ellipse#endAngle
* @type {number}
* @since 3.0.0
*/
@@ -103056,7 +103554,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#clockwise
+ * @name Phaser.Curves.Ellipse#clockwise
* @type {boolean}
* @since 3.0.0
*/
@@ -103077,7 +103575,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.EllipseCurve#rotation
+ * @name Phaser.Curves.Ellipse#rotation
* @type {number}
* @since 3.0.0
*/
@@ -103098,7 +103596,7 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.EllipseCurve#toJSON
+ * @method Phaser.Curves.Ellipse#toJSON
* @since 3.0.0
*
* @return {JSONEllipseCurve} The JSON object containing this curve data.
@@ -103123,12 +103621,12 @@ var EllipseCurve = new Class({
/**
* [description]
*
- * @function Phaser.Curves.EllipseCurve.fromJSON
+ * @function Phaser.Curves.Ellipse.fromJSON
* @since 3.0.0
*
* @param {JSONEllipseCurve} data - The JSON object containing this curve data.
*
- * @return {Phaser.Curves.EllipseCurve} [description]
+ * @return {Phaser.Curves.Ellipse} [description]
*/
EllipseCurve.fromJSON = function (data)
{
@@ -103139,7 +103637,7 @@ module.exports = EllipseCurve;
/***/ }),
-/* 541 */
+/* 543 */
/***/ (function(module, exports) {
/**
@@ -103180,18 +103678,18 @@ function P3 (t, p)
// https://medium.com/@adrian_cooney/bezier-interpolation-13b68563313a
/**
- * [description]
+ * A cubic bezier interpolation method.
*
* @function Phaser.Math.Interpolation.CubicBezier
* @since 3.0.0
*
- * @param {float} t - [description]
- * @param {number} p0 - [description]
- * @param {number} p1 - [description]
- * @param {number} p2 - [description]
- * @param {number} p3 - [description]
+ * @param {float} t - The percentage of interpolation, between 0 and 1.
+ * @param {number} p0 - The start point.
+ * @param {number} p1 - The first control point.
+ * @param {number} p2 - The second control point.
+ * @param {number} p3 - The end point.
*
- * @return {number} [description]
+ * @return {number} The interpolated value.
*/
var CubicBezierInterpolation = function (t, p0, p1, p2, p3)
{
@@ -103202,7 +103700,7 @@ module.exports = CubicBezierInterpolation;
/***/ }),
-/* 542 */
+/* 544 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103214,7 +103712,7 @@ module.exports = CubicBezierInterpolation;
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = __webpack_require__(0);
-var CubicBezier = __webpack_require__(541);
+var CubicBezier = __webpack_require__(543);
var Curve = __webpack_require__(85);
var Vector2 = __webpack_require__(7);
@@ -103222,7 +103720,7 @@ var Vector2 = __webpack_require__(7);
* @classdesc
* [description]
*
- * @class CubicBezierCurve
+ * @class CubicBezier
* @extends Phaser.Curves.Curve
* @memberOf Phaser.Curves
* @constructor
@@ -103254,7 +103752,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.CubicBezierCurve#p0
+ * @name Phaser.Curves.CubicBezier#p0
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -103263,7 +103761,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.CubicBezierCurve#p1
+ * @name Phaser.Curves.CubicBezier#p1
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -103272,7 +103770,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.CubicBezierCurve#p2
+ * @name Phaser.Curves.CubicBezier#p2
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -103281,7 +103779,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @name Phaser.Curves.CubicBezierCurve#p3
+ * @name Phaser.Curves.CubicBezier#p3
* @type {Phaser.Math.Vector2}
* @since 3.0.0
*/
@@ -103291,7 +103789,7 @@ var CubicBezierCurve = new Class({
/**
* Gets the starting point on the curve.
*
- * @method Phaser.Curves.CubicBezierCurve#getStartPoint
+ * @method Phaser.Curves.CubicBezier#getStartPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -103310,7 +103808,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.CubicBezierCurve#getResolution
+ * @method Phaser.Curves.CubicBezier#getResolution
* @since 3.0.0
*
* @param {number} divisions - The amount of divisions used by this curve.
@@ -103325,7 +103823,7 @@ var CubicBezierCurve = new Class({
/**
* Get point at relative position in curve according to length.
*
- * @method Phaser.Curves.CubicBezierCurve#getPoint
+ * @method Phaser.Curves.CubicBezier#getPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
@@ -103350,7 +103848,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.CubicBezierCurve#draw
+ * @method Phaser.Curves.CubicBezier#draw
* @since 3.0.0
*
* @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]
@@ -103383,7 +103881,7 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @method Phaser.Curves.CubicBezierCurve#toJSON
+ * @method Phaser.Curves.CubicBezier#toJSON
* @since 3.0.0
*
* @return {JSONCurve} The JSON object containing this curve data.
@@ -103406,12 +103904,12 @@ var CubicBezierCurve = new Class({
/**
* [description]
*
- * @function Phaser.Curves.CubicBezierCurve.fromJSON
+ * @function Phaser.Curves.CubicBezier.fromJSON
* @since 3.0.0
*
* @param {JSONCurve} data - The JSON object containing this curve data.
*
- * @return {Phaser.Curves.CubicBezierCurve} [description]
+ * @return {Phaser.Curves.CubicBezier} [description]
*/
CubicBezierCurve.fromJSON = function (data)
{
@@ -103429,7 +103927,7 @@ module.exports = CubicBezierCurve;
/***/ }),
-/* 543 */
+/* 545 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103569,7 +104067,7 @@ module.exports = PerspectiveCamera;
/***/ }),
-/* 544 */
+/* 546 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103756,7 +104254,7 @@ module.exports = OrthographicCamera;
/***/ }),
-/* 545 */
+/* 547 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103796,7 +104294,7 @@ module.exports = SpriteCanvasRenderer;
/***/ }),
-/* 546 */
+/* 548 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103836,7 +104334,7 @@ module.exports = SpriteWebGLRenderer;
/***/ }),
-/* 547 */
+/* 549 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103850,12 +104348,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(546);
+ renderWebGL = __webpack_require__(548);
}
if (true)
{
- renderCanvas = __webpack_require__(545);
+ renderCanvas = __webpack_require__(547);
}
module.exports = {
@@ -103867,7 +104365,7 @@ module.exports = {
/***/ }),
-/* 548 */
+/* 550 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -103883,16 +104381,17 @@ var Class = __webpack_require__(0);
/**
* @classdesc
- * [description]
+ * A three-dimensional matrix.
+ *
+ * Defaults to the identity matrix when instantiated.
*
* @class Matrix3
* @memberOf Phaser.Math
* @constructor
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} [m] - [description]
+ * @param {Phaser.Math.Matrix3} [m] - Optional Matrix3 to copy values from.
*/
-
var Matrix3 = new Class({
initialize:
@@ -103900,7 +104399,7 @@ var Matrix3 = new Class({
function Matrix3 (m)
{
/**
- * [description]
+ * The matrix values.
*
* @name Phaser.Math.Matrix3#val
* @type {Float32Array}
@@ -103921,12 +104420,12 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Make a clone of this Matrix3.
*
* @method Phaser.Math.Matrix3#clone
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix3} A new Matrix3 object.
+ * @return {Phaser.Math.Matrix3} A clone of this Matrix3.
*/
clone: function ()
{
@@ -103934,14 +104433,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * This method is an alias for `Matrix3.copy`.
*
* @method Phaser.Math.Matrix3#set
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} src - [description]
+ * @param {Phaser.Math.Matrix3} src - The Matrix to set the values of this Matrix's from.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
set: function (src)
{
@@ -103949,14 +104448,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Copy the values of a given Matrix into this Matrix.
*
* @method Phaser.Math.Matrix3#copy
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} src - [description]
+ * @param {Phaser.Math.Matrix3} src - The Matrix to copy the values from.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
copy: function (src)
{
@@ -103977,14 +104476,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Copy the values of a given Matrix4 into this Matrix3.
*
* @method Phaser.Math.Matrix3#fromMat4
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix4} m - [description]
+ * @param {Phaser.Math.Matrix4} m - The Matrix4 to copy the values from.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
fromMat4: function (m)
{
@@ -104005,14 +104504,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Set the values of this Matrix from the given array.
*
* @method Phaser.Math.Matrix3#fromArray
* @since 3.0.0
*
- * @param {array} a - [description]
+ * @param {array} a - The array to copy the values from.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
fromArray: function (a)
{
@@ -104032,12 +104531,12 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Reset this Matrix to an identity (default) matrix.
*
* @method Phaser.Math.Matrix3#identity
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
identity: function ()
{
@@ -104057,12 +104556,12 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Transpose this Matrix.
*
* @method Phaser.Math.Matrix3#transpose
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
transpose: function ()
{
@@ -104082,12 +104581,12 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Invert this Matrix.
*
* @method Phaser.Math.Matrix3#invert
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
invert: function ()
{
@@ -104136,7 +104635,7 @@ var Matrix3 = new Class({
* @method Phaser.Math.Matrix3#adjoint
* @since 3.0.0
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
adjoint: function ()
{
@@ -104166,12 +104665,12 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Calculate the determinant of this Matrix.
*
* @method Phaser.Math.Matrix3#determinant
* @since 3.0.0
*
- * @return {number} [description]
+ * @return {number} The determinant of this Matrix.
*/
determinant: function ()
{
@@ -104191,14 +104690,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Multiply this Matrix by the given Matrix.
*
* @method Phaser.Math.Matrix3#multiply
* @since 3.0.0
*
- * @param {Phaser.Math.Matrix3} src - [description]
+ * @param {Phaser.Math.Matrix3} src - The Matrix to multiply this Matrix by.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
multiply: function (src)
{
@@ -104242,14 +104741,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Translate this Matrix using the given Vector.
*
* @method Phaser.Math.Matrix3#translate
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to translate this Matrix with.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
translate: function (v)
{
@@ -104265,14 +104764,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Apply a rotation transformation to this Matrix.
*
* @method Phaser.Math.Matrix3#rotate
* @since 3.0.0
*
- * @param {number} rad - [description]
+ * @param {number} rad - The angle in radians to rotate by.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
rotate: function (rad)
{
@@ -104300,14 +104799,16 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Apply a scale transformation to this Matrix.
+ *
+ * Uses the `x` and `y` components of the given Vector to scale the Matrix.
*
* @method Phaser.Math.Matrix3#scale
* @since 3.0.0
*
- * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - [description]
+ * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to scale this Matrix with.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
scale: function (v)
{
@@ -104327,14 +104828,14 @@ var Matrix3 = new Class({
},
/**
- * [description]
+ * Set the values of this Matrix from the given Quaternion.
*
* @method Phaser.Math.Matrix3#fromQuat
* @since 3.0.0
*
- * @param {Phaser.Math.Quaternion} q - [description]
+ * @param {Phaser.Math.Quaternion} q - The Quaternion to set the values of this Matrix from.
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
fromQuat: function (q)
{
@@ -104384,7 +104885,7 @@ var Matrix3 = new Class({
*
* @param {Phaser.Math.Matrix4} m - [description]
*
- * @return {Phaser.Math.Matrix3} This Matrix3 object.
+ * @return {Phaser.Math.Matrix3} This Matrix3.
*/
normalFromMat4: function (m)
{
@@ -104457,7 +104958,7 @@ module.exports = Matrix3;
/***/ }),
-/* 549 */
+/* 551 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -104471,7 +104972,7 @@ module.exports = Matrix3;
var Class = __webpack_require__(0);
var Vector3 = __webpack_require__(86);
-var Matrix3 = __webpack_require__(548);
+var Matrix3 = __webpack_require__(550);
var EPSILON = 0.000001;
@@ -105225,7 +105726,7 @@ module.exports = Quaternion;
/***/ }),
-/* 550 */
+/* 552 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -105236,7 +105737,7 @@ module.exports = Quaternion;
var Vector3 = __webpack_require__(86);
var Matrix4 = __webpack_require__(278);
-var Quaternion = __webpack_require__(549);
+var Quaternion = __webpack_require__(551);
var tmpMat4 = new Matrix4();
var tmpQuat = new Quaternion();
@@ -105245,17 +105746,17 @@ var tmpVec3 = new Vector3();
/**
* Rotates a vector in place by axis angle.
*
- * This is the same as transforming a point by an
+ * This is the same as transforming a point by an
* axis-angle quaternion, but it has higher precision.
*
* @function Phaser.Math.RotateVec3
* @since 3.0.0
*
- * @param {Phaser.Math.Vector3} vec - [description]
- * @param {Phaser.Math.Vector3} axis - [description]
- * @param {float} radians - [description]
+ * @param {Phaser.Math.Vector3} vec - The vector to be rotated.
+ * @param {Phaser.Math.Vector3} axis - The axis to rotate around.
+ * @param {float} radians - The angle of rotation in radians.
*
- * @return {Phaser.Math.Vector3} [description]
+ * @return {Phaser.Math.Vector3} The given vector.
*/
var RotateVec3 = function (vec, axis, radians)
{
@@ -105273,7 +105774,7 @@ module.exports = RotateVec3;
/***/ }),
-/* 551 */
+/* 553 */
/***/ (function(module, exports) {
/**
@@ -105283,21 +105784,21 @@ module.exports = RotateVec3;
*/
/**
- * [description]
+ * Compute a random four-dimensional vector.
*
* @function Phaser.Math.RandomXYZW
* @since 3.0.0
*
- * @param {Phaser.Math.Vector4} vec4 - [description]
- * @param {float} [scale=1] - [description]
+ * @param {Phaser.Math.Vector4} vec4 - The Vector to compute random values for.
+ * @param {float} [scale=1] - The scale of the random values.
*
- * @return {Phaser.Math.Vector4} [description]
+ * @return {Phaser.Math.Vector4} The given Vector.
*/
var RandomXYZW = function (vec4, scale)
{
if (scale === undefined) { scale = 1; }
- // Not spherical; should fix this for more uniform distribution
+ // TODO: Not spherical; should fix this for more uniform distribution
vec4.x = (Math.random() * 2 - 1) * scale;
vec4.y = (Math.random() * 2 - 1) * scale;
vec4.z = (Math.random() * 2 - 1) * scale;
@@ -105310,7 +105811,7 @@ module.exports = RandomXYZW;
/***/ }),
-/* 552 */
+/* 554 */
/***/ (function(module, exports) {
/**
@@ -105319,17 +105820,16 @@ module.exports = RandomXYZW;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-// Position Vector randomly in a spherical area defined by the given radius
/**
- * [description]
+ * Compute a random position vector in a spherical area, optionally defined by the given radius.
*
* @function Phaser.Math.RandomXYZ
* @since 3.0.0
*
- * @param {Phaser.Math.Vector3} vec3 - [description]
- * @param {number} [radius=1] - [description]
+ * @param {Phaser.Math.Vector3} vec3 - The Vector to compute random values for.
+ * @param {number} [radius=1] - The radius.
*
- * @return {Phaser.Math.Vector3} [description]
+ * @return {Phaser.Math.Vector3} The given Vector.
*/
var RandomXYZ = function (vec3, radius)
{
@@ -105338,7 +105838,7 @@ var RandomXYZ = function (vec3, radius)
var r = Math.random() * 2 * Math.PI;
var z = (Math.random() * 2) - 1;
var zScale = Math.sqrt(1 - z * z) * radius;
-
+
vec3.x = Math.cos(r) * zScale;
vec3.y = Math.sin(r) * zScale;
vec3.z = z * radius;
@@ -105350,7 +105850,7 @@ module.exports = RandomXYZ;
/***/ }),
-/* 553 */
+/* 555 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -105359,7 +105859,7 @@ module.exports = RandomXYZ;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Camera = __webpack_require__(120);
+var Camera = __webpack_require__(121);
var Class = __webpack_require__(0);
var GetFastValue = __webpack_require__(1);
var PluginCache = __webpack_require__(12);
@@ -105876,7 +106376,7 @@ module.exports = CameraManager;
/***/ }),
-/* 554 */
+/* 556 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -105885,7 +106385,7 @@ module.exports = CameraManager;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
var Vector2 = __webpack_require__(7);
@@ -106218,7 +106718,7 @@ module.exports = Shake;
/***/ }),
-/* 555 */
+/* 557 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -106227,7 +106727,7 @@ module.exports = Shake;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
/**
@@ -106597,7 +107097,7 @@ module.exports = Flash;
/***/ }),
-/* 556 */
+/* 558 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -106606,7 +107106,7 @@ module.exports = Flash;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
var Class = __webpack_require__(0);
/**
@@ -107033,7 +107533,7 @@ module.exports = Fade;
/***/ }),
-/* 557 */
+/* 559 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -107048,15 +107548,15 @@ module.exports = Fade;
module.exports = {
- Camera: __webpack_require__(120),
- CameraManager: __webpack_require__(553),
- Effects: __webpack_require__(201)
+ Camera: __webpack_require__(121),
+ CameraManager: __webpack_require__(555),
+ Effects: __webpack_require__(202)
};
/***/ }),
-/* 558 */
+/* 560 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -107545,7 +108045,7 @@ module.exports = SmoothedKeyControl;
/***/ }),
-/* 559 */
+/* 561 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -107854,7 +108354,7 @@ module.exports = FixedKeyControl;
/***/ }),
-/* 560 */
+/* 562 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -107869,14 +108369,14 @@ module.exports = FixedKeyControl;
module.exports = {
- BaseCache: __webpack_require__(203),
- CacheManager: __webpack_require__(202)
+ BaseCache: __webpack_require__(204),
+ CacheManager: __webpack_require__(203)
};
/***/ }),
-/* 561 */
+/* 563 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -107891,76 +108391,12 @@ module.exports = {
module.exports = {
- Animation: __webpack_require__(207),
- AnimationFrame: __webpack_require__(205),
- AnimationManager: __webpack_require__(204)
-
-};
-
-
-/***/ }),
-/* 562 */
-/***/ (function(module, exports) {
-
-/**
- * @author Richard Davey
- * @copyright 2018 Photon Storm Ltd.
- * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
- */
-
-/**
- * [description]
- *
- * @function Phaser.Math.SmoothStep
- * @since 3.0.0
- *
- * @param {number} x - [description]
- * @param {number} min - [description]
- * @param {number} max - [description]
- *
- * @return {number} [description]
- */
-var SmoothStep = function (x, min, max)
-{
- x = Math.max(0, Math.min(1, (x - min) / (max - min)));
-
- return x * x * (3 - 2 * x);
-};
-
-module.exports = SmoothStep;
-
-
-/***/ }),
-/* 563 */
-/***/ (function(module, exports) {
-
-/**
- * @author Richard Davey
- * @copyright 2018 Photon Storm Ltd.
- * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
- */
-
-/**
- * [description]
- *
- * @function Phaser.Math.SmootherStep
- * @since 3.0.0
- *
- * @param {number} x - [description]
- * @param {number} min - [description]
- * @param {number} max - [description]
- *
- * @return {number} [description]
- */
-var SmootherStep = function (x, min, max)
-{
- x = Math.max(0, Math.min(1, (x - min) / (max - min)));
+ Animation: __webpack_require__(208),
+ AnimationFrame: __webpack_require__(206),
+ AnimationManager: __webpack_require__(205)
- return x * x * x * (x * (x * 6 - 15) + 10);
};
-module.exports = SmootherStep;
-
/***/ }),
/* 564 */
@@ -108231,7 +108667,7 @@ var Visible = {
*
* @param {boolean} value - The visible state of the Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setVisible: function (value)
{
@@ -108256,8 +108692,8 @@ module.exports = Visible;
var MATH_CONST = __webpack_require__(16);
var TransformMatrix = __webpack_require__(63);
-var WrapAngle = __webpack_require__(209);
-var WrapAngleDegrees = __webpack_require__(208);
+var WrapAngle = __webpack_require__(210);
+var WrapAngleDegrees = __webpack_require__(209);
// global bitmask flag for GameObject.renderMask (used by Scale)
var _FLAG = 4; // 0100
@@ -108468,7 +108904,7 @@ var Transform = {
* @param {number} [z=0] - The z position of this Game Object.
* @param {number} [w=0] - The w position of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setPosition: function (x, y, z, w)
{
@@ -108502,7 +108938,7 @@ var Transform = {
* @param {number} [width] - The width of the random area.
* @param {number} [height] - The height of the random area.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setRandomPosition: function (x, y, width, height)
{
@@ -108525,7 +108961,7 @@ var Transform = {
*
* @param {number} [radians=0] - The rotation of this Game Object, in radians.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setRotation: function (radians)
{
@@ -108544,7 +108980,7 @@ var Transform = {
*
* @param {number} [degrees=0] - The rotation of this Game Object, in degrees.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setAngle: function (degrees)
{
@@ -108564,7 +109000,7 @@ var Transform = {
* @param {number} x - The horizontal scale of this Game Object.
* @param {number} [y=x] - The vertical scale of this Game Object. If not set it will use the `x` value.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setScale: function (x, y)
{
@@ -108585,7 +109021,7 @@ var Transform = {
*
* @param {number} [value=0] - The x position of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setX: function (value)
{
@@ -108604,7 +109040,7 @@ var Transform = {
*
* @param {number} [value=0] - The y position of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setY: function (value)
{
@@ -108623,7 +109059,7 @@ var Transform = {
*
* @param {number} [value=0] - The z position of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setZ: function (value)
{
@@ -108642,7 +109078,7 @@ var Transform = {
*
* @param {number} [value=0] - The w position of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setW: function (value)
{
@@ -108895,7 +109331,7 @@ var Tint = {
* @webglOnly
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
clearTint: function ()
{
@@ -108916,7 +109352,7 @@ var Tint = {
* @param {integer} [bottomLeft] - The tint being applied to the bottom-left of the Game Object.
* @param {integer} [bottomRight] - The tint being applied to the bottom-right of the Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setTint: function (topLeft, topRight, bottomLeft, bottomRight)
{
@@ -109101,7 +109537,7 @@ var Texture = {
* @param {string} key - The key of the texture to be used, as stored in the Texture Manager.
* @param {(string|integer)} [frame] - The name or index of the frame within the Texture.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setTexture: function (key, frame)
{
@@ -109127,7 +109563,7 @@ var Texture = {
* @param {boolean} [updateSize=true] - Should this call adjust the size of the Game Object?
* @param {boolean} [updateOrigin=true] - Should this call adjust the origin of the Game Object?
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setFrame: function (frame, updateSize, updateOrigin)
{
@@ -109270,7 +109706,7 @@ var Size = {
*
* @param {Phaser.Textures.Frame} frame - The frame to base the size of this Game Object on.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setSizeToFrame: function (frame)
{
@@ -109291,7 +109727,7 @@ var Size = {
* @param {number} width - The width of this Game Object.
* @param {number} height - The height of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setSize: function (width, height)
{
@@ -109311,7 +109747,7 @@ var Size = {
* @param {number} width - The width of this Game Object.
* @param {number} height - The height of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setDisplaySize: function (width, height)
{
@@ -109401,7 +109837,7 @@ var ScrollFactor = {
* @param {number} x - The horizontal scroll factor of this Game Object.
* @param {number} [y=x] - The vertical scroll factor of this Game Object. If not set it will use the `x` value.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setScrollFactor: function (x, y)
{
@@ -109475,7 +109911,7 @@ var ScaleMode = {
*
* @param {Phaser.ScaleModes} value - The Scale Mode to be used by this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setScaleMode: function (value)
{
@@ -109611,7 +110047,7 @@ var Origin = {
* @param {number} [x=0.5] - The horizontal origin value.
* @param {number} [y=x] - The vertical origin value. If not defined it will be set to the value of `x`.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setOrigin: function (x, y)
{
@@ -109630,7 +110066,7 @@ var Origin = {
* @method Phaser.GameObjects.Components.Origin#setOriginFromFrame
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setOriginFromFrame: function ()
{
@@ -109657,7 +110093,7 @@ var Origin = {
* @param {number} [x=0] - The horizontal display origin value.
* @param {number} [y=x] - The vertical display origin value. If not defined it will be set to the value of `x`.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setDisplayOrigin: function (x, y)
{
@@ -109677,7 +110113,7 @@ var Origin = {
* @method Phaser.GameObjects.Components.Origin#updateDisplayOrigin
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
updateDisplayOrigin: function ()
{
@@ -109748,7 +110184,7 @@ var MatrixStack = {
* @method Phaser.GameObjects.Components.MatrixStack#initMatrixStack
* @since 3.2.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
initMatrixStack: function ()
{
@@ -109765,7 +110201,7 @@ var MatrixStack = {
* @method Phaser.GameObjects.Components.MatrixStack#save
* @since 3.2.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
save: function ()
{
@@ -109792,7 +110228,7 @@ var MatrixStack = {
* @method Phaser.GameObjects.Components.MatrixStack#restore
* @since 3.2.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
restore: function ()
{
@@ -109820,7 +110256,7 @@ var MatrixStack = {
* @method Phaser.GameObjects.Components.MatrixStack#loadIdentity
* @since 3.2.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
loadIdentity: function ()
{
@@ -109842,7 +110278,7 @@ var MatrixStack = {
* @param {number} tx - [description]
* @param {number} ty - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
transform: function (a, b, c, d, tx, ty)
{
@@ -109877,7 +110313,7 @@ var MatrixStack = {
* @param {number} tx - [description]
* @param {number} ty - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setTransform: function (a, b, c, d, tx, ty)
{
@@ -109902,7 +110338,7 @@ var MatrixStack = {
* @param {number} x - [description]
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
translate: function (x, y)
{
@@ -109929,7 +110365,7 @@ var MatrixStack = {
* @param {number} x - [description]
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
scale: function (x, y)
{
@@ -109955,7 +110391,7 @@ var MatrixStack = {
*
* @param {number} t - The angle of rotation, in radians.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
rotate: function (t)
{
@@ -109990,8 +110426,8 @@ module.exports = MatrixStack;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BitmapMask = __webpack_require__(211);
-var GeometryMask = __webpack_require__(210);
+var BitmapMask = __webpack_require__(212);
+var GeometryMask = __webpack_require__(211);
/**
* Provides methods used for getting and setting the mask of a Game Object.
@@ -110026,7 +110462,7 @@ var Mask = {
*
* @param {Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask} mask - The mask this Game Object will use when rendering.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setMask: function (mask)
{
@@ -110043,7 +110479,7 @@ var Mask = {
*
* @param {boolean} [destroyMask=false] - Destroy the mask before clearing it?
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
clearMask: function (destroyMask)
{
@@ -110134,7 +110570,7 @@ module.exports = Mask;
*/
var Rectangle = __webpack_require__(14);
-var RotateAround = __webpack_require__(290);
+var RotateAround = __webpack_require__(292);
var Vector2 = __webpack_require__(7);
/**
@@ -110455,7 +110891,7 @@ var Flip = {
* @method Phaser.GameObjects.Components.Flip#toggleFlipX
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
toggleFlipX: function ()
{
@@ -110470,7 +110906,7 @@ var Flip = {
* @method Phaser.GameObjects.Components.Flip#toggleFlipY
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
toggleFlipY: function ()
{
@@ -110487,7 +110923,7 @@ var Flip = {
*
* @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setFlipX: function (value)
{
@@ -110504,7 +110940,7 @@ var Flip = {
*
* @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setFlipY: function (value)
{
@@ -110522,7 +110958,7 @@ var Flip = {
* @param {boolean} x - The horizontal flipped state. `false` for no flip, or `true` to be flipped.
* @param {boolean} y - The horizontal flipped state. `false` for no flip, or `true` to be flipped.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setFlip: function (x, y)
{
@@ -110538,7 +110974,7 @@ var Flip = {
* @method Phaser.GameObjects.Components.Flip#resetFlip
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
resetFlip: function ()
{
@@ -110630,7 +111066,7 @@ var Depth = {
*
* @param {integer} value - The depth of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setDepth: function (value)
{
@@ -110737,7 +111173,7 @@ var ComputedSize = {
* @param {number} width - The width of this Game Object.
* @param {number} height - The height of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setSize: function (width, height)
{
@@ -110757,7 +111193,7 @@ var ComputedSize = {
* @param {number} width - The width of this Game Object.
* @param {number} height - The height of this Game Object.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setDisplaySize: function (width, height)
{
@@ -110878,7 +111314,7 @@ var BlendMode = {
*
* @param {(string|Phaser.BlendModes)} value - The BlendMode value. Either a string or a CONST.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setBlendMode: function (value)
{
@@ -110902,7 +111338,7 @@ module.exports = BlendMode;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
// bitmask flag for GameObject.renderMask
var _FLAG = 2; // 0010
@@ -110979,7 +111415,7 @@ var Alpha = {
* @method Phaser.GameObjects.Components.Alpha#clearAlpha
* @since 3.0.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
clearAlpha: function ()
{
@@ -111001,7 +111437,7 @@ var Alpha = {
* @param {float} [bottomLeft] - The alpha value used for the bottom-left of the Game Object. WebGL only.
* @param {float} [bottomRight] - The alpha value used for the bottom-right of the Game Object. WebGL only.
*
- * @return {Phaser.GameObjects.GameObject} This Game Object instance.
+ * @return {this} This Game Object instance.
*/
setAlpha: function (topLeft, topRight, bottomLeft, bottomRight)
{
@@ -111627,7 +112063,7 @@ module.exports = BottomCenter;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ALIGN_CONST = __webpack_require__(297);
+var ALIGN_CONST = __webpack_require__(299);
var AlignInMap = [];
@@ -111682,55 +112118,55 @@ module.exports = QuickSet;
module.exports = {
- Angle: __webpack_require__(1001),
- Call: __webpack_require__(1000),
- GetFirst: __webpack_require__(999),
- GetLast: __webpack_require__(998),
- GridAlign: __webpack_require__(997),
- IncAlpha: __webpack_require__(996),
- IncX: __webpack_require__(995),
- IncXY: __webpack_require__(994),
- IncY: __webpack_require__(993),
- PlaceOnCircle: __webpack_require__(992),
- PlaceOnEllipse: __webpack_require__(991),
- PlaceOnLine: __webpack_require__(990),
- PlaceOnRectangle: __webpack_require__(989),
- PlaceOnTriangle: __webpack_require__(988),
- PlayAnimation: __webpack_require__(987),
+ Angle: __webpack_require__(1003),
+ Call: __webpack_require__(1002),
+ GetFirst: __webpack_require__(1001),
+ GetLast: __webpack_require__(1000),
+ GridAlign: __webpack_require__(999),
+ IncAlpha: __webpack_require__(998),
+ IncX: __webpack_require__(997),
+ IncXY: __webpack_require__(996),
+ IncY: __webpack_require__(995),
+ PlaceOnCircle: __webpack_require__(994),
+ PlaceOnEllipse: __webpack_require__(993),
+ PlaceOnLine: __webpack_require__(992),
+ PlaceOnRectangle: __webpack_require__(991),
+ PlaceOnTriangle: __webpack_require__(990),
+ PlayAnimation: __webpack_require__(989),
PropertyValueInc: __webpack_require__(35),
PropertyValueSet: __webpack_require__(25),
- RandomCircle: __webpack_require__(986),
- RandomEllipse: __webpack_require__(985),
- RandomLine: __webpack_require__(984),
- RandomRectangle: __webpack_require__(983),
- RandomTriangle: __webpack_require__(982),
- Rotate: __webpack_require__(981),
- RotateAround: __webpack_require__(980),
- RotateAroundDistance: __webpack_require__(979),
- ScaleX: __webpack_require__(978),
- ScaleXY: __webpack_require__(977),
- ScaleY: __webpack_require__(976),
- SetAlpha: __webpack_require__(975),
- SetBlendMode: __webpack_require__(974),
- SetDepth: __webpack_require__(973),
- SetHitArea: __webpack_require__(972),
- SetOrigin: __webpack_require__(971),
- SetRotation: __webpack_require__(970),
- SetScale: __webpack_require__(969),
- SetScaleX: __webpack_require__(968),
- SetScaleY: __webpack_require__(967),
- SetTint: __webpack_require__(966),
- SetVisible: __webpack_require__(965),
- SetX: __webpack_require__(964),
- SetXY: __webpack_require__(963),
- SetY: __webpack_require__(962),
- ShiftPosition: __webpack_require__(961),
- Shuffle: __webpack_require__(960),
- SmootherStep: __webpack_require__(959),
- SmoothStep: __webpack_require__(958),
- Spread: __webpack_require__(957),
- ToggleVisible: __webpack_require__(956),
- WrapInRectangle: __webpack_require__(955)
+ RandomCircle: __webpack_require__(988),
+ RandomEllipse: __webpack_require__(987),
+ RandomLine: __webpack_require__(986),
+ RandomRectangle: __webpack_require__(985),
+ RandomTriangle: __webpack_require__(984),
+ Rotate: __webpack_require__(983),
+ RotateAround: __webpack_require__(982),
+ RotateAroundDistance: __webpack_require__(981),
+ ScaleX: __webpack_require__(980),
+ ScaleXY: __webpack_require__(979),
+ ScaleY: __webpack_require__(978),
+ SetAlpha: __webpack_require__(977),
+ SetBlendMode: __webpack_require__(976),
+ SetDepth: __webpack_require__(975),
+ SetHitArea: __webpack_require__(974),
+ SetOrigin: __webpack_require__(973),
+ SetRotation: __webpack_require__(972),
+ SetScale: __webpack_require__(971),
+ SetScaleX: __webpack_require__(970),
+ SetScaleY: __webpack_require__(969),
+ SetTint: __webpack_require__(968),
+ SetVisible: __webpack_require__(967),
+ SetX: __webpack_require__(966),
+ SetXY: __webpack_require__(965),
+ SetY: __webpack_require__(964),
+ ShiftPosition: __webpack_require__(963),
+ Shuffle: __webpack_require__(962),
+ SmootherStep: __webpack_require__(961),
+ SmoothStep: __webpack_require__(960),
+ Spread: __webpack_require__(959),
+ ToggleVisible: __webpack_require__(958),
+ WrapInRectangle: __webpack_require__(957)
};
@@ -111859,7 +112295,7 @@ if (!global.cancelAnimationFrame) {
};
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(212)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(213)))
/***/ }),
/* 597 */
@@ -112026,8 +112462,8 @@ and string types for AudioPannerNode.panningModel, AudioPannerNode.distanceModel
BiquadFilterNode.type and OscillatorNode.type.
*/
-(function (global, exports, perf) {
- 'use strict';
+
+(function () {
function fixSetTarget(param) {
if (!param) // if NYI, just return
@@ -112157,8 +112593,7 @@ BiquadFilterNode.type and OscillatorNode.type.
window.OfflineAudioContext = webkitOfflineAudioContext;
}
-}(window));
-
+})();
/***/ }),
@@ -112315,9 +112750,9 @@ module.exports = Format;
module.exports = {
Format: __webpack_require__(608),
- Pad: __webpack_require__(129),
+ Pad: __webpack_require__(130),
Reverse: __webpack_require__(607),
- UppercaseFirst: __webpack_require__(254)
+ UppercaseFirst: __webpack_require__(255)
};
@@ -112413,7 +112848,7 @@ module.exports = HasAll;
*/
var GetValue = __webpack_require__(4);
-var Clamp = __webpack_require__(24);
+var Clamp = __webpack_require__(23);
/**
* [description]
@@ -112464,7 +112899,7 @@ module.exports = {
GetMinMaxValue: __webpack_require__(612),
GetValue: __webpack_require__(4),
HasAll: __webpack_require__(611),
- HasAny: __webpack_require__(405),
+ HasAny: __webpack_require__(407),
HasValue: __webpack_require__(108),
IsPlainObject: __webpack_require__(8),
Merge: __webpack_require__(93),
@@ -112489,7 +112924,7 @@ module.exports = {
module.exports = {
- Array: __webpack_require__(145),
+ Array: __webpack_require__(146),
Objects: __webpack_require__(613),
String: __webpack_require__(609)
@@ -112507,7 +112942,7 @@ module.exports = {
*/
var GameObjectFactory = __webpack_require__(11);
-var ParseToTilemap = __webpack_require__(213);
+var ParseToTilemap = __webpack_require__(214);
/**
* Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided.
@@ -112573,7 +113008,7 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt
*/
var GameObjectCreator = __webpack_require__(13);
-var ParseToTilemap = __webpack_require__(213);
+var ParseToTilemap = __webpack_require__(214);
/**
* @typedef {object} TilemapConfig
@@ -112942,7 +113377,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Tileset = __webpack_require__(133);
+var Tileset = __webpack_require__(134);
/**
* [description]
@@ -113224,8 +113659,8 @@ module.exports = BuildTilesetIndex;
*/
var GetFastValue = __webpack_require__(1);
-var ParseObject = __webpack_require__(312);
-var ObjectLayer = __webpack_require__(311);
+var ParseObject = __webpack_require__(314);
+var ObjectLayer = __webpack_require__(313);
/**
* [description]
@@ -113325,9 +113760,9 @@ module.exports = Pick;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Tileset = __webpack_require__(133);
-var ImageCollection = __webpack_require__(313);
-var ParseObject = __webpack_require__(312);
+var Tileset = __webpack_require__(134);
+var ImageCollection = __webpack_require__(315);
+var ParseObject = __webpack_require__(314);
/**
* Tilesets & Image Collections
@@ -113528,7 +113963,7 @@ module.exports = Base64Decode;
var Base64Decode = __webpack_require__(631);
var GetFastValue = __webpack_require__(1);
var LayerData = __webpack_require__(103);
-var ParseGID = __webpack_require__(314);
+var ParseGID = __webpack_require__(316);
var Tile = __webpack_require__(65);
/**
@@ -113657,12 +114092,12 @@ module.exports = ParseTileLayers;
module.exports = {
- Parse: __webpack_require__(317),
- Parse2DArray: __webpack_require__(214),
- ParseCSV: __webpack_require__(316),
+ Parse: __webpack_require__(319),
+ Parse2DArray: __webpack_require__(215),
+ ParseCSV: __webpack_require__(318),
- Impact: __webpack_require__(310),
- Tiled: __webpack_require__(315)
+ Impact: __webpack_require__(312),
+ Tiled: __webpack_require__(317)
};
@@ -113803,8 +114238,8 @@ module.exports = WeightedRandomize;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var TileToWorldX = __webpack_require__(135);
-var TileToWorldY = __webpack_require__(134);
+var TileToWorldX = __webpack_require__(136);
+var TileToWorldY = __webpack_require__(135);
var Vector2 = __webpack_require__(7);
/**
@@ -114170,7 +114605,7 @@ module.exports = SetCollisionByProperty;
var SetTileCollision = __webpack_require__(66);
var CalculateFacesWithin = __webpack_require__(40);
-var SetLayerCollisionIndex = __webpack_require__(215);
+var SetLayerCollisionIndex = __webpack_require__(216);
/**
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
@@ -114226,7 +114661,7 @@ module.exports = SetCollisionByExclusion;
var SetTileCollision = __webpack_require__(66);
var CalculateFacesWithin = __webpack_require__(40);
-var SetLayerCollisionIndex = __webpack_require__(215);
+var SetLayerCollisionIndex = __webpack_require__(216);
/**
* Sets collision on a range of tiles in a layer whose index is between the specified `start` and
@@ -114293,7 +114728,7 @@ module.exports = SetCollisionBetween;
var SetTileCollision = __webpack_require__(66);
var CalculateFacesWithin = __webpack_require__(40);
-var SetLayerCollisionIndex = __webpack_require__(215);
+var SetLayerCollisionIndex = __webpack_require__(216);
/**
* Sets collision on the given tile or tiles within a layer by index. You can pass in either a
@@ -114354,7 +114789,7 @@ module.exports = SetCollision;
*/
var GetTilesWithin = __webpack_require__(21);
-var Color = __webpack_require__(533);
+var Color = __webpack_require__(535);
/**
* Draws a debug representation of the layer to the given Graphics. This is helpful when you want to
@@ -114439,7 +114874,7 @@ module.exports = RenderDebug;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RemoveTileAt = __webpack_require__(318);
+var RemoveTileAt = __webpack_require__(320);
var WorldToTileX = __webpack_require__(52);
var WorldToTileY = __webpack_require__(51);
@@ -114483,7 +114918,7 @@ module.exports = RemoveTileAtWorldXY;
*/
var GetTilesWithin = __webpack_require__(21);
-var GetRandom = __webpack_require__(144);
+var GetRandom = __webpack_require__(145);
/**
* Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the
@@ -114541,7 +114976,7 @@ module.exports = Randomize;
*/
var CalculateFacesWithin = __webpack_require__(40);
-var PutTileAt = __webpack_require__(216);
+var PutTileAt = __webpack_require__(217);
/**
* Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified
@@ -114605,7 +115040,7 @@ module.exports = PutTilesAt;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var PutTileAt = __webpack_require__(216);
+var PutTileAt = __webpack_require__(217);
var WorldToTileX = __webpack_require__(52);
var WorldToTileY = __webpack_require__(51);
@@ -114648,7 +115083,7 @@ module.exports = PutTileAtWorldXY;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var HasTileAt = __webpack_require__(319);
+var HasTileAt = __webpack_require__(321);
var WorldToTileX = __webpack_require__(52);
var WorldToTileY = __webpack_require__(51);
@@ -114741,12 +115176,12 @@ module.exports = GetTilesWithinWorldXY;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Geom = __webpack_require__(385);
+var Geom = __webpack_require__(387);
var GetTilesWithin = __webpack_require__(21);
-var Intersects = __webpack_require__(384);
+var Intersects = __webpack_require__(386);
var NOOP = __webpack_require__(3);
-var TileToWorldX = __webpack_require__(135);
-var TileToWorldY = __webpack_require__(134);
+var TileToWorldX = __webpack_require__(136);
+var TileToWorldY = __webpack_require__(135);
var WorldToTileX = __webpack_require__(52);
var WorldToTileY = __webpack_require__(51);
@@ -114841,7 +115276,7 @@ module.exports = GetTilesWithinShape;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetTileAt = __webpack_require__(136);
+var GetTileAt = __webpack_require__(137);
var WorldToTileX = __webpack_require__(52);
var WorldToTileY = __webpack_require__(51);
@@ -115218,6 +115653,8 @@ var CullTiles = function (layer, camera, outputArray)
camera.matrix.translate(-originX, -originY);
camera.matrix.invert();
+ camera.shakeEffect.preRender();
+
var tilemapLayer = layer.tilemapLayer;
var tileW = layer.tileWidth;
var tileH = layer.tileHeight;
@@ -115240,7 +115677,6 @@ var CullTiles = function (layer, camera, outputArray)
var tCullW = cullW * a + cullH * c + e;
var tCullH = cullW * b + cullH * d + f;
-
for (var y = 0; y < mapHeight; ++y)
{
for (var x = 0; x < mapWidth; ++x)
@@ -115248,7 +115684,9 @@ var CullTiles = function (layer, camera, outputArray)
var tile = mapData[y][x];
if (tile === null || tile.index === -1)
- { continue; }
+ {
+ continue;
+ }
var tileX = tile.pixelX * a + tile.pixelY * c + e;
var tileY = tile.pixelX * b + tile.pixelY * d + f;
@@ -115265,7 +115703,6 @@ var CullTiles = function (layer, camera, outputArray)
}
}
-
/* var tilemapLayer = layer.tilemapLayer;
var mapData = layer.data;
var mapWidth = layer.width;
@@ -115315,10 +115752,10 @@ module.exports = CullTiles;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var TileToWorldX = __webpack_require__(135);
-var TileToWorldY = __webpack_require__(134);
+var TileToWorldX = __webpack_require__(136);
+var TileToWorldY = __webpack_require__(135);
var GetTilesWithin = __webpack_require__(21);
-var ReplaceByIndex = __webpack_require__(320);
+var ReplaceByIndex = __webpack_require__(322);
/**
* Creates a Sprite for every object matching the given tile indexes in the layer. You can
@@ -115474,24 +115911,24 @@ module.exports = Copy;
module.exports = {
- Components: __webpack_require__(137),
+ Components: __webpack_require__(138),
Parsers: __webpack_require__(633),
Formats: __webpack_require__(26),
- ImageCollection: __webpack_require__(313),
- ParseToTilemap: __webpack_require__(213),
+ ImageCollection: __webpack_require__(315),
+ ParseToTilemap: __webpack_require__(214),
Tile: __webpack_require__(65),
- Tilemap: __webpack_require__(309),
+ Tilemap: __webpack_require__(311),
TilemapCreator: __webpack_require__(616),
TilemapFactory: __webpack_require__(615),
- Tileset: __webpack_require__(133),
+ Tileset: __webpack_require__(134),
LayerData: __webpack_require__(103),
MapData: __webpack_require__(102),
- ObjectLayer: __webpack_require__(311),
+ ObjectLayer: __webpack_require__(313),
- DynamicTilemapLayer: __webpack_require__(308),
- StaticTilemapLayer: __webpack_require__(307)
+ DynamicTilemapLayer: __webpack_require__(310),
+ StaticTilemapLayer: __webpack_require__(309)
};
@@ -115519,7 +115956,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetOverlapY = __webpack_require__(334);
+var GetOverlapY = __webpack_require__(336);
/**
* [description]
@@ -115606,7 +116043,7 @@ module.exports = SeparateY;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetOverlapX = __webpack_require__(335);
+var GetOverlapX = __webpack_require__(337);
/**
* [description]
@@ -115935,7 +116372,7 @@ module.exports = TileCheckX;
var TileCheckX = __webpack_require__(682);
var TileCheckY = __webpack_require__(680);
-var TileIntersectsBody = __webpack_require__(333);
+var TileIntersectsBody = __webpack_require__(335);
/**
* The core separation function to separate a physics body and a tile.
@@ -116104,7 +116541,7 @@ var Velocity = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setVelocity: function (x, y)
{
@@ -116121,7 +116558,7 @@ var Velocity = {
*
* @param {number} x - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setVelocityX: function (x)
{
@@ -116138,7 +116575,7 @@ var Velocity = {
*
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setVelocityY: function (y)
{
@@ -116156,7 +116593,7 @@ var Velocity = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setMaxVelocity: function (x, y)
{
@@ -116197,7 +116634,7 @@ var Size = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setOffset: function (x, y)
{
@@ -116216,7 +116653,7 @@ var Size = {
* @param {number} height - [description]
* @param {boolean} [center=true] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setSize: function (width, height, center)
{
@@ -116235,7 +116672,7 @@ var Size = {
* @param {number} [offsetX] - [description]
* @param {number} [offsetY] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setCircle: function (radius, offsetX, offsetY)
{
@@ -116275,7 +116712,7 @@ var Mass = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setMass: function (value)
{
@@ -116315,7 +116752,7 @@ var Immovable = {
*
* @param {boolean} [value=true] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setImmovable: function (value)
{
@@ -116358,7 +116795,7 @@ var Gravity = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setGravity: function (x, y)
{
@@ -116375,7 +116812,7 @@ var Gravity = {
*
* @param {number} x - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setGravityX: function (x)
{
@@ -116392,7 +116829,7 @@ var Gravity = {
*
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setGravityY: function (y)
{
@@ -116433,7 +116870,7 @@ var Friction = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setFriction: function (x, y)
{
@@ -116450,7 +116887,7 @@ var Friction = {
*
* @param {number} x - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setFrictionX: function (x)
{
@@ -116467,7 +116904,7 @@ var Friction = {
*
* @param {number} y - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setFrictionY: function (y)
{
@@ -116511,7 +116948,7 @@ var Enable = {
* @param {boolean} enableGameObject - [description]
* @param {boolean} showGameObject - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
enableBody: function (reset, x, y, enableGameObject, showGameObject)
{
@@ -116544,7 +116981,7 @@ var Enable = {
* @param {boolean} [disableGameObject=false] - [description]
* @param {boolean} [hideGameObject=false] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
disableBody: function (disableGameObject, hideGameObject)
{
@@ -116577,7 +117014,7 @@ var Enable = {
* @method Phaser.Physics.Arcade.Components.Enable#refreshBody
* @since 3.1.0
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
refreshBody: function ()
{
@@ -116618,7 +117055,7 @@ var Drag = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setDrag: function (x, y)
{
@@ -116635,7 +117072,7 @@ var Drag = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setDragX: function (value)
{
@@ -116652,7 +117089,7 @@ var Drag = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setDragY: function (value)
{
@@ -116694,7 +117131,7 @@ var Debug = {
* @param {boolean} showVelocity - [description]
* @param {number} bodyColor - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setDebug: function (showBody, showVelocity, bodyColor)
{
@@ -116713,7 +117150,7 @@ var Debug = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setDebugBodyColor: function (value)
{
@@ -116817,7 +117254,7 @@ var Bounce = {
* @param {number} x - [description]
* @param {number} [y=x] - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setBounce: function (x, y)
{
@@ -116834,7 +117271,7 @@ var Bounce = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setBounceX: function (value)
{
@@ -116851,7 +117288,7 @@ var Bounce = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setBounceY: function (value)
{
@@ -116866,9 +117303,9 @@ var Bounce = {
* @method Phaser.Physics.Arcade.Components.Bounce#setCollideWorldBounds
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {boolean} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setCollideWorldBounds: function (value)
{
@@ -116908,7 +117345,7 @@ var Angular = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAngularVelocity: function (value)
{
@@ -116925,7 +117362,7 @@ var Angular = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAngularAcceleration: function (value)
{
@@ -116942,7 +117379,7 @@ var Angular = {
*
* @param {number} value - [description]
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAngularDrag: function (value)
{
@@ -116983,7 +117420,7 @@ var Acceleration = {
* @param {number} x - The horizontal acceleration
* @param {number} [y=x] - The vertical acceleration
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAcceleration: function (x, y)
{
@@ -117000,7 +117437,7 @@ var Acceleration = {
*
* @param {number} value - The horizontal acceleration
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAccelerationX: function (value)
{
@@ -117017,7 +117454,7 @@ var Acceleration = {
*
* @param {number} value - The vertical acceleration
*
- * @return {Phaser.GameObjects.GameObject} This Game Object.
+ * @return {this} This Game Object.
*/
setAccelerationY: function (value)
{
@@ -117044,12 +117481,12 @@ module.exports = Acceleration;
var Class = __webpack_require__(0);
var DegToRad = __webpack_require__(38);
var DistanceBetween = __webpack_require__(57);
-var Factory = __webpack_require__(343);
+var Factory = __webpack_require__(345);
var GetFastValue = __webpack_require__(1);
var Merge = __webpack_require__(93);
var PluginCache = __webpack_require__(12);
var Vector2 = __webpack_require__(7);
-var World = __webpack_require__(338);
+var World = __webpack_require__(340);
// All methods in this class are available under `this.physics` in a Scene.
@@ -117568,15 +118005,15 @@ var Extend = __webpack_require__(18);
var Arcade = {
ArcadePhysics: __webpack_require__(697),
- Body: __webpack_require__(337),
- Collider: __webpack_require__(336),
- Factory: __webpack_require__(343),
- Group: __webpack_require__(340),
- Image: __webpack_require__(342),
- Sprite: __webpack_require__(140),
- StaticBody: __webpack_require__(332),
- StaticGroup: __webpack_require__(339),
- World: __webpack_require__(338)
+ Body: __webpack_require__(339),
+ Collider: __webpack_require__(338),
+ Factory: __webpack_require__(345),
+ Group: __webpack_require__(342),
+ Image: __webpack_require__(344),
+ Sprite: __webpack_require__(141),
+ StaticBody: __webpack_require__(334),
+ StaticGroup: __webpack_require__(341),
+ World: __webpack_require__(340)
};
@@ -117688,16 +118125,16 @@ module.exports = SinCosTableGenerator;
*/
/**
- * [description]
+ * Round a value to a given decimal place.
*
* @function Phaser.Math.RoundTo
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {integer} [place=0] - [description]
- * @param {integer} [base=10] - [description]
+ * @param {number} value - The value to round.
+ * @param {integer} [place=0] - The place to round to.
+ * @param {integer} [base=10] - The base to round in. Default is 10 for decimal.
*
- * @return {number} [description]
+ * @return {number} The rounded value.
*/
var RoundTo = function (value, place, base)
{
@@ -117723,15 +118160,19 @@ module.exports = RoundTo;
*/
/**
- * [description]
+ * Compute a random unit vector.
+ *
+ * Computes random values for the given vector between -1 and 1 that can be used to represent a direction.
+ *
+ * Optionally accepts a scale value to scale the resulting vector by.
*
* @function Phaser.Math.RandomXY
* @since 3.0.0
*
- * @param {Phaser.Math.Vector2} vector - [description]
- * @param {float} scale - [description]
+ * @param {Phaser.Math.Vector2} vector - The Vector to compute random values for.
+ * @param {float} [scale=1] - The scale of the random values.
*
- * @return {Phaser.Math.Vector2} [description]
+ * @return {Phaser.Math.Vector2} The given Vector.
*/
var RandomXY = function (vector, scale)
{
@@ -117767,10 +118208,10 @@ module.exports = RandomXY;
* @function Phaser.Math.Percent
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} min - [description]
- * @param {number} [max] - [description]
- * @param {number} [upperMax] - [description]
+ * @param {number} value - The value to determine the percentage of.
+ * @param {number} min - The minimum value.
+ * @param {number} [max] - The maximum value.
+ * @param {number} [upperMax] - The mid-way point in the range that represents 100%.
*
* @return {float} A value between 0 and 1 representing the percentage.
*/
@@ -117818,16 +118259,16 @@ module.exports = Percent;
*/
/**
- * [description]
+ * Subtract an `amount` from `value`, limiting the minimum result to `min`.
*
* @function Phaser.Math.MinSub
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} amount - [description]
- * @param {number} min - [description]
+ * @param {number} value - The value to subtract from.
+ * @param {number} amount - The amount to subtract.
+ * @param {number} min - The minimum value to return.
*
- * @return {number} [description]
+ * @return {number} The resulting value.
*/
var MinSub = function (value, amount, min)
{
@@ -117848,16 +118289,16 @@ module.exports = MinSub;
*/
/**
- * [description]
+ * Add an `amount` to a `value`, limiting the maximum result to `max`.
*
* @function Phaser.Math.MaxAdd
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} amount - [description]
- * @param {number} max - [description]
+ * @param {number} value - The value to add to.
+ * @param {number} amount - The amount to add.
+ * @param {number} max - The maximum value to return.
*
- * @return {number} [description]
+ * @return {number} The resulting value.
*/
var MaxAdd = function (value, amount, max)
{
@@ -117878,14 +118319,14 @@ module.exports = MaxAdd;
*/
/**
- * [description]
+ * Check if a given value is an even number using a strict type check.
*
* @function Phaser.Math.IsEvenStrict
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {number} value - The number to perform the check with.
*
- * @return {boolean} [description]
+ * @return {boolean} Whether the number is even or not.
*/
var IsEvenStrict = function (value)
{
@@ -117938,7 +118379,7 @@ module.exports = IsEven;
*/
/**
- * [description]
+ * Calculate the speed required to cover a distance in the time given.
*
* @function Phaser.Math.GetSpeed
* @since 3.0.0
@@ -117967,16 +118408,18 @@ module.exports = GetSpeed;
*/
/**
- * [description]
+ * Floors to some place comparative to a `base`, default is 10 for decimal place.
+ *
+ * The `place` is represented by the power applied to `base` to get that place.
*
* @function Phaser.Math.FloorTo
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {integer} [place=0 - [description]
- * @param {integer} [base=10] - [description]
+ * @param {number} value - The value to round.
+ * @param {integer} [place=0] - The place to round to.
+ * @param {integer} [base=10] - The base to round in. Default is 10 for decimal.
*
- * @return {number} [description]
+ * @return {number} The rounded value.
*/
var FloorTo = function (value, place, base)
{
@@ -118031,16 +118474,18 @@ module.exports = Difference;
*/
/**
- * [description]
+ * Ceils to some place comparative to a `base`, default is 10 for decimal place.
+ *
+ * The `place` is represented by the power applied to `base` to get that place.
*
* @function Phaser.Math.CeilTo
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} [place=0] - [description]
- * @param {integer} [base=10] - [description]
+ * @param {number} value - The value to round.
+ * @param {number} [place=0] - The place to round to.
+ * @param {integer} [base=10] - The base to round in. Default is 10 for decimal.
*
- * @return {number} [description]
+ * @return {number} The rounded value.
*/
var CeilTo = function (value, place, base)
{
@@ -118066,14 +118511,14 @@ module.exports = CeilTo;
*/
/**
- * [description]
+ * Calculate the mean average of the given values.
*
* @function Phaser.Math.Average
* @since 3.0.0
*
- * @param {number[]} values - [description]
+ * @param {number[]} values - The values to average.
*
- * @return {number} [description]
+ * @return {number} The average value.
*/
var Average = function (values)
{
@@ -118101,16 +118546,18 @@ module.exports = Average;
*/
/**
- * [description]
+ * Snap a value to nearest grid slice, using rounding.
+ *
+ * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `10` whereas `14` will snap to `15`.
*
* @function Phaser.Math.Snap.To
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} gap - [description]
- * @param {number} [start=0] - [description]
+ * @param {number} value - The value to snap.
+ * @param {number} gap - The interval gap of the grid.
+ * @param {number} [start=0] - Optional starting offset for gap.
*
- * @return {number} [description]
+ * @return {number} The snapped value.
*/
var SnapTo = function (value, gap, start)
{
@@ -118141,16 +118588,19 @@ module.exports = SnapTo;
*/
/**
- * [description]
+ * Snap a value to nearest grid slice, using floor.
+ *
+ * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `10`.
+ * As will `14` snap to `10`... but `16` will snap to `15`.
*
* @function Phaser.Math.Snap.Floor
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} gap - [description]
- * @param {number} [start=0] - [description]
+ * @param {number} value - The value to snap.
+ * @param {number} gap - The interval gap of the grid.
+ * @param {number} [start=0] - Optional starting offset for gap.
*
- * @return {number} [description]
+ * @return {number} The snapped value.
*/
var SnapFloor = function (value, gap, start)
{
@@ -118181,16 +118631,19 @@ module.exports = SnapFloor;
*/
/**
- * [description]
+ * Snap a value to nearest grid slice, using ceil.
+ *
+ * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `15`.
+ * As will `14` snap to `15`... but `16` will snap to `20`.
*
* @function Phaser.Math.Snap.Ceil
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {number} gap - [description]
- * @param {number} [start=0] - [description]
+ * @param {number} value - The value to snap.
+ * @param {number} gap - The interval gap of the grid.
+ * @param {number} [start=0] - Optional starting offset for gap.
*
- * @return {number} [description]
+ * @return {number} The snapped value.
*/
var SnapCeil = function (value, gap, start)
{
@@ -118277,7 +118730,7 @@ module.exports = IsValuePowerOfTwo;
module.exports = {
- GetNext: __webpack_require__(396),
+ GetNext: __webpack_require__(398),
IsSize: __webpack_require__(84),
IsValue: __webpack_require__(717)
@@ -118294,17 +118747,83 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Linear = __webpack_require__(271);
+var SmootherStep = __webpack_require__(287);
+
+/**
+ * A Smoother Step interpolation method.
+ *
+ * @function Phaser.Math.Interpolation.SmootherStep
+ * @since 3.9.0
+ * @see {@link https://en.wikipedia.org/wiki/Smoothstep#Variations}
+ *
+ * @param {number} t - The percentage of interpolation, between 0 and 1.
+ * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.
+ * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.
+ *
+ * @return {number} The interpolated value.
+ */
+var SmootherStepInterpolation = function (t, min, max)
+{
+ return min + (max - min) * SmootherStep(t, 0, 1);
+};
+
+module.exports = SmootherStepInterpolation;
+
+
+/***/ }),
+/* 720 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+var SmoothStep = __webpack_require__(286);
+
+/**
+ * A Smooth Step interpolation method.
+ *
+ * @function Phaser.Math.Interpolation.SmoothStep
+ * @since 3.9.0
+ * @see {@link https://en.wikipedia.org/wiki/Smoothstep}
+ *
+ * @param {number} t - The percentage of interpolation, between 0 and 1.
+ * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.
+ * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.
+ *
+ * @return {number} The interpolated value.
+ */
+var SmoothStepInterpolation = function (t, min, max)
+{
+ return min + (max - min) * SmoothStep(t, 0, 1);
+};
+
+module.exports = SmoothStepInterpolation;
+
+
+/***/ }),
+/* 721 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/**
+ * @author Richard Davey
+ * @copyright 2018 Photon Storm Ltd.
+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
+ */
+
+var Linear = __webpack_require__(120);
/**
- * A Linear Interpolation Method.
+ * A linear interpolation method.
*
* @function Phaser.Math.Interpolation.Linear
* @since 3.0.0
- * @see https://en.wikipedia.org/wiki/Linear_interpolation
+ * @see {@link https://en.wikipedia.org/wiki/Linear_interpolation}
*
* @param {number[]} v - The input array of values to interpolate between.
- * @param {!number} k - The percentage of interploation, between 0 and 1.
+ * @param {!number} k - The percentage of interpolation, between 0 and 1.
*
* @return {!number} The interpolated value.
*/
@@ -118331,7 +118850,7 @@ module.exports = LinearInterpolation;
/***/ }),
-/* 720 */
+/* 722 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118343,15 +118862,15 @@ module.exports = LinearInterpolation;
var CatmullRom = __webpack_require__(273);
/**
- * [description]
+ * A Catmull-Rom interpolation method.
*
* @function Phaser.Math.Interpolation.CatmullRom
* @since 3.0.0
*
- * @param {number} v - [description]
- * @param {number} k - [description]
+ * @param {number[]} v - The input array of values to interpolate between.
+ * @param {number} k - The percentage of interpolation, between 0 and 1.
*
- * @return {number} [description]
+ * @return {number} The interpolated value.
*/
var CatmullRomInterpolation = function (v, k)
{
@@ -118388,7 +118907,7 @@ module.exports = CatmullRomInterpolation;
/***/ }),
-/* 721 */
+/* 723 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118397,18 +118916,18 @@ module.exports = CatmullRomInterpolation;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Bernstein = __webpack_require__(346);
+var Bernstein = __webpack_require__(348);
/**
- * [description]
+ * A bezier interpolation method.
*
* @function Phaser.Math.Interpolation.Bezier
* @since 3.0.0
*
- * @param {number} v - [description]
- * @param {number} k - [description]
+ * @param {number[]} v - The input array of values to interpolate between.
+ * @param {number} k - The percentage of interpolation, between 0 and 1.
*
- * @return {number} [description]
+ * @return {number} The interpolated value.
*/
var BezierInterpolation = function (v, k)
{
@@ -118427,7 +118946,7 @@ module.exports = BezierInterpolation;
/***/ }),
-/* 722 */
+/* 724 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118441,16 +118960,20 @@ module.exports = BezierInterpolation;
*/
module.exports = {
- Bezier: __webpack_require__(721),
- CatmullRom: __webpack_require__(720),
- CubicBezier: __webpack_require__(541),
- Linear: __webpack_require__(719),
- QuadraticBezier: __webpack_require__(537)
+
+ Bezier: __webpack_require__(723),
+ CatmullRom: __webpack_require__(722),
+ CubicBezier: __webpack_require__(543),
+ Linear: __webpack_require__(721),
+ QuadraticBezier: __webpack_require__(539),
+ SmoothStep: __webpack_require__(720),
+ SmootherStep: __webpack_require__(719)
+
};
/***/ }),
-/* 723 */
+/* 725 */
/***/ (function(module, exports) {
/**
@@ -118460,16 +118983,18 @@ module.exports = {
*/
/**
- * [description]
+ * Check whether `a` is fuzzily less than `b`.
+ *
+ * `a` is fuzzily less than `b` if it is less than `b + epsilon`.
*
* @function Phaser.Math.Fuzzy.LessThan
* @since 3.0.0
*
- * @param {number} a - [description]
- * @param {number} b - [description]
- * @param {float} [epsilon=0.0001] - [description]
+ * @param {number} a - The first value.
+ * @param {number} b - The second value.
+ * @param {float} [epsilon=0.0001] - The epsilon.
*
- * @return {boolean} [description]
+ * @return {boolean} `true` if `a` is fuzzily less than `b`, otherwise `false`.
*/
var LessThan = function (a, b, epsilon)
{
@@ -118482,7 +119007,7 @@ module.exports = LessThan;
/***/ }),
-/* 724 */
+/* 726 */
/***/ (function(module, exports) {
/**
@@ -118492,16 +119017,18 @@ module.exports = LessThan;
*/
/**
- * [description]
+ * Check whether `a` is fuzzily greater than `b`.
+ *
+ * `a` is fuzzily greater than `b` if it is more than `b - epsilon`.
*
* @function Phaser.Math.Fuzzy.GreaterThan
* @since 3.0.0
*
- * @param {number} a - [description]
- * @param {number} b - [description]
- * @param {float} [epsilon=0.0001] - [description]
+ * @param {number} a - The first value.
+ * @param {number} b - The second value.
+ * @param {float} [epsilon=0.0001] - The epsilon.
*
- * @return {boolean} [description]
+ * @return {boolean} `true` if `a` is fuzzily greater than than `b`, otherwise `false`.
*/
var GreaterThan = function (a, b, epsilon)
{
@@ -118514,7 +119041,7 @@ module.exports = GreaterThan;
/***/ }),
-/* 725 */
+/* 727 */
/***/ (function(module, exports) {
/**
@@ -118524,15 +119051,15 @@ module.exports = GreaterThan;
*/
/**
- * [description]
+ * Calculate the fuzzy floor of the given value.
*
* @function Phaser.Math.Fuzzy.Floor
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {float} [epsilon=0.0001] - [description]
+ * @param {number} value - The value.
+ * @param {float} [epsilon=0.0001] - The epsilon.
*
- * @return {number} [description]
+ * @return {number} The floor of the value.
*/
var Floor = function (value, epsilon)
{
@@ -118545,7 +119072,7 @@ module.exports = Floor;
/***/ }),
-/* 726 */
+/* 728 */
/***/ (function(module, exports) {
/**
@@ -118555,16 +119082,18 @@ module.exports = Floor;
*/
/**
- * [description]
+ * Check whether the given values are fuzzily equal.
+ *
+ * Two numbers are fuzzily equal if their difference is less than `epsilon`.
*
* @function Phaser.Math.Fuzzy.Equal
* @since 3.0.0
*
- * @param {number} a - [description]
- * @param {number} b - [description]
- * @param {float} [epsilon=0.0001] - [description]
+ * @param {number} a - The first value.
+ * @param {number} b - The second value.
+ * @param {float} [epsilon=0.0001] - The epsilon.
*
- * @return {boolean} [description]
+ * @return {boolean} `true` if the values are fuzzily equal, otherwise `false`.
*/
var Equal = function (a, b, epsilon)
{
@@ -118577,7 +119106,7 @@ module.exports = Equal;
/***/ }),
-/* 727 */
+/* 729 */
/***/ (function(module, exports) {
/**
@@ -118587,15 +119116,15 @@ module.exports = Equal;
*/
/**
- * [description]
+ * Calculate the fuzzy ceiling of the given value.
*
* @function Phaser.Math.Fuzzy.Ceil
* @since 3.0.0
*
- * @param {number} value - [description]
- * @param {float} [epsilon=0.0001] - [description]
+ * @param {number} value - The value.
+ * @param {float} [epsilon=0.0001] - The epsilon.
*
- * @return {number} [description]
+ * @return {number} The fuzzy ceiling of the value.
*/
var Ceil = function (value, epsilon)
{
@@ -118608,7 +119137,7 @@ module.exports = Ceil;
/***/ }),
-/* 728 */
+/* 730 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118623,17 +119152,17 @@ module.exports = Ceil;
module.exports = {
- Ceil: __webpack_require__(727),
- Equal: __webpack_require__(726),
- Floor: __webpack_require__(725),
- GreaterThan: __webpack_require__(724),
- LessThan: __webpack_require__(723)
+ Ceil: __webpack_require__(729),
+ Equal: __webpack_require__(728),
+ Floor: __webpack_require__(727),
+ GreaterThan: __webpack_require__(726),
+ LessThan: __webpack_require__(725)
};
/***/ }),
-/* 729 */
+/* 731 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118648,24 +119177,24 @@ module.exports = {
module.exports = {
- Back: __webpack_require__(245),
- Bounce: __webpack_require__(244),
- Circular: __webpack_require__(243),
- Cubic: __webpack_require__(242),
- Elastic: __webpack_require__(241),
- Expo: __webpack_require__(240),
- Linear: __webpack_require__(239),
- Quadratic: __webpack_require__(238),
- Quartic: __webpack_require__(237),
- Quintic: __webpack_require__(236),
- Sine: __webpack_require__(235),
- Stepped: __webpack_require__(234)
+ Back: __webpack_require__(246),
+ Bounce: __webpack_require__(245),
+ Circular: __webpack_require__(244),
+ Cubic: __webpack_require__(243),
+ Elastic: __webpack_require__(242),
+ Expo: __webpack_require__(241),
+ Linear: __webpack_require__(240),
+ Quadratic: __webpack_require__(239),
+ Quartic: __webpack_require__(238),
+ Quintic: __webpack_require__(237),
+ Sine: __webpack_require__(236),
+ Stepped: __webpack_require__(235)
};
/***/ }),
-/* 730 */
+/* 732 */
/***/ (function(module, exports) {
/**
@@ -118675,17 +119204,17 @@ module.exports = {
*/
/**
- * [description]
+ * Calculate the distance between two sets of coordinates (points), squared.
*
* @function Phaser.Math.Distance.Squared
* @since 3.0.0
*
- * @param {number} x1 - [description]
- * @param {number} y1 - [description]
- * @param {number} x2 - [description]
- * @param {number} y2 - [description]
+ * @param {number} x1 - The x coordinate of the first point.
+ * @param {number} y1 - The y coordinate of the first point.
+ * @param {number} x2 - The x coordinate of the second point.
+ * @param {number} y2 - The y coordinate of the second point.
*
- * @return {number} [description]
+ * @return {number} The distance between each point, squared.
*/
var DistanceSquared = function (x1, y1, x2, y2)
{
@@ -118699,7 +119228,7 @@ module.exports = DistanceSquared;
/***/ }),
-/* 731 */
+/* 733 */
/***/ (function(module, exports) {
/**
@@ -118709,18 +119238,18 @@ module.exports = DistanceSquared;
*/
/**
- * [description]
+ * Calculate the distance between two sets of coordinates (points) to the power of `pow`.
*
* @function Phaser.Math.Distance.Power
* @since 3.0.0
*
- * @param {number} x1 - [description]
- * @param {number} y1 - [description]
- * @param {number} x2 - [description]
- * @param {number} y2 - [description]
- * @param {number} pow - [description]
+ * @param {number} x1 - The x coordinate of the first point.
+ * @param {number} y1 - The y coordinate of the first point.
+ * @param {number} x2 - The x coordinate of the second point.
+ * @param {number} y2 - The y coordinate of the second point.
+ * @param {number} pow - The exponent.
*
- * @return {number} [description]
+ * @return {number} The distance between each point.
*/
var DistancePower = function (x1, y1, x2, y2, pow)
{
@@ -118733,7 +119262,7 @@ module.exports = DistancePower;
/***/ }),
-/* 732 */
+/* 734 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118749,14 +119278,14 @@ module.exports = DistancePower;
module.exports = {
Between: __webpack_require__(57),
- Power: __webpack_require__(731),
- Squared: __webpack_require__(730)
+ Power: __webpack_require__(733),
+ Squared: __webpack_require__(732)
};
/***/ }),
-/* 733 */
+/* 735 */
/***/ (function(module, exports) {
/**
@@ -118767,6 +119296,7 @@ module.exports = {
/**
* Gets the shortest angle between `angle1` and `angle2`.
+ *
* Both angles must be in the range -180 to 180, which is the same clamped
* range that `sprite.angle` uses, so you can pass in two sprite angles to
* this method and get the shortest angle back between the two of them.
@@ -118775,6 +119305,8 @@ module.exports = {
* greater than 0 then it's a counter-clockwise rotation, if < 0 then it's
* a clockwise rotation.
*
+ * TODO: Wrap the angles in this function?
+ *
* @function Phaser.Math.Angle.ShortestBetween
* @since 3.0.0
*
@@ -118802,7 +119334,7 @@ module.exports = ShortestBetween;
/***/ }),
-/* 734 */
+/* 736 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118869,7 +119401,7 @@ module.exports = RotateTo;
/***/ }),
-/* 735 */
+/* 737 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -118878,17 +119410,17 @@ module.exports = RotateTo;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Normalize = __webpack_require__(347);
+var Normalize = __webpack_require__(349);
/**
- * [description]
+ * Reverse the given angle.
*
* @function Phaser.Math.Angle.Reverse
* @since 3.0.0
*
- * @param {number} angle - [description]
+ * @param {number} angle - The angle to reverse, in radians.
*
- * @return {number} [description]
+ * @return {number} The reversed angle, in radians.
*/
var Reverse = function (angle)
{
@@ -118899,7 +119431,7 @@ module.exports = Reverse;
/***/ }),
-/* 736 */
+/* 738 */
/***/ (function(module, exports) {
/**
@@ -118909,15 +119441,18 @@ module.exports = Reverse;
*/
/**
- * [description]
+ * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).
+ *
+ * The difference between this method and {@link Phaser.Math.Angle.BetweenPoints} is that this assumes the y coordinate
+ * travels down the screen.
*
* @function Phaser.Math.Angle.BetweenPointsY
* @since 3.0.0
*
- * @param {(Phaser.Geom.Point|object)} point1 - [description]
- * @param {(Phaser.Geom.Point|object)} point2 - [description]
+ * @param {(Phaser.Geom.Point|object)} point1 - The first point.
+ * @param {(Phaser.Geom.Point|object)} point2 - The second point.
*
- * @return {number} [description]
+ * @return {number} The angle in radians.
*/
var BetweenPointsY = function (point1, point2)
{
@@ -118928,7 +119463,7 @@ module.exports = BetweenPointsY;
/***/ }),
-/* 737 */
+/* 739 */
/***/ (function(module, exports) {
/**
@@ -118938,15 +119473,17 @@ module.exports = BetweenPointsY;
*/
/**
- * [description]
+ * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).
+ *
+ * Calculates the angle of the vector from the first point to the second point.
*
* @function Phaser.Math.Angle.BetweenPoints
* @since 3.0.0
*
- * @param {(Phaser.Geom.Point|object)} point1 - [description]
- * @param {(Phaser.Geom.Point|object)} point2 - [description]
+ * @param {(Phaser.Geom.Point|object)} point1 - The first point.
+ * @param {(Phaser.Geom.Point|object)} point2 - The second point.
*
- * @return {number} [description]
+ * @return {number} The angle in radians.
*/
var BetweenPoints = function (point1, point2)
{
@@ -118957,7 +119494,7 @@ module.exports = BetweenPoints;
/***/ }),
-/* 738 */
+/* 740 */
/***/ (function(module, exports) {
/**
@@ -118967,17 +119504,20 @@ module.exports = BetweenPoints;
*/
/**
- * [description]
+ * Find the angle of a segment from (x1, y1) -> (x2, y2).
+ *
+ * The difference between this method and {@link Phaser.Math.Angle.Between} is that this assumes the y coordinate
+ * travels down the screen.
*
* @function Phaser.Math.Angle.BetweenY
* @since 3.0.0
*
- * @param {number} x1 - [description]
- * @param {number} y1 - [description]
- * @param {number} x2 - [description]
- * @param {number} y2 - [description]
+ * @param {number} x1 - The x coordinate of the first point.
+ * @param {number} y1 - The y coordinate of the first point.
+ * @param {number} x2 - The x coordinate of the second point.
+ * @param {number} y2 - The y coordinate of the second point.
*
- * @return {number} [description]
+ * @return {number} The angle in radians.
*/
var BetweenY = function (x1, y1, x2, y2)
{
@@ -118988,7 +119528,7 @@ module.exports = BetweenY;
/***/ }),
-/* 739 */
+/* 741 */
/***/ (function(module, exports) {
/**
@@ -118998,17 +119538,17 @@ module.exports = BetweenY;
*/
/**
- * [description]
+ * Find the angle of a segment from (x1, y1) -> (x2, y2).
*
* @function Phaser.Math.Angle.Between
* @since 3.0.0
*
- * @param {number} x1 - [description]
- * @param {number} y1 - [description]
- * @param {number} x2 - [description]
- * @param {number} y2 - [description]
+ * @param {number} x1 - The x coordinate of the first point.
+ * @param {number} y1 - The y coordinate of the first point.
+ * @param {number} x2 - The x coordinate of the second point.
+ * @param {number} y2 - The y coordinate of the second point.
*
- * @return {number} [description]
+ * @return {number} The angle in radians.
*/
var Between = function (x1, y1, x2, y2)
{
@@ -119019,7 +119559,7 @@ module.exports = Between;
/***/ }),
-/* 740 */
+/* 742 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119034,22 +119574,22 @@ module.exports = Between;
module.exports = {
- Between: __webpack_require__(739),
- BetweenY: __webpack_require__(738),
- BetweenPoints: __webpack_require__(737),
- BetweenPointsY: __webpack_require__(736),
- Reverse: __webpack_require__(735),
- RotateTo: __webpack_require__(734),
- ShortestBetween: __webpack_require__(733),
- Normalize: __webpack_require__(347),
- Wrap: __webpack_require__(209),
- WrapDegrees: __webpack_require__(208)
+ Between: __webpack_require__(741),
+ BetweenY: __webpack_require__(740),
+ BetweenPoints: __webpack_require__(739),
+ BetweenPointsY: __webpack_require__(738),
+ Reverse: __webpack_require__(737),
+ RotateTo: __webpack_require__(736),
+ ShortestBetween: __webpack_require__(735),
+ Normalize: __webpack_require__(349),
+ Wrap: __webpack_require__(210),
+ WrapDegrees: __webpack_require__(209)
};
/***/ }),
-/* 741 */
+/* 743 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119068,50 +119608,50 @@ var Extend = __webpack_require__(18);
var PhaserMath = {
// Collections of functions
- Angle: __webpack_require__(740),
- Distance: __webpack_require__(732),
- Easing: __webpack_require__(729),
- Fuzzy: __webpack_require__(728),
- Interpolation: __webpack_require__(722),
+ Angle: __webpack_require__(742),
+ Distance: __webpack_require__(734),
+ Easing: __webpack_require__(731),
+ Fuzzy: __webpack_require__(730),
+ Interpolation: __webpack_require__(724),
Pow2: __webpack_require__(718),
Snap: __webpack_require__(716),
// Expose the RNG Class
- RandomDataGenerator: __webpack_require__(295),
+ RandomDataGenerator: __webpack_require__(297),
// Single functions
Average: __webpack_require__(712),
- Bernstein: __webpack_require__(346),
- Between: __webpack_require__(270),
+ Bernstein: __webpack_require__(348),
+ Between: __webpack_require__(271),
CatmullRom: __webpack_require__(273),
CeilTo: __webpack_require__(711),
- Clamp: __webpack_require__(24),
+ Clamp: __webpack_require__(23),
DegToRad: __webpack_require__(38),
Difference: __webpack_require__(710),
- Factorial: __webpack_require__(345),
- FloatBetween: __webpack_require__(246),
+ Factorial: __webpack_require__(347),
+ FloatBetween: __webpack_require__(247),
FloorTo: __webpack_require__(709),
FromPercent: __webpack_require__(64),
GetSpeed: __webpack_require__(708),
IsEven: __webpack_require__(707),
IsEvenStrict: __webpack_require__(706),
- Linear: __webpack_require__(271),
+ Linear: __webpack_require__(120),
MaxAdd: __webpack_require__(705),
MinSub: __webpack_require__(704),
Percent: __webpack_require__(703),
- RadToDeg: __webpack_require__(147),
+ RadToDeg: __webpack_require__(148),
RandomXY: __webpack_require__(702),
- RandomXYZ: __webpack_require__(552),
- RandomXYZW: __webpack_require__(551),
- Rotate: __webpack_require__(344),
- RotateAround: __webpack_require__(290),
- RotateAroundDistance: __webpack_require__(286),
- RoundAwayFromZero: __webpack_require__(253),
+ RandomXYZ: __webpack_require__(554),
+ RandomXYZW: __webpack_require__(553),
+ Rotate: __webpack_require__(346),
+ RotateAround: __webpack_require__(292),
+ RotateAroundDistance: __webpack_require__(288),
+ RoundAwayFromZero: __webpack_require__(254),
RoundTo: __webpack_require__(701),
SinCosTableGenerator: __webpack_require__(700),
- SmootherStep: __webpack_require__(563),
- SmoothStep: __webpack_require__(562),
- TransformXY: __webpack_require__(255),
+ SmootherStep: __webpack_require__(287),
+ SmoothStep: __webpack_require__(286),
+ TransformXY: __webpack_require__(256),
Within: __webpack_require__(699),
Wrap: __webpack_require__(39),
@@ -119119,10 +119659,10 @@ var PhaserMath = {
Vector2: __webpack_require__(7),
Vector3: __webpack_require__(86),
Vector4: __webpack_require__(277),
- Matrix3: __webpack_require__(548),
+ Matrix3: __webpack_require__(550),
Matrix4: __webpack_require__(278),
- Quaternion: __webpack_require__(549),
- RotateVec3: __webpack_require__(550)
+ Quaternion: __webpack_require__(551),
+ RotateVec3: __webpack_require__(552)
};
@@ -119136,7 +119676,7 @@ module.exports = PhaserMath;
/***/ }),
-/* 742 */
+/* 744 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119151,7 +119691,7 @@ var GetFastValue = __webpack_require__(1);
var ImageFile = __webpack_require__(37);
var IsPlainObject = __webpack_require__(8);
var MultiFile = __webpack_require__(36);
-var TextFile = __webpack_require__(222);
+var TextFile = __webpack_require__(223);
/**
* @typedef {object} Phaser.Loader.FileTypes.UnityAtlasFileConfig
@@ -119388,7 +119928,7 @@ module.exports = UnityAtlasFile;
/***/ }),
-/* 743 */
+/* 745 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119553,7 +120093,7 @@ module.exports = TilemapJSONFile;
/***/ }),
-/* 744 */
+/* 746 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119718,7 +120258,7 @@ module.exports = TilemapImpactFile;
/***/ }),
-/* 745 */
+/* 747 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -119922,7 +120462,7 @@ module.exports = TilemapCSVFile;
/***/ }),
-/* 746 */
+/* 748 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -120164,7 +120704,7 @@ module.exports = SVGFile;
/***/ }),
-/* 747 */
+/* 749 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -120381,7 +120921,7 @@ module.exports = ScenePluginFile;
/***/ }),
-/* 748 */
+/* 750 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -120609,7 +121149,7 @@ module.exports = PackFile;
/***/ }),
-/* 749 */
+/* 751 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -120877,7 +121417,7 @@ module.exports = HTMLFile;
/***/ }),
-/* 750 */
+/* 752 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121062,7 +121602,7 @@ module.exports = GLSLFile;
/***/ }),
-/* 751 */
+/* 753 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121077,8 +121617,8 @@ var GetFastValue = __webpack_require__(1);
var ImageFile = __webpack_require__(37);
var IsPlainObject = __webpack_require__(8);
var MultiFile = __webpack_require__(36);
-var ParseXMLBitmapFont = __webpack_require__(459);
-var XMLFile = __webpack_require__(141);
+var ParseXMLBitmapFont = __webpack_require__(461);
+var XMLFile = __webpack_require__(142);
/**
* @typedef {object} Phaser.Loader.FileTypes.BitmapFontFileConfig
@@ -121318,7 +121858,7 @@ module.exports = BitmapFontFile;
/***/ }),
-/* 752 */
+/* 754 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121510,7 +122050,7 @@ module.exports = BinaryFile;
/***/ }),
-/* 753 */
+/* 755 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121525,7 +122065,7 @@ var GetFastValue = __webpack_require__(1);
var ImageFile = __webpack_require__(37);
var IsPlainObject = __webpack_require__(8);
var MultiFile = __webpack_require__(36);
-var XMLFile = __webpack_require__(141);
+var XMLFile = __webpack_require__(142);
/**
* @typedef {object} Phaser.Loader.FileTypes.AtlasXMLFileConfig
@@ -121765,7 +122305,7 @@ module.exports = AtlasXMLFile;
/***/ }),
-/* 754 */
+/* 756 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121780,37 +122320,37 @@ module.exports = AtlasXMLFile;
module.exports = {
- AnimationJSONFile: __webpack_require__(355),
- AtlasJSONFile: __webpack_require__(354),
- AtlasXMLFile: __webpack_require__(753),
- AudioFile: __webpack_require__(164),
- AudioSpriteFile: __webpack_require__(353),
- BinaryFile: __webpack_require__(752),
- BitmapFontFile: __webpack_require__(751),
- GLSLFile: __webpack_require__(750),
- HTML5AudioFile: __webpack_require__(163),
- HTMLFile: __webpack_require__(749),
+ AnimationJSONFile: __webpack_require__(357),
+ AtlasJSONFile: __webpack_require__(356),
+ AtlasXMLFile: __webpack_require__(755),
+ AudioFile: __webpack_require__(165),
+ AudioSpriteFile: __webpack_require__(355),
+ BinaryFile: __webpack_require__(754),
+ BitmapFontFile: __webpack_require__(753),
+ GLSLFile: __webpack_require__(752),
+ HTML5AudioFile: __webpack_require__(164),
+ HTMLFile: __webpack_require__(751),
ImageFile: __webpack_require__(37),
JSONFile: __webpack_require__(28),
- MultiAtlasFile: __webpack_require__(352),
- PackFile: __webpack_require__(748),
- PluginFile: __webpack_require__(351),
- ScenePluginFile: __webpack_require__(747),
- ScriptFile: __webpack_require__(350),
- SpriteSheetFile: __webpack_require__(349),
- SVGFile: __webpack_require__(746),
- TextFile: __webpack_require__(222),
- TilemapCSVFile: __webpack_require__(745),
- TilemapImpactFile: __webpack_require__(744),
- TilemapJSONFile: __webpack_require__(743),
- UnityAtlasFile: __webpack_require__(742),
- XMLFile: __webpack_require__(141)
+ MultiAtlasFile: __webpack_require__(354),
+ PackFile: __webpack_require__(750),
+ PluginFile: __webpack_require__(353),
+ ScenePluginFile: __webpack_require__(749),
+ ScriptFile: __webpack_require__(352),
+ SpriteSheetFile: __webpack_require__(351),
+ SVGFile: __webpack_require__(748),
+ TextFile: __webpack_require__(223),
+ TilemapCSVFile: __webpack_require__(747),
+ TilemapImpactFile: __webpack_require__(746),
+ TilemapJSONFile: __webpack_require__(745),
+ UnityAtlasFile: __webpack_require__(744),
+ XMLFile: __webpack_require__(142)
};
/***/ }),
-/* 755 */
+/* 757 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121828,15 +122368,15 @@ var Extend = __webpack_require__(18);
var Loader = {
- FileTypes: __webpack_require__(754),
+ FileTypes: __webpack_require__(756),
File: __webpack_require__(19),
FileTypesManager: __webpack_require__(6),
GetURL: __webpack_require__(106),
- LoaderPlugin: __webpack_require__(348),
+ LoaderPlugin: __webpack_require__(350),
MergeXHRSettings: __webpack_require__(105),
MultiFile: __webpack_require__(36),
- XHRLoader: __webpack_require__(165),
+ XHRLoader: __webpack_require__(166),
XHRSettings: __webpack_require__(74)
};
@@ -121848,7 +122388,7 @@ module.exports = Loader;
/***/ }),
-/* 756 */
+/* 758 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121857,7 +122397,7 @@ module.exports = Loader;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RotateAroundXY = __webpack_require__(223);
+var RotateAroundXY = __webpack_require__(224);
/**
* [description]
@@ -121882,7 +122422,7 @@ module.exports = RotateAroundPoint;
/***/ }),
-/* 757 */
+/* 759 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121891,8 +122431,8 @@ module.exports = RotateAroundPoint;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RotateAroundXY = __webpack_require__(223);
-var InCenter = __webpack_require__(370);
+var RotateAroundXY = __webpack_require__(224);
+var InCenter = __webpack_require__(372);
/**
* [description]
@@ -121918,7 +122458,7 @@ module.exports = Rotate;
/***/ }),
-/* 758 */
+/* 760 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -121954,7 +122494,7 @@ module.exports = Perimeter;
/***/ }),
-/* 759 */
+/* 761 */
/***/ (function(module, exports) {
/**
@@ -121990,7 +122530,7 @@ module.exports = Equals;
/***/ }),
-/* 760 */
+/* 762 */
/***/ (function(module, exports) {
/**
@@ -122021,7 +122561,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 761 */
+/* 763 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122052,7 +122592,7 @@ module.exports = ContainsPoint;
/***/ }),
-/* 762 */
+/* 764 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122082,7 +122622,7 @@ module.exports = Clone;
/***/ }),
-/* 763 */
+/* 765 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122165,7 +122705,7 @@ module.exports = CircumCircle;
/***/ }),
-/* 764 */
+/* 766 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122241,7 +122781,7 @@ module.exports = CircumCenter;
/***/ }),
-/* 765 */
+/* 767 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122250,8 +122790,8 @@ module.exports = CircumCenter;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Centroid = __webpack_require__(372);
-var Offset = __webpack_require__(371);
+var Centroid = __webpack_require__(374);
+var Offset = __webpack_require__(373);
/**
* @callback CenterFunction
@@ -122294,7 +122834,7 @@ module.exports = CenterOn;
/***/ }),
-/* 766 */
+/* 768 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122343,7 +122883,7 @@ module.exports = BuildRight;
/***/ }),
-/* 767 */
+/* 769 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122352,7 +122892,7 @@ module.exports = BuildRight;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var EarCut = __webpack_require__(256);
+var EarCut = __webpack_require__(257);
var Triangle = __webpack_require__(68);
/**
@@ -122418,7 +122958,7 @@ module.exports = BuildFromPolygon;
/***/ }),
-/* 768 */
+/* 770 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122468,7 +123008,7 @@ module.exports = BuildEquilateral;
/***/ }),
-/* 769 */
+/* 771 */
/***/ (function(module, exports) {
/**
@@ -122507,7 +123047,7 @@ module.exports = Area;
/***/ }),
-/* 770 */
+/* 772 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122518,36 +123058,36 @@ module.exports = Area;
var Triangle = __webpack_require__(68);
-Triangle.Area = __webpack_require__(769);
-Triangle.BuildEquilateral = __webpack_require__(768);
-Triangle.BuildFromPolygon = __webpack_require__(767);
-Triangle.BuildRight = __webpack_require__(766);
-Triangle.CenterOn = __webpack_require__(765);
-Triangle.Centroid = __webpack_require__(372);
-Triangle.CircumCenter = __webpack_require__(764);
-Triangle.CircumCircle = __webpack_require__(763);
-Triangle.Clone = __webpack_require__(762);
+Triangle.Area = __webpack_require__(771);
+Triangle.BuildEquilateral = __webpack_require__(770);
+Triangle.BuildFromPolygon = __webpack_require__(769);
+Triangle.BuildRight = __webpack_require__(768);
+Triangle.CenterOn = __webpack_require__(767);
+Triangle.Centroid = __webpack_require__(374);
+Triangle.CircumCenter = __webpack_require__(766);
+Triangle.CircumCircle = __webpack_require__(765);
+Triangle.Clone = __webpack_require__(764);
Triangle.Contains = __webpack_require__(59);
-Triangle.ContainsArray = __webpack_require__(229);
-Triangle.ContainsPoint = __webpack_require__(761);
-Triangle.CopyFrom = __webpack_require__(760);
-Triangle.Decompose = __webpack_require__(379);
-Triangle.Equals = __webpack_require__(759);
-Triangle.GetPoint = __webpack_require__(225);
-Triangle.GetPoints = __webpack_require__(224);
-Triangle.InCenter = __webpack_require__(370);
-Triangle.Perimeter = __webpack_require__(758);
-Triangle.Offset = __webpack_require__(371);
-Triangle.Random = __webpack_require__(150);
-Triangle.Rotate = __webpack_require__(757);
-Triangle.RotateAroundPoint = __webpack_require__(756);
-Triangle.RotateAroundXY = __webpack_require__(223);
+Triangle.ContainsArray = __webpack_require__(230);
+Triangle.ContainsPoint = __webpack_require__(763);
+Triangle.CopyFrom = __webpack_require__(762);
+Triangle.Decompose = __webpack_require__(381);
+Triangle.Equals = __webpack_require__(761);
+Triangle.GetPoint = __webpack_require__(226);
+Triangle.GetPoints = __webpack_require__(225);
+Triangle.InCenter = __webpack_require__(372);
+Triangle.Perimeter = __webpack_require__(760);
+Triangle.Offset = __webpack_require__(373);
+Triangle.Random = __webpack_require__(151);
+Triangle.Rotate = __webpack_require__(759);
+Triangle.RotateAroundPoint = __webpack_require__(758);
+Triangle.RotateAroundXY = __webpack_require__(224);
module.exports = Triangle;
/***/ }),
-/* 771 */
+/* 773 */
/***/ (function(module, exports) {
/**
@@ -122586,7 +123126,7 @@ module.exports = Scale;
/***/ }),
-/* 772 */
+/* 774 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122643,7 +123183,7 @@ module.exports = PerimeterPoint;
/***/ }),
-/* 773 */
+/* 775 */
/***/ (function(module, exports) {
/**
@@ -122677,7 +123217,7 @@ module.exports = Overlaps;
/***/ }),
-/* 774 */
+/* 776 */
/***/ (function(module, exports) {
/**
@@ -122711,7 +123251,7 @@ module.exports = OffsetPoint;
/***/ }),
-/* 775 */
+/* 777 */
/***/ (function(module, exports) {
/**
@@ -122746,7 +123286,7 @@ module.exports = Offset;
/***/ }),
-/* 776 */
+/* 778 */
/***/ (function(module, exports) {
/**
@@ -122790,7 +123330,7 @@ module.exports = MergeXY;
/***/ }),
-/* 777 */
+/* 779 */
/***/ (function(module, exports) {
/**
@@ -122836,7 +123376,7 @@ module.exports = MergeRect;
/***/ }),
-/* 778 */
+/* 780 */
/***/ (function(module, exports) {
/**
@@ -122888,7 +123428,7 @@ module.exports = MergePoints;
/***/ }),
-/* 779 */
+/* 781 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122897,7 +123437,7 @@ module.exports = MergePoints;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var CenterOn = __webpack_require__(373);
+var CenterOn = __webpack_require__(375);
// Increases the size of the Rectangle object by the specified amounts.
// The center point of the Rectangle object stays the same, and its size increases
@@ -122931,7 +123471,7 @@ module.exports = Inflate;
/***/ }),
-/* 780 */
+/* 782 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -122972,7 +123512,7 @@ module.exports = GetSize;
/***/ }),
-/* 781 */
+/* 783 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123012,7 +123552,7 @@ module.exports = GetCenter;
/***/ }),
-/* 782 */
+/* 784 */
/***/ (function(module, exports) {
/**
@@ -123047,7 +123587,7 @@ module.exports = FloorAll;
/***/ }),
-/* 783 */
+/* 785 */
/***/ (function(module, exports) {
/**
@@ -123080,7 +123620,7 @@ module.exports = Floor;
/***/ }),
-/* 784 */
+/* 786 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123089,7 +123629,7 @@ module.exports = Floor;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetAspectRatio = __webpack_require__(226);
+var GetAspectRatio = __webpack_require__(227);
// Fits the target rectangle around the source rectangle.
// Preserves aspect ration.
@@ -123133,7 +123673,7 @@ module.exports = FitOutside;
/***/ }),
-/* 785 */
+/* 787 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123142,7 +123682,7 @@ module.exports = FitOutside;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetAspectRatio = __webpack_require__(226);
+var GetAspectRatio = __webpack_require__(227);
// Fits the target rectangle into the source rectangle.
// Preserves aspect ratio.
@@ -123186,7 +123726,7 @@ module.exports = FitInside;
/***/ }),
-/* 786 */
+/* 788 */
/***/ (function(module, exports) {
/**
@@ -123220,7 +123760,7 @@ module.exports = Equals;
/***/ }),
-/* 787 */
+/* 789 */
/***/ (function(module, exports) {
/**
@@ -123251,7 +123791,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 788 */
+/* 790 */
/***/ (function(module, exports) {
/**
@@ -123293,7 +123833,7 @@ module.exports = ContainsRect;
/***/ }),
-/* 789 */
+/* 791 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123324,7 +123864,7 @@ module.exports = ContainsPoint;
/***/ }),
-/* 790 */
+/* 792 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123354,7 +123894,7 @@ module.exports = Clone;
/***/ }),
-/* 791 */
+/* 793 */
/***/ (function(module, exports) {
/**
@@ -123389,7 +123929,7 @@ module.exports = CeilAll;
/***/ }),
-/* 792 */
+/* 794 */
/***/ (function(module, exports) {
/**
@@ -123422,7 +123962,7 @@ module.exports = Ceil;
/***/ }),
-/* 793 */
+/* 795 */
/***/ (function(module, exports) {
/**
@@ -123450,7 +123990,7 @@ module.exports = Area;
/***/ }),
-/* 794 */
+/* 796 */
/***/ (function(module, exports) {
/**
@@ -123491,7 +124031,7 @@ module.exports = GetNumberArray;
/***/ }),
-/* 795 */
+/* 797 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123547,7 +124087,7 @@ module.exports = GetAABB;
/***/ }),
-/* 796 */
+/* 798 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123556,7 +124096,7 @@ module.exports = GetAABB;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Contains = __webpack_require__(227);
+var Contains = __webpack_require__(228);
/**
* [description]
@@ -123578,7 +124118,7 @@ module.exports = ContainsPoint;
/***/ }),
-/* 797 */
+/* 799 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123587,7 +124127,7 @@ module.exports = ContainsPoint;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Polygon = __webpack_require__(375);
+var Polygon = __webpack_require__(377);
/**
* [description]
@@ -123608,7 +124148,7 @@ module.exports = Clone;
/***/ }),
-/* 798 */
+/* 800 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123617,19 +124157,19 @@ module.exports = Clone;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Polygon = __webpack_require__(375);
+var Polygon = __webpack_require__(377);
-Polygon.Clone = __webpack_require__(797);
-Polygon.Contains = __webpack_require__(227);
-Polygon.ContainsPoint = __webpack_require__(796);
-Polygon.GetAABB = __webpack_require__(795);
-Polygon.GetNumberArray = __webpack_require__(794);
+Polygon.Clone = __webpack_require__(799);
+Polygon.Contains = __webpack_require__(228);
+Polygon.ContainsPoint = __webpack_require__(798);
+Polygon.GetAABB = __webpack_require__(797);
+Polygon.GetNumberArray = __webpack_require__(796);
module.exports = Polygon;
/***/ }),
-/* 799 */
+/* 801 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123638,7 +124178,7 @@ module.exports = Polygon;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetMagnitude = __webpack_require__(377);
+var GetMagnitude = __webpack_require__(379);
/**
* [description]
@@ -123673,7 +124213,7 @@ module.exports = SetMagnitude;
/***/ }),
-/* 800 */
+/* 802 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123717,7 +124257,7 @@ module.exports = ProjectUnit;
/***/ }),
-/* 801 */
+/* 803 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123727,7 +124267,7 @@ module.exports = ProjectUnit;
*/
var Point = __webpack_require__(5);
-var GetMagnitudeSq = __webpack_require__(376);
+var GetMagnitudeSq = __webpack_require__(378);
/**
* [description]
@@ -123763,7 +124303,7 @@ module.exports = Project;
/***/ }),
-/* 802 */
+/* 804 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123798,7 +124338,7 @@ module.exports = Negative;
/***/ }),
-/* 803 */
+/* 805 */
/***/ (function(module, exports) {
/**
@@ -123828,7 +124368,7 @@ module.exports = Invert;
/***/ }),
-/* 804 */
+/* 806 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123869,7 +124409,7 @@ module.exports = Interpolate;
/***/ }),
-/* 805 */
+/* 807 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -123939,7 +124479,7 @@ module.exports = GetRectangleFromPoints;
/***/ }),
-/* 806 */
+/* 808 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124002,7 +124542,7 @@ module.exports = GetCentroid;
/***/ }),
-/* 807 */
+/* 809 */
/***/ (function(module, exports) {
/**
@@ -124032,7 +124572,7 @@ module.exports = Floor;
/***/ }),
-/* 808 */
+/* 810 */
/***/ (function(module, exports) {
/**
@@ -124061,7 +124601,7 @@ module.exports = Equals;
/***/ }),
-/* 809 */
+/* 811 */
/***/ (function(module, exports) {
/**
@@ -124092,7 +124632,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 810 */
+/* 812 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124122,7 +124662,7 @@ module.exports = Clone;
/***/ }),
-/* 811 */
+/* 813 */
/***/ (function(module, exports) {
/**
@@ -124152,7 +124692,7 @@ module.exports = Ceil;
/***/ }),
-/* 812 */
+/* 814 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124163,27 +124703,27 @@ module.exports = Ceil;
var Point = __webpack_require__(5);
-Point.Ceil = __webpack_require__(811);
-Point.Clone = __webpack_require__(810);
-Point.CopyFrom = __webpack_require__(809);
-Point.Equals = __webpack_require__(808);
-Point.Floor = __webpack_require__(807);
-Point.GetCentroid = __webpack_require__(806);
-Point.GetMagnitude = __webpack_require__(377);
-Point.GetMagnitudeSq = __webpack_require__(376);
-Point.GetRectangleFromPoints = __webpack_require__(805);
-Point.Interpolate = __webpack_require__(804);
-Point.Invert = __webpack_require__(803);
-Point.Negative = __webpack_require__(802);
-Point.Project = __webpack_require__(801);
-Point.ProjectUnit = __webpack_require__(800);
-Point.SetMagnitude = __webpack_require__(799);
+Point.Ceil = __webpack_require__(813);
+Point.Clone = __webpack_require__(812);
+Point.CopyFrom = __webpack_require__(811);
+Point.Equals = __webpack_require__(810);
+Point.Floor = __webpack_require__(809);
+Point.GetCentroid = __webpack_require__(808);
+Point.GetMagnitude = __webpack_require__(379);
+Point.GetMagnitudeSq = __webpack_require__(378);
+Point.GetRectangleFromPoints = __webpack_require__(807);
+Point.Interpolate = __webpack_require__(806);
+Point.Invert = __webpack_require__(805);
+Point.Negative = __webpack_require__(804);
+Point.Project = __webpack_require__(803);
+Point.ProjectUnit = __webpack_require__(802);
+Point.SetMagnitude = __webpack_require__(801);
module.exports = Point;
/***/ }),
-/* 813 */
+/* 815 */
/***/ (function(module, exports) {
/**
@@ -124211,7 +124751,7 @@ module.exports = Width;
/***/ }),
-/* 814 */
+/* 816 */
/***/ (function(module, exports) {
/**
@@ -124239,7 +124779,7 @@ module.exports = Slope;
/***/ }),
-/* 815 */
+/* 817 */
/***/ (function(module, exports) {
/**
@@ -124279,7 +124819,7 @@ module.exports = SetToAngle;
/***/ }),
-/* 816 */
+/* 818 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124288,7 +124828,7 @@ module.exports = SetToAngle;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RotateAroundXY = __webpack_require__(228);
+var RotateAroundXY = __webpack_require__(229);
/**
* [description]
@@ -124313,7 +124853,7 @@ module.exports = RotateAroundPoint;
/***/ }),
-/* 817 */
+/* 819 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124322,7 +124862,7 @@ module.exports = RotateAroundPoint;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RotateAroundXY = __webpack_require__(228);
+var RotateAroundXY = __webpack_require__(229);
/**
* [description]
@@ -124349,7 +124889,7 @@ module.exports = Rotate;
/***/ }),
-/* 818 */
+/* 820 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124359,7 +124899,7 @@ module.exports = Rotate;
*/
var Angle = __webpack_require__(81);
-var NormalAngle = __webpack_require__(378);
+var NormalAngle = __webpack_require__(380);
/**
* Returns the reflected angle between two lines.
@@ -124385,7 +124925,7 @@ module.exports = ReflectAngle;
/***/ }),
-/* 819 */
+/* 821 */
/***/ (function(module, exports) {
/**
@@ -124413,7 +124953,7 @@ module.exports = PerpSlope;
/***/ }),
-/* 820 */
+/* 822 */
/***/ (function(module, exports) {
/**
@@ -124451,7 +124991,7 @@ module.exports = Offset;
/***/ }),
-/* 821 */
+/* 823 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124482,7 +125022,7 @@ module.exports = NormalY;
/***/ }),
-/* 822 */
+/* 824 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124513,7 +125053,7 @@ module.exports = NormalX;
/***/ }),
-/* 823 */
+/* 825 */
/***/ (function(module, exports) {
/**
@@ -124541,7 +125081,7 @@ module.exports = Height;
/***/ }),
-/* 824 */
+/* 826 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124583,7 +125123,7 @@ module.exports = GetNormal;
/***/ }),
-/* 825 */
+/* 827 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124621,7 +125161,7 @@ module.exports = GetMidPoint;
/***/ }),
-/* 826 */
+/* 828 */
/***/ (function(module, exports) {
/**
@@ -124655,7 +125195,7 @@ module.exports = Equals;
/***/ }),
-/* 827 */
+/* 829 */
/***/ (function(module, exports) {
/**
@@ -124686,7 +125226,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 828 */
+/* 830 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124716,7 +125256,7 @@ module.exports = Clone;
/***/ }),
-/* 829 */
+/* 831 */
/***/ (function(module, exports) {
/**
@@ -124756,7 +125296,7 @@ module.exports = CenterOn;
/***/ }),
-/* 830 */
+/* 832 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124769,35 +125309,35 @@ var Line = __webpack_require__(95);
Line.Angle = __webpack_require__(81);
Line.BresenhamPoints = __webpack_require__(564);
-Line.CenterOn = __webpack_require__(829);
-Line.Clone = __webpack_require__(828);
-Line.CopyFrom = __webpack_require__(827);
-Line.Equals = __webpack_require__(826);
-Line.GetMidPoint = __webpack_require__(825);
-Line.GetNormal = __webpack_require__(824);
-Line.GetPoint = __webpack_require__(291);
-Line.GetPoints = __webpack_require__(153);
-Line.Height = __webpack_require__(823);
+Line.CenterOn = __webpack_require__(831);
+Line.Clone = __webpack_require__(830);
+Line.CopyFrom = __webpack_require__(829);
+Line.Equals = __webpack_require__(828);
+Line.GetMidPoint = __webpack_require__(827);
+Line.GetNormal = __webpack_require__(826);
+Line.GetPoint = __webpack_require__(293);
+Line.GetPoints = __webpack_require__(154);
+Line.Height = __webpack_require__(825);
Line.Length = __webpack_require__(71);
-Line.NormalAngle = __webpack_require__(378);
-Line.NormalX = __webpack_require__(822);
-Line.NormalY = __webpack_require__(821);
-Line.Offset = __webpack_require__(820);
-Line.PerpSlope = __webpack_require__(819);
-Line.Random = __webpack_require__(152);
-Line.ReflectAngle = __webpack_require__(818);
-Line.Rotate = __webpack_require__(817);
-Line.RotateAroundPoint = __webpack_require__(816);
-Line.RotateAroundXY = __webpack_require__(228);
-Line.SetToAngle = __webpack_require__(815);
-Line.Slope = __webpack_require__(814);
-Line.Width = __webpack_require__(813);
+Line.NormalAngle = __webpack_require__(380);
+Line.NormalX = __webpack_require__(824);
+Line.NormalY = __webpack_require__(823);
+Line.Offset = __webpack_require__(822);
+Line.PerpSlope = __webpack_require__(821);
+Line.Random = __webpack_require__(153);
+Line.ReflectAngle = __webpack_require__(820);
+Line.Rotate = __webpack_require__(819);
+Line.RotateAroundPoint = __webpack_require__(818);
+Line.RotateAroundXY = __webpack_require__(229);
+Line.SetToAngle = __webpack_require__(817);
+Line.Slope = __webpack_require__(816);
+Line.Width = __webpack_require__(815);
module.exports = Line;
/***/ }),
-/* 831 */
+/* 833 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124806,9 +125346,9 @@ module.exports = Line;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ContainsArray = __webpack_require__(229);
-var Decompose = __webpack_require__(379);
-var LineToLine = __webpack_require__(142);
+var ContainsArray = __webpack_require__(230);
+var Decompose = __webpack_require__(381);
+var LineToLine = __webpack_require__(143);
/**
* [description]
@@ -124885,7 +125425,7 @@ module.exports = TriangleToTriangle;
/***/ }),
-/* 832 */
+/* 834 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124895,7 +125435,7 @@ module.exports = TriangleToTriangle;
*/
var Contains = __webpack_require__(59);
-var LineToLine = __webpack_require__(142);
+var LineToLine = __webpack_require__(143);
/**
* [description]
@@ -124939,7 +125479,7 @@ module.exports = TriangleToLine;
/***/ }),
-/* 833 */
+/* 835 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -124948,7 +125488,7 @@ module.exports = TriangleToLine;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var LineToCircle = __webpack_require__(382);
+var LineToCircle = __webpack_require__(384);
var Contains = __webpack_require__(59);
/**
@@ -125002,7 +125542,7 @@ module.exports = TriangleToCircle;
/***/ }),
-/* 834 */
+/* 836 */
/***/ (function(module, exports) {
/**
@@ -125042,7 +125582,7 @@ module.exports = RectangleToValues;
/***/ }),
-/* 835 */
+/* 837 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125051,10 +125591,10 @@ module.exports = RectangleToValues;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var LineToLine = __webpack_require__(142);
+var LineToLine = __webpack_require__(143);
var Contains = __webpack_require__(31);
-var ContainsArray = __webpack_require__(229);
-var Decompose = __webpack_require__(380);
+var ContainsArray = __webpack_require__(230);
+var Decompose = __webpack_require__(382);
/**
* [description]
@@ -125135,7 +125675,7 @@ module.exports = RectangleToTriangle;
/***/ }),
-/* 836 */
+/* 838 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125144,7 +125684,7 @@ module.exports = RectangleToTriangle;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var PointToLine = __webpack_require__(381);
+var PointToLine = __webpack_require__(383);
/**
* [description]
@@ -125176,7 +125716,7 @@ module.exports = PointToLineSegment;
/***/ }),
-/* 837 */
+/* 839 */
/***/ (function(module, exports) {
/**
@@ -125277,7 +125817,7 @@ module.exports = LineToRectangle;
/***/ }),
-/* 838 */
+/* 840 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125287,7 +125827,7 @@ module.exports = LineToRectangle;
*/
var Rectangle = __webpack_require__(14);
-var RectangleToRectangle = __webpack_require__(383);
+var RectangleToRectangle = __webpack_require__(385);
/**
* [description]
@@ -125322,7 +125862,7 @@ module.exports = GetRectangleIntersection;
/***/ }),
-/* 839 */
+/* 841 */
/***/ (function(module, exports) {
/**
@@ -125376,7 +125916,7 @@ module.exports = CircleToRectangle;
/***/ }),
-/* 840 */
+/* 842 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125407,7 +125947,7 @@ module.exports = CircleToCircle;
/***/ }),
-/* 841 */
+/* 843 */
/***/ (function(module, exports) {
/**
@@ -125441,7 +125981,7 @@ module.exports = OffsetPoint;
/***/ }),
-/* 842 */
+/* 844 */
/***/ (function(module, exports) {
/**
@@ -125476,7 +126016,7 @@ module.exports = Offset;
/***/ }),
-/* 843 */
+/* 845 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125516,7 +126056,7 @@ module.exports = GetBounds;
/***/ }),
-/* 844 */
+/* 846 */
/***/ (function(module, exports) {
/**
@@ -125550,7 +126090,7 @@ module.exports = Equals;
/***/ }),
-/* 845 */
+/* 847 */
/***/ (function(module, exports) {
/**
@@ -125582,7 +126122,7 @@ module.exports = CopyFrom;
/***/ }),
-/* 846 */
+/* 848 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125618,7 +126158,7 @@ module.exports = ContainsRect;
/***/ }),
-/* 847 */
+/* 849 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125649,7 +126189,7 @@ module.exports = ContainsPoint;
/***/ }),
-/* 848 */
+/* 850 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125679,7 +126219,7 @@ module.exports = Clone;
/***/ }),
-/* 849 */
+/* 851 */
/***/ (function(module, exports) {
/**
@@ -125707,7 +126247,7 @@ module.exports = Area;
/***/ }),
-/* 850 */
+/* 852 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125718,27 +126258,27 @@ module.exports = Area;
var Circle = __webpack_require__(87);
-Circle.Area = __webpack_require__(849);
-Circle.Circumference = __webpack_require__(293);
-Circle.CircumferencePoint = __webpack_require__(132);
-Circle.Clone = __webpack_require__(848);
+Circle.Area = __webpack_require__(851);
+Circle.Circumference = __webpack_require__(295);
+Circle.CircumferencePoint = __webpack_require__(133);
+Circle.Clone = __webpack_require__(850);
Circle.Contains = __webpack_require__(32);
-Circle.ContainsPoint = __webpack_require__(847);
-Circle.ContainsRect = __webpack_require__(846);
-Circle.CopyFrom = __webpack_require__(845);
-Circle.Equals = __webpack_require__(844);
-Circle.GetBounds = __webpack_require__(843);
-Circle.GetPoint = __webpack_require__(296);
-Circle.GetPoints = __webpack_require__(294);
-Circle.Offset = __webpack_require__(842);
-Circle.OffsetPoint = __webpack_require__(841);
-Circle.Random = __webpack_require__(154);
+Circle.ContainsPoint = __webpack_require__(849);
+Circle.ContainsRect = __webpack_require__(848);
+Circle.CopyFrom = __webpack_require__(847);
+Circle.Equals = __webpack_require__(846);
+Circle.GetBounds = __webpack_require__(845);
+Circle.GetPoint = __webpack_require__(298);
+Circle.GetPoints = __webpack_require__(296);
+Circle.Offset = __webpack_require__(844);
+Circle.OffsetPoint = __webpack_require__(843);
+Circle.Random = __webpack_require__(155);
module.exports = Circle;
/***/ }),
-/* 851 */
+/* 853 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125748,7 +126288,7 @@ module.exports = Circle;
*/
var Class = __webpack_require__(0);
-var LightsManager = __webpack_require__(386);
+var LightsManager = __webpack_require__(388);
var PluginCache = __webpack_require__(12);
/**
@@ -125833,7 +126373,7 @@ module.exports = LightsPlugin;
/***/ }),
-/* 852 */
+/* 854 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125842,10 +126382,10 @@ module.exports = LightsPlugin;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
-var Quad = __webpack_require__(230);
+var Quad = __webpack_require__(231);
/**
* Creates a new Quad Game Object and returns it.
@@ -125883,7 +126423,7 @@ GameObjectCreator.register('quad', function (config, addToScene)
/***/ }),
-/* 853 */
+/* 855 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125892,11 +126432,11 @@ GameObjectCreator.register('quad', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var GetValue = __webpack_require__(4);
-var Mesh = __webpack_require__(143);
+var Mesh = __webpack_require__(144);
/**
* Creates a new Mesh Game Object and returns it.
@@ -125938,7 +126478,7 @@ GameObjectCreator.register('mesh', function (config, addToScene)
/***/ }),
-/* 854 */
+/* 856 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125947,7 +126487,7 @@ GameObjectCreator.register('mesh', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Quad = __webpack_require__(230);
+var Quad = __webpack_require__(231);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -125984,7 +126524,7 @@ if (true)
/***/ }),
-/* 855 */
+/* 857 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -125993,7 +126533,7 @@ if (true)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Mesh = __webpack_require__(143);
+var Mesh = __webpack_require__(144);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -126034,7 +126574,7 @@ if (true)
/***/ }),
-/* 856 */
+/* 858 */
/***/ (function(module, exports) {
/**
@@ -126063,7 +126603,7 @@ module.exports = MeshCanvasRenderer;
/***/ }),
-/* 857 */
+/* 859 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126103,7 +126643,7 @@ module.exports = MeshWebGLRenderer;
/***/ }),
-/* 858 */
+/* 860 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126117,12 +126657,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(857);
+ renderWebGL = __webpack_require__(859);
}
if (true)
{
- renderCanvas = __webpack_require__(856);
+ renderCanvas = __webpack_require__(858);
}
module.exports = {
@@ -126134,7 +126674,7 @@ module.exports = {
/***/ }),
-/* 859 */
+/* 861 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126145,7 +126685,7 @@ module.exports = {
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
-var Zone = __webpack_require__(155);
+var Zone = __webpack_require__(156);
/**
* Creates a new Zone Game Object and returns it.
@@ -126173,7 +126713,7 @@ GameObjectCreator.register('zone', function (config)
/***/ }),
-/* 860 */
+/* 862 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126182,10 +126722,10 @@ GameObjectCreator.register('zone', function (config)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
-var TileSprite = __webpack_require__(231);
+var TileSprite = __webpack_require__(232);
/**
* @typedef {object} TileSprite
@@ -126239,7 +126779,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene)
/***/ }),
-/* 861 */
+/* 863 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126248,8 +126788,8 @@ GameObjectCreator.register('tileSprite', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BitmapText = __webpack_require__(251);
-var BuildGameObject = __webpack_require__(23);
+var BitmapText = __webpack_require__(252);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var GetValue = __webpack_require__(4);
@@ -126293,7 +126833,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene)
/***/ }),
-/* 862 */
+/* 864 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126302,11 +126842,11 @@ GameObjectCreator.register('bitmapText', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
-var BuildGameObjectAnimation = __webpack_require__(123);
+var BuildGameObject = __webpack_require__(24);
+var BuildGameObjectAnimation = __webpack_require__(124);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
-var Sprite3D = __webpack_require__(148);
+var Sprite3D = __webpack_require__(149);
/**
* Creates a new Sprite3D Game Object and returns it.
@@ -126348,7 +126888,7 @@ GameObjectCreator.register('sprite3D', function (config, addToScene)
/***/ }),
-/* 863 */
+/* 865 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126357,10 +126897,10 @@ GameObjectCreator.register('sprite3D', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
-var RenderTexture = __webpack_require__(232);
+var RenderTexture = __webpack_require__(233);
/**
* @typedef {object} RenderTextureConfig
@@ -126407,7 +126947,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene)
/***/ }),
-/* 864 */
+/* 866 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126419,7 +126959,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene)
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
var GetFastValue = __webpack_require__(1);
-var ParticleEmitterManager = __webpack_require__(233);
+var ParticleEmitterManager = __webpack_require__(234);
/**
* Creates a new Particle Emitter Manager Game Object and returns it.
@@ -126464,7 +127004,7 @@ GameObjectCreator.register('particles', function (config, addToScene)
/***/ }),
-/* 865 */
+/* 867 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126497,7 +127037,7 @@ GameObjectCreator.register('group', function (config)
/***/ }),
-/* 866 */
+/* 868 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126506,8 +127046,8 @@ GameObjectCreator.register('group', function (config)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BitmapText = __webpack_require__(248);
-var BuildGameObject = __webpack_require__(23);
+var BitmapText = __webpack_require__(249);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
@@ -126559,7 +127099,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene)
/***/ }),
-/* 867 */
+/* 869 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126569,8 +127109,8 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BuildGameObject = __webpack_require__(23);
-var Container = __webpack_require__(249);
+var BuildGameObject = __webpack_require__(24);
+var Container = __webpack_require__(250);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
@@ -126608,7 +127148,7 @@ GameObjectCreator.register('container', function (config, addToScene)
/***/ }),
-/* 868 */
+/* 870 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126617,8 +127157,8 @@ GameObjectCreator.register('container', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Blitter = __webpack_require__(250);
-var BuildGameObject = __webpack_require__(23);
+var Blitter = __webpack_require__(251);
+var BuildGameObject = __webpack_require__(24);
var GameObjectCreator = __webpack_require__(13);
var GetAdvancedValue = __webpack_require__(10);
@@ -126658,7 +127198,7 @@ GameObjectCreator.register('blitter', function (config, addToScene)
/***/ }),
-/* 869 */
+/* 871 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126667,7 +127207,7 @@ GameObjectCreator.register('blitter', function (config, addToScene)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Zone = __webpack_require__(155);
+var Zone = __webpack_require__(156);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -126700,7 +127240,7 @@ GameObjectFactory.register('zone', function (x, y, width, height)
/***/ }),
-/* 870 */
+/* 872 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126709,7 +127249,7 @@ GameObjectFactory.register('zone', function (x, y, width, height)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var TileSprite = __webpack_require__(231);
+var TileSprite = __webpack_require__(232);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -126744,7 +127284,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra
/***/ }),
-/* 871 */
+/* 873 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126753,7 +127293,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var BitmapText = __webpack_require__(251);
+var BitmapText = __webpack_require__(252);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -126787,7 +127327,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size)
/***/ }),
-/* 872 */
+/* 874 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126796,7 +127336,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Sprite3D = __webpack_require__(148);
+var Sprite3D = __webpack_require__(149);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -126835,7 +127375,7 @@ GameObjectFactory.register('sprite3D', function (x, y, z, key, frame)
/***/ }),
-/* 873 */
+/* 875 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126845,7 +127385,7 @@ GameObjectFactory.register('sprite3D', function (x, y, z, key, frame)
*/
var GameObjectFactory = __webpack_require__(11);
-var RenderTexture = __webpack_require__(232);
+var RenderTexture = __webpack_require__(233);
/**
* Creates a new Render Texture Game Object and adds it to the Scene.
@@ -126869,7 +127409,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height)
/***/ }),
-/* 874 */
+/* 876 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126879,7 +127419,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height)
*/
var GameObjectFactory = __webpack_require__(11);
-var PathFollower = __webpack_require__(403);
+var PathFollower = __webpack_require__(405);
/**
* Creates a new PathFollower Game Object and adds it to the Scene.
@@ -126917,7 +127457,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame)
/***/ }),
-/* 875 */
+/* 877 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -126927,7 +127467,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame)
*/
var GameObjectFactory = __webpack_require__(11);
-var ParticleEmitterManager = __webpack_require__(233);
+var ParticleEmitterManager = __webpack_require__(234);
/**
* Creates a new Particle Emitter Manager Game Object and adds it to the Scene.
@@ -126963,7 +127503,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters)
/***/ }),
-/* 876 */
+/* 878 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127001,7 +127541,7 @@ GameObjectFactory.register('group', function (children, config)
/***/ }),
-/* 877 */
+/* 879 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127010,7 +127550,7 @@ GameObjectFactory.register('group', function (children, config)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var DynamicBitmapText = __webpack_require__(248);
+var DynamicBitmapText = __webpack_require__(249);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -127044,7 +127584,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size
/***/ }),
-/* 878 */
+/* 880 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127054,7 +127594,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Container = __webpack_require__(249);
+var Container = __webpack_require__(250);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -127078,7 +127618,7 @@ GameObjectFactory.register('container', function (x, y, children)
/***/ }),
-/* 879 */
+/* 881 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127087,7 +127627,7 @@ GameObjectFactory.register('container', function (x, y, children)
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Blitter = __webpack_require__(250);
+var Blitter = __webpack_require__(251);
var GameObjectFactory = __webpack_require__(11);
/**
@@ -127120,7 +127660,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame)
/***/ }),
-/* 880 */
+/* 882 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127245,7 +127785,7 @@ module.exports = TileSpriteCanvasRenderer;
/***/ }),
-/* 881 */
+/* 883 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127287,7 +127827,7 @@ module.exports = TileSpriteWebGLRenderer;
/***/ }),
-/* 882 */
+/* 884 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127301,12 +127841,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(881);
+ renderWebGL = __webpack_require__(883);
}
if (true)
{
- renderCanvas = __webpack_require__(880);
+ renderCanvas = __webpack_require__(882);
}
module.exports = {
@@ -127318,7 +127858,7 @@ module.exports = {
/***/ }),
-/* 883 */
+/* 885 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127431,7 +127971,7 @@ module.exports = ParseRetroFont;
/***/ }),
-/* 884 */
+/* 886 */
/***/ (function(module, exports) {
/**
@@ -127547,7 +128087,7 @@ module.exports = RETRO_FONT_CONST;
/***/ }),
-/* 885 */
+/* 887 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127556,7 +128096,7 @@ module.exports = RETRO_FONT_CONST;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RETRO_FONT_CONST = __webpack_require__(884);
+var RETRO_FONT_CONST = __webpack_require__(886);
var Extend = __webpack_require__(18);
/**
@@ -127578,7 +128118,7 @@ var Extend = __webpack_require__(18);
* @since 3.6.0
*/
-var RetroFont = { Parse: __webpack_require__(883) };
+var RetroFont = { Parse: __webpack_require__(885) };
// Merge in the consts
RetroFont = Extend(false, RetroFont, RETRO_FONT_CONST);
@@ -127587,7 +128127,7 @@ module.exports = RetroFont;
/***/ }),
-/* 886 */
+/* 888 */
/***/ (function(module, exports) {
var RenderTextureWebGL = {
@@ -127634,7 +128174,7 @@ module.exports = RenderTextureWebGL;
/***/ }),
-/* 887 */
+/* 889 */
/***/ (function(module, exports) {
var RenderTextureCanvas = {
@@ -127676,7 +128216,7 @@ module.exports = RenderTextureCanvas;
/***/ }),
-/* 888 */
+/* 890 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127772,7 +128312,7 @@ module.exports = RenderTextureCanvasRenderer;
/***/ }),
-/* 889 */
+/* 891 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127829,7 +128369,7 @@ module.exports = RenderTextureWebGLRenderer;
/***/ }),
-/* 890 */
+/* 892 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127843,12 +128383,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(889);
+ renderWebGL = __webpack_require__(891);
}
if (true)
{
- renderCanvas = __webpack_require__(888);
+ renderCanvas = __webpack_require__(890);
}
module.exports = {
@@ -127860,7 +128400,7 @@ module.exports = {
/***/ }),
-/* 891 */
+/* 893 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -127875,15 +128415,15 @@ module.exports = {
module.exports = {
- DeathZone: __webpack_require__(440),
- EdgeZone: __webpack_require__(439),
- RandomZone: __webpack_require__(404)
+ DeathZone: __webpack_require__(442),
+ EdgeZone: __webpack_require__(441),
+ RandomZone: __webpack_require__(406)
};
/***/ }),
-/* 892 */
+/* 894 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128007,7 +128547,7 @@ module.exports = ParticleManagerCanvasRenderer;
/***/ }),
-/* 893 */
+/* 895 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128049,7 +128589,7 @@ module.exports = ParticleManagerWebGLRenderer;
/***/ }),
-/* 894 */
+/* 896 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128063,12 +128603,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(893);
+ renderWebGL = __webpack_require__(895);
}
if (true)
{
- renderCanvas = __webpack_require__(892);
+ renderCanvas = __webpack_require__(894);
}
module.exports = {
@@ -128080,7 +128620,7 @@ module.exports = {
/***/ }),
-/* 895 */
+/* 897 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128090,7 +128630,7 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var FloatBetween = __webpack_require__(246);
+var FloatBetween = __webpack_require__(247);
var GetEaseFunction = __webpack_require__(62);
var GetFastValue = __webpack_require__(1);
var Wrap = __webpack_require__(39);
@@ -128729,7 +129269,7 @@ module.exports = EmitterOp;
/***/ }),
-/* 896 */
+/* 898 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128744,17 +129284,17 @@ module.exports = EmitterOp;
module.exports = {
- GravityWell: __webpack_require__(443),
- Particle: __webpack_require__(442),
- ParticleEmitter: __webpack_require__(441),
- ParticleEmitterManager: __webpack_require__(233),
- Zones: __webpack_require__(891)
+ GravityWell: __webpack_require__(445),
+ Particle: __webpack_require__(444),
+ ParticleEmitter: __webpack_require__(443),
+ ParticleEmitterManager: __webpack_require__(234),
+ Zones: __webpack_require__(893)
};
/***/ }),
-/* 897 */
+/* 899 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -128966,7 +129506,7 @@ module.exports = DynamicBitmapTextCanvasRenderer;
/***/ }),
-/* 898 */
+/* 900 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129009,7 +129549,7 @@ module.exports = DynamicBitmapTextWebGLRenderer;
/***/ }),
-/* 899 */
+/* 901 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129023,12 +129563,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(898);
+ renderWebGL = __webpack_require__(900);
}
if (true)
{
- renderCanvas = __webpack_require__(897);
+ renderCanvas = __webpack_require__(899);
}
module.exports = {
@@ -129040,7 +129580,7 @@ module.exports = {
/***/ }),
-/* 900 */
+/* 902 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129113,7 +129653,7 @@ module.exports = ContainerCanvasRenderer;
/***/ }),
-/* 901 */
+/* 903 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129186,7 +129726,7 @@ module.exports = ContainerWebGLRenderer;
/***/ }),
-/* 902 */
+/* 904 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129201,12 +129741,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(901);
+ renderWebGL = __webpack_require__(903);
}
if (true)
{
- renderCanvas = __webpack_require__(900);
+ renderCanvas = __webpack_require__(902);
}
module.exports = {
@@ -129218,7 +129758,7 @@ module.exports = {
/***/ }),
-/* 903 */
+/* 905 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129263,7 +129803,7 @@ var Bob = new Class({
function Bob (blitter, x, y, frame, visible)
{
/**
- * [description]
+ * The Blitter object that this Bob belongs to.
*
* @name Phaser.GameObjects.Blitter.Bob#parent
* @type {Phaser.GameObjects.Blitter}
@@ -129272,7 +129812,7 @@ var Bob = new Class({
this.parent = blitter;
/**
- * [description]
+ * The x position of this Bob, relative to the x position of the Blitter.
*
* @name Phaser.GameObjects.Blitter.Bob#x
* @type {number}
@@ -129281,7 +129821,7 @@ var Bob = new Class({
this.x = x;
/**
- * [description]
+ * The y position of this Bob, relative to the y position of the Blitter.
*
* @name Phaser.GameObjects.Blitter.Bob#y
* @type {number}
@@ -129290,16 +129830,18 @@ var Bob = new Class({
this.y = y;
/**
- * [description]
+ * The frame that the Bob uses to render with.
+ * To change the frame use the `Bob.setFrame` method.
*
* @name Phaser.GameObjects.Blitter.Bob#frame
- * @type {(string|integer)}
+ * @type {Phaser.Textures.Frame}
+ * @protected
* @since 3.0.0
*/
this.frame = frame;
/**
- * [description]
+ * A blank object which can be used to store data related to this Bob in.
*
* @name Phaser.GameObjects.Blitter.Bob#data
* @type {object}
@@ -129309,7 +129851,7 @@ var Bob = new Class({
this.data = {};
/**
- * [description]
+ * The visible state of this Bob.
*
* @name Phaser.GameObjects.Blitter.Bob#_visible
* @type {boolean}
@@ -129319,7 +129861,7 @@ var Bob = new Class({
this._visible = visible;
/**
- * [description]
+ * The alpha value of this Bob.
*
* @name Phaser.GameObjects.Blitter.Bob#_alpha
* @type {number}
@@ -129330,7 +129872,9 @@ var Bob = new Class({
this._alpha = 1;
/**
- * [description]
+ * The horizontally flipped state of the Bob.
+ * A Bob that is flipped horizontally will render inversed on the horizontal axis.
+ * Flipping always takes place from the middle of the texture.
*
* @name Phaser.GameObjects.Blitter.Bob#flipX
* @type {boolean}
@@ -129339,7 +129883,9 @@ var Bob = new Class({
this.flipX = false;
/**
- * [description]
+ * The vertically flipped state of the Bob.
+ * A Bob that is flipped vertically will render inversed on the vertical axis (i.e. upside down)
+ * Flipping always takes place from the middle of the texture.
*
* @name Phaser.GameObjects.Blitter.Bob#flipY
* @type {boolean}
@@ -129349,12 +129895,14 @@ var Bob = new Class({
},
/**
- * [description]
+ * Changes the Texture Frame being used by this Bob.
+ * The frame must be part of the Texture the parent Blitter is using.
+ * If no value is given it will use the default frame of the Blitter parent.
*
* @method Phaser.GameObjects.Blitter.Bob#setFrame
* @since 3.0.0
*
- * @param {Phaser.Textures.Frame} [frame] - [description]
+ * @param {(string|integer|Phaser.Textures.Frame)} [frame] - The frame to be used during rendering.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129373,7 +129921,7 @@ var Bob = new Class({
},
/**
- * [description]
+ * Resets the horizontal and vertical flipped state of this Bob back to their default un-flipped state.
*
* @method Phaser.GameObjects.Blitter.Bob#resetFlip
* @since 3.0.0
@@ -129389,14 +129937,18 @@ var Bob = new Class({
},
/**
- * [description]
+ * Resets this Bob.
+ *
+ * Changes the position to the values given, and optionally changes the frame.
+ *
+ * Also resets the flipX and flipY values, sets alpha back to 1 and visible to true.
*
* @method Phaser.GameObjects.Blitter.Bob#reset
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {Phaser.Textures.Frame} frame - [description]
+ * @param {number} x - The x position of the Bob. Bob coordinate are relative to the position of the Blitter object.
+ * @param {number} y - The y position of the Bob. Bob coordinate are relative to the position of the Blitter object.
+ * @param {(string|integer|Phaser.Textures.Frame)} [frame] - The Frame the Bob will use. It _must_ be part of the Texture the parent Blitter object is using.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129404,18 +129956,30 @@ var Bob = new Class({
{
this.x = x;
this.y = y;
- this.frame = frame;
+
+ this.flipX = false;
+ this.flipY = false;
+
+ this._alpha = 1;
+ this._visible = true;
+
+ this.parent.dirty = true;
+
+ if (frame)
+ {
+ this.setFrame(frame);
+ }
return this;
},
/**
- * [description]
+ * Sets the horizontal flipped state of this Bob.
*
* @method Phaser.GameObjects.Blitter.Bob#setFlipX
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129427,12 +129991,12 @@ var Bob = new Class({
},
/**
- * [description]
+ * Sets the vertical flipped state of this Bob.
*
* @method Phaser.GameObjects.Blitter.Bob#setFlipY
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129444,13 +130008,13 @@ var Bob = new Class({
},
/**
- * [description]
+ * Sets the horizontal and vertical flipped state of this Bob.
*
* @method Phaser.GameObjects.Blitter.Bob#setFlip
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
+ * @param {boolean} x - The horizontal flipped state. `false` for no flip, or `true` to be flipped.
+ * @param {boolean} y - The horizontal flipped state. `false` for no flip, or `true` to be flipped.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129463,12 +130027,14 @@ var Bob = new Class({
},
/**
- * [description]
+ * Sets the visibility of this Bob.
+ *
+ * An invisible Bob will skip rendering.
*
* @method Phaser.GameObjects.Blitter.Bob#setVisible
* @since 3.0.0
*
- * @param {boolean} value - [description]
+ * @param {boolean} value - The visible state of the Game Object.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129480,12 +130046,15 @@ var Bob = new Class({
},
/**
- * [description]
+ * Set the Alpha level of this Bob. The alpha controls the opacity of the Game Object as it renders.
+ * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.
+ *
+ * A Bob with alpha 0 will skip rendering.
*
* @method Phaser.GameObjects.Blitter.Bob#setAlpha
* @since 3.0.0
*
- * @param {number} value - [description]
+ * @param {float} value - The alpha value used for this Bob. Between 0 and 1.
*
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
*/
@@ -129497,7 +130066,8 @@ var Bob = new Class({
},
/**
- * [description]
+ * Destroys this Bob instance.
+ * Removes itself from the Blitter and clears the parent, frame and data properties.
*
* @method Phaser.GameObjects.Blitter.Bob#destroy
* @since 3.0.0
@@ -129514,7 +130084,9 @@ var Bob = new Class({
},
/**
- * [description]
+ * The visible state of the Bob.
+ *
+ * An invisible Bob will skip rendering.
*
* @name Phaser.GameObjects.Blitter.Bob#visible
* @type {boolean}
@@ -129536,7 +130108,9 @@ var Bob = new Class({
},
/**
- * [description]
+ * The alpha value of the Bob, between 0 and 1.
+ *
+ * A Bob with alpha 0 will skip rendering.
*
* @name Phaser.GameObjects.Blitter.Bob#alpha
* @type {number}
@@ -129563,7 +130137,7 @@ module.exports = Bob;
/***/ }),
-/* 904 */
+/* 906 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129657,7 +130231,7 @@ module.exports = BlitterCanvasRenderer;
/***/ }),
-/* 905 */
+/* 907 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129697,7 +130271,7 @@ module.exports = BlitterWebGLRenderer;
/***/ }),
-/* 906 */
+/* 908 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129711,12 +130285,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(905);
+ renderWebGL = __webpack_require__(907);
}
if (true)
{
- renderCanvas = __webpack_require__(904);
+ renderCanvas = __webpack_require__(906);
}
module.exports = {
@@ -129728,7 +130302,7 @@ module.exports = {
/***/ }),
-/* 907 */
+/* 909 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129916,7 +130490,7 @@ module.exports = BitmapTextCanvasRenderer;
/***/ }),
-/* 908 */
+/* 910 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129959,7 +130533,7 @@ module.exports = BitmapTextWebGLRenderer;
/***/ }),
-/* 909 */
+/* 911 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129973,12 +130547,12 @@ var renderCanvas = __webpack_require__(3);
if (true)
{
- renderWebGL = __webpack_require__(908);
+ renderWebGL = __webpack_require__(910);
}
if (true)
{
- renderCanvas = __webpack_require__(907);
+ renderCanvas = __webpack_require__(909);
}
module.exports = {
@@ -129990,7 +130564,7 @@ module.exports = {
/***/ }),
-/* 910 */
+/* 912 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -129999,7 +130573,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ParseXMLBitmapFont = __webpack_require__(459);
+var ParseXMLBitmapFont = __webpack_require__(461);
/**
* [description]
@@ -130031,7 +130605,7 @@ module.exports = ParseFromAtlas;
/***/ }),
-/* 911 */
+/* 913 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130046,68 +130620,68 @@ module.exports = ParseFromAtlas;
var GameObjects = {
- DisplayList: __webpack_require__(489),
+ DisplayList: __webpack_require__(491),
GameObjectCreator: __webpack_require__(13),
GameObjectFactory: __webpack_require__(11),
- UpdateList: __webpack_require__(461),
+ UpdateList: __webpack_require__(463),
Components: __webpack_require__(15),
- BuildGameObject: __webpack_require__(23),
- BuildGameObjectAnimation: __webpack_require__(123),
+ BuildGameObject: __webpack_require__(24),
+ BuildGameObjectAnimation: __webpack_require__(124),
GameObject: __webpack_require__(2),
- BitmapText: __webpack_require__(251),
- Blitter: __webpack_require__(250),
- Container: __webpack_require__(249),
- DynamicBitmapText: __webpack_require__(248),
+ BitmapText: __webpack_require__(252),
+ Blitter: __webpack_require__(251),
+ Container: __webpack_require__(250),
+ DynamicBitmapText: __webpack_require__(249),
Graphics: __webpack_require__(112),
Group: __webpack_require__(109),
Image: __webpack_require__(69),
- Particles: __webpack_require__(896),
- PathFollower: __webpack_require__(403),
- RenderTexture: __webpack_require__(232),
- RetroFont: __webpack_require__(885),
- Sprite3D: __webpack_require__(148),
+ Particles: __webpack_require__(898),
+ PathFollower: __webpack_require__(405),
+ RenderTexture: __webpack_require__(233),
+ RetroFont: __webpack_require__(887),
+ Sprite3D: __webpack_require__(149),
Sprite: __webpack_require__(34),
Text: __webpack_require__(107),
- TileSprite: __webpack_require__(231),
- Zone: __webpack_require__(155),
+ TileSprite: __webpack_require__(232),
+ Zone: __webpack_require__(156),
// Game Object Factories
Factories: {
- Blitter: __webpack_require__(879),
- Container: __webpack_require__(878),
- DynamicBitmapText: __webpack_require__(877),
- Graphics: __webpack_require__(395),
- Group: __webpack_require__(876),
- Image: __webpack_require__(394),
- Particles: __webpack_require__(875),
- PathFollower: __webpack_require__(874),
- RenderTexture: __webpack_require__(873),
- Sprite3D: __webpack_require__(872),
- Sprite: __webpack_require__(393),
- StaticBitmapText: __webpack_require__(871),
- Text: __webpack_require__(392),
- TileSprite: __webpack_require__(870),
- Zone: __webpack_require__(869)
+ Blitter: __webpack_require__(881),
+ Container: __webpack_require__(880),
+ DynamicBitmapText: __webpack_require__(879),
+ Graphics: __webpack_require__(397),
+ Group: __webpack_require__(878),
+ Image: __webpack_require__(396),
+ Particles: __webpack_require__(877),
+ PathFollower: __webpack_require__(876),
+ RenderTexture: __webpack_require__(875),
+ Sprite3D: __webpack_require__(874),
+ Sprite: __webpack_require__(395),
+ StaticBitmapText: __webpack_require__(873),
+ Text: __webpack_require__(394),
+ TileSprite: __webpack_require__(872),
+ Zone: __webpack_require__(871)
},
Creators: {
- Blitter: __webpack_require__(868),
- Container: __webpack_require__(867),
- DynamicBitmapText: __webpack_require__(866),
- Graphics: __webpack_require__(391),
- Group: __webpack_require__(865),
- Image: __webpack_require__(390),
- Particles: __webpack_require__(864),
- RenderTexture: __webpack_require__(863),
- Sprite3D: __webpack_require__(862),
- Sprite: __webpack_require__(389),
- StaticBitmapText: __webpack_require__(861),
- Text: __webpack_require__(388),
- TileSprite: __webpack_require__(860),
- Zone: __webpack_require__(859)
+ Blitter: __webpack_require__(870),
+ Container: __webpack_require__(869),
+ DynamicBitmapText: __webpack_require__(868),
+ Graphics: __webpack_require__(393),
+ Group: __webpack_require__(867),
+ Image: __webpack_require__(392),
+ Particles: __webpack_require__(866),
+ RenderTexture: __webpack_require__(865),
+ Sprite3D: __webpack_require__(864),
+ Sprite: __webpack_require__(391),
+ StaticBitmapText: __webpack_require__(863),
+ Text: __webpack_require__(390),
+ TileSprite: __webpack_require__(862),
+ Zone: __webpack_require__(861)
}
};
@@ -130115,26 +130689,26 @@ var GameObjects = {
if (true)
{
// WebGL only Game Objects
- GameObjects.Mesh = __webpack_require__(143);
- GameObjects.Quad = __webpack_require__(230);
+ GameObjects.Mesh = __webpack_require__(144);
+ GameObjects.Quad = __webpack_require__(231);
- GameObjects.Factories.Mesh = __webpack_require__(855);
- GameObjects.Factories.Quad = __webpack_require__(854);
+ GameObjects.Factories.Mesh = __webpack_require__(857);
+ GameObjects.Factories.Quad = __webpack_require__(856);
- GameObjects.Creators.Mesh = __webpack_require__(853);
- GameObjects.Creators.Quad = __webpack_require__(852);
+ GameObjects.Creators.Mesh = __webpack_require__(855);
+ GameObjects.Creators.Quad = __webpack_require__(854);
- GameObjects.Light = __webpack_require__(387);
+ GameObjects.Light = __webpack_require__(389);
- __webpack_require__(386);
- __webpack_require__(851);
+ __webpack_require__(388);
+ __webpack_require__(853);
}
module.exports = GameObjects;
/***/ }),
-/* 912 */
+/* 914 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130149,17 +130723,17 @@ module.exports = GameObjects;
module.exports = {
- AddToDOM: __webpack_require__(126),
- DOMContentLoaded: __webpack_require__(269),
- ParseXML: __webpack_require__(268),
- RemoveFromDOM: __webpack_require__(267),
- RequestAnimationFrame: __webpack_require__(266)
+ AddToDOM: __webpack_require__(127),
+ DOMContentLoaded: __webpack_require__(270),
+ ParseXML: __webpack_require__(269),
+ RemoveFromDOM: __webpack_require__(268),
+ RequestAnimationFrame: __webpack_require__(267)
};
/***/ }),
-/* 913 */
+/* 915 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130168,7 +130742,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var ComponentToHex = __webpack_require__(532);
+var ComponentToHex = __webpack_require__(534);
/**
* Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`.
@@ -130203,7 +130777,7 @@ module.exports = RGBToString;
/***/ }),
-/* 914 */
+/* 916 */
/***/ (function(module, exports) {
/**
@@ -130275,7 +130849,7 @@ module.exports = RGBToHSV;
/***/ }),
-/* 915 */
+/* 917 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130284,7 +130858,7 @@ module.exports = RGBToHSV;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Between = __webpack_require__(270);
+var Between = __webpack_require__(271);
var Color = __webpack_require__(30);
/**
@@ -130311,7 +130885,7 @@ module.exports = RandomRGB;
/***/ }),
-/* 916 */
+/* 918 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130320,7 +130894,7 @@ module.exports = RandomRGB;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Linear = __webpack_require__(271);
+var Linear = __webpack_require__(120);
/**
* Interpolates color values
@@ -130414,7 +130988,7 @@ module.exports = {
/***/ }),
-/* 917 */
+/* 919 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130423,7 +130997,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var HSVToRGB = __webpack_require__(530);
+var HSVToRGB = __webpack_require__(532);
/**
* Get HSV color wheel values in an array which will be 360 elements in size.
@@ -130455,7 +131029,7 @@ module.exports = HSVColorWheel;
/***/ }),
-/* 918 */
+/* 920 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130465,7 +131039,7 @@ module.exports = HSVColorWheel;
*/
var Color = __webpack_require__(30);
-var HueToComponent = __webpack_require__(531);
+var HueToComponent = __webpack_require__(533);
/**
* Converts HSL (hue, saturation and lightness) values to a Phaser Color object.
@@ -130505,7 +131079,7 @@ module.exports = HSLToColor;
/***/ }),
-/* 919 */
+/* 921 */
/***/ (function(module, exports) {
/**
@@ -130545,7 +131119,7 @@ module.exports = ColorToRGBA;
/***/ }),
-/* 920 */
+/* 922 */
/***/ (function(module, exports) {
/**
@@ -130592,7 +131166,7 @@ module.exports = UserSelect;
/***/ }),
-/* 921 */
+/* 923 */
/***/ (function(module, exports) {
/**
@@ -130627,7 +131201,7 @@ module.exports = TouchAction;
/***/ }),
-/* 922 */
+/* 924 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130644,15 +131218,15 @@ module.exports = {
Interpolation: __webpack_require__(272),
Pool: __webpack_require__(22),
- Smoothing: __webpack_require__(127),
- TouchAction: __webpack_require__(921),
- UserSelect: __webpack_require__(920)
+ Smoothing: __webpack_require__(128),
+ TouchAction: __webpack_require__(923),
+ UserSelect: __webpack_require__(922)
};
/***/ }),
-/* 923 */
+/* 925 */
/***/ (function(module, exports) {
/**
@@ -130682,7 +131256,7 @@ module.exports = GetOffsetY;
/***/ }),
-/* 924 */
+/* 926 */
/***/ (function(module, exports) {
/**
@@ -130712,7 +131286,7 @@ module.exports = GetOffsetX;
/***/ }),
-/* 925 */
+/* 927 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130732,8 +131306,8 @@ module.exports = {
GetCenterX: __webpack_require__(91),
GetCenterY: __webpack_require__(88),
GetLeft: __webpack_require__(46),
- GetOffsetX: __webpack_require__(924),
- GetOffsetY: __webpack_require__(923),
+ GetOffsetX: __webpack_require__(926),
+ GetOffsetY: __webpack_require__(925),
GetRight: __webpack_require__(44),
GetTop: __webpack_require__(42),
SetBottom: __webpack_require__(47),
@@ -130747,7 +131321,7 @@ module.exports = {
/***/ }),
-/* 926 */
+/* 928 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130791,7 +131365,7 @@ module.exports = TopRight;
/***/ }),
-/* 927 */
+/* 929 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130835,7 +131409,7 @@ module.exports = TopLeft;
/***/ }),
-/* 928 */
+/* 930 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130879,7 +131453,7 @@ module.exports = TopCenter;
/***/ }),
-/* 929 */
+/* 931 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130923,7 +131497,7 @@ module.exports = RightTop;
/***/ }),
-/* 930 */
+/* 932 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -130967,7 +131541,7 @@ module.exports = RightCenter;
/***/ }),
-/* 931 */
+/* 933 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131011,7 +131585,7 @@ module.exports = RightBottom;
/***/ }),
-/* 932 */
+/* 934 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131055,7 +131629,7 @@ module.exports = LeftTop;
/***/ }),
-/* 933 */
+/* 935 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131099,7 +131673,7 @@ module.exports = LeftCenter;
/***/ }),
-/* 934 */
+/* 936 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131143,7 +131717,7 @@ module.exports = LeftBottom;
/***/ }),
-/* 935 */
+/* 937 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131187,7 +131761,7 @@ module.exports = BottomRight;
/***/ }),
-/* 936 */
+/* 938 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131231,7 +131805,7 @@ module.exports = BottomLeft;
/***/ }),
-/* 937 */
+/* 939 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131275,7 +131849,7 @@ module.exports = BottomCenter;
/***/ }),
-/* 938 */
+/* 940 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131290,24 +131864,24 @@ module.exports = BottomCenter;
module.exports = {
- BottomCenter: __webpack_require__(937),
- BottomLeft: __webpack_require__(936),
- BottomRight: __webpack_require__(935),
- LeftBottom: __webpack_require__(934),
- LeftCenter: __webpack_require__(933),
- LeftTop: __webpack_require__(932),
- RightBottom: __webpack_require__(931),
- RightCenter: __webpack_require__(930),
- RightTop: __webpack_require__(929),
- TopCenter: __webpack_require__(928),
- TopLeft: __webpack_require__(927),
- TopRight: __webpack_require__(926)
+ BottomCenter: __webpack_require__(939),
+ BottomLeft: __webpack_require__(938),
+ BottomRight: __webpack_require__(937),
+ LeftBottom: __webpack_require__(936),
+ LeftCenter: __webpack_require__(935),
+ LeftTop: __webpack_require__(934),
+ RightBottom: __webpack_require__(933),
+ RightCenter: __webpack_require__(932),
+ RightTop: __webpack_require__(931),
+ TopCenter: __webpack_require__(930),
+ TopLeft: __webpack_require__(929),
+ TopRight: __webpack_require__(928)
};
/***/ }),
-/* 939 */
+/* 941 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131337,7 +131911,7 @@ module.exports = {
/***/ }),
-/* 940 */
+/* 942 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131346,7 +131920,7 @@ module.exports = {
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var CONST = __webpack_require__(297);
+var CONST = __webpack_require__(299);
var Extend = __webpack_require__(18);
/**
@@ -131355,8 +131929,8 @@ var Extend = __webpack_require__(18);
var Align = {
- In: __webpack_require__(939),
- To: __webpack_require__(938)
+ In: __webpack_require__(941),
+ To: __webpack_require__(940)
};
@@ -131367,7 +131941,7 @@ module.exports = Align;
/***/ }),
-/* 941 */
+/* 943 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131382,17 +131956,17 @@ module.exports = Align;
module.exports = {
- Align: __webpack_require__(940),
- Bounds: __webpack_require__(925),
- Canvas: __webpack_require__(922),
- Color: __webpack_require__(533),
- Masks: __webpack_require__(529)
+ Align: __webpack_require__(942),
+ Bounds: __webpack_require__(927),
+ Canvas: __webpack_require__(924),
+ Color: __webpack_require__(535),
+ Masks: __webpack_require__(531)
};
/***/ }),
-/* 942 */
+/* 944 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131532,7 +132106,7 @@ module.exports = MoveTo;
/***/ }),
-/* 943 */
+/* 945 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -131544,14 +132118,14 @@ module.exports = MoveTo;
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = __webpack_require__(0);
-var CubicBezierCurve = __webpack_require__(542);
-var EllipseCurve = __webpack_require__(540);
+var CubicBezierCurve = __webpack_require__(544);
+var EllipseCurve = __webpack_require__(542);
var GameObjectFactory = __webpack_require__(11);
-var LineCurve = __webpack_require__(539);
-var MovePathTo = __webpack_require__(942);
-var QuadraticBezierCurve = __webpack_require__(538);
+var LineCurve = __webpack_require__(541);
+var MovePathTo = __webpack_require__(944);
+var QuadraticBezierCurve = __webpack_require__(540);
var Rectangle = __webpack_require__(14);
-var SplineCurve = __webpack_require__(536);
+var SplineCurve = __webpack_require__(538);
var Vector2 = __webpack_require__(7);
/**
@@ -131723,20 +132297,18 @@ var Path = new Class({
return this;
},
- // Creates a cubic bezier curve starting at the previous end point and ending at p3, using p1 and p2 as control points
-
/**
- * [description]
+ * Creates a cubic bezier curve starting at the previous end point and ending at p3, using p1 and p2 as control points.
*
* @method Phaser.Curves.Path#cubicBezierTo
* @since 3.0.0
*
- * @param {number} x - [description]
- * @param {number} y - [description]
- * @param {Phaser.Math.Vector2} control1X - [description]
- * @param {Phaser.Math.Vector2} control1Y - [description]
- * @param {Phaser.Math.Vector2} control2X - [description]
- * @param {Phaser.Math.Vector2} control2Y - [description]
+ * @param {(number|Phaser.Math.Vector2)} x - The x coordinate of the end point. Or, if a Vec2, the p1 value.
+ * @param {(number|Phaser.Math.Vector2)} y - The y coordinate of the end point. Or, if a Vec2, the p2 value.
+ * @param {(number|Phaser.Math.Vector2)} control1X - The x coordinate of the first control point. Or, if a Vec2, the p3 value.
+ * @param {number} [control1Y] - The y coordinate of the first control point. Not used if vec2s are provided as the first 3 arguments.
+ * @param {number} [control2X] - The x coordinate of the second control point. Not used if vec2s are provided as the first 3 arguments.
+ * @param {number} [control2Y] - The y coordinate of the second control point. Not used if vec2s are provided as the first 3 arguments.
*
* @return {Phaser.Curves.Path} [description]
*/
@@ -132360,7 +132932,7 @@ module.exports = Path;
/***/ }),
-/* 944 */
+/* 946 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132381,19 +132953,19 @@ module.exports = Path;
*/
module.exports = {
- Path: __webpack_require__(943),
+ Path: __webpack_require__(945),
- CubicBezier: __webpack_require__(542),
+ CubicBezier: __webpack_require__(544),
Curve: __webpack_require__(85),
- Ellipse: __webpack_require__(540),
- Line: __webpack_require__(539),
- QuadraticBezier: __webpack_require__(538),
- Spline: __webpack_require__(536)
+ Ellipse: __webpack_require__(542),
+ Line: __webpack_require__(541),
+ QuadraticBezier: __webpack_require__(540),
+ Spline: __webpack_require__(538)
};
/***/ }),
-/* 945 */
+/* 947 */
/***/ (function(module, exports) {
/**
@@ -132431,7 +133003,7 @@ module.exports = {
/***/ }),
-/* 946 */
+/* 948 */
/***/ (function(module, exports) {
/**
@@ -132469,7 +133041,7 @@ module.exports = {
/***/ }),
-/* 947 */
+/* 949 */
/***/ (function(module, exports) {
/**
@@ -132507,7 +133079,7 @@ module.exports = {
/***/ }),
-/* 948 */
+/* 950 */
/***/ (function(module, exports) {
/**
@@ -132545,7 +133117,7 @@ module.exports = {
/***/ }),
-/* 949 */
+/* 951 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132582,16 +133154,16 @@ module.exports = {
module.exports = {
ARNE16: __webpack_require__(275),
- C64: __webpack_require__(948),
- CGA: __webpack_require__(947),
- JMP: __webpack_require__(946),
- MSX: __webpack_require__(945)
+ C64: __webpack_require__(950),
+ CGA: __webpack_require__(949),
+ JMP: __webpack_require__(948),
+ MSX: __webpack_require__(947)
};
/***/ }),
-/* 950 */
+/* 952 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132607,13 +133179,13 @@ module.exports = {
module.exports = {
GenerateTexture: __webpack_require__(276),
- Palettes: __webpack_require__(949)
+ Palettes: __webpack_require__(951)
};
/***/ }),
-/* 951 */
+/* 953 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132623,8 +133195,8 @@ module.exports = {
*/
var Class = __webpack_require__(0);
-var OrthographicCamera = __webpack_require__(544);
-var PerspectiveCamera = __webpack_require__(543);
+var OrthographicCamera = __webpack_require__(546);
+var PerspectiveCamera = __webpack_require__(545);
var PluginCache = __webpack_require__(12);
/**
@@ -132897,7 +133469,7 @@ module.exports = CameraManager;
/***/ }),
-/* 952 */
+/* 954 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132913,15 +133485,15 @@ module.exports = CameraManager;
module.exports = {
Camera: __webpack_require__(279),
- CameraManager: __webpack_require__(951),
- OrthographicCamera: __webpack_require__(544),
- PerspectiveCamera: __webpack_require__(543)
+ CameraManager: __webpack_require__(953),
+ OrthographicCamera: __webpack_require__(546),
+ PerspectiveCamera: __webpack_require__(545)
};
/***/ }),
-/* 953 */
+/* 955 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132943,9 +133515,9 @@ module.exports = {
* @deprecated
* @name Phaser.Cameras.Controls.Fixed
*/
- Fixed: __webpack_require__(559),
+ Fixed: __webpack_require__(561),
- FixedKeyControl: __webpack_require__(559),
+ FixedKeyControl: __webpack_require__(561),
/**
* This alias will be removed in a future version.
@@ -132954,15 +133526,15 @@ module.exports = {
* @deprecated
* @name Phaser.Cameras.Controls.Smoothed
*/
- Smoothed: __webpack_require__(558),
+ Smoothed: __webpack_require__(560),
- SmoothedKeyControl: __webpack_require__(558)
+ SmoothedKeyControl: __webpack_require__(560)
};
/***/ }),
-/* 954 */
+/* 956 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -132977,15 +133549,15 @@ module.exports = {
module.exports = {
- Controls: __webpack_require__(953),
- Scene2D: __webpack_require__(557),
- Sprite3D: __webpack_require__(952)
+ Controls: __webpack_require__(955),
+ Scene2D: __webpack_require__(559),
+ Sprite3D: __webpack_require__(954)
};
/***/ }),
-/* 955 */
+/* 957 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133034,7 +133606,7 @@ module.exports = WrapInRectangle;
/***/ }),
-/* 956 */
+/* 958 */
/***/ (function(module, exports) {
/**
@@ -133069,7 +133641,7 @@ module.exports = ToggleVisible;
/***/ }),
-/* 957 */
+/* 959 */
/***/ (function(module, exports) {
/**
@@ -133123,7 +133695,7 @@ module.exports = Spread;
/***/ }),
-/* 958 */
+/* 960 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133132,7 +133704,7 @@ module.exports = Spread;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var MathSmoothStep = __webpack_require__(562);
+var MathSmoothStep = __webpack_require__(286);
/**
* [description]
@@ -133179,7 +133751,7 @@ module.exports = SmoothStep;
/***/ }),
-/* 959 */
+/* 961 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133188,7 +133760,7 @@ module.exports = SmoothStep;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var MathSmootherStep = __webpack_require__(563);
+var MathSmootherStep = __webpack_require__(287);
/**
* [description]
@@ -133235,7 +133807,7 @@ module.exports = SmootherStep;
/***/ }),
-/* 960 */
+/* 962 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133268,7 +133840,7 @@ module.exports = Shuffle;
/***/ }),
-/* 961 */
+/* 963 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133396,7 +133968,7 @@ module.exports = ShiftPosition;
/***/ }),
-/* 962 */
+/* 964 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133437,7 +134009,7 @@ module.exports = SetY;
/***/ }),
-/* 963 */
+/* 965 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133484,7 +134056,7 @@ module.exports = SetXY;
/***/ }),
-/* 964 */
+/* 966 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133525,7 +134097,7 @@ module.exports = SetX;
/***/ }),
-/* 965 */
+/* 967 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133563,7 +134135,7 @@ module.exports = SetVisible;
/***/ }),
-/* 966 */
+/* 968 */
/***/ (function(module, exports) {
/**
@@ -133602,7 +134174,7 @@ module.exports = SetTint;
/***/ }),
-/* 967 */
+/* 969 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133643,7 +134215,7 @@ module.exports = SetScaleY;
/***/ }),
-/* 968 */
+/* 970 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133684,7 +134256,7 @@ module.exports = SetScaleX;
/***/ }),
-/* 969 */
+/* 971 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133731,7 +134303,7 @@ module.exports = SetScale;
/***/ }),
-/* 970 */
+/* 972 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133772,7 +134344,7 @@ module.exports = SetRotation;
/***/ }),
-/* 971 */
+/* 973 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133819,7 +134391,7 @@ module.exports = SetOrigin;
/***/ }),
-/* 972 */
+/* 974 */
/***/ (function(module, exports) {
/**
@@ -133856,7 +134428,7 @@ module.exports = SetHitArea;
/***/ }),
-/* 973 */
+/* 975 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133897,7 +134469,7 @@ module.exports = SetDepth;
/***/ }),
-/* 974 */
+/* 976 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133937,7 +134509,7 @@ module.exports = SetBlendMode;
/***/ }),
-/* 975 */
+/* 977 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -133978,7 +134550,7 @@ module.exports = SetAlpha;
/***/ }),
-/* 976 */
+/* 978 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134019,7 +134591,7 @@ module.exports = ScaleY;
/***/ }),
-/* 977 */
+/* 979 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134066,7 +134638,7 @@ module.exports = ScaleXY;
/***/ }),
-/* 978 */
+/* 980 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134107,7 +134679,7 @@ module.exports = ScaleX;
/***/ }),
-/* 979 */
+/* 981 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134116,7 +134688,7 @@ module.exports = ScaleX;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var MathRotateAroundDistance = __webpack_require__(286);
+var MathRotateAroundDistance = __webpack_require__(288);
/**
* [description]
@@ -134156,7 +134728,7 @@ module.exports = RotateAroundDistance;
/***/ }),
-/* 980 */
+/* 982 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134165,7 +134737,7 @@ module.exports = RotateAroundDistance;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var RotateAroundDistance = __webpack_require__(286);
+var RotateAroundDistance = __webpack_require__(288);
var DistanceBetween = __webpack_require__(57);
/**
@@ -134202,7 +134774,7 @@ module.exports = RotateAround;
/***/ }),
-/* 981 */
+/* 983 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134243,7 +134815,7 @@ module.exports = Rotate;
/***/ }),
-/* 982 */
+/* 984 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134252,7 +134824,7 @@ module.exports = Rotate;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Random = __webpack_require__(150);
+var Random = __webpack_require__(151);
/**
* [description]
@@ -134281,7 +134853,7 @@ module.exports = RandomTriangle;
/***/ }),
-/* 983 */
+/* 985 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134290,7 +134862,7 @@ module.exports = RandomTriangle;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Random = __webpack_require__(151);
+var Random = __webpack_require__(152);
/**
* [description]
@@ -134319,7 +134891,7 @@ module.exports = RandomRectangle;
/***/ }),
-/* 984 */
+/* 986 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134328,7 +134900,7 @@ module.exports = RandomRectangle;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Random = __webpack_require__(152);
+var Random = __webpack_require__(153);
/**
* [description]
@@ -134357,7 +134929,7 @@ module.exports = RandomLine;
/***/ }),
-/* 985 */
+/* 987 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134366,7 +134938,7 @@ module.exports = RandomLine;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Random = __webpack_require__(130);
+var Random = __webpack_require__(131);
/**
* [description]
@@ -134395,7 +134967,7 @@ module.exports = RandomEllipse;
/***/ }),
-/* 986 */
+/* 988 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134404,7 +134976,7 @@ module.exports = RandomEllipse;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var Random = __webpack_require__(154);
+var Random = __webpack_require__(155);
/**
* [description]
@@ -134433,7 +135005,7 @@ module.exports = RandomCircle;
/***/ }),
-/* 987 */
+/* 989 */
/***/ (function(module, exports) {
/**
@@ -134470,7 +135042,7 @@ module.exports = PlayAnimation;
/***/ }),
-/* 988 */
+/* 990 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134530,7 +135102,7 @@ module.exports = PlaceOnTriangle;
/***/ }),
-/* 989 */
+/* 991 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134540,8 +135112,8 @@ module.exports = PlaceOnTriangle;
*/
var MarchingAnts = __webpack_require__(565);
-var RotateLeft = __webpack_require__(288);
-var RotateRight = __webpack_require__(287);
+var RotateLeft = __webpack_require__(290);
+var RotateRight = __webpack_require__(289);
// Place the items in the array around the perimeter of the given rectangle.
@@ -134591,7 +135163,7 @@ module.exports = PlaceOnRectangle;
/***/ }),
-/* 990 */
+/* 992 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134600,7 +135172,7 @@ module.exports = PlaceOnRectangle;
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
-var GetPoints = __webpack_require__(153);
+var GetPoints = __webpack_require__(154);
/**
* [description]
@@ -134635,7 +135207,7 @@ module.exports = PlaceOnLine;
/***/ }),
-/* 991 */
+/* 993 */
/***/ (function(module, exports) {
/**
@@ -134685,7 +135257,7 @@ module.exports = PlaceOnEllipse;
/***/ }),
-/* 992 */
+/* 994 */
/***/ (function(module, exports) {
/**
@@ -134732,7 +135304,7 @@ module.exports = PlaceOnCircle;
/***/ }),
-/* 993 */
+/* 995 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134773,7 +135345,7 @@ module.exports = IncY;
/***/ }),
-/* 994 */
+/* 996 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134820,7 +135392,7 @@ module.exports = IncXY;
/***/ }),
-/* 995 */
+/* 997 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134861,7 +135433,7 @@ module.exports = IncX;
/***/ }),
-/* 996 */
+/* 998 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134902,7 +135474,7 @@ module.exports = IncAlpha;
/***/ }),
-/* 997 */
+/* 999 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -134912,10 +135484,10 @@ module.exports = IncAlpha;
*/
var AlignIn = __webpack_require__(593);
-var CONST = __webpack_require__(297);
+var CONST = __webpack_require__(299);
var GetFastValue = __webpack_require__(1);
var NOOP = __webpack_require__(3);
-var Zone = __webpack_require__(155);
+var Zone = __webpack_require__(156);
var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1);
@@ -135026,7 +135598,7 @@ module.exports = GridAlign;
/***/ }),
-/* 998 */
+/* 1000 */
/***/ (function(module, exports) {
/**
@@ -135084,7 +135656,7 @@ module.exports = GetLast;
/***/ }),
-/* 999 */
+/* 1001 */
/***/ (function(module, exports) {
/**
@@ -135142,7 +135714,7 @@ module.exports = GetFirst;
/***/ }),
-/* 1000 */
+/* 1002 */
/***/ (function(module, exports) {
/**
@@ -135187,7 +135759,7 @@ module.exports = Call;
/***/ }),
-/* 1001 */
+/* 1003 */
/***/ (function(module, exports, __webpack_require__) {
/**
@@ -135228,8 +135800,6 @@ module.exports = Angle;
/***/ }),
-/* 1002 */,
-/* 1003 */,
/* 1004 */,
/* 1005 */,
/* 1006 */,
@@ -135247,7 +135817,9 @@ module.exports = Angle;
/* 1018 */,
/* 1019 */,
/* 1020 */,
-/* 1021 */
+/* 1021 */,
+/* 1022 */,
+/* 1023 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/**
@@ -135268,34 +135840,34 @@ var Extend = __webpack_require__(18);
var Phaser = {
Actions: __webpack_require__(594),
- Animation: __webpack_require__(561),
- Cache: __webpack_require__(560),
- Cameras: __webpack_require__(954),
+ Animation: __webpack_require__(563),
+ Cache: __webpack_require__(562),
+ Cameras: __webpack_require__(956),
Class: __webpack_require__(0),
- Create: __webpack_require__(950),
- Curves: __webpack_require__(944),
- Data: __webpack_require__(535),
- Display: __webpack_require__(941),
- DOM: __webpack_require__(912),
- Events: __webpack_require__(527),
- Game: __webpack_require__(525),
- GameObjects: __webpack_require__(911),
- Geom: __webpack_require__(385),
- Input: __webpack_require__(369),
- Loader: __webpack_require__(755),
- Math: __webpack_require__(741),
+ Create: __webpack_require__(952),
+ Curves: __webpack_require__(946),
+ Data: __webpack_require__(537),
+ Display: __webpack_require__(943),
+ DOM: __webpack_require__(914),
+ Events: __webpack_require__(529),
+ Game: __webpack_require__(527),
+ GameObjects: __webpack_require__(913),
+ Geom: __webpack_require__(387),
+ Input: __webpack_require__(371),
+ Loader: __webpack_require__(757),
+ Math: __webpack_require__(743),
Physics: {
Arcade: __webpack_require__(698)
},
- Plugins: __webpack_require__(328),
- Scene: __webpack_require__(184),
- Scenes: __webpack_require__(326),
- Sound: __webpack_require__(324),
- Structs: __webpack_require__(323),
- Textures: __webpack_require__(322),
+ Plugins: __webpack_require__(330),
+ Scene: __webpack_require__(185),
+ Scenes: __webpack_require__(328),
+ Sound: __webpack_require__(326),
+ Structs: __webpack_require__(325),
+ Textures: __webpack_require__(324),
Tilemaps: __webpack_require__(663),
- Time: __webpack_require__(306),
- Tweens: __webpack_require__(304),
+ Time: __webpack_require__(308),
+ Tweens: __webpack_require__(306),
Utils: __webpack_require__(614)
};
@@ -135316,7 +135888,7 @@ global.Phaser = Phaser;
* -- Dick Brandon
*/
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(212)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(213)))
/***/ })
/******/ ]);
diff --git a/dist/phaser-arcade-physics.min.js b/dist/phaser-arcade-physics.min.js
index e7d1918373..b1dd42b6f4 100644
--- a/dist/phaser-arcade-physics.min.js
+++ b/dist/phaser-arcade-physics.min.js
@@ -1 +1 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Phaser",[],e):"object"==typeof exports?exports.Phaser=e():t.Phaser=e()}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1021)}([function(t,e){function i(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,e,s,r){for(var a in e)if(e.hasOwnProperty(a)){var h=i(e,a,s);if(!1!==h){if(n((r||t).prototype,a)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=e[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,t.exports=n},function(t,e){t.exports=function(t){if("object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,s="~";function r(){}function o(t,e,i,n,r){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new function(t,e,i){this.fn=t,this.context=e,this.once=i||!1}(i,n||t,r),a=s?s+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],o]:t._events[a].push(o):(t._events[a]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function h(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(s=!1)),h.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(s?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},h.prototype.listeners=function(t){var e=s?s+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,r=i.length,o=new Array(r);n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){t.exports={Alpha:i(582),Animation:i(300),BlendMode:i(581),ComputedSize:i(580),Depth:i(579),Flip:i(578),GetBounds:i(577),Mask:i(576),MatrixStack:i(575),Origin:i(574),Pipeline:i(289),ScaleMode:i(573),ScrollFactor:i(572),Size:i(571),Texture:i(570),Tint:i(569),ToJSON:i(568),Transform:i(567),TransformMatrix:i(63),Visible:i(566)}},function(t,e,i){var n=i(295),s={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:new n};t.exports=s},function(t,e){t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19}},function(t,e,i){var n=i(8),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},u=2),l===u&&(h=this,--u);u=400&&t.status<=599&&(i=!1),this.resetXHR(),this.loader.nextFile(this,i)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit("fileprogress",this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit("filecomplete",e,i,t),this.loader.emit("filecomplete_"+i+"_"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});l.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},l.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=l},function(t,e,i){var n={VERSION:"3.8.0",BlendModes:i(50),ScaleModes:i(58),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=n},function(t,e,i){var n=i(1);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),u=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var l=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports={getTintFromFloats:function(t,e,i,n){return((255&(255*n|0))<<24|(255&(255*t|0))<<16|(255&(255*e|0))<<8|255&(255*i|0))>>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;ns||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(0),s=i(149),r=i(284),o=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this.red=0,this.green=0,this.blue=0,this.alpha=0,this.update()},setTo:function(t,e,i,n){return void 0===n&&(n=255),this.red=t,this.green=e,this.blue=i,this.alpha=n,this.update()},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this.update()},setFromRGB:function(t){return this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this.update()},update:function(){return this._color=s(this.r,this.g,this.b),this._color32=r(this.r,this.g,this.b,this.a),this._rgba="rgba("+this.r+","+this.g+","+this.b+","+this.a/255+")",this},clone:function(){return new o(this.r,this.g,this.b,this.a)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update()}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update()}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update()}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update()}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update()}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update()}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}}});t.exports=o},function(t,e){t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},function(t,e){t.exports=function(t,e,i){return t.radius>0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e,i){var n=i(0),s=i(15),r=i(2),o=i(547),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScaleMode,s.ScrollFactor,s.Size,s.Texture,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline("TextureTintPipeline")},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)}});t.exports=a},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.loader=t,this.type=e,this.key=i,this.files=n,this.complete=!1,this.pending=n.length,this.failed=0,this.config={};for(var s=0;s=t.length)){for(var i=t.length-1,n=t[e],s=e;s=0&&m>=0&&v+m<1}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e,i){var n=i(438);t.exports=function(t,e){if("string"==typeof t&&n.hasOwnProperty(t)){if(e){var i=e.slice(0);return i.unshift(0),function(e){return i[0]=e,n[t].apply(this,i)}}return n[t]}return"function"==typeof t?t:(Array.isArray(t)&&t.length,n.Power0)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===s&&(s=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,e,i,n,s,r,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0}},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.c*this.c)}},scaleY:{get:function(){return Math.sqrt(this.b*this.b+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t){var e=this.matrix,i=t.matrix,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],u=i[0],l=i[1],c=i[2],d=i[3],f=i[4],p=i[5];return e[0]=u*n+l*r,e[1]=u*s+l*o,e[2]=c*n+d*r,e[3]=c*s+d*o,e[4]=f*n+p*r+a,e[5]=f*s+p*o+h,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],u=o[2],l=o[3],c=o[4],d=o[5];return o[0]=t*a+e*u,o[1]=t*h+e*l,o[2]=i*a+n*u,o[3]=i*h+n*l,o[4]=s*a+r*u+c,o[5]=s*h+r*l+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],u=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+u,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*i,a=n*n,h=s*s,u=r*r,l=Math.sqrt(o+h),c=Math.sqrt(a+u);return t.translateX=e[4],t.translateY=e[5],t.scaleX=l,t.scaleY=c,t.rotation=Math.acos(i/l)*(Math.atan(-s/i)<0?-1:1),t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=n},function(t,e,i){var n=i(24);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e,i){var n=i(0),s=i(15),r=i(374),o=new n({Mixins:[s.Alpha,s.Flip,s.Visible],initialize:function(t,e,i,n,s,r,o,a){this.layer=t,this.index=e,this.x=i,this.y=n,this.width=s,this.height=r,this.baseWidth=void 0!==o?o:s,this.baseHeight=void 0!==a?a:r,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=null,this.collisionCallbackContext=this,this.tint=16777215,this.physics={}},containsPoint:function(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return this.getLeft(t)+this.width/2},getCenterY:function(t){return this.getTop(t)+this.height/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){return this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight-(this.height-this.baseHeight),this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.tilemapLayer;return t?t.tileset:null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e){t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(0),s=i(59),r=i(225),o=i(224),a=i(95),h=i(150),u=new n({initialize:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.x3=s,this.y3=r},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.x3=s,this.y3=r,this},getLineA:function(t){return void 0===t&&(t=new a),t.setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return void 0===t&&(t=new a),t.setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return void 0===t&&(t=new a),t.setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(15),r=i(2),o=i(446),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScaleMode,s.ScrollFactor,s.Size,s.Texture,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,s){r.call(this,t,"Image"),this.setTexture(n,s),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline("TextureTintPipeline")}});t.exports=a},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return this.entries.length=t}}});t.exports=n},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e,i){var n=i(99),s=i(10),r=i(61),o=i(62),a=i(73),h=i(160),u=i(101),l=i(4),c=i(100),d=i(98),f=i(97);t.exports=function(t,e,i){void 0===i&&(i=n);for(var p=i.targets?i.targets:u(e),g=h(e),v=a(e,"delay",i.delay),m=a(e,"duration",i.duration),y=l(e,"easeParams",i.easeParams),x=o(l(e,"ease",i.ease),y),w=a(e,"hold",i.hold),b=a(e,"repeat",i.repeat),T=a(e,"repeatDelay",i.repeatDelay),S=r(e,"yoyo",i.yoyo),A=r(e,"flipX",i.flipX),C=r(e,"flipY",i.flipY),M=[],E=0;E=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit("pauseall",this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit("resumeall",this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit("stopall",this)},unlock:o,onBlur:o,onFocus:o,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit("unlocked",this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n.pendingRemove||t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit("rate",this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit("detune",this,t)}}});t.exports=a},function(t,e,i){var n,s=i(56),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.parent=t,this.events=e,e||(this.events=t.events?t.events:t),this.list={},this.blockSet=!1,this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once("destroy",this.destroy,this)},get:function(t){return this.list[t]},getAll:function(){var t={};for(var e in this.list)this.list.hasOwnProperty(e)&&(t[e]=this.list[e]);return t},query:function(t){var e={};for(var i in this.list)this.list.hasOwnProperty(i)&&i.match(t)&&(e[i]=this.list[i]);return e},set:function(t,e){if(this._frozen)return this;if(this.events.listenerCount("changedata")>0){this.blockSet=!1;var i=this;if(this.events.emit("changedata",this.parent,t,e,function(e){i.blockSet=!0,i.list[t]=e,i.events.emit("setdata",i.parent,t,e)}),this.blockSet)return this}return this.list[t]=e,this.events.emit("setdata",this.parent,t,e),this},each:function(t,e){for(var i=[this.parent,null,void 0],n=1;nu&&(r=u),o>u&&(o=u),a=s,h=r;;)if(a=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){var n=i(0),s=i(274),r=i(14),o=i(7),a=new n({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(t,e){return void 0===e&&(e=32),t.strokePoints(this.getPoints(e))},getBounds:function(t,e){t||(t=new r),void 0===e&&(e=16);var i=this.getLength();e>i&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t){void 0===t&&(t=this.defaultDivisions);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=this.defaultDivisions);for(var e=[],i=0;i<=t;i++){var n=this.getUtoTmapping(i/t,null,t);e.push(this.getPoint(n))}return e},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,u=o-1;h<=u;)if((a=s[r=Math.floor(h+(u-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){u=r;break}u=r-1}if(s[r=u]===n)return r/(o-1);var l=s[r];return(r+(n-l)/(s[r+1]-l))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},clone:function(){return new n(this.x,this.y,this.z)},crossVectors:function(t,e){var i=t.x,n=t.y,s=t.z,r=e.x,o=e.y,a=e.z;return this.x=n*a-s*o,this.y=s*r-i*a,this.z=i*o-n*r,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0;return Math.sqrt(e*e+i*i+n*n)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0;return e*e+i*i+n*n},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,n=t*t+e*e+i*i;return n>0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,u=a*i+o*e-s*n,l=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+u*-o-l*-r,this.y=u*a+c*-r+l*-s-h*-o,this.z=l*a+c*-o+h*-r-u*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],u=s[4],l=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],w=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*u+n*f+m)*w,this.y=(e*o+i*l+n*p+y)*w,this.z=(e*a+i*c+n*g+x)*w,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});t.exports=n},function(t,e,i){var n=i(0),s=i(32),r=i(296),o=i(294),a=i(154),h=new n({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=h},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e,i){var n=i(145),s=i(0),r=i(3),o=i(82),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t){return t&&(this._sortKey=t,o.inplace(this.list,this.sortHandler)),this},sortHandler:function(t,e){return t[this._sortKey]-e[this._sortKey]},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirstElement(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(33);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e){t.exports=function(t){for(var e=t.length-1;e>0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e,i){var n=i(0),s=i(291),r=i(153),o=i(152),a=i(7),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return o(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new a),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new a),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=h},function(t,e){t.exports=function(t){return 2*(t.width+t.height)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,u,l,c,d){return{target:t,key:e,getEndValue:i,getStartValue:n,ease:s,duration:0,totalDuration:0,delay:0,yoyo:a,hold:0,repeat:0,repeatDelay:0,flipX:c,flipY:d,progress:0,elapsed:0,repeatCounter:0,start:0,current:0,end:0,t1:0,t2:0,gen:{delay:r,duration:o,hold:h,repeat:u,repeatDelay:l},state:0}}},function(t,e,i){var n=i(0),s=i(13),r=i(11),o=i(60),a=new n({initialize:function(t,e,i){this.parent=t,this.parentIsTimeline=t.hasOwnProperty("isTimeline"),this.data=e,this.totalData=e.length,this.targets=i,this.totalTargets=i.length,this.useFrames=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.offset=0,this.calculatedOffset=0,this.state=o.PENDING_ADD,this._pausedState=o.PENDING_ADD,this.paused=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0,this.callbacks={onComplete:null,onLoop:null,onRepeat:null,onStart:null,onUpdate:null,onYoyo:null},this.callbackScope},getValue:function(){return this.data[0].current},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return this.state===o.ACTIVE},isPaused:function(){return this.state===o.PAUSED},hasTarget:function(t){return-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){for(var n=0;n0&&(n.totalDuration+=n.t2*n.repeat),n.totalDuration>t&&(t=n.totalDuration)}this.duration=t,this.loopCounter=-1===this.loop?999999999999:this.loop,this.loopCounter>0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){for(var t=this.data,e=this.totalTargets,i=0;i0){this.elapsed=0,this.progress=0,this.loopCounter--;var t=this.callbacks.onLoop;t&&(t.params[1]=this.targets,t.func.apply(t.scope,t.params)),this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=o.LOOP_DELAY):this.state=o.ACTIVE}else if(this.completeDelay>0)this.countdown=this.completeDelay,this.state=o.COMPLETE_DELAY;else{var e=this.callbacks.onComplete;e&&(e.params[1]=this.targets,e.func.apply(e.scope,e.params)),this.state=o.PENDING_REMOVE}},pause:function(){if(this.state!==o.PAUSED)return this.paused=!0,this._pausedState=this.state,this.state=o.PAUSED,this},play:function(t){if(this.state!==o.ACTIVE){this.state!==o.PENDING_REMOVE&&this.state!==o.REMOVED||(this.init(),this.parent.makeActive(this),t=!0);var e=this.callbacks.onStart;this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?(e&&(e.params[1]=this.targets,e.func.apply(e.scope,e.params)),this.state=o.ACTIVE):(this.countdown=this.calculatedOffset,this.state=o.OFFSET_DELAY)):this.paused?(this.paused=!1,this.parent.makeActive(this)):(this.resetTweenData(t),this.state=o.ACTIVE,e&&(e.params[1]=this.targets,e.func.apply(e.scope,e.params)))}},resetTweenData:function(t){for(var e=this.data,i=0;i0?(n.elapsed=n.delay,n.state=o.DELAY):n.state=o.PENDING_RENDER}},resume:function(){return this.state===o.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t){for(var e=this.data,i=0;i=s.totalDuration?(r=1,o=s.duration):n>s.delay&&n<=s.t1?(r=(n=Math.max(0,n-s.delay))/s.t1,o=s.duration*r):n>s.t1&&ns.repeatDelay&&(r=n/s.t1,o=s.duration*r)),s.progress=r,s.elapsed=o;var a=s.ease(s.progress);s.current=s.start+(s.end-s.start)*a,s.target[s.key]=s.current}},setCallback:function(t,e,i,n){return this.callbacks[t]={func:e,scope:n,params:i},this},complete:function(t){if(void 0===t&&(t=0),t)this.countdown=t,this.state=o.COMPLETE_DELAY;else{var e=this.callbacks.onComplete;e&&(e.params[1]=this.targets,e.func.apply(e.scope,e.params)),this.state=o.PENDING_REMOVE}},stop:function(t){this.state===o.ACTIVE&&void 0!==t&&this.seek(t),this.state!==o.REMOVED&&(this.state=o.PENDING_REMOVE)},update:function(t,e){if(this.state===o.PAUSED)return!1;switch(this.useFrames&&(e=1*this.parent.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case o.ACTIVE:for(var i=!1,n=0;n0){e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY();var s=t.callbacks.onRepeat;return s&&(s.params[1]=e.target,s.func.apply(s.scope,s.params)),e.start=e.getStartValue(e.target,e.key,e.start),e.end=e.getEndValue(e.target,e.key,e.start),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,o.REPEAT_DELAY):o.PLAYING_FORWARD}return o.COMPLETE},setStateFromStart:function(t,e,i){if(e.repeatCounter>0){e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY();var n=t.callbacks.onRepeat;return n&&(n.params[1]=e.target,n.func.apply(n.scope,n.params)),e.end=e.getEndValue(e.target,e.key,e.start),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,o.REPEAT_DELAY):o.PLAYING_FORWARD}return o.COMPLETE},updateTweenData:function(t,e,i){switch(e.state){case o.PLAYING_FORWARD:case o.PLAYING_BACKWARD:if(!e.target){e.state=o.COMPLETE;break}var n=e.elapsed,s=e.duration,r=0;(n+=i)>s&&(r=n-s,n=s);var a,h=e.state===o.PLAYING_FORWARD,u=n/s;a=h?e.ease(u):e.ease(1-u),e.current=e.start+(e.end-e.start)*a,e.target[e.key]=e.current,e.elapsed=n,e.progress=u;var l=t.callbacks.onUpdate;l&&(l.params[1]=e.target,l.func.apply(l.scope,l.params)),1===u&&(h?e.hold>0?(e.elapsed=e.hold-r,e.state=o.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,r):e.state=this.setStateFromStart(t,e,r));break;case o.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=o.PENDING_RENDER);break;case o.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=o.PLAYING_FORWARD);break;case o.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case o.PENDING_RENDER:e.target?(e.start=e.getStartValue(e.target,e.key,e.target[e.key]),e.end=e.getEndValue(e.target,e.key,e.start),e.current=e.start,e.target[e.key]=e.start,e.state=o.PLAYING_FORWARD):e.state=o.COMPLETE}return e.state!==o.COMPLETE}});a.TYPES=["onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],r.register("tween",function(t){return this.scene.sys.tweens.add(t)}),s.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=a},function(t,e){t.exports={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1}},function(t,e){function i(t){return!!t.getStart&&"function"==typeof t.getStart}function n(t){return!!t.getEnd&&"function"==typeof t.getEnd}var s=function(t,e){var r,o,a=function(t,e,i){return i},h=function(t,e,i){return i},u=typeof e;if("number"===u)a=function(){return e};else if("string"===u){var l=e[0],c=parseFloat(e.substr(2));switch(l){case"+":a=function(t,e,i){return i+c};break;case"-":a=function(t,e,i){return i-c};break;case"*":a=function(t,e,i){return i*c};break;case"/":a=function(t,e,i){return i/c};break;default:a=function(){return parseFloat(e)}}}else"function"===u?a=e:"object"===u&&(i(o=e)||n(o))?(n(e)&&(a=e.getEnd),i(e)&&(h=e.getStart)):e.hasOwnProperty("value")&&(r=s(t,e.value));return r||(r={getEnd:a,getStart:h}),r};t.exports=s},function(t,e,i){var n=i(4);t.exports=function(t){var e=n(t,"targets",null);return null===e?e:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(t){void 0===t&&(t={}),this.name=s(t,"name","map"),this.width=s(t,"width",0),this.height=s(t,"height",0),this.tileWidth=s(t,"tileWidth",0),this.tileHeight=s(t,"tileHeight",0),this.widthInPixels=s(t,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=s(t,"heightInPixels",this.height*this.tileHeight),this.format=s(t,"format",null),this.orientation=s(t,"orientation","orthogonal"),this.version=s(t,"version","1"),this.properties=s(t,"properties",{}),this.layers=s(t,"layers",[]),this.images=s(t,"images",[]),this.objects=s(t,"objects",{}),this.collision=s(t,"collision",{}),this.tilesets=s(t,"tilesets",[]),this.imageCollections=s(t,"imageCollections",[]),this.tiles=s(t,"tiles",[])}});t.exports=r},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(t){void 0===t&&(t={}),this.name=s(t,"name","layer"),this.x=s(t,"x",0),this.y=s(t,"y",0),this.width=s(t,"width",0),this.height=s(t,"height",0),this.tileWidth=s(t,"tileWidth",0),this.tileHeight=s(t,"tileHeight",0),this.baseTileWidth=s(t,"baseTileWidth",this.tileWidth),this.baseTileHeight=s(t,"baseTileHeight",this.tileHeight),this.widthInPixels=s(t,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=s(t,"heightInPixels",this.height*this.baseTileHeight),this.alpha=s(t,"alpha",1),this.visible=s(t,"visible",!0),this.properties=s(t,"properties",{}),this.indexes=s(t,"indexes",[]),this.collideIndexes=s(t,"collideIndexes",[]),this.callbacks=s(t,"callbacks",[]),this.bodies=s(t,"bodies",[]),this.data=s(t,"data",[]),this.tilemapLayer=s(t,"tilemapLayer",null)}});t.exports=r},function(t,e){t.exports=function(t,e,i){return t>=0&&t=0&&eu){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=u)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);l[c]=v,h+=g}var m=l[c].length?c:c+1,y=l.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,u-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=0;ro?(h>0&&(n+="\n"),n+=a[h]+" ",o=i-u):(o-=l,n+=a[h],h0&&(a+=l.lineSpacing*p),i.rtl?o=d-o:"right"===i.align?o+=l.width-l.lineWidths[p]:"center"===i.align&&(o+=(l.width-l.lineWidths[p])/2),this.autoRound&&(o=Math.round(o),a=Math.round(a)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(h[p],o,a)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(h[p],o,a));return e.restore(),this.dirty=!0,this},getTextMetrics:function(){return this.style.getTextMetrics()},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this.text,style:this.style.toJSON(),resolution:this.resolution,padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas)}});t.exports=p},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,i){var n=i(594),s=i(0),r=i(1),o=i(4),a=i(252),h=i(70),u=i(34),l=new s({initialize:function(t,e,i){void 0!==i||Array.isArray(e)||"object"!=typeof e||(i=e,e=null),this.scene=t,this.children=new h(e),this.isParent=!0,this.classType=r(i,"classType",u),this.active=r(i,"active",!0),this.maxSize=r(i,"maxSize",-1),this.defaultKey=r(i,"defaultKey",null),this.defaultFrame=r(i,"defaultFrame",null),this.runChildUpdate=r(i,"runChildUpdate",!1),this.createCallback=r(i,"createCallback",null),this.removeCallback=r(i,"removeCallback",null),this.createMultipleCallback=r(i,"createMultipleCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];if(Array.isArray(t)||(t=[t]),void 0===t[0].key)return[];for(var e=[],i=0;i=0;l--)if((u=d[l]).active===i){if(++c===e)break}else u=null;return u?("number"==typeof s&&(u.x=s),"number"==typeof r&&(u.y=r),u):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys;if(void 0===e&&(e=r.game.config.width),void 0===i&&(i=r.game.config.height),d.TargetCamera.setViewport(0,0,e,i),d.TargetCamera.scrollX=this.x,d.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var o=(n=r.textures.get(t)).getSourceImage();o instanceof HTMLCanvasElement&&(s=o.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(r.game.renderer,this,0,d.TargetCamera,null,s),r.game.renderer.gl&&n&&(n.source[0].glTexture=r.game.renderer.canvasToTexture(s.canvas,n.source[0].glTexture))),this}});d.TargetCamera=new n(0,0,0,0),t.exports=d},function(t,e){t.exports=function(t){if(!Array.isArray(t)||t.length<2||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t){return t?this.resume():this.pause()},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit("start",this),this.events.emit("ready",this)},resize:function(t,e){this.events.emit("resize",t,e)},shutdown:function(){this.events.off("transitioninit"),this.events.off("transitionstart"),this.events.off("transitioncomplete"),this.events.off("transitionout"),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit("shutdown",this)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit("destroy",this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e-m||T>-y||b-m||A>-y||Sl&&(this.scrollX=l),this.scrollYc&&(this.scrollY=c)}this.roundPixels&&(this.scrollX=Math.round(this.scrollX),this.scrollY=Math.round(this.scrollY)),r.loadIdentity(),r.scale(e,e),r.translate(this.x+o,this.y+a),r.rotate(this.rotation),r.scale(s,s),r.translate(-o,-a),this.shakeEffect.preRender()},removeBounds:function(){return this.useBounds=!1,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=s(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n){return this._bounds.setTo(t,e,i,n),this.useBounds=!0,this},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){return this.scene=t,this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),this.zoom=t,this},startFollow:function(t,e){return void 0===e&&(e=!1),this._follow=t,this.roundPixels=e,this},stopFollow:function(){return this._follow=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},resetFX:function(){return this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e)},destroy:function(){this.emit("cameradestroy",this),this.removeAllListeners(),this.resetFX(),this.matrix.destroy(),this.culledObjects=[],this.target=void 0,this._bounds=void 0,this.scene=void 0}});t.exports=c},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(0),s=i(18),r=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0},uvs:{x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},radius:0,drawImage:{sx:0,sy:0,sWidth:0,sHeight:0,dWidth:0,dHeight:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.sx=i,o.sy=n,o.sWidth=t,o.sHeight=e,o.dWidth=t,o.dHeight=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.sWidth=i,s.sHeight=n,s.dWidth=i,s.dHeight=n;var r=this.source.width,o=this.source.height,a=this.data.uvs;return a.x0=t/r,a.y0=e/o,a.x1=t/r,a.y1=(e+n)/o,a.x2=(t+i)/r,a.y2=(e+n)/o,a.x3=(t+i)/r,a.y3=e/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height,i=this.data.uvs;return i.x3=(this.cutX+this.cutHeight)/t,i.y3=(this.cutY+this.cutWidth)/e,i.x2=this.cutX/t,i.y2=(this.cutY+this.cutWidth)/e,i.x1=this.cutX/t,i.y1=this.cutY/e,i.x0=(this.cutX+this.cutHeight)/t,i.y0=this.cutY/e,this},clone:function(){var t=new r(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=s(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.texture=null,this.source=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},uvs:{get:function(){return this.data.uvs}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=r},function(t,e,i){var n=i(0),s=i(199),r=i(517),o=i(516),a=i(27),h=i(83),u=new n({Extends:h,Mixins:[s],initialize:function(t){h.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.topology?t.topology:t.renderer.gl.TRIANGLES,vertShader:t.vertShader?t.vertShader:o,fragShader:t.fragShader?t.fragShader:r,vertexCapacity:t.vertexCapacity?t.vertexCapacity:12e3,vertexSize:t.vertexSize?t.vertexSize:2*Float32Array.BYTES_PER_ELEMENT+2*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT,attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:4*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=2e3,this.batches=[],this.mvpInit()},setTexture2D:function(t,e){if(!t)return this;var i=this.batches;0===i.length&&this.pushBatch();var n=i[i.length-1];return e>0?(n.textures[e-1]&&n.textures[e-1]!==t&&this.pushBatch(),i[i.length-1].textures[e-1]=t):(null!==n.texture&&n.texture!==t&&this.pushBatch(),i[i.length-1].texture=t),this},pushBatch:function(){var t={first:this.vertexCount,texture:null,textures:[]};this.batches.push(t)},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.renderer,r=this.vertexCount,o=this.topology,a=this.vertexSize,h=this.batches,u=0,l=null;if(0===h.length||0===r)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,r*a));for(var c=0;c0){for(e=0;e0){for(e=0;e0&&(s.setTexture2D(l.texture,0),n.drawArrays(o,l.first,u)),this.vertexCount=0,h.length=0,this.pushBatch(),this.flushLocked=!1,this},onBind:function(){return h.prototype.onBind.call(this),this.mvpUpdate(),0===this.batches.length&&this.pushBatch(),this},resize:function(t,e,i){return h.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},drawStaticTilemapLayer:function(t){if(t.vertexCount>0){var e=this.vertexBuffer,i=this.gl,n=this.renderer,s=t.tileset.image.get();n.currentPipeline&&n.currentPipeline.vertexCount>0&&n.flush(),this.vertexBuffer=t.vertexBuffer,n.setPipeline(this),n.setTexture2D(s.source.glTexture,0),i.drawArrays(this.topology,0,t.vertexCount),this.vertexBuffer=e}this.viewIdentity(),this.modelIdentity()},drawEmitterManager:function(t,e,i){var n=null;i&&(n=i.matrix),this.renderer.setPipeline(this);var s,r,o,a,h,u,l,c,d,f,p=this.renderer.config.roundPixels,g=t.emitters.list,v=g.length,m=this.vertexViewF32,y=this.vertexViewU32,x=this.renderer,w=this.maxQuads,b=e.scrollX,T=e.scrollY,S=e.matrix.matrix,A=S[0],C=S[1],M=S[2],E=S[3],_=S[4],P=S[5],L=Math.sin,F=Math.cos,k=this.vertexComponentCount,R=this.vertexCapacity,O=t.defaultFrame.source.glTexture;n&&(h=n[0],u=n[1],l=n[2],c=n[3],d=n[4],f=n[5]),this.setTexture2D(O,0);for(var D=0;D=R&&(this.flush(),this.setTexture2D(O,0));for(var V=0;V=R&&(this.flush(),this.setTexture2D(O,0))}}z+=H,Y-=H,this.vertexCount>=R&&(this.flush(),this.setTexture2D(O,0))}}}this.setTexture2D(O,0)},drawBlitter:function(t,e,i){var n=null;i&&(n=i.matrix),this.renderer.setPipeline(this);var s=this.renderer.config.roundPixels,r=a.getTintAppendFloatAlpha,o=this.vertexViewF32,h=this.vertexViewU32,u=t.getRenderList(),l=u.length,c=e.matrix.matrix,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=e.scrollX*t.scrollFactorX,x=e.scrollY*t.scrollFactorY,w=Math.ceil(l/this.maxQuads),b=0;if(n){var T=n[0],S=n[1],A=n[2],C=n[3],M=n[4],E=n[5],_=-y,P=-x,L=A*d+C*p,F=A*f+C*g,k=M*d+E*p+(_*d+P*p+v),R=M*f+E*g+(_*f+P*g+m);d=T*d+S*p,f=T*f+S*g,p=L,g=F,v=k,m=R,y=0,x=0}for(var O,D=t.x-y,I=t.y-x,B=0;B=this.vertexCapacity&&(this.flush(),O=-1)}}b+=Y,l-=Y,this.vertexCount>=this.vertexCapacity&&this.flush()}},batchSprite:function(t,e,i){var n=null;i&&(n=i.matrix),this.renderer.setPipeline(this),this.vertexCount+6>this.vertexCapacity&&this.flush();var s,r,o,h,u,l,c=this.renderer.config.roundPixels,d=a.getTintAppendFloatAlpha,f=this.vertexViewF32,p=this.vertexViewU32,g=e.matrix.matrix,v=t.frame,m=v.texture.source[v.sourceIndex].glTexture,y=!!m.isRenderTexture,x=t.flipX,w=t.flipY^y,b=v.uvs,T=v.width*(x?-1:1),S=v.height*(w?-1:1),A=-t.displayOriginX+v.x+v.width*(x?1:0),C=-t.displayOriginY+v.y+v.height*(w?1:0),M=(c?0|A:A)+T,E=(c?0|C:C)+S,_=t.scaleX,P=t.scaleY,L=t.rotation,F=t._alphaTL,k=t._alphaTR,R=t._alphaBL,O=t._alphaBR,D=t._tintTL,I=t._tintTR,B=t._tintBL,Y=t._tintBR,X=Math.sin(L),z=Math.cos(L),N=z*_,U=X*_,G=-X*P,W=z*P,V=t.x,H=t.y,j=g[0],q=g[1],K=g[2],J=g[3],Z=g[4],Q=g[5];if(n){var $=n[0],tt=n[1],et=n[2],it=n[3],nt=n[4],st=n[5],rt=-e.scrollX*t.scrollFactorX,ot=-e.scrollY*t.scrollFactorY,at=$*j+tt*K,ht=$*q+tt*J,ut=et*j+it*K,lt=et*q+it*J;s=N*at+U*ut,r=N*ht+U*lt,o=G*at+W*ut,h=G*ht+W*lt,u=V*at+H*ut+(nt*j+st*K+(rt*j+ot*K+Z)),l=V*ht+H*lt+(nt*q+st*J+(rt*q+ot*J+Q))}else s=N*j+U*K,r=N*q+U*J,o=G*j+W*K,h=G*q+W*J,u=(V-=e.scrollX*t.scrollFactorX)*j+(H-=e.scrollY*t.scrollFactorY)*K+Z,l=V*q+H*J+Q;var ct,dt=A*s+C*o+u,ft=A*r+C*h+l,pt=A*s+E*o+u,gt=A*r+E*h+l,vt=M*s+E*o+u,mt=M*r+E*h+l,yt=M*s+C*o+u,xt=M*r+C*h+l,wt=d(D,F),bt=d(I,k),Tt=d(B,R),St=d(Y,O);c&&(dt|=0,ft|=0,pt|=0,gt|=0,vt|=0,mt|=0,yt|=0,xt|=0),this.setTexture2D(m,0),f[(ct=this.vertexCount*this.vertexComponentCount)+0]=dt,f[ct+1]=ft,f[ct+2]=b.x0,f[ct+3]=b.y0,p[ct+4]=wt,f[ct+5]=pt,f[ct+6]=gt,f[ct+7]=b.x1,f[ct+8]=b.y1,p[ct+9]=Tt,f[ct+10]=vt,f[ct+11]=mt,f[ct+12]=b.x2,f[ct+13]=b.y2,p[ct+14]=St,f[ct+15]=dt,f[ct+16]=ft,f[ct+17]=b.x0,f[ct+18]=b.y0,p[ct+19]=wt,f[ct+20]=vt,f[ct+21]=mt,f[ct+22]=b.x2,f[ct+23]=b.y2,p[ct+24]=St,f[ct+25]=yt,f[ct+26]=xt,f[ct+27]=b.x3,f[ct+28]=b.y3,p[ct+29]=bt,this.vertexCount+=6},batchMesh:function(t,e,i){var n=null;i&&(n=i.matrix);var s=t.vertices,r=s.length,o=r/2|0;this.renderer.setPipeline(this),this.vertexCount+o>this.vertexCapacity&&this.flush();var h,u,l,c,d,f,p=this.renderer.config.roundPixels,g=a.getTintAppendFloatAlpha,v=t.uv,m=t.colors,y=t.alphas,x=this.vertexViewF32,w=this.vertexViewU32,b=e.matrix.matrix,T=t.frame,S=t.texture.source[T.sourceIndex].glTexture,A=t.x,C=t.y,M=t.scaleX,E=t.scaleY,_=t.rotation,P=Math.sin(_),L=Math.cos(_),F=L*M,k=P*M,R=-P*E,O=L*E,D=A,I=C,B=b[0],Y=b[1],X=b[2],z=b[3],N=b[4],U=b[5],G=0;if(n){var W=n[0],V=n[1],H=n[2],j=n[3],q=n[4],K=n[5],J=-e.scrollX*t.scrollFactorX,Z=-e.scrollY*t.scrollFactorY,Q=W*B+V*X,$=W*Y+V*z,tt=H*B+j*X,et=H*Y+j*z;h=F*Q+k*tt,u=F*$+k*et,l=R*Q+O*tt,c=R*$+O*et,d=D*Q+I*tt+(q*B+K*X+(J*B+Z*X+N)),f=D*$+I*et+(q*Y+K*z+(J*Y+Z*z+U))}else h=F*B+k*X,u=F*Y+k*z,l=R*B+O*X,c=R*Y+O*z,d=(D-=e.scrollX*t.scrollFactorX)*B+(I-=e.scrollY*t.scrollFactorY)*X+N,f=D*Y+I*z+U;this.setTexture2D(S,0),G=this.vertexCount*this.vertexComponentCount;for(var it=0,nt=0;itthis.vertexCapacity&&this.flush();var s,r,o,h,u,l,c,d,f,p,g,v,m,y,x=this.renderer.config.roundPixels,w=t.text,b=w.length,T=a.getTintAppendFloatAlpha,S=this.vertexViewF32,A=this.vertexViewU32,C=e.matrix.matrix,M=e.width+50,E=e.height+50,_=t.frame,P=t.texture.source[_.sourceIndex],L=e.scrollX*t.scrollFactorX,F=e.scrollY*t.scrollFactorY,k=t.fontData,R=k.lineHeight,O=t.fontSize/k.size,D=k.chars,I=t.alpha,B=T(t._tintTL,I),Y=T(t._tintTR,I),X=T(t._tintBL,I),z=T(t._tintBR,I),N=t.x,U=t.y,G=_.cutX,W=_.cutY,V=P.width,H=P.height,j=P.glTexture,q=0,K=0,J=0,Z=0,Q=null,$=0,tt=0,et=0,it=0,nt=0,st=0,rt=0,ot=0,at=0,ht=0,ut=0,lt=0,ct=null,dt=0,ft=N+_.x,pt=U+_.y,gt=t.rotation,vt=t.scaleX,mt=t.scaleY,yt=t.letterSpacing,xt=Math.sin(gt),wt=Math.cos(gt),bt=wt*vt,Tt=xt*vt,St=-xt*mt,At=wt*mt,Ct=ft,Mt=pt,Et=C[0],_t=C[1],Pt=C[2],Lt=C[3],Ft=C[4],kt=C[5],Rt=0;if(n){var Ot=n[0],Dt=n[1],It=n[2],Bt=n[3],Yt=n[4],Xt=n[5],zt=-L,Nt=-F,Ut=Ot*Et+Dt*Pt,Gt=Ot*_t+Dt*Lt,Wt=It*Et+Bt*Pt,Vt=It*_t+Bt*Lt;f=bt*Ut+Tt*Wt,p=bt*Gt+Tt*Vt,g=St*Ut+At*Wt,v=St*Gt+At*Vt,m=Ct*Ut+Mt*Wt+(Yt*Et+Xt*Pt+(zt*Et+Nt*Pt+Ft)),y=Ct*Gt+Mt*Vt+(Yt*_t+Xt*Lt+(zt*_t+Nt*Lt+kt))}else f=bt*Et+Tt*Pt,p=bt*_t+Tt*Lt,g=St*Et+At*Pt,v=St*_t+At*Lt,m=(Ct-=L)*Et+(Mt-=F)*Pt+Ft,y=Ct*_t+Mt*Lt+kt;this.setTexture2D(j,0);for(var Ht=0;HtM||r<-50||r>E)&&(o<-50||o>M||h<-50||h>E)&&(u<-50||u>M||l<-50||l>E)&&(c<-50||c>M||d<-50||d>E)||(this.vertexCount+6>this.vertexCapacity&&this.flush(),Rt=this.vertexCount*this.vertexComponentCount,x&&(s|=0,r|=0,o|=0,h|=0,u|=0,l|=0,c|=0,d|=0),S[Rt+0]=s,S[Rt+1]=r,S[Rt+2]=at,S[Rt+3]=ut,A[Rt+4]=B,S[Rt+5]=o,S[Rt+6]=h,S[Rt+7]=at,S[Rt+8]=lt,A[Rt+9]=X,S[Rt+10]=u,S[Rt+11]=l,S[Rt+12]=ht,S[Rt+13]=lt,A[Rt+14]=z,S[Rt+15]=s,S[Rt+16]=r,S[Rt+17]=at,S[Rt+18]=ut,A[Rt+19]=B,S[Rt+20]=u,S[Rt+21]=l,S[Rt+22]=ht,S[Rt+23]=lt,A[Rt+24]=z,S[Rt+25]=c,S[Rt+26]=d,S[Rt+27]=ht,S[Rt+28]=ut,A[Rt+29]=Y,this.vertexCount+=6))}}else q=0,J=0,K+=R,ct=null},batchDynamicBitmapText:function(t,e,i){var n=null;i&&(n=i.matrix),this.renderer.setPipeline(this),this.vertexCount+6>this.vertexCapacity&&this.flush();var s,r,o,h,u,l,c,d,f,p,g,v,m,y,x,w,b,T,S,A,C=this.renderer.config.roundPixels,M=t.displayCallback,E=t.text,_=E.length,P=a.getTintAppendFloatAlpha,L=this.vertexViewF32,F=this.vertexViewU32,k=this.renderer,R=e.matrix.matrix,O=t.frame,D=t.texture.source[O.sourceIndex],I=e.scrollX*t.scrollFactorX,B=e.scrollY*t.scrollFactorY,Y=t.scrollX,X=t.scrollY,z=t.fontData,N=z.lineHeight,U=t.fontSize/z.size,G=z.chars,W=t.alpha,V=P(t._tintTL,W),H=P(t._tintTR,W),j=P(t._tintBL,W),q=P(t._tintBR,W),K=t.x,J=t.y,Z=O.cutX,Q=O.cutY,$=D.width,tt=D.height,et=D.glTexture,it=0,nt=0,st=0,rt=0,ot=null,at=0,ht=0,ut=0,lt=0,ct=0,dt=0,ft=0,pt=0,gt=0,vt=0,mt=0,yt=0,xt=null,wt=0,bt=K+O.x,Tt=J+O.y,St=t.rotation,At=t.scaleX,Ct=t.scaleY,Mt=t.letterSpacing,Et=Math.sin(St),_t=Math.cos(St),Pt=_t*At,Lt=Et*At,Ft=-Et*Ct,kt=_t*Ct,Rt=bt,Ot=Tt,Dt=R[0],It=R[1],Bt=R[2],Yt=R[3],Xt=R[4],zt=R[5],Nt=t.cropWidth>0||t.cropHeight>0,Ut=0;if(n){var Gt=n[0],Wt=n[1],Vt=n[2],Ht=n[3],jt=n[4],qt=n[5],Kt=-I,Jt=-B,Zt=Gt*Dt+Wt*Bt,Qt=Gt*It+Wt*Yt,$t=Vt*Dt+Ht*Bt,te=Vt*It+Ht*Yt;x=Pt*Zt+Lt*$t,w=Pt*Qt+Lt*te,b=Ft*Zt+kt*$t,T=Ft*Qt+kt*te,S=Rt*Zt+Ot*$t+(jt*Dt+qt*Bt+(Kt*Dt+Jt*Bt+Xt)),A=Rt*Qt+Ot*te+(jt*It+qt*Yt+(Kt*It+Jt*Yt+zt))}else x=Pt*Dt+Lt*Bt,w=Pt*It+Lt*Yt,b=Ft*Dt+kt*Bt,T=Ft*It+kt*Yt,S=(Rt-=I)*Dt+(Ot-=B)*Bt+Xt,A=Rt*It+Ot*Yt+zt;this.setTexture2D(et,0),Nt&&k.pushScissor(t.x,t.y,t.cropWidth*t.scaleX,t.cropHeight*t.scaleY);for(var ee=0;ee<_;++ee)if(U=t.fontSize/t.fontData.size,St=0,10!==(rt=E.charCodeAt(ee))){if(ot=G[rt]){if(at=Z+ot.x,ht=Q+ot.y,ut=ot.width,lt=ot.height,ct=st+ot.xOffset+it-Y,dt=ot.yOffset+nt-X,null!==xt){var ie=ot.kerning[wt];ct+=void 0!==ie?ie:0}if(it+=ot.xAdvance+Mt,st+=1,xt=ot,wt=rt,0!==ut&&0!==lt&&32!==rt){if(M){var ne=M({color:0,tint:{topLeft:V,topRight:H,bottomLeft:j,bottomRight:q},index:ee,charCode:rt,x:ct,y:dt,scale:U,rotation:0,data:ot.data});ct=ne.x,dt=ne.y,U=ne.scale,St=ne.rotation,ne.color?(V=ne.color,H=ne.color,j=ne.color,q=ne.color):(V=ne.tint.topLeft,H=ne.tint.topRight,j=ne.tint.bottomLeft,q=ne.tint.bottomRight),V=P(V,W),H=P(H,W),j=P(j,W),q=P(q,W)}ct-=t.displayOriginX,dt-=t.displayOriginY,ct*=U,dt*=U,Et=Math.sin(St),_t=Math.cos(St),s=Rt=(m=ct)*x+(y=dt)*b+S,r=Ot=m*w+y*T+A,o=(pt=lt)*(Ft=(g=-Et*U)*x+(v=_t*U)*b)+Rt,h=pt*(kt=g*w+v*T)+Ot,u=(ft=ut)*(Pt=(f=_t*U)*x+(p=Et*U)*b)+pt*Ft+Rt,l=ft*(Lt=f*w+p*T)+pt*kt+Ot,c=ft*Pt+Rt,d=ft*Lt+Ot,gt=at/$,vt=(at+ut)/$,mt=ht/tt,yt=(ht+lt)/tt,this.vertexCount+6>this.vertexCapacity&&this.flush(),Ut=this.vertexCount*this.vertexComponentCount,C&&(s|=0,r|=0,o|=0,h|=0,u|=0,l|=0,c|=0,d|=0),L[Ut+0]=s,L[Ut+1]=r,L[Ut+2]=gt,L[Ut+3]=mt,F[Ut+4]=V,L[Ut+5]=o,L[Ut+6]=h,L[Ut+7]=gt,L[Ut+8]=yt,F[Ut+9]=j,L[Ut+10]=u,L[Ut+11]=l,L[Ut+12]=vt,L[Ut+13]=yt,F[Ut+14]=q,L[Ut+15]=s,L[Ut+16]=r,L[Ut+17]=gt,L[Ut+18]=mt,F[Ut+19]=V,L[Ut+20]=u,L[Ut+21]=l,L[Ut+22]=vt,L[Ut+23]=yt,F[Ut+24]=q,L[Ut+25]=c,L[Ut+26]=d,L[Ut+27]=vt,L[Ut+28]=mt,F[Ut+29]=H,this.vertexCount+=6}}}else it=0,st=0,nt+=N,xt=null;Nt&&k.popScissor()},batchText:function(t,e,i){var n=a.getTintAppendFloatAlpha;this.batchTexture(t,t.canvasTexture,t.canvasTexture.width,t.canvasTexture.height,t.x,t.y,t.canvasTexture.width,t.canvasTexture.height,t.scaleX,t.scaleY,t.rotation,t.flipX,t.flipY,t.scrollFactorX,t.scrollFactorY,t.displayOriginX,t.displayOriginY,0,0,t.canvasTexture.width,t.canvasTexture.height,n(t._tintTL,t._alphaTL),n(t._tintTR,t._alphaTR),n(t._tintBL,t._alphaBL),n(t._tintBR,t._alphaBR),0,0,e,i)},batchDynamicTilemapLayer:function(t,e,i){for(var n=t.culledTiles,s=n.length,r=t.tileset.image.get().source.glTexture,o=t.tileset,h=t.scrollFactorX,u=t.scrollFactorY,l=t.alpha,c=t.x,d=t.y,f=t.scaleX,p=t.scaleY,g=a.getTintAppendFloatAlpha,v=0;vthis.vertexCapacity&&this.flush(),d^=e.isRenderTexture?1:0;var L,F,k,R,O,D,I=this.renderer.config.roundPixels,B=this.vertexViewF32,Y=this.vertexViewU32,X=E.matrix.matrix,z=o*(c?1:0)-g,N=a*(d?1:0)-v,U=z+o*(c?-1:1),G=N+a*(d?-1:1),W=s,V=r,H=Math.sin(l),j=Math.cos(l),q=j*h,K=H*h,J=-H*u,Z=j*u,Q=W,$=V,tt=X[0],et=X[1],it=X[2],nt=X[3],st=X[4],rt=X[5];if(P){var ot=P[0],at=P[1],ht=P[2],ut=P[3],lt=P[4],ct=P[5],dt=-E.scrollX*f,ft=-E.scrollY*p,pt=ot*tt+at*it,gt=ot*et+at*nt,vt=ht*tt+ut*it,mt=ht*et+ut*nt;L=q*pt+K*vt,F=q*gt+K*mt,k=J*pt+Z*vt,R=J*gt+Z*mt,O=Q*pt+$*vt+(lt*tt+ct*it+(dt*tt+ft*it+st)),D=Q*gt+$*mt+(lt*et+ct*nt+(dt*et+ft*nt+rt))}else L=q*tt+K*it,F=q*et+K*nt,k=J*tt+Z*it,R=J*et+Z*nt,O=(Q-=E.scrollX*f)*tt+($-=E.scrollY*p)*it+st,D=Q*et+$*nt+rt;var yt,xt=z*L+N*k+O,wt=z*F+N*R+D,bt=z*L+G*k+O,Tt=z*F+G*R+D,St=U*L+G*k+O,At=U*F+G*R+D,Ct=U*L+N*k+O,Mt=U*F+N*R+D,Et=m/i+C,_t=y/n+M,Pt=(m+x)/i+C,Lt=(y+w)/n+M;this.setTexture2D(e,0),yt=this.vertexCount*this.vertexComponentCount,I&&(xt|=0,wt|=0,bt|=0,Tt|=0,St|=0,At|=0,Ct|=0,Mt|=0),B[yt+0]=xt,B[yt+1]=wt,B[yt+2]=Et,B[yt+3]=_t,Y[yt+4]=b,B[yt+5]=bt,B[yt+6]=Tt,B[yt+7]=Et,B[yt+8]=Lt,Y[yt+9]=T,B[yt+10]=St,B[yt+11]=At,B[yt+12]=Pt,B[yt+13]=Lt,Y[yt+14]=S,B[yt+15]=xt,B[yt+16]=wt,B[yt+17]=Et,B[yt+18]=_t,Y[yt+19]=b,B[yt+20]=St,B[yt+21]=At,B[yt+22]=Pt,B[yt+23]=Lt,Y[yt+24]=S,B[yt+25]=Ct,B[yt+26]=Mt,B[yt+27]=Pt,B[yt+28]=_t,Y[yt+29]=A,this.vertexCount+=6},drawTexture:function(t,e,i,n,s,r,o,h,u,l,c){var d=null;c&&(d=c.matrix),this.renderer.setPipeline(this),this.vertexCount+6>this.vertexCapacity&&this.flush();var f=this.renderer.config.roundPixels,p=this.vertexViewF32,g=this.vertexViewU32,v=e,m=i,y=v+h,x=m+u,w=l[0],b=l[1],T=l[2],S=l[3],A=l[4],C=l[5];if(d){var M=d[0],E=d[1],_=d[2],P=d[3],L=d[4],F=w*E+b*P,k=T*E+S*P,R=A*E+C*P+d[5];w=w*M+b*_,b=F,T=T*M+S*_,S=k,A=A*M+C*_+L,C=R}var O,D=v*w+m*T+A,I=v*b+m*S+C,B=v*w+x*T+A,Y=v*b+x*S+C,X=y*w+x*T+A,z=y*b+x*S+C,N=y*w+m*T+A,U=y*b+m*S+C,G=t.width,W=t.height,V=r/G,H=o/W,j=(r+h)/G,q=(o+u)/W;n=a.getTintAppendFloatAlpha(n,s),this.setTexture2D(t,0),O=this.vertexCount*this.vertexComponentCount,f&&(D|=0,I|=0,B|=0,Y|=0,X|=0,z|=0,N|=0,U|=0),p[O+0]=D,p[O+1]=I,p[O+2]=V,p[O+3]=H,g[O+4]=n,p[O+5]=B,p[O+6]=Y,p[O+7]=V,p[O+8]=q,g[O+9]=n,p[O+10]=X,p[O+11]=z,p[O+12]=j,p[O+13]=q,g[O+14]=n,p[O+15]=D,p[O+16]=I,p[O+17]=V,p[O+18]=H,g[O+19]=n,p[O+20]=X,p[O+21]=z,p[O+22]=j,p[O+23]=q,g[O+24]=n,p[O+25]=N,p[O+26]=U,p[O+27]=j,p[O+28]=H,g[O+29]=n,this.vertexCount+=6,this.flush()},batchGraphics:function(){}});t.exports=u},function(t,e){t.exports=function(t,e,i){var n;return void 0===i&&(i=!0),e&&("string"==typeof e?n=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(n=e)),n||(n=document.body),i&&n.style&&(n.style.overflow="hidden"),n.appendChild(t),t}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(5);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random()*Math.PI*2,s=Math.sqrt(Math.random());return e.x=t.x+s*Math.cos(i)*t.width/2,e.y=t.y+s*Math.sin(i)*t.height/2,e}},function(t,e,i){var n=i(96),s=i(5);t.exports=function(t,e,i){if(void 0===i&&(i=new s),e<=0||e>=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(5);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e,i){var n=i(0),s=i(15),r=i(2),o=i(858),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScaleMode,s.Size,s.Texture,s.Transform,s.Visible,s.ScrollFactor,o],initialize:function(t,e,i,n,s,o,a,h,u){if(r.call(this,t,"Mesh"),this.setTexture(h,u),this.setPosition(e,i),this.setSizeToFrame(),this.setOrigin(),this.initPipeline("TextureTintPipeline"),n.length!==s.length)throw new Error("Mesh Vertex count must match UV count");var l,c=n.length/2|0;if(o.length>0&&o.length0&&a.length=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e,i){var n=i(5);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},function(t,e,i){var n=i(5);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},function(t,e,i){var n=i(71),s=i(5);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,u=t.y2,l=0;l1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(50),s=i(87),r=i(32),o=i(0),a=i(15),h=i(2),u=i(14),l=i(31),c=new o({Extends:h,Mixins:[a.Depth,a.GetBounds,a.Origin,a.ScaleMode,a.Transform,a.ScrollFactor,a.Visible],initialize:function(t,e,i,s,r){void 0===s&&(s=1),void 0===r&&(r=s),h.call(this,t,"Zone"),this.setPosition(e,i),this.width=s,this.height=r,this.blendMode=n.NORMAL},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){return void 0===i&&(i=!0),this.width=t,this.height=e,i&&this.input&&this.input.hitArea instanceof u&&(this.input.hitArea.width=t,this.input.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new s(0,0,t),r)},setRectangleDropZone:function(t,e){var i=-t/2,n=-e/2;return this.setDropZone(new u(i,n,t,e),l)},setDropZone:function(t,e){return void 0===t?this.setRectangleDropZone(this.width,this.height):this.input||this.setInteractive(t,e,!0),this},renderCanvas:function(){},renderWebGL:function(){}});t.exports=c},function(t,e,i){var n=i(0),s=i(9),r=i(72),o=i(60),a=new n({Extends:s,initialize:function(t){s.call(this),this.manager=t,this.isTimeline=!0,this.data=[],this.totalData=0,this.useFrames=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING_ADD,this._pausedState=o.PENDING_ADD,this.paused=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0,this.callbacks={onComplete:null,onLoop:null,onStart:null,onUpdate:null,onYoyo:null},this.callbackScope},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return this.state===o.ACTIVE},add:function(t){return this.queue(r(this,t))},queue:function(t){return this.isPlaying()||(t.parent=this,t.parentIsTimeline=!0,this.data.push(t),this.totalData=this.data.length),this},hasOffset:function(t){return null!==t.offset},isOffsetAbsolute:function(t){return"number"==typeof t},isOffsetRelative:function(t){if("string"===typeof t){var e=t[0];if("-"===e||"+"===e)return!0}return!1},getRelativeOffset:function(t,e){var i=t[0],n=parseFloat(t.substr(2)),s=e;switch(i){case"+":s+=n;break;case"-":s-=n}return Math.max(0,s)},calcDuration:function(){for(var t=0,e=0,i=0,n=0;n0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=o.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0){this.elapsed=0,this.progress=0,this.loopCounter--;var t=this.callbacks.onLoop;t&&t.func.apply(t.scope,t.params),this.emit("loop",this,this.loopCounter),this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=o.LOOP_DELAY):this.state=o.ACTIVE}else if(this.completeDelay>0)this.countdown=this.completeDelay,this.state=o.COMPLETE_DELAY;else{var e=this.callbacks.onComplete;e&&e.func.apply(e.scope,e.params),this.emit("complete",this),this.state=o.PENDING_REMOVE}},update:function(t,e){if(this.state!==o.PAUSED){var i=e;switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case o.ACTIVE:for(var n=this.totalData,s=0;s0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=new(i(0))({initialize:function(t){this.pluginManager=t,this.game=t.game,this.scene,this.systems},init:function(){},start:function(){},stop:function(){},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,e,i){var n=i(0),s=i(19),r=i(1),o=i(106),a=i(8),h=new n({Extends:s,initialize:function(t,e,i,n){if(a(e)){var o=e;e=r(o,"key"),n=r(o,"config",n)}var h={type:"audio",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:n};s.call(this,t,h),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var t=0;t0&&e.cameraFilter&r._id)){var u=r.scrollX*e.scrollFactorX,l=r.scrollY*e.scrollFactorY,c=e.x,d=e.y,f=e.scaleX,p=e.scaleY,g=e.rotation,v=e.commandBuffer,m=a||t.currentContext,y=1,x=1,w=0,b=0,T=1,S=0,A=0,C=0;if(t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,m.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,m.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode),m.save(),o){var M=o.matrix;m.transform(M[0],M[1],M[2],M[3],M[4],M[5])}m.translate(c-u,d-l),m.rotate(g),m.scale(f,p),m.fillStyle="#fff",m.globalAlpha=e.alpha;for(var E=0,_=v.length;E<_;++E)switch(v[E]){case n.ARC:m.arc(v[E+1],v[E+2],v[E+3],v[E+4],v[E+5],v[E+6]),E+=6;break;case n.LINE_STYLE:T=v[E+1],w=v[E+2],y=v[E+3],S=(16711680&w)>>>16,A=(65280&w)>>>8,C=255&w,m.strokeStyle="rgba("+S+","+A+","+C+","+y+")",m.lineWidth=T,E+=3;break;case n.FILL_STYLE:b=v[E+1],x=v[E+2],S=(16711680&b)>>>16,A=(65280&b)>>>8,C=255&b,m.fillStyle="rgba("+S+","+A+","+C+","+x+")",E+=2;break;case n.BEGIN_PATH:m.beginPath();break;case n.CLOSE_PATH:m.closePath();break;case n.FILL_PATH:h||m.fill();break;case n.STROKE_PATH:h||m.stroke();break;case n.FILL_RECT:h?m.rect(v[E+1],v[E+2],v[E+3],v[E+4]):m.fillRect(v[E+1],v[E+2],v[E+3],v[E+4]),E+=4;break;case n.FILL_TRIANGLE:m.beginPath(),m.moveTo(v[E+1],v[E+2]),m.lineTo(v[E+3],v[E+4]),m.lineTo(v[E+5],v[E+6]),m.closePath(),h||m.fill(),E+=6;break;case n.STROKE_TRIANGLE:m.beginPath(),m.moveTo(v[E+1],v[E+2]),m.lineTo(v[E+3],v[E+4]),m.lineTo(v[E+5],v[E+6]),m.closePath(),h||m.stroke(),E+=6;break;case n.LINE_TO:m.lineTo(v[E+1],v[E+2]),E+=2;break;case n.MOVE_TO:m.moveTo(v[E+1],v[E+2]),E+=2;break;case n.LINE_FX_TO:m.lineTo(v[E+1],v[E+2]),E+=5;break;case n.MOVE_FX_TO:m.moveTo(v[E+1],v[E+2]),E+=5;break;case n.SAVE:m.save();break;case n.RESTORE:m.restore();break;case n.TRANSLATE:m.translate(v[E+1],v[E+2]),E+=2;break;case n.SCALE:m.scale(v[E+1],v[E+2]),E+=2;break;case n.ROTATE:m.rotate(v[E+1]),E+=1}m.restore()}}},function(t,e){t.exports=function(t){var e=t.width/2,i=t.height/2,n=Math.pow(e-i,2)/Math.pow(e+i,2);return Math.PI*(e+i)*(1+3*n/(10+Math.sqrt(4-3*n)))}},function(t,e,i){var n=i(168),s=i(110),r=i(64),o=i(16);t.exports=function(t,e,i,a){void 0===a&&(a=[]),e||(e=n(t)/i);for(var h=0;hr;){if(o-r>600){var h=o-r+1,u=e-r+1,l=Math.log(h),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(h-c)/h)*(u-h/2<0?-1:1),f=Math.max(r,Math.floor(e-u*c/h+d)),p=Math.min(o,Math.floor(e+(h-u)*c/h+d));i(t,e,f,p,a)}var g=t[e],v=r,m=o;for(n(t,r,e),a(t[o],g)>0&&n(t,r,o);v0;)m--}0===a(t[r],g)?n(t,r,m):n(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};function n(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function s(t,e){return te?1:0}t.exports=i},function(t,e){t.exports=function(t){for(var e=t.length,i=t[0].length,n=new Array(i),s=0;s-1;r--)n[s][r]=t[r][s]}return n}},function(t,e,i){t.exports={AtlasXML:i(499),Canvas:i(498),Image:i(497),JSONArray:i(496),JSONHash:i(495),SpriteSheet:i(494),SpriteSheetFromAtlas:i(493),UnityYAML:i(492)}},function(t,e,i){var n=i(22),s=i(0),r=i(84),o=i(58),a=new s({initialize:function(t,e,i,n){var s=t.manager.game;this.renderer=s.renderer,this.texture=t,this.image=e,this.compressionAlgorithm=null,this.resolution=1,this.width=i||e.naturalWidth||e.width||0,this.height=n||e.naturalHeight||e.height||0,this.scaleMode=o.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isPowerOf2=r(this.width,this.height),this.glTexture=null,this.init(s)},init:function(t){this.renderer&&this.renderer.gl&&(this.isCanvas?this.glTexture=this.renderer.canvasToTexture(this.image):this.glTexture=this.renderer.createTextureFromSource(this.image,this.width,this.height,this.scaleMode)),t.config.pixelArt&&this.setFilter(1)},setFilter:function(t){this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t)},update:function(){this.renderer.gl&&this.isCanvas&&this.renderer.canvasToTexture(this.image,this.glTexture)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&n.remove(this.image),this.renderer=null,this.texture=null,this.image=null}});t.exports=a},function(t,e,i){var n=i(22),s=i(500),r=i(0),o=i(30),a=i(20),h=i(9),u=i(276),l=i(4),c=i(173),d=i(114),f=new r({Extends:h,initialize:function(t){h.call(this),this.game=t,this.name="TextureManager",this.list={},this._tempCanvas=n.create2D(this,1,1),this._tempContext=this._tempCanvas.getContext("2d"),this._pending=0,t.events.once("boot",this.boot,this)},boot:function(){this._pending=2,this.on("onload",this.updatePending,this),this.on("onerror",this.updatePending,this),this.addBase64("__DEFAULT",this.game.config.defaultImage),this.addBase64("__MISSING",this.game.config.missingImage),this.game.events.once("destroy",this.destroy,this)},updatePending:function(){this._pending--,0===this._pending&&(this.off("onload"),this.off("onerror"),this.game.events.emit("ready"))},checkKey:function(t){return!this.exists(t)||(console.error("Texture key already in use: "+t),!1)},remove:function(t){if("string"==typeof t){if(!this.exists(t))return console.warn("No texture found matching key: "+t),this;t=this.get(t)}return this.list.hasOwnProperty(t.key)&&(delete this.list[t.key],t.destroy(),this.emit("removetexture",t.key)),this},addBase64:function(t,e){if(this.checkKey(t)){var i=this,n=new Image;n.onerror=function(){i.emit("onerror",t)},n.onload=function(){var e=i.create(t,n);c.Image(e,0),i.emit("addtexture",t,e),i.emit("onload",t,e)},n.src=e}},addImage:function(t,e,i){var n=null;return this.checkKey(t)&&(n=this.create(t,e),c.Image(n,0),i&&n.setDataSource(i),this.emit("addtexture",t,n)),n},generate:function(t,e){if(this.checkKey(t)){var i=n.create(this,1,1);return e.canvas=i,u(e),this.addCanvas(t,i)}return null},createCanvas:function(t,e,i){if(void 0===e&&(e=256),void 0===i&&(i=256),this.checkKey(t)){var s=n.create(this,e,i,a.CANVAS,!0);return this.addCanvas(t,s)}return null},addCanvas:function(t,e){var i=null;return this.checkKey(t)&&(i=new s(this,t,e,e.width,e.height),this.list[t]=i,this.emit("addtexture",t,i)),i},addAtlas:function(t,e,i,n){return Array.isArray(i.textures)||Array.isArray(i.frames)?this.addAtlasJSONArray(t,e,i,n):this.addAtlasJSONHash(t,e,i,n)},addAtlasJSONArray:function(t,e,i,n){var s=null;if(this.checkKey(t)){if(s=this.create(t,e),Array.isArray(i))for(var r=1===i.length,o=0;o=0&&t<=r.width&&e>=0&&e<=r.height){t+=s.cutX,e+=s.cutY;var a=this._tempContext;a.clearRect(0,0,1,1),a.drawImage(r,t,e,1,1,0,0,1,1);var h=a.getImageData(0,0,1,1);return new o(h.data[0],h.data[1],h.data[2],h.data[3])}}return null},setTexture:function(t,e,i){return this.list[e]&&(t.texture=this.list[e],t.frame=t.texture.get(i)),t},each:function(t,e){for(var i=[null],n=1;n0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit("pause",this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit("resume",this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit("stop",this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit("ended",this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||this.emit("mute",this,t)}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||this.emit("volume",this,t)}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,"rate",t)||(this.calculateRate(),this.emit("rate",this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,"detune",t)||(this.calculateRate(),this.emit("detune",this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit("seek",this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit("loop",this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=s},function(t,e,i){var n=i(77),s=i(0),r=i(180),o=new s({Extends:n,initialize:function(t){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,n.call(this,t)},add:function(t,e){var i=new r(this,t,e);return this.sounds.push(i),i},unlock:function(){this.locked=!1;var t=this;if(this.game.cache.audio.entries.each(function(e,i){for(var n=0;n-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.isTransition&&i.events.emit("transitioninit",n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once("complete",this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status===s.RUNNING&&n.step(t,e)}},resize:function(t,e){for(var i=0;i=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=0;t--){this.scenes[t].sys.destroy()}this.update=o,this.scenes=[],this._pending=[],this._start=[],this._queue=[],this.game=null}});t.exports=u},function(t,e,i){var n=i(55);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e,i){var n=i(0),s=i(9),r=i(6),o=i(13),a=i(11),h=i(1),u=i(12),l=i(186),c=new n({Extends:s,initialize:function(t){s.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted?this.boot():t.events.once("boot",this.boot,this)},boot:function(){var t,e,i,n,s,r,o=this.game.config,a=o.installGlobalPlugins;for(a=a.concat(this._pendingGlobal),t=0;t=this.threshold?this.pressed||(this.pressed=!0,this.events.emit("down",this.pad,this,this.value,t)):this.pressed&&(this.pressed=!1,this.events.emit("up",this.pad,this,this.value,t))}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value)=n.x&&e>=n.y&&t<=n.x+o&&e<=n.y+a))return s;n.getWorldPoint(t,e,r);for(var h=n.cull(i),u={x:0,y:0},l=this.game.config.resolution,c=this._tempMatrix,f=0;fe.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=i(24),s=i(0),r=i(206),o=i(205),a=i(4),h=new s({initialize:function(t,e,i){this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,a(i,"frames",[]),a(i,"defaultTextureKey",null)),this.frameRate=a(i,"frameRate",null),this.duration=a(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=a(i,"skipMissedFrames",!0),this.delay=a(i,"delay",0),this.repeat=a(i,"repeat",0),this.repeatDelay=a(i,"repeatDelay",0),this.yoyo=a(i,"yoyo",!1),this.showOnStart=a(i,"showOnStart",!1),this.hideOnComplete=a(i,"hideOnComplete",!1),this.paused=!1,this.manager.on("pauseall",this.pause,this),this.manager.on("resumeall",this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=u[0],u[0].prevFrame=s;var v=1/(u.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._timeScale=1,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo),t.updateFrame(this.frames[e])},getFrameByProgress:function(t){return t=n(t,0,1),r(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?(t.forward=!1,t.updateFrame(e.prevFrame),this.getNextTick(t)):t.repeatCounter>0?this.repeatAnimation(t):this.completeAnimation(t):(t.updateFrame(e.nextFrame),this.getNextTick(t))},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t.repeatCounter>0?this.repeatAnimation(t):this.completeAnimation(t):(t.updateFrame(e.prevFrame),this.getNextTick(t))},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);t._repeatDelay>0&&!1===t.pendingRepeat?(t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay):(t.repeatCounter--,t.forward=!0,t.updateFrame(t.currentFrame.nextFrame),t.isPlaying&&(this.getNextTick(t),t.pendingRepeat=!1,t.parent.emit("animationrepeat",this,t.currentFrame,t.repeatCounter)))},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t=this.frames.length,e=1/(t-1),i=0;i1&&(n.prevFrame=this.frames[i-1],n.nextFrame=this.frames[i+1])}return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off("pauseall",this.pause,this),this.manager.off("resumeall",this.resume,this),this.manager.remove(this.key);for(var t=0;t=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,u,l,d,f,p,g,v,m,y;for(u=l=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(l,t.leaf?o(r):r),c+=d(l);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e,i){var n=new(i(0))({initialize:function(){this._pending=[],this._active=[],this._destroy=[],this._toProcess=0},add:function(t){return this._pending.push(t),this._toProcess++,this},remove:function(t){return this._destroy.push(t),this._toProcess++,this},update:function(){if(0===this._toProcess)return this._active;var t,e,i=this._destroy,n=this._active;for(t=0;tu+l?(g=(p-=u+l)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=u)/l,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e,i){var n=i(5),s=i(71);t.exports=function(t,e,i){void 0===i&&(i=new n);var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();if(e<=0||e>=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),u=s(o),l=s(a),c=(h+u+l)*e,d=0;return ch+u?(d=(c-=h+u)/l,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/u,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i){for(var n=!1,s=-1,r=t.points.length-1;++s=0&&r>=0&&s+r<1&&(n.push({x:e[b].x,y:e[b].y}),i)));b++);return n}},function(t,e,i){var n=i(0),s=i(143),r=new n({Extends:s,initialize:function(t,e,i,n,r){s.call(this,t,e,i,[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,1,1,0,0,1,1,1,0],[16777215,16777215,16777215,16777215,16777215,16777215],[1,1,1,1,1,1],n,r),this.resetPosition()},topLeftX:{get:function(){return this.x+this.vertices[0]},set:function(t){this.vertices[0]=t-this.x,this.vertices[6]=t-this.x}},topLeftY:{get:function(){return this.y+this.vertices[1]},set:function(t){this.vertices[1]=t-this.y,this.vertices[7]=t-this.y}},topRightX:{get:function(){return this.x+this.vertices[10]},set:function(t){this.vertices[10]=t-this.x}},topRightY:{get:function(){return this.y+this.vertices[11]},set:function(t){this.vertices[11]=t-this.y}},bottomLeftX:{get:function(){return this.x+this.vertices[2]},set:function(t){this.vertices[2]=t-this.x}},bottomLeftY:{get:function(){return this.y+this.vertices[3]},set:function(t){this.vertices[3]=t-this.y}},bottomRightX:{get:function(){return this.x+this.vertices[4]},set:function(t){this.vertices[4]=t-this.x,this.vertices[8]=t-this.x}},bottomRightY:{get:function(){return this.y+this.vertices[5]},set:function(t){this.vertices[5]=t-this.y,this.vertices[9]=t-this.y}},topLeftAlpha:{get:function(){return this.alphas[0]},set:function(t){this.alphas[0]=t,this.alphas[3]=t}},topRightAlpha:{get:function(){return this.alphas[5]},set:function(t){this.alphas[5]=t}},bottomLeftAlpha:{get:function(){return this.alphas[1]},set:function(t){this.alphas[1]=t}},bottomRightAlpha:{get:function(){return this.alphas[2]},set:function(t){this.alphas[2]=t,this.alphas[4]=t}},topLeftColor:{get:function(){return this.colors[0]},set:function(t){this.colors[0]=t,this.colors[3]=t}},topRightColor:{get:function(){return this.colors[5]},set:function(t){this.colors[5]=t}},bottomLeftColor:{get:function(){return this.colors[1]},set:function(t){this.colors[1]=t}},bottomRightColor:{get:function(){return this.colors[2]},set:function(t){this.colors[2]=t,this.colors[4]=t}},setTopLeft:function(t,e){return this.topLeftX=t,this.topLeftY=e,this},setTopRight:function(t,e){return this.topRightX=t,this.topRightY=e,this},setBottomLeft:function(t,e){return this.bottomLeftX=t,this.bottomLeftY=e,this},setBottomRight:function(t,e){return this.bottomRightX=t,this.bottomRightY=e,this},resetPosition:function(){var t=this.x,e=this.y,i=Math.floor(this.width/2),n=Math.floor(this.height/2);return this.setTopLeft(t-i,e-n),this.setTopRight(t+i,e-n),this.setBottomLeft(t-i,e+n),this.setBottomRight(t+i,e+n),this},resetAlpha:function(){var t=this.alphas;return t[0]=1,t[1]=1,t[2]=1,t[3]=1,t[4]=1,t[5]=1,this},resetColors:function(){var t=this.colors;return t[0]=16777215,t[1]=16777215,t[2]=16777215,t[3]=16777215,t[4]=16777215,t[5]=16777215,this},reset:function(){return this.resetPosition(),this.resetAlpha(),this.resetColors()}});t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(15),o=i(20),a=i(2),h=i(396),u=i(882),l=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScaleMode,r.ScrollFactor,r.Size,r.Texture,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,u,l){var c=t.sys.game.renderer;a.call(this,t,"TileSprite"),this.tilePositionX=0,this.tilePositionY=0,this.dirty=!0,this.tileTexture=null,this.renderer=c,this.setTexture(u,l),this.setPosition(e,i),this.setSize(s,r),this.setOriginFromFrame(),this.initPipeline("TextureTintPipeline"),this.potWidth=h(this.frame.width),this.potHeight=h(this.frame.height),this.canvasPattern=null,this.canvasBuffer=n.create2D(this,this.potWidth,this.potHeight),this.canvasBufferCtx=this.canvasBuffer.getContext("2d"),this.oldFrame=null,this.updateTileTexture(),t.sys.game.config.renderType===o.WEBGL&&t.sys.game.renderer.onContextRestored(function(t){var e=t.gl;this.tileTexture=null,this.dirty=!0,this.tileTexture=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.canvasBuffer,this.potWidth,this.potHeight)},this)},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},updateTileTexture:function(){(this.dirty||this.oldFrame!==this.frame)&&(this.oldFrame=this.frame,this.canvasBufferCtx.clearRect(0,0,this.canvasBuffer.width,this.canvasBuffer.height),this.renderer.gl?(this.canvasBufferCtx.drawImage(this.frame.source.image,this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight,0,0,this.potWidth,this.potHeight),this.tileTexture=this.renderer.canvasToTexture(this.canvasBuffer,this.tileTexture)):(this.canvasBuffer.width=this.frame.cutWidth,this.canvasBuffer.height=this.frame.cutHeight,this.canvasBufferCtx.drawImage(this.frame.source.image,this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight,0,0,this.frame.cutWidth,this.frame.cutHeight),this.canvasPattern=this.canvasBufferCtx.createPattern(this.canvasBuffer,"repeat")),this.dirty=!1)},destroy:function(){this.renderer.gl&&this.renderer.deleteTexture(this.tileTexture),n.remove(this.canvasBuffer),this.canvasPattern=null,this.canvasBufferCtx=null,this.canvasBuffer=null,this.renderer=null,this.visible=!1}});t.exports=l},function(t,e,i){var n=i(22),s=i(0),r=i(15),o=i(20),a=i(2),h=i(890),u=i(887),l=i(886),c=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Depth,r.Flip,r.GetBounds,r.Mask,r.MatrixStack,r.Origin,r.Pipeline,r.ScaleMode,r.ScrollFactor,r.Tint,r.Transform,r.Visible,h],initialize:function(t,e,i,s,r){if(void 0===s&&(s=32),void 0===r&&(r=32),a.call(this,t,"RenderTexture"),this.initMatrixStack(),this.renderer=t.sys.game.renderer,this.globalTint=16777215,this.globalAlpha=1,this.renderer.type===o.WEBGL){var h=this.renderer.gl;this.gl=h,this.fill=l.fill,this.clear=l.clear,this.draw=l.draw,this.drawFrame=l.drawFrame,this.texture=this.renderer.createTexture2D(0,h.NEAREST,h.NEAREST,h.CLAMP_TO_EDGE,h.CLAMP_TO_EDGE,h.RGBA,null,s,r,!1),this.framebuffer=this.renderer.createFramebuffer(s,r,this.texture,!1)}else this.renderer.type===o.CANVAS&&(this.fill=u.fill,this.clear=u.clear,this.draw=u.draw,this.drawFrame=u.drawFrame,this.canvas=n.create2D(this,s,r),this.context=this.canvas.getContext("2d"));this.setPosition(e,i),this.setSize(s,r),this.initPipeline("TextureTintPipeline")},destroy:function(){a.prototype.destroy.call(this),this.renderer.type===o.WEBGL&&(this.renderer.deleteTexture(this.texture),this.renderer.deleteFramebuffer(this.framebuffer))},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this}});t.exports=c},function(t,e,i){var n=i(0),s=i(15),r=i(2),o=i(443),a=i(92),h=i(441),u=i(894),l=new n({Extends:r,Mixins:[s.Depth,s.Visible,s.Pipeline,u],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline("TextureTintPipeline"),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;s0)for(var e=this.list,i=new a,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},destroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null,o.prototype.destroy.call(this)}});t.exports=c},function(t,e,i){var n=i(906),s=i(903),r=i(0),o=i(15),a=i(124),h=i(2),u=i(92),l=new r({Extends:h,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.ScaleMode,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,n],initialize:function(t,e,i,n,s){h.call(this,t,"Blitter"),this.setTexture(n,s),this.setPosition(e,i),this.initPipeline("TextureTintPipeline"),this.children=new u,this.renderList=[],this.dirty=!1},create:function(t,e,i,n,r){void 0===n&&(n=!0),void 0===r&&(r=this.children.length),void 0===i?i=this.frame:i instanceof a||(i=this.texture.get(i));var o=new s(this,t,e,i,n);return this.children.addAt(o,r,!1),this.dirty=!0,o},createFromCallback:function(t,e,i,n){for(var s=this.createMultiple(e,i,n),r=0;r0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0}});t.exports=l},function(t,e,i){var n=i(0),s=i(15),r=i(2),o=i(460),a=i(910),h=i(909),u=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Mask,s.Origin,s.Pipeline,s.ScaleMode,s.ScrollFactor,s.Texture,s.Tint,s.Transform,s.Visible,h],initialize:function(t,e,i,n,s,o){void 0===s&&(s=""),r.call(this,t,"BitmapText"),this.font=n;var a=this.scene.sys.cache.bitmapFont.get(n);this.fontData=a.data,this.text="",this.fontSize=o||this.fontData.size,this.letterSpacing=0,this.setText(s),this.setTexture(a.texture,a.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline("TextureTintPipeline"),this._bounds=this.getTextBounds()},setFontSize:function(t){return this.fontSize=t,this},setLetterSpacing:function(t){return void 0===t&&(t=0),this.letterSpacing=t,this},setText:function(t){return t||0===t||(t=""),Array.isArray(t)&&(t=t.join("\n")),t!==this.text&&(this.text=t.toString(),this.updateDisplayOrigin()),this},getTextBounds:function(t){return this._bounds=o(this,t),this._bounds},width:{get:function(){return this.getTextBounds(!1),this._bounds.global.width}},height:{get:function(){return this.getTextBounds(!1),this._bounds.global.height}},toJSON:function(){var t=s.ToJSON(this),e={font:this.font,text:this.text,fontSize:this.fontSize,letterSpacing:this.letterSpacing};return t.data=e,t}});u.ParseFromAtlas=a,t.exports=u},function(t,e,i){var n=i(4),s=i(94),r=function(t,e,i){for(var n=[],s=0;s0?Math.ceil(t):Math.floor(t)}},function(t,e){t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},function(t,e,i){var n=i(7);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var u=Math.sin(-r),l=Math.cos(-r),c=l*o,d=-u*o,f=u*a,p=l*a,g=c*p-d*f,v=p/g,m=-d/g,y=-f/g,x=c/g,w=(f*s-p*i)/g,b=-(c*s-d*i)/g;return h.x=t*v+e*y+w,h.y=t*m+e*x+b,h}},function(t,e,i){"use strict";function n(t,e,i){i=i||2;var n,a,h,u,l,f,g,v=e&&e.length,m=v?e[0]*i:t.length,y=s(t,0,m,i,!0),x=[];if(!y)return x;if(v&&(y=function(t,e,i,n){var o,a,h,u,l,f=[];for(o=0,a=e.length;o80*i){n=h=t[0],a=u=t[1];for(var w=i;wh&&(h=l),f>u&&(u=f);g=Math.max(h-n,u-a)}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===C(t,e,i,n)>0)for(r=e;r=e;r-=n)o=T(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(S(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(S(n),(n=e=n.prev)===n.next)return null;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,u=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,u*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),S(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=u(t,e,i),e,i,n,s,c,2):2===d&&l(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,l=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(u,l,e,i,n),p=t.nextZ;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function u(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&w(s,r)&&w(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),S(n),S(n.next),n=t=r),n=n.next}while(n!==t);return n}function l(t,e,i,n,s,a){var h=t;do{for(var u=h.next.next;u!==h.prev;){if(h.i!==u.i&&v(h,u)){var l=b(h,u);return h=r(h,h.next),l=r(l,l.next),o(h,e,i,n,s,a),void o(l,e,i,n,s,a)}u=u.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=l&&s!==n.x&&g(ri.x)&&w(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=b(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)/s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)/s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&w(t,e)&&w(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function w(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function b(t,e){var i=new A(t.i,t.x,t.y),n=new A(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function T(t,e,i,n){var s=new A(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e,i){var n=i(0),s=i(117),r=i(256),o=i(199),a=i(520),h=i(519),u=i(27),l=i(83),c=function(t,e,i,n,s){this.x=t,this.y=e,this.width=i,this.rgb=n,this.alpha=s},d=function(t,e,i,n,s){this.points=[],this.pointsLength=1,this.points[0]=new c(t,e,i,n,s)},f=new Float32Array([1,0,0,1,0,0]),p=new Float32Array(6e3),g=0,v=[],m=new n({Extends:l,Mixins:[o],initialize:function(t){l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.topology?t.topology:t.renderer.gl.TRIANGLES,vertShader:t.vertShader?t.vertShader:h,fragShader:t.fragShader?t.fragShader:a,vertexCapacity:t.vertexCapcity?t.vertexCapacity:12e3,vertexSize:t.vertexSize?t.vertexSize:2*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT,attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:2*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.tempTriangle=[{x:0,y:0,width:0,rgb:16777215,alpha:1},{x:0,y:0,width:0,rgb:16777215,alpha:1},{x:0,y:0,width:0,rgb:16777215,alpha:1},{x:0,y:0,width:0,rgb:16777215,alpha:1}],this.polygonCache=[],this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},batchFillRect:function(t,e,i,n,s,r,o,a,h,l,c,d,f,p,g,v,m,y){this.renderer.setPipeline(this),this.vertexCount+6>this.vertexCapacity&&this.flush();var x=this.vertexViewF32,w=this.vertexViewU32,b=this.vertexCount*this.vertexComponentCount,T=r+a,S=o+h,A=y[0],C=y[1],M=y[2],E=y[3],_=d*A+f*M,P=d*C+f*E,L=p*A+g*M,F=p*C+g*E,k=v*A+m*M+y[4],R=v*C+m*E+y[5],O=r*_+o*L+k,D=r*P+o*F+R,I=r*_+S*L+k,B=r*P+S*F+R,Y=T*_+S*L+k,X=T*P+S*F+R,z=T*_+o*L+k,N=T*P+o*F+R,U=u.getTintAppendFloatAlphaAndSwap(l,c);x[b+0]=O,x[b+1]=D,w[b+2]=U,x[b+3]=I,x[b+4]=B,w[b+5]=U,x[b+6]=Y,x[b+7]=X,w[b+8]=U,x[b+9]=O,x[b+10]=D,w[b+11]=U,x[b+12]=Y,x[b+13]=X,w[b+14]=U,x[b+15]=z,x[b+16]=N,w[b+17]=U,this.vertexCount+=6},batchFillTriangle:function(t,e,i,n,s,r,o,a,h,l,c,d,f,p,g,v,m,y,x,w){this.renderer.setPipeline(this),this.vertexCount+3>this.vertexCapacity&&this.flush();var b=this.vertexViewF32,T=this.vertexViewU32,S=this.vertexCount*this.vertexComponentCount,A=w[0],C=w[1],M=w[2],E=w[3],_=p*A+g*M,P=p*C+g*E,L=v*A+m*M,F=v*C+m*E,k=y*A+x*M+w[4],R=y*C+x*E+w[5],O=r*_+o*L+k,D=r*P+o*F+R,I=a*_+h*L+k,B=a*P+h*F+R,Y=l*_+c*L+k,X=l*P+c*F+R,z=u.getTintAppendFloatAlphaAndSwap(d,f);b[S+0]=O,b[S+1]=D,T[S+2]=z,b[S+3]=I,b[S+4]=B,T[S+5]=z,b[S+6]=Y,b[S+7]=X,T[S+8]=z,this.vertexCount+=3},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h,u,l,c,d,f,p,g,v,m,y,x,w){var b=this.tempTriangle;b[0].x=r,b[0].y=o,b[0].width=c,b[0].rgb=d,b[0].alpha=f,b[1].x=a,b[1].y=h,b[1].width=c,b[1].rgb=d,b[1].alpha=f,b[2].x=u,b[2].y=l,b[2].width=c,b[2].rgb=d,b[2].alpha=f,b[3].x=r,b[3].y=o,b[3].width=c,b[3].rgb=d,b[3].alpha=f,this.batchStrokePath(t,e,i,n,s,b,c,d,f,p,g,v,m,y,x,!1,w)},batchFillPath:function(t,e,i,n,s,o,a,h,l,c,d,f,p,g,v){this.renderer.setPipeline(this);for(var m,y,x,w,b,T,S,A,C,M,E,_,P,L,F,k,R,O=o.length,D=this.polygonCache,I=this.vertexViewF32,B=this.vertexViewU32,Y=0,X=v[0],z=v[1],N=v[2],U=v[3],G=l*X+c*N,W=l*z+c*U,V=d*X+f*N,H=d*z+f*U,j=p*X+g*N+v[4],q=p*z+g*U+v[5],K=u.getTintAppendFloatAlphaAndSwap(a,h),J=0;Jthis.vertexCapacity&&this.flush(),Y=this.vertexCount*this.vertexComponentCount,_=(T=D[x+0])*G+(S=D[x+1])*V+j,P=T*W+S*H+q,L=(A=D[w+0])*G+(C=D[w+1])*V+j,F=A*W+C*H+q,k=(M=D[b+0])*G+(E=D[b+1])*V+j,R=M*W+E*H+q,I[Y+0]=_,I[Y+1]=P,B[Y+2]=K,I[Y+3]=L,I[Y+4]=F,B[Y+5]=K,I[Y+6]=k,I[Y+7]=R,B[Y+8]=K,this.vertexCount+=3;D.length=0},batchStrokePath:function(t,e,i,n,s,r,o,a,h,l,c,d,f,p,g,v,m){var y,x;this.renderer.setPipeline(this);for(var w,b,T,S,A=r.length,C=this.polygonCache,M=this.vertexViewF32,E=this.vertexViewU32,_=u.getTintAppendFloatAlphaAndSwap,P=0;P+1this.vertexCapacity&&this.flush(),w=C[L-1]||C[F-1],b=C[L],M[(T=this.vertexCount*this.vertexComponentCount)+0]=w[6],M[T+1]=w[7],E[T+2]=_(w[8],h),M[T+3]=w[0],M[T+4]=w[1],E[T+5]=_(w[2],h),M[T+6]=b[9],M[T+7]=b[10],E[T+8]=_(b[11],h),M[T+9]=w[0],M[T+10]=w[1],E[T+11]=_(w[2],h),M[T+12]=w[6],M[T+13]=w[7],E[T+14]=_(w[8],h),M[T+15]=b[3],M[T+16]=b[4],E[T+17]=_(b[5],h),this.vertexCount+=6;C.length=0},batchLine:function(t,e,i,n,s,r,o,a,h,l,c,d,f,p,g,v,m,y,x,w,b){this.renderer.setPipeline(this),this.vertexCount+6>this.vertexCapacity&&this.flush();var T=b[0],S=b[1],A=b[2],C=b[3],M=g*T+v*A,E=g*S+v*C,_=m*T+y*A,P=m*S+y*C,L=x*T+w*A+b[4],F=x*S+w*C+b[5],k=this.vertexViewF32,R=this.vertexViewU32,O=a-r,D=h-o,I=Math.sqrt(O*O+D*D),B=l*(h-o)/I,Y=l*(r-a)/I,X=c*(h-o)/I,z=c*(r-a)/I,N=a-X,U=h-z,G=r-B,W=o-Y,V=a+X,H=h+z,j=r+B,q=o+Y,K=N*M+U*_+L,J=N*E+U*P+F,Z=G*M+W*_+L,Q=G*E+W*P+F,$=V*M+H*_+L,tt=V*E+H*P+F,et=j*M+q*_+L,it=j*E+q*P+F,nt=u.getTintAppendFloatAlphaAndSwap,st=nt(d,p),rt=nt(f,p),ot=this.vertexCount*this.vertexComponentCount;return k[ot+0]=K,k[ot+1]=J,R[ot+2]=rt,k[ot+3]=Z,k[ot+4]=Q,R[ot+5]=st,k[ot+6]=$,k[ot+7]=tt,R[ot+8]=rt,k[ot+9]=Z,k[ot+10]=Q,R[ot+11]=st,k[ot+12]=et,k[ot+13]=it,R[ot+14]=st,k[ot+15]=$,k[ot+16]=tt,R[ot+17]=rt,this.vertexCount+=6,[K,J,f,Z,Q,d,$,tt,f,et,it,d]},batchGraphics:function(t,e,i){if(!(t.commandBuffer.length<=0)){var n=null;i&&(n=i.matrix),this.renderer.setPipeline(this);var r,o,a,h,u,l,m,y,x=e.scrollX*t.scrollFactorX,w=e.scrollY*t.scrollFactorY,b=t.x,T=t.y,S=t.scaleX,A=t.scaleY,C=t.rotation,M=t.commandBuffer,E=t.alpha,_=1,P=1,L=0,F=0,k=1,R=e.matrix.matrix,O=null,D=0,I=0,B=0,Y=0,X=0,z=0,N=0,U=0,G=0,W=0,V=null,H=Math.sin,j=Math.cos,q=2*Math.PI,K=H(C),J=j(C),Z=J*S,Q=K*S,$=-K*A,tt=J*A,et=b,it=T,nt=R[0],st=R[1],rt=R[2],ot=R[3],at=R[4],ht=R[5];if(n){var ut=n[0],lt=n[1],ct=n[2],dt=n[3],ft=n[4],pt=n[5],gt=-x,vt=-w,mt=ut*nt+lt*rt,yt=ut*st+lt*ot,xt=ct*nt+dt*rt,wt=ct*st+dt*ot;r=Z*mt+Q*xt,o=Z*yt+Q*wt,a=$*mt+tt*xt,h=$*yt+tt*wt,u=et*mt+it*xt+(ft*nt+pt*rt+(gt*nt+vt*rt+at)),l=et*yt+it*wt+(ft*st+pt*ot+(gt*st+vt*ot+ht))}else r=Z*nt+Q*rt,o=Z*st+Q*ot,a=$*nt+tt*rt,h=$*st+tt*ot,u=(et-=x)*nt+(it-=w)*rt+at,l=et*st+it*ot+ht;v.length=0;for(var bt=0,Tt=M.length;bt0&&(G=G%q-q):G>q?G=q:G<0&&(G=q+G%q);D<1;)I=X+j(Y=G*D+U)*N,B=z+H(Y)*N,O.points.push(new c(I,B,k,L,_*E)),D+=.01;I=X+j(Y=G+U)*N,B=z+H(Y)*N,O.points.push(new c(I,B,k,L,_*E)),bt+=6;break;case s.LINE_STYLE:k=M[bt+1],L=M[bt+2],_=M[bt+3],bt+=3;break;case s.FILL_STYLE:F=M[bt+1],P=M[bt+2],bt+=2;break;case s.BEGIN_PATH:v.length=0,O=null;break;case s.CLOSE_PATH:O&&O.points.length&&O.points.push(O.points[0]);break;case s.FILL_PATH:for(m=0,y=v.length;m=0&&n>=0;return r[0]===t&&r[1]===e&&r[2]===i&&r[3]===n||this.flush(),r[0]=t,r[1]=e,r[2]=i,r[3]=n,this.currentScissorEnabled=o,o?(s.disable(s.SCISSOR_TEST),this):(s.enable(s.SCISSOR_TEST),s.scissor(t,s.drawingBufferHeight-e-n,i,n),this)},pushScissor:function(t,e,i,n){var s=this.scissorStack,r=this.currentScissorIdx,o=this.currentScissor;return s[r+0]=o[0],s[r+1]=o[1],s[r+2]=o[2],s[r+3]=o[3],this.currentScissorIdx+=4,this.setScissor(t,e,i,n),this},popScissor:function(){var t=this.scissorStack,e=this.currentScissorIdx-4,i=t[e+0],n=t[e+1],s=t[e+2],r=t[e+3];return this.currentScissorIdx=e,this.setScissor(i,n,s,r),this},setPipeline:function(t){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(),this.currentPipeline},setBlendMode:function(t){var e=this.gl,i=this.blendModes[t];return t!==s.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t&&(this.flush(),e.enable(e.BLEND),e.blendEquation(i.equation),i.func.length>2?e.blendFuncSeparate(i.func[0],i.func[1],i.func[2],i.func[3]):e.blendFunc(i.func[0],i.func[1]),this.currentBlendMode=t),this},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>16&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setTexture2D:function(t,e){var i=this.gl;return t!==this.currentTextures[e]&&(this.flush(),this.currentActiveTextureUnit!==e&&(i.activeTexture(i.TEXTURE0+e),this.currentActiveTextureUnit=e),i.bindTexture(i.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t){var e=this.gl;return t!==this.currentFramebuffer&&(this.flush(),e.bindFramebuffer(e.FRAMEBUFFER,t),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var o=this.gl,a=o.NEAREST,h=o.CLAMP_TO_EDGE;return e=t?t.width:e,i=t?t.height:i,r(e,i)&&(h=o.REPEAT),n===s.ScaleModes.LINEAR?a=o.LINEAR:(n===s.ScaleModes.NEAREST||this.config.pixelArt)&&(a=o.NEAREST),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,a,a,h,h,o.RGBA,t):this.createTexture2D(0,a,a,h,h,o.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,h,u){var l=this.gl,c=l.createTexture();return u=void 0===u||null===u||u,this.setTexture2D(c,0),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,e),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,i),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,s),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,n),l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),null===o||void 0===o?l.texImage2D(l.TEXTURE_2D,t,r,a,h,0,r,l.UNSIGNED_BYTE,null):(l.texImage2D(l.TEXTURE_2D,t,r,r,l.UNSIGNED_BYTE,o),a=o.width,h=o.height),this.setTexture2D(null,0),c.isAlphaPremultiplied=u,c.isRenderTexture=!1,c.width=a,c.height=h,this.nativeTextures.push(c),c},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&o(this.nativeTextures,e),this.gl.deleteTexture(t),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=this.config.resolution,i=Math.floor(t.x*e),n=Math.floor(t.y*e),s=Math.floor(t.width*e),r=Math.floor(t.height*e);if(this.pushScissor(i,n,s,r),t.backgroundColor.alphaGL>0){var o=t.backgroundColor,h=this.pipelines.FlatTintPipeline;h.batchFillRect(0,0,1,1,0,t.x,t.y,t.width,t.height,a.getTintFromFloats(o.redGL,o.greenGL,o.blueGL,1),o.alphaGL,1,0,0,1,0,0,[1,0,0,1,0,0]),h.flush()}},postRenderCamera:function(t){var e=this.pipelines.FlatTintPipeline,i=t.flashEffect.postRenderWebGL(e,a.getTintFromFloats);(t.fadeEffect.postRenderWebGL(e,a.getTintFromFloats)||i)&&e.flush(),this.popScissor()},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.config.backgroundColor,i=this.pipelines;for(var n in t.clearColor(e.redGL,e.greenGL,e.blueGL,e.alphaGL),this.config.clearBeforeRender&&t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT),i)i[n].onPreRender()}},render:function(t,e,i,n){if(!this.contextLost){var r=e.list,o=r.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);this.preRenderCamera(n);for(var u=0;u0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,u=a*i+o*e-s*n,l=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+u*-o-l*-r,this.y=u*a+c*-r+l*-s-h*-o,this.z=l*a+c*-o+h*-r-u*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8],l=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,w=i*a-n*o,b=i*h-s*o,T=n*h-s*a,S=u*p-l*f,A=u*g-c*f,C=u*v-d*f,M=l*g-c*p,E=l*v-d*p,_=c*v-d*g,P=m*_-y*E+x*M+w*C-b*A+T*S;return P?(P=1/P,t[0]=(o*_-a*E+h*M)*P,t[1]=(n*E-i*_-s*M)*P,t[2]=(p*T-g*b+v*w)*P,t[3]=(c*b-l*T-d*w)*P,t[4]=(a*C-r*_-h*A)*P,t[5]=(e*_-n*C+s*A)*P,t[6]=(g*x-f*T-v*y)*P,t[7]=(u*T-c*x+d*y)*P,t[8]=(r*E-o*C+h*S)*P,t[9]=(i*C-e*E-s*S)*P,t[10]=(f*b-p*x+v*m)*P,t[11]=(l*x-u*b-d*m)*P,t[12]=(o*A-r*M-a*S)*P,t[13]=(e*M-i*A+n*S)*P,t[14]=(p*y-f*w-g*m)*P,t[15]=(u*w-l*y+c*m)*P,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8],l=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-l*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-l*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+l*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-u*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-u*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+u*(n*h-s*a),t[8]=r*(l*v-d*p)-u*(o*v-h*p)+f*(o*d-h*l),t[9]=-(e*(l*v-d*p)-u*(i*v-s*p)+f*(i*d-s*l)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*l)-r*(i*d-s*l)+u*(i*h-s*o)),t[12]=-(r*(l*g-c*p)-u*(o*g-a*p)+f*(o*c-a*l)),t[13]=e*(l*g-c*p)-u*(i*g-n*p)+f*(i*c-n*l),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*l)-r*(i*c-n*l)+u*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8],l=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(l*v-d*p)+(e*h-s*r)*(l*g-c*p)+(i*a-n*o)*(u*v-d*f)-(i*h-s*o)*(u*g-c*f)+(n*h-s*a)*(u*p-l*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],u=e[7],l=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],w=y[1],b=y[2],T=y[3];return e[0]=x*i+w*o+b*l+T*p,e[1]=x*n+w*a+b*c+T*g,e[2]=x*s+w*h+b*d+T*v,e[3]=x*r+w*u+b*f+T*m,x=y[4],w=y[5],b=y[6],T=y[7],e[4]=x*i+w*o+b*l+T*p,e[5]=x*n+w*a+b*c+T*g,e[6]=x*s+w*h+b*d+T*v,e[7]=x*r+w*u+b*f+T*m,x=y[8],w=y[9],b=y[10],T=y[11],e[8]=x*i+w*o+b*l+T*p,e[9]=x*n+w*a+b*c+T*g,e[10]=x*s+w*h+b*d+T*v,e[11]=x*r+w*u+b*f+T*m,x=y[12],w=y[13],b=y[14],T=y[15],e[12]=x*i+w*o+b*l+T*p,e[13]=x*n+w*a+b*c+T*g,e[14]=x*s+w*h+b*d+T*v,e[15]=x*r+w*u+b*f+T*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,u=s*o;return this.set(h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,u*o+i,u*a-n*r,0,h*a-n*o,u*a+n*r,s*a*a+i,0,0,0,0,1),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),u=1-h,l=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],w=i[10],b=i[11],T=n*n*u+h,S=s*n*u+r*a,A=r*n*u-s*a,C=n*s*u-r*a,M=s*s*u+h,E=r*s*u+n*a,_=n*r*u+s*a,P=s*r*u-n*a,L=r*r*u+h;return i[0]=l*T+p*S+y*A,i[1]=c*T+g*S+x*A,i[2]=d*T+v*S+w*A,i[3]=f*T+m*S+b*A,i[4]=l*C+p*M+y*E,i[5]=c*C+g*M+x*E,i[6]=d*C+v*M+w*E,i[7]=f*C+m*M+b*E,i[8]=l*_+p*P+y*L,i[9]=c*_+g*P+x*L,i[10]=d*_+v*P+w*L,i[11]=f*_+m*P+b*L,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],u=e[9],l=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+u*i,e[6]=o*n+l*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=u*n-r*i,e[10]=l*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],u=e[9],l=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-u*i,e[2]=o*n-l*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+u*n,e[10]=o*i+l*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],u=e[5],l=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+u*i,e[2]=o*n+l*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=u*n-r*i,e[6]=l*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,u=r+r,l=n*a,c=n*h,d=n*u,f=s*h,p=s*u,g=r*u,v=o*a,m=o*h,y=o*u;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(l+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(l+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,u=i*o,l=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=l+m,e[2]=c-v,e[3]=0,e[4]=l-m,e[5]=1-(u+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(u+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),u=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*u,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*u,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,u=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,u=0===u?u:1/u,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*u,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*u,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,u=i.z,l=e.x,c=e.y,d=e.z;if(Math.abs(s-l)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-l,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-u*(p*=v),y=u*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var w=p*x-g*y,b=g*m-f*x,T=f*y-p*m;return(v=Math.sqrt(w*w+b*b+T*T))?(w*=v=1/v,b*=v,T*=v):(w=0,b=0,T=0),n[0]=m,n[1]=w,n[2]=f,n[3]=0,n[4]=y,n[5]=b,n[6]=p,n[7]=0,n[8]=x,n[9]=T,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(w*s+b*r+T*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),u=Math.cos(i);return n[10]=1,n[15]=1,n[0]=u,n[1]=h,n[4]=-h,n[5]=u,h=Math.sin(e),u=Math.cos(e),o[0]=1,o[15]=1,o[5]=u,o[10]=u,o[9]=-h,o[6]=h,h=Math.sin(t),u=Math.cos(t),a[5]=1,a[15]=1,a[0]=u,a[2]=-h,a[8]=h,a[10]=u,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(278),r=i(552),o=i(551),a=i(550),h=i(70),u=i(148),l=i(7),c=i(86),d=i(277),f=new c,p=new d,g=new c,v=new c,m=new s,y=new n({initialize:function(t){this.scene=t,this.displayList=t.sys.displayList,this.updateList=t.sys.updateList,this.name="",this.direction=new c(0,0,-1),this.up=new c(0,1,0),this.position=new c,this.pixelScale=128,this.projection=new s,this.view=new s,this.combined=new s,this.invProjectionView=new s,this.near=1,this.far=100,this.ray={origin:new c,direction:new c},this.viewportWidth=0,this.viewportHeight=0,this.billboardMatrixDirty=!0,this.children=new h},setPosition:function(t,e,i){return this.position.set(t,e,i),this.update()},setScene:function(t){return this.scene=t,this},setPixelScale:function(t){return this.pixelScale=t,this.update()},add:function(t){return this.children.set(t),this.updateChildren(),t},remove:function(t){return this.displayList.remove(t.gameObject),this.updateList.remove(t.gameObject),this.children.delete(t),this},clear:function(){for(var t=this.getChildren(),e=0;e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(30),s=i(282);t.exports=function(t){var e=s(t);return new n(e.r,e.g,e.b,e.a)}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e,i){var n=i(30);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;i--){var n=Math.floor(this.frac()*(e+1)),s=t[n];t[n]=t[i],t[i]=s}return t}});t.exports=n},function(t,e,i){var n=i(132),s=i(64),r=i(16),o=i(5);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=s(e,0,r.PI2);return n(t,a,i)}},function(t,e){t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},,,function(t,e,i){var n=new(i(0))({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.once("remove",this.remove,this),this.isPlaying=!1,this.currentAnim=null,this.currentFrame=null,this._timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this._delay=0,this._repeat=0,this._repeatDelay=0,this._yoyo=!1,this.forward=!0,this.accumulator=0,this.nextTick=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},setDelay:function(t){return void 0===t&&(t=0),this._delay=t,this.parent},getDelay:function(){return this._delay},delayedPlay:function(t,e,i){return this.play(e,!0,i),this.nextTick+=t,this.parent},getCurrentKey:function(){if(this.currentAnim)return this.currentAnim.key},load:function(t,e){return void 0===e&&(e=0),this.isPlaying&&this.stop(),this.animationManager.load(this,t,e),this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.updateFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.updateFrame(t),this.parent},isPaused:{get:function(){return this._paused}},play:function(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=0),e&&this.isPlaying&&this.currentAnim.key===t)return this.parent;this.load(t,i);var n=this.currentAnim,s=this.parent;return this.repeatCounter=-1===this._repeat?Number.MAX_VALUE:this._repeat,n.getFirstTick(this),this.forward=!0,this.isPlaying=!0,this.pendingRepeat=!1,n.showOnStart&&(s.visible=!0),s.emit("animationstart",this.currentAnim,this.currentFrame),s},getProgress:function(){var t=this.currentFrame.progress;return this.forward||(t=1-t),t},setProgress:function(t){return this.forward||(t=1-t),this.setCurrentFrame(this.currentAnim.getFrameByProgress(t)),this.parent},remove:function(t){void 0===t&&(t=this.currentAnim),this.isPlaying&&t.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},getRepeat:function(){return this._repeat},setRepeat:function(t){return this._repeat=t,this.repeatCounter=0,this.parent},getRepeatDelay:function(){return this._repeatDelay},setRepeatDelay:function(t){return this._repeatDelay=t,this.parent},restart:function(t){return void 0===t&&(t=!1),this.currentAnim.getFirstTick(this,t),this.forward=!0,this.isPlaying=!0,this.pendingRepeat=!1,this._paused=!1,this.updateFrame(this.currentAnim.frames[0]),this.parent},stop:function(){this._pendingStop=0,this.isPlaying=!1;var t=this.parent;return t.emit("animationcomplete",this.currentAnim,this.currentFrame),t},stopAfterDelay:function(t){return this._pendingStop=1,this._pendingStopValue=t,this.parent},stopOnRepeat:function(){return this._pendingStop=2,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},setTimeScale:function(t){return void 0===t&&(t=1),this._timeScale=t,this.parent},getTimeScale:function(){return this._timeScale},getTotalFrames:function(){return this.currentAnim.frames.length},update:function(t,e){if(this.currentAnim&&this.isPlaying&&!this.currentAnim.paused){if(this.accumulator+=e*this._timeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.currentAnim.completeAnimation(this);this.accumulator>=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.setSizeToFrame(),t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin(),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit("animationupdate",i,t),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off("remove",this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=n},function(t,e,i){var n=i(0),s=i(158),r=i(12),o=i(157),a=i(60),h=i(72),u=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.timeScale=1,this._add=[],this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,t.sys.events.once("boot",this.boot,this),t.sys.events.on("start",this.start,this)},boot:function(){this.systems.events.once("destroy",this.destroy,this)},start:function(){var t=this.systems.events;t.on("preupdate",this.preUpdate,this),t.on("update",this.update,this),t.once("shutdown",this.shutdown,this),this.timeScale=1},createTimeline:function(t){return o(this,t)},timeline:function(t){var e=o(this,t);return e.paused||(this._add.push(e),this._toProcess++),e},create:function(t){return h(this,t)},add:function(t){var e=h(this,t);return this._add.push(e),this._toProcess++,e},existing:function(t){return this._add.push(t),this._toProcess++,this},addCounter:function(t){var e=s(this,t);return this._add.push(e),this._toProcess++,e},preUpdate:function(){if(0!==this._toProcess){var t,e,i=this._destroy,n=this._active;for(t=0;t-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;ta&&(a=e.layer[u].width),e.layer[u].height>h&&(h=e.layer[u].height);var l=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return l.layers=r(e,i),l.tilesets=o(e),l}},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(t){void 0===t&&(t={}),this.name=s(t,"name","object layer"),this.opacity=s(t,"opacity",1),this.properties=s(t,"properties",{}),this.propertyTypes=s(t,"propertytypes",{}),this.type=s(t,"type","objectgroup"),this.visible=s(t,"visible",!0),this.objects=s(t,"objects",[])}});t.exports=r},function(t,e,i){var n=i(628),s=i(314),r=function(t){return{x:t.x,y:t.y}},o=["id","name","type","rotation","properties","visible","x","y","width","height"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var a=n(t,o);if(a.x+=e,a.y+=i,t.gid){var h=s(t.gid);a.gid=h.gid,a.flippedHorizontal=h.flippedHorizontal,a.flippedVertical=h.flippedVertical,a.flippedAntiDiagonal=h.flippedAntiDiagonal}else t.polyline?a.polyline=t.polyline.map(r):t.polygon?a.polygon=t.polygon.map(r):t.ellipse?(a.ellipse=t.ellipse,a.width=t.width,a.height=t.height):t.text?(a.width=t.width,a.height=t.height,a.text=t.text):(a.rectangle=!0,a.width=t.width,a.height=t.height);return a}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|n,this.imageMargin=0|s,this.imageSpacing=0|r,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t-1}return!1}},function(t,e,i){var n=i(21);t.exports=function(t,e,i,s,r,o,a){for(var h=n(i,s,r,o,null,a),u=0;u=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off("update",this.step,this),t.events.emit("transitioncomplete",this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i){return this.manager.add(t,e,i),this},launch:function(t,e){return t&&t!==this.key&&(this.settings.status!==r.RUNNING?this.manager.queueOp("start",t,e):this.manager.start(t,e)),this},pause:function(t){return void 0===t&&(t=this.key),this.manager.pause(t),this},resume:function(t){return void 0===t&&(t=this.key),this.manager.resume(t),this},sleep:function(t){return void 0===t&&(t=this.key),this.manager.sleep(t),this},wake:function(t){return void 0===t&&(t=this.key),this.manager.wake(t),this},switch:function(t){return t!==this.key&&(this.settings.status!==r.RUNNING?this.manager.queueOp("switch",this.key,t):this.manager.switch(this.key,t)),this},stop:function(t){return void 0===t&&(t=this.key),this.manager.stop(t),this},setActive:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setActive(t),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off("shutdown",this.shutdown,this),t.off("postupdate",this.step,this),t.off("transitionout")},destroy:function(){this.shutdown(),this.scene.sys.events.off("start",this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){var n=i(54),s=i(18),r={SceneManager:i(185),ScenePlugin:i(325),Settings:i(183),Systems:i(115)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(162),s=new(i(0))({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once("boot",this.boot,this)},boot:function(){}});t.exports=s},function(t,e,i){t.exports={BasePlugin:i(162),DefaultPlugins:i(119),PluginCache:i(12),PluginManager:i(187),ScenePlugin:i(327)}},,,,function(t,e,i){var n=i(32),s=i(0),r=i(67),o=i(31),a=i(7),h=new s({initialize:function(t,e){this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=e.displayWidth,this.height=e.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(e.x+this.halfWidth,e.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i,n){return void 0===i&&(i=this.offset.x),void 0===n&&(n=this.offset.y),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),this.offset.set(i,n),this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position;this.debugShowBody&&(t.lineStyle(1,this.debugBodyColor,1),t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e){t.exports=function(t,e,i,n){var s=0,r=t.deltaAbsY()+e.deltaAbsY()+n;return 0===t.deltaY()&&0===e.deltaY()?(t.embedded=!0,e.embedded=!0):t.deltaY()>e.deltaY()?(s=t.bottom-e.y)>r&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?s=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0):t.deltaY()r&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?s=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0)),t.overlapY=s,e.overlapY=s,s}},function(t,e){t.exports=function(t,e,i,n){var s=0,r=t.deltaAbsX()+e.deltaAbsX()+n;return 0===t.deltaX()&&0===e.deltaX()?(t.embedded=!0,e.embedded=!0):t.deltaX()>e.deltaX()?(s=t.right-e.x)>r&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?s=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0):t.deltaX()r&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?s=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0)),t.overlapX=s,e.overlapX=s,s}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(32),s=i(0),r=i(67),o=i(147),a=i(14),h=i(31),u=i(63),l=i(7),c=new s({initialize:function(t,e){var i=e.width?e.width:64,n=e.height?e.height:64;this.world=t,this.gameObject=e,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new l,this.position=new l(e.x,e.y),this.prev=new l(e.x,e.y),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=n,this.sourceWidth=i,this.sourceHeight=n,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(n/2),this.center=new l(e.x+this.halfWidth,e.y+this.halfHeight),this.velocity=new l,this.newVelocity=new l,this.deltaMax=new l,this.acceleration=new l,this.allowDrag=!0,this.drag=new l,this.allowGravity=!0,this.gravity=new l,this.bounce=new l,this.worldBounce=null,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new l(1e4,1e4),this.friction=new l(1,0),this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=r.FACING_NONE,this.immovable=!1,this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.dirty=!1,this.syncBounds=!1,this.isMoving=!1,this.stopVelocityOnCollide=!0,this.physicsType=r.DYNAMIC_BODY,this._reset=!0,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._bounds=new a,this._tempMatrix=new u},updateBounds:function(){var t=this.gameObject,e=this.transform;if(t.parentContainer){var i=t.getWorldTransformMatrix(this._tempMatrix);e.x=i.tx,e.y=i.ty,e.rotation=o(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY}else e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY;if(this.syncBounds){var n=t.getBounds(this._bounds);n.width===this.width&&n.height===this.height||(this.width=n.width,this.height=n.height,this._reset=!0)}else{var s=Math.abs(e.scaleX),r=Math.abs(e.scaleY);s===this._sx&&r===this._sy||(this.width=this.sourceWidth*s,this.height=this.sourceHeight*r,this._sx=s,this._sy=r,this._reset=!0)}this._reset&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},update:function(t){this.dirty=!0,this.wasTouching.none=this.touching.none,this.wasTouching.up=this.touching.up,this.wasTouching.down=this.touching.down,this.wasTouching.left=this.touching.left,this.wasTouching.right=this.touching.right,this.touching.none=!0,this.touching.up=!1,this.touching.down=!1,this.touching.left=!1,this.touching.right=!1,this.blocked.none=!0,this.blocked.up=!1,this.blocked.down=!1,this.blocked.left=!1,this.blocked.right=!1,this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1,this.updateBounds();var e=this.transform;this.position.x=e.x+e.scaleX*(this.offset.x-e.displayOriginX),this.position.y=e.y+e.scaleY*(this.offset.y-e.displayOriginY),this.updateCenter(),this.rotation=e.rotation,this.preRotation=this.rotation,this._reset&&(this.prev.x=this.position.x,this.prev.y=this.position.y),this.moves&&(this.world.updateMotion(this),this.newVelocity.set(this.velocity.x*t,this.velocity.y*t),this.position.x+=this.newVelocity.x,this.position.y+=this.newVelocity.y,this.updateCenter(),this.position.x===this.prev.x&&this.position.y===this.prev.y||(this.angle=Math.atan2(this.velocity.y,this.velocity.x)),this.speed=Math.sqrt(this.velocity.x*this.velocity.x+this.velocity.y*this.velocity.y),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds&&this.world.emit("worldbounds",this,this.blocked.up,this.blocked.down,this.blocked.left,this.blocked.right)),this._dx=this.deltaX(),this._dy=this.deltaY(),this._reset=!1},postUpdate:function(){this.enable&&this.dirty&&(this.dirty=!1,this._dx=this.deltaX(),this._dy=this.deltaY(),this._dx<0?this.facing=r.FACING_LEFT:this._dx>0&&(this.facing=r.FACING_RIGHT),this._dy<0?this.facing=r.FACING_UP:this._dy>0&&(this.facing=r.FACING_DOWN),this.moves&&(0!==this.deltaMax.x&&0!==this._dx&&(this._dx<0&&this._dx<-this.deltaMax.x?this._dx=-this.deltaMax.x:this._dx>0&&this._dx>this.deltaMax.x&&(this._dx=this.deltaMax.x)),0!==this.deltaMax.y&&0!==this._dy&&(this._dy<0&&this._dy<-this.deltaMax.y?this._dy=-this.deltaMax.y:this._dy>0&&this._dy>this.deltaMax.y&&(this._dy=this.deltaMax.y)),this.gameObject.x+=this._dx,this.gameObject.y+=this._dy,this._reset=!0),this.updateCenter(),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this.prev.x=this.position.x,this.prev.y=this.position.y)},checkWorldBounds:function(){var t=this.position,e=this.world.bounds,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,this.blocked.none=!1),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,this.blocked.none=!1),!this.blocked.none},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.offset.set(s-this.halfWidth,r-this.halfHeight)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft(this.position),this.prev.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this.deltaX()>0?this.deltaX():-this.deltaX()},deltaAbsY:function(){return this.deltaY()>0?this.deltaY():-this.deltaY()},deltaX:function(){return this.position.x-this.prev.x},deltaY:function(){return this.position.y-this.prev.y},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(1,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height)),this.debugShowVelocity&&(t.lineStyle(1,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t){return this.collideWorldBounds=t,this},setVelocity:function(t,e){return this.velocity.set(t,e),this},setVelocityX:function(t){return this.velocity.x=t,this},setVelocityY:function(t){return this.velocity.y=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return this.immovable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=c},function(t,e,i){var n=i(337),s=i(24),r=i(0),o=i(336),a=i(67),h=i(57),u=i(9),l=i(335),c=i(334),d=i(4),f=i(221),p=i(684),g=i(14),v=i(220),m=i(683),y=i(678),x=i(677),w=i(70),b=i(332),T=i(333),S=i(7),A=i(39),C=new r({Extends:u,initialize:function(t,e){u.call(this),this.scene=t,this.bodies=new w,this.staticBodies=new w,this.pendingDestroy=new w,this.colliders=new f,this.gravity=new S(d(e,"gravity.x",0),d(e,"gravity.y",0)),this.bounds=new g(d(e,"x",0),d(e,"y",0),d(e,"width",t.sys.game.config.width),d(e,"height",t.sys.game.config.height)),this.checkCollision={up:d(e,"checkCollision.up",!0),down:d(e,"checkCollision.down",!0),left:d(e,"checkCollision.left",!0),right:d(e,"checkCollision.right",!0)},this.OVERLAP_BIAS=d(e,"overlapBias",4),this.TILE_BIAS=d(e,"tileBias",16),this.forceX=d(e,"forceX",!1),this.isPaused=d(e,"isPaused",!1),this._total=0,this.drawDebug=d(e,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:d(e,"debugShowBody",!0),debugShowStaticBody:d(e,"debugShowStaticBody",!0),debugShowVelocity:d(e,"debugShowVelocity",!0),bodyDebugColor:d(e,"debugBodyColor",16711935),staticBodyDebugColor:d(e,"debugStaticBodyColor",255),velocityDebugColor:d(e,"debugVelocityColor",65280)},this.maxEntries=d(e,"maxEntries",16),this.tree=new v(this.maxEntries),this.staticTree=new v(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=a.DYNAMIC_BODY);var i=1;if(Array.isArray(t))for(i=t.length;i--;)t[i].hasOwnProperty("children")?this.enable(t[i].children.entries,e):this.enableBody(t[i],e);else t.hasOwnProperty("children")?this.enable(t.children.entries,e):this.enableBody(t,e)},enableBody:function(t,e){return null===t.body&&(e===a.DYNAMIC_BODY?(t.body=new n(this,t),this.bodies.set(t.body)):e===a.STATIC_BODY&&(t.body=new b(this,t),this.staticBodies.set(t.body),this.staticTree.insert(t.body))),t},remove:function(t){this.disableBody(t)},disable:function(t){var e=1;if(Array.isArray(t))for(e=t.length;e--;)t[e].hasOwnProperty("children")?this.disable(t[e].children.entries):this.disableGameObjectBody(t[e]);else t.hasOwnProperty("children")?this.disable(t.children.entries):this.disableGameObjectBody(t)},disableGameObjectBody:function(t){return t.body&&(t.body.physicsType===a.DYNAMIC_BODY?this.bodies.delete(t.body):t.body.physicsType===a.STATIC_BODY&&(this.staticBodies.delete(t.body),this.staticTree.remove(t.body)),t.body.enable=!1),t},disableBody:function(t){t.physicsType===a.DYNAMIC_BODY?(this.tree.remove(t),this.bodies.delete(t)):t.physicsType===a.STATIC_BODY&&(this.staticBodies.delete(t),this.staticTree.remove(t)),t.enable=!1},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},setBounds:function(t,e,i,n,s,r,o,a){return this.bounds.setTo(t,e,i,n),void 0!==s&&this.setBoundsCollision(s,r,o,a),this},setBoundsCollision:function(t,e,i,n){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=!0),this.checkCollision.left=t,this.checkCollision.right=e,this.checkCollision.up=i,this.checkCollision.down=n,this},pause:function(){return this.isPaused=!0,this.emit("pause"),this},resume:function(){return this.isPaused=!1,this.emit("resume"),this},addCollider:function(t,e,i,n,s){void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i);var r=new o(this,!1,t,e,i,n,s);return this.colliders.add(r),r},addOverlap:function(t,e,i,n,s){void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i);var r=new o(this,!0,t,e,i,n,s);return this.colliders.add(r),r},removeCollider:function(t){return this.colliders.remove(t),this},update:function(t,e){if(!this.isPaused&&0!==this.bodies.size){var i,n;e/=1e3,this.delta=e;var s=this.bodies.entries,r=s.length;for(i=0;i0){var u=this.tree,l=this.staticTree;for(o=(r=s.entries).length,t=0;t0?i-=s:i+s<0?i+=s:i=0),i>r?i=r:i<-r&&(i=-r),i},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var u=!1,l=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)u.right&&(a=h(d.x,d.y,u.right,u.y)-d.radius):d.y>u.bottom&&(d.xu.right&&(a=h(d.x,d.y,u.right,u.bottom)-d.radius)),a*=-1}else a=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===a||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==a&&(t.onOverlap||e.onOverlap)&&this.emit("overlap",t.gameObject,e.gameObject,t,e),0!==a;var f=t.velocity.x,p=t.velocity.y,g=t.mass,v=e.velocity.x,m=e.velocity.y,y=e.mass,x=f*Math.cos(o)+p*Math.sin(o),w=f*Math.sin(o)-p*Math.cos(o),b=v*Math.cos(o)+m*Math.sin(o),T=v*Math.sin(o)-m*Math.cos(o),S=((g-y)*x+2*y*b)/(g+y),A=(2*g*x+(y-g)*b)/(g+y);return t.immovable||(t.velocity.x=(S*Math.cos(o)-w*Math.sin(o))*t.bounce.x,t.velocity.y=(w*Math.cos(o)+S*Math.sin(o))*t.bounce.y,f=t.velocity.x,p=t.velocity.y),e.immovable||(e.velocity.x=(A*Math.cos(o)-T*Math.sin(o))*e.bounce.x,e.velocity.y=(T*Math.cos(o)+A*Math.sin(o))*e.bounce.y,v=e.velocity.x,m=e.velocity.y),Math.abs(o)0&&!t.immovable&&v>f?t.velocity.x*=-1:v<0&&!e.immovable&&f0&&!t.immovable&&m>p?t.velocity.y*=-1:m<0&&!e.immovable&&pMath.PI/2&&(f<0&&!t.immovable&&v0&&!e.immovable&&f>v?e.velocity.x*=-1:p<0&&!t.immovable&&m0&&!e.immovable&&f>m&&(e.velocity.y*=-1)),t.immovable||(t.x+=t.velocity.x*this.delta-a*Math.cos(o),t.y+=t.velocity.y*this.delta-a*Math.sin(o)),e.immovable||(e.x+=e.velocity.x*this.delta+a*Math.cos(o),e.y+=e.velocity.y*this.delta+a*Math.sin(o)),(t.onCollide||e.onCollide)&&this.emit("collide",t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):e.isCircle?this.circleBodyIntersects(e,t):!(t.right<=e.position.x)&&(!(t.bottom<=e.position.y)&&(!(t.position.x>=e.right)&&!(t.position.y>=e.bottom))))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o;t=t.isParent&&void 0===t.physicsType?t.children.entries:t,e=e.isParent&&void 0===e.physicsType?e.children.entries:e;var a=Array.isArray(t),h=Array.isArray(e);if(this._total=0,a||h)if(!a&&h)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o=t.body;if(0!==e.length&&o){var h=this.treeMinMax;h.minX=o.left,h.minY=o.top,h.maxX=o.right,h.maxY=o.bottom;var u=e.physicsType===a.DYNAMIC_BODY?this.tree.search(h):this.staticTree.search(h);if(0!==u.length)for(var l=e.getChildren(),c=0;cc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,u+=d}c.tileHeight>c.baseTileHeight&&(l+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f,g=e.getTilesWithinWorldXY(a,h,u,l);if(0===g.length)return!1;for(var v={left:0,right:0,top:0,bottom:0},y=0;y=0?t:t+2*Math.PI}},function(t,e,i){var n=i(0),s=i(17),r=i(70),o=i(9),a=i(6),h=i(1),u=i(12),l=i(74),c=new n({Extends:o,initialize:function(t){o.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,a.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(h(i,"baseURL",e.loaderBaseURL)),this.setPath(h(i,"path",e.loaderPath)),this.setPrefix(h(i,"prefix",e.loaderPrefix)),this.maxParallelDownloads=h(i,"maxParallelDownloads",e.loaderMaxParallelDownloads),this.xhr=l(h(i,"responseType",e.loaderResponseType),h(i,"async",e.loaderAsync),h(i,"user",e.loaderUser),h(i,"password",e.loaderPassword),h(i,"timeout",e.loaderTimeout)),this.crossOrigin=h(i,"crossOrigin",e.loaderCrossOrigin),this.totalToLoad=0,this.progress=0,this.list=new r,this.inflight=new r,this.queue=new r,this._deleteQueue=new r,this.totalFailed=0,this.totalComplete=0,this.state=s.LOADER_IDLE,t.sys.events.once("boot",this.boot,this),t.sys.events.on("start",this.pluginStart,this)},boot:function(){this.systems.events.once("destroy",this.destroy,this)},pluginStart:function(){this.systems.events.once("shutdown",this.shutdown,this)},setBaseURL:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.baseURL=t,this},setPath:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.path=t,this},setPrefix:function(t){return void 0===t&&(t=""),this.prefix=t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit("start",this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue()))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit("progress",this.progress)},checkLoadQueue:function(){this.list.each(function(t){if((t.state===s.FILE_POPULATED||t.state===s.FILE_PENDING&&this.inflight.size0&&this.checkLoadQueue()},fileProcessComplete:function(t){t.state===s.FILE_ERRORED?t.multiFile&&t.multiFile.onFileFailed(t):t.state===s.FILE_COMPLETE&&(t.multiFile?t.multiFile.isReadyToProcess()&&t.multiFile.addToCache():t.addToCache()),this.queue.delete(t),0===this.list.size&&0===this.inflight.size&&0===this.queue.size?this.loadComplete():this.checkLoadQueue()},loadComplete:function(){this.emit("loadcomplete",this),this.list.clear(),this.inflight.clear(),this.queue.clear(),this.progress=1,this.state=s.LOADER_COMPLETE,this._deleteQueue.iterateLocal("destroy"),this._deleteQueue.clear(),this.emit("complete",this,this.totalComplete,this.totalFailed)},flagForRemoval:function(t){this._deleteQueue.set(t)},saveJSON:function(t,e){return this.save(JSON.stringify(t),e)},save:function(t,e,i){void 0===e&&(e="file.json"),void 0===i&&(i="application/json");var n=new Blob([t],{type:i}),s=URL.createObjectURL(n),r=document.createElement("a");return r.download=e,r.textContent="Download "+e,r.href=s,r.click(),this},reset:function(){this.list.clear(),this.inflight.clear(),this.queue.clear();var t=this.systems.game.config,e=this.systems.settings.loader;this.setBaseURL(h(e,"baseURL",t.loaderBaseURL)),this.setPath(h(e,"path",t.loaderPath)),this.setPrefix(h(e,"prefix",t.loaderPrefix)),this.state=s.LOADER_IDLE},shutdown:function(){this.reset(),this.state=s.LOADER_SHUTDOWN,this.systems.events.off("shutdown",this.shutdown,this)},destroy:function(){this.shutdown(),this.state=s.LOADER_DESTROYED,this.systems.events.off("start",this.pluginStart,this),this.list=null,this.inflight=null,this.queue=null,this.scene=null,this.systems=null,this.textureManager=null,this.cacheManager=null}});u.register("Loader",c,"load"),t.exports=c},function(t,e,i){var n=i(0),s=i(6),r=i(37),o=new n({Extends:r,initialize:function(t,e,i,n,s){r.call(this,t,e,i,s,n),this.type="spritesheet"},addToCache:function(){var t=this.cache.addSpriteSheet(this.key,this.data,this.config);this.pendingDestroy(t)}});s.register("spritesheet",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s-1&&(s.splice(a,1),this.clear(o))}t.length=0,this._list=s.concat(e.splice(0))}},clear:function(t){var e=t.input;e.gameObject=void 0,e.target=void 0,e.hitArea=void 0,e.hitAreaCallback=void 0,e.callbackContext=void 0,t.input=null;var i=this._draggable.indexOf(t);return i>-1&&this._draggable.splice(i,1),(i=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(i,1),(i=this._over[0].indexOf(t))>-1&&this._over[0].splice(i,1),t},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&(t.input.dropZone=n),this},hitTestPointer:function(t){var e=this.cameras.getCameraBelowPointer(t);if(e){t.camera=e;for(var i=this.manager.hitTest(t.x,t.y,this._list,e),n=0;n0?t.dragState=1:t.dragState>0&&!t.primaryDown&&t.justUp&&(t.dragState=5),1===t.dragState){var h=[];for(i=0;i1&&(this.sortGameObjects(h),this.topOnly&&h.splice(1)),this._drag[t.id]=h,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?t.dragState=3:t.dragState=2}if(2===t.dragState&&(this.dragDistanceThreshold>0&&o(t.x,t.y,t.downX,t.downY)>=this.dragDistanceThreshold&&(t.dragState=3),this.dragTimeThreshold>0&&e>=t.downTime+this.dragTimeThreshold&&(t.dragState=3)),3===t.dragState){for(s=this._drag[t.id],i=0;i0?(n.emit("dragleave",t,r.target),this.emit("dragleave",t,n,r.target),r.target=u[0],n.emit("dragenter",t,r.target),this.emit("dragenter",t,n,r.target)):(n.emit("dragleave",t,r.target),this.emit("dragleave",t,n,r.target),u[0]?(r.target=u[0],n.emit("dragenter",t,r.target),this.emit("dragenter",t,n,r.target)):r.target=null)}else!r.target&&u[0]&&(r.target=u[0],n.emit("dragenter",t,r.target),this.emit("dragenter",t,n,r.target));var c=t.x-n.input.dragX,d=t.y-n.input.dragY;n.emit("drag",t,c,d),this.emit("drag",t,n,c,d)}return s.length}if(5===t.dragState){for(s=this._drag[t.id],i=0;i0)for(this.sortGameObjects(s),this.emit("pointerout",t,s),e=0;e0)for(this.sortGameObjects(r),this.emit("pointerover",t,r),e=0;e-1&&this._draggable.splice(s,1)}return this},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);for(var n=0;n-1&&(this._pollTimer-=e,this._pollTimer<0&&(s=!0,this._pollTimer=this.pollRate)),s){this._tempZones=[],this._temp=this.hitTestPointer(n),this.sortGameObjects(this._temp),this.sortGameObjects(this._tempZones),this.topOnly&&(this._temp.length&&this._temp.splice(1),this._tempZones.length&&this._tempZones.splice(1));var r=this.processDragEvents(n,t);n.wasTouch||(r+=this.processOverOutEvents(n)),n.justDown&&(r+=this.processDownEvents(n)),n.justUp&&(r+=this.processUpEvents(n)),n.justMoved&&(r+=this.processMoveEvents(n)),r>0&&i.globalTopOnly&&(i.ignoreEvents=!0)}}},transitionIn:function(){this.enabled=this.settings.transitionAllowInput},transitionComplete:function(){this.settings.transitionAllowInput||(this.enabled=!0)},transitionOut:function(){this.enabled=this.settings.transitionAllowInput},shutdown:function(){this._temp.length=0,this._list.length=0,this._draggable.length=0,this._pendingRemoval.length=0,this._pendingInsertion.length=0;for(var t=0;t<10;t++)this._drag[t]=[],this._over[t]=[];this.removeAllListeners();var e=this.systems.events;e.off("transitionstart",this.transitionIn,this),e.off("transitionout",this.transitionOut,this),e.off("transitioncomplete",this.transitionComplete,this),e.off("preupdate",this.preUpdate,this),e.off("update",this.update,this),e.off("shutdown",this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off("start",this.start,this),this.scene=null,this.cameras=null,this.manager=null,this.events=null,this.keyboard=null,this.mouse=null,this.gamepad=null},activePointer:{get:function(){return this.manager.activePointer}},x:{get:function(){return this.manager.activePointer.x}},y:{get:function(){return this.manager.activePointer.y}}});c.register("InputPlugin",v,"input"),t.exports=v},function(t,e){t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},function(t,e){t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},function(t,e){t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},function(t,e,i){t.exports={DUALSHOCK_4:i(366),SNES_USB:i(365),XBOX_360:i(364)}},function(t,e,i){t.exports={Axis:i(195),Button:i(194),Gamepad:i(196),GamepadManager:i(197),Configs:i(367)}},function(t,e,i){t.exports={CreateInteractiveObject:i(166),Gamepad:i(368),InputManager:i(198),InputPlugin:i(363),Keyboard:i(362),Mouse:i(357),Pointer:i(189),Touch:i(356)}},function(t,e,i){var n=i(5);function s(t,e,i,n){var s=t-i,r=e-n,o=s*s+r*r;return Math.sqrt(o)}t.exports=function(t,e){void 0===e&&(e=new n);var i=t.x1,r=t.y1,o=t.x2,a=t.y2,h=t.x3,u=t.y3,l=s(h,u,o,a),c=s(i,r,h,u),d=s(o,a,i,r),f=l+c+d;return e.x=(i*l+o*c+h*d)/f,e.y=(r*l+a*c+u*d)/f,e}},function(t,e){t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},function(t,e,i){var n=i(5);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},function(t,e){t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},function(t,e,i){var n=i(14);n.Area=i(793),n.Ceil=i(792),n.CeilAll=i(791),n.CenterOn=i(373),n.Clone=i(790),n.Contains=i(31),n.ContainsPoint=i(789),n.ContainsRect=i(788),n.CopyFrom=i(787),n.Decompose=i(380),n.Equals=i(786),n.FitInside=i(785),n.FitOutside=i(784),n.Floor=i(783),n.FloorAll=i(782),n.FromPoints=i(274),n.GetAspectRatio=i(226),n.GetCenter=i(781),n.GetPoint=i(131),n.GetPoints=i(292),n.GetSize=i(780),n.Inflate=i(779),n.MarchingAnts=i(565),n.MergePoints=i(778),n.MergeRect=i(777),n.MergeXY=i(776),n.Offset=i(775),n.OffsetPoint=i(774),n.Overlaps=i(773),n.Perimeter=i(96),n.PerimeterPoint=i(772),n.Random=i(151),n.Scale=i(771),n.Union=i(458),t.exports=n},function(t,e,i){var n=i(0),s=i(227),r=new n({initialize:function(t){this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;n0){var d=(a*r+h*o)/u;l*=d,c*=d}return i.x=t.x1+l,i.y=t.y1+c,l*l+c*c<=u&&l*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e){t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},function(t,e,i){t.exports={CircleToCircle:i(840),CircleToRectangle:i(839),GetRectangleIntersection:i(838),LineToCircle:i(382),LineToLine:i(142),LineToRectangle:i(837),PointToLine:i(381),PointToLineSegment:i(836),RectangleToRectangle:i(383),RectangleToTriangle:i(835),RectangleToValues:i(834),TriangleToCircle:i(833),TriangleToLine:i(832),TriangleToTriangle:i(831)}},function(t,e,i){t.exports={Circle:i(850),Ellipse:i(247),Intersects:i(384),Line:i(830),Point:i(812),Polygon:i(798),Rectangle:i(374),Triangle:i(770)}},function(t,e,i){var n=i(0),s=i(387),r=i(146),o=i(27),a=new n({initialize:function(){this.lightPool=[],this.lights=[],this.culledLights=[],this.ambientColor={r:.1,g:.1,b:.1},this.active=!1},enable:function(){return this.active=!0,this},disable:function(){return this.active=!1,this},cull:function(t){var e=this.lights,i=this.culledLights,n=e.length,s=t.x+t.width/2,o=t.y+t.height/2,a=(t.width+t.height)/2,h={x:0,y:0},u=t.matrix,l=this.systems.game.config.height;i.length=0;for(var c=0;c0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],r):h=new s(t,e,i,a[0],a[1],a[2],r),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=a},function(t,e,i){var n=i(0),s=i(27),r=new n({initialize:function(t,e,i,n,s,r,o){this.x=t,this.y=e,this.radius=i,this.r=n,this.g=s,this.b=r,this.intensity=o,this.scrollFactorX=1,this.scrollFactorY=1},set:function(t,e,i,n,s,r,o){return this.x=t,this.y=e,this.radius=i,this.r=n,this.g=s,this.b=r,this.intensity=o,this.scrollFactorX=1,this.scrollFactorY=1,this},setScrollFactor:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this},setColor:function(t){var e=s.getFloatsFromUintRGB(t);return this.r=e[0],this.g=e[1],this.b=e[2],this},setIntensity:function(t){return this.intensity=t,this},setPosition:function(t,e){return this.x=t,this.y=e,this},setRadius:function(t){return this.radius=t,this}});t.exports=r},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(107);s.register("text",function(t,e){void 0===t&&(t={});var i=r(t,"text",""),s=r(t,"style",null),a=r(t,"padding",null);null!==a&&(s.padding=a);var h=new o(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,h,t),h.autoRound=r(t,"autoRound",!0),h.resolution=r(t,"resolution",1),h})},function(t,e,i){var n=i(23),s=i(123),r=i(13),o=i(10),a=i(34);r.register("sprite",function(t,e){void 0===t&&(t={});var i=o(t,"key",null),r=o(t,"frame",null),h=new a(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),n(this.scene,h,t),s(h,t),h})},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(69);s.register("image",function(t,e){void 0===t&&(t={});var i=r(t,"key",null),s=r(t,"frame",null),a=new o(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,a,t),a})},function(t,e,i){var n=i(13),s=i(112);n.register("graphics",function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);var i=new s(this.scene,t);return t.add&&this.scene.sys.displayList.add(i),i})},function(t,e,i){var n=i(107);i(11).register("text",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},function(t,e,i){var n=i(11),s=i(34);n.register("sprite",function(t,e,i,n){var r=new s(this.scene,t,e,i,n);return this.displayList.add(r),this.updateList.add(r),r})},function(t,e,i){var n=i(69);i(11).register("image",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},function(t,e,i){var n=i(112);i(11).register("graphics",function(t){return this.displayList.add(new n(this.scene,t))})},function(t,e){t.exports=function(t){var e=Math.log(t)/.6931471805599453;return 1<r;h--){for(u=0;u0&&e.cameraFilter&s._id||""===e.text)){var o=t.currentContext;t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,o.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,o.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode);var a=e.canvas;if(o.save(),void 0!==r){var h=r.matrix;o.transform(h[0],h[1],h[2],h[3],h[4],h[5])}var u=e.x-s.scrollX*e.scrollFactorX,l=e.y-s.scrollY*e.scrollFactorY;t.config.roundPixels&&(u|=0,l|=0),o.translate(u,l),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY),o.translate(a.width*(e.flipX?1:0),a.height*(e.flipY?1:0)),o.scale(e.flipX?-1:1,e.flipY?-1:1),o.drawImage(a,0,0,a.width,a.height,-e.displayOriginX,-e.displayOriginY,a.width,a.height),o.restore()}}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||""===e.text||(e.dirty&&(e.canvasTexture=t.canvasToTexture(e.canvas,e.canvasTexture),e.dirty=!1),this.pipeline.batchText(this,s,r))}},function(t,e,i){var n=i(3),s=i(3);n=i(400),s=i(399),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i){var n=t.canvas,s=t.context,r=t.style,o=[],a=0,h=i.length;r.maxLines>0&&r.maxLinesc&&(f=-c),0!==f&&(d+=f>0?f*i.length:f*(i.length-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(0),s=i(38),r=i(61),o=i(4),a=i(34),h=i(60),u=i(7),l=new n({Extends:a,initialize:function(t,e,i,n,s,r){a.call(this,t,i,n,s,r),this.path=e,this.rotateToPath=!1,this.pathRotationVerticalAdjust=!1,this.pathRotationOffset=0,this.pathOffset=new u(i,n),this.pathVector=new u,this.pathTween,this.pathConfig=null,this._prevDirection=h.PLAYING_FORWARD},setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=!1),this.rotateToPath=t,this.pathRotationOffset=e,this.pathRotationVerticalAdjust=i,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),"number"==typeof t&&(t={duration:t}),t.from=0,t.to=1;var n=r(t,"positionOnPath",!1);if(this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=o(t,"rotationOffset",0),this.pathRotationVerticalAdjust=r(t,"verticalAdjust",!1),this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),n&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=h.PLAYING_FORWARD,this.rotateToPath){var a=this.path.getPoint(.1);this.rotation=Math.atan2(a.y-this.y,a.x-this.x)+s(this.pathRotationOffset)}return this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},preUpdate:function(t,e){this.anims.update(t,e);var i=this.pathTween;if(i){var n=i.data[0];if(n.state!==h.PLAYING_FORWARD&&n.state!==h.PLAYING_BACKWARD)return;var r=this.pathVector;this.path.getPoint(i.getValue(),r),r.add(this.pathOffset);var o=this.x,a=this.y;this.setPosition(r.x,r.y);var u=this.x-o,l=this.y-a;if(0===u&&0===l)return;if(n.state!==this._prevDirection)return void(this._prevDirection=n.state);this.rotateToPath&&(this.rotation=Math.atan2(l,u)+s(this.pathRotationOffset),this.pathRotationVerticalAdjust&&(this.flipY=0!==this.rotation&&n.state===h.PLAYING_BACKWARD))}}});t.exports=l},function(t,e,i){var n=i(0),s=i(7),r=new n({initialize:function(t){this.source=t,this._tempVec=new s},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=r},function(t,e){t.exports=function(t,e){for(var i=0;i=1?1:1/e*(1+(e*t|0))}},function(t,e){t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},function(t,e){t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},function(t,e){t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},function(t,e){t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},function(t,e){t.exports=function(t){return--t*t*t*t*t+1}},function(t,e){t.exports=function(t){return t*t*t*t*t}},function(t,e){t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},function(t,e){t.exports=function(t){return 1- --t*t*t*t}},function(t,e){t.exports=function(t){return t*t*t*t}},function(t,e){t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},function(t,e){t.exports=function(t){return t*(2-t)}},function(t,e){t.exports=function(t){return t*t}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},function(t,e){t.exports=function(t){return 1-Math.pow(2,-10*t)}},function(t,e){t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},function(t,e){t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)*.5+1}},function(t,e){t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-n)*(2*Math.PI)/i)+1}},function(t,e){t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)}},function(t,e){t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},function(t,e){t.exports=function(t){return--t*t*t+1}},function(t,e){t.exports=function(t){return t*t*t}},function(t,e){t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},function(t,e){t.exports=function(t){return Math.sqrt(1- --t*t)}},function(t,e){t.exports=function(t){return 1-Math.sqrt(1-t*t)}},function(t,e){t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},function(t,e){t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},function(t,e){t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1.70158);var i=1.525*e;return(t*=2)<1?t*t*((i+1)*t-i)*.5:.5*((t-=2)*t*((i+1)*t+i)+2)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1.70158),--t*t*((e+1)*t+e)+1}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1.70158),t*t*((e+1)*t-e)}},function(t,e,i){var n=i(245),s=i(244),r=i(243),o=i(242),a=i(241),h=i(240),u=i(239),l=i(238),c=i(237),d=i(236),f=i(235),p=i(234);t.exports={Power0:u,Power1:l.Out,Power2:o.Out,Power3:c.Out,Power4:d.Out,Linear:u,Quad:l.Out,Cubic:o.Out,Quart:c.Out,Quint:d.Out,Sine:f.Out,Expo:h.Out,Circ:r.Out,Elastic:a.Out,Back:n.Out,Bounce:s.Out,Stepped:p,"Quad.easeIn":l.In,"Cubic.easeIn":o.In,"Quart.easeIn":c.In,"Quint.easeIn":d.In,"Sine.easeIn":f.In,"Expo.easeIn":h.In,"Circ.easeIn":r.In,"Elastic.easeIn":a.In,"Back.easeIn":n.In,"Bounce.easeIn":s.In,"Quad.easeOut":l.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":c.Out,"Quint.easeOut":d.Out,"Sine.easeOut":f.Out,"Expo.easeOut":h.Out,"Circ.easeOut":r.Out,"Elastic.easeOut":a.Out,"Back.easeOut":n.Out,"Bounce.easeOut":s.Out,"Quad.easeInOut":l.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":c.InOut,"Quint.easeInOut":d.InOut,"Sine.easeInOut":f.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":r.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":n.InOut,"Bounce.easeInOut":s.InOut}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=i(50),s=i(0),r=i(15),o=i(440),a=i(439),h=i(895),u=i(1),l=i(144),c=i(405),d=i(108),f=i(442),p=i(404),g=i(14),v=i(82),m=i(7),y=i(39),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0),this.y=new h(e,"y",0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3),this.angle=new h(e,"angle",{min:0,max:360}),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0?n.pop():new this.particleClass(this)).fire(e,i),this.particleBringToTop?this.alive.push(r):this.alive.unshift(r),this.emitCallback&&this.emitCallback.call(this.emitCallbackScope,r,this),this.atLimit())break}return r}},preUpdate:function(t,e){var i=(e*=this.timeScale)/1e3;this.trackVisible&&(this.visible=this.follow.visible);for(var n=this.manager.getProcessors(),s=this.alive,r=s.length,o=0;o0){var l=s.splice(s.length-u,u),c=this.deathCallback,d=this.deathCallbackScope;if(c)for(var f=0;f0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y},indexSortCallback:function(t,e){return t.index-e.index}});t.exports=x},function(t,e,i){var n=i(0),s=i(38),r=i(57),o=new n({initialize:function(t){this.emitter=t,this.frame=null,this.index=0,this.x=0,this.y=0,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=4294967295,this.color=4294967295,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215,current:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1}}},isAlive:function(){return this.lifeCurrent>0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),u=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,l=Math.atan2(u-this.y,h-this.x),c=r(this.x,this.y,h,u)/(this.life/1e3);this.velocityX=Math.cos(l)*c,this.velocityY=Math.sin(l)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint"),this.color=16777215&this.tint|(255*this.alpha|0)<<24,this.index=i.alive.length},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,u=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>u?r=u:r<-u&&(r=-u),this.velocityX=s,this.velocityY=r;for(var l=0;le.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.color=16777215&this.tint|(255*this.alpha|0)<<24,this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0&&e.cameraFilter&s._id||t.drawImage(e,s,r)}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.batchSprite(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(445),s=i(444),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.batchGraphics(this,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(447),s=i(167),s=i(167),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e,i){var n=i(14);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(53);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e,i){var n=i(53);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(111);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(14);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e){function i(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,e,n,s){void 0===e&&(e=0),void 0===n&&(n=0);var r={},o=t.getElementsByTagName("info")[0],a=t.getElementsByTagName("common")[0];r.font=o.getAttribute("face"),r.size=i(o,"size"),r.lineHeight=i(a,"lineHeight")+n,r.chars={};var h=t.getElementsByTagName("char"),u=void 0!==s&&s.trimmed;if(u)var l=s.height,c=s.width;for(var d=0;dy&&(s=y),r>x&&(r=x);var A=y+v-s,C=x+m-r;o-1&&this._list.splice(s,1)}this._list=this._list.concat(this._pendingInsertion.splice(0)),this._pendingRemoval.length=0,this._pendingInsertion.length=0}},update:function(t,e){for(var i=0;i0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e),s=t.indexOf(i);return-1!==n&&-1===s&&(t[n]=i,!0)}},function(t,e,i){var n=i(55);t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var s=e+Math.floor(Math.random()*i);return n(t,s)}},function(t,e,i){var n=i(29);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;ht.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(253);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=null),void 0===i&&(i=1),null===e&&(e=t,t=0);for(var s=[],r=Math.max(n((e-t)/(i||1)),0),o=0;o=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(i>0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e,i){var n=i(29);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a;h>0;h--){var u=e[h];t.splice(i,0,u),s&&s.call(r,u)}return e}},function(t,e){t.exports=function(t,e,i,n,s){if(void 0===s&&(s=t),i>0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.pop(),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0||!this.inFocus)&&(this._coolDown--,s=Math.min(s,this._target)),s>this._min&&(s=i[e],s=Math.min(s,this._min)),i[e]=s,this.deltaIndex++,this.deltaIndex>n&&(this.deltaIndex=0);for(var r=0,o=0;othis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var a=r/this._target;this.callback(t,r,a),this.lastTime=t},tick:function(){this.step(window.performance.now())},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime=window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step(window.performance.now())},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e){var i=0,n=function(t,e,n,s){var r=i-s.y-s.height;t.add(n,e,s.x,r,s.width,s.height)};t.exports=function(t,e,s){var r=t.source[e];t.add("__BASE",e,0,0,r.width,r.height),i=r.height;for(var o=s.split("\n"),a=/^[ ]*(- )*(\w+)+[: ]+(.*)/,h="",u="",l={x:0,y:0,width:0,height:0},c=0;cx||a<-x)&&(a=0),a<0&&(a=x+a),-1!==h&&(x=a+(h+1));for(var M=u,E=u,_=0,P=e.sourceIndex,L=0;Lg||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,w=0;wr&&(y=b-r),T>o&&(x=T-o),t.add(w,e,i+v,s+m,h-y,u-x),(v+=h+p)+h>r&&(v=f,m+=u+p)}return t}},function(t,e,i){var n=i(33);t.exports=function(t,e,i){if(i.frames){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);var r,o=i.frames;for(var a in o){var h=o[a];r=t.add(a,e,h.frame.x,h.frame.y,h.frame.w,h.frame.h),h.trimmed&&r.setTrim(h.sourceSize.w,h.sourceSize.h,h.spriteSourceSize.x,h.spriteSourceSize.y,h.spriteSourceSize.w,h.spriteSourceSize.h),h.rotated&&(r.rotated=!0,r.updateUVsInverted()),r.customData=n(h)}for(var u in i)"frames"!==u&&(Array.isArray(i[u])?t.customData[u]=i[u].slice(0):t.customData[u]=i[u]);return t}console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object")}},function(t,e,i){var n=i(33);t.exports=function(t,e,i){if(i.frames||i.textures){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var r,o=Array.isArray(i.textures)?i.textures[e].frames:i.frames,a=0;a0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e=["requestFullscreen","requestFullScreen","webkitRequestFullscreen","webkitRequestFullScreen","msRequestFullscreen","msRequestFullScreen","mozRequestFullScreen","mozRequestFullscreen"],n=document.createElement("div");for(t=0;t=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e,i){var n=i(56),s=i(78),r={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(r.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(r.mspointer=!0),navigator.getGamepads&&(r.gamepads=!0),n.cocoonJS||("onwheel"in window||s.ie&&"WheelEvent"in window?r.wheelEvent="wheel":"onmousewheel"in window?r.wheelEvent="mousewheel":s.firefox&&"MouseScrollEvent"in window&&(r.wheelEvent="DOMMouseScroll")),r)},function(t,e,i){t.exports={os:i(56),browser:i(78),features:i(118),input:i(513),audio:i(512),video:i(511),fullscreen:i(510),canvasFeatures:i(200)}},function(t,e,i){var n=i(20);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",u=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),u.push("background: "+t),a=t}),u[u.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),u.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),u.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),u[0]=h,console.log.apply(console,u)}}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;","}","",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec4 texel = texture2D(uMainSampler, outTexCoord);"," texel *= vec4(outTint.rgb * outTint.a, outTint.a);"," gl_FragColor = texel;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FLAT_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec4 inTint;","","varying vec4 outTint;","","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);"," outTint = inTint;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FLAT_TINT_FS","","precision mediump float;","","varying vec4 outTint;","","void main() {"," gl_FragColor = vec4(outTint.rgb * outTint.a, outTint.a);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e,i){var n=i(272),s=i(22),r=i(20),o=i(118);t.exports=function(t){var e,a,h=t.config;if(h.renderType!==r.HEADLESS)if(h.renderType===r.CANVAS||h.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");h.renderType=r.CANVAS}else h.renderType=r.WEBGL;h.pixelArt&&s.disableSmoothing(),h.canvas?t.canvas=h.canvas:t.canvas=s.create(t,h.width,h.height,h.renderType),h.canvasStyle&&(t.canvas.style=h.canvasStyle),h.pixelArt&&n.setCrisp(t.canvas),1!==h.zoom&&(t.canvas.style.width=(h.width*h.zoom).toString()+"px",t.canvas.style.height=(h.height*h.zoom).toString()+"px"),h.renderType!==r.HEADLESS&&(e=i(265),a=i(260),h.renderType===r.WEBGL?(t.renderer=new a(t),t.context=null):(t.renderer=new e(t),t.context=t.renderer.gameContext))}},function(t,e,i){var n=i(0),s=i(20),r=i(1),o=i(4),a=i(8),h=i(16),u=i(3),l=i(119),c=i(128),d=new n({initialize:function(t){void 0===t&&(t={});this.width=o(t,"width",1024),this.height=o(t,"height",768),this.zoom=o(t,"zoom",1),this.resolution=o(t,"resolution",1),this.renderType=o(t,"type",s.AUTO),this.parent=o(t,"parent",null),this.canvas=o(t,"canvas",null),this.context=o(t,"context",null),this.canvasStyle=o(t,"canvasStyle",null),this.sceneConfig=o(t,"scene",null),this.seed=o(t,"seed",[(Date.now()*Math.random()).toString()]),h.RND.init(this.seed),this.gameTitle=o(t,"title",""),this.gameURL=o(t,"url","https://phaser.io"),this.gameVersion=o(t,"version",""),this.inputKeyboard=o(t,"input.keyboard",!0),this.inputKeyboardEventTarget=o(t,"input.keyboard.target",window),this.inputMouse=o(t,"input.mouse",!0),this.inputMouseEventTarget=o(t,"input.mouse.target",null),this.inputMouseCapture=o(t,"input.mouse.capture",!0),this.inputTouch=o(t,"input.touch",!0),this.inputTouchEventTarget=o(t,"input.touch.target",null),this.inputTouchCapture=o(t,"input.touch.capture",!0),this.inputGamepad=o(t,"input.gamepad",!1),this.disableContextMenu=o(t,"disableContextMenu",!1),this.audio=o(t,"audio"),this.hideBanner=!1===o(t,"banner",null),this.hidePhaser=o(t,"banner.hidePhaser",!1),this.bannerTextColor=o(t,"banner.text","#ffffff"),this.bannerBackgroundColor=o(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=o(t,"fps",null);var e=o(t,"render",t);this.antialias=o(e,"antialias",!0),this.pixelArt=o(e,"pixelArt",!1),this.autoResize=o(e,"autoResize",!1),this.roundPixels=o(e,"roundPixels",!1),this.transparent=o(e,"transparent",!1),this.clearBeforeRender=o(e,"clearBeforeRender",!0),this.premultipliedAlpha=o(e,"premultipliedAlpha",!0),this.preserveDrawingBuffer=o(e,"preserveDrawingBuffer",!1),this.failIfMajorPerformanceCaveat=o(e,"failIfMajorPerformanceCaveat",!1),this.powerPreference=o(e,"powerPreference","default");var i=o(t,"backgroundColor",0);this.backgroundColor=c(i),0===i&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=o(t,"callbacks.preBoot",u),this.postBoot=o(t,"callbacks.postBoot",u),this.physics=o(t,"physics",{}),this.defaultPhysicsSystem=o(this.physics,"default",!1),this.loaderBaseURL=o(t,"loader.baseURL",""),this.loaderPath=o(t,"loader.path",""),this.loaderMaxParallelDownloads=o(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=o(t,"loader.crossOrigin",void 0),this.loaderResponseType=o(t,"loader.responseType",""),this.loaderAsync=o(t,"loader.async",!0),this.loaderUser=o(t,"loader.user",""),this.loaderPassword=o(t,"loader.password",""),this.loaderTimeout=o(t,"loader.timeout",0),this.installGlobalPlugins=[],this.installScenePlugins=[];var n=o(t,"plugins",null),d=l.DefaultScene;n&&(Array.isArray(n)?this.defaultPlugins=n:a(n)&&(this.installGlobalPlugins=r(n,"global",[]),this.installScenePlugins=r(n,"scene",[]),Array.isArray(n.default)?d=n.default:Array.isArray(n.defaultMerge)&&(d=d.concat(n.defaultMerge)))),this.defaultPlugins=d;var f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=o(t,"images.default",f+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=o(t,"images.missing",f+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg==")}});t.exports=d},function(t,e,i){var n=i(126),s=i(204),r=i(202),o=i(22),a=i(0),h=i(524),u=i(523),l=i(79),c=i(515),d=i(514),f=i(269),p=i(9),g=i(198),v=i(187),m=i(185),y=i(182),x=i(175),w=i(491),b=i(490),T=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new p,this.anims=new s(this),this.textures=new x(this),this.cache=new r(this),this.registry=new l(this),this.input=new g(this,this.config),this.scene=new m(this,this.config.sceneConfig),this.device=d,this.sound=y.create(this),this.loop=new w(this,this.config.fps),this.plugins=new v(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,f(this.boot.bind(this))},boot:function(){this.isBooted=!0,this.config.preBoot(this),u(this),c(this),n(this.canvas,this.config.parent),this.events.emit("boot"),this.events.once("ready",this.start,this)},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),b(this.events);var t=this.events;t.on("hidden",this.onHidden,this),t.on("visible",this.onVisible,this),t.on("blur",this.onBlur,this),t.on("focus",this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit("prestep",t,e),i.emit("step",t,e),this.scene.update(t,e),i.emit("poststep",t,e);var n=this.renderer;n.preRender(),i.emit("prerender",n,t,e),this.scene.render(n),n.postRender(),i.emit("postrender",n,t,e)},headlessStep:function(t,e){var i=this.events;i.emit("prestep",t,e),i.emit("step",t,e),this.scene.update(t,e),i.emit("poststep",t,e),i.emit("prerender"),i.emit("postrender")},onHidden:function(){this.loop.pause(),this.events.emit("pause")},onVisible:function(){this.loop.resume(),this.events.emit("resume")},onBlur:function(){this.loop.blur()},onFocus:function(){this.loop.focus()},resize:function(t,e){this.config.width=t,this.config.height=e,this.renderer.resize(t,e),this.input.resize(),this.scene.resize(t,e),this.events.emit("resize",t,e)},destroy:function(t){this.pendingDestroy=!0,this.removeCanvas=t},runDestroy:function(){this.events.emit("destroy"),this.events.removeAllListeners(),this.scene.destroy(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=T},function(t,e,i){var n=i(0),s=i(9),r=i(12),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){t.exports={EventEmitter:i(526)}},function(t,e){var i,n,s=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var h,u=[],l=!1,c=-1;function d(){l&&h&&(l=!1,h.length?u=h.concat(u):c=-1,u.length&&f())}function f(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(h=u,u=[];++c1)for(var i=1;i1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e){t.exports=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e}},function(t,e,i){var n=i(30);n.ColorToRGBA=i(919),n.ComponentToHex=i(532),n.GetColor=i(149),n.GetColor32=i(284),n.HexStringToColor=i(285),n.HSLToColor=i(918),n.HSVColorWheel=i(917),n.HSVToRGB=i(530),n.HueToComponent=i(531),n.IntegerToColor=i(283),n.IntegerToRGB=i(282),n.Interpolate=i(916),n.ObjectToColor=i(281),n.RandomRGB=i(915),n.RGBStringToColor=i(280),n.RGBToHSV=i(914),n.RGBToString=i(913),n.ValueToColor=i(128),t.exports=n},function(t,e,i){var n=i(0),s=i(79),r=i(12),o=new n({Extends:s,initialize:function(t){s.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once("boot",this.boot,this),t.sys.events.on("start",this.start,this)},boot:function(){this.events=this.systems.events,this.events.once("destroy",this.destroy,this)},start:function(){this.events.once("shutdown",this.shutdown,this)},shutdown:function(){this.systems.events.off("shutdown",this.shutdown,this)},destroy:function(){s.prototype.destroy.call(this),this.events.off("start",this.start,this),this.scene=null,this.systems=null}});r.register("DataManagerPlugin",o,"data"),t.exports=o},function(t,e,i){t.exports={DataManager:i(79),DataManagerPlugin:i(534)}},function(t,e,i){var n=i(273),s=i(0),r=i(85),o=i(7),a=new s({Extends:r,initialize:function(t){void 0===t&&(t=[]),r.call(this,"SplineCurve"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,u.x,l.x,c.x),n(a,h.y,u.y,l.y,c.y))},toJSON:function(){for(var t=[],e=0;ei;)n-=i;n0&&e.cameraFilter&s._id||t.drawImage(e,s,r)}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.batchSprite(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(546),s=i(545),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8],l=u*r-o*h,c=-u*s+o*a,d=h*s-r*a,f=e*l+i*c+n*d;return f?(f=1/f,t[0]=l*f,t[1]=(-u*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(u*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8];return t[0]=r*u-o*h,t[1]=n*h-i*u,t[2]=i*o-n*r,t[3]=o*a-s*u,t[4]=e*u-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],u=t[8];return e*(u*r-o*h)+i*(-u*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],u=e[7],l=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],w=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*u,e[2]=d*s+f*a+p*l,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*u,e[5]=g*s+v*a+m*l,e[6]=y*i+x*r+w*h,e[7]=y*n+x*o+w*u,e[8]=y*s+x*a+w*l,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),u=Math.cos(t);return e[0]=u*i+h*r,e[1]=u*n+h*o,e[2]=u*s+h*a,e[3]=u*r-h*i,e[4]=u*o-h*n,e[5]=u*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,u=e*o,l=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=u+v,m[6]=l-g,m[1]=u-v,m[4]=1-(h+f),m[7]=d+p,m[2]=l+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],u=e[6],l=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,w=n*u-r*a,b=n*l-o*a,T=s*u-r*h,S=s*l-o*h,A=r*l-o*u,C=c*v-d*g,M=c*m-f*g,E=c*y-p*g,_=d*m-f*v,P=d*y-p*v,L=f*y-p*m,F=x*L-w*P+b*_+T*E-S*M+A*C;return F?(F=1/F,i[0]=(h*L-u*P+l*_)*F,i[1]=(u*E-a*L-l*M)*F,i[2]=(a*P-h*E+l*C)*F,i[3]=(r*P-s*L-o*_)*F,i[4]=(n*L-r*E+o*M)*F,i[5]=(s*E-n*P-o*C)*F,i[6]=(v*A-m*S+y*T)*F,i[7]=(m*b-g*A-y*w)*F,i[8]=(g*S-v*b+y*x)*F,this):null}});t.exports=n},function(t,e,i){var n=i(0),s=i(86),r=i(548),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),u=new s(0,1,0),l=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(l.copy(h).cross(t).length()<1e-6&&l.copy(u).cross(t),l.normalize(),this.setAxisAngle(l,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(l.copy(t).cross(e),this.x=l.x,this.y=l.y,this.z=l.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,u=t.w,l=i*o+n*a+s*h+r*u;l<0&&(l=-l,o=-o,a=-a,h=-h,u=-u);var c=1-e,d=e;if(1-l>1e-6){var f=Math.acos(l),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*u,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(Math.abs(1-t*t-e*e-i*i)),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(86),s=i(278),r=i(549),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e,i){var n=i(120),s=i(0),r=i(1),o=i(12),a=i(31),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.currentCameraId=1,this.cameras=[],this.cameraPool=[],this.main,this.baseScale=1,t.sys.events.once("boot",this.boot,this),t.sys.events.on("start",this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.systems.events.once("destroy",this.destroy,this)},start:function(){this.main||this.boot();var t=this.systems.events;t.on("update",this.update,this),t.once("shutdown",this.shutdown,this)},add:function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.game.config.width),void 0===s&&(s=this.scene.sys.game.config.height),void 0===r&&(r=!1),void 0===o&&(o="");var a=null;return this.cameraPool.length>0?(a=this.cameraPool.pop()).setViewport(t,e,i,s):a=new n(t,e,i,s),a.setName(o),a.setScene(this.scene),this.cameras.push(a),r&&(this.main=a),a._id=this.currentCameraId,this.currentCameraId=this.currentCameraId<<1,a},addExisting:function(t){var e=this.cameras.indexOf(t),i=this.cameraPool.indexOf(t);return e<0&&i>=0?(this.cameras.push(t),this.cameraPool.slice(i,1),t):null},fromJSON:function(t){Array.isArray(t)||(t=[t]);for(var e=this.scene.sys.game.config.width,i=this.scene.sys.game.config.height,n=0;n=0;i--){var n=e[i];if(n.inputEnabled&&a(n,t.x,t.y))return n}},remove:function(t){var e=this.cameras.indexOf(t);e>=0&&this.cameras.length>1&&(this.cameraPool.push(this.cameras[e]),this.cameras.splice(e,1),this.main===t&&(this.main=this.cameras[0]))},render:function(t,e,i){for(var n=this.cameras,s=this.baseScale,r=0,o=n.length;r0;)this.cameraPool.push(this.cameras.pop());return this.main=this.add(),this.main},update:function(t,e){for(var i=0,n=this.cameras.length;i0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.1&&(e.zoom=.1))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){var n=i(0),s=i(4),r=new n({initialize:function(t){this.camera=s(t,"camera",null),this.left=s(t,"left",null),this.right=s(t,"right",null),this.up=s(t,"up",null),this.down=s(t,"down",null),this.zoomIn=s(t,"zoomIn",null),this.zoomOut=s(t,"zoomOut",null),this.zoomSpeed=s(t,"zoomSpeed",.01),this.speedX=0,this.speedY=0;var e=s(t,"speed",null);"number"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=s(t,"speed.x",0),this.speedY=s(t,"speed.y",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoom<.1&&(e.zoom=.1)):this.zoomOut&&this.zoomOut.isDown&&(e.zoom+=this.zoomSpeed)}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={BaseCache:i(203),CacheManager:i(202)}},function(t,e,i){t.exports={Animation:i(207),AnimationFrame:i(205),AnimationManager:i(204)}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*(3-2*t)}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var n=Math.round(t.x1),s=Math.round(t.y1),r=Math.round(t.x2),o=Math.round(t.y2),a=Math.abs(r-n),h=Math.abs(o-s),u=n-h&&(c-=h,n+=u),f=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){var i={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=i},function(t,e,i){var n=i(16),s=i(63),r=i(209),o=i(208),a={_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4}},angle:{get:function(){return o(this._rotation*n.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*n.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=r(t)}},setPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=i,this.w=n,this},setRandomPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.game.config.width),void 0===n&&(n=this.scene.sys.game.config.height),this.x=t+Math.random()*i,this.y=e+Math.random()*n,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new s),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t){void 0===t&&(t=new s);var e=this.parentContainer;if(!e)return this.getLocalTransformMatrix(t);for(var i=[];e;)i.unshift(e),e=e.parentContainer;t.loadIdentity();for(var n=i.length,r=0;r>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t)}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t)}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t)}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t)}},tint:{set:function(t){this.setTint(t,t,t,t)}}};t.exports=n},function(t,e){var i={texture:null,frame:null,setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=i},function(t,e){var i={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.frame.realWidth},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return this.scaleY*this.frame.realHeight},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){return void 0===t&&(t=this.frame),this.width=t.realWidth,this.height=t.realHeight,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}};t.exports=i},function(t,e){var i={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}};t.exports=i},function(t,e,i){var n=i(58),s={_scaleMode:n.DEFAULT,scaleMode:{get:function(){return this._scaleMode},set:function(t){t!==n.LINEAR&&t!==n.NEAREST||(this._scaleMode=t)}},setScaleMode:function(t){return this.scaleMode=t,this}};t.exports=s},function(t,e){var i={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=Math.round(this.originX*this.width),this._displayOriginY=Math.round(this.originY*this.height),this}};t.exports=i},function(t,e){var i={matrixStack:null,currentMatrix:null,currentMatrixIndex:0,initMatrixStack:function(){return this.matrixStack=new Float32Array(6e3),this.currentMatrix=new Float32Array([1,0,0,1,0,0]),this.currentMatrixIndex=0,this},save:function(){if(this.currentMatrixIndex>=this.matrixStack.length)return this;var t=this.matrixStack,e=this.currentMatrix,i=this.currentMatrixIndex;return this.currentMatrixIndex+=6,t[i+0]=e[0],t[i+1]=e[1],t[i+2]=e[2],t[i+3]=e[3],t[i+4]=e[4],t[i+5]=e[5],this},restore:function(){if(this.currentMatrixIndex<=0)return this;this.currentMatrixIndex-=6;var t=this.matrixStack,e=this.currentMatrix,i=this.currentMatrixIndex;return e[0]=t[i+0],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],e[4]=t[i+4],e[5]=t[i+5],this},loadIdentity:function(){return this.setTransform(1,0,0,1,0,0),this},transform:function(t,e,i,n,s,r){var o=this.currentMatrix,a=o[0],h=o[1],u=o[2],l=o[3],c=o[4],d=o[5];return o[0]=a*t+u*e,o[1]=h*t+l*e,o[2]=a*i+u*n,o[3]=h*i+l*n,o[4]=a*s+u*r+c,o[5]=h*s+l*r+d,this},setTransform:function(t,e,i,n,s,r){var o=this.currentMatrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},translate:function(t,e){var i=this.currentMatrix,n=i[0],s=i[1],r=i[2],o=i[3],a=i[4],h=i[5];return i[4]=n*t+r*e+a,i[5]=s*t+o*e+h,this},scale:function(t,e){var i=this.currentMatrix,n=i[0],s=i[1],r=i[2],o=i[3];return i[0]=n*t,i[1]=s*t,i[2]=r*e,i[3]=o*e,this},rotate:function(t){var e=this.currentMatrix,i=e[0],n=e[1],s=e[2],r=e[3],o=Math.sin(t),a=Math.cos(t);return e[0]=i*a+s*o,e[1]=n*a+r*o,e[2]=i*-o+s*a,e[3]=n*-o+r*a,this}};t.exports=i},function(t,e,i){var n=i(211),s=i(210),r={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t){return void 0===t&&this.texture&&(t=this),new n(this.scene,t)},createGeometryMask:function(t){return void 0===t&&"Graphics"===this.type&&(t=this),new s(this.scene,t)}};t.exports=r},function(t,e,i){var n=i(14),s=i(290),r=i(7),o={getCenter:function(t){return void 0===t&&(t=new r),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,t},getTopLeft:function(t,e){(t||(t=new r),void 0===e&&(e=!1),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getTopRight:function(t,e){(t||(t=new r),void 0===e&&(e=!1),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBottomLeft:function(t,e){(t||(t=new r),void 0===e&&(e=!1),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBottomRight:function(t,e){(t||(t=new r),void 0===e&&(e=!1),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBounds:function(t){var e,i,s,r,o,a,h,u;if(void 0===t&&(t=new n),this.parentContainer){var l=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(t),l.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),l.transformPoint(t.x,t.y,t),s=t.x,r=t.y,this.getBottomLeft(t),l.transformPoint(t.x,t.y,t),o=t.x,a=t.y,this.getBottomRight(t),l.transformPoint(t.x,t.y,t),h=t.x,u=t.y}else this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),s=t.x,r=t.y,this.getBottomLeft(t),o=t.x,a=t.y,this.getBottomRight(t),h=t.x,u=t.y;return t.x=Math.min(e,s,o,h),t.y=Math.min(i,r,a,u),t.width=Math.max(e,s,o,h)-t.x,t.height=Math.max(i,r,a,u)-t.y,t}};t.exports=o},function(t,e){t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e){t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},function(t,e,i){var n=i(50),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=0&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e,i){var n=i(24),s={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,s){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(e,0,1),this._alphaBL=n(i,0,1),this._alphaBR=n(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var e=n(t,0,1);this._alpha=e,this._alphaTL=e,this._alphaTR=e,this._alphaBL=e,this._alphaBR=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var e=n(t,0,1);this._alphaTL=e,0!==e&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var e=n(t,0,1);this._alphaTR=e,0!==e&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var e=n(t,0,1);this._alphaBL=e,0!==e&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var e=n(t,0,1);this._alphaBR=e,0!==e&&(this.renderFlags|=2)}}};t.exports=s},function(t,e,i){var n=i(44),s=i(42),r=i(43),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(46),s=i(42),r=i(45),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(91),s=i(42),r=i(90),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(88),s=i(44),r=i(89),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(88),s=i(46),r=i(89),o=i(45);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(90),s=i(89);t.exports=function(t,e,i){return n(t,e),s(t,i)}},function(t,e,i){var n=i(588),s=i(91),r=i(88);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),n(t,s(e)+i,r(e)+o),t}},function(t,e,i){var n=i(48),s=i(44),r=i(47),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(46),r=i(47),o=i(45);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(91),r=i(47),o=i(90);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(297),s=[];s[n.BOTTOM_CENTER]=i(592),s[n.BOTTOM_LEFT]=i(591),s[n.BOTTOM_RIGHT]=i(590),s[n.CENTER]=i(589),s[n.LEFT_CENTER]=i(587),s[n.RIGHT_CENTER]=i(586),s[n.TOP_CENTER]=i(585),s[n.TOP_LEFT]=i(584),s[n.TOP_RIGHT]=i(583);t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){t.exports={Angle:i(1001),Call:i(1e3),GetFirst:i(999),GetLast:i(998),GridAlign:i(997),IncAlpha:i(996),IncX:i(995),IncXY:i(994),IncY:i(993),PlaceOnCircle:i(992),PlaceOnEllipse:i(991),PlaceOnLine:i(990),PlaceOnRectangle:i(989),PlaceOnTriangle:i(988),PlayAnimation:i(987),PropertyValueInc:i(35),PropertyValueSet:i(25),RandomCircle:i(986),RandomEllipse:i(985),RandomLine:i(984),RandomRectangle:i(983),RandomTriangle:i(982),Rotate:i(981),RotateAround:i(980),RotateAroundDistance:i(979),ScaleX:i(978),ScaleXY:i(977),ScaleY:i(976),SetAlpha:i(975),SetBlendMode:i(974),SetDepth:i(973),SetHitArea:i(972),SetOrigin:i(971),SetRotation:i(970),SetScale:i(969),SetScaleX:i(968),SetScaleY:i(967),SetTint:i(966),SetVisible:i(965),SetX:i(964),SetXY:i(963),SetY:i(962),ShiftPosition:i(961),Shuffle:i(960),SmootherStep:i(959),SmoothStep:i(958),Spread:i(957),ToggleVisible:i(956),WrapInRectangle:i(955)}},function(t,e){if("function"!=typeof window.Uint32Array&&"object"!=typeof window.Uint32Array){var i=function(t){var e=new Array;window[t]=function(t){if("number"==typeof t){Array.call(this,t),this.length=t;for(var e=0;e>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s0&&e.cameraFilter&s._id)){e.cull(s);var r=e.culledTiles,o=this.tileset,a=t.gameContext,h=r.length,u=o.image.getSourceImage(),l=e.x-s.scrollX*e.scrollFactorX,c=e.y-s.scrollY*e.scrollFactorY;a.save(),a.translate(l,c),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY),a.scale(e.flipX?-1:1,e.flipY?-1:1),a.globalAlpha=e.alpha;for(var d=0;d0&&e.cameraFilter&s._id||(e.upload(s),this.pipeline.drawStaticTilemapLayer(e,s))}},function(t,e,i){var n=i(3),s=i(3);n=i(618),s=i(617),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s){if(!(n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id)){e.cull(s);var r=e.culledTiles,o=r.length,a=e.tileset.image.getSourceImage(),h=this.tileset,u=e.x-s.scrollX*e.scrollFactorX,l=e.y-s.scrollY*e.scrollFactorY,c=t.gameContext;c.save(),c.translate(u,l),c.rotate(e.rotation),c.scale(e.scaleX,e.scaleY),c.scale(e.flipX?-1:1,e.flipY?-1:1);for(var d=0;d0&&e.cameraFilter&s._id||(e.cull(s),this.pipeline.batchDynamicTilemapLayer(e,s))}},function(t,e,i){var n=i(3),s=i(3);n=i(621),s=i(620),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(133);t.exports=function(t){for(var e=[],i=[],s=0;s-1?new s(a,f,c,l,o.tilesize,o.tilesize):e?null:new s(a,-1,c,l,o.tilesize,o.tilesize),h.push(d)}u.push(h),h=[]}a.data=u,i.push(a)}return i}},function(t,e,i){var n=i(18);t.exports=function(t){for(var e,i,s,r,o,a=0;a>>0;return n}},function(t,e,i){var n=i(631),s=i(1),r=i(103),o=i(314),a=i(65);t.exports=function(t,e){for(var i=[],h=0;h0){var m=new a(l,v.gid,c,f.length,t.tilewidth,t.tileheight);m.rotation=v.rotation,m.flipX=v.flipped,d.push(m)}else{var y=e?null:new a(l,-1,c,f.length,t.tilewidth,t.tileheight);d.push(y)}++c===u.width&&(f.push(d),c=0,d=[])}l.data=f,i.push(l)}}return i}},function(t,e,i){t.exports={Parse:i(317),Parse2DArray:i(214),ParseCSV:i(316),Impact:i(310),Tiled:i(315)}},function(t,e,i){var n=i(52),s=i(51),r=i(7);t.exports=function(t,e,i,o,a,h){return void 0===o&&(o=new r(0,0)),o.x=n(t,i,a,h),o.y=s(e,i,a,h),o}},function(t,e,i){var n=i(21);t.exports=function(t,e,i,s,r,o){if(void 0!==r){var a,h=n(t,e,i,s,null,o),u=0;for(a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e,i){var n=i(66),s=i(40),r=i(108);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var a=0;ae)){for(var h=t;h<=e;h++)r(h,i,a);for(var u=0;u=t&&c.index<=e&&n(c,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(66),s=i(40),r=i(215);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;r=S&&F>=A&&L+a<=C&&F+h<=M&&i.push(P)}}return i}},function(t,e,i){var n=i(135),s=i(134),r=i(21),o=i(320);t.exports=function(t,e,i,a,h,u){void 0===i&&(i={}),Array.isArray(t)||(t=[t]);var l=u.tilemapLayer;void 0===a&&(a=l.scene),void 0===h&&(h=a.cameras.main);var c,d=r(0,0,u.width,u.height,null,u),f=[];for(c=0;c=0&&p=0&&g0?1:-1),u=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),l=.5*(h+u);h-=l,u-=l,t.velocity.y=l+h*t.bounce.y,e.velocity.y=l+u*e.bounce.y}return!0}},function(t,e,i){var n=i(335);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),u=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),l=.5*(h+u);h-=l,u-=l,t.velocity.x=l+h*t.bounce.x,e.velocity.x=l+u*e.bounce.x}return!0}},function(t,e){t.exports=function(t,e){e<0?t.blocked.up=!0:e>0&&(t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(679);t.exports=function(t,e,i,s,r){var o=0;return t.deltaY()<0&&!t.blocked.up&&e.collideDown&&t.checkCollision.up?e.faceBottom&&t.y0&&!t.blocked.down&&e.collideUp&&t.checkCollision.down&&e.faceTop&&t.bottom>i&&(o=t.bottom-i)>r&&(o=0),0!==o&&(t.customSeparateY?t.overlapY=o:n(t,o)),o}},function(t,e){t.exports=function(t,e){e<0?t.blocked.left=!0:e>0&&(t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(681);t.exports=function(t,e,i,s,r){var o=0;return t.deltaX()<0&&!t.blocked.left&&e.collideRight&&t.checkCollision.left?e.faceRight&&t.x0&&!t.blocked.right&&e.collideLeft&&t.checkCollision.right&&e.faceLeft&&t.right>i&&(o=t.right-i)>r&&(o=0),0!==o&&(t.customSeparateX?t.overlapX=o:n(t,o)),o}},function(t,e,i){var n=i(682),s=i(680),r=i(333);t.exports=function(t,e,i,o,a,h){var u=o.left,l=o.top,c=o.right,d=o.bottom,f=i.faceLeft||i.faceRight,p=i.faceTop||i.faceBottom;if(!f&&!p)return!1;var g=0,v=0,m=0,y=1;if(e.deltaAbsX()>e.deltaAbsY()?m=-1:e.deltaAbsX()=0;a--){var h=e[a],u=r(s,o,h.x,h.y);u=0;a--){var h=e[a],u=r(s,o,h.x,h.y);u>i&&(n=h,i=u)}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new l),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new l),i.setToPolar(t,e)},shutdown:function(){var t=this.systems.events;t.off("update",this.world.update,this.world),t.off("postupdate",this.world.postUpdate,this.world),t.off("shutdown",this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null},destroy:function(){this.shutdown(),this.scene.sys.events.off("start",this.start,this),this.scene=null,this.systems=null}});u.register("ArcadePhysics",d,"arcadePhysics"),t.exports=d},function(t,e,i){var n=i(67),s=i(18),r={ArcadePhysics:i(697),Body:i(337),Collider:i(336),Factory:i(343),Group:i(340),Image:i(342),Sprite:i(140),StaticBody:i(332),StaticGroup:i(339),World:i(338)};r=s(!1,r,n),t.exports=r},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e,i){return Math.max(t-e,i)}},function(t,e){t.exports=function(t,e,i){return Math.min(t+e,i)}},function(t,e){t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},function(t,e){t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},function(t,e){t.exports=function(t,e){return t/e/1e3}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.floor(t*n)/n}},function(t,e){t.exports=function(t,e){return Math.abs(t-e)}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.ceil(t*n)/n}},function(t,e){t.exports=function(t){for(var e=0,i=0;i0&&0==(t&t-1)}},function(t,e,i){t.exports={GetNext:i(396),IsSize:i(84),IsValue:i(717)}},function(t,e,i){var n=i(271);t.exports=function(t,e){var i=t.length-1,s=i*e,r=Math.floor(s);return e<0?n(t[0],t[1],s):e>1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(273);t.exports=function(t,e){var i=t.length-1,s=i*e,r=Math.floor(s);return t[0]===t[i]?(e<0&&(r=Math.floor(s=i*(1+e))),n(s-r,t[(r-1+i)%i],t[r],t[(r+1)%i],t[(r+2)%i])):e<0?t[0]-(n(-s,t[0],t[0],t[1],t[1])-t[0]):e>1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[ie-i}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e)=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("html",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)e.x&&t.ye.y}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e,i){var n=Math.min(t.x,e),s=Math.max(t.right,e);t.x=n,t.width=s-n;var r=Math.min(t.y,i),o=Math.max(t.bottom,i);return t.y=r,t.height=o-r,t}},function(t,e){t.exports=function(t,e){var i=Math.min(t.x,e.x),n=Math.max(t.right,e.right);t.x=i,t.width=n-i;var s=Math.min(t.y,e.y),r=Math.max(t.bottom,e.bottom);return t.y=s,t.height=r-s,t}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;on(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e,i){var n=i(226);t.exports=function(t,e){var i=n(t);return it.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottomi&&(i=h.x),h.xr&&(r=h.y),h.ye.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e,i){var n=i(59),s=i(142);t.exports=function(t,e){return!!(n(t,e.getPointA())||n(t,e.getPointB())||s(t.getLineA(),e)||s(t.getLineB(),e)||s(t.getLineC(),e))}},function(t,e,i){var n=i(382),s=i(59);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottomt.right+r||it.bottom+r||st.right||e.rightt.bottom||e.bottom0}},function(t,e,i){var n=i(381);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,u=e.bottom,l=0;if(i>=o&&i<=h&&n>=a&&n<=u||s>=o&&s<=h&&r>=a&&r<=u)return!0;if(i=o){if((l=n+(r-n)*(o-i)/(s-i))>a&&l<=u)return!0}else if(i>h&&s<=h&&(l=n+(r-n)*(h-i)/(s-i))>=a&&l<=u)return!0;if(n=a){if((l=i+(s-i)*(a-n)/(r-n))>=o&&l<=h)return!0}else if(n>u&&r<=u&&(l=i+(s-i)*(u-n)/(r-n))>=o&&l<=h)return!0;return!1}},function(t,e,i){var n=i(14),s=i(383);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e){t.exports=function(t,e){var i=e.width/2,n=e.height/2,s=Math.abs(t.x-e.x-i),r=Math.abs(t.y-e.y-n),o=i+t.radius,a=n+t.radius;if(s>o||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,u=r-n;return h*h+u*u<=t.radius*t.radius}},function(t,e,i){var n=i(57);t.exports=function(t,e){return n(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e,i){var n=i(14);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e,i){var n=i(32);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e,i){var n=i(32);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(87);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(87);n.Area=i(849),n.Circumference=i(293),n.CircumferencePoint=i(132),n.Clone=i(848),n.Contains=i(32),n.ContainsPoint=i(847),n.ContainsRect=i(846),n.CopyFrom=i(845),n.Equals=i(844),n.GetBounds=i(843),n.GetPoint=i(296),n.GetPoints=i(294),n.Offset=i(842),n.OffsetPoint=i(841),n.Random=i(154),t.exports=n},function(t,e,i){var n=i(0),s=i(386),r=i(12),o=new n({Extends:s,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once("boot",this.boot,this),s.call(this)},boot:function(){var t=this.systems.events;t.on("shutdown",this.shutdown,this),t.on("destroy",this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});r.register("LightsPlugin",o,"lights"),t.exports=o},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(230);s.register("quad",function(t,e){void 0===t&&(t={});var i=r(t,"x",0),s=r(t,"y",0),a=r(t,"key",null),h=r(t,"frame",null),u=new o(this.scene,i,s,a,h);return void 0!==e&&(t.add=e),n(this.scene,u,t),u})},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(4),a=i(143);s.register("mesh",function(t,e){void 0===t&&(t={});var i=r(t,"key",null),s=r(t,"frame",null),h=o(t,"vertices",[]),u=o(t,"colors",[]),l=o(t,"alphas",[]),c=o(t,"uv",[]),d=new a(this.scene,0,0,h,c,u,l,i,s);return void 0!==e&&(t.add=e),n(this.scene,d,t),d})},function(t,e,i){var n=i(230);i(11).register("quad",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},function(t,e,i){var n=i(143);i(11).register("mesh",function(t,e,i,s,r,o,a,h){return this.displayList.add(new n(this.scene,t,e,i,s,r,o,a,h))})},function(t,e){t.exports=function(){}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.batchMesh(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(857),s=i(856),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(13),s=i(10),r=i(155);n.register("zone",function(t){var e=s(t,"x",0),i=s(t,"y",0),n=s(t,"width",1),o=s(t,"height",n);return new r(this.scene,e,i,n,o)})},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(231);s.register("tileSprite",function(t,e){void 0===t&&(t={});var i=r(t,"x",0),s=r(t,"y",0),a=r(t,"width",512),h=r(t,"height",512),u=r(t,"key",""),l=r(t,"frame",""),c=new o(this.scene,i,s,a,h,u,l);return void 0!==e&&(t.add=e),n(this.scene,c,t),c})},function(t,e,i){var n=i(251),s=i(23),r=i(13),o=i(10),a=i(4);r.register("bitmapText",function(t,e){void 0===t&&(t={});var i=a(t,"font",""),r=o(t,"text",""),h=o(t,"size",!1),u=new n(this.scene,0,0,i,r,h);return void 0!==e&&(t.add=e),s(this.scene,u,t),u})},function(t,e,i){var n=i(23),s=i(123),r=i(13),o=i(10),a=i(148);r.register("sprite3D",function(t,e){void 0===t&&(t={});var i=o(t,"key",null),r=o(t,"frame",null),h=new a(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),n(this.scene,h,t),s(h,t),h})},function(t,e,i){var n=i(23),s=i(13),r=i(10),o=i(232);s.register("renderTexture",function(t,e){void 0===t&&(t={});var i=r(t,"x",0),s=r(t,"y",0),a=r(t,"width",32),h=r(t,"height",32),u=new o(this.scene,i,s,a,h);return void 0!==e&&(t.add=e),n(this.scene,u,t),u})},function(t,e,i){var n=i(13),s=i(10),r=i(1),o=i(233);n.register("particles",function(t,e){void 0===t&&(t={});var i=s(t,"key",null),n=s(t,"frame",null),a=r(t,"emitters",null),h=new o(this.scene,i,n,a);return void 0!==e&&(t.add=e),r(t,"add",!1)&&this.displayList.add(h),this.updateList.add(h),h})},function(t,e,i){var n=i(13),s=i(109);n.register("group",function(t){return new s(this.scene,null,t)})},function(t,e,i){var n=i(248),s=i(23),r=i(13),o=i(10);r.register("dynamicBitmapText",function(t,e){void 0===t&&(t={});var i=o(t,"font",""),r=o(t,"text",""),a=o(t,"size",!1),h=o(t,"align","left"),u=new n(this.scene,0,0,i,r,a,h);return void 0!==e&&(t.add=e),s(this.scene,u,t),u})},function(t,e,i){var n=i(23),s=i(249),r=i(13),o=i(10);r.register("container",function(t,e){void 0===t&&(t={});var i=o(t,"x",0),r=o(t,"y",0),a=new s(this.scene,i,r);return void 0!==e&&(t.add=e),n(this.scene,a,t),a})},function(t,e,i){var n=i(250),s=i(23),r=i(13),o=i(10);r.register("blitter",function(t,e){void 0===t&&(t={});var i=o(t,"key",null),r=o(t,"frame",null),a=new n(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),s(this.scene,a,t),a})},function(t,e,i){var n=i(155);i(11).register("zone",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},function(t,e,i){var n=i(231);i(11).register("tileSprite",function(t,e,i,s,r,o){return this.displayList.add(new n(this.scene,t,e,i,s,r,o))})},function(t,e,i){var n=i(251);i(11).register("bitmapText",function(t,e,i,s,r){return this.displayList.add(new n(this.scene,t,e,i,s,r))})},function(t,e,i){var n=i(148);i(11).register("sprite3D",function(t,e,i,s,r){var o=new n(this.scene,t,e,i,s,r);return this.displayList.add(o.gameObject),this.updateList.add(o.gameObject),o})},function(t,e,i){var n=i(11),s=i(232);n.register("renderTexture",function(t,e,i,n){return this.displayList.add(new s(this.scene,t,e,i,n))})},function(t,e,i){var n=i(11),s=i(403);n.register("follower",function(t,e,i,n,r){var o=new s(this.scene,t,e,i,n,r);return this.displayList.add(o),this.updateList.add(o),o})},function(t,e,i){var n=i(11),s=i(233);n.register("particles",function(t,e,i){var n=new s(this.scene,t,e,i);return this.displayList.add(n),this.updateList.add(n),n})},function(t,e,i){var n=i(109);i(11).register("group",function(t,e){return"object"==typeof t&&void 0===e&&(e=t,t=[]),this.updateList.add(new n(this.scene,t,e))})},function(t,e,i){var n=i(248);i(11).register("dynamicBitmapText",function(t,e,i,s,r){return this.displayList.add(new n(this.scene,t,e,i,s,r))})},function(t,e,i){var n=i(249);i(11).register("container",function(t,e,i){return this.displayList.add(new n(this.scene,t,e,i))})},function(t,e,i){var n=i(250);i(11).register("blitter",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){if(!(n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id)){var o=t.currentContext,a=e.frame;e.updateTileTexture(),t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,o.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,o.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode);var h=a.x-e.originX*e.width,u=a.y-e.originY*e.height,l=e.x-s.scrollX*e.scrollFactorX,c=e.y-s.scrollY*e.scrollFactorY,d=1,f=1;if(e.flipX&&(d=-1,h+=e.width),e.flipY&&(f=-1,u+=e.height),t.config.roundPixels&&(h|=0,u|=0,l|=0,c|=0),o.save(),void 0!==r){var p=r.matrix;o.transform(p[0],p[1],p[2],p[3],p[4],p[5])}o.translate(h,u),o.translate(l,c),o.scale(d,f),o.translate(e.originX*e.width,e.originY*e.height),o.rotate(d*f*e.rotation),o.scale(this.scaleX,this.scaleY),o.translate(-e.originX*e.width,-e.originY*e.height),o.translate(-this.tilePositionX,-this.tilePositionY),o.fillStyle=e.canvasPattern,o.fillRect(this.tilePositionX,this.tilePositionY,e.width,e.height),o.restore()}}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||(e.updateTileTexture(),this.pipeline.batchTileSprite(this,s,r))}},function(t,e,i){var n=i(3),s=i(3);n=i(881),s=i(880),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(4);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),u=n(e,"offset.x",0),l=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"charsPerRow",null);null===f&&(f=t.sys.textures.getFrame(h).width/i)>a.length&&(f=a.length);for(var p=u,g=l,v={retroFont:!0,font:h,size:i,lineHeight:s,chars:{}},m=0,y=0;y?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(884),s=i(18),r={Parse:i(883)};r=s(!1,r,n),t.exports=r},function(t,e){t.exports={fill:function(t){var e=255&(t>>16|0),i=255&(t>>8|0),n=255&(0|t);this.renderer.setFramebuffer(this.framebuffer);var s=this.gl;return s.clearColor(e/255,i/255,n/255,1),s.clear(s.COLOR_BUFFER_BIT),this.renderer.setFramebuffer(null),this},clear:function(){this.renderer.setFramebuffer(this.framebuffer);var t=this.gl;return t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),this.renderer.setFramebuffer(null),this},draw:function(t,e,i,n){var s=t.source[e.sourceIndex].glTexture,r=(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16);return this.renderer.setFramebuffer(this.framebuffer),this.renderer.pipelines.TextureTintPipeline.projOrtho(0,this.renderer.pipelines.TextureTintPipeline.width,0,this.renderer.pipelines.TextureTintPipeline.height,-1e3,1e3),this.renderer.pipelines.TextureTintPipeline.drawTexture(s,i,n,r,this.globalAlpha,e.cutX,e.cutY,e.cutWidth,e.cutHeight,this.currentMatrix,null,this),this.renderer.setFramebuffer(null),this.renderer.pipelines.TextureTintPipeline.projOrtho(0,this.renderer.pipelines.TextureTintPipeline.width,this.renderer.pipelines.TextureTintPipeline.height,0,-1e3,1e3),this}}},function(t,e){t.exports={fill:function(t){var e=255&(t>>16|0),i=255&(t>>8|0),n=255&(0|t);return this.context.fillStyle="rgb("+e+","+i+","+n+")",this.context.fillRect(0,0,this.canvas.width,this.canvas.height),this},clear:function(){return this.context.save(),this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.context.restore(),this},draw:function(t,e,i,n){var s=this.currentMatrix;return this.context.globalAlpha=this.globalAlpha,this.context.setTransform(s[0],s[1],s[2],s[3],s[4],s[5]),this.context.drawImage(t.source[e.sourceIndex].image,e.cutX,e.cutY,e.cutWidth,e.cutHeight,i,n,e.cutWidth,e.cutWidth),this}}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){if(!(n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id)){var o=t.currentContext;t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,o.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,o.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode);var a=0,h=0,u=1,l=1;if(e.flipX?(u=-1,a-=e.canvas.width-e.displayOriginX):a-=e.displayOriginX,e.flipY?(l=-1,h-=e.canvas.height-e.displayOriginY):h-=e.displayOriginY,o.save(),void 0!==r){var c=r.matrix;o.transform(c[0],c[1],c[2],c[3],c[4],c[5])}o.translate(e.x-s.scrollX*e.scrollFactorX,e.y-s.scrollY*e.scrollFactorY),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY),o.scale(u,l),o.drawImage(e.canvas,a,h),o.restore()}}},function(t,e,i){var n=i(2),s=i(27);t.exports=function(t,e,i,r,o){n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&r._id||this.pipeline.batchTexture(e,e.texture,e.texture.width,e.texture.height,e.x,e.y,e.width,e.height,e.scaleX,e.scaleY,e.rotation,e.flipX,!e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,e.texture.width,e.texture.height,s.getTintAppendFloatAlpha(e.tintTopLeft,e.alphaTopLeft),s.getTintAppendFloatAlpha(e.tintTopRight,e.alphaTopRight),s.getTintAppendFloatAlpha(e.tintBottomLeft,e.alphaBottomLeft),s.getTintAppendFloatAlpha(e.tintBottomRight,e.alphaBottomRight),0,0,r,o)}},function(t,e,i){var n=i(3),s=i(3);n=i(889),s=i(888),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){t.exports={DeathZone:i(440),EdgeZone:i(439),RandomZone:i(404)}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){var o=e.emitters.list;if(!(0===o.length||n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id)){var a=t.currentContext;if(a.save(),void 0!==r){var h=r.matrix;a.transform(h[0],h[1],h[2],h[3],h[4],h[5])}for(var u=0;u>24&255)/255;if(!(x<=0)){var w=y.frame,b=.5*w.width,T=.5*w.height,S=w.canvasData,A=-b,C=-T,M=y.x-p,E=y.y-g;v&&(M|=0,E|=0),a.globalAlpha=x,a.save(),a.translate(M,E),a.rotate(y.rotation),a.scale(y.scaleX,y.scaleY),a.drawImage(w.source.image,S.sx,S.sy,S.sWidth,S.sHeight,A,C,S.dWidth,S.dHeight),a.restore()}}a.globalAlpha=f}}a.restore()}}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){0===e.emitters.length||n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.drawEmitterManager(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(893),s=i(892),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(0),s=i(246),r=i(62),o=i(1),a=i(39),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||this.has(t,"random");if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){t.exports={GravityWell:i(443),Particle:i(442),ParticleEmitter:i(441),ParticleEmitterManager:i(233),Zones:i(891)}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){var o=e.text,a=o.length;if(!(n.RENDER_MASK!==e.renderFlags||0===a||e.cameraFilter>0&&e.cameraFilter&s._id)){var h=e.frame,u=e.displayCallback,l=s.scrollX*e.scrollFactorX,c=s.scrollY*e.scrollFactorY,d=e.fontData.chars,f=e.fontData.lineHeight,p=0,g=0,v=0,m=0,y=null,x=0,w=0,b=0,T=0,S=0,A=0,C=null,M=0,E=t.currentContext,_=e.frame.source.image,P=h.cutX,L=h.cutY,F=0,k=e.fontSize/e.fontData.size;if(t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,E.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,E.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode),E.save(),void 0!==r){var R=r.matrix;E.transform(R[0],R[1],R[2],R[3],R[4],R[5])}E.translate(e.x,e.y),E.rotate(e.rotation),E.translate(-e.displayOriginX,-e.displayOriginY),E.scale(e.scaleX,e.scaleY),e.cropWidth>0&&e.cropHeight>0&&(E.save(),E.beginPath(),E.rect(0,0,e.cropWidth,e.cropHeight),E.clip());for(var O=t.config.roundPixels,D=0;D0&&e.cropHeight>0&&E.restore(),E.restore()}}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){var o=e.text.length;n.RENDER_MASK!==e.renderFlags||0===o||e.cameraFilter>0&&e.cameraFilter&s._id||this.pipeline.batchDynamicBitmapText(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(898),s=i(897),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){if(!(n.RENDER_MASK!==e.renderFlags||e.cameraFilter>0&&e.cameraFilter&s._id)){var o=e.list,a=e.localTransform;void 0===r?a.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY):(a.loadIdentity(),a.multiply(r),a.translate(e.x,e.y),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY));for(var h=e._alpha,u=e.scrollFactorX,l=e.scrollFactorY,c=0;c0&&e.cameraFilter&s._id)){var o=e.list,a=e.localTransform;void 0===r?a.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY):(a.loadIdentity(),a.multiply(r),a.translate(e.x,e.y),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY));for(var h=e._alpha,u=e.scrollFactorX,l=e.scrollFactorY,c=0;c0&&e.cameraFilter&s._id)){var o=e.getRenderList();t.setBlendMode(e.blendMode);var a=t.gameContext,h=e.x-s.scrollX*e.scrollFactorX,u=e.y-s.scrollY*e.scrollFactorY;if(a.save(),void 0!==r){var l=r.matrix;a.transform(l[0],l[1],l[2],l[3],l[4],l[5])}for(var c=0;c0&&e.cameraFilter&s._id||this.pipeline.drawBlitter(e,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(905),s=i(904),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r){var o=e.text,a=o.length;if(!(n.RENDER_MASK!==e.renderFlags||0===a||e.cameraFilter>0&&e.cameraFilter&s._id)){var h=e.frame,u=e.fontData.chars,l=e.fontData.lineHeight,c=e.letterSpacing,d=0,f=0,p=0,g=0,v=null,m=0,y=0,x=0,w=0,b=0,T=0,S=null,A=0,C=t.currentContext,M=e.frame.source.image,E=h.cutX,_=h.cutY,P=e.fontSize/e.fontData.size;t.currentBlendMode!==e.blendMode&&(t.currentBlendMode=e.blendMode,C.globalCompositeOperation=t.blendModes[e.blendMode]),t.currentAlpha!==e.alpha&&(t.currentAlpha=e.alpha,C.globalAlpha=e.alpha),t.currentScaleMode!==e.scaleMode&&(t.currentScaleMode=e.scaleMode);var L=t.config.roundPixels,F=e.x-s.scrollX*e.scrollFactorX+e.frame.x,k=e.y-s.scrollY*e.scrollFactorY+e.frame.y;if(L&&(F|=0,k|=0),C.save(),void 0!==r){var R=r.matrix;C.transform(R[0],R[1],R[2],R[3],R[4],R[5])}C.translate(F,k),C.rotate(e.rotation),C.translate(-e.displayOriginX,-e.displayOriginY),C.scale(e.scaleX,e.scaleY);for(var O=0;O0&&e.cameraFilter&s._id||this.pipeline.batchBitmapText(this,s,r)}},function(t,e,i){var n=i(3),s=i(3);n=i(908),s=i(907),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(459);t.exports=function(t,e,i,s,r,o,a){var h=t.sys.textures.getFrame(i,s),u=t.sys.cache.xml.get(r);if(h&&u){var l=n(u,o,a,h);return t.sys.cache.bitmapFont.add(e,{data:l,texture:i,frame:s}),!0}return!1}},function(t,e,i){var n={DisplayList:i(489),GameObjectCreator:i(13),GameObjectFactory:i(11),UpdateList:i(461),Components:i(15),BuildGameObject:i(23),BuildGameObjectAnimation:i(123),GameObject:i(2),BitmapText:i(251),Blitter:i(250),Container:i(249),DynamicBitmapText:i(248),Graphics:i(112),Group:i(109),Image:i(69),Particles:i(896),PathFollower:i(403),RenderTexture:i(232),RetroFont:i(885),Sprite3D:i(148),Sprite:i(34),Text:i(107),TileSprite:i(231),Zone:i(155),Factories:{Blitter:i(879),Container:i(878),DynamicBitmapText:i(877),Graphics:i(395),Group:i(876),Image:i(394),Particles:i(875),PathFollower:i(874),RenderTexture:i(873),Sprite3D:i(872),Sprite:i(393),StaticBitmapText:i(871),Text:i(392),TileSprite:i(870),Zone:i(869)},Creators:{Blitter:i(868),Container:i(867),DynamicBitmapText:i(866),Graphics:i(391),Group:i(865),Image:i(390),Particles:i(864),RenderTexture:i(863),Sprite3D:i(862),Sprite:i(389),StaticBitmapText:i(861),Text:i(388),TileSprite:i(860),Zone:i(859)}};n.Mesh=i(143),n.Quad=i(230),n.Factories.Mesh=i(855),n.Factories.Quad=i(854),n.Creators.Mesh=i(853),n.Creators.Quad=i(852),n.Light=i(387),i(386),i(851),t.exports=n},function(t,e,i){t.exports={AddToDOM:i(126),DOMContentLoaded:i(269),ParseXML:i(268),RemoveFromDOM:i(267),RequestAnimationFrame:i(266)}},function(t,e,i){var n=i(532);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e){t.exports=function(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,e,i),s=Math.max(t,e,i),r=s-n,o=0;return s!==n&&(s===t?o=(e-i)/r+(e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e){t.exports=function(t,e){void 0===e&&(e="none");return["-webkit-","-khtml-","-moz-","-ms-",""].forEach(function(i){t.style[i+"user-select"]=e}),t.style["-webkit-touch-callout"]=e,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e="none"),t.style.msTouchAction=e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t}},function(t,e,i){t.exports={Interpolation:i(272),Pool:i(22),Smoothing:i(127),TouchAction:i(921),UserSelect:i(920)}},function(t,e){t.exports=function(t){return t.height*t.originY}},function(t,e){t.exports=function(t){return t.width*t.originX}},function(t,e,i){t.exports={CenterOn:i(588),GetBottom:i(48),GetCenterX:i(91),GetCenterY:i(88),GetLeft:i(46),GetOffsetX:i(924),GetOffsetY:i(923),GetRight:i(44),GetTop:i(42),SetBottom:i(47),SetCenterX:i(90),SetCenterY:i(89),SetLeft:i(45),SetRight:i(43),SetTop:i(41)}},function(t,e,i){var n=i(44),s=i(42),r=i(47),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(46),s=i(42),r=i(47),o=i(45);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)-i),r(t,s(e)-a),t}},function(t,e,i){var n=i(91),s=i(42),r=i(47),o=i(90);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(44),s=i(42),r=i(45),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(88),s=i(44),r=i(89),o=i(45);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(44),r=i(47),o=i(45);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(46),s=i(42),r=i(43),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(88),s=i(46),r=i(89),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(46),r=i(47),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(44),r=i(43),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(46),r=i(45),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)-i),o(t,n(e)+a),t}},function(t,e,i){var n=i(48),s=i(91),r=i(90),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){t.exports={BottomCenter:i(937),BottomLeft:i(936),BottomRight:i(935),LeftBottom:i(934),LeftCenter:i(933),LeftTop:i(932),RightBottom:i(931),RightCenter:i(930),RightTop:i(929),TopCenter:i(928),TopLeft:i(927),TopRight:i(926)}},function(t,e,i){t.exports={BottomCenter:i(592),BottomLeft:i(591),BottomRight:i(590),Center:i(589),LeftCenter:i(587),QuickSet:i(593),RightCenter:i(586),TopCenter:i(585),TopLeft:i(584),TopRight:i(583)}},function(t,e,i){var n=i(297),s=i(18),r={In:i(939),To:i(938)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={Align:i(940),Bounds:i(925),Canvas:i(922),Color:i(533),Masks:i(529)}},function(t,e,i){var n=i(0),s=i(7),r=new n({initialize:function(t,e){this.active=!1,this.p0=new s(t,e)},getPoint:function(t,e){return void 0===e&&(e=new s),e.copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});t.exports=r},function(t,e,i){var n=i(0),s=i(542),r=i(540),o=i(11),a=i(539),h=i(942),u=i(538),l=i(14),c=i(536),d=i(7),f=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,u,l=this.getEndPoint();return t instanceof d?(a=t,h=e,u=i):(a=new d(i,n),h=new d(r,o),u=new d(t,e)),this.add(new s(l,a,h,u))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new u(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e0;){this.cameras.pop().destroy()}return this.main},update:function(t,e){for(var i=0,n=this.cameras.length;i1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)u=(c=t[h]).x,l=c.y,c.x=o,c.y=a,o=u,a=l;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,t.exports=n},function(t,e){t.exports=function(t){if("object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,s="~";function r(){}function o(t,e,i,n,r){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new function(t,e,i){this.fn=t,this.context=e,this.once=i||!1}(i,n||t,r),a=s?s+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],o]:t._events[a].push(o):(t._events[a]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function h(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(s=!1)),h.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(s?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},h.prototype.listeners=function(t){var e=s?s+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,r=i.length,o=new Array(r);n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){t.exports={Alpha:i(582),Animation:i(302),BlendMode:i(581),ComputedSize:i(580),Depth:i(579),Flip:i(578),GetBounds:i(577),Mask:i(576),MatrixStack:i(575),Origin:i(574),Pipeline:i(291),ScaleMode:i(573),ScrollFactor:i(572),Size:i(571),Texture:i(570),Tint:i(569),ToJSON:i(568),Transform:i(567),TransformMatrix:i(63),Visible:i(566)}},function(t,e,i){var n=i(297),s={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:new n};t.exports=s},function(t,e){t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19}},function(t,e,i){var n=i(8),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},u=2),l===u&&(h=this,--u);u=400&&t.status<=599&&(i=!1),this.resetXHR(),this.loader.nextFile(this,i)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit("fileprogress",this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit("filecomplete",e,i,t),this.loader.emit("filecomplete_"+i+"_"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});l.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},l.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=l},function(t,e,i){var n={VERSION:"3.9.0",BlendModes:i(50),ScaleModes:i(58),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=n},function(t,e,i){var n=i(1);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),u=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var l=[],c=e;c