diff --git a/dist/melonjs.mjs/_virtual/_commonjsHelpers.js b/dist/melonjs.mjs/_virtual/_commonjsHelpers.js index b08bb8ca9..475f1c271 100644 --- a/dist/melonjs.mjs/_virtual/_commonjsHelpers.js +++ b/dist/melonjs.mjs/_virtual/_commonjsHelpers.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/earcut.js b/dist/melonjs.mjs/_virtual/earcut.js index fc9071783..847aa6c21 100644 --- a/dist/melonjs.mjs/_virtual/earcut.js +++ b/dist/melonjs.mjs/_virtual/earcut.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/howler.js b/dist/melonjs.mjs/_virtual/howler.js index 0f345e990..c5be4bd8d 100644 --- a/dist/melonjs.mjs/_virtual/howler.js +++ b/dist/melonjs.mjs/_virtual/howler.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/_virtual/index.js b/dist/melonjs.mjs/_virtual/index.js index 7a5067148..30a265421 100644 --- a/dist/melonjs.mjs/_virtual/index.js +++ b/dist/melonjs.mjs/_virtual/index.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/application.js b/dist/melonjs.mjs/application/application.js index 5cbb8efc5..963e2094a 100644 --- a/dist/melonjs.mjs/application/application.js +++ b/dist/melonjs.mjs/application/application.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/header.js b/dist/melonjs.mjs/application/header.js index adaa2af03..c8753b117 100644 --- a/dist/melonjs.mjs/application/header.js +++ b/dist/melonjs.mjs/application/header.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/resize.js b/dist/melonjs.mjs/application/resize.js index 7eb447f65..32ff8ce06 100644 --- a/dist/melonjs.mjs/application/resize.js +++ b/dist/melonjs.mjs/application/resize.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/application/settings.js b/dist/melonjs.mjs/application/settings.js index e6f7196de..197fda245 100644 --- a/dist/melonjs.mjs/application/settings.js +++ b/dist/melonjs.mjs/application/settings.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/audio/audio.js b/dist/melonjs.mjs/audio/audio.js index f1b5f386b..316e37959 100644 --- a/dist/melonjs.mjs/audio/audio.js +++ b/dist/melonjs.mjs/audio/audio.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/camera/camera2d.js b/dist/melonjs.mjs/camera/camera2d.js index bd1ce92ef..025ece5e6 100644 --- a/dist/melonjs.mjs/camera/camera2d.js +++ b/dist/melonjs.mjs/camera/camera2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/const.js b/dist/melonjs.mjs/const.js index b29d4cb25..e58d389da 100644 --- a/dist/melonjs.mjs/const.js +++ b/dist/melonjs.mjs/const.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/ellipse.js b/dist/melonjs.mjs/geometries/ellipse.js index d19687994..85e5651ea 100644 --- a/dist/melonjs.mjs/geometries/ellipse.js +++ b/dist/melonjs.mjs/geometries/ellipse.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/line.js b/dist/melonjs.mjs/geometries/line.js index 72a5c2169..b25c32b44 100644 --- a/dist/melonjs.mjs/geometries/line.js +++ b/dist/melonjs.mjs/geometries/line.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/path2d.js b/dist/melonjs.mjs/geometries/path2d.js index 22c31df65..1d493301e 100644 --- a/dist/melonjs.mjs/geometries/path2d.js +++ b/dist/melonjs.mjs/geometries/path2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/point.js b/dist/melonjs.mjs/geometries/point.js index 709d85839..0a601a1e7 100644 --- a/dist/melonjs.mjs/geometries/point.js +++ b/dist/melonjs.mjs/geometries/point.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/poly.js b/dist/melonjs.mjs/geometries/poly.js index bc50d0738..ecc8c8cce 100644 --- a/dist/melonjs.mjs/geometries/poly.js +++ b/dist/melonjs.mjs/geometries/poly.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/rectangle.js b/dist/melonjs.mjs/geometries/rectangle.js index 1572df889..ef5c1f9a6 100644 --- a/dist/melonjs.mjs/geometries/rectangle.js +++ b/dist/melonjs.mjs/geometries/rectangle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/roundrect.js b/dist/melonjs.mjs/geometries/roundrect.js index aab295291..9168b67ff 100644 --- a/dist/melonjs.mjs/geometries/roundrect.js +++ b/dist/melonjs.mjs/geometries/roundrect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/geometries/toarccanvas.js b/dist/melonjs.mjs/geometries/toarccanvas.js index 44eeba5fc..a8463a443 100644 --- a/dist/melonjs.mjs/geometries/toarccanvas.js +++ b/dist/melonjs.mjs/geometries/toarccanvas.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/index.js b/dist/melonjs.mjs/index.js index 5b591854e..c214c4b86 100644 --- a/dist/melonjs.mjs/index.js +++ b/dist/melonjs.mjs/index.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -112,7 +112,7 @@ import { initKeyboardEvent } from './input/keyboard.js'; * @name version * @type {string} */ -const version = "16.1.0"; +const version = "16.1.1"; /** * a flag indicating that melonJS is fully initialized diff --git a/dist/melonjs.mjs/input/gamepad.js b/dist/melonjs.mjs/input/gamepad.js index b4af83aa6..3fe56e848 100644 --- a/dist/melonjs.mjs/input/gamepad.js +++ b/dist/melonjs.mjs/input/gamepad.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/input.js b/dist/melonjs.mjs/input/input.js index 74f30a4c7..46b2cf7eb 100644 --- a/dist/melonjs.mjs/input/input.js +++ b/dist/melonjs.mjs/input/input.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/keyboard.js b/dist/melonjs.mjs/input/keyboard.js index ba336a5a9..044abcab5 100644 --- a/dist/melonjs.mjs/input/keyboard.js +++ b/dist/melonjs.mjs/input/keyboard.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/pointer.js b/dist/melonjs.mjs/input/pointer.js index ea0e24c24..cddbca4bb 100644 --- a/dist/melonjs.mjs/input/pointer.js +++ b/dist/melonjs.mjs/input/pointer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/input/pointerevent.js b/dist/melonjs.mjs/input/pointerevent.js index ec71b7ddf..89ffd1fa1 100644 --- a/dist/melonjs.mjs/input/pointerevent.js +++ b/dist/melonjs.mjs/input/pointerevent.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/lang/console.js b/dist/melonjs.mjs/lang/console.js index 79613aaff..604335332 100644 --- a/dist/melonjs.mjs/lang/console.js +++ b/dist/melonjs.mjs/lang/console.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/lang/deprecated.js b/dist/melonjs.mjs/lang/deprecated.js index bb4ddb4df..ccbeba110 100644 --- a/dist/melonjs.mjs/lang/deprecated.js +++ b/dist/melonjs.mjs/lang/deprecated.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/level.js b/dist/melonjs.mjs/level/level.js index 7d817907e..8f873926b 100644 --- a/dist/melonjs.mjs/level/level.js +++ b/dist/melonjs.mjs/level/level.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXGroup.js b/dist/melonjs.mjs/level/tiled/TMXGroup.js index 1d72db380..8f3f0ea60 100644 --- a/dist/melonjs.mjs/level/tiled/TMXGroup.js +++ b/dist/melonjs.mjs/level/tiled/TMXGroup.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXLayer.js b/dist/melonjs.mjs/level/tiled/TMXLayer.js index 97cd18141..921dce83c 100644 --- a/dist/melonjs.mjs/level/tiled/TMXLayer.js +++ b/dist/melonjs.mjs/level/tiled/TMXLayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXObject.js b/dist/melonjs.mjs/level/tiled/TMXObject.js index 70ec3a334..4fb590cca 100644 --- a/dist/melonjs.mjs/level/tiled/TMXObject.js +++ b/dist/melonjs.mjs/level/tiled/TMXObject.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTile.js b/dist/melonjs.mjs/level/tiled/TMXTile.js index c01b7fb2f..d8ac1a150 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTile.js +++ b/dist/melonjs.mjs/level/tiled/TMXTile.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTileMap.js b/dist/melonjs.mjs/level/tiled/TMXTileMap.js index 9de3274aa..3059ce95c 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTileMap.js +++ b/dist/melonjs.mjs/level/tiled/TMXTileMap.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTileset.js b/dist/melonjs.mjs/level/tiled/TMXTileset.js index c4fd09ea5..8ed4e3d6c 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTileset.js +++ b/dist/melonjs.mjs/level/tiled/TMXTileset.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js b/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js index f8dd7de2c..fc9c3c2ad 100644 --- a/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js +++ b/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/TMXUtils.js b/dist/melonjs.mjs/level/tiled/TMXUtils.js index 31ea64bc7..890b68129 100644 --- a/dist/melonjs.mjs/level/tiled/TMXUtils.js +++ b/dist/melonjs.mjs/level/tiled/TMXUtils.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/constants.js b/dist/melonjs.mjs/level/tiled/constants.js index 616fb6bef..d755fd0da 100644 --- a/dist/melonjs.mjs/level/tiled/constants.js +++ b/dist/melonjs.mjs/level/tiled/constants.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js index f0f520666..9d3c97ac4 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js index c8c478bae..8621b8df7 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js index b60393bc4..1cf0b7858 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js index 930c0f1f5..3b1b8f5dc 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js b/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js index d6e708db0..4180225df 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js +++ b/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/level/tiled/renderer/autodetect.js b/dist/melonjs.mjs/level/tiled/renderer/autodetect.js index 88bb06334..4f8413e2f 100644 --- a/dist/melonjs.mjs/level/tiled/renderer/autodetect.js +++ b/dist/melonjs.mjs/level/tiled/renderer/autodetect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/cache.js b/dist/melonjs.mjs/loader/cache.js index 94ddbe19f..802bf4e44 100644 --- a/dist/melonjs.mjs/loader/cache.js +++ b/dist/melonjs.mjs/loader/cache.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/loader.js b/dist/melonjs.mjs/loader/loader.js index 52d26dbf4..84791489c 100644 --- a/dist/melonjs.mjs/loader/loader.js +++ b/dist/melonjs.mjs/loader/loader.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/loadingscreen.js b/dist/melonjs.mjs/loader/loadingscreen.js index acd04c997..349ab1bb0 100644 --- a/dist/melonjs.mjs/loader/loadingscreen.js +++ b/dist/melonjs.mjs/loader/loadingscreen.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/melonjs_logo.png.js b/dist/melonjs.mjs/loader/melonjs_logo.png.js index 8e9a98068..a1f45aa5b 100644 --- a/dist/melonjs.mjs/loader/melonjs_logo.png.js +++ b/dist/melonjs.mjs/loader/melonjs_logo.png.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/binary.js b/dist/melonjs.mjs/loader/parsers/binary.js index 14825d8e6..b4fdf8701 100644 --- a/dist/melonjs.mjs/loader/parsers/binary.js +++ b/dist/melonjs.mjs/loader/parsers/binary.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/fetchdata.js b/dist/melonjs.mjs/loader/parsers/fetchdata.js index 5684beffd..2cc9118b1 100644 --- a/dist/melonjs.mjs/loader/parsers/fetchdata.js +++ b/dist/melonjs.mjs/loader/parsers/fetchdata.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/fontface.js b/dist/melonjs.mjs/loader/parsers/fontface.js index 3ddfa5f15..6d3457279 100644 --- a/dist/melonjs.mjs/loader/parsers/fontface.js +++ b/dist/melonjs.mjs/loader/parsers/fontface.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/image.js b/dist/melonjs.mjs/loader/parsers/image.js index ff588c794..9721e708f 100644 --- a/dist/melonjs.mjs/loader/parsers/image.js +++ b/dist/melonjs.mjs/loader/parsers/image.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/json.js b/dist/melonjs.mjs/loader/parsers/json.js index 2bdf2142e..0066eaf6f 100644 --- a/dist/melonjs.mjs/loader/parsers/json.js +++ b/dist/melonjs.mjs/loader/parsers/json.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/script.js b/dist/melonjs.mjs/loader/parsers/script.js index d30edfe0c..e4e4b08da 100644 --- a/dist/melonjs.mjs/loader/parsers/script.js +++ b/dist/melonjs.mjs/loader/parsers/script.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/tmx.js b/dist/melonjs.mjs/loader/parsers/tmx.js index dc65b062f..f6e36334b 100644 --- a/dist/melonjs.mjs/loader/parsers/tmx.js +++ b/dist/melonjs.mjs/loader/parsers/tmx.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/loader/parsers/video.js b/dist/melonjs.mjs/loader/parsers/video.js index 82c0ec832..47bcfb8f1 100644 --- a/dist/melonjs.mjs/loader/parsers/video.js +++ b/dist/melonjs.mjs/loader/parsers/video.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -69,7 +69,8 @@ function preloadVideo(data, onload, onerror) { } if (typeof onload === "function") { - if (data.stream === true) { + // some mobile browser (e.g. safari) won't emit the canplay event if autoplay is disabled + if (data.stream === true || data.autoplay === false) { videoElement.onloadedmetadata = () => { if (typeof onload === "function") { onload(); diff --git a/dist/melonjs.mjs/loader/settings.js b/dist/melonjs.mjs/loader/settings.js index 40b14ef30..eb8767edf 100644 --- a/dist/melonjs.mjs/loader/settings.js +++ b/dist/melonjs.mjs/loader/settings.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/color.js b/dist/melonjs.mjs/math/color.js index e2123c8f7..818725ae8 100644 --- a/dist/melonjs.mjs/math/color.js +++ b/dist/melonjs.mjs/math/color.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/math.js b/dist/melonjs.mjs/math/math.js index 57c9bc38e..68f0230ce 100644 --- a/dist/melonjs.mjs/math/math.js +++ b/dist/melonjs.mjs/math/math.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/matrix2.js b/dist/melonjs.mjs/math/matrix2.js index 698d1610b..57fdaa197 100644 --- a/dist/melonjs.mjs/math/matrix2.js +++ b/dist/melonjs.mjs/math/matrix2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/matrix3.js b/dist/melonjs.mjs/math/matrix3.js index 91a6cba42..d97eec76d 100644 --- a/dist/melonjs.mjs/math/matrix3.js +++ b/dist/melonjs.mjs/math/matrix3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/observable_vector2.js b/dist/melonjs.mjs/math/observable_vector2.js index 19cdef95f..09f867f7d 100644 --- a/dist/melonjs.mjs/math/observable_vector2.js +++ b/dist/melonjs.mjs/math/observable_vector2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/observable_vector3.js b/dist/melonjs.mjs/math/observable_vector3.js index 135b04090..4533d7030 100644 --- a/dist/melonjs.mjs/math/observable_vector3.js +++ b/dist/melonjs.mjs/math/observable_vector3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/vector2.js b/dist/melonjs.mjs/math/vector2.js index a684c925a..c372d9408 100644 --- a/dist/melonjs.mjs/math/vector2.js +++ b/dist/melonjs.mjs/math/vector2.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/math/vector3.js b/dist/melonjs.mjs/math/vector3.js index 6c79890ee..caa64e6e1 100644 --- a/dist/melonjs.mjs/math/vector3.js +++ b/dist/melonjs.mjs/math/vector3.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/emitter.js b/dist/melonjs.mjs/particles/emitter.js index e5da6eee2..5255eec5e 100644 --- a/dist/melonjs.mjs/particles/emitter.js +++ b/dist/melonjs.mjs/particles/emitter.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/particle.js b/dist/melonjs.mjs/particles/particle.js index dbae3db51..8f6bf6ff6 100644 --- a/dist/melonjs.mjs/particles/particle.js +++ b/dist/melonjs.mjs/particles/particle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/particles/settings.js b/dist/melonjs.mjs/particles/settings.js index 18aae1ee6..2a04c5c4d 100644 --- a/dist/melonjs.mjs/particles/settings.js +++ b/dist/melonjs.mjs/particles/settings.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/body.js b/dist/melonjs.mjs/physics/body.js index aa203097c..212230f70 100644 --- a/dist/melonjs.mjs/physics/body.js +++ b/dist/melonjs.mjs/physics/body.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/bounds.js b/dist/melonjs.mjs/physics/bounds.js index 26a0505fb..0e8300a56 100644 --- a/dist/melonjs.mjs/physics/bounds.js +++ b/dist/melonjs.mjs/physics/bounds.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/collision.js b/dist/melonjs.mjs/physics/collision.js index 192823cde..7f5f1e2b2 100644 --- a/dist/melonjs.mjs/physics/collision.js +++ b/dist/melonjs.mjs/physics/collision.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/detector.js b/dist/melonjs.mjs/physics/detector.js index b4b52e2b6..6deb1436d 100644 --- a/dist/melonjs.mjs/physics/detector.js +++ b/dist/melonjs.mjs/physics/detector.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/quadtree.js b/dist/melonjs.mjs/physics/quadtree.js index 025a66e5f..ce01614e1 100644 --- a/dist/melonjs.mjs/physics/quadtree.js +++ b/dist/melonjs.mjs/physics/quadtree.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/response.js b/dist/melonjs.mjs/physics/response.js index e33e29089..20ef488e9 100644 --- a/dist/melonjs.mjs/physics/response.js +++ b/dist/melonjs.mjs/physics/response.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/sat.js b/dist/melonjs.mjs/physics/sat.js index 2c6e6449f..aeea36451 100644 --- a/dist/melonjs.mjs/physics/sat.js +++ b/dist/melonjs.mjs/physics/sat.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/physics/world.js b/dist/melonjs.mjs/physics/world.js index 6e2f8c9df..3c9ed7972 100644 --- a/dist/melonjs.mjs/physics/world.js +++ b/dist/melonjs.mjs/physics/world.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/plugin/plugin.js b/dist/melonjs.mjs/plugin/plugin.js index db8d7000b..9cdc3d297 100644 --- a/dist/melonjs.mjs/plugin/plugin.js +++ b/dist/melonjs.mjs/plugin/plugin.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -37,9 +37,9 @@ class BasePlugin { * define the minimum required version of melonJS
* this can be overridden by the plugin * @type {string} - * @default "16.1.0" + * @default "16.1.1" */ - this.version = "16.1.0"; + this.version = "16.1.1"; /** * a reference to the app/game that registered this plugin diff --git a/dist/melonjs.mjs/renderable/collectable.js b/dist/melonjs.mjs/renderable/collectable.js index 1b0625b75..ab6c5b161 100644 --- a/dist/melonjs.mjs/renderable/collectable.js +++ b/dist/melonjs.mjs/renderable/collectable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/colorlayer.js b/dist/melonjs.mjs/renderable/colorlayer.js index d74c78fb7..d22ad624c 100644 --- a/dist/melonjs.mjs/renderable/colorlayer.js +++ b/dist/melonjs.mjs/renderable/colorlayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/container.js b/dist/melonjs.mjs/renderable/container.js index a4baec659..fad251d1c 100644 --- a/dist/melonjs.mjs/renderable/container.js +++ b/dist/melonjs.mjs/renderable/container.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/draggable.js b/dist/melonjs.mjs/renderable/draggable.js index 5101f56b7..62ad1b5b5 100644 --- a/dist/melonjs.mjs/renderable/draggable.js +++ b/dist/melonjs.mjs/renderable/draggable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/dragndrop.js b/dist/melonjs.mjs/renderable/dragndrop.js index c35ce6c3b..75ebe7aa0 100644 --- a/dist/melonjs.mjs/renderable/dragndrop.js +++ b/dist/melonjs.mjs/renderable/dragndrop.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/entity/entity.js b/dist/melonjs.mjs/renderable/entity/entity.js index ab1ea7a57..a86fcdc3e 100644 --- a/dist/melonjs.mjs/renderable/entity/entity.js +++ b/dist/melonjs.mjs/renderable/entity/entity.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/imagelayer.js b/dist/melonjs.mjs/renderable/imagelayer.js index 9c503365b..d2b047793 100644 --- a/dist/melonjs.mjs/renderable/imagelayer.js +++ b/dist/melonjs.mjs/renderable/imagelayer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/light2d.js b/dist/melonjs.mjs/renderable/light2d.js index db1a98f08..539158171 100644 --- a/dist/melonjs.mjs/renderable/light2d.js +++ b/dist/melonjs.mjs/renderable/light2d.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/nineslicesprite.js b/dist/melonjs.mjs/renderable/nineslicesprite.js index 828f72ff1..e9c744515 100644 --- a/dist/melonjs.mjs/renderable/nineslicesprite.js +++ b/dist/melonjs.mjs/renderable/nineslicesprite.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/renderable.js b/dist/melonjs.mjs/renderable/renderable.js index fe97eca35..4c94eecfb 100644 --- a/dist/melonjs.mjs/renderable/renderable.js +++ b/dist/melonjs.mjs/renderable/renderable.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/sprite.js b/dist/melonjs.mjs/renderable/sprite.js index b05b07865..846b5abfc 100644 --- a/dist/melonjs.mjs/renderable/sprite.js +++ b/dist/melonjs.mjs/renderable/sprite.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/bitmaptext.js b/dist/melonjs.mjs/renderable/text/bitmaptext.js index 1d3241217..e90a3e8ea 100644 --- a/dist/melonjs.mjs/renderable/text/bitmaptext.js +++ b/dist/melonjs.mjs/renderable/text/bitmaptext.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/bitmaptextdata.js b/dist/melonjs.mjs/renderable/text/bitmaptextdata.js index 346a1c668..6d60d220d 100644 --- a/dist/melonjs.mjs/renderable/text/bitmaptextdata.js +++ b/dist/melonjs.mjs/renderable/text/bitmaptextdata.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/glyph.js b/dist/melonjs.mjs/renderable/text/glyph.js index e734a1802..b78e9bdbc 100644 --- a/dist/melonjs.mjs/renderable/text/glyph.js +++ b/dist/melonjs.mjs/renderable/text/glyph.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/text.js b/dist/melonjs.mjs/renderable/text/text.js index d2e591451..61d3e0a24 100644 --- a/dist/melonjs.mjs/renderable/text/text.js +++ b/dist/melonjs.mjs/renderable/text/text.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/textmetrics.js b/dist/melonjs.mjs/renderable/text/textmetrics.js index c126f12c5..441a71ec7 100644 --- a/dist/melonjs.mjs/renderable/text/textmetrics.js +++ b/dist/melonjs.mjs/renderable/text/textmetrics.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/text/textstyle.js b/dist/melonjs.mjs/renderable/text/textstyle.js index f2217c036..d863d738a 100644 --- a/dist/melonjs.mjs/renderable/text/textstyle.js +++ b/dist/melonjs.mjs/renderable/text/textstyle.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/trigger.js b/dist/melonjs.mjs/renderable/trigger.js index cf9496904..1d1ad1b6c 100644 --- a/dist/melonjs.mjs/renderable/trigger.js +++ b/dist/melonjs.mjs/renderable/trigger.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uibaseelement.js b/dist/melonjs.mjs/renderable/ui/uibaseelement.js index 3968c1695..29291e4c4 100644 --- a/dist/melonjs.mjs/renderable/ui/uibaseelement.js +++ b/dist/melonjs.mjs/renderable/ui/uibaseelement.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uispriteelement.js b/dist/melonjs.mjs/renderable/ui/uispriteelement.js index 77c6978b2..06bc291e4 100644 --- a/dist/melonjs.mjs/renderable/ui/uispriteelement.js +++ b/dist/melonjs.mjs/renderable/ui/uispriteelement.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/renderable/ui/uitextbutton.js b/dist/melonjs.mjs/renderable/ui/uitextbutton.js index b28fd9f36..32d68d7ba 100644 --- a/dist/melonjs.mjs/renderable/ui/uitextbutton.js +++ b/dist/melonjs.mjs/renderable/ui/uitextbutton.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/state/stage.js b/dist/melonjs.mjs/state/stage.js index 3d97c74a1..31cc0986e 100644 --- a/dist/melonjs.mjs/state/stage.js +++ b/dist/melonjs.mjs/state/stage.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/state/state.js b/dist/melonjs.mjs/state/state.js index c3c2e27e1..7a08acda9 100644 --- a/dist/melonjs.mjs/state/state.js +++ b/dist/melonjs.mjs/state/state.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/device.js b/dist/melonjs.mjs/system/device.js index b8bcb3320..0aa657b77 100644 --- a/dist/melonjs.mjs/system/device.js +++ b/dist/melonjs.mjs/system/device.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/dom.js b/dist/melonjs.mjs/system/dom.js index 598cd84d6..1b2fd45c9 100644 --- a/dist/melonjs.mjs/system/dom.js +++ b/dist/melonjs.mjs/system/dom.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/event.js b/dist/melonjs.mjs/system/event.js index 2e0e8efa0..563cc63aa 100644 --- a/dist/melonjs.mjs/system/event.js +++ b/dist/melonjs.mjs/system/event.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/platform.js b/dist/melonjs.mjs/system/platform.js index 79cb0e8b1..3aa7c3e6e 100644 --- a/dist/melonjs.mjs/system/platform.js +++ b/dist/melonjs.mjs/system/platform.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/pooling.js b/dist/melonjs.mjs/system/pooling.js index 5f0dd3e9c..cf0b60ccc 100644 --- a/dist/melonjs.mjs/system/pooling.js +++ b/dist/melonjs.mjs/system/pooling.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/save.js b/dist/melonjs.mjs/system/save.js index eed2fa09a..9c5021293 100644 --- a/dist/melonjs.mjs/system/save.js +++ b/dist/melonjs.mjs/system/save.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/system/timer.js b/dist/melonjs.mjs/system/timer.js index 51de73a56..ee679226b 100644 --- a/dist/melonjs.mjs/system/timer.js +++ b/dist/melonjs.mjs/system/timer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/easing.js b/dist/melonjs.mjs/tweens/easing.js index 6b93f3b98..a152a11cd 100644 --- a/dist/melonjs.mjs/tweens/easing.js +++ b/dist/melonjs.mjs/tweens/easing.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/interpolation.js b/dist/melonjs.mjs/tweens/interpolation.js index a53cdb6cc..6820b50b5 100644 --- a/dist/melonjs.mjs/tweens/interpolation.js +++ b/dist/melonjs.mjs/tweens/interpolation.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/tweens/tween.js b/dist/melonjs.mjs/tweens/tween.js index 52766cf0c..ee2309eb9 100644 --- a/dist/melonjs.mjs/tweens/tween.js +++ b/dist/melonjs.mjs/tweens/tween.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/agent.js b/dist/melonjs.mjs/utils/agent.js index 82531e610..7691a32ff 100644 --- a/dist/melonjs.mjs/utils/agent.js +++ b/dist/melonjs.mjs/utils/agent.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/array.js b/dist/melonjs.mjs/utils/array.js index 35ed2bdb0..d481f3ec8 100644 --- a/dist/melonjs.mjs/utils/array.js +++ b/dist/melonjs.mjs/utils/array.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/file.js b/dist/melonjs.mjs/utils/file.js index 192a90fde..33f22f640 100644 --- a/dist/melonjs.mjs/utils/file.js +++ b/dist/melonjs.mjs/utils/file.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/function.js b/dist/melonjs.mjs/utils/function.js index c1e75fa10..f79e70b66 100644 --- a/dist/melonjs.mjs/utils/function.js +++ b/dist/melonjs.mjs/utils/function.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/string.js b/dist/melonjs.mjs/utils/string.js index 9edfacf97..2ec71c41f 100644 --- a/dist/melonjs.mjs/utils/string.js +++ b/dist/melonjs.mjs/utils/string.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/utils/utils.js b/dist/melonjs.mjs/utils/utils.js index f1011ed4c..c3929c46e 100644 --- a/dist/melonjs.mjs/utils/utils.js +++ b/dist/melonjs.mjs/utils/utils.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/canvas/canvas_renderer.js b/dist/melonjs.mjs/video/canvas/canvas_renderer.js index 0110bcab0..c7279273c 100644 --- a/dist/melonjs.mjs/video/canvas/canvas_renderer.js +++ b/dist/melonjs.mjs/video/canvas/canvas_renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/renderer.js b/dist/melonjs.mjs/video/renderer.js index cf076d51a..6dc96a537 100644 --- a/dist/melonjs.mjs/video/renderer.js +++ b/dist/melonjs.mjs/video/renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/atlas.js b/dist/melonjs.mjs/video/texture/atlas.js index 57e542a24..721a3b348 100644 --- a/dist/melonjs.mjs/video/texture/atlas.js +++ b/dist/melonjs.mjs/video/texture/atlas.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/cache.js b/dist/melonjs.mjs/video/texture/cache.js index 7b32479c1..a89226e61 100644 --- a/dist/melonjs.mjs/video/texture/cache.js +++ b/dist/melonjs.mjs/video/texture/cache.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/texture/canvas_texture.js b/dist/melonjs.mjs/video/texture/canvas_texture.js index d19b9b871..1db2b58fc 100644 --- a/dist/melonjs.mjs/video/texture/canvas_texture.js +++ b/dist/melonjs.mjs/video/texture/canvas_texture.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/utils/autodetect.js b/dist/melonjs.mjs/video/utils/autodetect.js index 890c64f4e..11f6e14f9 100644 --- a/dist/melonjs.mjs/video/utils/autodetect.js +++ b/dist/melonjs.mjs/video/utils/autodetect.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/video.js b/dist/melonjs.mjs/video/video.js index d60e151cb..a79c20edf 100644 --- a/dist/melonjs.mjs/video/video.js +++ b/dist/melonjs.mjs/video/video.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/buffer/vertex.js b/dist/melonjs.mjs/video/webgl/buffer/vertex.js index 56a595ed5..187c90b2d 100644 --- a/dist/melonjs.mjs/video/webgl/buffer/vertex.js +++ b/dist/melonjs.mjs/video/webgl/buffer/vertex.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/compositor.js b/dist/melonjs.mjs/video/webgl/compositors/compositor.js index 09aeb6048..63ace25a0 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js index 6cf7aa4e9..1bf8ed04a 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js index c89a7b310..7c39b1c7c 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/glshader.js b/dist/melonjs.mjs/video/webgl/glshader.js index 6e9ce768e..a446aaba9 100644 --- a/dist/melonjs.mjs/video/webgl/glshader.js +++ b/dist/melonjs.mjs/video/webgl/glshader.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js b/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js index b75122d74..a3891f50a 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js +++ b/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js b/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js index 18109c8bc..9eb8437b9 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js +++ b/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js b/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js index 40321f4cc..a5135f462 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js +++ b/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js b/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js index bc261256c..7256629a7 100644 --- a/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js +++ b/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/attributes.js b/dist/melonjs.mjs/video/webgl/utils/attributes.js index 6503c21e8..51c1fb9c6 100644 --- a/dist/melonjs.mjs/video/webgl/utils/attributes.js +++ b/dist/melonjs.mjs/video/webgl/utils/attributes.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/precision.js b/dist/melonjs.mjs/video/webgl/utils/precision.js index c0b6934ab..48ff68cdb 100644 --- a/dist/melonjs.mjs/video/webgl/utils/precision.js +++ b/dist/melonjs.mjs/video/webgl/utils/precision.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/program.js b/dist/melonjs.mjs/video/webgl/utils/program.js index d1bc14d27..ed5f29f19 100644 --- a/dist/melonjs.mjs/video/webgl/utils/program.js +++ b/dist/melonjs.mjs/video/webgl/utils/program.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/string.js b/dist/melonjs.mjs/video/webgl/utils/string.js index 1b05dd45b..8303b0b55 100644 --- a/dist/melonjs.mjs/video/webgl/utils/string.js +++ b/dist/melonjs.mjs/video/webgl/utils/string.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/utils/uniforms.js b/dist/melonjs.mjs/video/webgl/utils/uniforms.js index 4c27df402..3c575a448 100644 --- a/dist/melonjs.mjs/video/webgl/utils/uniforms.js +++ b/dist/melonjs.mjs/video/webgl/utils/uniforms.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.mjs/video/webgl/webgl_renderer.js b/dist/melonjs.mjs/video/webgl/webgl_renderer.js index 4724a528f..983d1fb1a 100644 --- a/dist/melonjs.mjs/video/webgl/webgl_renderer.js +++ b/dist/melonjs.mjs/video/webgl/webgl_renderer.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license diff --git a/dist/melonjs.module.js b/dist/melonjs.module.js index 3dbe81707..a965d9dff 100644 --- a/dist/melonjs.module.js +++ b/dist/melonjs.module.js @@ -1,5 +1,5 @@ /*! - * melonJS Game Engine - v16.1.0 + * melonJS Game Engine - v16.1.1 * http://www.melonjs.org * melonjs is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license @@ -27785,7 +27785,8 @@ function preloadVideo(data, onload, onerror) { } if (typeof onload === "function") { - if (data.stream === true) { + // some mobile browser (e.g. safari) won't emit the canplay event if autoplay is disabled + if (data.stream === true || data.autoplay === false) { videoElement.onloadedmetadata = () => { if (typeof onload === "function") { onload(); @@ -39533,9 +39534,9 @@ class BasePlugin { * define the minimum required version of melonJS
* this can be overridden by the plugin * @type {string} - * @default "16.1.0" + * @default "16.1.1" */ - this.version = "16.1.0"; + this.version = "16.1.1"; /** * a reference to the app/game that registered this plugin @@ -39817,7 +39818,7 @@ Renderer.prototype.getHeight = function() { * @name version * @type {string} */ -const version = "16.1.0"; +const version = "16.1.1"; /** * a flag indicating that melonJS is fully initialized diff --git a/docs/docs/Class-Index.html b/docs/docs/Class-Index.html index b9c1af114..759b5267f 100644 --- a/docs/docs/Class-Index.html +++ b/docs/docs/Class-Index.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/index.html b/docs/docs/index.html index 82fc0773c..fe34c3cac 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -1,5 +1,5 @@ - + @@ -177,6 +177,7 @@

Demos

  • Primitive Drawing Demo (source)
  • UI Demo (source)
  • Tiled Map Loader Demo (source)
  • +
  • Video Demo (source)
  • More examples are available here


    diff --git a/docs/docs/melonjs.api.json b/docs/docs/melonjs.api.json index 0b24b70fe..71d0fbd02 100644 --- a/docs/docs/melonjs.api.json +++ b/docs/docs/melonjs.api.json @@ -1 +1 @@ -{"version":"1.0.0","metadata":{"linker":"(unsigned)","siteRoot":"melonJS/docs"},"root":{"id":"root-dpZ03DMU6nRXq8FtnpmFU","name":"","type":"RootDoc","members":[{"id":"RWQFk2t2SacyJAB6GdKbb","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"LWxEOwBfqweh-gPZFDL85","name":"stopOnAudioError","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

    Specify either to stop on audio loading error or not
    \nif true, melonJS will throw an exception and stop loading
    \nif ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"osCutTtDEiGegJ7qRbSyk","name":"disable","brief":"","scope":"static","type":"FunctionDoc","description":"

    disable audio output

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UF5iR2VM9Xjdkdiq0IhlV","name":"enable","brief":"","scope":"static","see":["audio.disable"],"type":"FunctionDoc","description":"

    enable audio output
    \nonly useful if audio supported and previously disabled through

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DQlPWa5GradirLPUxCcWx","name":"fade","brief":"","scope":"static","type":"FunctionDoc","description":"

    Fade a currently playing sound between two volumee.

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"from","optional":false,"description":"

    Volume to fade from (0.0 to 1.0).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"to","optional":false,"description":"

    Volume to fade to (0.0 to 1.0).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

    Time in milliseconds to fade.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will fade.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IDTJhSEA0af0UrJ6cxas1","name":"getCurrentTrack","brief":"","scope":"static","type":"FunctionDoc","description":"

    returns the current track Id

    ","params":[],"returns":[{"description":"

    audio track name

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"UYivXqhQ5_YnVu3jQqgnH","name":"getVolume","brief":"","scope":"static","type":"FunctionDoc","description":"

    get the default global volume

    ","params":[],"returns":[{"description":"

    current volume value in Float [0.0 - 1.0] .

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yLprUjw4aBCzhglUCaReC","name":"hasAudio","brief":"","scope":"static","type":"FunctionDoc","description":"

    check if audio (HTML5 or WebAudio) is supported

    ","params":[],"returns":[{"description":"

    return true if audio (HTML5 or WebAudio) is supported

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OuA7FnKD319j8M4e6cqf8","name":"hasFormat","brief":"","scope":"static","type":"FunctionDoc","description":"

    check if the given audio format is supported

    ","params":[{"identifier":"codec","optional":false,"description":"

    the audio format to check for support

    ","dataType":{"tokens":[{"value":"\"mp3\" | \"mpeg\" | \"opus\" | \"ogg\" | \"oga\" | \"wav\" | \"aac\" | \"caf\" | \"m4a\" | \"m4b\" | \"mp4\" | \"weba\" | \"webm\" | \"dolby\" | \"flac\"","kind":"canonical"},{"value":"\"mp3\"","kind":"canonical"},{"value":"\"mpeg\"","kind":"canonical"},{"value":"\"opus\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"oga\"","kind":"canonical"},{"value":"\"wav\"","kind":"canonical"},{"value":"\"aac\"","kind":"canonical"},{"value":"\"caf\"","kind":"canonical"},{"value":"\"m4a\"","kind":"canonical"},{"value":"\"m4b\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"weba\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"dolby\"","kind":"canonical"},{"value":"\"flac\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}}],"returns":[{"description":"

    return true if the given audio format is supported

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GzkVBSusdw7gRIe6fpmn9","name":"init","brief":"","examples":[{"caption":"","code":"// initialize the \"sound engine\", giving \"webm\" as default desired audio format, and \"mp3\" as a fallback\nif (!me.audio.init(\"webm,mp3\")) {\n alert(\"Sorry but your browser does not support html 5 audio !\");\n return;\n}"}],"scope":"static","type":"FunctionDoc","description":"

    Initialize and configure the audio support.
    \nFor a maximum browser coverage the recommendation is to use at least two o...","params":[{"identifier":"format","optional":true,"default":"\"mp3\"","description":"

    audio format to prioritize ("mp3"|"mpeg"|"opus"|"ogg"|"oga"|"wav&qu...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

    Indicates whether audio initialization was successful

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LaJQSoNASGRxlLBPbOxnQ","name":"load","brief":"","scope":"static","type":"FunctionDoc","description":"

    Load an audio file

    ","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onloadcb","optional":true,"description":"

    function to be called when the resource is loaded

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerrorcb","optional":true,"description":"

    function to be called in case of error

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

    the amount of asset loaded (always 1 if successfull)

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CW2a4fVuzmKp7kzW3AOO_","name":"mute","brief":"","examples":[{"caption":"","code":"// mute the background music\nme.audio.mute(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

    mute or unmute the specified sound, but does not pause the playback.

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will mute.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"mute","optional":true,"default":"true","description":"

    True to mute and false to unmute

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"1fNUpaWUlpNWWse3O9H6H","name":"muteAll","brief":"","scope":"static","type":"FunctionDoc","description":"

    mute all audio

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-rgCdi7iMDefMrPO723iU","name":"muted","brief":"","scope":"static","type":"FunctionDoc","description":"

    Returns true if audio is muted globally.

    ","params":[],"returns":[{"description":"

    true if audio is muted globally

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JWdThYbsKJV3K0qmlCcw0","name":"pause","brief":"","examples":[{"caption":"","code":"me.audio.pause(\"cling\");"}],"scope":"static","type":"FunctionDoc","description":"

    pause the specified sound on all channels
    \nthis function does not reset the currentTime property

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will pause.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HfU_DPivRZVk5C8p1NLs3","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"scope":"static","type":"FunctionDoc","description":"

    pause the current audio track

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b5OQHd53JDqg7Ldbh3zYF","name":"play","brief":"","examples":[{"caption":"","code":"// play the \"cling\" audio clip\nme.audio.play(\"cling\");\n// play & repeat the \"engine\" audio clip\nme.audio.play(\"engine\", true);\n// play the \"gameover_sfx\" audio clip and call myFunc when finished\nme.audio.play(\"gameover_sfx\", false, myFunc);\n// play the \"gameover_sfx\" audio clip with a lower volume level\nme.audio.play(\"gameover_sfx\", false, null, 0.5);"}],"scope":"static","type":"FunctionDoc","description":"

    play the specified sound

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"loop","optional":true,"default":"false","description":"

    loop audio

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"onend","optional":true,"description":"

    Function to call when sound instance ends playing.

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"volume","optional":true,"default":"default","description":"

    Float specifying volume (0.0 - 1.0 values accepted).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

    the sound instance ID.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"82misYktIZr7LOo1i45q7","name":"playTrack","brief":"","examples":[{"caption":"","code":"me.audio.playTrack(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

    play the specified audio track
    \nthis function automatically set the loop property to true
    \nand keep track of the cur...","params":[{"identifier":"sound_name","optional":false,"description":"

    audio track name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"volume","optional":true,"default":"default","description":"

    Float specifying volume (0.0 - 1.0 values accepted).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

    the sound instance ID.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_KrIn8BYYMV02q3Yohiy9","name":"rate","brief":"","examples":[{"caption":"","code":"// get the playback rate of the background music\nlet rate = me.audio.rate(\"dst-gameforest\");\n// speed up the playback of the background music\nme.audio.rate(\"dst-gameforest\", 2.0);"}],"scope":"static","type":"FunctionDoc","description":"

    get or set the rate of playback for a sound.

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"rate","optional":true,"variadic":true,"description":"

    playback rate : 0.5 to 4.0, with 1.0 being normal speed.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will be changed.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

    return the current playback rate (if no extra parameters were given)

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3KNRoSOrp-C2drITYJ7bf","name":"resume","brief":"","examples":[{"caption":"","code":"// play a audio clip\nlet id = me.audio.play(\"myClip\");\n...\n// pause it\nme.audio.pause(\"myClip\", id);\n...\n// resume\nme.audio.resume(\"myClip\", id);"}],"scope":"static","type":"FunctionDoc","description":"

    resume the specified sound on all channels

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will resume.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"W8BumNXley6O167fNK3RF","name":"resumeTrack","brief":"","examples":[{"caption":"","code":"// play an awesome music\nme.audio.playTrack(\"awesome_music\");\n// pause the audio track\nme.audio.pauseTrack();\n// resume the music\nme.audio.resumeTrack();"}],"scope":"static","type":"FunctionDoc","description":"

    resume the previously paused audio track

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WwhKflEUx6v2e-vwQ2oTu","name":"seek","brief":"","examples":[{"caption":"","code":"// return the current position of the background music\nlet current_pos = me.audio.seek(\"dst-gameforest\");\n// set back the position of the background music to the beginning\nme.audio.seek(\"dst-gameforest\", 0);"}],"scope":"static","type":"FunctionDoc","description":"

    get/set the position of playback for a sound.

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"seek","optional":true,"variadic":true,"description":"

    the position to move current playback to (in seconds).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will changed.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

    return the current seek position (if no extra parameters were given)

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Brc3z3WsOKVFvgF69RaVl","name":"setVolume","brief":"","scope":"static","type":"FunctionDoc","description":"

    set the default global volume

    ","params":[{"identifier":"volume","optional":false,"description":"

    Float specifying volume (0.0 - 1.0 values accepted).

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Co0ZQv5sFALdq390xaURC","name":"stop","brief":"","examples":[{"caption":"","code":"me.audio.stop(\"cling\");"}],"scope":"static","type":"FunctionDoc","description":"

    stop the specified sound on all channels

    ","params":[{"identifier":"sound_name","optional":true,"description":"

    audio clip name (case sensitive). If none is passed, all sounds are stopped.

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will stop.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7grYjjgiO6WIH2TobjPDi","name":"stopTrack","brief":"","examples":[{"caption":"","code":"// play a awesome music\nme.audio.playTrack(\"awesome_music\");\n// stop the current music\nme.audio.stopTrack();"}],"scope":"static","see":["audio.playTrack"],"type":"FunctionDoc","description":"

    stop the current audio track

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zfmMrnMr02K26PgOXP549","name":"unload","brief":"","examples":[{"caption":"","code":"me.audio.unload(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

    unload specified audio track to free memory

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio track name - case sensitive

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

    true if unloaded

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"f3qvQutx_6NVMkCSL8vAX","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"scope":"static","type":"FunctionDoc","description":"

    unload all audio to free memory

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oHK1lh26DP4D9zka_gvQb","name":"unmute","brief":"","scope":"static","type":"FunctionDoc","description":"

    unmute the specified sound

    ","params":[{"identifier":"sound_name","optional":false,"description":"

    audio clip name

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

    the sound instance ID. If none is passed, all sounds in group will unmute.

    ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LMud13CidMABdPXGH-rwo","name":"unmuteAll","brief":"","scope":"static","type":"FunctionDoc","description":"

    unmute all audio

    ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"bZye8AAywx8UpJIZ2SsnK","name":"collision","brief":"","type":"NSDoc","description":"

    Collision detection (and projection-based collision response) of 2D shapes.
    \nBased on the Separating Axis Theorem and s...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"bFFpxsmSFV1xdfvWpXh5v","name":"types","brief":"","examples":[{"caption":"","code":" // set the body collision type\n myEntity.body.collisionType = me.collision.types.PLAYER_OBJECT;\n\n // filter collision detection with collision shapes, enemies and collectables\n myEntity.body.setCollisionMask(\n me.collision.types.WORLD_SHAPE |\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.COLLECTABLE_OBJECT\n );\n\n // User-defined collision types are defined using BITWISE LEFT-SHIFT:\n game.collisionTypes = {\n LOCKED_DOOR : me.collision.types.USER << 0,\n OPEN_DOOR : me.collision.types.USER << 1,\n LOOT : me.collision.types.USER << 2,\n };\n\n // Set collision type for a door entity\n myDoorEntity.body.collisionType = game.collisionTypes.LOCKED_DOOR;\n\n // Set collision mask for the player entity, so it collides with locked doors and loot\n myPlayerEntity.body.setCollisionMask(\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.WORLD_SHAPE |\n game.collisionTypes.LOCKED_DOOR |\n game.collisionTypes.LOOT\n );"}],"readonly":true,"scope":"static","see":["Body.setCollisionMask","Body.collisionType"],"type":"EnumDoc","description":"

    Enum for collision type values.

    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"pN-aBoZCmVkIvTJA2MKnN","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    e.g. doors

    "},{"id":"GeeXspLeC0Fazst0uCW8Y","name":"ALL_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    all of the above (including user-defined types)

    "},{"id":"PfjzI4gYa0V1AG1KSghtW","name":"COLLECTABLE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    collectable objects

    "},{"id":"orNSwf3651gHvD4uP9w3a","name":"ENEMY_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    enemies objects

    "},{"id":"ieXJnvO0VTIoWfK7Qk-HX","name":"NO_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    to disable collision check

    "},{"id":"xnGAvq1ipcBbK2hHO0b9r","name":"NO_OBJECT","brief":"

    to disable collision check

    ","defaultValue":"0","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3wqKYpxEkErQiyiR-njiA","name":"NPC_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    non playable characters

    "},{"id":"ITU9_8zdX8gFaYn5fV1zo","name":"PLAYER_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    playbable characters

    "},{"id":"cImcVClrcVe_5TVgUg18a","name":"PROJECTILE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    e.g. missiles

    "},{"id":"tjm2HbAXKS7RpPOZ1tMG9","name":"USER","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    user-defined collision types (see example)

    "},{"id":"VdV2pC4Ea0pFLvIShfW12","name":"WORLD_SHAPE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    e.g. walls; for map collision shapes

    "}]},{"id":"0tc5WOxpfEd_0f_pOBwEq","name":"maxChildren","brief":"","access":"public","defaultValue":"8","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

    The maximum number of children that a quadtree node can contain before it is split into sub-nodes.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BhJ2FjnLAYiXTkDA_EnSu","name":"maxDepth","brief":"","access":"public","defaultValue":"4","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

    The maximum number of levels that the quadtree will create.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vQHpYUE_rGXbf0DpgrCeY","name":"rayCast","brief":"","access":"public","examples":[{"caption":"","code":" // define a line accross the viewport\n let ray = new me.Line(\n // absolute position of the line\n 0, 0, [\n // starting point relative to the initial position\n new me.Vector2d(0, 0),\n // ending point\n new me.Vector2d(me.game.viewport.width, me.game.viewport.height)\n ]);\n\n // check for collition\n result = me.collision.rayCast(ray);\n\n if (result.length > 0) {\n // ...\n }"}],"scope":"instance","type":"MethodDoc","description":"

    Checks for object colliding with the given line

    ","params":[{"identifier":"line","optional":false,"description":"

    line to be tested for collision

    ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}},{"identifier":"result","optional":true,"description":"

    a user defined array that will be populated with intersecting physic objects.

    ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

    an array of intersecting physic objects

    ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"kUhRcLYRdIImxOeWRT_rE","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

    device type and capabilities

    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"JB-w46ttEmmm1q3uCZFkt","name":"platform","brief":"","readonly":true,"type":"NSDoc","description":"

    The device platform type

    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"87YVYgkEOLY7Hmvxwa6gL","name":"android","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is an Android platform

    "},{"id":"wW0sOrvQcBD_5MP-mYuJV","name":"android2","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is an Android 2.x platform

    "},{"id":"lX5U7onBs1G_OpbJBxsSv","name":"BlackBerry","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is a BlackBerry platform

    "},{"id":"yCVnmjHsejC8RnxiEAGoO","name":"chromeOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is running on ChromeOS.

    "},{"id":"4jk2DvDrGUJNoeCr7CugC","name":"ejecta","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if running under Ejecta

    "},{"id":"UUI03BSNOB3eJP2dPE988","name":"iOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is an iOS platform

    "},{"id":"deZ9HFAHqTtlZG62olnMs","name":"isMobile","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if a mobile device

    "},{"id":"muNJ6_lS-XabmLCnmPcIm","name":"isWeixin","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if running under Wechat

    "},{"id":"2UU343hxLFJsjKLJLR1bA","name":"Kindle","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is a Kindle platform

    "},{"id":"vv7VhSrWXKPh_vtkCI-gg","name":"linux","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is a Linux platform

    "},{"id":"B8gpctUrFpNMOpq7lmYLv","name":"nodeJS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if running under node.js

    "},{"id":"RP7ZqtVApaAVycB0G1-Ra","name":"ua","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    the user agent string for the current device

    "},{"id":"YPnMjywfR_JeeurCmqquY","name":"wp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

    true if the device is a Windows Phone platform

    "}]},{"id":"oPeY-3uTFMoMVKANosjgA","name":"accelerationX","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

    contains the g-force acceleration along the x-axis.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"skoWIvIHN8qdiKVLjp4lf","name":"accelerationY","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

    contains the g-force acceleration along the y-axis.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XZxI-AvE-XBu1lB_SOrKb","name":"accelerationZ","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

    contains the g-force acceleration along the z-axis.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iXWQbNAJe4cNC3qceAKjv","name":"alpha","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

    Device orientation Alpha property. Gives angle based on the rotation of the phone around its z axis.\nThe z-axis is perpend...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DLBP3DsywVZPm8H9SWx1S","name":"autoFocus","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

    Specify whether to automatically bring the window to the front

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tRbR35r66I2ofEp6i9bEj","name":"beta","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

    Device orientation Beta property. Gives angle on tilting a portrait held phone forward or backward

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sRPRquG4VZb-Z9NG7xTYh","name":"devicePixelRatio","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XCAdJCgpsWX-JcyiXG68v","name":"gamma","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

    Device orientation Gamma property. Gives angle on tilting a portrait held phone left or right

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rXHKyx7jv3zZOr3clxhmn","name":"hasAccelerometer","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

    Browser accelerometer capabilities

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KLC5GVxLKBw73AK7OffjF","name":"hasDeviceOrientation","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

    Browser device orientation

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ojcid6cnQ7e_VYIofwoxa","name":"hasFullscreenSupport","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Browser full screen support

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XzqSD9t3ihfHDiNAXMpeZ","name":"hasHTML5Audio","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Device HTML5Audio Support

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YkEI6roIbBWHB7IV4Pk5i","name":"hasPointerLockSupport","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Browser pointerlock api support

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ucLeJC5d-B58PcX-eSVO-","name":"hasVideo","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Device Video Support

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0rZiZzZeoUkTtvKFK8trD","name":"hasWebAudio","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

    Device WebAudio Support

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VJ43gulJft7EG8zueTkgB","name":"isMobile","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    equals to true if a mobile device.\n(Android | iPhone | iPad | iPod | BlackBerry | Windows Phone | Kindle)

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HqBio1S2NIHR6aWlAPLw6","name":"language","brief":"","access":"public","readonly":true,"see":["http://www.w3schools.com/tags/ref_language_codes.asp"],"type":"PropertyDoc","description":"

    a string representing the preferred language of the user, usually the language of the browser UI.\n(will default to "e...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LnfKELwwE6bNhncwiMQdG","name":"localStorage","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Browser Local Storage capabilities
    \n(this flag will be set to false if cookies are blocked)

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ahqq2Zks5nEwM0AjApVNi","name":"maxTouchPoints","brief":"","access":"public","examples":[{"caption":"","code":"if (me.device.maxTouchPoints > 1) {\n // device supports multi-touch\n}"}],"readonly":true,"type":"PropertyDoc","description":"

    the maximum number of simultaneous touch contact points are supported by the current device.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b7up6DLdPZGqyzckcbeKs","name":"nativeBase64","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Browser Base64 decoding capability

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1R_4a5LB0tRxM39SSdopa","name":"offscreenCanvas","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    equals to true if the device browser supports OffScreenCanvas.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E1rmo0U0hSxMX0rC3lXXB","name":"pauseOnBlur","brief":"","access":"public","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.pauseOnBlur"],"type":"PropertyDoc","description":"

    Specify whether to pause the game when losing focus

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"itOHAFAiDBsvzm0R-FNLk","name":"platform","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    the device platform type

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BUUAVFolRUNsu_0WOw15Z","name":"pointerEvent","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

    True if the browser supports Pointer Events

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"spx_VzQ4qrlqEqZ3h-s6s","name":"resumeOnFocus","brief":"","access":"public","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.resumeOnFocus"],"type":"PropertyDoc","description":"

    Specify whether to unpause the game when gaining focus

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P5fn4v8eFzijcFs4MVcPi","name":"screenOrientation","brief":"","access":"public","readonly":true,"see":["https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange"],"type":"PropertyDoc","description":"

    Supports the ScreenOrientation API

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QJjrpkuZx9GWRSOFGlh6k","name":"sound","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Returns true if the browser/device has audio capabilities.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eXvUhEUpiwkTqkwDeRBs6","name":"stopOnBlur","brief":"","access":"public","defaultValue":"false","deprecated":"since 15.4.0","see":["Application.stopOnBlur"],"type":"PropertyDoc","description":"

    Specify whether to stop the game when losing focus or not.\nThe engine restarts on focus if this is enabled.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CfrppyAJf6_G-DmCTUwPi","name":"touch","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    Touch capabilities (support either Touch or Pointer events)

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ka5UhCel9-1CWmVJ26HI","name":"touchEvent","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

    True if the browser supports Touch Events

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TcYCHmYGGyUvG5GXU9Gg2","name":"wheel","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

    W3C standard wheel events

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D3iq6ihnSB7gSVLcDWAfA","name":"enableSwipe","brief":"","access":"public","type":"FunctionDoc","description":"

    enable/disable swipe on WebView.

    ","params":[{"identifier":"enable","optional":true,"default":"true","description":"

    enable or disable swipe.

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"dLMdvCHm_bgw_QcS1RZft","name":"exitFullscreen","brief":"","access":"public","type":"FunctionDoc","description":"

    Exit fullscreen mode. Requires fullscreen support from the browser/device.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1nsE6fAVY5SNiFlcHH6wB","name":"focus","brief":"","access":"public","examples":[{"caption":"","code":"if (clicked) {\n me.device.focus();\n}"}],"type":"FunctionDoc","description":"

    Makes a request to bring this device window to the front.

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SnZI2wLWi4t-73L24Fobm","name":"getElement","brief":"","access":"public","type":"FunctionDoc","description":"

    return the DOM element for the given element name or HTMLElement object

    ","params":[{"identifier":"element","optional":false,"description":"

    the parent element name or a HTMLElement object

    ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

    the corresponding DOM Element or null if not existing

    ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CKr2SGqg_KhjDr1S284Kg","name":"getElementBounds","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

    returns the size of the given HTMLElement and its position relative to the viewport\n
    an HTMLElement object

    ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

    the size and position of the element relatively to the viewport

    ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0JFSQ2FrlHOST367rckE_","name":"getParentBounds","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

    returns the size of the given HTMLElement Parent and its position relative to the viewport\n
    an HTMLElement object

    ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

    the size and position of the given element parent relative to the viewport

    ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BI-8AbiwGJbJmRdJok7dK","name":"getParentElement","brief":"","access":"public","type":"FunctionDoc","description":"

    return the parent DOM element for the given parent name or HTMLElement object

    ","params":[{"identifier":"element","optional":false,"description":"

    the parent element name or a HTMLElement object

    ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

    the parent Element

    ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FbDEtyctmW7NzsS8pDPen","name":"getScreenOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation"],"type":"FunctionDoc","description":"

    Return a string representing the orientation of the device screen.\nIt can be "any", "natural", "l...","params":[],"returns":[{"description":"

    the screen orientation

    ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"J4AIfNqat2UFoqpgQYK6-","name":"getStorage","brief":"","access":"public","see":["save"],"type":"FunctionDoc","description":"

    return the device storage

    ","params":[{"identifier":"type","optional":true,"default":"\"local\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

    a reference to the device storage

    ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"wU3174X_j_DT4ThSEMsFr","name":"isFullscreen","brief":"","access":"public","type":"FunctionDoc","description":"

    Returns true if the browser/device is in full screen mode.

    ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EO8pRTgDK5UPClKeIgidO","name":"isLandscape","brief":"","access":"public","type":"FunctionDoc","description":"

    return true if the device screen orientation is in Portrait mode

    ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0aWhAeOMRTecgFVDULuoI","name":"isPortrait","brief":"","access":"public","type":"FunctionDoc","description":"

    return true if the device screen orientation is in Portrait mode

    ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zTn4-jok8DvYi3QvPHakv","name":"isWebGLSupported","brief":"","access":"public","type":"FunctionDoc","description":"

    returns true if the device supports WebGL

    ","params":[{"identifier":"options","optional":true,"description":"

    context creation options

    ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.failIfMajorPerformanceCaveat","optional":true,"default":"true","description":"

    If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than t...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

    true if WebGL is supported

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4wRibvCcOfBoZShkucuqL","name":"lockOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

    locks the device screen into the specified orientation.
    \nThis method only works for installed Web apps or for Web pages...","params":[{"identifier":"orientation","optional":false,"description":"

    The orientation into which to lock the screen.

    ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

    true if the orientation was unsuccessfully locked

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"62SFxHaI_r0_FUG7lJOb1","name":"onReady","brief":"","access":"public","examples":[{"caption":"","code":" // small game skeleton\n let game = {\n // called by the me.device.onReady function\n onload = function () {\n // init video\n if (!me.video.init('screen', 640, 480, true)) {\n alert(\"Sorry but your browser does not support html 5 canvas.\");\n return;\n }\n\n // initialize the \"audio\"\n me.audio.init(\"mp3,ogg\");\n\n // set callback for ressources loaded event\n me.loader.onload = this.loaded.bind(this);\n\n // set all ressources to be loaded\n me.loader.preload(game.assets);\n\n // load everything & display a loading screen\n me.state.change(me.state.LOADING);\n };\n\n // callback when everything is loaded\n loaded = function () {\n // define stuff\n // ....\n\n // change to the menu screen\n me.state.change(me.state.PLAY);\n }\n }; // game\n\n // \"bootstrap\"\n me.device.onReady(function () {\n game.onload();\n });"}],"type":"FunctionDoc","description":"

    specify a function to execute when the Device is fully loaded and ready

    ","params":[{"identifier":"fn","optional":false,"description":"

    the function to be executed

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"-iAcEFGryQUGLfa4KL0aB","name":"requestFullscreen","brief":"","access":"public","examples":[{"caption":"","code":"// add a keyboard shortcut to toggle Fullscreen mode on/off\nme.input.bindKey(me.input.KEY.F, \"toggleFullscreen\");\nme.event.on(me.event.KEYDOWN, function (action, keyCode, edge) {\n // toggle fullscreen on/off\n if (action === \"toggleFullscreen\") {\n me.device.requestFullscreen();\n } else {\n me.device.exitFullscreen();\n }\n});"}],"type":"FunctionDoc","description":"

    Triggers a fullscreen request. Requires fullscreen support from the browser/device.

    ","params":[{"identifier":"element","optional":true,"description":"

    the element to be set in full-screen mode.

    ","dataType":{"tokens":[{"value":"Element","kind":"canonical"},{"value":"Element","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sT9J2-AUQtf6L-fW1jgEJ","name":"unlockOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

    unlocks the device screen into the specified orientation.
    \nThis method only works for installed Web apps or for Web pag...","params":[],"returns":[{"description":"

    true if the orientation was unsuccessfully unlocked

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"y-fdBZe7sDEYAIG2jigiT","name":"unwatchAccelerometer","brief":"","access":"public","type":"FunctionDoc","description":"

    unwatch Accelerometor event

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A9_d6ersItrPx_PkciDC9","name":"unwatchDeviceOrientation","brief":"","access":"public","type":"FunctionDoc","description":"

    unwatch Device orientation event

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W5Y-RfGZuIlZgQmsqCind","name":"vibrate","brief":"","access":"public","examples":[{"caption":"","code":"// vibrate for 1000 ms\nme.device.vibrate(1000);\n// or alternatively\nme.device.vibrate([1000]);\n// vibrate for 50 ms, be still for 100 ms, and then vibrate for 150 ms:\nme.device.vibrate([50, 100, 150]);\n// cancel any existing vibrations\nme.device.vibrate(0);"}],"type":"FunctionDoc","description":"

    the vibrate method pulses the vibration hardware on the device,
    \nIf the device doesn't support vibration, this method ...","params":[{"identifier":"pattern","optional":false,"description":"

    pattern of vibration and pause intervals

    ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"Esua41VVnqApzXXfqi6_k","name":"watchAccelerometer","brief":"","access":"public","examples":[{"caption":"","code":"// try to enable device accelerometer event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchAccelerometer() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device accelerometer event\n }\n});"}],"see":["device.accelerationX","device.accelerationY","device.accelerationZ"],"type":"FunctionDoc","description":"

    Enable monitor of the device accelerator to detect the amount of physical force of acceleration the device is receiving.\n(...","params":[],"returns":[{"description":"

    false if not supported or permission not granted by the user

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a-0mNqDpjhIXfIxPEW4mN","name":"watchDeviceOrientation","brief":"","access":"public","examples":[{"caption":"","code":"// try to enable device orientation event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchDeviceOrientation() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device orientation event\n }\n});"}],"see":["device.alpha","device.beta","device.gamma"],"type":"FunctionDoc","description":"

    Enable monitor of the device orientation to detect the current orientation of the device as compared to the Earth coordina...","params":[],"returns":[{"description":"

    false if not supported or permission not granted by the user

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"8mSvPcNJ1RMqRgQySxyLU","name":"event","brief":"","type":"NSDoc","description":"

    an event system based on nodeJS EventEmitter interface

    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"TBJYPPJS_ZSIRsnICZXvD","name":"BLUR","brief":"","access":"public","defaultValue":"\"me.blur\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event generated when the main browser or window is losing focus

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_cIlu2oSllyik94o0JebE","name":"BOOT","brief":"","access":"public","defaultValue":"\"me.boot\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event when the system is booting

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rM9G6VAh2MJ_Wn7j2M0yR","name":"CANVAS_ONRESIZE","brief":"","access":"public","defaultValue":"\"canvas.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the canvas is resized
    \n(this usually follows a WINDOW_ONRESIZE event).
    \nData passed : {number} canva...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oNqmg3pK29xrE8R8ROwI5","name":"DOM_READY","brief":"","access":"public","defaultValue":"\"dom_ready\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event when the DOM is Ready is booting

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-lX8DRiEjTU0ais_kTmR5","name":"DRAGEND","brief":"","access":"public","defaultValue":"\"me.game.dragend\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for dragend events on a Draggable entity
    \nData passed:\n{object} the drag event
    \n{object} the Draggable entit...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_z56h9Rz_xEhJJqHUe1u6","name":"DRAGSTART","brief":"","access":"public","defaultValue":"\"me.game.dragstart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for dragstart events on a Draggable entity
    \nData passed:\n{object} the drag event
    \n{object} the Draggable ent...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wB7pNDSuzhMcuyrZtd94N","name":"FOCUS","brief":"","access":"public","defaultValue":"\"me.focus\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event generated when the main browser or window is gaining back focus

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0YfSRtihNN6XwB7qEO5SS","name":"GAME_AFTER_DRAW","brief":"","access":"public","defaultValue":"\"me.game.afterDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for the start of the draw loop\nData passed : {number} time the current time stamp

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MLuEv-BQvgGsVGVdPsUHV","name":"GAME_AFTER_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.afterUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for the end of the update loop\nData passed : {number} time the current time stamp

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kJbRz9fBFUfOPGeM7AFB8","name":"GAME_BEFORE_DRAW","brief":"","access":"public","defaultValue":"\"me.game.beforeDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for the end of the draw loop\nData passed : {number} time the current time stamp

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OFtzYd4uJOeok4Fy0Iqkw","name":"GAME_BEFORE_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.beforeUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the engine is about to start a new game loop\nData passed : {number} time the current time stamp

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yV1czqr5waYqWLPA6VdiX","name":"GAME_INIT","brief":"","access":"public","defaultValue":"\"me.game.onInit\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the game manager is initialized
    \nData passed : none

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UmUlFqaI4owBQJl55GKLm","name":"GAME_RESET","brief":"","access":"public","defaultValue":"\"me.game.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the game manager is resetted
    \nData passed : none

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T5DCcWAcWL5VtKuAnd9QR","name":"GAME_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.onUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the game is updated (will be impacted by frame skip, frame interpolation and pause/resume state)
    \nData ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IBzEY8T5vwYRSA4HAeYN0","name":"GAMEPAD_CONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.connected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when a gamepad is connected
    \nData passed : {object} gamepad object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ac8qbl-AITKmLQ3LyuS2U","name":"GAMEPAD_DISCONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.disconnected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when a gamepad is disconnected
    \nData passed : {object} gamepad object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PlNDMwWQ5FouSE5mXVOi2","name":"GAMEPAD_UPDATE","brief":"","access":"public","defaultValue":"\"gamepad.update\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when gamepad button/axis state is updated
    \nData passed : {number} index
    \nData passed : {string} type : &...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t6o2rFrE1nhid4zMvnMfE","name":"KEYDOWN","brief":"","access":"public","defaultValue":"\"me.input.keydown\"","examples":[{"caption":"","code":" me.input.bindKey(me.input.KEY.X, \"jump\", true); // Edge-triggered\n me.input.bindKey(me.input.KEY.Z, \"shoot\"); // Level-triggered\n me.event.on(me.event.KEYDOWN, (action, keyCode, edge) => {\n // Checking bound keys\n if (action === \"jump\") {\n if (edge) {\n this.doJump();\n }\n\n // Make character fall slower when holding the jump key\n this.vel.y = this.body.gravity;\n }\n });"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for pressing a binded key
    \nData passed : {string} user-defined action, {number} keyCode,\n{boolean} edge state {\n // Checking unbound keys\n if (keyCode == me.input.KEY.ESC) {\n if (me.state.isPaused()) {\n me.state.resume();\n }\n else {\n me.state.pause();\n }\n }\n});"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for releasing a binded key
    \nData passed : {string} user-defined action, {number} keyCode

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8KDAZdYtV-6Dey0rh3b-m","name":"LEVEL_LOADED","brief":"","access":"public","defaultValue":"\"me.game.onLevelLoaded\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when a level is loaded
    \nData passed : {string} Level Name

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nmD8CJoqVrpKq92vBGy3M","name":"LOADER_COMPLETE","brief":"","access":"public","defaultValue":"\"me.loader.onload\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when everything has loaded
    \nData passed : none

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x3IfxPFI96TOdjLD4-363","name":"LOADER_ERROR","brief":"","access":"public","defaultValue":"\"me.loader.onError\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when an error occur during preloading
    \nData passed : {Resource} resource object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wVe9nb9ad634nrJ6pZ6OB","name":"LOADER_PROGRESS","brief":"","access":"public","defaultValue":"\"me.loader.onProgress\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for displaying a load progress indicator
    \nData passed : {number} [0 .. 1], {Resource} resource object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CPN0Wrn1TowSmZPBcKf0L","name":"ONCONTEXT_RESTORED","brief":"","access":"public","defaultValue":"\"renderer.contextrestored\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the current context is restored
    \nData passed : {me.Renderer} the current renderer instance`

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hMcSdAyZ38MV1G_o8TGfO","name":"POINTERLOCKCHANGE","brief":"","access":"public","defaultValue":"\"me.event.pointerlockChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for onPointerLockChange event
    \nData passed : {boolean} pointer lock status (true/false)

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"48EiZhlLQGwea_Xr58Csx","name":"POINTERMOVE","brief":"","access":"public","defaultValue":"\"me.event.pointermove\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for pointermove events on the screen area
    \nData passed : {me.Pointer} a Pointer object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"astJaOdPBromzulZh3Ix_","name":"STAGE_RESET","brief":"","access":"public","defaultValue":"\"me.stage.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when a stage is resetted

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"myRg03BhPRLLxDTgxVI64","name":"STATE_CHANGE","brief":"","access":"public","defaultValue":"\"me.state.onChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the changing to a different stage

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KRWmsVnvOvn-gYKWd_Q82","name":"STATE_PAUSE","brief":"","access":"public","defaultValue":"\"me.state.onPause\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event when the game is paused
    \nData passed : none

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CAxda5b-GzkGg3PsTe3Dn","name":"STATE_RESTART","brief":"","access":"public","defaultValue":"\"me.state.onRestart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the game is restarted
    \nData passed : {number} time in ms the game was stopped

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jAKM-EHI1lIK6WDo00vsI","name":"STATE_RESUME","brief":"","access":"public","defaultValue":"\"me.state.onResume\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event for when the game is resumed
    \nData passed : {number} time in ms the game was paused

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vwqXtEGKb5LwP_a6kX183","name":"STATE_STOP","brief":"","access":"public","defaultValue":"\"me.state.onStop\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event when the game is stopped
    \nData passed : none

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ol76N8U3PWV_bI85TB2if","name":"TICK","brief":"","access":"public","defaultValue":"\"me.tick\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    event generated when the system update the engine and the renderer by one step

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2DMaTxB_05q0j1Z-ZpsPd","name":"VIDEO_INIT","brief":"","access":"public","defaultValue":"\"me.video.onInit\"","readonly":true,"see":["video.init","event.on"],"type":"PropertyDoc","description":"

    event for when the video is initialized
    \nData passed : {Renderer} the renderer instance created

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qjLCdpKnfK8iRZVzfJrKZ","name":"VIEWPORT_ONCHANGE","brief":"","access":"public","defaultValue":"\"viewport.onchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the viewport position is updated
    \nData passed : {me.Vector2d} viewport position vector

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W0GVuu_2Dxk2uSjIUd7sk","name":"VIEWPORT_ONRESIZE","brief":"","access":"public","defaultValue":"\"viewport.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the viewport is resized
    \n(this usually follows a WINDOW_ONRESIZE event, when using the flexEvent for when the current context is lost
    \nData passed : {me.Renderer} the current renderer instance

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a0PWWpaAXgPSJ_xiBIhij","name":"WINDOW_ONORIENTATION_CHANGE","brief":"","access":"public","defaultValue":"\"globalThis.orientationchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the device is rotated
    \nData passed : {Event} Event object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P_P4_ZXMZ0Q1PSvmU9Ar2","name":"WINDOW_ONRESIZE","brief":"","access":"public","defaultValue":"\"globalThis.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the (browser) window is resized
    \nData passed : {Event} Event object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p3NzDiB_zqbdcA7OjEnRO","name":"WINDOW_ONSCROLL","brief":"","access":"public","defaultValue":"\"globalThis.onscroll\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the (browser) window is scrolled
    \nData passed : {Event} Event object

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YqO4DyewPrjAlsnATXrxl","name":"WORLD_STEP","brief":"","access":"public","defaultValue":"\"me.world.step\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

    Event for when the physic world is updated\nData passed : {number} time the current time stamp

    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6FCY9FSyLBSEL2D7X_lFH","name":"emit","brief":"","examples":[{"caption":"","code":"me.event.emit(\"event-name\", a, b, c);"}],"scope":"static","type":"FunctionDoc","description":"

    calls each of the listeners registered for a given event.

    ","params":[{"identifier":"eventName","optional":false,"description":"

    The event name.

    ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

    arguments to be passed to all listeners

    ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

    true if the event had listeners, false otherwise.

    ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VWe3kQU1W2EbdzM1u1StK","name":"off","brief":"","access":"public","examples":[{"caption":"","code":"me.event.off(\"event-name\", myFunction);"}],"scope":"static","type":"FunctionDoc","description":"

    remove the given listener for a given event.

    ","params":[{"identifier":"eventName","optional":false,"description":"

    The event name.

    ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

    The listener function.

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

    this.

    ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xSDk-TGlAPtCaZWrTf-br","name":"on","brief":"","access":"public","examples":[{"caption":"","code":"me.event.on(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

    Add a listener for a given event.

    ","params":[{"identifier":"eventName","optional":false,"description":"

    The event name.

    ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

    The listener function.

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

    The context to invoke the listener with.

    ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

    this.

    ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d2lOFiwxGXDg-uwvK7jN6","name":"once","brief":"","access":"public","examples":[{"caption":"","code":"me.event.once(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

    Add a one-time listener for a given event.

    ","params":[{"identifier":"eventName","optional":false,"description":"

    The event name.

    ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

    The listener function.

    ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

    The context to invoke the listener with.

    ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

    this.

    ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"uZIAtikBERz0zbP8M3pBl","name":"game","brief":"","readonly":true,"see":["Application"],"type":"NSDoc","description":"

    game is a default instance of a melonJS Application and represents your current game,\nit contains all the objects, tilemap...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pmHOMIj43us9pk08ORDaW","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"fAGHy49JsghzzzKPz5IAF","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

    Namespace for standard gamepad mapping constants

    ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"5yJ5zfUThwdOA3H7pKABU","name":"AXES","brief":"","access":"public","scope":"static","see":["https://w3c.github.io/gamepad/#remapping"],"type":"EnumDoc","description":"

    Standard gamepad mapping information for axes

    \n
      \n
    • Left control stick: LX (horizontal), Standard gamepad mapping information for buttons

      \n
        \n
      • Face buttons: FACE_1, FACE_2standard keyboard constants

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"kUZGwjAOzcue0pqLKqkuW","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2pyp9SUBx0DWziW51az4y","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OzrV1nyzQ1oWhgHTPtJnR","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ZkTjukWx0lpvB2IOn8jt","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jup0ie9d0MHWkAoidZGPd","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hchAsTUmj7HSwFDU157fl","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MdX8RaoFdOvEAjIJapLdm","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3kuIbKp_Zxt0euM6srGuI","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JPLma1jdH01dT5tQyubPH","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oDbLQGO5i9Z0kFcgf1JlX","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KY3ghMQwNYPJqjoI8fUJG","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PWl5CV7lY6EZB1L2_xPbA","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tgv-RmehZKS8bboR1H3mm","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3J0k23adCLQQd8-xfN1mM","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dOGxJ9i6nYOb7q8SNjtu0","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OBSXKjl6SqD2a1uBhmzRL","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D24NvSKt99AhvD3mo4b-O","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pXx05EA6VNqd3TR9ic4jU","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"260fGWjBtFFyoQGTqWjT-","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t-s5qEEuCoRUgP21qQTkY","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9yYldmwJ0ETmprGaGuIxo","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QMgo85TlDIdq09j79AwCS","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UT4qD9IzawtcruCex-mDz","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pdF12K-pwZDSaDWMV6tF6","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z8Sqawq4PcTTaEoHkMc-v","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mt7HCByIwqI87EfFo_axQ","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ScY72WFGkDANMyn-5ImnO","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dsf1p9zUE6A11gvHcCT7u","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GziKZZZazf1osTRSX9-zI","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y_Wt3cdFEw7Y2sG-rUeby","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7NAXw7BSko-0qUXCHehkC","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QgJXJLBBfGR9KelA36t4b","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t_wmABcxSZGd3ftm4hrK9","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qPAyGfHS2m6aHlQ1-d2_Z","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5n9IMlF71L9hJQoFZqGOg","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pJg0PrFcLjQ0sinoJqh2q","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CdB2nSLDJVkhdZimjhhLw","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"abs77kbrmKHmx5Pi7861L","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9r6DyTM8jWFGjQOTvSesO","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f1DuLJU06YsXah79a6L2W","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2T5I1jA96dQnShm6GSCV4","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qMhu0OJHEOX5bUgqb7--i","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SHH9I5_S05oRdQZHZhIUI","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lfIGXSheHmLqZu7VVBcin","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zHmRFcvWxvxLDcOWebtWA","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PEhN5OiKrlYKfbnNBiXcU","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PNQEW8n_FxcZ_gvp9ljW3","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0oJl_L4cU54llRJ-TRDjm","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"92GdwcysVRVOqxzlrReDu","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TziahhFY65pyRnQ4szQCp","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eP2KYCaGPpSfSDA_DYZ_Y","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b356QhLL26vyJPnnmiMBv","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o4vln-X2dyJ6eyAIavl0O","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Pc49KlE2pJBCdw_zkzcE","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m-c6K4CDnLZF7yrWNruZ0","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l8rL9zkoU23vb54TCUMsI","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R6zTUMkq0VslQP51sltkU","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"arhKFS49cPsvr6Z-Da8Sy","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMe7G4WbY-hzJj6TTJqNG","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1LNAYjJ3IcspupUUFSKt_","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IElHx2g5k_S_Etyl3LUq2","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cgumO1c9e7tS5NBJTT8_U","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ByHNsAfXj2e5P6fovDBev","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tS7O6OLdG0ovOoqsP23YN","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GVJIMlL7WTdrjEkF0MQIt","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeycecreUZcFBDsgBdqqs","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ed0TTwLtzUtbT7rRdM3sl","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J-uc59K1f0mubzsgIaR88","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ykH4iQCd3tgZbB1SzGOaO","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q3lDV2lYi0Fbr-ZEzIdmq","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u1ueJ1rERRi8Fpda7TXlk","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tYKeozL03UFVTcTomCpJA","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ktMhpLldkgBZDDDRYWMIb","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0LfQDHo-8u148TETAi13M","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bxtSvxfSAvwhshU7D35G3","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B_T4gFU8By6Z7eD4aiYDQ","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rgE0D8tZkVZbAbFbfzxNd","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VMe1bGsE97H3MiLRl4kfu","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QPqqZ5SPnEqnpjgQgpYSv","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K8Mf3kiTtt6u452qhEeel","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9tvMzmXNJpp1VKYbMHNND","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WQtbCcSC2UfPp2IPTx_0X","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wiPGC8TC8Gafvzrkvd0hu","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mRI5AsiEwIxuDryyrhaxp","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uoqu2GCAw-Ok1xrgsKSMx","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D74aATb1eerckRbMI-WSI","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIiD7yGnbrZHFGvhfXg3N","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hu7pmSQerCkk68LdludKV","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2pSU3AKlLhMLvyW-YvX7c","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ybDYd2kVo6OnybKCoO1St","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1fuC4XAHVVjAZAW9w2gov","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vp0ECtYrmjj1IZk0fPHIg","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HrQewGg_Hr5di1Yw2Fm9a","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lnoqFVfdmHD_918ThCDNH","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LKprp1xZfqtzOUriu6Uz9","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KSnRaEfBauDVSnkiobeLE","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6jUkQZdTIK6kHDqfJnwQS","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2QHsoN7CqArUjFJ48eVgs","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"-oGBQdVynGNmWN6gYQiCT","name":"keyBoardEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

        the default target element for keyboard events (usually the window element in which the game is running)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xa0Ry9kOWs2513P1aSIWH","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

        indicates if the pointer is currently locked

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jzRPz5jfxALOen3slVL4F","name":"pointer","brief":"","access":"public","type":"PropertyDoc","description":"

        Pointer information (current position and size)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YnG0PCLTaE8kKl_fE0rUq","name":"pointerEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

        the default target element for pointer events (usually the canvas element in which the game is rendered)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"42KmOtNLS8VoQlaMNYU8O","name":"preventDefault","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

        specify if melonJS should prevent all default browser action on registered events.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xG8WZxVlsb3Nlmqi-VPhd","name":"setGamepadMapping","brief":"","access":"public","examples":[{"caption":"","code":" // A weird controller that has its axis mappings reversed\n me.input.setGamepadMapping(\"Generic USB Controller\", {\n \"axes\" : [ 3, 2, 1, 0 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ]\n });\n\n // Mapping extra axes to analog buttons\n me.input.setGamepadMapping(\"Generic Analog Controller\", {\n \"axes\" : [ 0, 1, 2, 3 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ],\n\n // Raw axis 4 is mapped to GAMEPAD.BUTTONS.FACE_1\n // Raw axis 5 is mapped to GAMEPAD.BUTTONS.FACE_2\n // etc...\n // Also maps left and right triggers\n \"analog\" : [ 4, 5, 6, 7, -1, -1, 8, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1 ],\n\n // Normalize the value of button L2: [-1.0..1.0] => [0.0..1.0]\n \"normalize_fn\" : function (value, axis, button) {\n return ((button === me.input.GAMEPAD.BUTTONS.L2) ? ((value + 1) / 2) : value) || 0;\n }\n });"}],"type":"PropertyDoc","description":"

        specify a custom mapping for a specific gamepad id
        \nsee below for the default mapping :

        \n
        Gamepad id string

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"mapping","description":"

        A hash table

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"mapping.axes","description":"

        Standard analog control stick axis locations

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.buttons","description":"

        Standard digital button locations

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.analog","optional":true,"description":"

        Analog axis locations for buttons

        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.normalize_fn","optional":true,"description":"

        a function that returns a normalized value in range [-1.0..1.0] for the given value, axis and button

        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"rm8PIFgVe-Ui89HVhvViT","name":"throttlingInterval","brief":"","access":"public","type":"PropertyDoc","description":"

        time interval for event throttling in milliseconds
        \ndefault value : "1000/me.timer.maxfps" ms
        \nset to 0 ms...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u3ELMZAOBF9-KXyTumFCr","name":"bindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n...\n// map the lower face button on the first gamepad to the X key\nme.input.bindGamepad(0, {type:\"buttons\", code: me.input.GAMEPAD.BUTTONS.FACE_1}, me.input.KEY.X);\n// map the left axis value on the first gamepad to the LEFT key\nme.input.bindGamepad(0, {type:\"axes\", code: me.input.GAMEPAD.AXES.LX, threshold: -0.5}, me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

        Associate a gamepad event to a keycode

        ","params":[{"identifier":"index","optional":false,"description":"

        Gamepad index

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

        Button/Axis definition

        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"button.type","description":"

        "buttons" or "axes"

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"button.code","description":"

        button or axis code id (See {@link input.GAMEPAD.BUTTONS}, {@link input.GAMEPAD.AXES})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button.threshold","optional":true,"default":"1","description":"

        value indicating when the axis should trigger the keycode (e.g. -0.5 or 0.5)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","optional":false,"description":"

        (See {@link input.KEY})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8gKP543wLuZvBsZvQDtlB","name":"bindKey","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.LEFT, \"left\");\nme.input.bindKey(me.input.KEY.RIGHT, \"right\");\nme.input.bindKey(me.input.KEY.X, \"jump\", true);\nme.input.bindKey(me.input.KEY.F1, \"options\", true, true);"}],"type":"FunctionDoc","description":"

        associate a user defined action to a keycode

        ","params":[{"identifier":"keycode","optional":false,"description":"

        (See {@link input.KEY})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"action","optional":false,"description":"

        user defined corresponding action

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"lock","optional":true,"default":"false","description":"

        cancel the keypress event once read

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"preventDefault","optional":true,"default":"input.preventDefault","description":"

        prevent default browser action

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"KUQ7f7E00HrHzblf21bFV","name":"bindPointer","brief":"","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n// map the left button click on the X key (default if the button is not specified)\nme.input.bindPointer(me.input.KEY.X);\n// map the right button click on the X key\nme.input.bindPointer(me.input.pointer.RIGHT, me.input.KEY.X);"}],"type":"FunctionDoc","description":"

        Associate a pointer event to a keycode
        \nLeft button – 0\nMiddle button – 1\nRight button – 2

        ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

        (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","dataType":{"tokens":[{"value":"input.KEY","kind":"canonical"},{"value":"input.KEY","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wLxqYy-sBJ3yhcsPqDuWU","name":"exitPointerLock","brief":"","type":"FunctionDoc","description":"

        Initiates an exit from pointer lock state

        ","params":[],"returns":[{"description":"

        return true if the request was successfully submitted

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dettZ2n_XXZZjGp7Lk493","name":"getBindingKey","brief":"","access":"public","type":"FunctionDoc","description":"

        return the action associated with the given keycode

        ","params":[{"identifier":"keycode","optional":false,"description":"

        (See {@link input.KEY})

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        user defined associated action

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"2q_R5M5aJOOZ2saZa5wPR","name":"globalToLocal","brief":"","examples":[{"caption":"","code":"onMouseEvent : function (pointer) {\n // convert the given into local (viewport) relative coordinates\n let pos = me.input.globalToLocal(pointer.clientX, pointer.clientY);\n // do something with pos !\n};"}],"type":"FunctionDoc","description":"

        Translate the specified x and y values from the global (absolute)\ncoordinate to local (viewport) relative coordinate.

        ","params":[{"identifier":"x","optional":false,"description":"

        the global x coordinate to be translated.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

        the global y coordinate to be translated.

        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

        an optional vector object where to set the translated coordinates

        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

        A vector object with the corresponding translated coordinates

        ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P4JcvtK2nld7g1W8ipvRv","name":"hasActiveEvents","brief":"","type":"FunctionDoc","description":"

        return true if there are pending pointer events in the queue

        ","params":[],"returns":[{"description":"

        true if there are pending events

        "}],"extends":[],"implements":[]},{"id":"hqbsse3lxTq03lgNWXAm-","name":"hasRegisteredEvents","brief":"","see":["registerPointerEvent"],"type":"FunctionDoc","description":"

        return true if there are register pointer events

        ","params":[],"returns":[{"description":"

        true if there are pending events

        "}],"extends":[],"implements":[]},{"id":"9xMofmgOKT5k5NBdsjnSA","name":"isKeyPressed","brief":"","access":"public","examples":[{"caption":"","code":"if (me.input.isKeyPressed('left')) {\n //do something\n}\nelse if (me.input.isKeyPressed('right')) {\n //do something else...\n}"}],"type":"FunctionDoc","description":"

        return the key press status of the specified action

        ","params":[{"identifier":"action","optional":false,"description":"

        user defined corresponding action

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        true if pressed

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q38jaHCTgqwH-UXcUji8_","name":"keyStatus","brief":"","access":"public","type":"FunctionDoc","description":"

        return the key status of the specified action

        ","params":[{"identifier":"action","optional":false,"description":"

        user defined corresponding action

        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

        down (true) or up(false)

        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Dy1oIkNagdO1I3vpPAywj","name":"registerPointerEvent","brief":"","examples":[{"caption":"","code":" // onActivate function\n onActivateEvent: function () {\n // register on the 'pointerdown' event\n me.input.registerPointerEvent('pointerdown', this, (e) => this.pointerDown(e));\n },\n\n // pointerDown event callback\n pointerDown: function (pointer) {\n // do something\n ....\n // don\"t propagate the event to other objects\n return false;\n },"}],"see":["Pointer","{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

        allows registration of event listeners on the object target.
        \nmelonJS will pass a me.Pointer object to the defined cal...","params":[{"identifier":"eventType","optional":false,"description":"

        The event type for which the object is registering
        \nmelonJS currently supports:

        \n
          \n
        • \"pointermo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

          a shape representing the region to register on

          ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":false,"description":"

          methods to be called when the event occurs.\nReturning false from the defined callback will prevent the event ...","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"b34cQLuxZJsgrUQwGzk6Z","name":"releaseAllPointerEvents","brief":"","examples":[{"caption":"","code":"// release all registered event on the\nme.input.releaseAllPointerEvents(this);"}],"type":"FunctionDoc","description":"

          allows the removal of all registered event listeners from the object target.

          ","params":[{"identifier":"region","optional":false,"description":"

          the registered region to release event from

          ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"Pp8oq5mzMK8_L7pyoPJCi","name":"releasePointerEvent","brief":"","examples":[{"caption":"","code":"// release the registered region on the 'pointerdown' event\nme.input.releasePointerEvent('pointerdown', this);"}],"see":["{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

          allows the removal of event listeners from the object target.

          ","params":[{"identifier":"eventType","optional":false,"description":"

          The event type for which the object was registered. See {@link input.registerPointerEvent}

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

          the registered region to release for this event

          ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":true,"default":"\"all\"","description":"

          if specified unregister the event only for the specific callback

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"cIiM_nDmKOEd0CsA2-lyP","name":"requestPointerLock","brief":"","examples":[{"caption":"","code":"// register on the pointer lock change event\nevent.on(event.POINTERLOCKCHANGE, (locked)=> {\n console.log(\"pointer lock: \" + locked);\n});\n// request for pointer lock\nme.input.requestPointerLock();"}],"type":"FunctionDoc","description":"

          request for the pointer to be locked on the parent DOM element.\n(Must be called in a click event or an event that requires...","params":[],"returns":[{"description":"

          return true if the request was successfully submitted

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MhENTydZys61-oICuJR5B","name":"setGamepadDeadzone","brief":"","access":"public","type":"FunctionDoc","description":"

          Set deadzone for analog gamepad inputs
          \nThe default deadzone is 0.1 (10%) Analog values less than this will be ignored

          ","params":[{"identifier":"value","optional":false,"description":"

          Deadzone value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eNZVhDQOfn-pU7kQNodUS","name":"setTouchAction","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action"],"type":"FunctionDoc","description":"

          enable/disable all gestures on the given element.
          \nby default melonJS will disable browser handling of all panning and ...","params":[{"identifier":"element","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"value","optional":true,"default":"\"none\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"obPqTTngn0a4iWjc4Dad5","name":"triggerKeyEvent","brief":"","access":"public","examples":[{"caption":"","code":"// trigger a key press\nme.input.triggerKeyEvent(me.input.KEY.LEFT, true);"}],"type":"FunctionDoc","description":"

          trigger the specified key (simulated) event

          ","params":[{"identifier":"keycode","optional":false,"description":"

          (See {@link input.KEY})

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"status","optional":true,"default":"false","description":"

          true to trigger a key down event, or false for key up event

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mouseButton","optional":true,"description":"

          the mouse button to trigger

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0GY8YvIcy9chmycraPKyx","name":"unbindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindGamepad(0, me.input.GAMEPAD.BUTTONS.FACE_1);"}],"type":"FunctionDoc","description":"

          unbind the defined keycode

          ","params":[{"identifier":"index","optional":false,"description":"

          Gamepad index

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

          (See {@link input.GAMEPAD.BUTTONS})

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7uq0JOtapz21wHlfYYBGB","name":"unbindKey","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindKey(me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

          unbind the defined keycode

          ","params":[{"identifier":"keycode","optional":false,"description":"

          (See {@link input.KEY})

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MGngBZFJQbhCq6xpXp84G","name":"unbindPointer","brief":"","examples":[{"caption":"","code":"me.input.unbindPointer(me.input.pointer.LEFT);"}],"type":"FunctionDoc","description":"

          unbind the defined keycode

          ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

          (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"B2i8BTyqrvj8gFS5GUaAd","name":"unlockKey","brief":"","access":"public","examples":[{"caption":"","code":"// Unlock jump when touching the ground\nif (!this.falling && !this.jumping) {\n me.input.unlockKey(\"jump\");\n}"}],"type":"FunctionDoc","description":"

          unlock a key manually

          ","params":[{"identifier":"action","optional":false,"description":"

          user defined corresponding action

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"TYINTfZ5jBEueJuXthlUp","name":"level","brief":"","type":"NSDoc","description":"

          a level manager. once ressources loaded, the level manager contains all references of defined levels.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"871YmOKWwwC4WIXLMvERt","name":"add","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          add a level into the game manager (usually called by the preloader)

          ","params":[{"identifier":"format","optional":false,"description":"

          level format (only "tmx" supported)

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"levelId","optional":false,"description":"

          the level id (or name)

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"callback","optional":true,"description":"

          a function to be called once the level is loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

          true if the level was loaded

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FillHXypwdYCepZIWGyWB","name":"getCurrentLevel","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return the current level definition.\nfor a reference to the live instantiated level,\nrather use the container in which it ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B4aKxmdwhJAxOnMH0qmhD","name":"getCurrentLevelId","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return the current level id

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"MkLEB-DUIn354MK04Yzj-","name":"levelCount","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return the amount of level preloaded

          ","params":[],"returns":[{"description":"

          the amount of level preloaded

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yTjG6wLRnvApVN6RfEx6L","name":"load","brief":"","access":"public","examples":[{"caption":"","code":" // the game assets to be be preloaded\n // TMX maps\n let resources = [\n {name: \"a4_level1\", type: \"tmx\", src: \"data/level/a4_level1.tmx\"},\n {name: \"a4_level2\", type: \"tmx\", src: \"data/level/a4_level2.tmx\"},\n {name: \"a4_level3\", type: \"tmx\", src: \"data/level/a4_level3.tmx\"},\n // ...\n ];\n\n // ...\n\n // load a level into the game world\n me.level.load(\"a4_level1\");\n ...\n ...\n // load a level into a specific container\n let levelContainer = new me.Container();\n me.level.load(\"a4_level2\", {container:levelContainer});\n // add a simple transformation\n levelContainer.currentTransform.translate(levelContainer.width / 2, levelContainer.height / 2 );\n levelContainer.currentTransform.rotate(0.05);\n levelContainer.currentTransform.translate(-levelContainer.width / 2, -levelContainer.height / 2 );\n // add it to the game world\n me.game.world.addChild(levelContainer);"}],"scope":"instance","type":"MethodDoc","description":"

          load a level into the game manager
          \n(will also create all level defined entities, etc..)

          ","params":[{"identifier":"levelId","optional":false,"description":"

          level id

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options","optional":true,"description":"

          additional optional parameters

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

          container in which to load the specified level

          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

          callback for when the level is fully loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

          if true, flatten all objects into the given container

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.setViewportBounds","optional":true,"default":"true","description":"

          if true, set the viewport bounds to the map size

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          true if the level was successfully loaded

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"123rzSwE3luCGgwGC0mz_","name":"next","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          load the next level

          ","params":[{"identifier":"options","optional":true,"description":"

          additional optional parameters

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

          container in which to load the specified level

          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

          callback for when the level is fully loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

          if true, flatten all objects into the given container

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          true if the next level was successfully loaded

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_5X6JwEFo86j-PkKnEMUj","name":"previous","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          load the previous level

          ","params":[{"identifier":"options","optional":true,"description":"

          additional optional parameters

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

          container in which to load the specified level

          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

          callback for when the level is fully loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

          if true, flatten all objects into the given container

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          true if the previous level was successfully loaded

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7SP1dFXNsAv8pcxXwGk0Z","name":"reload","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          reload the current level

          ","params":[{"identifier":"options","optional":true,"description":"

          additional optional parameters

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

          container in which to load the specified level

          ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

          callback for when the level is fully loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

          if true, flatten all objects into the given container

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          the current level

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"syWfyrMp7Bn8_WxtQw6kf","name":"loader","brief":"","type":"NSDoc","description":"

          a small class to manage loading of stuff and manage resources

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"hXeoMnFxYh7_LlCZoHMhZ","name":"Asset","brief":"","examples":[{"caption":"","code":"// PNG tileset\n{name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"}\n// PNG packed texture\n{name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n// PNG base64 encoded image\n{name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n// TSX file\n{name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"}\n// TMX level (XML & JSON)\n{name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"}\n{name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"}\n{name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}}\n{name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}}\n// audio resources\n{name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"}\n{name: \"cling\", type: \"audio\", src: \"data/audio/\"}\n// base64 encoded audio resources\n{name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"}\n// binary file\n{name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"}\n// JSON file (used for texturePacker)\n{name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"}\n// JavaScript file\n{name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"}\n// Font Face\n{ name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\" }\n// video resources\n{name: \"intro\", type: \"video\", src: \"data/video/\"}"}],"scope":"static","see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

          an asset definition to be used with the loader

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"oShOV9eyNE57TPNIZjwMz","name":"autoplay","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          Set to true to automatically start playing audio or video when loaded or added to a scene (using autoplay might require us..."},{"id":"8tkV4wBPaJK4jBqTH0l_J","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          TMX data if not provided through a src url

          "},{"id":"mnMr4Otaid7dZEsAil178","name":"loop","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          Set to true to automatically loop the audio or video when playing

          "},{"id":"H_hKubGqGpHR0YN636VMQ","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          name of the asset

          "},{"id":"ACt9MxXe1J0l18tgkJlIR","name":"src","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          path and/or file name of the resource (for audio assets only the path is required)

          "},{"id":"I3k7j2-lqzg5ZcprELV-G","name":"stream","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          Set to true to not to wait for large audio or video file to be downloaded before playing.

          "},{"id":"9Z5sfDqJ9LVy8TTNTOx2i","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"PHVdvCmFzROUUhFlzBEgv","name":"crossOrigin","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":" // allow for cross-origin texture loading\n me.loader.crossOrigin = \"anonymous\";\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"],"type":"PropertyDoc","description":"

          crossOrigin attribute to configure the CORS requests for Image and Video data element.\nBy default (that is, when the attri...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gfb0MS-mVeDSTSs9kWeDS","name":"onError","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for error notification\nme.loader.onError = this.loaderError.bind(this);"}],"type":"PropertyDoc","description":"

          onError callback
          \neach time a resource loading is failed, the loader will fire the specified function giving the actual...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KlHUYwdM3daQZtCoDKRbf","name":"onload","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback when everything is loaded\nme.loader.onload = this.loaded.bind(this);"}],"type":"PropertyDoc","description":"

          onload callback

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9MJFoyacQ0QcGxTBg8Qh","name":"onProgress","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for progress notification\nme.loader.onProgress = this.updateProgress.bind(this);"}],"type":"PropertyDoc","description":"

          onProgress callback
          \neach time a resource is loaded, the loader will fire the specified function,\ngiving the actual pro...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rx5PZtZlfpXfiXS8MuEPI","name":"withCredentials","brief":"","access":"public","defaultValue":"false","examples":[{"caption":"","code":" // enable withCredentials\n me.loader.withCredentials = true;\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials"],"type":"PropertyDoc","description":"

          indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies,\nauthorizatio...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EemPiSCcCpUNAD4FiByj2","name":"getBinary","brief":"","type":"FunctionDoc","description":"

          return the specified Binary object

          ","params":[{"identifier":"elt","optional":false,"description":"

          name of the binary object ("ymTrack");

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          requested element or null if not found

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"oZKAVqn8FWR-Fwgcx0z7d","name":"getImage","brief":"","type":"FunctionDoc","description":"

          return the specified Image Object

          ","params":[{"identifier":"image","optional":false,"description":"

          name of the Image element ("tileset-platformer");

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          requested element or null if not found

          ","dataType":{"tokens":[{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C0jWRrBETP6Rix9vnmSlZ","name":"getJSON","brief":"","type":"FunctionDoc","description":"

          return the specified JSON Object

          ","params":[{"identifier":"elt","optional":false,"description":"

          name of the json file

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"JSON","kind":"canonical"},{"value":"JSON","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"czMngVhonds0gvCgKwA72","name":"getTMX","brief":"","type":"FunctionDoc","description":"

          return the specified TMX/TSX object

          ","params":[{"identifier":"elt","optional":false,"description":"

          name of the tmx/tsx element ("map1");

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          requested element or null if not found

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"gsyVXLzmnxD3KWDRA4oHI","name":"getVideo","brief":"","type":"FunctionDoc","description":"

          return the specified Video Object

          ","params":[{"identifier":"elt","optional":false,"description":"

          name of the video file

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SQH6KCGe4kx7RKBsITxhM","name":"load","brief":"","examples":[{"caption":"","code":"// load an image asset\nme.loader.load({name: \"avatar\", type:\"image\", src: \"data/avatar.png\"}, () => this.onload(), () => this.onerror());\n// load a base64 image asset\n me.loader.load({name: \"avatar\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"};\n // load a base64 video asset\n me.loader.load({\n name: \"avatar\",\n type:\"video\",\n src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ..\"\n };\n// start loading music\nme.loader.load({\n name : \"bgmusic\",\n type : \"audio\",\n src : \"data/audio/\"\n}, function () {\n me.audio.play(\"bgmusic\");\n});"}],"type":"FunctionDoc","description":"

          Load a single asset (to be used if you need to load additional asset(s) during the game)

          ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onload","optional":true,"description":"

          function to be called when the asset is loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerror","optional":true,"description":"

          function to be called in case of error

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

          the amount of corresponding resource to be preloaded

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kRIPYm8sz48CvENvYGPC6","name":"preload","brief":"","examples":[{"caption":"","code":"game.assets = [\n // PNG tileset\n {name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"},\n // PNG packed texture\n {name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n // PNG base64 encoded image\n {name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n // TSX file\n {name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"},\n // TMX level (XML & JSON)\n {name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"},\n {name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"},\n {name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}},\n {name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}},\n // audio resources\n {name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"},\n {name: \"cling\", type: \"audio\", src: \"data/audio/\"},\n // base64 encoded audio resources\n {name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"},\n // binary file\n {name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"},\n // JSON file (used for texturePacker)\n {name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"},\n // JavaScript file\n {name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"},\n // Font Face\n {name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\"},\n // video resources\n {name: \"intro\", type: \"video\", src: \"data/video/\"},\n // base64 encoded video asset\n me.loader.load({name: \"avatar\", type:\"video\", src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ...\"};\n];\n...\n// set all resources to be loaded\nme.loader.preload(game.assets, () => this.loaded());"}],"type":"FunctionDoc","description":"

          set all the specified game assets to be preloaded.

          ","params":[{"identifier":"assets","optional":false,"description":"

          list of assets to load

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1<%2>"}},{"identifier":"onloadcb","optional":true,"default":"loader.onload","description":"

          function to be called when all resources are loaded

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"switchToLoadState","optional":true,"default":"true","description":"

          automatically switch to the loading screen

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"97fkbzapqtCnvHCVsPU5F","name":"reload","brief":"","examples":[{"caption":"","code":"event.on(\n event.LOADER_ERROR,\n (res) => {\n // custom function\n showErrorNotification({\n text: `Error during loading content: ${res.name}`,\n done: loader.reload(res.src);\n })\n }\n);"}],"type":"FunctionDoc","description":"

          retry loading assets after a loading failure

          ","params":[{"identifier":"src","optional":false,"description":"

          src of asset to reload

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"YYwlS7nVcuZEHBFIvu0bB","name":"setBaseURL","brief":"","access":"public","examples":[{"caption":"","code":"// change the base URL relative address for audio assets\nme.loader.setBaseURL(\"audio\", \"data/audio/\");\n// change the base URL absolute address for all object types\nme.loader.setBaseURL(\"*\", \"http://myurl.com/\")"}],"type":"FunctionDoc","description":"

          change the default baseURL for the given asset type.
          \n(this will prepend the asset URL and must finish with a '/')

          ","params":[{"identifier":"type","optional":false,"description":"

          "*", "audio", "video", "binary", "image", "json", "js&quo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"url","optional":true,"default":"\"./\"","description":"

          default base URL

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"sQfqdCaEX3WECivsQAKPK","name":"setParser","brief":"","examples":[{"caption":"","code":"// specify a custom function for \"abc\" format\nfunction customAbcParser(data, onload, onerror) {\n // preload and do something with the data\n let parsedData = doSomething(data);\n // when done, call the onload callback with the parsed data\n onload(parsedData);\n // in case of error, call the onerror callback\n onerror();\n // return the amount of asset parsed\n return 1\n}\n// set the parser for the custom format\nloader.setParser(\"abc\", customAbcParser);"}],"see":["loader.Asset.type"],"type":"FunctionDoc","description":"

          specify a parser/preload function for the given asset type

          ","params":[{"identifier":"type","optional":false,"description":"

          asset type

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"parserFn","optional":false,"description":"

          parser function

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"BCqHnHLcYkdPbqL2J-l1j","name":"unload","brief":"","examples":[{"caption":"","code":"me.loader.unload({name: \"avatar\", type:\"image\"});"}],"type":"FunctionDoc","description":"

          unload the specified asset to free memory

          ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          true if unloaded

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KH0Iis0gy_FpESPnn0t6n","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.loader.unloadAll();"}],"type":"FunctionDoc","description":"

          unload all resources to free memory

          ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"GhIapA8oJ1RQCGd9xfKfy","name":"Math","brief":"","type":"NSDoc","description":"

          a collection of math utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"69TReRYNGBXQlLOfN4o6o","name":"DEG_TO_RAD","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

          constant to convert from degrees to radians

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YBxs2IxaNh_l6H3Aikr3p","name":"EPSILON","brief":"","access":"public","defaultValue":"0.000001","readonly":true,"type":"PropertyDoc","description":"

          the difference between 1 and the smallest floating point number greater than 1

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n0xubNMKx4ncqAmaN48vh","name":"ETA","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

          constant equals to half pi

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ED2cxGN4e-FqmlBcGGGQV","name":"RAD_TO_DEG","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

          constant to convert from radians to degrees

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tefbp5YdQHG0e-7Pz5Rwr","name":"TAU","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

          constant equals to 2 times pi

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r8VQazv1htBzD3cNGm1ZV","name":"clamp","brief":"","access":"public","type":"FunctionDoc","description":"

          clamp the given value

          ","params":[{"identifier":"val","optional":false,"description":"

          the value to clamp

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"low","optional":false,"description":"

          lower limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"description":"

          higher limit

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          clamped value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q9FYkIQfM4u4bH3c6nLe5","name":"degToRad","brief":"","access":"public","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.degToRad(60); // return 1.0471..."}],"type":"FunctionDoc","description":"

          Converts an angle in degrees to an angle in radians

          ","params":[{"identifier":"angle","optional":false,"description":"

          angle in degrees

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          corresponding angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_y99gDt9O4iQt4XulS38x","name":"isPowerOfTwo","brief":"","access":"public","type":"FunctionDoc","description":"

          returns true if the given value is a power of two

          ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Uo0jnrnWOfE37vmxS5fnX","name":"nextPowerOfTwo","brief":"","access":"public","type":"FunctionDoc","description":"

          returns the next power of two for the given value

          ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UZy9DpPgjvEvtRxi-Wmbd","name":"radToDeg","brief":"","access":"public","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.radToDeg(1.0471975511965976); // return 60"}],"type":"FunctionDoc","description":"

          Converts an angle in radians to an angle in degrees.

          ","params":[{"identifier":"radians","optional":false,"description":"

          angle in radians

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          corresponding angle in degrees

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KNfp0AKf55WLD0b4s9jfP","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.random(5, 10) );"}],"type":"FunctionDoc","description":"

          return a random integer between min (included) and max (excluded)

          ","params":[{"identifier":"min","optional":false,"description":"

          minimum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

          maximum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          random value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XbXgRRFWHAivMPnN-iJPj","name":"randomFloat","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.randomFloat(5, 10) );"}],"type":"FunctionDoc","description":"

          return a random float between min, max (exclusive)

          ","params":[{"identifier":"min","optional":false,"description":"

          minimum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

          maximum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          random value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-Pw2sqmROSkOrlqmVU9S1","name":"round","brief":"","access":"public","examples":[{"caption":"","code":"// round a specific value to 2 digits\nme.Math.round(10.33333, 2); // return 10.33"}],"type":"FunctionDoc","description":"

          round a value to the specified number of digit

          ","params":[{"identifier":"num","optional":false,"description":"

          value to be rounded.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dec","optional":true,"default":"0","description":"

          number of decimal digit to be rounded to.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          rounded value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yu0x_u_lNA3Wg0dwcwOgD","name":"toBeCloseTo","brief":"","access":"public","examples":[{"caption":"","code":"// test if the given value is close to 10\nif (me.Math.toBeCloseTo(10, value)) {\n // do something\n}"}],"type":"FunctionDoc","description":"

          check if the given value is close to the expected one

          ","params":[{"identifier":"expected","optional":false,"description":"

          value to be compared with.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"actual","optional":false,"description":"

          actual value to compare

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"precision","optional":true,"default":"2","description":"

          float precision for the comparison

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          if close to

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0I1tROrtyBHEsiLyD6AYH","name":"weightedRandom","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.weightedRandom(5, 10) );"}],"type":"FunctionDoc","description":"

          return a weighted random between min, max (exclusive)

          ","params":[{"identifier":"min","optional":false,"description":"

          minimum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

          maximum value.

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          random value

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"-oMmGxMQtbsuVpMMMK9JP","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

          ParticleEmitterSettings contains the default settings for ParticleEmitter

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"akufXV2BLmjw25k4VisYO","name":"angle","brief":"","access":"public","defaultValue":"Math.PI / 2","scope":"static","type":"PropertyDoc","description":"

          Start angle for particle launch in Radians

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oarWhXqEs5EqcgfGMXZZf","name":"angleVariation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          letiation in the start angle for particle launch in Radians.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gO-wm7-BM86rsIfIgIrPF","name":"blendMode","brief":"","access":"public","defaultValue":"normal","scope":"static","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

          the blend mode to be applied when rendering particles.\n(note: this will superseed the textureAdditive setting...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cZik92ZUMbbe4_iEIjGrk","name":"duration","brief":"","access":"public","defaultValue":"Infinity","scope":"static","type":"PropertyDoc","description":"

          Duration that the emitter releases particles in ms (used only if emitter is Stream).\nAfter this period, the emitter stop t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mRhUMtm1etkk1yMZ8LoLO","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          Render particles in screen space.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXuCWc-DQlARW4zl8Ts-s","name":"followTrajectory","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          Update the rotation of particle in accordance the particle trajectory.
          \nThe particle sprite should aim at zero angle (d...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8EqSwsZKsgsx3Nup-TAOV","name":"framesToSkip","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Skip n frames after updating the particle system once.\nThis can be used to reduce the performance impact of emitters with ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nhJrv93Bf8wSMAAtFlxct","name":"frequency","brief":"","access":"public","defaultValue":"100","scope":"static","type":"PropertyDoc","description":"

          How often a particle is emitted in ms (used only if emitter is a Stream).

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pp_065oMhdxtPySTpz6l8","name":"gravity","brief":"","access":"public","defaultValue":"0","scope":"static","see":["game.world.gravity"],"type":"PropertyDoc","description":"

          Vertical force (Gravity) for each particle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3QrZlNgBH39NGF-5ZLl3p","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          Height of the particle spawn area

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HyCdRyC0ypnzfK5TzNxLb","name":"image","brief":"","access":"public","defaultValue":"undefined","scope":"static","see":["ParticleEmitterSettings.textureSize"],"type":"PropertyDoc","description":"

          image used for particles texture\n(by default melonJS will create an white 8x8 texture image)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"saymc6izJ_6y-6LoaSNSq","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Maximum end scale ratio for particles

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ycDCnT9X918TEGdXAkEt","name":"maxLife","brief":"","access":"public","defaultValue":"3000","scope":"static","type":"PropertyDoc","description":"

          Maximum time each particle lives once it is emitted in ms.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0tvWKuO1hdnJs3T5buCqW","name":"maxParticles","brief":"","access":"public","defaultValue":"10","scope":"static","type":"PropertyDoc","description":"

          Maximum number of particles launched each time in this emitter (used only if emitter is Stream).

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LEB_PDXFs_ekvhU4mMHQI","name":"maxRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Maximum start rotation for particles sprites in Radians

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7yslkb4T4b7s3wkvwEqJD","name":"maxStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          Maximum start scale ratio for particles (1 = no scaling)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CsYhiW53TVvkvdzetxAv3","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Minimum end scale ratio for particles

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wiDFw6T7r_dMPh-fDGZqo","name":"minLife","brief":"","access":"public","defaultValue":"1000","scope":"static","type":"PropertyDoc","description":"

          Minimum time each particle lives once it is emitted in ms.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JRuRLX5sdzv2y-uB9qSqX","name":"minRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Minimum start rotation for particles sprites in Radians

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wy4MJiStrFR-zq6NQZAK3","name":"minStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          Minimum start scale ratio for particles (1 = no scaling)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MK0WPuYrMdjmnLvDcoJUM","name":"onlyInViewport","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

          Update particles only in the viewport, remove it when out of viewport.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kBceeZ8K3Aml4dwS-8MAF","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

          Start speed of particles.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"98PibBQ4q1qGsNweb4R8f","name":"speedVariation","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          letiation in the start speed of particles

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v7smNkPhaRKCTtNHtdfAy","name":"textureAdditive","brief":"","access":"public","defaultValue":"false","scope":"static","see":["ParticleEmitterSettings.blendMode"],"type":"PropertyDoc","description":"

          Enable the Texture Additive by composite operation ("additive" blendMode)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OFVFJn-ny4mFDY7ybQWa_","name":"textureSize","brief":"","access":"public","defaultValue":"8","scope":"static","see":["ParticleEmitterSettings.image"],"type":"PropertyDoc","description":"

          default texture size used for particles if no image is specified\n(by default melonJS will create an white 8x8 texture imag...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3LqqZfYkcIC55TcXKVwQY","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

          tint to be applied to particles

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OH5S6aBT9ROPniUs8OVLy","name":"totalParticles","brief":"","access":"public","defaultValue":"50","scope":"static","type":"PropertyDoc","description":"

          Total number of particles in the emitter

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ij01RjdqQV1ff5cZAiBg","name":"width","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          Width of the particle spawn area.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MsglQ6Tv3VOkNv9YD3bM0","name":"wind","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          Horizontal force (like a Wind) for each particle

          ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"YEZ_47ZSMrBY9wQrGosi-","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"aMj7E3QQBcLwoxc2s9dUc","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"E-OOmnjaf9jx6hFYbcbdV","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

          a reference to the app/game that registered this plugin

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cFDxselrpPkvVour6gL9f","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

          define the minimum required version of melonJS
          \nthis can be overridden by the plugin

          ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"salud8UBg1FelobIAaKk6","name":"BasePlugin","brief":"","type":"ClassDoc","description":"

          a base Object class for plugin\n(plugin must be installed using the register function)

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"tzqVUmZ0MgL9X9TlfnXK4","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

          a reference to the app/game that registered this plugin

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VfHRcV0q4pBR79JtyEl3f","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

          define the minimum required version of melonJS
          \nthis can be overridden by the plugin

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dtQ91WAIDNX36BH2CVJ8U","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"app","optional":true,"description":"

          a reference to the app/game that registered this plugin

          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"VNDk6hl5H1mMzm0YnNbjy","name":"cache","brief":"","type":"PropertyDoc","description":"

          Contains all registered plugins.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1LMObsvST8shFv6qiAWXQ","name":"get","brief":"","type":"FunctionDoc","description":"

          returns the the plugin instance with the specified class type or registered name

          ","params":[{"identifier":"classType","optional":false,"description":"

          the Class Object or registered name of the plugin to retreive

          ","dataType":{"tokens":[{"value":"object | string","kind":"canonical"}],"template":"object | string"}}],"returns":[{"description":"

          a plugin instance or undefined

          ","dataType":{"tokens":[{"value":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V3NXEma5UkojCpur8qyrE","name":"patch","brief":"","examples":[{"caption":"","code":"// redefine the me.game.update function with a new one\nme.plugin.patch(me.game, \"update\", function () {\n // display something in the console\n console.log(\"duh\");\n // call the original me.game.update function\n this._patched();\n});"}],"type":"FunctionDoc","description":"

          patch a melonJS function

          ","params":[{"identifier":"proto","optional":false,"description":"

          target object

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

          target function

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fn","optional":false,"description":"

          replacement function

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"r9TcMkARPFSPbTLmRwID0","name":"register","brief":"","examples":[{"caption":"","code":"// register a new plugin\nme.plugin.register(TestPlugin, \"testPlugin\");\n// the `testPlugin` class instance can also be accessed through me.plugin.cache\nme.plugin.cache.testPlugin.myfunction ();"}],"type":"FunctionDoc","description":"

          Register a plugin.

          ","params":[{"identifier":"plugin","optional":false,"description":"

          Plugin object to instantiate and register

          ","dataType":{"tokens":[{"value":"plugin.BasePlugin","kind":"canonical"},{"value":"plugin.BasePlugin","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":true,"default":"plugin.constructor.name","description":"

          a unique name for this plugin

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

          all extra parameters will be passed to the plugin constructor

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"HiUxyVjV5fM5Vb50U7f72","name":"pool","brief":"","examples":[{"caption":"","code":"// register our bullet object into the object pool\npool.register(\"bullet\", BulletEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = pool.pull(\"bullet\", x, y, direction, velocity);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\ngame.world.removeChild(bullet);"}],"see":["ObjectPool"],"type":"NSDoc","description":"

          a default global ObjectPool instance

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fkRhWxOEgQf0GkEKQsPu5","name":"save","brief":"","examples":[{"caption":"","code":" // Initialize \"score\" and \"lives\" with default values\n // This loads the properties from localStorage if they exist, else it sets the given defaults\n me.save.add({ score : 0, lives : 3 });\n\n // Print all\n // On first load, this prints { score : 0, lives : 3 }\n // On further reloads, it prints { score : 31337, lives : 3, complexObject : ... }\n // Because the following changes will be saved to localStorage\n console.log(JSON.stringify(me.save));\n\n // Save score\n me.save.score = 31337;\n\n // Also supports complex objects thanks to the JSON backend\n me.save.add({ complexObject : {} })\n me.save.complexObject = { a : \"b\", c : [ 1, 2, 3, \"d\" ], e : { f : [{}] } };\n\n // WARNING: Do not set any child properties of complex objects directly!\n // Changes made that way will not save. Always set the entire object value at once.\n // If you cannot live with this limitation, there's a workaround:\n me.save.complexObject.c.push(\"foo\"); // Modify a child property\n me.save.complexObject = me.save.complexObject; // Save the entire object!\n\n // Remove \"lives\" from localStorage\n me.save.remove(\"lives\");"}],"type":"NSDoc","description":"

          allow to access and manage the device localStorage

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"7gHbVnmUMvKQ1X0Hxaa67","name":"add","brief":"","examples":[{"caption":"","code":"// Initialize \"score\" and \"lives\" with default values\nme.save.add({ score : 0, lives : 3 });\n// get or set the value through me.save\nme.save.score = 1000;"}],"scope":"instance","type":"MethodDoc","description":"

          Add new keys to localStorage and set them to the given default values if they do not exist

          ","params":[{"identifier":"props","optional":false,"description":"

          key and corresponding values

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"msUogB9CFo4pitSD8avqB","name":"remove","brief":"","examples":[{"caption":"","code":"// Remove the \"score\" key from localStorage\nme.save.remove(\"score\");"}],"scope":"instance","type":"MethodDoc","description":"

          Remove a key from localStorage

          ","params":[{"identifier":"key","optional":false,"description":"

          key to be removed

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"gwGRhHw-o6wTIXnKlTlB7","name":"state","brief":"","type":"NSDoc","description":"

          a State Manager (state machine)

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Q7mZoXKVmSmkTkNnXSiPB","name":"CREDITS","brief":"","defaultValue":"7","scope":"static","type":"PropertyDoc","description":"

          default state ID for Credits Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UVRo2i5NkiQ-JMKdl2lvI","name":"DEFAULT","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","description":"

          default state ID for the default Stage\n(the default stage is the one running as soon as melonJS is started)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xHs17geMuuIUhKvKsUv48","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

          default state ID for Game End Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lh3AaXr-tVB_p3gIaL5c2","name":"GAMEOVER","brief":"","defaultValue":"4","scope":"static","type":"PropertyDoc","description":"

          default state ID for Game Over Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zqXyKMmLegE4hv01J7BEK","name":"LOADING","brief":"","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

          default state ID for Loading Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZF8OVfByvLFVswyoYLlfx","name":"MENU","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

          default state ID for Menu Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fD4cupvEBj9YWvE386tzy","name":"PLAY","brief":"","defaultValue":"3","scope":"static","type":"PropertyDoc","description":"

          default state ID for Play Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N7KFgEDl6CuBybOid3ixK","name":"READY","brief":"","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

          default state ID for "Ready" Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lYYwCk-me4M2mIupavN7X","name":"SCORE","brief":"","defaultValue":"6","scope":"static","type":"PropertyDoc","description":"

          default state ID for High Score Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dE9wwfyjCMK1_Vjcbm2DO","name":"SETTINGS","brief":"","defaultValue":"8","scope":"static","type":"PropertyDoc","description":"

          default state ID for Settings Stage

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nW_6ZPIMYulsFcNONt2o_","name":"USER","brief":"","defaultValue":"100","examples":[{"caption":"","code":"let STATE_INFO = me.state.USER + 0;\nlet STATE_WARN = me.state.USER + 1;\nlet STATE_ERROR = me.state.USER + 2;\nlet STATE_CUTSCENE = me.state.USER + 3;"}],"scope":"static","type":"PropertyDoc","description":"

          default state ID for user defined constants

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QAl91hNKJiAK5-2BAarlp","name":"change","brief":"","access":"public","examples":[{"caption":"","code":"// The onResetEvent method on the play screen will receive two args:\n// \"level_1\" and the number 3\nme.state.change(me.state.PLAY, \"level_1\", 3);"}],"scope":"instance","type":"MethodDoc","description":"

          change the game/app state

          ","params":[{"identifier":"state","optional":false,"description":"

          State ID (see constants)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"forceChange","optional":false,"description":"

          if true the state will be changed immediately

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

          extra arguments to be passed to the reset functions

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"E7UKxJPe7y0deqeoXt62B","name":"current","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return a reference to the current stage
          \nuseful to call a object specific method

          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NxF8leuOgpoSgpFklIpI1","name":"isCurrent","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return true if the specified state is the current one

          ","params":[{"identifier":"state","optional":false,"description":"

          State ID (see constants)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          true if the specified state is the current one

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GEXjfg4yeDz9X4Z_-BgQX","name":"isPaused","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          Return the pause state of the state manager

          ","params":[],"returns":[{"description":"

          true if the game is paused

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q60vz3PfViJ15ltThZqIw","name":"isRunning","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          return the running state of the state manager

          ","params":[],"returns":[{"description":"

          true if a "process is running"

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PyiHire8d4MrP4V1-oj0x","name":"pause","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          pause the current stage

          ","params":[{"identifier":"music","optional":true,"default":"false","description":"

          pause current music track on screen pause

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"HLhdZAlHLR-TvalReXBTg","name":"restart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          Restart the current stage from a full stop.

          ","params":[{"identifier":"music","optional":true,"default":"false","description":"

          resume current music track on screen resume

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZLYIYCuDxEZ4c6dXYO3Dq","name":"resume","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          resume the current stage

          ","params":[{"identifier":"music","optional":true,"default":"false","description":"

          resume current music track on screen resume

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"iq211mHN9yMCg5ColyBEM","name":"set","brief":"","access":"public","examples":[{"caption":"","code":" class MenuButton extends me.GUI_Object {\n onClick() {\n // Change to the PLAY state when the button is clicked\n me.state.change(me.state.PLAY);\n return true;\n }\n };\n\n class MenuScreen extends me.Stage {\n onResetEvent() {\n // Load background image\n me.game.world.addChild(\n new me.ImageLayer(0, 0, {\n image : \"bg\",\n z: 0 // z-index\n }\n );\n\n // Add a button\n me.game.world.addChild(\n new MenuButton(350, 200, { \"image\" : \"start\" }),\n 1 // z-index\n );\n\n // Play music\n me.audio.playTrack(\"menu\");\n }\n\n onDestroyEvent() {\n // Stop music\n me.audio.stopTrack();\n }\n };\n\n me.state.set(me.state.MENU, new MenuScreen());"}],"scope":"instance","type":"MethodDoc","description":"

          associate the specified state with a Stage

          ","params":[{"identifier":"state","optional":false,"description":"

          State ID (see constants)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"stage","optional":false,"description":"

          Instantiated Stage to associate with state ID

          ","dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}},{"identifier":"start ","optional":true,"default":" false","description":"

          if true the state will be changed immediately after adding it.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"HVyRWOaP6FsHoJLhehlld","name":"set","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          returns the stage associated with the specified state\n(or the current one if none is specified)

          ","params":[{"identifier":"state","optional":true,"description":"

          State ID (see constants)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HaK5_6rztb_2AUDh4OoX5","name":"setTransition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          enable/disable the transition to a particular state (by default enabled for all)

          ","params":[{"identifier":"state","optional":false,"description":"

          State ID (see constants)

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"yLk4-wKiprHW1ebNLcVlP","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          Stop the current stage.

          ","params":[{"identifier":"pauseTrack","optional":true,"default":"false","description":"

          pause current track on screen stop.

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"U90HxVuwlePkiHQCRM0xL","name":"transition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

          specify a global transition effect

          ","params":[{"identifier":"effect","optional":false,"description":"

          (only "fade" is supported for now)

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

          a CSS color value

          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

          expressed in milliseconds

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"x6gv1sdk8rAx_bjUtBvKx","name":"timer","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\ntimer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setTimeout(myFunction, 1000, true, param1, param2);\n// set a timer to call \"myFunction\" every 1000ms\ntimer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setInterval(myFunction, 1000, true, param1, param2);"}],"see":["Timer"],"type":"NSDoc","description":"

          the default global Timer instance

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukYBc7KwQdULX7hF4D11V","name":"TMXUtils","brief":"","type":"NSDoc","description":"

          a collection of utility functions for parsing TMX maps

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Dr9wDIciYciFt44U8-fhG","name":"applyTMXProperties","brief":"","type":"FunctionDoc","description":"

          Apply TMX Properties to the given object

          ","params":[{"identifier":"obj","optional":false,"description":"

          object to apply the properties to

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

          TMX data object

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

          obj

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"DEcreGBbq0-j0AbtzSVYl","name":"decode","brief":"","type":"FunctionDoc","description":"

          Decode a encoded array into a binary array

          ","params":[{"identifier":"data","optional":false,"description":"

          data to be decoded

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"encoding","optional":true,"default":"\"none\"","description":"

          data encoding ("csv", "base64", "xml")

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          Decoded data

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2GyxhleI2Uc8F6qEMpZEw","name":"decodeBase64AsArray","brief":"","type":"FunctionDoc","description":"

          Decode a base64 encoded string into a byte array

          ","params":[{"identifier":"input","optional":false,"description":"

          Base64 encoded data

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"bytes","optional":true,"default":"1","description":"

          number of bytes per array entry

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Decoded data

          ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3KkOsAEQ1Xmac1NVvyne9","name":"decodeCSV","brief":"","type":"FunctionDoc","description":"

          Decode a CSV encoded array into a binary array

          ","params":[{"identifier":"input-","optional":false,"description":"

          CSV formatted data (only numbers, everything else will be converted to NaN)

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          Decoded data

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"S3E8qkM_0_oKhBIKLjHGJ","name":"decompress","brief":"","type":"FunctionDoc","description":"

          decompress and decode zlib/gzip data

          ","params":[{"identifier":"input","optional":false,"description":"

          Base64 encoded and compressed data

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"format","optional":false,"description":"

          compressed data format ("gzip","zlib", "zstd")

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          Decoded and decompress data

          ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WDGAk8HfcyAs7EyHV8cw1","name":"parse","brief":"","type":"FunctionDoc","description":"

          Parse a XML TMX object and returns the corresponding javascript object

          ","params":[{"identifier":"xml","optional":false,"description":"

          XML TMX object

          ","dataType":{"tokens":[{"value":"Document","kind":"canonical"},{"value":"Document","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          Javascript object

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"klqnP-TT0wB74VWxwt00k","name":"setInflateFunction","brief":"","type":"FunctionDoc","description":"

          set the function used to inflate gzip/zlib data

          ","params":[{"identifier":"fn","optional":false,"description":"

          inflate function

          ","dataType":{"tokens":[{"value":"Func","kind":"canonical"},{"value":"Func","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ZnXpltZHxqJtIUeGbFjrg","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

          a collection of utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"gQRwDAnED4az8nRykKCHI","name":"agent","brief":"","scope":"static","type":"NSDoc","description":"

          a collection of utility functons to ease porting between different user agents.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"t2p9tf8P_-sfko8ebilyY","name":"prefixed","brief":"","access":"public","type":"FunctionDoc","description":"

          Get a vendor-prefixed property

          ","params":[{"identifier":"name","optional":false,"description":"

          Property name

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

          Object or element reference to access

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

          Value of property

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"2YHPXUF3C8jxzv6Wsrs-V","name":"setPrefixed","brief":"","access":"public","type":"FunctionDoc","description":"

          Set a vendor-prefixed property

          ","params":[{"identifier":"name","optional":false,"description":"

          Property name

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

          Property value

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

          Object or element reference to access

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

          true if one of the vendor-prefixed property was found

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"Ro0KSK_iJYW3SnjWw-wMB","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

          a collection of array utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"CA5YbNpG2ZQIcUBkoK9Bl","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Select a random array element\nlet arr = [ \"foo\", \"bar\", \"baz\" ];\nconsole.log(me.utils.array.random(arr));"}],"type":"FunctionDoc","description":"

          return a random array element

          ","params":[{"identifier":"arr","optional":false,"description":"

          array to pick a element

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

          random member of array

          ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]},{"id":"ap7JWgR4HnBkP8aEQs85D","name":"remove","brief":"","access":"public","type":"FunctionDoc","description":"

          Remove the specified object from the given Array

          ","params":[{"identifier":"arr","optional":false,"description":"

          array from which to remove an object

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}},{"identifier":"obj","optional":false,"description":"

          to be removed

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

          the modified Array\nlet arr = [ "foo", "bar", "baz" ];\n// remove "foo" from the arr...","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"extends":[],"implements":[]},{"id":"dU4hDfWtxPwX5rCarqzdP","name":"weightedRandom","brief":"","access":"public","type":"FunctionDoc","description":"

          return a weighted random array element, favoring the earlier entries

          ","params":[{"identifier":"arr","optional":false,"description":"

          array to pick a element

          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

          random member of array

          ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]}]},{"id":"Rv-k-EUwxSSfGWmhFwVNR","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

          a collection of file utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"hlI85Sngr7Ww3o5eaDrMO","name":"getBasename","brief":"","access":"public","type":"FunctionDoc","description":"

          return the base name of the file without path info

          ","params":[{"identifier":"path","optional":false,"description":"

          path containing the basename to extract

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          the base name without path information.

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"OiVR_fOorKrE-x1X37oXq","name":"getExtension","brief":"","access":"public","type":"FunctionDoc","description":"

          return the extension of the file in the given path

          ","params":[{"identifier":"path","optional":false,"description":"

          path containing the filename and extension to extract

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          filename extension.

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"fdKW9zJRfqDt3g1ihRnPM","name":"getPath","brief":"","access":"public","type":"FunctionDoc","description":"

          return the path of the file

          ","params":[{"identifier":"path","optional":false,"description":"

          the copmplete file path to extract the path from

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          the extracted path

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"olER_vQO3WxPPkrJ7LXiz","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

          a collection of utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"S6W4CRXQAcYmRrQERyo7P","name":"defer","brief":"","access":"public","examples":[{"caption":"","code":"// execute myFunc() when the stack is empty,\n// with the current context and [1, 2, 3] as parameter\nme.utils.function.defer(myFunc, this, 1, 2, 3);"}],"type":"FunctionDoc","description":"

          Executes a function as soon as the interpreter is idle (stack empty).

          ","params":[{"identifier":"func","optional":false,"description":"

          The function to be deferred.

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":false,"description":"

          The value to be passed as the this parameter to the target function when the deferred function is called

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"args","optional":false,"variadic":true,"description":"

          Optional additional arguments to carry for the function.

          ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

          id that can be used to clear the deferred function using\nclearTimeout

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2EeO-CX8Mv_1mJlYxlwlh","name":"throttle","brief":"","access":"public","type":"FunctionDoc","description":"

          returns a function that, when invoked will only be triggered at most once during a given window of time

          ","params":[{"identifier":"fn","optional":false,"description":"

          the function to be throttled.

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

          The delay in ms

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"no_trailing","optional":false,"description":"

          disable the execution on the trailing edge

          ","dataType":{"tokens":[{"value":"no_trailing","kind":"canonical"},{"value":"no_trailing","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

          the function that will be throttled

          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"extends":[],"implements":[]}]},{"id":"ybp_K1WUQqbBKTXbjwGMo","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

          a collection of string utility functions

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jnS4n9Mk9g2MumJDqEc6Q","name":"capitalize","brief":"","access":"public","type":"FunctionDoc","description":"

          converts the first character of the given string to uppercase

          ","params":[{"identifier":"str","optional":false,"description":"

          the string to be capitalized

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          the capitalized string

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"E-itP1NQ23ZaX-ODj-SkI","name":"isBoolean","brief":"","access":"public","type":"FunctionDoc","description":"

          returns true if the given string contains a true or false

          ","params":[{"identifier":"str","optional":false,"description":"

          the string to be tested

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          true if the string is either true or false

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cN39IEi_YBRJdWv0UyPuZ","name":"isDataUrl","brief":"","access":"public","type":"FunctionDoc","description":"

          returns true if the given string is a data url in the data:[<mediatype>][;base64],<data> format.\n...","params":[{"identifier":"str","optional":false,"description":"

          the string (url) to be tested

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          true if the string is a data url

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RsDqekK6Pes0384tyhqVe","name":"isNumeric","brief":"","access":"public","type":"FunctionDoc","description":"

          returns true if the given string contains a numeric integer or float value

          ","params":[{"identifier":"str","optional":false,"description":"

          the string to be tested

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          true if string contains only digits

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cccmVltKJUWKdQYGXu3pa","name":"toHex","brief":"","access":"public","type":"FunctionDoc","description":"

          convert a string to the corresponding hexadecimal value

          ","params":[{"identifier":"str","optional":false,"description":"

          the string to be converted

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          the converted hexadecimal value

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"XpHqa7-W8QDQwstEL0SPx","name":"checkVersion","brief":"","access":"public","examples":[{"caption":"","code":"if (me.utils.checkVersion(\"7.0.0\") > 0) {\n console.error(\n \"melonJS is too old. Expected: 7.0.0, Got: 6.3.0\"\n );\n}"}],"type":"FunctionDoc","description":"

          Compare two version strings

          ","params":[{"identifier":"first","optional":false,"description":"

          First version string to compare

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"second","optional":false,"description":"

          second version string to compare

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          comparison result
          < 0 : first < second
          \n0 : first == second
          \n> 0 : first > second

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6EsCgDnWF9eGRGwqPD7J1","name":"getUriFragment","brief":"","access":"public","examples":[{"caption":"","code":"// http://www.example.com/index.html#debug&hitbox=true&mytag=value\nlet UriFragment = me.utils.getUriFragment();\nconsole.log(UriFragment[\"mytag\"]); //> \"value\""}],"type":"FunctionDoc","description":"

          parse the fragment (hash) from a URL and returns them into

          ","params":[{"identifier":"url","optional":true,"default":"document.location","description":"

          an optional params string or URL containing fragment (hash) params to be parsed

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

          an object representing the deserialized params string.

          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[],"members":[{"id":"rst-RlA00uIWfrXxGC5Sy","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          display the debug panel (if preloaded)

          "},{"id":"IFuV6KP60wnxzD5_ypBXa","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

          show/hide the debug panel (if preloaded)

          "},{"id":"XgCsP-BgQv7iUNWs6csnw","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          draw the hitbox in the debug panel (if enabled)

          "},{"id":"sBuUURCIDfBwo8s0U0Off","name":"quadtree","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          draw the quadtree in the debug panel (if enabled)

          "},{"id":"YPM8G3l-mx-M9tH3DOycz","name":"velocity","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          draw the entities velocity in the debug panel (if enabled)

          "},{"id":"PFONUeY_NKMiHEgfxupbL","name":"webgl","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          force the renderer to WebGL

          "}]}]},{"id":"Fw495ixfpV6wkUrpzzBOF","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"YTvn89at8vRKBToJquuBV","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

          A reference to the active Canvas or WebGL active renderer renderer

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nJ8yGDHB9vbplnZY3l2TE","name":"createCanvas","brief":"","type":"FunctionDoc","description":"

          Create and return a new Canvas element

          ","params":[{"identifier":"width","optional":false,"description":"

          width

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          height

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"returnOffscreenCanvas","optional":true,"default":"false","description":"

          will return an OffscreenCanvas if supported

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

          a new Canvas element of the given size

          ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"haeC2gHkPPTUssTzGAHZM","name":"getParent","brief":"","type":"FunctionDoc","description":"

          return a reference to the parent DOM element holding the main canvas

          ","params":[],"returns":[{"description":"

          the HTML parent element

          ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bg36Rk0hCPI13Vog58Orq","name":"init","brief":"","examples":[{"caption":"","code":"// init the video with a 640x480 canvas\nme.video.init(640, 480, {\n parent : \"screen\",\n renderer : me.video.AUTO,\n scale : \"auto\",\n scaleMethod : \"fit\"\n});"}],"type":"FunctionDoc","description":"

          Initialize the "video" system (create a canvas based on the given arguments, and the related renderer).

          ","params":[{"identifier":"width","optional":false,"description":"

          The width of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

          The height of the canvas viewport

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

          optional parameters for the renderer

          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

          false if initialization failed (canvas not supported)

          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"Mh2Jom5xv-0oSewZb9XWg","name":"Application","brief":"","see":["game"],"type":"ClassDoc","description":"

          An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object statu...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Olf8vQRWIPjyi_kNttEWS","name":"Settings","brief":"","see":["Application"],"type":"TypedefDoc","description":"

          Application & Renderer Settings definition.

          ","params":[{"identifier":"options.zoomX","optional":true,"default":"width","description":"

          The actual width of the canvas with scaling applied

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.zoomY","optional":true,"default":"height","description":"

          The actual height of the canvas with scaling applied

          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.compositor","optional":true,"description":"

          a custom compositor class (WebGL only)

          ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"option.physic","optional":true,"default":"\"builtin\"","description":"

          the physic system to use (default: "builtin", or "none" to disable builtin physic)

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[],"members":[{"id":"7tVdZdVPmgl3hReeFZ90-","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          whether to enable or not video scaling interpolation

          "},{"id":"q_-dzqkrwgZKb6muANWaI","name":"canvas","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

          an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given par..."},{"id":"1D-N-VwLQmmMoEHmcsxLZ","name":"consoleHeader","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

          whether to display melonJS version and basic device information in the console

          "},{"id":"doX0tWXIIlLSsfIN92u4E","name":"depthTest","brief":"","access":"public","defaultValue":"\"sorting\"","scope":"static","type":"PropertyDoc","description":"

          ~Experimental~ the default method to sort object on the z axis in WebGL

          "},{"id":"A4UO2Li7d8SLMQYH0WrmC","name":"parent","brief":"","access":"public","defaultValue":"document.body","scope":"static","type":"PropertyDoc","description":"

          the DOM parent element to hold the canvas in the HTML file

          "},{"id":"KY9oPAOvrrbjUSadT58Aj","name":"powerPreference","brief":"","access":"public","defaultValue":"\"default\"","scope":"static","type":"PropertyDoc","description":"

          a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari a..."},{"id":"rUVGqPjMsjvzcJICNlr_4","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

          if true the renderer will only use WebGL 1

          "},{"id":"b8EUa3h6DmEQHKfzpVPs_","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

          renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

          "},{"id":"Q60ITemLFjYedGrLXWin5","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

          enable scaling of the canvas ('auto' for automatic scaling)

          "},{"id":"-IGfD42aQRN0QGRdvWHbS","name":"scaleMethod","brief":"","access":"public","defaultValue":"\"fit\"","scope":"static","type":"PropertyDoc","description":"

          screen scaling modes :

          \n
            \n
          • fit : Letterboxed; content is scaled to design aspect ..."},{"id":"NYuPMKg6jI8RD8VkFdQmo","name":"scaleTarget","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

            the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent c..."},{"id":"J4Z9M-KGTanHySxHeHHVk","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

            whether to allow transparent pixels in the front buffer (screen).

            "}]},{"id":"imnYGeLmpaJpRrH0zVXdE","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true when this app instance has been initialized

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6oaANG9OKcr-I_p0wk7uc","name":"lastUpdate","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Last time the game update loop was executed.
            \nUse this value to implement frame prediction in drawing events,\nfor crea...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kT5RuWH44q_44WaPjSzjy","name":"mergeGroup","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true, all objects will be added under the root world container.
            \nWhen false, a me.Container object wi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ebHSogCvv8UyVUmH2nEUl","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the parent HTML element holding the main canvas of this application

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ceV8feh7HyeV6P7LomT0L","name":"pauseOnBlur","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// keep the default game instance running even when loosing focus\nme.game.pauseOnBlur = false;"}],"scope":"instance","type":"PropertyDoc","description":"

            Specify whether to pause this app when losing focus

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7LVMFK4lZxjNlRh1HLX4M","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

            a reference to the active Canvas or WebGL active renderer renderer

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oDHB7J_H_q_GEXSnbVBGz","name":"resumeOnFocus","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            Specify whether to unpause this app when gaining back focus

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hveg_fQHDyR-8QpmWgXo0","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the given settings used when creating this application

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mioblfB3zardyorBHkYyN","name":"sortOn","brief":"","scope":"instance","see":["World.sortOn"],"type":"PropertyDoc","description":"

            Specify the property to be used when sorting renderables for this application game world.\nAccepted values : "x",...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d6f6jAU2uE3Iigaprilcx","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Specify whether to stop this app when losing focus

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ocdhGNXM16XSIxILvRKV3","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the active stage "default" camera

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DpTIOdJEfKO898Ipinp3B","name":"world","brief":"","scope":"instance","type":"PropertyDoc","description":"

            a reference to the game world,
            \na world is a virtual environment containing all the game objects

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y2ZSHfsEQn_9Ouo9eZBfo","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

            The width of the canvas viewport

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The height of the canvas viewport

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

            The optional parameters for the application and default renderer

            ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"I8YU3yyZWDvY5Sb596X4H","name":"draw","brief":"

            draw the active scene/stage associated to this game

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o-UhfGaps-j5HWl6ALQcy","name":"getParentElement","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the parent HTML Element holding the main canvas of this application

            ","params":[],"returns":[{"description":"

            the parent HTML element

            ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uTbed9Oqo1dJXdi66aGzy","name":"init","brief":"","scope":"instance","type":"MethodDoc","description":"

            init the game instance (create a physic world, update starting time, etc..)

            ","params":[{"identifier":"width","optional":false,"description":"

            The width of the canvas viewport

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The height of the canvas viewport

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

            The optional parameters for the application and default renderer

            ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OLukvnowy1lNaANVzB7R7","name":"onLevelLoaded","brief":"","examples":[{"caption":"","code":"// call myFunction () everytime a level is loaded\nme.game.onLevelLoaded = this.myFunction.bind(this);"}],"scope":"instance","type":"MethodDoc","description":"

            Fired when a level is fully loaded and all renderable instantiated.
            \nAdditionnaly the level id will also be passed to ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2MPG7kBQ0Tv0tNtKxgQF3","name":"repaint","brief":"

            force the redraw (not update) of all objects

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yba2za-xFUgrkU5LQNE9t","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

            reset the game Object manager\ndestroy all current objects

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DaLJtWPr1YbJmt_j0-abT","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update all objects related to this game active scene/stage

            ","params":[{"identifier":"time","optional":false,"description":"

            current timestamp as provided by the RAF callback

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5jjhlq8OjQWT-2aPy2OO9","name":"updateFrameRate","brief":"","scope":"instance","see":["timer.maxfps","World.fps"],"type":"MethodDoc","description":"

            Update the renderer framerate using the system config variables.

            ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"__a-8WqHSAF3XVIGLhPqW","name":"BitmapText","brief":"","type":"ClassDoc","description":"

            a bitmap font object

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"YQIgZWzIZDKeIGaiswF7e","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C950DhjhY9LpWCRREzFJ4","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gy-8Wc37B0fEkZ_o_IGq1","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QJpifzRRKrXJAoASn68h_","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SllWnTb2axJKDUgYsV4iZ","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hVDh8zaLzKWGOJv3aw7F3","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"drNuZS_-SkXMOs6hoRV6f","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l6P7kEROLRCoagJxFD0J3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TBnuq3kOhgeDiXk3QUvIf","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pKZutmSlyi6osbVaQdwTl","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3LnyYIXxMg16vyBOwfLeV","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3cmOSJZA9cwOv2kEeMZFF","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wvI_fKe4z0pEaXPv4na9K","name":"fillStyle","brief":"","access":"public","scope":"instance","see":["Renderable#tint"],"type":"PropertyDoc","description":"

            defines the color used to tint the bitmap text

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qKsCNqtrsb30GeQJfk1z1","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KmjlvraCaZIYT6GX3K2Yx","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ndn79o892SU8xTdSQafov","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AGc_A1qBoqeIJSvUattuC","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UD64OB4YIh6qUqu94NBJE","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gHLY6AIvtefjcw7vZNtac","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zi9LqW6J5vp6ucv9nkGbY","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TAydBRonieNDPG2BD8cP0","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kH4MhHo3t2DQ70uI88hMf","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6lBKMmX_cn54sJAlmprXR","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I3VAS1Tp7IRtgq6BoyVwX","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pGLAhAG2FrfwQdh2QqB8J","name":"lineHeight","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

            Set the line spacing height (when displaying multi-line strings).
            \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VeJK-c00I_T8tkMppb4sf","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7MaB2Qkgqm-TCR7hCFMMz","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uBFv3hK7gMurD7a6mCLNR","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xr1IgmoU0P-yOBhlh78vi","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"81lUf7-pPQEeFl0C6h1gD","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hTTXAYdpSZZENNQBzCPTX","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4w8nbHDHvqli1uHFVwjHy","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1fy6d01ZCNSjEnILtPhX9","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eiPJ_zJ4r25ht_dxJPd8N","name":"textAlign","brief":"","access":"public","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

            Set the default text alignment (or justification),
            \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SSvfNEjkbpgC49FKzK9uv","name":"textBaseline","brief":"","access":"public","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

            Set the text baseline (e.g. the Y-coordinate for the draw operation),
            \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wu8aJ4driAoGfC76jjG8V","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z1BbgHmOdj8WpoquQN2jn","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OdZ_YfSg1C7YG_vg4GOfA","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3YtkxihHmGuXgDQNnJnu2","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"28hMI3-bjfssmZQTdyaL6","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SHptDDQkafI5KodKRSG0F","name":"wordWrapWidth","brief":"","access":"public","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

            the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hq7Fk87CFxPT94-GpSQiI","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            the text to be displayed

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ttzxuiYMteeBFgJXJ8s4g","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            font data

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQcGuNSWUEaoUCAGWzeVJ","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            font image

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H4aQmeiFzdIq-TSqccSLN","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            scaled font size

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J8s6DsczM7B4vLjKN13tg","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qS5bLUfoHUtowBils8blz","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RAmfFhAcIJzJ6YLQnsY-2","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7AgWJUCUREJQspSaY-S-S","name":"constructor","brief":"","examples":[{"caption":"","code":"// Use me.loader.preload or me.loader.load to load assets\nme.loader.preload([\n { name: \"arial\", type: \"binary\" src: \"data/font/arial.fnt\" },\n { name: \"arial\", type: \"image\" src: \"data/font/arial.png\" },\n])\n// Then create an instance of your bitmap font:\nlet myFont = new me.BitmapText(x, y, {font:\"arial\", text:\"Hello\"});\n// two possibilities for using \"myFont\"\n// either call the draw function from your Renderable draw function\nmyFont.draw(renderer, \"Hello!\", 0, 0);\n// or just add it to the word container\nme.game.world.addChild(myFont);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

            position of the text object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the text object

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

            the text configuration

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

            a font name to identify the corresponing source image

            ","dataType":{"tokens":[{"value":"string | Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"string | %1"}},{"identifier":"settings.fontData","optional":true,"default":"settings.font","description":"

            the bitmap font data corresponding name, or the bitmap font data itself

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"description":"

            size a scaling ratio

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.fillStyle","optional":true,"description":"

            a CSS color value used to tint the bitmapText (@see BitmapText.tint)

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"1","description":"

            line width, in pixels, when drawing stroke

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

            horizontal text alignment

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

            the text baseline

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

            line spacing height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

            anchor point to draw the text at

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

            the maximum length in CSS pixel for a single segment of text

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

            a string, or an array of strings

            ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tIZtD-VQzS6m2ZiUAPWuJ","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RozCcxD2vGo7ioaV82-X1","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MEgwNnCAub-cRss8s3hDk","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fwGAYaWDfTxku1aK7ZKD3","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

            draw the bitmap font

            ","params":[{"identifier":"renderer","optional":false,"description":"

            Reference to the destination renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QFmBKIbEN2JTwmVli21js","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4IrfWacprUp0tPUzCE3g4","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zdD3fKd_i99-pcvGtFxKf","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qLFlrqi9IRbQEOzXPibwC","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y4dKwAUEhbEaiDqfdX9-D","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0Jw5mp7UydzUS-L_95WQV","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2unNsTvzYxsn71McCo-Df","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_7P-_OfxRIH4lIDoLAU6b","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tO_GxkbLIiIsejuwjJhv7","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"65Q4Vp2Ek9QZfDHH0BpPt","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UsroqczRTw_R9ehOVv6Qo","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

            measure the given text size in pixels

            ","params":[{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            a TextMetrics object with two properties: width and height, defining the output dimensions

            ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yO6ZZdcQwtN4RMzz1xNS7","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hPqSJx0xx_qpqkt6kabxc","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FFdDsHHZIegCCdOukMIOB","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"djU0U1ZiUfg4ZUwgYrXjY","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"OP9txU7H_XXM5UaeGqUUo","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"XGOz0J5joXDun3Q6OlSbx","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YHbxvB9uYkC_iUtvwgwQv","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            change the font display size

            ","params":[{"identifier":"scale","optional":false,"description":"

            ratio

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eSzAnNYYHMAhz1h31-hLQ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"92lmmwF_r98vUJ_19Ghpt","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iHdbl6QtCjIWPy9PPrgvy","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TxjxjROU-wHlASrwflB81","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

            change the font settings

            ","params":[{"identifier":"textAlign","optional":false,"description":"

            ("left", "center", "right")

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"scale","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XbGQ2HXQcTqwVELB6mXTx","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sDhhWEjItePZjLfLs9eek","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xNYdmfVsNrwkvFDc89BJS","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

            change the text to be displayed

            ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

            a string, or an array of strings

            ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

            this object for chaining

            ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QIgKfe6UZzR3Vp5IsP2La","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2s4TY88C2yt2vPR_VR-50","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GKPTSQz0oHX7Wq3Fww_cz","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WkW57Lxc-Kysa-jyNIfSB","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eH3uaqRBXIHvnxSczK0N3","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d0SYiJEW3ZrIdvn7UKsDw","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lanac7ktPAiQUR7qVQQgK","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ddv59SH9TfpVR2DVyG-ri","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DGBjoxoUCrq78cFB5dw__","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lhOET78lXKW35fMQotqh7","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this Bitmap Text.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this Bitmap Text bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E5UsZ_UXHUvdWWhPC2lSy","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"RkrOtcsGs9gsxYrn5yVdj","name":"Body","brief":"","see":["Renderable.body"],"type":"ClassDoc","description":"

            a Generic Physic Body Object with some physic properties and behavior functionality, to add as a member of a Renderable.

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"DY6tsNPwfpZYXAHUen6Ep","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this body,\nor undefined if it has not been added to one.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fpmUoH2jgl7gH4iZrGEP-","name":"bounce","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            the body bouciness level when colliding with other solid bodies :\na value of 0 will not bounce, a value of 1 will fully re...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L-xu3FRae4DvW9rD_rre6","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The AABB bounds box reprensenting this body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u5f6HDFAFE8VwNZR2fv6w","name":"collisionType","brief":"","access":"public","defaultValue":"collision.types.ENEMY_OBJECT","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"PropertyDoc","description":"

            define the collision type of the body for collision filtering

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sYLNFdp7GFyF6xR7jK3RA","name":"falling","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

            falling state of the body
            \ntrue if the object is falling
            \nfalse if the object is standing on something

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IMreg5Ha-drcCmFYKpAxh","name":"force","brief":"","access":"public","defaultValue":"<0,0>","examples":[{"caption":"","code":" // define a default maximum acceleration, initial force and friction\n this.body.force.set(1, 0);\n this.body.friction.set(0.4, 0);\n this.body.setMaxVelocity(3, 15);\n\n // apply a postive or negative force when pressing left of right key\n update(dt) {\n if (me.input.isKeyPressed(\"left\")) {\n this.body.force.x = -this.body.maxVel.x;\n } else if (me.input.isKeyPressed(\"right\")) {\n this.body.force.x = this.body.maxVel.x;\n }\n }"}],"scope":"instance","see":["Body.setMaxVelocity"],"type":"PropertyDoc","description":"

            body force to apply to this the body in the current step.\n(any positive or negative force will be cancelled after every wo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gJWCpk6s9UQSsMedJj3Y2","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

            body friction

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hn2cJatMeq6V6cpsrx-rX","name":"gravityScale","brief":"","access":"public","defaultValue":"1.0","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

            The degree to which this body is affected by the world gravity

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LBufaQmEAkQXXs-1FeMYf","name":"ignoreGravity","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

            If true this body won't be affected by the world gravity

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gnWv9Zlp2RrfEYWvYhYdB","name":"isStatic","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

            Either this body is a static body or not.\nA static body is completely fixed and can never change position or angle.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e9ajasQ3qgJ2I5gR5Q0jJ","name":"jumping","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

            jumping state of the body
            \nequal true if the body is jumping

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"krMuCW5wZ15Nj60K2kOBp","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

            the body mass

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_woyVVHe3EjcWR0VA2ync","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

            max velocity (to limit body velocity)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UTL3emIzQJzCdyExuzvOr","name":"vel","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","see":["Body.force"],"type":"PropertyDoc","description":"

            The current velocity of the body.\nSee to apply a force if you need to modify a body velocity

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p7gYYgV2V879PlS3MdMin","name":"addShape","brief":"","examples":[{"caption":"","code":"// add a rectangle shape\nthis.body.addShape(new me.Rect(0, 0, image.width, image.height));\n// add a shape from a JSON object\nthis.body.addShape(me.loader.getJSON(\"shapesdef\").banana);"}],"scope":"instance","type":"MethodDoc","description":"

            add a collision shape to this body
            \n(note: me.Rect objects will be converted to me.Polygon before being added)

            ","params":[{"identifier":"shape","optional":false,"description":"

            a shape or JSON object

            ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse | Point | Array | Bounds | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6<%7> | %8 | object"}}],"returns":[{"description":"

            the shape array length

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RDnDRLmxLKqFlyvKRNsnN","name":"addVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given vertices to the body shape

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of me.Vector2d points defining a convex hull

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

            the shape object for which to set the vertices

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"J_AdB7sazA2_NU_NOUeao","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

            the parent object this body is attached to

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"shapes","optional":true,"description":"

            a initial shape, list of shapes, or JSON object defining the body

            ","dataType":{"tokens":[{"value":"Rect | Array | Polygon | Array | Line | Array | Ellipse | Array | Point | Array | Bounds | Array | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1 | %3<%2> | %4 | %5<%6> | %7 | %8<%9> | %10 | %11<%12> | %13 | %14<%15> | %16 | %17<%18> | object"}},{"identifier":"onBodyUpdate","optional":true,"description":"

            callback for when the body is updated (e.g. add/remove shapes)

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"pKHBvLFh-Z-_gmTVj8hJC","name":"contains","brief":"","examples":[{"caption":"","code":"if (mySprite.body.contains(10, 10)) {\n // do something\n}\n// or\nif (mySprite.body.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the any of the shape composing the body contains the given point.

            ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if contains

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QFWAlrzaTakCSre9vh9Qs","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all shapes of the physic body\nmySprite.body.forEach((shape) => {\n shape.doSomething();\n});\nmySprite.body.forEach((shape, index) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

            The forEach() method executes a provided function once per body shape element.
            \nthe callback function is invoked with ...","params":[{"identifier":"callback","optional":false,"description":"

            fnction to execute on each element

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

            value to use as this(i.e reference Object) when executing callback.

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"7WEFslaXgsWCcX_ts5UP0","name":"fromJSON","brief":"","examples":[{"caption":"","code":"// define the body based on the banana shape\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\").banana);\n// or ...\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\"), \"banana\");"}],"scope":"instance","see":["https://www.codeandweb.com/physicseditor"],"type":"MethodDoc","description":"

            add collision mesh based on a JSON object\n(this will also apply any physic properties defined in the given JSON file)

            ","params":[{"identifier":"json","optional":false,"description":"

            a JSON object as exported from a Physics Editor tool

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"id","optional":true,"description":"

            an optional shape identifier within the given the json object

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

            how many shapes were added to the body

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LfHDlGuCpWySXiB2gMw-2","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the AABB bounding box for this body

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B9WPeyOPzIhVhwd1T0-If","name":"getShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the collision shape at the given index

            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

            the shape object at the specified index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            shape a shape object if defined

            ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"extends":[],"implements":[]},{"id":"Q9z7Jp14Ymvp_yXCA0X6O","name":"removeShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            remove the specified shape from the body shape list

            ","params":[{"identifier":"shape","optional":false,"description":"

            a shape object

            ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            the shape array length

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZSmRCdFwoW189JxAbprjG","name":"removeShapeAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            remove the shape at the given index from the body shape list

            ","params":[{"identifier":"index","optional":false,"description":"

            the shape object at the specified index

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            the shape array length

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9E_tTEalvyysBSCXc2VWl","name":"respondToCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

            the built-in function to solve the collision response

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object (see {@link ResponseObject})

            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"qzb5tmo2qaToECb_0acon","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this body (counter-clockwise) by the specified angle (in radians).\nUnless specified the body will be rotated around...","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"default":"Body.getBounds().center","description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BuXPwVXlzsOKopEAlsh2d","name":"setCollisionMask","brief":"","examples":[{"caption":"","code":"// filter collision detection with collision shapes, enemies and collectables\nbody.setCollisionMask(me.collision.types.WORLD_SHAPE | me.collision.types.ENEMY_OBJECT | me.collision.types.COLLECTABLE_OBJECT);\n...\n// disable collision detection with all other objects\nbody.setCollisionMask(me.collision.types.NO_OBJECT);"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

            By default all physic bodies are able to collide with all other bodies,
            \nbut it's also possible to specify 'collision ...","params":[{"identifier":"bitmask ","optional":true,"default":" collision.types.ALL_OBJECT","description":"

            the collision mask

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"40RnzOrgvFqRO8oc-boiO","name":"setCollisionType","brief":"","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

            define the collision type of the body for collision filtering

            ","params":[{"identifier":"type","optional":false,"description":"

            the collision type

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aH-IJqcBvgdud-JBAyVmJ","name":"setFriction","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the body default friction

            ","params":[{"identifier":"x","optional":false,"default":"0","description":"

            horizontal friction

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

            vertical friction

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m8cst8_pm4rOpigxq32tH","name":"setMaxVelocity","brief":"","scope":"instance","type":"MethodDoc","description":"

            cap the body velocity (body.maxVel property) to the specified value

            ","params":[{"identifier":"x","optional":false,"description":"

            max velocity on x axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            max velocity on y axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"loetrouHIZ7ZYKbTDV7aQ","name":"setStatic","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the body as a static body\nstatic body do not move automatically and do not check againt collision with others

            ","params":[{"identifier":"isStatic","optional":true,"default":"true","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"qU-kqNzzaUgPvFaV7BeUg","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the body vertices to the given one

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of me.Vector2d points defining a convex hull

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

            the shape object for which to set the vertices

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"true","description":"

            either to reset the body definition before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"hygiZZYakVUYSpU558ljS","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            Updates the parent's position as well as computes the new body's velocity based\non the values of force/friction. Velocity...","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if resulting velocity is different than 0

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"F_Rnn1a96y9GqHsM1uyKd","name":"Bounds","brief":"","type":"ClassDoc","description":"

            a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1_QQa4dfrxZL63YJEib24","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Nz3W-79D0LfRPsJtdMyB","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the center position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yhFZ84AGJW9a6FNNY7JM0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the x axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qEBUCWiZd9eUBNzuz55SN","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the y axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dptw9AWKxKCtKthKPiaNi","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DBrfq-w1rjbeFa15kb9y8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4mHIgpzQSehsg67XyzyhO","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D9RwwJ6L4529dpq3rwi-Y","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZB4x-JOw0A1mM5zQOnWki","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

            the object type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DkfDFzkkC-Zj10aNneupt","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7EeWmRe1WdksdNxlox-RY","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4aa9BXZeIB0EZMXiqePm_","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y position of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tx1z2xp6eDKZD9DFyPT7X","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given vertices to the bounds definition.

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_gfr8jT0-XyopOycms6Pi","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given bounds to the bounds definition.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

            either to reset the bounds before adding the new vertices

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"kAq_psZjQEvua0K4NROJ7","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given quad coordinates to this bound definition, multiplied by the given matrix

            ","params":[{"identifier":"x0","optional":false,"description":"

            left X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

            top Y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

            right X coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

            bottom y coordinates of the quad

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given frame coordinates

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5tfO6O-QAWGPjKDktMy9R","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

            add the given point to the bounds definition.

            ","params":[{"identifier":"point","optional":false,"description":"

            the vector or point to be added to the bounds

            ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

            an optional transform to apply to the given point (if the given point is a Vector2d)

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MssyG9pMihAHn31kPKV9p","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the bounds position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this bounds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8EtfLddg0oBKpckaYqoRP","name":"clear","brief":"

            reset the bound

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_jWAbQyR784JfWDeX3gwk","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this bounds

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M0JffyaEyMAOy-xZFE_O5","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"vertices","optional":true,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"iucvgr6NBNxoNOjEUcs7g","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the bounds contains the given point.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to check

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the bounds contain the point, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kzXAV6VIB03DYa8Qn4cFq","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this bounds are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hyz1t2UiqQWXxYaOlfEE2","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the two bounds intersect.

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            True if the bounds overlap, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uyZFlEbTVCYJTYJJBrtDn","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

            sets the bounds to the given min and max value

            ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7Lj82nDPbUUGU_noUcgbC","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the bounds to the given x, y position.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"joe4Mfcxa-sIjicPe5Cuj","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this bounds.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this bounds.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JSlCTEl6f6Tw6Fhv49_4t","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Translates the bounds by the given point

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gKUCOUa14IRqBI-22N6rW","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            Updates bounds using the given vertices

            ","params":[{"identifier":"vertices","optional":false,"description":"

            an array of Vector2d or Point

            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"9L2dKpgIbBh7-zqucO6K6","name":"Camera2d","brief":"","type":"ClassDoc","description":"

            a 2D orthographic camera

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"od8E7zpXdsdbhto-8ypOd","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

            Axis definition

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xJD3TPtJkDMzoYVu5xZ08","name":"BOTH","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

            both axis

            "},{"id":"ZGwCQBXB6qcD8jdnnOXh-","name":"HORIZONTAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

            horizontal axis only

            "},{"id":"Zb8zsX008NMgqKRHPSzZL","name":"NONE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

            no axis

            "},{"id":"RLkJghBBqrK9ZDIi5T4N3","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

            vertical axis only

            "}]},{"id":"UYymaNL6U4BRwrrPU2tlO","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

            Define the renderable opacity
            \nSet to zero if you do not wish an object to be drawn

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NWEnDOBkaA1tWbJUXhCWn","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object will always update, even when outside of the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S1A0vdVCtxveYu1LmM1BP","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            a reference to the parent object that contains this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z9-icXM-cA6RZSiUUHAT7","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

            The anchor point is used for attachment behavior, and/or when applying transformations.
            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eVRwmKFmlRdEbWslnpEuV","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Quo9fluVUi1k-tDhHkWSb","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sx9Hijslbycl0gIelC3ze","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

            the renderable physic body

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ccc7cf9ezYjC1XVLC_2j","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tq4bBmnvju_zBB5r84Ps5","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Camera bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OexroqmiMMSGzb-W-Cpy6","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"84wReHEXO7Coh7dqiuHlH","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b_yVgVkAj_qA0XILUZJiz","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eFM9yG1qxxsoFEU5VQURv","name":"damping","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

            Camera damping for smooth transition [0 .. 1].\n1 being the maximum value and will snap the camera to the target position

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MAfv6NYTJnQtrRHREMWP4","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SmHkjPni7NQMQXUrRqcX-","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

            the furthest point relative to the camera.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JjKlBV5aLgVv6ZE740bF1","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wQdpw6F-cQeMzZbJOsOPL","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

            (G)ame (U)nique (Id)entifier"
            \na GUID will be allocated for any renderable object added
            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xj134-PsLMMeUIFsv05iM","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tlXa3u4Sm0dVbI2F1vZPE","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether the renderable object is visible and within the viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZkhArWnH0v1Ypc1CutDRi","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            when true the renderable will be redrawn during the next update cycle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2q_m5fWaPja1aaZTHfgcF","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qDM3E5utB1iOJ7eedcoxk","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

            returns true if this renderable is flipped on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M64abRdUmZik9x0ojTtLM","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8YzW2yNchKUoZEAL5jr-K","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            If true then physic collision and input events will not impact this renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lq9SsBY_l2ERUlCXX16Um","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HV3xWRa4JqOrX8h19wv0K","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Q0JgswthmnemkW4eLk_c","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Slhs6BmLCNjHVCg8Uyp3S","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5giFiy-j77D_tlI5n1Bdj","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

            the closest point relative to the camera

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ltOQWXqhR99s_NB1boNY9","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

            an event handler that is called when the renderable leave or enter a camera viewport

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oXnaSMrzCLaVFqMlA7qec","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

            returns the parent application (or game) to which this renderable is attached to

            ","params":[],"returns":[{"description":"

            the parent application or undefined if not attached to any container/app

            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WK6Tg7HPYsCF9SInx6xrT","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Array of points defining the Polygon
            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gP5mJbWzz5bODMX8J9RyN","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qKjzqURkjVvVukXAC31sa","name":"projectionMatrix","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the default camera projection matrix\n(2d cameras use an orthographic projection by default).

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-qTPPvUbaTzsP-qgjjdT1","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q8LLWBTE30n4AH5JkyqzZ","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xvhreelaQ3xby5aSVHdl0","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-1FdVMXS20eoiOZtO9Ke_","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TRLiE6xspQzZnHjpjUUIV","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PzmP5EOEDQ64LL6HMd9Z0","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Whether to update this object when the game is paused.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mmIyobr1dVFuQW3Ix3e1h","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PVIv_jonzCuC3A17Lrt3h","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            enable or disable damping

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hWCGgMc3_4gR5wBCIErEY","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the angle to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xCRNhzAaWmyTGhaLWF7UL","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            center the rectangle position around the given coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate around which to center this rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LOMUfe6aF8EqODv0JdD-M","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

            clone this rectangle

            ","params":[],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_ohADQfeOYQbuUlMIKqe8","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"minX","optional":false,"description":"

            start x offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"description":"

            start y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"description":"

            end x offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"description":"

            end y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"07z9EFtAYZlAkRIVHa30b","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

            Returns true if the rectangle contains the given point or rectangle

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point, or a rectangle to test

            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

            y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            True if the rectangle contain the given point or rectangle, otherwise false

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Cp9TVd-xYgu1dN-gPHeuh","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

            copy the position and size of the given rectangle into this one

            ","params":[{"identifier":"rect","optional":false,"description":"

            Source rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            new rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_WbZIE3khXLNDrjNIUdaH","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the distance to the specified target

            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            distance

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T1oI9Z0Qawx4LKgR1DKhZ","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer instance

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

            the viewport to (re)draw

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7w2W5WEHrt4ew5RUra1ko","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is identical to the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k-ADOK0Y62wT_klEUXIwF","name":"fadeIn","brief":"","examples":[{"caption":"","code":"// flash the camera to white for 75ms\nme.game.viewport.fadeIn(\"#FFFFFF\", 75);"}],"scope":"instance","type":"MethodDoc","description":"

            fadeIn effect

            \nfade to the specified color

            ","params":[{"identifier":"color","optional":false,"description":"

            a CSS color value

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

            callback once effect is over

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZPfW4ytGtytgUPjgv6L79","name":"fadeOut","brief":"","examples":[{"caption":"","code":"// fade the camera to white upon dying, reload the level, and then fade out back\nme.game.viewport.fadeIn(\"#fff\", 150, function() {\n me.audio.play(\"die\", false);\n me.level.reload();\n me.game.viewport.fadeOut(\"#fff\", 150);\n});"}],"scope":"instance","type":"MethodDoc","description":"

            fadeOut(flash) effect

            \nscreen is filled with the specified color and slowly goes back to normal

            ","params":[{"identifier":"color","optional":false,"description":"

            a CSS color value

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

            callback once effect is over

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"rOG46M5h2jNKhThMTHV4r","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

            flip the renderable on the horizontal axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o2URc3vQcoce01y400q55","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

            flip the renderable on the vertical axis (around the center of the renderable)

            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

            true to flip this renderable.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sdet9xgfn7Q2rQBPlF5qx","name":"focusOn","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the camera position around the specified object

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable to focus the camera on

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"_0KLMDvfnLPr1YOnGu-ui","name":"follow","brief":"","examples":[{"caption":"","code":"// set the camera to follow this renderable on both axis, and enable damping\nme.game.viewport.follow(this, me.game.viewport.AXIS.BOTH, 0.1);"}],"scope":"instance","type":"MethodDoc","description":"

            set the camera to follow the specified renderable.
            \n(this will put the camera center around the given target)

            ","params":[{"identifier":"target","optional":false,"description":"

            renderable or position vector to follow

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

            Which axis to follow (see {@link Camera2d.AXIS})

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"damping","optional":true,"default":"1","description":"

            default damping value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1rp1oWNUKjr1ENYhNn6S2","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the renderable absolute position in the game world

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TlcpEekJwjFg5-lN7w39_","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the bounding box for this renderable

            ","params":[],"returns":[{"description":"

            bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9wkpoeGAFhlOLMbIOOOyc","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns a list of indices for all triangles defined in this polygon

            ","params":[],"returns":[{"description":"

            an array of vertex indices for all triangles forming this polygon.

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"dlYC1MYJ3oDds-KJ3OGdK","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the renderable alpha channel value

            ","params":[],"returns":[{"description":"

            current opacity value between 0 and 1

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P003QygXHj3ae_pa-0Wet","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

            ","params":[],"returns":[{"description":"

            true if the vertices are convex, false if not, null if not computable

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I5BX7kFK2i6ttHdGWHprJ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

            determines whether all coordinates of this rectangle are finite numbers.

            ","params":[],"returns":[{"description":"

            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UD2EOd0rkaUzbr4OH7J0o","name":"isVisible","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if the specified renderable is in the camera

            ","params":[{"identifier":"obj","optional":false,"description":"

            to be checked against

            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"floating ","optional":true,"default":" obj.floating","description":"

            if visibility check should be done against screen coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            true if within the viewport

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9ysAAIEres0eVJJq_PHyh","name":"localToWorld","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the given "local" (screen) coordinates into world coordinates

            ","params":[{"identifier":"x","optional":false,"description":"

            the x coordinate of the local point to be converted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the y coordinate of the local point to be converted

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional vector object where to set the converted value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zrbl3XMv-O5OMqSmhuwyo","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable towards the given target.

            ","params":[{"identifier":"target","optional":false,"description":"

            the renderable or position to look at

            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_kDrR3YDgLwqczGh46dGh","name":"move","brief":"","examples":[{"caption":"","code":"// Move the camera up by four pixels\nme.game.viewport.move(0, -4);"}],"scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

            move the camera upper-left position by the specified offset.

            ","params":[{"identifier":"x","optional":false,"description":"

            horizontal offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            vertical offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PQW6JikFpqIm25k06Q7W3","name":"moveTo","brief":"","scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

            move the camera upper-left position to the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MgNi8j5KqN8XiXu1w2J2-","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

            ","params":[{"identifier":"response","optional":false,"description":"

            the collision response object

            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

            the other renderable touching this one (a reference to response.a or response.b)

            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

            true if the object should respond to the collision (its position and velocity will be corrected)

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PJrLi5ZaSxIxVeo3M4EGL","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zUC45fqveqwvCXV0TDRUA","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if this rectangle is intersecting with the specified one

            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Tgfv-tlUhNw15TzFi9sFe","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

            restore the rendering context after drawing (automatically called by melonJS).

            ","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Kxh5oIJOtB2Rlnr_mVY8W","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

            a renderer object

            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"rKHUIYaOiidl8q7oG6F_z","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KI_ESiQMuNRdEw6N2tLvl","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

            reset the camera position to specified coordinates

            ","params":[{"identifier":"x","optional":true,"default":"0","description":"

            initial position of the camera on the x axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

            initial position of the camera on the y axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UsniIFwPSldtBPMXrNglW","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resize the camera

            ","params":[{"identifier":"w","optional":false,"description":"

            new width of the camera

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            new height of the camera

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this camera

            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WUudlSmzM12eS8MJ1E6NO","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

            Rotate this renderable by the specified angle (in radians).

            ","params":[{"identifier":"angle","optional":false,"description":"

            The angle to rotate (in radians)

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional point to rotate around

            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KShn6vbvKwGzOxCm5OKr_","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

            a number representing the abscissa of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

            a number representing the ordinate of the scaling vector.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dq5K4cu9TWcx3BDnb1y4m","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

            scale the renderable around his anchor point

            ","params":[{"identifier":"v","optional":false,"description":"

            scaling vector

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h86WBY3KYyvoO1rSQv9xQ","name":"setBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the camera boundaries (set to the world limit by default).\nthe camera is bound to the given coordinates and cannot mov...","params":[{"identifier":"x","optional":false,"description":"

            world left limit

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            world top limit

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            world width limit

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            world height limit

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hXyLngZS2cVPm8hjpbqnc","name":"setDeadzone","brief":"","scope":"instance","see":["Camera2d.follow"],"type":"MethodDoc","description":"

            change the deadzone settings.\nthe "deadzone" defines an area within the current camera in which\nthe followed ren...","params":[{"identifier":"w","optional":false,"description":"

            deadzone width

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            deadzone height

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XjM7H3XxGBJoRLHCkHXct","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the renderable alpha channel value

            ","params":[{"identifier":"alpha","optional":false,"description":"

            opacity value between 0.0 and 1.0

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UVE84MZIrB8tJXvf2Ef_h","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

            set new value to the rectangle shape

            ","params":[{"identifier":"x","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            position of the Rectangle

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            width of the rectangle, or an array of vector defining the rectangle

            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

            height of the rectangle, if a numeral width parameter is specified

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            this rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j5W-JiiLOJsYd8Bn5Qu70","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

            set the vertices defining this Polygon

            ","params":[{"identifier":"vertices","optional":false,"description":"

            array of vector or vertice defining the Polygon

            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

            this instance for objecf chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bagao4y3j0eeUdExm20mH","name":"shake","brief":"","examples":[{"caption":"","code":"// shake it baby !\nme.game.viewport.shake(10, 500, me.game.viewport.AXIS.BOTH);"}],"scope":"instance","type":"MethodDoc","description":"

            shake the camera

            ","params":[{"identifier":"intensity","optional":false,"description":"

            maximum offset that the screen can be moved\nwhile shaking

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

            expressed in milliseconds

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

            specify on which axis to apply the shake effect (see {@link Camera2d.AXIS})

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

            callback once shaking effect is over

            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"force","optional":true,"description":"

            if true this will override the current effect

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VrbRT2emDEUF6Oy0xTO1S","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            Shifts the Polygon to the given position vector.

            ","params":[{"identifier":"x","description":"

            x coordinate or a vector point to shift to

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9ywprbcCWpuXCSmPV1Ae5","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply a 2d projection to this shapen

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TR4C4UNorjfiGpErqNInU","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

            apply an isometric projection to this shape

            ","params":[],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sc949Qi_ENpKnG6sAZ4Lw","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns a polygon whose edges are the same as this box.

            ","params":[],"returns":[{"description":"

            a new Polygon that represents this rectangle.

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YOwY_Xx4w8oXWOyCe8d1G","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

            multiply the renderable currentTransform with the given matrix

            ","params":[{"identifier":"m","optional":false,"description":"

            the transformation matrix

            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1aX6Qai3gv67wNbblYFyz","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

            translate the Polygon by the specified offset

            ","params":[{"identifier":"x","description":"

            x offset or a vector point to translate by

            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

            y offset

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            Reference to this object for method chaining

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xpPyBVokotXSIiwuIDjec","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

            unfollow the current target

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w5Qd_NxcS0XS53lx9GZ0B","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

            merge this rectangle with another one

            ","params":[{"identifier":"rect","optional":false,"description":"

            other rectangle to union with

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

            the union(ed) rectangle

            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"seLjGuWuXtdEh3IPQS0BV","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

            update function (automatically called by melonJS).

            ","params":[{"identifier":"dt","optional":false,"description":"

            time since the last update in milliseconds.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            true if the renderable is dirty

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BCxwypaTTo6OTPJ1UmqUU","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

            update the bounding box for this shape.

            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

            update the bounds size and position in (world) absolute coordinates

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

            this shape bounding box Rectangle object

            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1_k_47Hxii2s12ku8V5Jv","name":"worldToLocal","brief":"","scope":"instance","type":"MethodDoc","description":"

            convert the given world coordinates into "local" (screen) coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

            an optional vector object where to set the converted value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

            a vector with the converted local coordinates

            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gh1LdmsXORYIi09l_C5F_","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

            called when the anchor point value is changed

            ","params":[{"identifier":"x","optional":false,"description":"

            the new X value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            the new Y value to be set for the anchor

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"CJO6Ajmxwyke7LZFPxHfy","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

            a canvas renderer object

            ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"K60eSPwHXttVUYLKp6FcE","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

            the default method to sort object ("sorting", "z-buffer")

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IUtbCVL3APN3hJF2dSUBd","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the requested video size ratio

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nVWvHwJ2oOcDI2XynUd1I","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the height of the canvas which this renderer draws to

            ","params":[],"returns":[{"description":"

            height of the system Canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZPR2wS4niu1heffDYMXLL","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            true if the current rendering context is valid

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KbD1RNj09_QZGWuq1x3AD","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The Path2D instance used by the renderer to draw primitives

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QUyjoU6mOASrL8y8-lAlG","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

            the scaling ratio to be applied to the main canvas

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EiKx97vWN2ff4f2lSsAaT","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The given constructor options

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Se-A8Gmq9N5ISMsXN_sdw","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

            The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2QfKo3oQpd67g8KtSXSuy","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the width of the canvas which this renderer draws to

            ","params":[],"returns":[{"description":"

            width of the system Canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8CgClZwqD5EHG_8lK_ajg","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

            starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x9w_BdBzdiIvsgEHKi1hr","name":"clear","brief":"

            prepare the framebuffer for drawing a new frame

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k85ETlzuO7cnhks4lORyB","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

            Clears the main framebuffer with the given color

            ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

            CSS color.

            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

            Allow transparency [default] or clear the surface completely [true]

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"nzV7ZBjTTEw-FG0zVHFHw","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

            disable (remove) the rendering mask set through setMask.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YDJWU6c8OazczUcEgBA07","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

            ","params":[{"identifier":"x","optional":false,"description":"

            x axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            y axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            The rectangle's width.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The rectangle's height.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5Dbtlj1dUtstL-ak7Smkm","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

            clear the rendering tint set through setTint.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jamD4ptdMkq0aAWzG6oWx","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mg9NCsd-LOpZ6pe_RdXGc","name":"closePath","brief":"

            add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WhjbEXC8QgTCHzjWDUQcR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

            optional parameters for the renderer

            ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z3JvaFo9pw1S2xcdPUPUz","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

            Create a pattern with the specified repetition

            ","params":[{"identifier":"image","optional":false,"description":"

            Source image to be used as the pattern's image

            ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

            Define how the pattern should be repeated

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PhDYG38fEYwGb3oW4X9T7","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

            Draw an image onto the main using the canvas api

            ","params":[{"identifier":"image","optional":false,"description":"

            An element to draw into the context.

            ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

            The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

            The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

            The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

            The height of the sub-rectangle of the source image to draw into the destination context.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

            The X coordinate in the destination canvas at which to place the top-left corner of the source image.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

            The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

            The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

            The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZCIuNHWQ97ZFGZ4By1yYz","name":"drawPattern","brief":"","scope":"instance","see":["CanvasRenderer#createPattern"],"type":"MethodDoc","description":"

            Draw a pattern within the given rectangle.

            ","params":[{"identifier":"pattern","optional":false,"description":"

            Pattern object

            ","dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mcGCLC38rds8xxlOWviVu","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

            fill the given shape or the current defined path

            ","params":[{"identifier":"shape","optional":true,"description":"

            a shape object to fill

            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"0RUezLdnr2jMBhc8CIBqL","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

            Fill an arc at the specified coordinates with given radius, start and end points

            ","params":[{"identifier":"x","optional":false,"description":"

            arc center point x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            arc center point y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

            start angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

            end angle in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

            draw arc anti-clockwise

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"voRhQ6lBB6QiFm0LqFSCo","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

            Fill an ellipse at the specified coordinates with given radius

            ","params":[{"identifier":"x","optional":false,"description":"

            ellipse center point x-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            ellipse center point y-axis

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

            horizontal radius of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

            vertical radius of the ellipse

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TP7UH6cuXnZZrjafhdDeS","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

            Fill a line of the given two points

            ","params":[{"identifier":"startX","optional":false,"description":"

            the start x coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

            the start y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

            the end x coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

            the end y coordinate

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dTlbXn2AsRPmakI7z_jaT","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

            Draw a a point at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"garj8tRcS_RTlOHq4TSL-","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

            Fill the given me.Polygon on the screen

            ","params":[{"identifier":"poly","optional":false,"description":"

            the shape to draw

            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xATLP3MkgkSQa8i0Xpw3c","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            Draw a filled rectangle at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9gUD7Ob7KatYHEUsgOmG-","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            Draw a rounded filled rectangle at the specified coordinates

            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_QX3wROVlhHtKBg9gT2xq","name":"flush","brief":"

            render the main framebuffer on screen

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W--o0VOd1v8mUOIVATgCU","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

            returns the current blend mode for this renderer

            ","params":[],"returns":[{"description":"

            blend mode

            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"VASp9y1iza_z8SYFdxAs1","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a reference to the canvas which this renderer draws to

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"95mTMKSPUBzyFKQ6CNylF","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

            get the current fill & stroke style color.

            ","params":[],"returns":[{"description":"

            current global color

            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UwdWalsCiieU202Kf29eu","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

            return a reference to this renderer canvas corresponding Context

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"hIfJUYvIsrZhomwlnGpuY","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

            Returns the 2D Context object of the given Canvas
            \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

            use false to disable transparency

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KoU6HeZ5r_Us0GC6Aj1gE","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

            Return the global alpha

            ","params":[],"returns":[{"description":"

            global alpha value

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iPkzehHvWYwKa6yqXPyRh","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

            return a reference to the screen canvas

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6vlpuwgpefvtUWsWtIh_4","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

            return a reference to the screen canvas corresponding 2d Context
            \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"18rxeMZGRzlW4-OEbmDbV","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

            return the current global alpha

            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ImkhU3i9ffxZYwknWLKMc","name":"lineTo","brief":"

            adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

            ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"_rmBAXBC7AAVUwr5R2K30","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

            begins a new sub-path at the point specified by the given (x, y) coordinates.

            ","params":[{"identifier":"x","optional":false,"description":"

            The x axis of the point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y axis of the point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"e7ZdnVH-0oy_V5VERA423","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

            check if the given rect or bounds overlaps with the renderer screen coordinates

            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

            true if overlaps

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"izg-Ioi-5m83cReYrV_ba","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

            creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

            ","params":[{"identifier":"x","optional":false,"description":"

            The x axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            The rectangle's width.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The rectangle's height.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Gwpszpzy80iwt70oyE9ii","name":"reset","brief":"

            Reset context state

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mI_Uij2b5drl3A0AgLexQ","name":"resetTransform","brief":"

            Reset the canvas transform to identity

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ctLR2ViLUI4IBohvKsalB","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

            resizes the system canvas

            ","params":[{"identifier":"width","optional":false,"description":"

            new width of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            new height of the canvas

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G32pGB0ZbIPeZxkmlIJLY","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

            restores the most recently saved renderer state by popping the top entry in the drawing state stack

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LrsazkQlSDKP8wm7be56w","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

            adds a rotation to the transformation matrix.

            ","params":[{"identifier":"angle","optional":false,"description":"

            the rotation angle, clockwise in radians

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kouRU6o5ExHkUA8PIzP8G","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a rounded rectangle to the current path.

            ","params":[{"identifier":"x","optional":false,"description":"

            The x axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            The y axis of the coordinate for the rectangle starting point.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

            The rectangle's width.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

            The rectangle's height.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

            The corner radius.

            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7UK6FmR2tcYybfdJorL8N","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

            saves the entire state of the renderer by pushing the current state onto a stack.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lVLtG5mjjnF2ucB0Blp4Q","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

            adds a scaling transformation to the renderer units horizontally and/or vertically

            ","params":[{"identifier":"x","optional":false,"description":"

            Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

            Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1-8ovDEGOnd0oPy-cH4dk","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

            enable/disable image smoothing (scaling interpolation) for the given context

            ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"n-MitxHFWHu8TTGO7ReRQ","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

            set a blend mode for the given context.
            \nSupported blend mode between Canvas and WebGL remderer :

            \n
              \n
            • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

              blend mode : "normal", "multiply", "lighter, "additive", "screen"

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"npT_Y9pO94DyS_exBOAQ0","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

              ","params":[{"identifier":"color","optional":false,"description":"

              css color value

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"FFHzwIqBHA0xenVDd9Ktz","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

              Set the global alpha

              ","params":[{"identifier":"alpha","optional":false,"description":"

              0.0 to 1.0 values accepted.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NSej3iFS1fWM485prCmKr","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

              Set the line width on the context

              ","params":[{"identifier":"width","optional":false,"description":"

              Line width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0a1UeJV8goy1EqUwQM9ht","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

              the shape defining the mask to be applied

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

              either the given shape should define what is visible (default) or the opposite

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"inoKj1qYnItV2n0C37HWb","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

              set/change the current projection matrix (WebGL only)

              ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VkF1SHf-c9GcRBUohHBKy","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

              set a coloring tint for sprite based renderables

              ","params":[{"identifier":"tint","optional":false,"description":"

              the tint color

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

              an alpha value to be applied to the tint

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RVVqWVsH00e6uF_2ttgPW","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

              Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

              ","params":[{"identifier":"a","optional":false,"description":"

              a matrix2d to transform by, or a the a component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

              the b component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

              the c component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

              the d component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

              the e component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

              the f component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6Iq-E6NiPImfDup_ZPvAE","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

              stroke the given shape or the current defined path

              ","params":[{"identifier":"shape","optional":true,"description":"

              a shape object to stroke

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

              fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"WSK8mpXKAupVoObRf4jwy","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke an arc at the specified coordinates with given radius, start and end points

              ","params":[{"identifier":"x","optional":false,"description":"

              arc center point x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              arc center point y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

              start angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

              end angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

              draw arc anti-clockwise

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

              also fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"9oHijbQAVDYghH3J3Edc3","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke an ellipse at the specified coordinates with given radius

              ","params":[{"identifier":"x","optional":false,"description":"

              ellipse center point x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              ellipse center point y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              horizontal radius of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              vertical radius of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

              also fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CtLbED9LMYeSc37lRGESA","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke a line of the given two points

              ","params":[{"identifier":"startX","optional":false,"description":"

              the start x coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

              the start y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

              the end x coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

              the end y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9LzdgPiUl2qf7Be3iTuPi","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke a Point at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"enbDrJ96Urs2MNDOS00n5","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke the given me.Polygon on the screen

              ","params":[{"identifier":"poly","optional":false,"description":"

              the shape to draw

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

              also fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"vlxSJzQIjyJ0EIU1u92TW","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke a rectangle at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

              also fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"W5btZ7lDwAquKxoyHokvW","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke a rounded rectangle at the specified coordinates

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

              also fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"hheRZNIpRi17R35_b0L5P","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

              tint the given image or canvas using the given color

              ","params":[{"identifier":"src","optional":false,"description":"

              the source image to be tinted

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

              the color that will be used to tint the image

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

              the composition mode used to tint the image

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              a new canvas element representing the tinted image

              ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"z7cjsqBO2MtzoGWkCx98y","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

              creates a Blob object representing the last rendered frame

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a Blob object representing the last rendered frame

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aJOqasFMwIe6R2HHl3DG_","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

              returns a data URL containing a representation of the last frame rendered

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a string containing the requested data URL.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gJDl0L6qCsQ8aCrXYoL4Y","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

              creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning an ImageBitmap.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vB3tNS0BVaWlWfZ0oJyA6","name":"transform","brief":"","scope":"instance","see":["{@link CanvasRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

              Multiply given matrix into the renderer tranformation matrix

              ","params":[{"identifier":"a","optional":false,"description":"

              a matrix2d to transform by, or a the a component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

              the b component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

              the c component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

              the d component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

              the e component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

              the f component to multiply the current matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"J4Iawn-fUflwWgDEQrGbt","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a translation transformation to the current matrix.

              ","params":[{"identifier":"x","optional":false,"description":"

              Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Distance to move in the vertical direction. Positive values are down, and negative are up.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"tzNxkX_JJrHvmn30N6yDq","name":"CanvasTexture","brief":"","type":"ClassDoc","description":"

              Creates a Canvas Texture of the given size\n(when using WebGL, use invalidate to force a reupload of the corre...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Uzgl_DZUxVqEybmmtyCZV","name":"canvas","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the canvas created for this CanvasTexture

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5JsZzkS0Ts1wLIvsVPqEb","name":"context","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the rendering context of this CanvasTexture

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EdR67aQHyCuRYauLQglzK","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The height of this canvas texture in pixels

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w14mAnU0gx5iDeUBVgcyv","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The width of this canvas texture in pixels

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6w1-W9mDUbvGkYppTktrq","name":"clear","brief":"

              Clears the content of the canvas texture

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CZYEumhbvlbgtqKXxDtHP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

              the desired width of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the desired height of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

              The attributes to create both the canvas and context

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

              the context type to be created ("2d", "webgl", "webgl2")

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

              will create an offscreenCanvas if true instead of a standard canvas

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

              Indicates whether or not a lot of read-back operations are planned

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

              Whether to enable anti-aliasing, use false (default) for a pixelated effect.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"voPD47g4Rkgi9EomvaxDG","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

              The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              The ImageData extracted from this CanvasTexture.

              ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oymkkK3B8X0oZRfMrPk7j","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

              invalidate the current CanvasTexture, and force a reupload of the corresponding texture\n(call this if you modify the canva...","params":[{"identifier":"renderer","optional":false,"description":"

              the renderer to which this canvas texture is attached

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"QzhpTw17K4dK7tgnOa_PM","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              Resizes the canvas texture to the given width and height.

              ","params":[{"identifier":"width","optional":false,"description":"

              the desired width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the desired height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rv94F2wmQnKsAELAEpvLj","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

              enable/disable image smoothing (scaling interpolation)

              ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

              whether to enable or not image smoothing (scaling interpolation)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-JAKktFyFOYok_6jt2zV-","name":"toBlob","brief":"","examples":[{"caption":"","code":"canvasTexture.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

              creates a Blob object representing the image contained in this canvas texture

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a Blob object representing the image contained in this canvas texture

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3y16W1F7fwSkj2MZz5_df","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

              returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a string containing the requested data URL.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5eZYYBi9d-4NSFcDaEnsy","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"canvasTexture.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

              creates an ImageBitmap object from the most recently rendered image of this canvas texture

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning an ImageBitmap.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"cUPUn3xA3AljPyoy2VIV5","name":"Collectable","brief":"","type":"ClassDoc","description":"

              a basic collectable helper class for immovable object (e.g. a coin)

              ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"RaURCuzXkdMMnqj9NIuRt","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCUy9qLNKVTrcS46xplp3","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0EB-jkNdkmHpdekb0Tm-O","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eNu1n-uzu2o8fDXRZlbD_","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PDLyHkHk8be2YqxT4C6fW","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IUk9VZ3N4yAyChiTzvzQa","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xZj3NwXwp_Wxurlpx0CGx","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P9W8ZBD6iTgTPSEexkEO6","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zc1ohCPdSWAdWpXCRPqmp","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sajixTUiqa1AmzL2FzQot","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ixQaUz9sFRk_WK0OC3kXq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tF3pLURRIh0dZ237U1kO4","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PuSJK9JAARSavSVhcvQP1","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-F5PPWXTwYhNDLlFRo-w_","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0IAnWC7pWr7hSQCA9SOgD","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"apUfPD_ZdjZwLGEJu00j0","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qat2jFBhAoqMHCOWwUkPH","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQeL26vtjMxgW5sEIaPdP","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DG9uG-3CmLMj-W1WnMi8v","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sLbjvD3zY_Q57D67rnjpc","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aMu7ZDQY9UsyjyVVTuqEQ","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KfaF12f5CpRuZe75PwTnO","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wQp0etaoDIkGG09ST1p-I","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L5DYkYx3Q31Mb8KSoBvD7","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OIYM2beiLgp1eje9_8-EW","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A6JckQNr2SnB2wJKfr6uR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6w7EQVmRYR77lS1Vyl_vE","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w0lTlREnp_gxH4joTd1n4","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mXNktH94BOEoeRo0r5Uzo","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GLVE5azu3TCtJfwQP0JSj","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hup9vwwnfofdFfAX7Fsts","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"82-JKrrLtMPIPJd5qf4vo","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VmyOOzGPIofPy8CsshqJ1","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dhfZMWCZASX4RDXVV9q1E","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pavBuFm6bpubfK7WoK-SS","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S_1CfqhEzxhnPwkQ_-uCy","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DGg-3Huug0_ccW1mEAV19","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z_fPKPNxbC0aHDo6Am26D","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8JTHe4ioeWQzfGX5t7EiX","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Jx72Rg3oscH-PSspdUPx","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v0fR8LUjTI24Ekuw-8J3H","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3CQz5R_RuTLiUoIADJ6ju","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O_u6XtdFm21phfiTeqq6P","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yk_MaXN6nZhqCMtTk4hdY","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TTpnm5VwqneiIHvLbMkh7","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w5QG39HR6WsA6LWJhLbX4","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the collectable

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the collectable

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              See {@link Sprite}

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"CX6AoIlnOzdm7f95BKmPs","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Bcl1d3zAs3eLkdj31rHPt","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hZH3H_4cblGrFztkryQ5O","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MsZbx5QRVH18fdu9H_H7R","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"53PAE_SGIWw6eACLPoVgF","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dbLYHw6SGUE1l02yki7XY","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ecfhbt7ABC3kH0WM42SwM","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eDzfQ4z0HxI3c3BvPLfpi","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eq-p0sNdNYsAAILwDCFQS","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l_kzBmhBZ_qeCSKyRLQae","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GbNX0j-exRndBZ7VoeyFy","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Qfg7sAcHKkK1WgNrqyP_l","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M3Jij1TlkscPp4K_tWViV","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HqQR3bqxlPNMAnqzx8_lF","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"thFy7UtPESJ7ICmRgk9A1","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"r5euk_mKk3oHW4VKZSRPH","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xmXdvVyLeeV0UOSVE2NzK","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RkekyO60a04FABzZMxYmZ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"34eAWOHEqjTpmJIAwfwCG","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n2UQZH-bBV-FhFCaJuSjJ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"v4zoCMPAROcRI9LucgFmt","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LqOL5RxTHnsM_8oQQ3qrh","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZIhK3Hu_l64sqmpA0caXy","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"KMR8RK1dtEYeXvK6n5KWb","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"yZcauw5Q_O0tDc2EIeur4","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JE49mNpiaz8w_39Jvnj-9","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rN1iRkElB7l7Fs0KlsCY1","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nf43DbB3zRGCidkHxQMt1","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LPFOmZU8N-F8AzvuI2k7p","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f5ji3KYHU3UcYJa6xGk1k","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-UlMbKPUfoat28k917gUl","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jA-4u7ldeBClmO9j2GhNA","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WMWvisxj_cMkLsmsjOYip","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XzX0VYz0Snsi2QUTj7iVr","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lfydLW9uoo8HwbLOay8zL","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GLatJOulXqmwjPT3gZWGB","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xht328iOz1K80VrJpjlFJ","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZRkBjrBsykwfPAqs8cmU6","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BZ-7XOmaqIKJn6Rt4sa7X","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C7xwKcVW5WWA0Pq0psLVs","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K-bxUmn49VdibPKhZ6TAh","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R9OVsVLxWfsaqd0qs1LPO","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uHG7SXy_Ih-Km2k-oZFWT","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u4gzKBQlYfQQEjuMecLZG","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wpu_QhDpSPQ6AzygMBFDO","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this srite (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WOCGcHDQb6fhHKLVnHrYH","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FImmm4JCna7qNZUiWr4Ou","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"wz9GYL8ShmahlH_GdHaHh","name":"Color","brief":"","type":"ClassDoc","description":"

              A color manipulation object.

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"0xhSGKMNuBaYenXgo1gy6","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Color Alpha Component [0.0 .. 1.0]

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I4KgThGCg7OZLZaWZu9CF","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Color Blue Component [0 .. 255]

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lq3Mw5Kx8YMC24Zfc13j5","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Color Green Component [0 .. 255]

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ELRwWWj6ulY4zJZOnrFpz","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Color Red Component [0 .. 255]

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SjPxrOC9cypZEF9BsyOSC","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              Blend this color with the given one using addition.

              ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"49RMGo36X296KAopfuAOK","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              Create a new copy of this color object.

              ","params":[],"returns":[{"description":"

              Reference to the newly cloned object

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Llv3zYLUma0qt8dQlo0rs","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"r","optional":true,"default":"0","description":"

              red component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","description":"

              green component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":true,"default":"0","description":"

              blue component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

              alpha value [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RYbdXZFrevCwdsDd-pB21","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copy a color object or CSS color into this one.

              ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"93IrkbfLxbPzmQLcaOuhS","name":"darken","brief":"","scope":"instance","type":"MethodDoc","description":"

              Darken this color value by 0..1

              ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NrWrv4HZMXdodU8TK0wnn","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return true if the r,g,b,a values of this color are equal with the\ngiven one.

              ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UDT9sHmke8nBYZL8axB8Y","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Linearly interpolate between this color and the given one.

              ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

              with alpha = 0 being this color, and alpha = 1 being the given one.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_38vZ--lNjrE3qJnHJT5F","name":"lighten","brief":"","scope":"instance","type":"MethodDoc","description":"

              Lighten this color value by 0..1

              ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"irHJEqX4minuhdFE4pWtx","name":"parseCSS","brief":"","scope":"instance","type":"MethodDoc","description":"

              Parse a CSS color string and set this color to the corresponding\nr,g,b values

              ","params":[{"identifier":"cssColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u03w5WWPUbO0c8eYQGw8V","name":"parseHex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Parse a Hex color ("#RGB", "#RGBA" or "#RRGGBB", "#RRGGBBAA" format) and set this ...","params":[{"identifier":"hexColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"argb ","optional":true,"default":" false","description":"

              true if format is #ARGB, or #AARRGGBB (as opposed to #RGBA or #RGGBBAA)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"81roEzuyVgYRED68mJnbS","name":"parseRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

              Parse an RGB or RGBA CSS color string

              ","params":[{"identifier":"rgbColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-61LBhs_eXcH8vMIQiC49","name":"random","brief":"","scope":"instance","type":"MethodDoc","description":"

              Generate random r,g,b values for this color object

              ","params":[{"identifier":"min","optional":true,"default":"0","description":"

              minimum value for the random range

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":true,"default":"255","description":"

              maxmium value for the random range

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oXaR-uk5t9kSHEUf10QoP","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Set this color to the specified value.

              ","params":[{"identifier":"r","optional":false,"description":"

              red component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

              green component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

              blue component [0 .. 255]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

              alpha value [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TgO1WI4ecTppmmdbn9gyW","name":"setFloat","brief":"","scope":"instance","type":"MethodDoc","description":"

              set this color to the specified normalized float values

              ","params":[{"identifier":"r","optional":false,"description":"

              red component [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

              green component [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

              blue component [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

              alpha value [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"or8n8yONmnxYsUQwebeao","name":"setHSL","brief":"","scope":"instance","type":"MethodDoc","description":"

              set this color to the specified HSL value

              ","params":[{"identifier":"h","optional":false,"description":"

              hue (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

              saturation (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"l","optional":false,"description":"

              lightness (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AQ-AKNIV3ZxmVzv4RCrSE","name":"setHSV","brief":"","scope":"instance","type":"MethodDoc","description":"

              set this color to the specified HSV value

              ","params":[{"identifier":"h","optional":false,"description":"

              hue (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

              saturation (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

              value (a value from 0 to 1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VsY4Nsg7fSjwfR_WOZMDG","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

              return an Float Array representation of this object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_GSfUeDXKMNznlZSISIIR","name":"toHex","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the color in "#RRGGBB" format

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"3HUkTR3YE4LvzByxmVJ0f","name":"toHex8","brief":"","scope":"instance","type":"MethodDoc","description":"

              Get the color in "#RRGGBBAA" format

              ","params":[{"identifier":"alpha","optional":false}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"WCxOcE3TGZ94Wj8kR2_vm","name":"toRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

              Get the color in "rgb(R,G,B)" format

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"8ej75nIWa8wuEpdZs2IBw","name":"toRGBA","brief":"","scope":"instance","type":"MethodDoc","description":"

              Get the color in "rgba(R,G,B,A)" format

              ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

              alpha value [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Owosm3kqLmhM8CagrjHKV","name":"toUint32","brief":"","scope":"instance","type":"MethodDoc","description":"

              Pack this color RGB components into a Uint32 ARGB representation

              ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

              alpha value [0.0 .. 1.0]

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"WTgkyql78c2QnBgyGF3iV","name":"ColorLayer","brief":"","type":"ClassDoc","description":"

              a generic Color Layer Object. Fills the entire Canvas with the color not just the container the object belongs to.

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"S6L34W0cXOjoe55fPwKVm","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vltT2a0v8mDJJ0aecA1YK","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mOJaZ6BK3x_hiGxwMek-y","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NGvPqzJZYCOft4TNRP6hj","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rpnXFQt_Jzbmjm1IhUqgG","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lk4lymfuGhv-xAdSwy6m-","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K1Qe7FAt_GbGNMqtXpQrb","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qslijEJDCg8u_62tz25UW","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JSIAMQ8m0a0ST06_PnhO7","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6rHEKovLhCOjqn5_WyJTT","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"edgySQwS97S5rrV4eOmy0","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              the layer color component

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K_dsMUT7wV0cxgRxiYCUv","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oN4OzF7lmB0Ty263JE8Wa","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RcBpNruGxbf3c1kzQHjyq","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GnnX2CJdiwP29MUlKdSD7","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sR8FNou6h4B5frR1poHmB","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x3mo6a2w_C1mTPxqLIA4y","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6soGMAJIrpvAEb0swKbQq","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pgchSVjYpgv7hMjtMPu0-","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DaN4sI4fK2fs7fKdn22me","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"98C4q_yPs4u7abgPjMki8","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xxz8TwJeOPgn-OpLwdsh2","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EssbZciiKBN0fV7298158","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3jj7EtfTijtMm-UvsmVQ_","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HIHMyGtuJBlvzIOb2XfBM","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E1yZ2FhYa8CNdYjDzdUrC","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JnlWWUKWziuuePDJxYHuH","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ckl_VJHp5aDKd-bj2jtAb","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OtrDpZKH-jY2-H2Iqy2hJ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gagznzPUCpJB-tF98a1LJ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KuHPfnwrRu289LVqNvCY8","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F3AICSM5cxeEAa3xFw_Gb","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KidqYHdLLupTc2OiOnPfN","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NxCtLbw_Cuc7Rhu_A_RTv","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5Wh24TE0Ni924xo9DRYd","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V0QxJcAXDZ6qfkvyKzHMC","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vQOAcczMDbsPPOLLRBQ5Y","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RBvJ7oxvpOAgvK4_M5VRg","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S3Y2nbIzjdkI6gm2Q-g0p","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q9kVCT_xqMYHnKrIEe3kI","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EtPw6uWe9rGnNiIN-Exxy","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"name","optional":false,"description":"

              Layer name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

              CSS color

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"z ","optional":true,"default":" 0","description":"

              z-index position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Iatpm0uOUg223uPI_ol_Q","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MEebwpC7FHv0U95LnnplT","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AqM4h-Eqf9Kct7Vcxa5Fi","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xcBa-fM6G6O1-fDiuAnto","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"jnvk2Fi-ajORwdaLDWa9r","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XVCun9zfGe1DtP1X6vVzF","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Vp6TAJGJ3nP7mgGXaMPX","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uWdCbCmds8M-KdfBRwWYs","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZnKkARzgtGKCvtry8DTHF","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"n1iZ8GeYWQDtYAkjcuYe-","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X5Ojv2HL0a7H_nTIkupVR","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m3VMFH4Da1HkGhFITFTPQ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ajB0qo1zln5-xpmF9eOW6","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q34s7RHxFHFYoJF4gF25n","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pbFjWlCRoao3t9xvjC7K5","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hmUa4d49avQMWgWy6Guv8","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8s0hPDbxy8drhDqmIa-1U","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"HVn00vjIUgzMbE7b4c7nY","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"IBOmzPD1TkQoQBT5gqpe4","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DDBk2g9YuM0MvfSvBOkBL","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kbgoCyfv4zMzq6CUcjRm3","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aHDkMaWbdrYDGbmt_pFcG","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eus3uZCDl1JZMSlayYzAt","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OcEUhVnOM6mCuvmxPHnei","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"59uWRVb_-TVgwAyCoGq_n","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BcJnl51bjMyqQ5kf58DIh","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AFBf0EFvvnp9lqEXRmX7m","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0FbYxI6Oo5lfzYY2x-ETY","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fJMdy2gu_jFAdB5vE_pA3","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YiO2Q3KBxXCJbwNSr_zsC","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1MtxVMCmfQezlA_SppfNU","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ArXWxiOsyuGn_blM0tMTU","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oYA9cVh7-GrHuJCM1M1Yb","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2qoAMJTV21tRVd-CGGnVs","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9G1WnQMQQ2Gdf5oowj9G7","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g9-EJG7Rd41yoylTaDG38","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this color layer (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qiK8sEMuWXvXnRHLQ9g2u","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"hJatcDRAuQ8O6SM03iEUH","name":"Compositor","brief":"","type":"ClassDoc","description":"

              A base Compositor object.

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"J4i52rNUzzOasXIeTdgUt","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              an array of vertex attribute properties

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z5mb_8Q9vxxU8YwHmrQuw","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the shader currently used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AAv2h_Q1ZJzBGlU0OVGIb","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the default shader created by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kqktZ06R-Wg5OH184Enrp","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

              primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oTYOjf6iO3ki5VoUqsRqQ","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LQ-YIW7KBFXTll0XNP7pi","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              the vertex data buffer used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bHFV6Ja3rRkhZSauepsSn","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vclb3OhG0LqwkLdYkPYxP","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

              add vertex attribute property definition to the compositor

              ","params":[{"identifier":"name","optional":false,"description":"

              name of the attribute in the vertex shader

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

              number of components per vertex attribute. Must be 1, 2, 3, or 4.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

              data type of each component in the array

              ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

              whether integer data values should be normalized into a certain range when being cast to a float

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

              offset in bytes of the first component in the vertex attribute array

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pYFphnvlnk0hvrkVdscie","name":"bind","brief":"

              called by the WebGL renderer when a compositor become the current one

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DsvusFUckgbuKq5NDQvkl","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"renderer","optional":false,"description":"

              the current WebGL renderer session

              ","dataType":{"tokens":[{"value":"WebGLRenderer","kind":"canonical"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              additional settings to initialize this compositors

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.attribute","description":"

              an array of attributes definition

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.name","description":"

              name of the attribute in the vertex shader

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.attribute.size","description":"

              number of components per vertex attribute. Must be 1, 2, 3, or 4.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.type","description":"

              data type of each component in the array

              ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.normalized","description":"

              whether integer data values should be normalized into a certain range when being cast to a float

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.attribute.offset","description":"

              offset in bytes of the first component in the vertex attribute array

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shader","description":"

              an array of attributes definition

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.shader.vertex","description":"

              a string containing the GLSL source code to set

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.shader.fragment","description":"

              a string containing the GLSL source code to set

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"i2Rcw5kOix9gy7kJwNZVN","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

              Flush batched vertex data to the GPU

              ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

              the GL drawing mode

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"652HEZlxVQ0nAuvN86ZiY","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

              set/change the current projection matrix

              ","params":[{"identifier":"matrix","optional":false,"description":"

              the new projection matrix

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CU2rd2YhyYjwvhyC0YlIM","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

              Select the shader to use for compositing

              ","params":[{"identifier":"shader","optional":false,"description":"

              a reference to a GLShader instance

              ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"vwLHUmSScElo3ponMBifU","name":"Container","brief":"","type":"ClassDoc","description":"

              Container represents a collection of child objects

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"EXPbzCiDBNf4B0g22w-y7","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fm8cCOmZ8GJI3oLVYZi4w","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wfIewyND3xNvjQ1nUaUdP","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MxSdGoamJU5fR1wnV4Hes","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Au6cvn2WHlIPTUdEqnMz","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children z index should automatically be managed by the parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YrmX42dwPa1MiH5FEGtzG","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children list should be automatically sorted when adding a new child

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bM8p0YmrLi--sQT-Km6_9","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZPwfaiPlhq24_kVsCZef4","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a background color for this container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"peJzFMxEztXBDYJtncuMa","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GjdX8QxeZYOTg15ox0nEk","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hqNX72UdEVxskBDddUe6O","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RiD3pxotTGsLKvr9UvU4U","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QeGihXyf2S41uoHRg7HQu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2lBpBl8BfrVkJI_RMKhsE","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container draw operation should clip his children to its own bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8x9ONJWtG-AsDsiJLQUTR","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m-OO_okelUOe7g7dA80_e","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G012nZK1fGT-i0EbsVVzS","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bOq7sopsYhL-w0gtFQXWt","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MsscYPyVqKXFBS9umvy5v","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zRK7PaD3N6IfiYR6Gsvv-","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AO055DeaX6ker4cSwOiwK","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6QHbtZDE1mziag108ZDQg","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pDKE26H2oiMRdJnG5poov","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o2f_mvzVRK7MDoBj6ERDz","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kF307VOlbc041qTyAoo9p","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6TSLBFpMVOzdy5uZoxRgY","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OfpJ2g2X8nKFQtzQhsawX","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lkmBMAVsLKFcGMmvXvh5w","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xFWZ-fcuFnsL12nrxCV5o","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tR1I3HyBXjWvXZN3fe2ml","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n1dTW5vRPVS5syGpf4s5I","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P_5iQQhBPTjyhU6gt-WLz","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5Z8GPkTJ7FZJXZk8F3hfE","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7tfyHE3HnC-GImHtEMxmo","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUtCFMgDuYFI-gl6WE-nU","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-l2BYSn9BVn0vnMD1aFgU","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              whether the container is the root of the scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fxNwfpJn60deF60Qz3oq9","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WUC4qtAkymlDY59ntDXap","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GXRly7nz6eSNjboskNo4a","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"INtzbH70w93Oitji6b1yr","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1JQM-CsYQteDiSF4ZB21U","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dh-ejDcpK91hXj19UbJJg","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r98rEck2H2OoGtswanuEm","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0_VmZSFUFZc5CMNWxlfia","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container
              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

              forces the z index of the child to the specified value

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KCZA6txSGL2uJNQ3ufm3Y","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container at the specified index
              \n(the list won't be sorted after insertion)

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

              The index at which to insert the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qnVIMJeJfzOrmQrdxst5n","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fMNrRMPkSC1IXAGoml2od","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7TnmlnOqJL8mxLv4Ih50X","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-ImjySwpezmJdkWvRK4kP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

              position of the container (accessible via the inherited pos.x property)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

              position of the container (accessible via the inherited pos.y property)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

              width of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

              height of the container

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"e_jYR1SA-Ylrjp-97CB5I","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MC5I_hHNMATQRinyYo64Y","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0aCD60QU_q-yb55LXvGPN","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XBqARHLY_boxcinUL18Bi","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_ZLeLXyFBor9I3B_gUNLu","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hPwSbkd9T3SrVxZ8TaFhH","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z92yKymuifAEzR-IUrm_v","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

              The forEach() method executes a provided function once per child element.
              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

              fnction to execute on each element

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

              value to use as this(i.e reference Object) when executing callback.

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"qHzt1hiyd_5lKTT1o8YYS","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oXQP6TxcbIvEoZ1QCWPCs","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nhkA9HBNFKpTTxk2L0Nxp","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the Child at the specified index

              ","params":[{"identifier":"index","optional":false,"description":"

              The index of the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the child at the specified index

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1KQa74uNClYYjpTUH4QoT","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the specified GUID
              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

              child GUID

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              corresponding child or null

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gCh4AW06JzMijNnumJvI_","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified name
              \nas defined in Tiled (Name field of the Object Properties)
              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

              child name

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"3AZPezxKbVl9GPJ2MMUh1","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the given property and value.
              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

              Property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              Value of the property

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of childs

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"N2Z4CcT_6mXAe9aaWROig","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified class type

              ","params":[{"identifier":"classType","optional":false,"description":"

              Class type

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"iNuPNXlRVToeYyOCtaqf5","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the index of the given Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QbOE5pjJdS7TS3v_PlHE_","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              return all child in this container

              ","params":[],"returns":[{"description":"

              an array of renderable object

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"8jZRM9nDKrQyCaUiBHF5F","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"aac4vg9cWvFZFepJU2WlH","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the next child within the container or undefined if none

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v-X6mDLKg7WaSIVyk2s_w","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yJF3Y3SSwCz4bETsvDvjw","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the instance of the root container (i.e. the current application World container).

              ","params":[],"returns":[{"description":"

              root container

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZRIpqmeXUHiBq62DR-1gn","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if contains the specified Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"c3Ck84_0H4KIJJLj_F9S-","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

              Checks if this container is root or if it's attached to the root container.

              ","params":[],"returns":[{"description":"

              true if this container is root or if it's attached to the root container

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XUqt-2BgAhd1qluQ11bf5","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8VekX3I03WPUVrCCABrZf","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hZobPwL2rKxquDKfgvzcM","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8PYFMShBLvJ8fErh73KW4","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step backward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"XfKrYaNRVFNwNL7GHBx5w","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child the bottom (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"5ylfw9sRsf7w0DV-QXAiQ","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child to the top(z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"H5pUH0DH_U-4lQDID-bod","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step forward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"xC-Tc_tBeRG9DYshklnFb","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

              a callback to be extended, triggered after a child has been added or removed

              ","params":[{"identifier":"index","optional":false,"description":"

              added or removed child index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JdXZCNgxTDHothzCoYzke","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oTKVn0roQwarwju-0HpQi","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y1ZW9cknmRCd8Knw-l4rg","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EAz2ueZFA2Uf8ZlIv15k3","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Hq97_LnzWhfCj6aPom4lS","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"fRlNRvgro9v6kfoXNEhIS","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y-SN4PQ2noeZQmi6LInLT","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

              true to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z2EAz5hqveWv2skFxiEPA","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

              Removes (and optionally destroys) a child from the container.
              \n(removal is immediate and unconditional)
              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

              True to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"cYPEqZUPxPIWwHnQNZxsz","name":"reset","brief":"

              reset the container, removing all childrens, and reseting transforms.

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m6WJaVZQe0AItYJDEvkRN","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y6UQVavcpcctiSfpDUMX7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IIbMHfzMzKDzUvTkmSRLD","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3MXvFW1T8CwAwSTJviXq1","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gftY1ckgloIXBuBe-Mxv2","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

              Automatically set the specified property of all childs to the given value

              ","params":[{"identifier":"prop","optional":false,"description":"

              property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              property value

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively apply the value to child containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"XUqxNY9ibVpS8MGKZFd0g","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ltTRgGAdrpMPeG1Ecc5s-","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XWVmv0DmyRDa07NmDc239","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9-ZYQZ_K0HTQ2ujTXku3C","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fO6qgbIe-BxUgvE8uDqE0","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

              Manually trigger the sort of all the childs in the container

              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively sort all containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ya8wtW9pjyB0B9kPxjkd-","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              Swaps the position (z-index) of 2 children

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"cTllczVu8wa0m_2iLp3nK","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CUo3Tk27sASfuMJor9DRK","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jwsGDq5_nwMArYJDsZh9y","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HpEfz4faAeIXcPwk28ww4","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iniSBekYn_CRQTABbrxSV","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t4-u8vAC_YxQdlvcKMi60","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LGyMB1Zz2YKMFwVkURX_0","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this container.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this container bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h2nMFNfu4tQcgF_OqABZY","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this renderable (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-_okUX3Kbo5v3742wxxiT","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              container update function.
              \nautomatically called by the application update loop {@link Application}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Container is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mxuGVyvlJ6DzzcPbeqTQC","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"oFQP_CYMs9P7AU5YbvNRb","name":"Detector","brief":"

              the Detector class contains methods for detecting collisions between bodies using a broadphase algorithm.

              ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Hz_MUwj3vrkp15_cidlTp","name":"response","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the default response object used for collisions\n(will be automatically populated by the collides functions)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2skGgUdzcoATDLVdfVJIO","name":"collides","brief":"","scope":"instance","type":"MethodDoc","description":"

              detect collision between two bodies.

              ","params":[{"identifier":"bodyA","optional":false,"description":"

              a reference to body A.

              ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}},{"identifier":"bodyB","optional":false,"description":"

              a reference to body B.

              ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if colliding

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"s3EAsmF_ex9wXR6_BLCX6","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

              the physic world this detector is bind to

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9G-mzBtZSEMSOSm35gFXh","name":"shouldCollide","brief":"","scope":"instance","type":"MethodDoc","description":"

              determine if two objects should collide (based on both respective objects body collision mask and type).
              \nyou can redef...","params":[{"identifier":"a","optional":false,"description":"

              a reference to the object A.

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"b","optional":false,"description":"

              a reference to the object B.

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if they should collide, false otherwise

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"bA8ldoOfPoQiDfwf5Fkle","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

              A Draggable base object

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"SxwqXUbIlYIMkRD0eejFL","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CeasAfwyifGdiIdLO4fr6","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BqZL-2PVNLiGb6iLv0RQt","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xqLivTofsnlNlvoM1EZ2A","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v43XPbrtBUTS9dnOFxXPT","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"suI5er3jTCEZiDnk28Kto","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"syJjhjltlvlFEy779SHbl","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a4a98rs3gKE8KRKIiazDC","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T4IDkEeL9b9sSUEJs-D-k","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ecgr2b-xhBi9HijTQ17Ra","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L8PHb-XudWVMUjj43_GQV","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0JfZznVbxi79DsPbo46kx","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XCbwRfVDK3S72o4dyRzLi","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NpvyMqHqiIfqrqGdjaBp2","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E8oT3Mz-pTriyI41yNKzV","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HH5djjILfKucf5G5pBuA1","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4tWCD56xbR6wPcJp196it","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PGiijjZOAjM0wV01ARF9W","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LD89-y-Gu_juHkD0cJWBC","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k0IefSzxaECcVCYhoN5kj","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"apV1vRdv2UFFJAEtVnv9L","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bCdAw9zx0CGvCb6zLH9_U","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2I4THP_CJa93c-UoxmAHP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GPqjCGUkJuYjPHKMZfVWR","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LYQYR37PzQdtE5F4pKM_6","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wLG2rZxZ1eUplN25PUkqT","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7CsWLrqmID5qpXkTr9af9","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qrIJN8qZ69JO_aLBIKcLJ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wHPtA7zffr6OMWtp_r6Tp","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LSqIb7KGu8MUGAfR631of","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r4rx867DuGmVMvFC5WO5c","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z8bHUPieO-D5buMA7g7L_","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8LUGJ9fKkMYODfVv5W-a1","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4xm9fmayeSyPyDk5Hqlvk","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oe5bpGDNYbyqiXZKnFMc7","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-cWMczmEg2VhT-aXVIseo","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U0P_aXpIMA-LrmX_triPa","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mRfo9PKRlq0oqTtvWFahb","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XKBSWNrjhcJSG2mP-wrNX","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"txccEoOIVMB5Fue2-zEg8","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              draggable object width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              draggable object height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3knRhmODygbgjtsKsdJzd","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cl5lvVwXXnxUlTXqTwkCp","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Any22Yp9iUVAowicvKSmR","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7dZJU_NJ_2gb2eMkehguZ","name":"dragEnd","brief":"","scope":"instance","type":"MethodDoc","description":"

              Gets called when the user stops dragging the entity

              ","params":[],"returns":[{"description":"

              false if the object stopped being dragged

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"idyjfFqsRbjLsTuPw89j8","name":"dragMove","brief":"","scope":"instance","type":"MethodDoc","description":"

              Gets called when the user drags this entity around

              ","params":[{"identifier":"e","optional":false,"description":"

              the pointer event

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"TkBG1Y2aBWqsTMfbB0vYE","name":"dragStart","brief":"","scope":"instance","type":"MethodDoc","description":"

              Gets called when the user starts dragging the entity

              ","params":[{"identifier":"e","optional":false,"description":"

              the pointer event

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              false if the object is being dragged

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rrJpb8igVj9lZd__Q_0IN","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QUaw67mWuFv0QMJWEdDxb","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3H87g8tCUKbaGzynkunlT","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w9PTcDMkCQrS_IDxfv6NT","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3TM6fjKQTTKc-PP4W0-ok","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uRheHu6CLZphOcYf9xewx","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QstiWlg2yRLf3wn0wkdbK","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"sfpaeqttr-SOJa-YilF2E","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CqRtljue0GqXmVX4c0RBP","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DEMQle1_sKaupMn-0YUKH","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LzxF_e9jfm_BXU7IVJ-un","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DiWjWIYC_hGCZ0eCkRL3J","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uqrPHxyHzX3a2Zg0g5nzb","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MmpivtuFL9zDcMrVvfXFI","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-0QL4InkYCIUN1ltQhjpr","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"kVXZ6lRyFMTuxTdQU3seB","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"qv6k7xQSdLiLidzBXyChr","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"449UryoICILII4uaJStW2","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jaUKVrLB61HAAplWSJJVH","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"it0PHFQawr59wRE9uON3c","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I1NqhF-lfvcxIzrtzCxZC","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tYqCz9VBJJKwOLC92EamO","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c8RwR1MwkA1JKUZTcdJQ0","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XSqZvC0ciSYFto1X5BnYR","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mk1KvKOWkcgme7RG6FL0c","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QjyRyyNV6j6F6Z96rLPVI","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cldaTGP_-Hl3acGGE96tc","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B5b7oq4UFJWwb8Yco2yYy","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"haodzdGwHqsQ_8TGlAcAk","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_-9XEy6dgk2H5evfOuwTQ","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IAbzZw8i0hYBWCyyHd0G5","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mnal1vMJH0aS60AgwxBeH","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KNdMyzbBkEA5uc5Y_Q_Up","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vwxIhJdDS7ZvsvYMUj3ln","name":"initEvents","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              Initializes the events the modules needs to listen to\nIt translates the pointer events to me.events\nin order to make them ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oH1wDoV5NiCITNPKqubdE","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"SDhQJbThxtO8LJG1JlJDI","name":"DraggableEntity","brief":"","deprecated":"since 10.5.0","see":["Draggable"],"type":"ClassDoc","description":"

              Used to make a game entity draggable

              ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"mdB6ufznpDRW8l1IyRpCX","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              dead/living state of the entity
              \ndefault value : true

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9lCRXWy7Pd7IqPv_j3YIg","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yix70qbXDIfYsbb9IryVP","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DOJxhrRfpcG98ZLNK13iz","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ySNa00swetKsfh8vrXXSs","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iOcTPHt8fCFAjFJ5O4UAl","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZgtMY1WDyQmJBYPNgJFu5","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e9DLdu5EfCiYe2isnCxPR","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the entity body object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EmbxyDG_zpJifkR5CXjND","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zgoqzpko80cXDdlsCF-aX","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vipUF23Z0tPGOWqFJUQB6","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrXO0r6wJjhGdcG3322Cp","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f1DloVbqko-Nh9_Ws5lZh","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Iv1s6Pc_Lq2YH1E-fXJU2","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zjdMGYXgsLbyfK61loHRu","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0TEMLl_7GRp-Ugra3Xr8B","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hfIOEcKmouh9P9GELyqqZ","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object unique ID (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xq88Zvq2IjcEfR3thGsIZ","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_tYgWH_7k_Ox35x1M2TTu","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UJ-awgzLml5nYLomja-qd","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rdc8Xzg2chq__hWHd4Dff","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g-PTPl3i-vxntmTbfU0V4","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vh8LDVGLSb-nwClt96Xnt","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6lor4IEzB0LbNQ6L9_vn6","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fzhg--8-C-lyMxZjEk_wE","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t8cqIQ1M-i1K0Zd2XMhvC","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fDEdbM0ew-5OpvN10h_Ta","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0cx0siLO6A336EnOwiVDl","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jEft9g8yJi1bPEDhOK6Jn","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qLlgeImhGmF1qgBE3QAdy","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3uM9mr9Zzr3Z-T-kD2Bym","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L4VuHdZ1iGkEskV1ig20P","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SQCOvqO8EtfXS5wXyfsu1","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cixg7SXKnSu71QOHZBaKN","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F8vQm0KmWVqNLXOH9iouk","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J-Ln9i3yZX7EmtwFDwoV7","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QQG3aguSk5of6IUnde6m8","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object type (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nCfMJ-kRVyVb3TFnXgTup","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pmt8ygmVkl2KxpkKINlyR","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NWZMgi11Rx2JbydzRMVCm","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8KT8DODkn7THxEAIqOtAP","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_Pvu7CqdIldEgKxCWZuEm","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7QB3cmiXh3Lw4sDU7TSyl","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              Entity properties (see {@link Entity})

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"MQ9OI9Rzk-2I-TxqizdNx","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SYqaggdBCTAtsd-CCIlEU","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"70crBWDVIgmjNkJze6HeG","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lE3zm6afRbDCJ9QFge9Ig","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Mre6es4eBlkdcTqwQ3Tzh","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VoiT9_gSK76DCUTMtfUdK","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rF9Jojr3uNgtiRfUt81is","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7imJF3GNyYGqVhV_asGq9","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QYtID1jHIZ1VZnXhqTGAk","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"NivBwP9bSXqYG-QT1xElo","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ty-a_YluBZFmimBN6rVxw","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hmMtbJ1ofNHpYyKG65OTR","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_GZh3wveUMahecA0CFeeb","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r0Xq43EDYz8pCto2cI7KW","name":"onBodyUpdate","brief":"

              update the bounds when the body is modified

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"myidB1NqYjDntQA_Zhrvx","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aG71j8lrz39HAPRBij1hc","name":"onDeactivateEvent","brief":"

              onDeactivateEvent Notification function

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5KZ-hgYKv4nBxqk_tCLZ6","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y9SUnyUcGgNIQdpefwpTG","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RKXYnESqS2E3SLTcc0rcS","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"53Kc7BxCM_vNkmfVNugAN","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"xYXjuR1QrSuign6mXnEGe","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"USJdSXKwNIRTHP_82ysFH","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"17YlboibWXkHNy3WhaZKv","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KLb1-ZdYJeMXRaN6EgWm5","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aLU6r7G6rYv6nO18Grz0K","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n3-Iv1GKNGWchRRf8Howu","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IzHhO9-eUf_dCCuzVs2eX","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hvBBrCOGVBLawu3g_U5OW","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6X_7ckua85tm3s38Y8OrC","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eUOb1uaY9-Lgg7UJsgkRu","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"apvpgUyxE1_Vq-sEfYTew","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VR9h38z9SgQ0nqF65uO9n","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yPaYIZXo2TFh14RW4GN1r","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VYzh4O9yEYI48VYyE4qo6","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bFm6OSPYy8zX4Q7kLu4_A","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TRSRZwXzC8VW18cEXsPjO","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ho0DnTNumgV7CX-lcrbQg","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this entity.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this entity bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8bhBJwgIZdTYO8-c_681Z","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this entity (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BRCCsr5EadZexcdYnwtfk","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"hi9QixiH3pSEW8eVBPwrW","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

              a base drop target object

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"o3uL8GnLfJy5-DnpPrXEx","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yTTOrocrE3CBi5M8MOeun","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TuKNpvRVlfj7_ajEm3l5Z","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_W7gywC6C22P2CuKv1lo-","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j5Bkty1tg6PetJ4217dqr","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i9eTyYZQGZdhrXK-eZse1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5dEK5aQ7vHfWokrLeuok7","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Iyv22UA887pMKVdrKe6gD","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dc5xDO_HWg5Kf9uK7yY-C","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ilDRCcqD9tXTF5SIOHTja","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HWBRU2OFRVwSxfvvzVSCR","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

              the checkmethod we want to use

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MJLBfKlqq1wn3uw43Y1H6","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

              constant for the contains method

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b8Oh6C5ZGKJEhsIgD5vPs","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

              constant for the overlaps method

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"myGSQycs9WP0TUFcOWOQR","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3XjKpDpnvqE8QuAWloA26","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8hWncvEqQ6OvzbsAODtou","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XSgi5oNARBgpN_xST3jLO","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NSpDBilaP_H679uWs97by","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dx0nkRck298ac669XqUBZ","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ko7p-D3cCS72LgeUv53q7","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Jx5D-sSUmoaqdfGf5msF","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EHiw5MQWL_rOMXyT5sHgG","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uwostR62geK7XLTdylpMF","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Te3ggaeuKHAvDKgoS6iyt","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F8JSbkKDWThLorsLTKkRs","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uvb0m7gHuLoHTLIsKTpVs","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fuuJZqy7K706aknTSZUKN","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DZUecSsL1QFXlOdLfN57C","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pJ-PFIvBDAmt2bdIQupnw","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WXLGVc7aYqYfuuZlBiSEI","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IJ1Ms6Oc4NOpLeexKXjb7","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J7YjY-vom9WVEYf29Y7PC","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Zt0r-q7CC1nhAw0AKNsF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1iGwKWd0yBM0sAQeR0p34","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uT_Dz-axmjTlEeMjNc91j","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M5Bu-8TZOENTo-ZK__dZz","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f4KvuautL4GrXBSjT980v","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ITNgNzU5xsaHamrvwW3CP","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Ey3HdRcj6z2rMHPRlrHc","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iDkN-TjXll9Th9OB0EpaY","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t7EHN-lfFjzl113RuiW8K","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xLcC7yzHaE-jNRR_2a5KK","name":"checkOnMe","brief":"","scope":"instance","type":"MethodDoc","description":"

              Checks if a dropped entity is dropped on the current entity

              ","params":[{"identifier":"e","optional":false,"description":"

              the triggering event

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"draggable","optional":false,"description":"

              the draggable object that is dropped

              ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UpkonBgNBYq3wW-duLGGV","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aqN7gkOHxinOKt_I6jbOO","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the drop target

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the drop target

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              drop target width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              drop target height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PMeP4h28aatlw1V5KicaT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Xlin4ybOGG8A8BjcbnHSm","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rGG1oNfqUwchoblfC5FuY","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nIK-DZKKoOP8RY5X8fHTf","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1UHdv-UHll8HKxUlPdjq7","name":"drop","brief":"","scope":"instance","type":"MethodDoc","description":"

              Gets called when a draggable entity is dropped on the current entity

              ","params":[{"identifier":"draggable","optional":false,"description":"

              the draggable object that is dropped

              ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EK9279lXvrWRu3wAeRDiX","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Bluf-0ZxJpfWZLb2i4Pg5","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TctdJmC9lCWoH5Z5u6KIp","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yzm_9FQ2CHJ7CxAF7YvC_","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XEgDgOwM1hvLVRyUpNezr","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6kLuDagu1kFJ56C9tSxgZ","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"61Od_Vru1k1wCHP5cuCVa","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-w80oIDdV15qdcCIA9127","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kFE3GHY9jjYIkXgsySpEr","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a1YwvaueAmbawNE5abKJA","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sVkGMXI4wv9P5j_uTPdmJ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2B5iRZC46Vm1dNx8mcfuV","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tYNZKpAsPXZUC1EwINXai","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8j4raJFiD2ZbuDki5pxiN","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"MWLAX1s9iBBmL3htgQusO","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_l6KcnqCEdl7oObvIFoDE","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TAbk4r_bW1dpHwjboKKCb","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vOjQmEQrTmhj9tgOcBLl1","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3mJJ7v-EWVBZGzru9nY-x","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vaRmkmM321jj1R7n2am0O","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2meJgCynU95aICgv77k23","name":"setCheckMethod","brief":"","scope":"instance","type":"MethodDoc","description":"

              Sets the collision method which is going to be used to check a valid drop

              ","params":[{"identifier":"checkMethod","optional":false,"description":"

              the checkmethod (defaults to CHECKMETHOD_OVERLAP)

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"Hbh9jMRla75Q3xYseXDHD","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"D5xmwPP14Ih9DrBxOfDRF","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a0-y63MesnGytJqrMLp9f","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-S6ITj679OXWm5mbm6Y2-","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tTtfYxS-eUNyAl9L-CC8-","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y9bLS5Atyz3V7ceBv4juN","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h9V5NdSI8V3tBRRArQeD9","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ovuODMvtoUajFzVKMfjB3","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YtJBNn-uV-yoGq0aGxvTX","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BJoLiLVUIqn4rCKI8Z0pA","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bjA0gwT_BWP-8_pv1W-VQ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9iniY2wybis9Lhly0P4yu","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8eZ6I1wy6FMSpEpSsA7BP","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"CPa5gdxIoe_DR7sG6pvCt","name":"DroptargetEntity","brief":"","deprecated":"since 10.5.0","see":["DropTarget"],"type":"ClassDoc","description":"

              Used to make a game entity a droptarget

              ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"GTnl6RxxnqrsJ-6-tad0w","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              dead/living state of the entity
              \ndefault value : true

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5hEvm3xVc_YNfHounqQOy","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"65V5xwXi6iHhM7-Tq-zKm","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jz1i_Gbn9BF5PO2MiosI8","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u2d7eu6u5DxovRmSKOX1H","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GLc_qJ5q5FQAaKV2mJd30","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lbLKBRIPLAsdHokhmZP-T","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KLCHy0hAMZMmybi2JK7ZM","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the entity body object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"naJWZ8d-s_VaGVwdv7Mcv","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fFiAK9zS5pPllpckLQ7fM","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5bSJ68ZVBd7vJAEzbARAB","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lk4g6fDssl0HAH80khojW","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4sMRh4eKElTQ3sSij7-bf","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9cY9qMMU35aD5t0oBPnsz","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QhfmPgaVS5alyl6lEqmCy","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P6UrJslt1FLiog4d8FpX0","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FoQMmbRvxc3NUQK515vS8","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object unique ID (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GAaBsVYnXlxXFQBxjh8H0","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oiY5FheCl2CD7d9VHvxyF","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sg2Ned_KceAW9HPvAeg6p","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RvO7qNwXl0GSubLZmLpiX","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uGnBFEw-GUSrQnfs4CrNe","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_5r7gerbfE7mIUNSdTiKt","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7RYjbGCKkiLgMWIVGakCT","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5jkHL-BviKBYM7aivEjY2","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVPIkYMG3xq-XL41Js4js","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lHoaL_6Urqnw-ZxRzAh32","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FhHU30Qr08y9y_WjnNzcJ","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zWDZXYRMo9WrjS0F1ymIM","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5aCQWH3jUI8RlbU54Um2G","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o8eY8vb2bJabH8tUEWZIb","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k6rgktfm569q3IWTYZBmq","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xabB6dNMLjZk9CypKJq9q","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rdFo2DzeSiw_KzwTjzqdV","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6ZsGLrM8z1PWZLWjRlZfy","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygP4CQARzxpnCnEkwX_cn","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vEpTIsYkQYhlGNO2AgJJX","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object type (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NDcSC25f9FQF4FasuRYHz","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RR7-ee1sW_bI1eCN8qVdA","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5I4NbtzlZiLC7lTFundnr","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U3yQfWhA_AipkY4ZlZCCo","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3McBHiw4WnIF55-iON2bC","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z4UBoBq57ZEK0OpYqW1P9","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the draggable object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              Entity properties (see {@link Entity})

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Fkx0irwora64Ly3q73zKH","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GXGIdvQdzg_X0mdhz1_Ac","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wxu-h0UJGs3qOwj0a3o3S","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gqRD26YQjpXftFrFfGgDh","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Mf3QSHecf84MZe87x8a80","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WVGwY0RCkn1eRfKujbIpT","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-qdir_makEe_UF55BYOLR","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r04L7Qh_7LHnVF0HjblEB","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q48rTvFsplUgTOgakjXA7","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-IQNZ_yEZ6wB9TQfA85Zq","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"87lB9VnKhKoLLT1bNYX8c","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WVIVOniGQLCOdOkYRLMIq","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xAWVxcvWLew6OoYcJxQUU","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xn816POPwpdeEnujQByfb","name":"onBodyUpdate","brief":"

              update the bounds when the body is modified

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rjYlJSmnfRmiWvWtpXfwr","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qfUUeWT6PHBiMT4IwMp3-","name":"onDeactivateEvent","brief":"

              onDeactivateEvent Notification function

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nT0uuE24VrQ-VL3AJQ7Cm","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V1vWrlL6YFnEu2__tCFvE","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JmOcl_EKplJw0N-rT5Z5B","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"VBKACLW-j49zSS1y8ZDOz","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"MNhCkMnYb9wOBFx5A_IGw","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9NB9ds8QUqM5m_qy7L3Mj","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CBtE5nR56IDt0S019O3RT","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ByOJ4kHyuQbLvc5p80Ucl","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cyTQ9r43YoaV6pqkPYJeU","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jtusb6IqkXNLdkcd7exNI","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"INLqwWuOq1flSpvhBIaMk","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ERgozvL58U3QLeulDoKdL","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yTwiChlYNbXf3G0y6gK0w","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rpe12Fg8dSc8RFROMCL1T","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UQb9OWxMibsQgV6rfJk38","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YVlahvi_z1v5lgaDCOQUg","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R5dHz0ML7DwcyAOOc0z-s","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZiOdNBgVydlZC3xrJms0P","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nA1-1X7z-97ySH6ick5ZN","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z3daXESMAy2oO9XvN2Bt4","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yGqxlXg-M6NvcR2zAjUtR","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this entity.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this entity bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k70qgLhxqS__BM9V5KGBM","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this entity (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BCTuyIOag4nX0NTgD_MkE","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"CpsjNVYmVOxTc2FkhsC-L","name":"Ellipse","brief":"","type":"ClassDoc","description":"

              an ellipse Object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ZwZFXDcHtgu5r9nHvhU46","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              the center coordinates of the ellipse

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uUH7HyYRNt1e8fytN_gZx","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Maximum radius of the ellipse

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KXbecORAo5nVUafmY7llm","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Radius squared, for pythagorean theorom

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCndNnR37g7LVD_tPQmB4","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Pre-scaled radius vector for ellipse

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o9F61bdXXAzEXlL571LLX","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              x/y scaling ratio for ellipse

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"isCCC8LsAPR6HpRDk5BUW","name":"type","brief":"","defaultValue":"\"Ellipse\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KG0Sd5c5IjSt4SP76xHjX","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

              The bounding rectangle for this shape

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S3oAyknOw2D0vj3-8_ifI","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this Ellipse

              ","params":[],"returns":[{"description":"

              new Ellipse

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4Xd2mqjcjGzYU6Z_HOmXe","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the center x coordinate of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the center y coordinate of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width (diameter) of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              height (diameter) of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2dswzVEK6wILHN8aFis4N","name":"contains","brief":"","examples":[{"caption":"","code":"if (circle.contains(10, 10)) {\n // do something\n}\n// or\nif (circle.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              check if this circle/ellipse contains the specified point

              ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if contains

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VB3k8UdBSX6_7m8GY4NCn","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GrIUZc4pLYL9CQOoLaw9b","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this Ellipse (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sk5l0-LfDMbcKH2b-jPrm","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Ellipse by the specified scalar.

              ","params":[{"identifier":"x","optional":false,"description":"

              the scale factor along the x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              the scale factor along the y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L5rNmbx960rt87KxDqjvL","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Ellipse by the specified vector.

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V8v83s6NmPjsn3mnzTo-U","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the Ellipse shape

              ","params":[{"identifier":"x","optional":false,"description":"

              the center x coordinate of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the center y coordinate of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width (diameter) of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              height (diameter) of the ellipse

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sI0IrE_IfrDInfPolRK5E","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the given transformation matrix to this ellipse

              ","params":[{"identifier":"matrix","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"unrbZp8J0QT0OuZ1HwE1y","name":"translate","brief":"","examples":[{"caption":"","code":"ellipse.translate(10, 10);\n// or\nellipse.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the circle/ellipse by the specified offset

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this ellipse

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ty2ME6lLKBwSKASwyrXk8","name":"Entity","brief":"","type":"ClassDoc","description":"

              a Generic Object Entity

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"Jy_EH7HM6UROfEGsp16fC","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              dead/living state of the entity
              \ndefault value : true

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3v7MVHBB36rMZcYV_vABW","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HV0hM7rtbny17iFzdsbBp","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MN-MTfJgiqhZiCSqo3xoW","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ybUojhbtAy2JVTqdRGFP","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJYklD1bNRCokGFkAek-d","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ubnt2JOsEbUzvheXJtBT3","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iIXaF-oBz2QziwDPdU5aT","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the entity body object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I1F4i9kQoB6AXq1YEUQtf","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QdEC7l4aq8_yJyqqQdOiU","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dr8LaeKYBNHiXBxCvOPKZ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56WR-WeuD4g--iQNuqGvA","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FDgUy1a1gTdPPPRTWOnVR","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DLS-ijWggV0dbNinWO5d4","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zgS9puh4up16cTsS3dRqE","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NS2Up14UjZQk8KYkq_33P","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_o2xeIbV8IZ_1CA7XFl74","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object unique ID (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nq3U25-oLafFffWebeMR5","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SR7I8mq0t9AG982Thn6Xe","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jjLbGJBShfpsP7H-SDmwX","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_GZwfDa5-A4RUxNn2vIuz","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L4WMb2rEYMD7OH-97uWRS","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YKLVd1YzJ3I4xaCOysyGM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FnPmUrJ6LERqpv5bXfjcC","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r_u-JKScW2Wz23mRZ1-Dw","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SVOMke0o8KZ_YYsKKCkWD","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GQYCRZAhtybW8wZB9jnkY","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"udODVBATKqaia5SPf-W0e","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wtvuX742MqOolv8rP9_Sb","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vertOGwcFFP7CkH54OrGC","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V_uxAIgKGlgFLI24uuF45","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"taSfJDPPkMvS5nMy3ySyj","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"22ZFICImomhtqHQT5ZBtM","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hSgVhtAU4wrhwV5J_uCms","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LDOYhla9Hu4kO903ZxYTR","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M5pcJTKhEmrF82w8qsfMR","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n1sdDFs5DXCrJfNubZ0Ae","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

              object type (as defined in Tiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gr5h9cY-cKR2nOAY3DPrb","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aq_saoqnnYYtYjg55TjMA","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-f7X_cK4Ix7QSlPV-A5hw","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L_ymAU6sY1vcXYvmKNA2_","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d2b6cUFi8EJQOXokO_2V6","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rmKfTyTJ_9brn0fl0KEqU","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the entity object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the entity object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              Entity properties, to be defined through Tiled or when calling the entity constructor\nthe physical width the entity takes up in game

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

              the physical height the entity takes up in game

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.name","optional":true,"description":"

              object entity name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.id","optional":true,"description":"

              object unique IDs

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.image","optional":true,"description":"

              resource name of a spritesheet to use for the entity renderable component

              ","dataType":{"tokens":[{"value":"Image | string","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.anchorPoint","optional":true,"default":"0.0","description":"

              Entity anchor point

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.framewidth","optional":true,"default":"settings.width","description":"

              width of a single frame in the given spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"default":"settings.width","description":"

              height of a single frame in the given spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.type","optional":true,"description":"

              object type

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.collisionMask","optional":true,"description":"

              Mask collision detection for this object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

              the initial list of collision shapes (usually populated through Tiled)

              ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}}],"returns":[],"extends":[],"implements":[]},{"id":"05qzy-iBt-mt9RRjfGh_2","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eZP6lsUyT4ihV7iftPPJC","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zYgG7kLYfE-yuz0-KZMDz","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"snhxteOfkj-e35emv04pS","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sr10mhE4OkkR9rgEfI5IW","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E6b7gD8UTdfUq8zsWa0NX","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_fOPu8W7RLJKPE3KxtnX-","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lz5dBb1fX-rWvqTlk6RiA","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A4OFJR0CtXIs2UFgO2S2T","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"F7nfY-rr4p9uNI7f7WihJ","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uDZqB82ncJXNFGghWtr4q","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"K5ZyUVlIFERJC9FpfhHiM","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dGh-v_Q2al-BErNLFP5OI","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uk7pRU7h5o2wZtsZyK7_f","name":"onBodyUpdate","brief":"

              update the bounds when the body is modified

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ZNKRHxBiSnHa6xfCIm6v","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"f5baq5xsQpjPFho9OHDQH","name":"onDeactivateEvent","brief":"

              onDeactivateEvent Notification function

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6fxDVOnbhdC3mkFArO23J","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Smfi9F2kLpL1TJbkmbgwI","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Nz6nOo95Ab_B2tP_3AhOP","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"0DvW1pecFGQh8ChplghY3","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"i-mb6AErrreXumAS41CR0","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C2Rp9RN6zRc_zwqQpHKNx","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-_5_6zT060oACIxxcDG4B","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AK4zMSqMk315JwWs2S-8O","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gvKnNAhmW5ssQ4fUz0Ev-","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IlKXvryXCVRl9154AZl-G","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"bdqhKxfUdh9UBxj8zBKBu","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2hBFaPVdQN-vTqajTBDLD","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZMYYwsiIR_uppB1EJgLUz","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IvkeB6pxuTtmPJVMXIqZ9","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9RXh1EV4PGz9UfVDfm9ZB","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PF_2u0RiHTPAfr4loARmm","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XSQEdP_QcLp7HuazhS1JD","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NehiBVEV8JU9vzdhmjJk_","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EerQqAcp8hlkj7b_nhbcT","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3U3z5EqQzCByBUjkDlYxV","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-j-j_ITgTNJt651_Dj1SW","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this entity.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this entity bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0No4771mWgF-MGHHWxCK4","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this entity (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"F0VVo3yCfyLu-pgQW821A","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"gbabF9QUok2Wfo1EybxDq","name":"GLShader","brief":"","type":"ClassDoc","description":"

              a base GL Shader object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"amZZA1HlqdEnxTYaYVZLg","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the location attributes of the shader

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"njoHBp_b6aLx5Erk3wKS2","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the fragment shader source code

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-uWR9tQqkWfmeWlfRYLj2","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the active gl rendering context

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q9BUN4PMNCiCJtikLcFak","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

              a reference to the shader program (once compiled)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sITGEhvgPDH5oKc2WaLB5","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the uniforms of the shader

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_9ay4AzMqi6iqtki5gW5D","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the vertex shader source code

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0_DFlEdUofFXgb7Lkf8XH","name":"bind","brief":"

              Installs this shader program as part of current rendering state

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sw0fobJOVzs5JP2o9j23v","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a basic shader\nlet myShader = new me.GLShader(\n // WebGL rendering context\n gl,\n // vertex shader\n [\n \"void main() {\",\n \" gl_Position = doMathToMakeClipspaceCoordinates;\",\n \"}\"\n ].join(\"\\n\"),\n // fragment shader\n [\n \"void main() {\",\n \" gl_FragColor = doMathToMakeAColor;\",\n \"}\"\n ].join(\"\\n\")\n )\n// use the shader\nmyShader.bind();"}],"scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_on_the_web/GLSL_Shaders"],"type":"MethodDoc","params":[{"identifier":"gl","optional":false,"description":"

              the current WebGL rendering context

              ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"vertex","optional":false,"description":"

              a string containing the GLSL source code to set

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fragment","optional":false,"description":"

              a string containing the GLSL source code to set

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"precision","optional":true,"default":"auto detected","description":"

              float precision ('lowp', 'mediump' or 'highp').

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"wIeEnJFlv5t-J7wB1D9XR","name":"destroy","brief":"

              destroy this shader objects resources (program, attributes, uniforms)

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5A7JgKHOynvF9lP6fRHJT","name":"getAttribLocation","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the location of an attribute variable in this shader program

              ","params":[{"identifier":"name","optional":false,"description":"

              the name of the attribute variable whose location to get.

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              number indicating the location of the variable name if found. Returns -1 otherwise

              ","dataType":{"tokens":[{"value":"GLint","kind":"canonical"},{"value":"GLint","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XK0jth_DbNN5DMAi-24lt","name":"setUniform","brief":"","examples":[{"caption":"","code":"myShader.setUniform(\"uProjectionMatrix\", this.projectionMatrix);"}],"scope":"instance","type":"MethodDoc","description":"

              Set the uniform to the given value

              ","params":[{"identifier":"name","optional":false,"description":"

              the uniform name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              the value to assign to that uniform

              ","dataType":{"tokens":[{"value":"object | Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"object | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"USCG46ir9rxtpzagZqT8V","name":"setVertexAttributes","brief":"","scope":"instance","type":"MethodDoc","description":"

              activate the given vertex attribute for this shader

              ","params":[{"identifier":"gl","optional":false,"description":"

              the current WebGL rendering context

              ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

              an array of vertex attributes

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"vertexByteSize","optional":false,"description":"

              the size of a single vertex in bytes

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Pt6UnaFd8p_Kn1bOCXaCf","name":"GUI_Object","brief":"","deprecated":"since 14.0.0","see":["UISpriteElement"],"type":"ClassDoc","description":"

              A very basic object to manage GUI elements

              ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"yI9424QlplMTQRvvhucNa","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PtP4KukAsJJlKzSH0nIQu","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RLvbEigkn4kJkj95dvmdn","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_qh5MXmAsNVkMkUZpDpYS","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sC1kJ3SERYHJm3jtEIU4T","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GtOsblaZ7iUIfuIOLvc7f","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCMOBDFXPImV2K6Wlu6_2","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FxxfZhYmXgF_LYES36eFu","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eOdtCFP6caJEM_OCqwcz7","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"51IgtAzMfgaWfJajbIp7W","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z0fDgqyYpiz_VrjL3cXZA","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u5KFKrOc8VxJ7aNjYBtU2","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tZ7v8hbyGYrMwOLJg2CZX","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bE3AAvdowBk8GGllR0Kav","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4u0M-KpDywFlCGcVkwI4-","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lXb3fj8CPKdjgTXgPDrmF","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_WElex1yQA991Win4FBrs","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ug_aqiYLWtQj0IoTbQUhB","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hvsBvvVfEqkz0e2CmBWK5","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Y6OV4s0XXBiL-L6Jy0wr","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LcwvaVENaqJsesuzoYzfc","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kA47h1Xl31kGWXa2ZkgS5","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CSTgDrym3CCdeqaaJusoj","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rkz8t8XnX2oimEpTosj4A","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1BnVAZfjsKvG_X3sWnTrd","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iYL6uqwVSvPqGlAdO7Oe3","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OViTuEsjfzIma9YsyS_Q4","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GajfUQz7eBeLHSwfz0CYc","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cs6UqS0OrqRnv3u3ujel3","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lzOdmNVzoFJmsr3dXD1XH","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5gTayBrcUpJoMiTFZ-t6j","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7QkU0siX3gHuddjQiJFTh","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mhzoj33zz-h3Kf0QM8Uz5","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UPQrnMPTc_MHatx1wuqyB","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p9KczQIfgHfDKam2soaJv","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ub0XIkSi_s56My1xzBoA0","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ECKx0TMx1KbzuGiIXPBuI","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I-KrBcJadz0YruJT6z4ZB","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ifyUiOPVVOabr9JXEmT6T","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BnfHQMtiJrUvW2jafWh5M","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"slU9WkiSwz3EEXTA6Q22V","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HXV2IOf1GK7PubKaeULaH","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IZv7eG7SMj7pRyIWmI5Kw","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kix8z11JROUlwnB-toQw4","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mbCIzcEm8JDv3vXrKeKCk","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L_EuIQ87z9hdDc1RcOExN","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate of the GUI Object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate of the GUI Object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              See {@link Sprite}

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"SBlt4pk38kJYb3OfqFcUf","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2nF3aCWZXHk_6kC9y2-ts","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P27wOrqAoMrUWr0oXOTTF","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tzFbLFF6raGdvTVwUq1Si","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rTTAzDJb8LWXhdLF2pWiN","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h74IaowOeey3fLcvfreGp","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ph1Sg0uLUfKscu9L7kUwy","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4DftTziJvFrrwIRUSgfrL","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LNaTvHxpyrSs0w7fH3czv","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"63Cjn1zUbviZT1j_LJeK3","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A3s7wxx2L8SYmO-19-vKT","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"tnaiN0XJayREN1cyfTxaP","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pqX7S3UYye_73k6SPvQ_T","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iMpbtpUVDCkG47OXVvIOr","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kKPAijo-HGAYcHC3xGZIW","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Wl2s4s2A8J7RgTKdy3iNZ","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"o34ms9PcJYswnrQl0cC72","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7KPsQ2M0_IdK93Rem7IYB","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"K8YYA5esRLb8N3TCxPMBv","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OSpIMuMZZvDrqzfIT5Qf_","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WRP3lrp7b6KazBpPDKels","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Hx6g9Hmy0abejtwPZq4D","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ONgLHgL0-bPufJn6-IDLs","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"LiutTp2Pt7-Cnk9JZ0EAV","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"R-YUztdjjr8lWfjoh4z2M","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Kls3hd1BeiUTX1g88RY4O","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zEA0IQD8YaA1BLl_-i6to","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rQ5Q3gSm8SisCaRy0lnkN","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WWqyqZeeUgUZEfWh2lnsR","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5gztGj7ZgQO6cMBLIiUp2","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fJv6j3M11-Rg04tN2rZWe","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"POOQfoJvlomrDa94qGpNj","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RTvOtNAbrnIsmQa7SQ0c0","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jNE2c91v_dTkygAX1Qu1q","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Tmh2OHxBYh7gYbzuqp_O","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zStITv_moJz148YCJRMha","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0z6IiUDWokHaXzhj8yCLX","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tLJkYf8WFK6H6KsAVn7VJ","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rEV_pufadtaRqExiEPoA1","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oa2mIkBpuRet1JtuFFXdN","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eM2QcZb5plVopSBYpXRns","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Apbn3U-oA5nigTn08A-ge","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LjYd6rj2ubd_Sn59n2XvP","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4Z48ODi7FTblUUVu0syQc","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"klLT35RUEbsUNbsD4KD_h","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this srite (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"48rfwmuJ0ziMwbvUsylMt","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XUhPOjRXXA-rlrxYh_GN0","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Ezomk7uJvsyNc4AIZltGZ","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

              a generic Image Layer Object

              ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"WcO84kG-oZobBFS-p1ykD","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3-9LXqc3tyKwabyCAGzTr","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hnh0JeIx1qTo_EMenAdyF","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Bd1W9t-IJpfywDcqkJw2","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ECdYFyW3sFU4iGF-qjipb","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BPZF3VzrCKBDq_i0SGfRz","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7FxO0YTDXT1rXn6_i6V1g","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i3XhQ__p_sS0knEo7LiXQ","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zeWqpBb8AlsfmT4aH3jz8","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"unGk5x4-2extZAswWMVLr","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ws2VjnqkiEXt4ywjc9R-X","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kKmn8KvE3Or4LmkTDH5lv","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQokEoMh2PuUquooGp7Rf","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i2pyW5mxZgVZYfIqPVxZu","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ijyvpWD5A_5v0SgbDVux","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M616Yt_k3zVdFBvnHVKCa","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H33nvYMtVSyYOkn7UtMUl","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A-w924NxklEOWmUq4k2aY","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Dj9W0RrX_K5xUU4YCw9i","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N0u47bsp3vDls-3YiFNkd","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FYHKep5V7mHrwQ-Evr8Z1","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zl9eNibjt73uOHFhymS_v","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2p7AsKXdjPYkicsqAQmrD","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DAA5U6wKQhZBpqwYT2p48","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ep4ViGydo_diNVlso-xCB","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"afQ16fex5B4agtXveQbG1","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4QxHPHq0A8EL_xNN29-C","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H-tminML4WRbSACtgJ9Mc","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6xQe4iz0qKNW20lXfm5f9","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UgroxMMFD8WiupfmkhIST","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EIOjFBSvskaEe2srvjAz7","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zGfigPnXVn5j3Tym2SHTp","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lZaylSMkV88DSzf7YF_8R","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WG1xOzODeIi0NXNyRovAU","name":"ratio","brief":"","defaultValue":"<1.0,1.0>","scope":"instance","type":"PropertyDoc","description":"

              Define the image scrolling ratio
              \nScrolling speed is defined by multiplying the viewport delta position by the specifie...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3JQoxIs39heqg4uO3RWtS","name":"repeat","brief":"","defaultValue":"'repeat'","scope":"instance","type":"PropertyDoc","description":"

              Define if and how an Image Layer should be repeated.
              \nBy default, an Image Layer is repeated both vertically and horizo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qo8NXGQV5VQmARG-qzDbA","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7YKziKxztkBKRBL35wVj2","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i3YtYg5Jdm7ZZm4JimS-5","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YbtynM3WPg3chBby0E3u3","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jjwisuo7NYctUhyyU8h1S","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bvLY5-R220DfYy2vvEKHK","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rY_W7xNER5W0-1KQZ6ovc","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GnqUCZZA9cuceMJIuXpWi","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dpCNWUM4MvXpO_kf4nQm3","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hIvj7UblvgP4Wj9EJ_Iqu","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X0pNQhZvMqeUyH9JgHosJ","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SiLPCJNRO6oTBaKU5e-mU","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OKlGTUbBgKTgvH462D42F","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a repetitive background pattern on the X axis using the citycloud image asset\nme.game.world.addChild(new me.ImageLayer(0, 0, {\n image:\"citycloud\",\n repeat :\"repeat-x\"\n}), 1);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              x coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              ImageLayer properties

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

              Image reference. See {@link loader.getImage}

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2 | string"}},{"identifier":"settings.name","optional":true,"default":"\"me.ImageLayer\"","description":"

              layer name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.z","optional":true,"default":"0","description":"

              z-index position

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.ratio","optional":true,"default":"1.0","description":"

              Scrolling ratio to be applied. See {@link ImageLayer#ratio}

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"settings.repeat","optional":true,"default":"\"repeat\"","description":"

              define if and how an Image Layer should be repeated. See {@link ImageLayer#repeat}

              ","dataType":{"tokens":[{"value":"\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"no-repeat\"","kind":"canonical"},{"value":"\"repeat\"","kind":"canonical"},{"value":"\"repeat-x\"","kind":"canonical"},{"value":"\"repeat-y\"","kind":"canonical"},{"value":"\"no-repeat\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"settings.anchorPoint","optional":true,"default":"<0.0,0.0>","description":"

              Define how the image is anchored to the viewport bound. By default, its upper-left corner is anchored to the viewport boun...","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"N1eXIXD-RuiCUWEGDQNzy","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NBVLSbiegu8slZfs8sqc1","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PdY_YgaSNBfwYEV-C2G18","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DXEkqrDxwJOe2GtQ4RkzT","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7PT_l0V0rXrLpICiznldX","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zzM3O2I9Vf1IqkZ_bilxh","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GcgoC42rSH-_t-uwG__c_","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DOgWg6eHXt6vXbylt6qlc","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z1ZZn-HBZORATd1W6QfrF","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QEN87L0vvnIToyjLJ7c7H","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dyXYB35PUinC3U7f1jRgA","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"0XqAlC6ipXIynU5jzWY1u","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M6lPh1_gUIApuL5Tz_Mhv","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PaTBKBvNsh2OtxifJibKQ","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-qhjlpCDXC-c6qCUlysDy","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Wk8IyK49GPnCrmkPt2gxN","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Jf6QAUGGmQFGoBCzuLuZX","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D6D7tmoLQcQRmn3HXZ_UA","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Digxof9qy7oINwpXPdSHx","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fDxwR7VO1o1zpBSpwik0G","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nAqU4kUz_-RR64VjvLjXm","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A89w_SjjascwGOtZq377x","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BKPRUpcCzUyi4DxHUYOqf","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"sPUkmkTdZ6b22J1x_I8QK","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"14uSzE5nd2Od3QuTJrlW3","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4wxuq6AUTa_mcd4BgiGXX","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the Image Layer to match the given size

              ","params":[{"identifier":"w","optional":false,"description":"

              new width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IZFSyKB6hiy0kWJKNi_hH","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rAw_UqdaeBpGWTGqKjqwG","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"con2aoqsPXdwWmJ_6uC2c","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xFwxiOqpKgGJJ5Qv4e1Hp","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZvotqzxuPPbyP7lLqXmsr","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wewrkyrQNOwaCUwbKnyYw","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xHndHyUGKFUIoEVvFrTJr","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"07YtrPpUbr-ysPmedahK-","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CdKuPbhHxxC6RwREcPXsc","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E6YLk85gstwDtd-LnRB5K","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zMZGu5Y-cxSyMFW6z6eCK","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DlvtKaG9GKrNWvhmXxLy1","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ijd7jA64iPxq7wKa_jpsl","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kJvotELWyLZR0yVUoY1vR","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"20ECeqH5g_TjMi9iiDU94","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mFdQny9jyr_I03m81i2LI","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7l2ajBcstiYr9mgyljNBo","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oISOyWvKMChpgg2pJ09lY","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LkGd6Mvv5UuFnXxVQc_eG","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this ImageLayer (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jnBCDt29BLiYbTVcGMesx","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"61HNtCTvkq2AthK1eyjtT","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"QeLbHX17YPW-vDGBYU8IA","name":"Light2d","brief":"","see":["stage.lights"],"type":"ClassDoc","description":"

              A 2D point light.\nNote: this is a very experimental and work in progress feature, that provides a simple spot light effect...","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"OMIfLT_v5bshZqXx8S45A","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CF-4m-ilOJdKfTjOtGS_w","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"weyxu19c4Fk9Uow1mTIYL","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dwfLUKSezYLQurXAweCIc","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V5GEoMBQGHLHc8WjDMyuY","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fzg9qsvUedaG9VwQUbr6V","name":"blendMode","brief":"","defaultValue":"\"lighter\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the default blend mode to be applied when rendering this light

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LdyFjG602gwzY4_2y7pUh","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dlF_ZQ-k5Lb6L21_rc89e","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sv5cbVr25wPtjCUIIPQPT","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9S7P7gU-VYZL3YseI_xQK","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zb8tWQ2j8KPwUmIl5CPOh","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

              the color of the light

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6dmEO0B_fXualXlpVZCLc","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iazkl6YbTNXSig2AJsd0_","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fAUAmHwTZRNdG4Qyh94ap","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u_70h54NYv1LXUHP9jNU6","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wVxq-UcV1Zjqqs67SO_hz","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fuuqjG7Sz5jSOZYia1SuO","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

              The intensity of the light

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KxO0M1IsslG6aI6e2_qsA","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7xwxP5YELxChC1NHorp5S","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zt0R5-Cwm_Zs6T6idtQFl","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1qabs74FjK-b12EqbEy0K","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SxrdF6W5qzTYeCs_68V68","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xz_gBt6x58ZocVcCicb8i","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cvesv041JG4bjLWGNMwdn","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dBbIbi1HjTdXH0w4PJmkb","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z04SBcetpB_J9IrCFNtPj","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jRJ1sNOx89f0jwkRBYIBv","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GSjR6e1IGT7jISJJVSGap","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QH3wlxeXUsxrgh344Um5C","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gn9h44B32vvakcCxpyfFO","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8r4WGarHP7QV_deo2pKCf","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mhzByjbK8ZKCXXXCdRkiE","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The horizontal radius of the light

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CH76kgXgbtzAPYMdYGy1U","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The vertical radius of the light

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QrPw3T0SuvSbMqR9nQeWF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UtUf4fjlLEcLz05IDKYPK","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2etK31lnI3w3iaMRCOAgl","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"83cuIV3Ov-V5P3BjItHhj","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hPGiTq1iZVrlx1b-6fBmp","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hdbS9_Gk2u_lv1G_oc93J","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xl710YMsH_hhdQpHO7JTE","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JuZK1mtH14IFOGAVxh8Mg","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H8i0l2mgJ4D-DNa3CKYGk","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Me0UL4sPphE9mvWh0ORg","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JdWWK_JQkQ-AJtOUeZ7Qz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              The horizontal position of the light.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The vertical position of the light.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

              The horizontal radius of the light.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":true,"default":"radiusX","description":"

              The vertical radius of the light.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"color","optional":true,"default":"\"#FFF\"","description":"

              the color of the light

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"intensity","optional":true,"default":"0.7","description":"

              The intensity of the light.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SmpksyzN_rHuj65wLjcOt","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oi6qDvo1hiLVtz_aNMmKZ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IYI4R6L4Xx2HmT5xu_S0H","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TEovha7F-GdsqA_4aNkfs","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ChxhXkXIcdhBZOZyowBeY","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pHw45OzEOp1Bip75g6vvE","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F9wIJq8gvX_T3Z4dva8Zu","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xRGtNuKhi1RKvEgUMat1Y","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EDHgAE3Ds-WZRfR_aPsGn","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"YZm7Y6zc6rymZfp31MHme","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aD-6Ea1t5hi7hoXuvST6H","name":"getVisibleArea","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a geometry representing the visible area of this light

              ","params":[],"returns":[{"description":"

              the light visible mask

              ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oH1YSHF6pWZrc6g1aV5MZ","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ECSBjQZz6WG9sPwWw1zZJ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Rv-5hw7PhirNlw0B_dToU","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5ay8C3siXVzTkXVe-SfqE","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"x6lHZ9fW21b2A9yz7Newt","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e4waYfuI7QqF0osx_VfcT","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vOhu4pDWgjUTdlN00S5NQ","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"UamfI67kupYPqkm43BrV1","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"DZ5i4n_jujHK9WFzgZXiO","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H0HL0KMJ44QQXHatXCaJa","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y0ThF-rkZ95xaN4Rr8odT","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0DbQTSNOlcvECd83d8a6K","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IhtBr0d35eCycF9Rrmrs5","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LQuWR2D4tlz1ifdUSqj1t","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sYUA4OBFbRj27p0BNaZiC","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EKFVRy5J79pZm2lSfeG8c","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_JHOQvJQafnh5JUSnSn5_","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DCU4T-jF40If71MFTo5jK","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xlSdaGAXpOrB-3QdHW5J4","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"15059yqj4SpeuwUOsQ4Xb","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kxf9EYrpsgv9DMbi11mtQ","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bmlxdS0TKv6ubpnd1cH4c","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BeWPFhu5WiQcBXPJrX5lc","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nh-TaC3A9XQpRoE1-gSRE","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UgzI9o4irMmSnSOHlXZ7W","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GbYJ47fm80XxtdocPthGy","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this Light2d (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2a7ireLKTq28qc0qR-oZw","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"22Q7srVA2dDhIre9nyQb3","name":"Line","type":"ClassDoc","description":"

              a line segment Object

              ","params":[{"identifier":"x","description":"

              origin point of the Line

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

              origin point of the Line

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

              array of vectors defining the Line

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"1dHxy5i6rdaUzoDWuhRDD","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DlNukBN9ek5IV83_aTpEo","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

              origin point of the Polygon

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pGb7j1OUJsQai14Z1tbIv","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_WXzj8cKMW5oB9VeZ3YIp","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this line segment

              ","params":[],"returns":[{"description":"

              new Line

              ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HjsXonvcpBRBJvSQqao-9","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","description":"

              origin point of the Line

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

              origin point of the Line

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

              array of vectors defining the Line

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[]},{"id":"aYizoD_518LTGO6quJA2-","name":"contains","brief":"","examples":[{"caption":"","code":"if (line.contains(10, 10)) {\n // do something\n}\n// or\nif (line.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the Line contains the given point

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if contains

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OQLDxj4T0Sxo4YNz1TsHk","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1jPk4L5Pe6tvCYv3srG4P","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"6WUpCNXc8RhWtLIooJ_7s","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LBynlAUnhYmDC_4WgkyDP","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision edges and normals.\nThis must be called if the points array...","params":[],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eo37UkXtIi43O4wGyKDlG","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7NN2TLu-3BatKGog27sBa","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given scalar.

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PEPNoYR4KZXV2nKJdZRll","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hSBhSZdHSWh2oQ16cPc2Z","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the Polygon

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pdev-q2B2uwIkGhMA-Yg8","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M1dr5YYF_GF6_qQttmO3w","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0XCHZze3iq3pd83p0thVP","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5_KjKoX4sH0L50Ic2olQv","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SptzjSBrQBqNNa_6d64aA","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the given transformation matrix to this Polygon

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TiTs5NLVJ9NSGUwvk1VOt","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oeALGFPpV0wdq14E-muUY","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"_rHaTdbLmLAl-gQyoNbeM","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

              a Matrix2d Object.
              \nthe identity matrix and parameters position :
              \n

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"gXc4-WUobR5tDAVtaKKV0","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

              tx component of the matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TRRG_mXSGc5Pxr3tpa0vL","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

              ty component of the matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HAX1hJDe6NG3c7X6JiltH","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the current transform to the given 2d or 3d vector

              ","params":[{"identifier":"v","optional":false,"description":"

              the vector object to be transformed

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              result vector object.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"HO94dSMHlQ9I5b7HIXMDL","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the inverted current transform to the given 2d vector

              ","params":[{"identifier":"v","optional":false,"description":"

              the vector object to be transformed

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              result vector object.

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2sbP87SzxBrlyI8PZK9xd","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clone the Matrix

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_B8oMA7bdzlFi0EZEnZ8x","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

              an instance of me.Matrix2d or me.Matrix3d to copy from, or individual matrix components (See {@link Matrix2d.setTransform}...","dataType":{"tokens":[{"value":"Matrix2d | Matrix3d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2 | %3"}}],"returns":[],"extends":[],"implements":[]},{"id":"TbsqO0XWELPRlZbnwv4hM","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copies over the values from another me.Matrix2d.

              ","params":[{"identifier":"m","optional":false,"description":"

              the matrix object to copy from

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QCQnHGpUMd_lmB9LCLfN_","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the two matrices are identical

              ","params":[{"identifier":"m","optional":false,"description":"

              the other matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if both are equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wAoAwwMeti97nc9dYuKR9","name":"fromMat3d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copies over the upper-left 3x3 values from the given me.Matrix3d

              ","params":[{"identifier":"m","optional":false,"description":"

              the matrix object to copy from

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IUiikE1I1wlY1Fek3jSv_","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

              reset the transformation matrix to the identity matrix (no transformation).
              \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NlsKhyDg656f1p9n_Byt6","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

              invert this matrix, causing it to apply the opposite transformation.

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mbActmPueZkX_Z7oZ3H9f","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns true if the matrix is an identity matrix.

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7B2UHKUcVStWFyhA4EffX","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

              multiply both matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the other matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hszR5XvlJQq9d5PnFO2qe","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              rotate the matrix (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              Rotation angle in radians.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PVT0V1eg_BiKCPLme1ABe","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the matrix

              ","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ghau7--WH-dwQ_gZYaaTt","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a 2D scaling transformation.

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f-aYVyYbY9Kz-ZlN7t7JX","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

              specifies a 2D scale operation using the [sx, 1] scaling vector

              ","params":[{"identifier":"x","optional":false,"description":"

              x scaling vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"otloeE2y-Zf5nsCeyT7kP","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

              specifies a 2D scale operation using the [1,sy] scaling vector

              ","params":[{"identifier":"y","optional":false,"description":"

              y scaling vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ga98XrwG-wCyegJxOaXby","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the matrix to the specified value

              ","params":[{"identifier":"a","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"i","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wdLLxbFC9IM3nDhqS7EXH","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

              return an array representation of this Matrix

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"56fgjvAkU_HuJJRT4ZuhV","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"UEve7lFxxVsTIs06GIGXq","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiplies the current transformation with the matrix described by the arguments of this method

              ","params":[{"identifier":"a","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zJq4vx5KT-xe4b-3BbWgX","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

              translate the matrix position on the horizontal and vertical axis

              ","params":[{"identifier":"x","description":"

              the x coordindates or a vector to translate the matrix by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              the y coordindates to translate the matrix by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GVZSBJJCGgKuvsnSGdoiV","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

              Transpose the value of this matrix.

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"0DYesnGO0DX9xN7sdhOn5","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

              a 4x4 Matrix3d Object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ipGKHdhyQ8WeAZVX_mnXC","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

              tx component of the matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HWmbkclw7I6xtkL_VZwkR","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

              ty component of the matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-oMt6aLTvuGvYqXeicJ1X","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

              ty component of the matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"deCzuTf7kDk4_yktgWcE3","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the current transform to the given 2d or 3d vector

              ","params":[{"identifier":"v","optional":false,"description":"

              the vector object to be transformed

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              result vector object.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"_qPGmB2lOdDogtBgYDQSe","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the inverted current transform to the given 2d or 3d vector

              ","params":[{"identifier":"v","optional":false,"description":"

              the vector object to be transformed

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              result vector object.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"Z2ntqXyiwav9ZiqwAEtyd","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clone the Matrix

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6PbBaTic2d7fo6sN9gR3o","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

              An instance of me.Matrix3d to copy from, or individual Matrix components (See {@link Matrix3d.setTransform}). If not argum...","dataType":{"tokens":[{"value":"Matrix3d | number","kind":"canonical"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZmVHsGPwjjVCxZEZwL9yG","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copies over the values from another me.Matrix3d.

              ","params":[{"identifier":"m","optional":false,"description":"

              the matrix object to copy from

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t4WWP2hgnbJTnY86CjpXh","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the two matrices are identical

              ","params":[{"identifier":"m","optional":false,"description":"

              the other matrix

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if both are equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q2BoEXUzwqGvz0nSw_UBp","name":"fromMat2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copies over the upper-left 2x2 values from the given me.Matrix2d

              ","params":[{"identifier":"m","optional":false,"description":"

              the matrix object to copy from

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aTIBxxhegdAATW9V1KoVs","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

              reset the transformation matrix to the identity matrix (no transformation).
              \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9egGHuYrQ-Su9KtnqSfrV","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

              invert this matrix, causing it to apply the opposite transformation.

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QxywHyj_tNqudfsff7kIW","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns true if the matrix is an identity matrix.

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-HXY_6R0TZLLqcIhKYB1H","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

              multiply both matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              Other matrix

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wySQ7F5m1jrferylX_cWm","name":"ortho","brief":"","scope":"instance","type":"MethodDoc","description":"

              generate an orthogonal projection matrix, with the result replacing the current matrix\n
              ...","params":[{"identifier":"left","optional":false,"description":"

              farthest left on the x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"right","optional":false,"description":"

              farthest right on the x-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"bottom","optional":false,"description":"

              farthest down on the y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"top","optional":false,"description":"

              farthest up on the y-axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"near","optional":false,"description":"

              distance to the near clipping plane along the -Z axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"far","optional":false,"description":"

              distance to the far clipping plane along the -Z axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4kqaAlvQRiuYssISMso-B","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              rotate this matrix (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              Rotation angle in radians.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

              the axis to rotate around

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-oa3RAxGMnzNsRsj-uTcc","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the matrix

              ","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

              a number representing the depth vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gaN43IlU7WS6igjjnJiBI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a 2D scaling transformation.

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j2WakiNkwc-Sc3bieYJeE","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

              specifies a 2D scale operation using the [sx, 1] scaling vector

              ","params":[{"identifier":"x","optional":false,"description":"

              x scaling vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tKJ53WwzM3ZDgh1jyiB_b","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

              specifies a 2D scale operation using the [1,sy] scaling vector

              ","params":[{"identifier":"y","optional":false,"description":"

              y scaling vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DmcHzB0Vqfq3QFEjT5YZP","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the matrix to the specified value

              ","params":[{"identifier":"m00","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m01","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m02","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m03","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m10","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m11","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m12","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m13","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m20","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m21","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m22","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m23","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m30","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m31","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m32","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m33","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bz4NEC9cu9Vl3A_AA3AVJ","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

              return an array representation of this Matrix

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l9scKMq85XBeW0YdIqqH5","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"j_Wr-e_SwQvpg-8lADNIz","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

              translate the matrix position using the given vector

              ","params":[{"identifier":"x","description":"

              a number representing the abscissa of the vector, or a vector object

              ","dataType":{"tokens":[{"value":"number | Vector2d | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              a number representing the ordinate of the vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

              a number representing the depth of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UVtfiYzgeg_Kv4OgEdkqC","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

              Transpose the value of this matrix.

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"MVAvEq2MGThjpvvc8wrql","name":"NineSliceSprite","brief":"","see":["https://en.wikipedia.org/wiki/9-slice_scaling"],"type":"ClassDoc","description":"

              A NineSliceSprite is similar to a Sprite, but it uses 9-slice scaling to strech its inner area to fit the size of the Rend...","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"gygKkwpUr1Xux4v3lNtz8","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvlYhOsKWV-MfA7odW7TP","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wmZqbXewevhV6dwR2DmWS","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EAxXMnp_TH4hkorpbJ8Y6","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"suODqWcfbzIhZ8PXij0z5","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OkrrD9Knm9w8G09k9WodO","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rS1mMYI2kwp2hrtxa8GjX","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oi1ru3zVxeTGqFrfUk3FZ","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OMxqCxXwATzOV0O_1okX9","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"io5aB3Nloqcs4ONT894km","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FMQ2DrdPqAJEOo4Fw9KFE","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uKYbBEcsNfHvv5QnKFxeA","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RCzY0h1g5FJrRdS138DDX","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L5n7XPmAg-O5ZrGGs5UhE","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uKgyCuoWFmVA9sd6RNRsA","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fE1o7RJW-Uye_QWQOLllw","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sO21MRDlqVdkWq7vQDYx6","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the NineSliceSprite

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S6B60Ed2Q7Jc2pOsyiaQ-","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fLgmFh8_bPS84DqQ0zwPL","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uHku2KuhoQtTsBXOn9-ge","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PCwPxPWjQdJz0d3t8j8uH","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o5O7uf7i0NgQUeGr4psuy","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"We-ktY3nMQAIXe310pv1b","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"63KiNnSWg5wjdxWDH06bX","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RvhlzEubKb_CpZtNafoqi","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VbxglzY5y1ZT0xKZh2IB8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ykRrFI4GRsDUj7JmTOXOU","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iEGkPvMN1ss_kjeeXvGhf","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Q0zMxHfi2nJgCRiFz0s4","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wBAa_m07dT-4JOelUIwAQ","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EcCEoFJgtWp8L_CuJjWiV","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VXjNlvlOmeJzWwvhEPN1j","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8QnfO77_ektSS-Deee1N1","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qzpkf8oQ6o3asLr15jsyW","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nBXyDKdoaG-3pLJI4U8pb","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"feXCWXtyvkFUzY3S7QZOw","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"26-2i9IAYr2vtO0qcQkQ9","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TjBuNL-s7k4rV58vp4IV0","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6C_RsvekyeAezD02qd3Vo","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KiiXz2HfKTjOHxvq9H1oc","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fdPkzbIIwF46K4ZStKeF5","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the NineSliceSprite

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CKQGFKvfyYEfY17AGy4c7","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C-gweM-Aw32yI3rgMbfIf","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4EXte-gaTwToYOmvkWdMn","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"45KmR_f3EBj9EcwxoaXgA","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g-SV7ju8RN0MUXWV2mm2V","name":"constructor","brief":"","examples":[{"caption":"","code":"this.panelSprite = new me.NineSliceSprite(0, 0, {\n image : game.texture,\n region : \"grey_panel\",\n width : this.width,\n height : this.height\n});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the sprite object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the sprite object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              Configuration parameters for the Sprite object

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.width","description":"

              the width of the Renderable over which the sprite needs to be stretched

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

              the height of the Renderable over which the sprite needs to be stretched

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insetx","optional":true,"description":"

              the width of a corner over which the sprite is unscaled (default is a quarter of the sprite width)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insety","optional":true,"description":"

              the height of a corner over which the sprite is unscaled (default is a quarter of the sprite height)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.image","description":"

              reference to spritesheet image, a texture atlas or to a texture atlas

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

              name of this object

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

              region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

              Width of a single frame within the spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

              Height of a single frame within the spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

              a tint to be applied to this sprite

              ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

              flip the sprite on the horizontal axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

              flip the sprite on the vertical axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

              Anchor point to draw the frame at (defaults to the center of the frame).

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cfhPQXsAeYWwFM-rDjTv4","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bjqPurX74D-436HM6WhkP","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J-zBZj6zHtretmXAw3SIo","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7ngomUsQJ-IqBLUV2Rh2D","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J3M5JtnKc35SCQqYqzTCl","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bu0WM6Mv3Uw_A4bjEbf9w","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s3TRII9t60Shsv17JKFar","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BQWoBPI8F9CpourSbYph7","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9u-3ziWGdNXjWYn6AcUn-","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gCNqvWznABmFOZUHTy-QK","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sCrAR_iUAEtHHFfsRTK0A","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"EBsxpIV-kVaQjqOZSLXnD","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v09_L_pmpoensSratE250","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q_his955yrgnwcBsuWPEK","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"n-4tPJactmMgJ0Xj00qaT","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UppijSTlULNb4W4T_Jm_Z","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sBVui6QRJe6MVXh9LvjXk","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AYckPj6omhMjuTMJmJnUa","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4hxw6KP5bebTy8dv31wjB","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JQ6mHSTs4tLj2BtPgRDkU","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wsQt2XEqqtJ0KzcFKsmds","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ggoaa9Z8hT7p9h9oczuXY","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mAZpSMsn-opEQeVNXNtnV","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"4RhP6vABULmS4A5v9hREP","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"CeI8QBRqIgAd-2qYYYIeh","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l65aO3WVExfrRgkrRDQsQ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vf8YF_99VgQPZpZZByEzQ","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jmNLv0a3DfNa1kEeE70kX","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S08pSKyct8IBBHdhPlMYK","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"40vsskN7Ni0M3ppi7FC2C","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1r0YIlwC-WuhwNvWu18Kb","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NmRkv0BvSWkMdObTspbrZ","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TI6_xUzvT-eViEK_DCTjj","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XzLwiciis-EHY6YS4O7nr","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ScAZZDF77TrD740fLXH_6","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gd-FFwCOAjMVi_YOxCGn1","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Is3tUgPuGSNfpTi0OjS74","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yeYcPmvvhsH-VEib0-Yoa","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pj99YC_RSmM4OUAYPf8se","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9U0999uVxwzSfNZIJOkJy","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cDNDNkD5VfMRJZsbCsSzA","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yvIh65sOc0I5SeOyhLvWH","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RMoOlW7wPhZCrEmXp1hTQ","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v0ho_8SraFpHSOB7rXQfr","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TKEegxw8tUJIdK1syVYf5","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this srite (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"be4dMLqOaSOfZ4dZeXu1R","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TgN30CS6b8c2MtliZSAAG","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"-zhxFEn9593jQqYSC2bnM","name":"ObjectPool","brief":"","see":["{@link pool} the default global instance of ObjectPool"],"type":"ClassDoc","description":"

              Object pooling - a technique that might speed up your game if used properly.
              \nIf some of your classes will be instantia...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"tGTEM8JSsXcXB0uJQfl89","name":"exists","brief":"","scope":"instance","type":"MethodDoc","description":"

              Check if an object with the provided name is registered

              ","params":[{"identifier":"name","optional":false,"description":"

              of the registered object class

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              true if the classname is registered

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LZt2Fv0JEYlFN-ROSQAQN","name":"getInstanceCount","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the amount of object instance currently in the pool

              ","params":[],"returns":[{"description":"

              amount of object instance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"24zv8UXZGa9BMGTzEX-qe","name":"poolable","brief":"","examples":[{"caption":"","code":"if (!me.pool.poolable(myCherryEntity)) {\n // object was not properly registered\n}"}],"scope":"instance","see":["register"],"type":"MethodDoc","description":"

              Check if an object is poolable\n(was properly registered with the recycling feature enable)

              ","params":[{"identifier":"obj","optional":false,"description":"

              object to be checked

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              true if the object is poolable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wEtOJq6cAUndTYh8HFNjr","name":"pull","brief":"","examples":[{"caption":"","code":"me.pool.register(\"bullet\", BulletEntity, true);\nme.pool.register(\"enemy\", EnemyEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = me.pool.pull(\"bullet\", x, y, direction);\n// ...\n// params aren't a fixed number\n// when we need new enemy we can add more params, that the object construct requires:\nlet enemy = me.pool.pull(\"enemy\", x, y, direction, speed, power, life);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\nme.game.world.removeChild(enemy);\nme.game.world.removeChild(bullet);"}],"scope":"instance","type":"MethodDoc","description":"

              Pull a new instance of the requested object (if added into the object pool)

              ","params":[{"identifier":"name","optional":false,"description":"

              as used in {@link pool.register}

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

              arguments to be passed when instantiating/reinitializing the object

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              the instance of the requested object

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"jS5jPbmeG8QBc2abIM8fe","name":"purge","brief":"","scope":"instance","type":"MethodDoc","description":"

              purge the object pool from any inactive object
              \nObject pooling must be enabled for this function to work
              \nnote: thi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OziaTTwK8bqZFX7lRCfTn","name":"push","brief":"","scope":"instance","type":"MethodDoc","description":"

              Push back an object instance into the object pool
              \nObject pooling for the object class must be enabled,\nand object mus...","params":[{"identifier":"obj","optional":false,"description":"

              instance to be recycled

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"throwOnError","optional":true,"default":"true","description":"

              throw an exception if the object cannot be recycled

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              true if the object was successfully recycled in the object pool

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"c3U2vbKQMy_18e4mmNY7F","name":"register","brief":"","examples":[{"caption":"","code":"// implement CherryEntity\nclass Cherry extends Sprite {\n onResetEvent() {\n // reset object mutable properties\n this.lifeBar = 100;\n }\n};\n// add our users defined entities in the object pool and enable object recycling\nme.pool.register(\"cherrysprite\", Cherry, true);"}],"scope":"instance","type":"MethodDoc","description":"

              register an object to the pool.
              \nPooling must be set to true if more than one such objects will be created.
              \n(Note...","params":[{"identifier":"className","optional":false,"description":"

              as defined in the Name field of the Object Properties (in Tiled)

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"classObj","optional":false,"description":"

              corresponding Class to be instantiated

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recycling","optional":true,"default":"false","description":"

              enables object recycling for the specified class

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"tiPzoDYJ4QjdMqhryCPdw","name":"ObservableVector2d","brief":"","type":"ClassDoc","description":"

              A Vector2d object that provide notification by executing the given callback when the vector is changed.

              ","params":[],"returns":[],"extends":["Vector2d"],"implements":[],"members":[{"id":"g1abmT3bmIrgaTHP1wtb1","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              x value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5J3dOjZIdYc2PnqnQ-Ean","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              y value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b0Txn7L3EIHUO9fc7uk9I","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector values to absolute values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FdyTQ3l8O8GCrP4SIOalO","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w2oxeB-Roms3XhYtFLewT","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L_1qzJDTgKEl0Zew6TGoT","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector2d

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eE_U-K3ediqUsl4cXA5t_","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EEGMipnVBqDHcGd9Wqe4c","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp the vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              new me.ObservableVector2d

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0l57xOuPhI9_zy9DBjCOI","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp this vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mtgSSW_lsPNtxhK7IslJH","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a clone copy of this vector

              ","params":[],"returns":[{"description":"

              new me.ObservableVector2d

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4GToidm7YH392Zn-aK0hO","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              additional required parameters

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

              the callback to be executed when the vector is changed

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

              the value to use as this when calling onUpdate

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"T6j5YoGiW1aH8SVnhX1Ud","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copy the x,y values of the passed vector to this one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CN-sWLBjiA57Evuzc1ulj","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the cross product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              The cross product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0su-p-G9Mx09E2eeJhpw1","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gounUY8SjDDYT1ScDhKyI","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

              Divide this vector values by the passed value

              ","params":[{"identifier":"n","optional":false,"description":"

              the value to divide the vector by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xj0yzhuZrUZyFzgNwGFSj","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the dot product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              The dot product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JVJKxenin8rm3DJNKEZp9","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the two vectors are the same

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Dq7_hsqJB9W__x9QZ9Sf-","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector2d

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xutdyBPcRY3Fq0gzkJqgm","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tYzy15b0ItKGpekqhaaBH","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the length (magnitude) of this vector

              ","params":[],"returns":[{"description":"

              the length of this vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rHuyve6YVKSbU5pa6uyuM","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the square length of this vector

              ","params":[],"returns":[{"description":"

              The length^2 of this vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"01yXXrDyNMavWnmvnbhJF","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Linearly interpolate between this vector and the given one.

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_ml0mKzRmmj4kBwU6i1g6","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the maximum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DKRuN9rSaXd_DRT3JS7YF","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the minimum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sn9ZDBRmjTIDrM2krBO1T","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

              interpolate the position of this vector towards the given one while nsure that the distance never exceeds the given step.

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

              the maximum step per iteration (Negative values will push the vector away from the target)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bypGk0i9K9OKWDLv4RUwR","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector2d

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bKhErTrWccSmsSGs3YcpD","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O_qf9uvL7yvcahTCYLeRe","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

              normalize this vector (scale the vector so that its magnitude is 1)

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wl_y1J5gIv2-azWCggtA_","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

              change this vector to be perpendicular to what it was before.
              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SPbXh6L_gyrgne4Xt23qq","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

              project this vector on to another vector.

              ","params":[{"identifier":"v","optional":false,"description":"

              The vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_FswqDpPlfX5qM4Jsbg3s","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

              Project this vector onto a vector of unit length.
              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

              The unit vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8CCCi8uBc3lxPOSy1nVio","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this vector (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XqwAKaA-_PR94_g8K7cAM","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the given scalar

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EU4vexOzy0xh1Z-0RArYy","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tVJDvFWUm0fuULN8WKm7Z","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to the given values

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8K5X4ddXs5BaFGuLg7_JN","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the callback to be executed when the vector is changed

              ","params":[{"identifier":"fn","optional":false,"description":"

              callback

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

              scope

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vtndFgVm82UGL93RugXU0","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vector value without triggering the callback

              ","params":[{"identifier":"x","optional":false,"description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zu1VAJmAER3swQ9dqZuh1","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties using the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vEPIZdlnnU2VLdsF8tEAF","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to 0

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0PuIJoefNIZtiPFA81PbK","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

              Substract the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FlQhvYxuOPxb9Irv_rMFv","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into 2d coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qoV2FhBvTaEqM_2OIE8ZF","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into isometric coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R7Q9TBWvX53CQHc1UmiSz","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"uYcXy8L6CmlCv-an7o8O_","name":"toVector2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a me.Vector2d copy of this me.ObservableVector2d object

              ","params":[],"returns":[{"description":"

              new me.Vector2d

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ZETrEWBmSm42Q0WHWl-g2","name":"ObservableVector3d","brief":"","type":"ClassDoc","description":"

              A Vector3d object that provide notification by executing the given callback when the vector is changed.

              ","params":[],"returns":[],"extends":["Vector3d"],"implements":[],"members":[{"id":"A3fVlzGmwfhfP_zLe6_Pe","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              x value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LVFVuBN349Hi0hCyTL_ck","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              y value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"61KVpQekN39ptWBrAHfya","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              z value of the vector

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nebLunHf1Ib3Un20KQCzE","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector values to absolute values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mzQqEfoZeVnPlI_By5ml7","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cmqmbQRZz_4SC1hIJ-iv-","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dysrganuCGTFhEMmcKfmE","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector3d

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HyVyFKhkQBj_LXscBSTsk","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Ceil this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aEI7oRF-gyKZ7wqgePbrx","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp the vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              new me.ObservableVector3d

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yK_XHjUxdz5KQLo2bjNB3","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Clamp this vector value within the specified value range

              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4tdd0MzVYnbMyu6sHzE7u","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a clone copy of this vector

              ","params":[],"returns":[{"description":"

              new me.ObservableVector3d

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SRWoRSZKYlx-IJeo_HeKx","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"default":"0","description":"

              z value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              additional required parameters

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

              the callback to be executed when the vector is changed

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

              the value to use as this when calling onUpdate

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"1BQo2ZyQyskEVDX0Av-3k","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              Copy the components of the given vector into this one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qYK1DhkkX6Cg-Xl_qBoKl","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

              calculate the cross product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PS8fz9NPtrnyVanxCYT0N","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance between this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-yAexSpE9LmQCm60iD3OU","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

              Divide this vector values by the passed value

              ","params":[{"identifier":"n","optional":false,"description":"

              the value to divide the vector by

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x5Loqa6mCforWjo-wppCL","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the dot product of this vector and the passed one

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              The dot product.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1mRZi5u--d6de4SiXNZ-1","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the two vectors are the same

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wxEjln4n14TqENBTk1kTq","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector3d

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mm5AUDN5iAuZ_r2pao_no","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Floor this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3Ofjdjz5ceI-MwQqTNC6L","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the length (magnitude) of this vector

              ","params":[],"returns":[{"description":"

              the length of this vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aQrImC22QH2bvYQvBq944","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the square length of this vector

              ","params":[],"returns":[{"description":"

              The length^2 of this vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w-7kWyXBcmq4GA6ExvI_h","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Linearly interpolate between this vector and the given one.

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cJd0mXxlizuJigTCtx5bp","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the maximum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vN4ArKIh3H5gUi5k3HYuW","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Update this vector with the minimum value between this and the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hcKyHT3Q-tFT-laFGUgg2","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

              interpolate the position of this vector on the x and y axis towards the given one while ensure that the distance never exc...","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"step","optional":false,"description":"

              the maximum step per iteration (Negative values will push the vector away from the target)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a6TnnwXQxOzZEk6FZY_m4","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate the vector values

              ","params":[],"returns":[{"description":"

              new me.ObservableVector3d

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-6ljHmZBBB9bL9YWvr6Zg","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

              Negate this vector values

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FSWrGYapOEqF2aDgKIqHA","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

              normalize this vector (scale the vector so that its magnitude is 1)

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4l-NxV_0qUbVi31cLY8FA","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

              change this vector to be perpendicular to what it was before.
              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n_Lh6i1_9sDUKk5LK9wE1","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

              project this vector on to another vector.

              ","params":[{"identifier":"v","optional":false,"description":"

              The vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jba0rn5BwwjW_8bvyWHuK","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

              Project this vector onto a vector of unit length.
              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

              The unit vector to project onto.

              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5bYTc8M7bEUwav33nWgb_","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this vector (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around (on the same z axis)

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4oVDCWXYQ_uHIXQ7SEX2z","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the given scalar

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iwCJfs4Z7sSG-WDOWVYfm","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Multiply this vector values by the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hb2Dq-5SnEmjdH4lfj5dR","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to the given values

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iYFeP9xM285zH_xYBh-Zw","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the callback to be executed when the vector is changed

              ","params":[{"identifier":"fn","optional":false,"description":"

              callback

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

              scope

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TOSavp9siHrFwDx1_QtRJ","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vector value without triggering the callback

              ","params":[{"identifier":"x","optional":false,"description":"

              x value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

              z value of the vector

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x9IUzW-BU14m5LtClS-rc","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties using the passed vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"joTQyDYZxEUk7nUZEYKVj","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Vector x and y properties to 0

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vuuCkvTwdwaoz_XZOtSfG","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

              Substract the passed vector to this vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CYLAdApdgtaTvd2E56G5b","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into 2d coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nZL6Pu8wNoQS6PbMIOALs","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              Convert this vector into isometric coordinate space

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w_G6mztEi7HWb8m4OFQzq","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

              convert the object to a string representation

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Px6hlsHELzdRJktXI1R24","name":"toVector3d","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a me.Vector3d copy of this me.ObservableVector3d object

              ","params":[],"returns":[{"description":"

              new me.Vector3d

              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"vwzP6ZK5kdUTUkS9I0_XU","name":"Particle","brief":"","type":"ClassDoc","description":"

              Single Particle Object.

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"fNFY_UneDQlazGfHQamZU","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JQl8Y8OlDguqELSC5JTcd","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HaZPGkNrm5WR3goKKPOrB","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ctZRoWqOnsP54F2NdG9AJ","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"42BTQoYGThPfelRDbLTkV","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZA2nLaVzZOJyQ131fzYJL","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cHOPHlr8WOsnPWEAdwMVH","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jphq-QoWOrE8s6VAdlZ-j","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pYucLEL8cVXFatXFL-fZu","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nOxZntTqwqseSQVXtKeV7","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h9FJ_wFHFtrA_g-aPp9VF","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xTTiEYQJUggb6SnQTiig7","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z45gvSHcGOQIKoG9Qb4yt","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ySlGXqrEab4K9TkdidUsh","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s53dANmFQ4qRYbVzUY0uJ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LdGTlNJ7UAkuH8ZFiJQhn","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t26ywA3PmW_W5Ja2_LJiC","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h-LQ0tdMHuOte8QQWiyVn","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z-hUihUpglMHkMDOFy8Hd","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ac5g9-Hp3tCuw691besJT","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3vUve_u0AJNXWlLK6fs8h","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j2mJDFOWsfAZkmHKiHRAs","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nKlV_-BFosta5O-bul15M","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GIWHW1vB01k91EPiAwLUh","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4A7jiOuDEI-wXpUJo8WF","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ghLNFrw845KUnY_5k6vss","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KBjKshY01EDg__WKbfvXd","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nfP060y4QI2NHo6tr881D","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PeoVqq2wq-RdCaTCx1EWs","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tl_nQg88nH0OwVU4fRim3","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vLeolalPX9Fe8LneFDnPW","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kR8bW-ij0CmdpdlJFxfSO","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"61c8Kmzmsv53_c1RWU-mG","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LZ6jDGqC02v-8WatWGk_s","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2y5yGd08D5orO7nDvcQRt","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xuOiag88sn0tJeadPRwdi","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E5AxN7JfRy9e2s-e2aEeb","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tAX6Z2_dxYOpYh42DqAfC","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BhjTZo5OmY6dBkn3NJv5m","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R9heVXIzuVCj9kP7reftI","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"emitter","optional":false,"description":"

              the particle emitter

              ","dataType":{"tokens":[{"value":"ParticleEmitter","kind":"canonical"},{"value":"ParticleEmitter","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sPX6kfHiir6jMz8QivLFM","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2-IAPHRgY_OsYSptcKCrS","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s7M2odHiuGMJISeX9peuC","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KoDTObN5U_vmeDjOwBgK7","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"V4b3JeQNim_yFY9ufYWWU","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J1zZx1RWEGpiG3GDi54jv","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JZvF0TYZHRZ740UGhusnW","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9CYNueuSd0f5MaA7Mq7Ty","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aMck3eozpQ8TjzU-QzrEx","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dtLJVlm-B-tLIY_Fjpcem","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"KAy2XjNC53WCKDU4PJDBx","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wSgQvOCfVgNA9VjAOHNGh","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cn_AXQ9y9jkv7SlpOTohV","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"99N6_sF74Qnh3lKK8EV3j","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MoFJO9jsRXwB-43PAqa8R","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"21ludieT9frjuaFHPTuBA","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G6-2FGdXz8B82DiI_OBM1","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_8v8cGi8DgW7RnwyuyIgf","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"VBwqlbR8TJ0f3tsGlwkAX","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"YhU3HVYTaB7MuXFGJpk8T","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E6jYqzkq4mn_47Z4M_MCo","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bFqgUiVFNdS5cRzcXYUH7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aMloAbbv7gWwcdEYsij3G","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"--0-UW0JofrMSGzERtOHF","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LV8xM7qaSvULZgOnuv7X_","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IQm3tU3P90cnjr5KoXL0H","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pOpkjD-_p0CqDdYHOjUeU","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T81piV5hkBlySElb-sDE5","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ugB6i0ggTD9r0xdWovEoP","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XZ4IyXj-F3wWpB1IGj6bA","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d_ONL_zY4M_N7AunVGET2","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v3Txsos0pvLGKu17YRJRv","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b0aG7tctGRFLZ5pfz605N","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"83eN5ovlBxD2ZJct0TkKx","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rRQ5t9eBUyF_BdfBAph2v","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mxVY4W3RYJMqXTVrxUzDz","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bcCr3ohtXtm2KEcsxlnsg","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"kja91lQBE6dx6hlPaZvDi","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

              Particle Emitter Object.

              ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"BuFpNQs22jwVpAma8-wdy","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Q0nNu_6cveyiN9s-LkLh","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7zeTWm9hlYCR7MI4sqs4a","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tH3_EaE2S5th9MS2Xv_82","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rVZJjqsbJKJbPG8IEPixF","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children z index should automatically be managed by the parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"grhxCV1x5UdCLWA77yzEk","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              Specify if the children list should be automatically sorted when adding a new child

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gS2FlqdgD8AXZSUf2s7Nq","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u2SlggwJdvaIsWjPRb3y2","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a background color for this container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_nKMBpufJuHbcNYu_quZL","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pfT_VJH5ApH2RaVWMofeC","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z8jOCGPxJOCQ7lYjxbC59","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"10Od-uWxiXrOq-mTTDSNI","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M6JVBESUtjCkWnijMAxWC","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cu8305pz7dQ7dbUle7TuX","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container draw operation should clip his children to its own bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pXsVvKDqIECAL5-_eQpS7","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jrRIRHu2Vto0uN-ukBda5","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zeuvRdIVwurxjWFihDd4n","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FvH0UbGeOxwds9RtlBaRY","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XaL0W8LcssCSrT6VgOwC6","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q1aDVgvATNlH5kgsvOBjN","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BZlOLI_OQDJ72hVw1MvRq","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qtMAW3rboSWOjXWpAKFtV","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbE9hqmW1px8Tw3dS4ZQc","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6g9FoHodLUSSTRpK7jF4v","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JJhaLuGvv6-oRz2VQaO1h","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BaootpQ024yXtfQLARV9s","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hgjx0A62tWHedQMWmnovS","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1KTT1AtllbiRCNG2mBgKu","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IkWPf1RfcaM-u_Xnot4K3","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ME7r7wGPbBjVm7H0XUVII","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BUkhKObI2lHwb23xJ0r9J","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4mKExlApOCEHMMQ8oBHv5","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VYrOUwhzQpZ3zNheSVZQG","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"blNZwes4Y92Wr21Q19ddd","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9p7aMP1DMs4QGCtD1tq8","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yCLknYZf1H6B6klfU0we4","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              whether the container is the root of the scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pY-lhzWV5G1DCl68Osuz4","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              the current (active) emitter settings

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eI7dOLe6_5eJ4nil9kDZp","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rtyait4uF-xAqnJh2o9mB","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-gS2fGlXrdQ-RulAk7kaQ","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sxJheGXutmq2kDlLzbBYp","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BkqDU4fH750LXYLHB2I5P","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j_PMHTNlkoqvDisXrl8aB","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bITow5mbsPI7ZqBVNbjU-","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jUobayUNQGhkM3krqOHCk","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container
              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

              forces the z index of the child to the specified value

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TuKXBbnZK8t2GLIqhIw64","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a child to the container at the specified index
              \n(the list won't be sorted after insertion)

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

              The index at which to insert the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the added child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4fG7VYIgWHofgPL35DbfI","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WX1ARzqH7Yc6nIhzHn-8V","name":"burstParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

              Launch all particles from emitter and stop (e.g. for explosion)

              ","params":[{"identifier":"total","optional":true,"description":"

              number of particles to launch

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eZFW0N4kKk6wop2_mYOFU","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QFdjhPJ9N6ts-PGLEXa_C","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uVipIuQUm0mZKntbtBrP6","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a particle emitter at position 100, 100\n let emitter = new ParticleEmitter(100, 100, {\n width: 16,\n height : 16,\n tint: \"#f00\",\n totalParticles: 32,\n angle: 0,\n angleVariation: 6.283185307179586,\n maxLife: 5,\n speed: 3\n });\n\n // Add the emitter to the game world\n me.game.world.addChild(emitter);\n\n // Launch all particles one time and stop, like a explosion\n emitter.burstParticles();\n\n // Launch constantly the particles, like a fountain\n emitter.streamParticles();\n\n // At the end, remove emitter from the game world\n // call this in onDestroyEvent function\n me.game.world.removeChild(emitter);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              x position of the particle emitter

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              y position of the particle emitter

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":true,"default":"ParticleEmitterSettings","description":"

              the settings for the particle emitter.

              ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gG_tSM4lHlNPxFSp2fiLO","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xL28O-f77FfPN0tmrdQxm","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ezqtOmy1KOkIpIQ-ezeMC","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sik2G-BDLWLawDFG9iZNx","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XOqpH9OdC1mmc_718xk39","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S88GYWghpn_D4jmLMZ8BV","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FrVyd7cy7vaBrNzc4aiC3","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

              The forEach() method executes a provided function once per child element.
              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

              fnction to execute on each element

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

              value to use as this(i.e reference Object) when executing callback.

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Qf6g77Fz0IWVxsss74ebj","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c1PxtJ1mVFrI4nfYXU3c4","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6NWjuxM07kwLrGjAphb9-","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the Child at the specified index

              ","params":[{"identifier":"index","optional":false,"description":"

              The index of the child

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the child at the specified index

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KbUVAZX1_ugSjbyIsaBN1","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the specified GUID
              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

              child GUID

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              corresponding child or null

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qhvtNP5zt-YB_nHJcjpGn","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified name
              \nas defined in Tiled (Name field of the Object Properties)
              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

              child name

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"jwuRzePeKRNNcju6cHyr9","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

              return the child corresponding to the given property and value.
              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

              Property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              Value of the property

              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

              Array of childs

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"KJ1t1KqQyl9ky80sFP77A","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the list of childs with the specified class type

              ","params":[{"identifier":"classType","optional":false,"description":"

              Class type

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Array of children

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"rgx1D3J5syzQ4xOWqoFq0","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the index of the given Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k1UUIoZ_eKefEnYFxgMP4","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              return all child in this container

              ","params":[],"returns":[{"description":"

              an array of renderable object

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"gwOXOpgLVcrthkNk_Rwdu","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"d_XokkSCqMLbS1w-Zpfz1","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the next child within the container or undefined if none

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

              child

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KR_a9HjVLzWJKU-cbPoVX","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uAV1VLhSYTJKRv1DXfvu1","name":"getRandomPointX","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a random point on the x axis within the bounds of this emitter

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"STxRkA2KGHesfmae65n1x","name":"getRandomPointY","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a random point on the y axis within the bounds this emitter

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dwtWxpa0m1zk8f4yp_3K4","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the instance of the root container (i.e. the current application World container).

              ","params":[],"returns":[{"description":"

              root container

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aFl2pUq1aFhAgsTf_IpyH","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if contains the specified Child

              ","params":[{"identifier":"child","optional":false,"description":"

              The child object

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KTLgCnQ00Prfj-mZwWrjp","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

              Checks if this container is root or if it's attached to the root container.

              ","params":[],"returns":[{"description":"

              true if this container is root or if it's attached to the root container

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Sf4ysrkRCXWn-L3Z-RSMM","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bHREflMcFxBHO-vjf9Qhl","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TJVJhkMyZcn1iiPlHcWq0","name":"isRunning","brief":"","scope":"instance","type":"MethodDoc","description":"

              Emitter is of type stream and is launching particles

              ","params":[],"returns":[{"description":"

              Emitter is Stream and is launching particles

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ssS-1SvU_Vwci061nWw7l","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hdAXzJNv584CiVSMd9J9X","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step backward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"f28UBVlZYNZp3wb-nORdR","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child the bottom (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"hNBER73rSRfh8lCXZK0F7","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the specified child to the top(z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"6W0G7VWsB6sqFAR12mMgG","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

              Move the child in the group one step forward (z depth).

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be moved

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"CW-C0g9dU9_5dm8ZccRKJ","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

              a callback to be extended, triggered after a child has been added or removed

              ","params":[{"identifier":"index","optional":false,"description":"

              added or removed child index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5gbj6swyHsXGooDtzqlwm","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U0_MtT9gNmcB5KsPYxRZF","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Y5ga6X09bDfLeqZx-krD","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lSz9B69sOgsokXgJYIUif","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"e1KJikICLijHOkolLJUhd","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_tC7-qkByCtQifJ5l4c40","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mzufyu4I2_o-S6af9Ee9S","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

              true to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ne5HndhnNpTJZZD8bFfeU","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

              Removes (and optionally destroys) a child from the container.
              \n(removal is immediate and unconditional)
              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

              Child to be removed

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

              True to prevent calling child.destroy()

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6VvoJ-pAghZ-XYTXSXdzZ","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

              Reset the emitter with particle emitter settings.

              ","params":[{"identifier":"settings","optional":false,"description":"

              [optional] object with emitter settings. See {@link ParticleEmitterSettings}

              ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QPJESlSFjuNQsro21EWjZ","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d9wvwjfNKo5Kvn91Sjx4Z","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qSmYmq1tTxzMv-dBBbGzA","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U85LKjM8TAF-4HniohZUa","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tgsqnaPJXJ-jqapG3j4Kb","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

              Automatically set the specified property of all childs to the given value

              ","params":[{"identifier":"prop","optional":false,"description":"

              property name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

              property value

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively apply the value to child containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"YhtCVLqY0WYUHMoq3yrjo","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pyZ1WYyu_vXF-bY9KExQf","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XGnwlMSUs648FDYGPt4AX","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o14hjcEkDQpmJzHRTwwAk","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RWN7c9g7zQ5bzN124dHto","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

              Manually trigger the sort of all the childs in the container

              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

              recursively sort all containers if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"jpMQ0hFs1WO37C17w-Gy5","name":"stopStream","brief":"

              Stop the emitter from generating new particles (used only if emitter is Stream)

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sq5D-8ZGbcz3Cxo1mCaR7","name":"streamParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

              Launch particles from emitter constantly (e.g. for stream)

              ","params":[{"identifier":"duration","optional":true,"description":"

              time that the emitter releases particles in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MeAMkQ6shnzbcBHZmuFCE","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              Swaps the position (z-index) of 2 children

              ","params":[{"identifier":"child","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

              Child to be added

              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"3mef1m0fkwlas32zDakys","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PmVcr6OdeqMa6Wp9DeAOU","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ADYrEgFnYvmeka3v0-gSV","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F2iMPaZLyqrl0N100EkD2","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CjE9wVI1zMdGMlEgLqziL","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vDdJpDP7-9OLrU39T_j3d","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zZGeOXgFp4RpH35MSmluk","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this container.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this container bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3LctCYNM-dMtMu_DYUDsI","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this renderable (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pICghH6Ds6LfKnCM7UW6l","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              container update function.
              \nautomatically called by the application update loop {@link Application}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Container is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"t_lJChg0Fgg-0kao-SxO0","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"FtUbStq77egUSrWENrPBd","name":"Path2D","brief":"","type":"ClassDoc","description":"

              a simplified path2d implementation, supporting only one path

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"RrIEX8tLw70fwt0RRXJTL","name":"arcResolution","brief":"","defaultValue":"5","scope":"instance","type":"PropertyDoc","description":"

              space between interpolated points for quadratic and bezier curve approx. in pixels.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vjOtaxpJBcxmhxryUzY1b","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the points defining the current path

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F3dAzgPxgCixDa4JbPefN","name":"arc","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds an arc to the current path which is centered at (x, y) position with the given radius,\nstarting at startAngle and end...","params":[{"identifier":"x","optional":false,"description":"

              the horizontal coordinate of the arc's center.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the vertical coordinate of the arc's center.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              the arc's radius. Must be positive.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

              the angle at which the arc starts in radians, measured from the positive x-axis.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

              the angle at which the arc ends in radians, measured from the positive x-axis.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

              an optional boolean value. If true, draws the arc counter-clockwise between the start and end angles.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"d6ZbGqX3UzzIR0md3Em5d","name":"arcTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight li...","params":[{"identifier":"x1","optional":false,"description":"

              the x-axis coordinate of the first control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

              the y-axis coordinate of the first control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x2","optional":false,"description":"

              the x-axis coordinate of the second control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y2","optional":false,"description":"

              the y-axis coordinate of the second control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              the arc's radius. Must be positive.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zvz7fI96_qVJH_1I_lXt4","name":"beginPath","brief":"

              begin a new path

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KJA1GD2IfO6NU8L9sBv2V","name":"bezierCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              Adds a cubic Bézier curve to the path.

              ","params":[{"identifier":"cp1X","optional":false,"description":"

              The x-coordinate of the first control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp1Y","optional":false,"description":"

              The y-coordinate of the first control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2X","optional":false,"description":"

              The x-coordinate of the second control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2Y","optional":false,"description":"

              The y-coordinate of the second control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              The x-coordinate of the end point of the curve.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y-coordinate of the end point of the curve.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lirkl3S4uk3PHwct8lJ4G","name":"closePath","brief":"","scope":"instance","type":"MethodDoc","description":"

              causes the point of the pen to move back to the start of the current path.\nIt tries to draw a straight line from the curre...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GrfVcmtWilw-xKABTnXbV","name":"ellipse","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusX and radiusY\nstarting at sta...","params":[{"identifier":"x","optional":false,"description":"

              the x-axis (horizontal) coordinate of the ellipse's center.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y-axis (vertical) coordinate of the ellipse's center.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

              the ellipse's major-axis radius. Must be non-negative.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":false,"description":"

              the ellipse's minor-axis radius. Must be non-negative.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rotation","optional":false,"description":"

              the rotation of the ellipse, expressed in radians.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

              the angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

              the angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

              an optional boolean value which, if true, draws the ellipse counterclockwise (anticlockwise).

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"BvshHUFXuCwXH6pR4zXfh","name":"lineTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              connects the last point in the current path to the (x, y) coordinates with a straight line.

              ","params":[{"identifier":"x","optional":false,"description":"

              the x-axis coordinate of the line's end point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y-axis coordinate of the line's end point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9dfMRgwS3_zFtBp_YLmJM","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              moves the starting point of the current path to the (x, y) coordinates.

              ","params":[{"identifier":"x","optional":false,"description":"

              the x-axis (horizontal) coordinate of the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y-axis (vertical) coordinate of the point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Lk8PY0bDBPCjl7c0rl9Iv","name":"parseSVGPath","brief":"","scope":"instance","type":"MethodDoc","description":"

              Parses an SVG path string and adds the points to the current path.

              ","params":[{"identifier":"svgPath","optional":false,"description":"

              The SVG path string to parse.

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"xqYpEY9tWt4pwPCI0cwIf","name":"quadraticCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              Adds a quadratic Bézier curve to the path.

              ","params":[{"identifier":"cpX","optional":false,"description":"

              The x-coordinate of the control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cpY","optional":false,"description":"

              The y-coordinate of the control point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              The x-coordinate of the end point of the curve.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              The y-coordinate of the end point of the curve.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mLrNFqSwtc6hR-VBulokN","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

              creates a path for a rectangle at position (x, y) with a size that is determined by width and height.

              ","params":[{"identifier":"x","optional":false,"description":"

              the x-axis coordinate of the rectangle's starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y-axis coordinate of the rectangle's starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              the rectangle's width. Positive values are to the right, and negative to the left.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the rectangle's height. Positive values are down, and negative are up.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wN0DqGeLhV_1sbMbNoaUZ","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

              adds an rounded rectangle to the current path.

              ","params":[{"identifier":"x","optional":false,"description":"

              the x-axis coordinate of the rectangle's starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y-axis coordinate of the rectangle's starting point.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              the rectangle's width. Positive values are to the right, and negative to the left.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the rectangle's height. Positive values are down, and negative are up.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

              the arc's radius to draw the borders. Must be positive.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"khbajUipYp4JFMBqaY-Vx","name":"triangulatePath","brief":"","scope":"instance","type":"MethodDoc","description":"

              triangulate the shape defined by this path into an array of triangles

              ","params":[],"returns":[{"description":"

              an array of vertices representing the triangulated path or shape

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"fBtP38uYkkvVmEXBeREaZ","name":"Point","brief":"","type":"ClassDoc","description":"

              represents a point in a 2d space

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"SoAaYr3S14FQzrI5brXYj","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WPvqSDQVwzhRVH0gwC0vW","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              the position of the point on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EpgEx22tB_VZwo1BBzSNY","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              the position of the point on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q2toS_iz1ztEOKkuo0hh9","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this Point

              ","params":[],"returns":[{"description":"

              new Point

              ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rTwVdyb82SlSUguvAZXcI","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if this point is equal to the given point

              ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Point | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qwyME6sw6r1haz6gWtnsz","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the Point x and y properties to the given values

              ","params":[{"identifier":"x","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"SEOXo5LIeD2m7jSdB2mCh","name":"Pointer","brief":"","type":"ClassDoc","description":"

              a pointer object, representing a single finger on a touch enabled device.

              ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"bqhSfTqRVsbFP5zCZaOb6","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UB0-znsCNf3gIjo9yOMDv","name":"button","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button"],"type":"PropertyDoc","description":"

              the button property indicates which button was pressed on the mouse to trigger the event.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HTBwv3uF9ZGKcT5fv_SqV","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the center position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LTeS9AahJHnjdRS7PcgdV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the x axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JvmUL4RdLREuBJBISDycI","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the y axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lmQYIFq-PxUz1xrMIKIBf","name":"clientX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX"],"type":"PropertyDoc","description":"

              the horizontal coordinate within the application's client area at which the event occurred

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SZ8FNPjGLK687VoCzzizX","name":"clientY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY"],"type":"PropertyDoc","description":"

              the vertical coordinate within the application's client area at which the event occurred

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZhDq2Vh9xfVPxS42CzoPc","name":"deltaMode","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode"],"type":"PropertyDoc","description":"

              an unsigned long representing the unit of the delta values scroll amount

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fv_xq3l91Bx2chBeOJzeb","name":"deltaX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX"],"type":"PropertyDoc","description":"

              a double representing the horizontal scroll amount in the Wheel Event deltaMode unit.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yyy2ZA78ZmoBwc4bW-BBg","name":"deltaY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY"],"type":"PropertyDoc","description":"

              a double representing the vertical scroll amount in the Wheel Event deltaMode unit.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jv4vs5vBhuDuP-J1B9ySX","name":"deltaZ","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ"],"type":"PropertyDoc","description":"

              a double representing the scroll amount in the z-axis, in the Wheel Event deltaMode unit.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ah-PmUdNW5d3auM1PiJi6","name":"event","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent","https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent","https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent"],"type":"PropertyDoc","description":"

              the originating Event Object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mc7zIyhIobMA1QPwXVAd0","name":"gameLocalX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event X coordinate relative to the holding container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"azjv_BVxaGr6fGiQPhq2K","name":"gameLocalY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event Y coordinate relative to the holding container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n4z_CovmJ7QbTfDkiWMq2","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event X coordinate relative to the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yBmtN2a0X_0tBt5Wj4kEX","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event Y coordinate relative to the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pcP5I4DTSdq6un0oi4RdU","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event X coordinate relative to the map

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GrJ7xf_i62kumQy5FUhYS","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event Y coordinate relative to the map

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h56lC3wO44RZ8k-dMp6Sh","name":"gameX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event normalized X coordinate within the game canvas itself
              \n

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ALCUt0CbJ9MegzezqZbC-","name":"gameY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              Event normalized Y coordinate within the game canvas itself
              \n

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xbtsiGjtI9qAV0TXU8QvV","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T0YGBXo3oxa1ydP12DQN5","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if not originally a pointer event

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EifK6M9Wl6mexeSoFYcAN","name":"isPrimary","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary"],"type":"PropertyDoc","description":"

              indicates whether or not the pointer device that created the event is the primary pointer.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GB8uS_JFCaB5Kbc1Qv4yl","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"82JXpiNyDcSuSxcimm0NX","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              constant for left button

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V9X0WznGMTkQn4s3qwrPt","name":"locked","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if the pointer is currently locked

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"asEUWOtvQPijV3JMNVkEM","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

              constant for middle button

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zTnaZacBDV2yANwtVfaI4","name":"movementX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX"],"type":"PropertyDoc","description":"

              the difference in the X coordinate of the pointer since the previous move event

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VIDWr0yPxbrxtz-u1OPmo","name":"movementY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY"],"type":"PropertyDoc","description":"

              the difference in the Y coordinate of the pointer since the previous move event

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TPwjEIrgTfLgY2E5l_RJD","name":"pageX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX"],"type":"PropertyDoc","description":"

              the horizontal coordinate at which the event occurred, relative to the left edge of the entire document.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ono3A72TZetVadk2QKGR1","name":"pageY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY"],"type":"PropertyDoc","description":"

              the vertical coordinate at which the event occurred, relative to the left edge of the entire document.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3lOsUMAa3c6nXwXkT6wzY","name":"pointerId","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId"],"type":"PropertyDoc","description":"

              The unique identifier of the contact for a touch, mouse or pen

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"enXy_x9A7n0Eh2Mtkx3Np","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B1lDUebQlh866pQebhEKM","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

              constant for right button

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5QcdxCKoza_ZWYY4c3mE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2UX1R2mak0Mf1m_DoE4QE","name":"type","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/Event/type"],"type":"PropertyDoc","description":"

              a string containing the event's type.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4EPJojWhcRkr43pmsYPl9","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qGZi_2kxbvGVYUbvg114o","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

              x position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AXxdUoU9AsMJZlvSos9zh","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

              y position of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fv97IqJUzTJfrtFUNApUq","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given vertices to the bounds definition.

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"S59BVGLo5qRJURrxDYfDf","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given bounds to the bounds definition.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q8LF7Qho79g4a7LrrCPK9","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given quad coordinates to this bound definition, multiplied by the given matrix

              ","params":[{"identifier":"x0","optional":false,"description":"

              left X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

              top Y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

              right X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

              bottom y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given frame coordinates

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6DGckNMWQuPG3NqzXUp5J","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given point to the bounds definition.

              ","params":[{"identifier":"point","optional":false,"description":"

              the vector or point to be added to the bounds

              ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given point (if the given point is a Vector2d)

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Auw3OzeCiUuybCshDQAMV","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the bounds position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zHSNMGBFw4vB3tBA8tyK0","name":"clear","brief":"

              reset the bound

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XLkSLX8QXviv9Z_t_d8F5","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this bounds

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B0ubbSxfAw-zVrPHiBe3t","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the bounds contains the given point.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the bounds contain the point, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XbDwr5Y04OaO-T-NguooC","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this bounds are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ED-hCbEZIclZgE8CwLidU","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the two bounds intersect.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              True if the bounds overlap, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aQz80M-OKRksH_TdOjBXr","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

              sets the bounds to the given min and max value

              ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hfZhvMQnyzbMXzvfVtCUf","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the bounds to the given x, y position.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SVo3REz7b7R49TfWFs5CA","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this bounds.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this bounds.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"669qQVURHf01HbK9eamuy","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Translates the bounds by the given point

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"V7DRvMLwlDo7tJPcXcHXg","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              Updates bounds using the given vertices

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"9plpTdwYtcClVVNnLBxmg","name":"set","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              initialize the Pointer object using the given Event Object

              ","params":[{"identifier":"event","optional":false,"description":"

              the original Event object

              ","dataType":{"tokens":[{"value":"Event","kind":"canonical"},{"value":"Event","kind":"canonical"}],"template":"%1"}},{"identifier":"pageX","optional":true,"default":"0","description":"

              the horizontal coordinate at which the event occurred, relative to the left edge of the entire document

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pageY","optional":true,"default":"0","description":"

              the vertical coordinate at which the event occurred, relative to the left edge of the entire document

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientX","optional":true,"default":"0","description":"

              the horizontal coordinate within the application's client area at which the event occurred

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientY","optional":true,"default":"0","description":"

              the vertical coordinate within the application's client area at which the event occurred

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pointerId","optional":true,"default":"1","description":"

              the Pointer, Touch or Mouse event Id (1)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"6ZdAXvxhW_SZRMg6Xh8BH","name":"Polygon","brief":"","type":"ClassDoc","description":"

              a polygon Object.
              \nPlease do note that melonJS implements a simple Axis-Aligned Boxes collision algorithm, which requir...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"IaA2cm0noixju9RKpmBVj","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CzQaakcO8-_Il3jIt6Gvb","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

              origin point of the Polygon

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oELD4i4c8qMnHq2mdj-3l","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KdYO-L86zuq4WKI4YW6yv","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this Polygon

              ","params":[],"returns":[{"description":"

              new Polygon

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zIiWZU2AmUMW6IFfRJiRf","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

              origin point of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

              origin point of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

              array of vector defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"y98BtSQIk9AWQ5k1LVG7o","name":"contains","brief":"","examples":[{"caption":"","code":"if (polygon.contains(10, 10)) {\n // do something\n}\n// or\nif (polygon.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the polygon contains the given point.
              \n(Note: it is highly recommended to first do a hit test on the c...","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the polygon contain the point, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7slQEwySB2lXfiUJPekL_","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ITizVJOsCnoo1-O8etcTa","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"SQRNvkTEYWXoFWtgLJVpW","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k7h11rN5mdYiAwMKUEzrR","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2uB55GXEzXkQBcBK69ouS","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FmrIymNq_xpONGFj8NHqF","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given scalar.

              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"imB0_r-oLTG8UvjIZeZCN","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JXmPu8m61adTXwSqgDBqj","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the Polygon

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Polygon

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hLVAEB1ivziQfK8VAFxTd","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0dEAJWPzUqWJkf9u8hAvh","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5LrDDsy4FBJNhW-0h0DJe","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wNHaPz7GUzjv9QpyEQgJ7","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"22-mXYEyhRNtB_5_uiFcm","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the given transformation matrix to this Polygon

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oDgFjjyEQEREu_6r7kc1R","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wd0zP59Gxiwrcu-QrJmEI","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"yAipSwn1E4kotOh5-nN3X","name":"PrimitiveCompositor","type":"ClassDoc","description":"

              A WebGL Compositor object. This class handles all of the WebGL state
              \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"ONVavdvQTajWYeY3ZNkpw","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              an array of vertex attribute properties

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QsBPUamBhY3qvr_H7mYLF","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the shader currently used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UPGQi8iVvJOeYNXXuWRlb","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the default shader created by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DoM3-FUbT4GIRq_wYU7-E","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

              primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KTxtETIEn4GNWZpQV3Jft","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"THo1H_4ptb2llptcFZL8V","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              the vertex data buffer used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4IYFZvEFvtBapraR-OF6_","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ybbE6sPlBfpQWL5pbBLoe","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

              add vertex attribute property definition to the compositor

              ","params":[{"identifier":"name","optional":false,"description":"

              name of the attribute in the vertex shader

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

              number of components per vertex attribute. Must be 1, 2, 3, or 4.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

              data type of each component in the array

              ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

              whether integer data values should be normalized into a certain range when being cast to a float

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

              offset in bytes of the first component in the vertex attribute array

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Hr6CCOd6afqRYIsGQUBLO","name":"bind","brief":"

              called by the WebGL renderer when a compositor become the current one

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rKElwLAF4jJO-rya8zrDL","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"-cD6CmUC2ZEVk23bC2oTl","name":"drawVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              Draw an array of vertices

              ","params":[{"identifier":"mode","optional":false,"description":"

              primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"verts","optional":false,"description":"

              an array of vertices

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}},{"identifier":"vertexCount","optional":true,"default":"verts.length","description":"

              amount of points defined in the points array

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R54EXYVt6LqTHP82uh1hl","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

              Flush batched vertex data to the GPU

              ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

              the GL drawing mode

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JO4-vdOvxfdM-lC4NOtka","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

              set/change the current projection matrix

              ","params":[{"identifier":"matrix","optional":false,"description":"

              the new projection matrix

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IxV53RV5GtQgQi4DqPdpq","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

              Select the shader to use for compositing

              ","params":[{"identifier":"shader","optional":false,"description":"

              a reference to a GLShader instance

              ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"AqYHxxlmJS3IBC3SFrves","name":"QuadCompositor","type":"ClassDoc","description":"

              A WebGL Compositor object. This class handles all of the WebGL state
              \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"isbTQtg5Mn7BCTBBPIhOK","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              an array of vertex attribute properties

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ho8k_Fpp-_sgesLWIGAUI","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the shader currently used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DG1FZPdqBdq1SeqdSWrEc","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the default shader created by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qCppT4EvQ6dF8774JQXUR","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

              primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VYVHfHfujd3rVDb34QiQB","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PiD9_5wTLKHNi2A1C_Hu-","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              the vertex data buffer used by this compositor

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXKXzYobIiGCFN9MoFHm8","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

              the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hs6emJIBzKPzHy5O9rC7Q","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

              add vertex attribute property definition to the compositor

              ","params":[{"identifier":"name","optional":false,"description":"

              name of the attribute in the vertex shader

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

              number of components per vertex attribute. Must be 1, 2, 3, or 4.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

              data type of each component in the array

              ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

              whether integer data values should be normalized into a certain range when being cast to a float

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

              offset in bytes of the first component in the vertex attribute array

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n7MqVswTve1vDgDKrAtK9","name":"addQuad","brief":"","scope":"instance","type":"MethodDoc","description":"

              Add a textured quad

              ","params":[{"identifier":"texture","optional":false,"description":"

              Source texture atlas

              ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

              Destination x-coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              Destination y-coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              Destination width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              Destination height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u0","optional":false,"description":"

              Texture UV (u0) value.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v0","optional":false,"description":"

              Texture UV (v0) value.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u1","optional":false,"description":"

              Texture UV (u1) value.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v1","optional":false,"description":"

              Texture UV (v1) value.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tint","optional":false,"description":"

              tint color to be applied to the texture in UINT32 (argb) format

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"reupload","optional":false,"default":"false","description":"

              Force the texture to be reuploaded even if already bound

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"sbTNQ8L0h_I0ZcaRQUHyF","name":"bind","brief":"

              called by the WebGL renderer when a compositor become the current one

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"df92Ck_eD2XUayOFRp6R9","name":"bindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

              assign the given WebGL texture to the current batch

              ","params":[{"identifier":"texture","optional":false,"description":"

              a WebGL texture

              ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":false,"description":"

              Texture unit to which the given texture is bound

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_HIXxBB0jEQVIc3ZbFlEU","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"-XWtVEhpVs5JfRPTmtLwB","name":"createTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

              Create a WebGL texture from an image

              ","params":[{"identifier":"unit","optional":false,"description":"

              Destination texture unit

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pixels","optional":true,"default":"null","description":"

              Source image

              ","dataType":{"tokens":[{"value":"Image | HTMLCanvasElement | ImageData | Array | Array","kind":"canonical"},{"value":"Image","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageData","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Uint8Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1 | %2 | %3 | %4<%5> | %6<%7>"}},{"identifier":"filter","optional":false,"description":"

              gl.LINEAR or gl.NEAREST

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"repeat","optional":true,"default":"\"no-repeat\"","description":"

              Image repeat behavior (see {@link ImageLayer#repeat})

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"w","optional":true,"default":"pixels.width","description":"

              Source image width (Only use with UInt8Array[] or Float32Array[] source image)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"pixels.height","description":"

              Source image height (Only use with UInt8Array[] or Float32Array[] source image)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"premultipliedAlpha","optional":true,"default":"true","description":"

              Multiplies the alpha channel into the other color channels

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mipmap","optional":true,"default":"true","description":"

              Whether mipmap levels should be generated for this texture

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              a WebGL texture

              ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qzCV2nKWxA78aHCFWU8zz","name":"deleteTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

              delete the given WebGL texture

              ","params":[{"identifier":"texture","optional":true,"description":"

              a WebGL texture to delete

              ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KXyHOcg5xDRoD7xwraNFo","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

              Flush batched vertex data to the GPU

              ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

              the GL drawing mode

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YKo9ABI7yLJPabL1BXqC3","name":"getTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the WebGL texture associated to the given texture unit

              ","params":[{"identifier":"unit","optional":false,"description":"

              Texture unit to which a texture is bound

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              texture a WebGL texture

              ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vp7sntBMHdF0JZkLufAwI","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

              set/change the current projection matrix

              ","params":[{"identifier":"matrix","optional":false,"description":"

              the new projection matrix

              ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"E2mI-C92K4psZxIzJZnJ6","name":"unbindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

              unbind the given WebGL texture, forcing it to be reuploaded

              ","params":[{"identifier":"texture","optional":true,"description":"

              a WebGL texture

              ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":true,"description":"

              a WebGL texture

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              unit the unit number that was associated with the given texture

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e2ZP4L-EV8S4qKHvd5JYJ","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

              Select the shader to use for compositing

              ","params":[{"identifier":"shader","optional":false,"description":"

              a reference to a GLShader instance

              ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"nUE4N0JmuyotozmGIW-CX","name":"QuadTree","brief":"","see":["game.world.broadphase"],"type":"ClassDoc","description":"

              a QuadTree implementation in JavaScript, a 2d spatial subdivision algorithm.

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"9mIZ1I-rqZu6aXjTKR2SV","name":"clear","brief":"","scope":"instance","type":"MethodDoc","description":"

              clear the quadtree

              ","params":[{"identifier":"bounds","optional":true,"default":"this.bounds","description":"

              the bounds to be cleared

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5ZIqZms432kKSI7t2HcJN","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

              the physic world this QuadTree belongs to

              ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}},{"identifier":"bounds","optional":false,"description":"

              bounds of the node

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"max_objects","optional":true,"default":"4","description":"

              max objects a node can hold before splitting into 4 subnodes

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max_levels","optional":true,"default":"4","description":"

              total max levels inside root Quadtree

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"level","optional":true,"default":"0","description":"

              deepth level, required for subnodes

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NrYsUI6w-1p0eW3SqIe33","name":"hasChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the node has any children

              ","params":[],"returns":[{"description":"

              true if the node has any children

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2DyDb_B529jLGj3lkZKta","name":"insert","brief":"","scope":"instance","type":"MethodDoc","description":"

              Insert the given object into the node. If the node\nexceeds the capacity, it will split and add all\nobjects to their corres...","params":[{"identifier":"item","optional":false,"description":"

              object to be added

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"8jYm7appkAocDkh7eHuZ-","name":"insertContainer","brief":"","scope":"instance","type":"MethodDoc","description":"

              Insert the given object container into the node.

              ","params":[{"identifier":"container","optional":false,"description":"

              group of objects to be added

              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YyieG7a44uw_CRgnXw_OR","name":"isPrunable","brief":"","scope":"instance","type":"MethodDoc","description":"

              return true if the node is prunable

              ","params":[],"returns":[{"description":"

              true if the node is prunable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Isz0mzlk_8X-LKPoewKQo","name":"remove","brief":"","scope":"instance","type":"MethodDoc","description":"

              Remove the given item from the quadtree.\n(this function won't recalculate the impacted node)

              ","params":[{"identifier":"item","optional":false,"description":"

              object to be removed

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              true if the item was found and removed.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-0DzF8ixClIBqAWIJb7RO","name":"retrieve","brief":"","scope":"instance","type":"MethodDoc","description":"

              Return all objects that could collide with the given object

              ","params":[{"identifier":"item","optional":false,"description":"

              object to be checked against

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"fn","optional":true,"description":"

              a sorting function for the returned array

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              array with all detected objects

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"EcOjIUhdYW1-VYUKee0Yh","name":"Rect","brief":"","type":"ClassDoc","description":"

              a rectangle Object

              ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"Zbcu7e5zh882IdQhZkJO5","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TogObzvA0g-kC1JnFSLrJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"an2IiAScBwFPdDEvZs4i9","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WBeQKayBfqQDzaN6TAMfB","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xc2SylxA0CztWSCZifVN-","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WEMO8yyCC1MD_qtKuzrFk","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7juv7GyQ1rkokY497hd_y","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

              origin point of the Polygon

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XGWPVtQVTgQQvRgQBTDDs","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pVZH56QR5jUp_PvKctFd8","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fUQFhrtCiblT25Ii7K2Yd","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SMK2TYOhmB4EeSTohGXKS","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UNPReSJNgg76OEpA0WBNx","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gdc6VmFcCs-DjzJUCrqyK","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v9BjyvlLGNwWx_yRjQPpT","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gmMdIjXpViNnvS6wAh6kK","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2kFhZqV0gTR1cyawCy3LY","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uSjoIuM56Q-ydMHChmjtk","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ePLYC8p82HJRFkA6KjTOz","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"icWFNIFl6IAXH4AFlsDul","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"3O8h9RFpWJuHl6YL3_hVp","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BhVN-z8TUhGy89sk3M8gx","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OH-F0cyOdGTnTuwznSTQS","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ij9sVPxGHJUmirxWckXLL","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kEPQeN1uUZdWyncue5wOA","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0x2dIzf75tNaTg9x4gv5J","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RBUNDofFrBBfVVkVjLVYA","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the rectangle

              ","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tN7z7bICgHX85zxk7klhO","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZKUkmubIUDuy-ofLw839L","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eSBYuWYf2e_DVAm75hnjZ","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3imlh8MOFsjDu0QqpBgS7","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3QbXER1bRfDD-Mm3rKUFB","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"48W6L8wAbKlWVuOYaKp4d","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eQD65NMXqntqoey5EM4Nm","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mnTu3OgOxV1dR2RGQXA5p","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the given transformation matrix to this Polygon

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eQkPux9X28g_cg7zcPh7n","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9swF5hHeP_AIaqgZpE8-z","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nzaOtxCWjQRt8NXFl00UK","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"UpWfAvAec_SkXE1R1yAKX","name":"Renderable","brief":"","type":"ClassDoc","description":"

              A base class for renderable objects.

              ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"S_pSVXr3nOGxLQRaDRLyQ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yQ8FZYCubQVY6DwYKueVR","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nEn7Cg0b2ps2gC4xgWM4Z","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yCiq0jpcXoK-SiC6MOgfo","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OEirB4UBGAtEjeVDO0H6C","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LBMjJ-aux_Lr3Ezgbuq7a","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6i4uToVb2aTj5VG9-HVhg","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SVWNGlqPbNpX15OEzXg8g","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VGrFbqReLr_Csl_F4DIel","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rHjiPPTNjbA37w_OW6a0z","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UCJC_6Fxn6XN9d7wDaMsl","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1mEee2NT8CaZWi6GPiOYY","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kuMUYIbkhzW9J5_j0VtJz","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"skCjnYrPIIcWqMydNiVxL","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hYuAwZuEOZ_AdfVAQ4dEg","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kvAgWaDuOIDPBQLELY2TA","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MPKU97Ix_2RWj02yEWUKI","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rgHaOltUlTHFFbB2RvGNT","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cmgBqMkucXw7z3XIK4XAO","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pYu-DR4tCVZ4Fpw5X_X3s","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P-lj4hKnaqP5YZr51ye-u","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5FMCf6mvqsuEjYZDgyB6C","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M1-RqEgBvhFUlnFfQG48x","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygCaXl4iVG8In3837Facv","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1-vY7oU0_4yuvor_YPwMq","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bi0K51heq0xBKJWxx2k0Z","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5T9601hGG4jRCmINgOpu0","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_9Hho7FXgp2-nsD0WC84K","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A84HwOMJGCFQrvOyc3kDB","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EZmKjLQps0O4avlDHxz9c","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cNEaL70bmFQj9o6lh_lno","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ep-TiuoqQH-dLReQs1I0p","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oRsDigTKkcdE6q19rtwvh","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bV4ZZdh8MztRgx5N6CTwp","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T-q75uflHtPKjWp1Re3KC","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oDADdzr-Pvvf8-z3AMtcI","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RjiJLqJCTUZ8bq39311m9","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kZ1qYb4a2NmvLK99kbKqT","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TBk8yIPO_Lxp4_ghD2dmA","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yySNUsDJxterZ9G37b5R4","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              position of the renderable object (accessible through inherited pos.x property)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the renderable object (accessible through inherited pos.y property)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              object width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              object height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TvYFYr3WFdGBliSW3XXMT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WVQpKroOue0kVAhj621cA","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M_IedLxAbNsyvGDFzCZfQ","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HM7UNR-M6LZsNhqg8k6It","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SQah1HYeGIxiXIu3RTYtO","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vQiYULSwDYM6ATn9ip1P1","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NwzWj_GNsMHvSdXoUCeaT","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6dzpfud9GYZkxvRUFkv4Y","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6aEzjEZxAfF3Mw9gYm4at","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d9GjhidB6P17xF8VLyDG_","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"WChrmOgHIzFRHxeCz2uoq","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3_UaCGpl90lj4jJo-II17","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6v5PRYWwBzTzYCixR8Hfb","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hWaWN2COE4OucBTUom6ZO","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mbHs7jAIYREO_ZAr41JFy","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4ftheOccv6YZpJ1JdOWbN","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9xW2UMaWdYHcm8i7xvD9S","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3Vb_Dpwwz51N00fJE4bie","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"S-afs09nAcA3ciz6zjIYj","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"NyYKa3cYYyUdEzCaWXRmN","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tohx5PsqEbSYurdKWf_6I","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hAEOk4leMy6cX0yP6vGXW","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"trJ1SA7xG-CxIk-h09x7w","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YAHZ-0XZhGcCqdzUJm5Tf","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TZLPhlxI1RrP5imLGWuhT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iaSNj3-sxI3spotwPggUN","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iNimitfAIH6ErcMKN35VO","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CwIwrx610Q3kadMGH3-Mt","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eW4lkYJ07GGU_Jai8_7wi","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8J6XeJSpVAL-DWuWX8Lfj","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F3JBjNetbk0oS6XQfNnbr","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j5UNZQ6S4RW95aeWlYtGa","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aBxzrmtQmNPb9gs14I2ge","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lftEgO8mGe_GZfQ7q5w2I","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zm8MqhOYIHmOTRnjHnJG1","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HP9zDSnXNFqyshSRf87nD","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GCwh7wIjVbhIlWAQDKmHi","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"qqSsRMvG3yd-6GLcEr_IK","name":"Renderer","brief":"","type":"ClassDoc","description":"

              a base renderer object

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xoyUEwpHIPQuSwFHXGiXy","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","see":["height"],"type":"ClassDoc","description":"

              return the height of the system Canvas

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"kq1lxNyz1cNRJg4x-aGIu","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"o8TcaKS9OPm1GksChKalj","name":"getWidth","brief":"","access":"public","deprecated":"since 15.12.0","see":["width"],"type":"ClassDoc","description":"

              return the width of the system Canvas

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"yU3NHPVzspWOpTwAj7mi6","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"cAL8C1vh6LyPDutn5uTmE","name":"Texture","brief":"","access":"public","deprecated":"since 10.4.0","see":["TextureAtlas"],"type":"ClassDoc","description":"

              Alias of {@link TextureAtlas}

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"6HOtxGXtcnxkDH5ooL9x5","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"NhQOlWt25TeaQJ28wE2Qr","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

              the default method to sort object ("sorting", "z-buffer")

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8thTATF0792CyAD_4UZvc","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              the requested video size ratio

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ba4ZDBVtpkkogcv-i8HJC","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the height of the canvas which this renderer draws to

              ","params":[],"returns":[{"description":"

              height of the system Canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aWCFZpUbAuKTTzovH7YLN","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              true if the current rendering context is valid

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"khY1ms7MhdWSjD8G8ymcZ","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

              The Path2D instance used by the renderer to draw primitives

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5uQtz41kVeJKAURj_QOWl","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

              the scaling ratio to be applied to the main canvas

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GdidEsm7RbE2yrl11_Now","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The given constructor options

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"db6o6anJ4qBSRpvClKK4y","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

              The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WEyvMyPhjc3AHtyIM3taq","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the width of the canvas which this renderer draws to

              ","params":[],"returns":[{"description":"

              width of the system Canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gbJAnvyFRa4zbSQWU73v8","name":"clear","brief":"

              prepare the framebuffer for drawing a new frame

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gu_2Ee4lczGQKJC7Tr6pU","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

              disable (remove) the rendering mask set through setMask.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x53RW3TVrVcZ3XJLHY2nk","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

              clear the rendering tint set through setTint.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7nkqrt4xcCtDUgxVlNN3N","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

              optional parameters for the renderer

              ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2oByPQKMIJVMIqItz4frC","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

              fill the given shape

              ","params":[{"identifier":"shape","optional":false,"description":"

              a shape object to fill

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"qkivL6ZwJTTPu3AFudbUU","name":"flush","brief":"

              render the main framebuffer on screen

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BWdIZAyMIB_si6fXMiSw3","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the current blend mode for this renderer

              ","params":[],"returns":[{"description":"

              blend mode

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"-ykvHmOUoOP2U0-fF4T-0","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a reference to the canvas which this renderer draws to

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HXaiAtJyjpbFwPMX3uugQ","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the current fill & stroke style color.

              ","params":[],"returns":[{"description":"

              current global color

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b-fN7WUA4UMb79jrAGiKJ","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

              return a reference to this renderer canvas corresponding Context

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"d1XuBQ7M3768tsJne1b7u","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the 2D Context object of the given Canvas
              \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

              use false to disable transparency

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rwmz5oYh1XYXymb2QTFUM","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

              return a reference to the screen canvas

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t-XPCfvJPpFuAcZgRE0E9","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

              return a reference to the screen canvas corresponding 2d Context
              \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AKUdHDPEIvR20G7iE31Cc","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current global alpha

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eraJNWwp1vhKjk3LEhIN5","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if the given rect or bounds overlaps with the renderer screen coordinates

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"g3VJnGJRcEUihrjRHUnJb","name":"reset","brief":"

              Reset context state

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QA2xB9vyH5bme13JUE8nk","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resizes the system canvas

              ","params":[{"identifier":"width","optional":false,"description":"

              new width of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              new height of the canvas

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YDvE1VDBOcKkuoU6mxS4L","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

              enable/disable image smoothing (scaling interpolation) for the given context

              ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"UPMf39E99VHi4yKVcFB5n","name":"setMask","brief":"","scope":"instance","type":"MethodDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[{"identifier":"mask","optional":true,"description":"

              the shape defining the mask to be applied

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

              either the given shape should define what is visible (default) or the opposite

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"9-aENT6nUpsm5cz7dgum8","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

              set/change the current projection matrix (WebGL only)

              ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zh7kBVGIW1IuR-PjEb4fH","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

              set a coloring tint for sprite based renderables

              ","params":[{"identifier":"tint","optional":false,"description":"

              the tint color

              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

              an alpha value to be applied to the tint

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2WuwpBnEDmsv5K8eT0szf","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

              stroke the given shape

              ","params":[{"identifier":"shape","optional":false,"description":"

              a shape object to stroke

              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

              fill the shape with the current color if true

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"EpTelWoNnL9R6KWWIaEj6","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

              tint the given image or canvas using the given color

              ","params":[{"identifier":"src","optional":false,"description":"

              the source image to be tinted

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

              the color that will be used to tint the image

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

              the composition mode used to tint the image

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              a new canvas element representing the tinted image

              ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"XBLGv9TglHSkSRVQjrama","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

              creates a Blob object representing the last rendered frame

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a Blob object representing the last rendered frame

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dV_8ngSmFgXxrQmnP7xau","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

              returns a data URL containing a representation of the last frame rendered

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning a string containing the requested data URL.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J_K2p6vNuHmc0kg-Nd-h3","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

              creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

              ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

              A string indicating the image format

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

              A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              A Promise returning an ImageBitmap.

              ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"ZS8kyp8UmBqUIGMj5IVf8","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

              An object representing the result of an intersection.

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"NDbka82VRTIopyqlvOlUQ","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The first object participating in the intersection

              "},{"id":"2ND6BsjC1eQM5ujDzOlp9","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Whether the first object is entirely inside the second

              "},{"id":"R5bzd2VaIg4RfHoSyhhz6","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The second object participating in the intersection

              "},{"id":"eWVBFRTlCoW2Ay0zDBCFe","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Whether the second object is entirely inside the first

              "},{"id":"gSPGkuNWqUUO75Wg43Smg","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The index of the colliding shape for the object a body

              "},{"id":"EKAaaihH2EZ-QeMfAscoF","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The index of the colliding shape for the object b body

              "},{"id":"3pZzCy5miYQkDwq7EYibu","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Magnitude of the overlap on the shortest colliding axis

              "},{"id":"pxsL_2h7bb7P3ZfXBbIxZ","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The shortest colliding axis (unit-vector)

              "},{"id":"6CiTJarK_KQqDdqy5oxaa","name":"overlapV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The overlap vector (i.e. overlapN.scale(overlap, overlap)). If this vector is subtracted from the position of..."},{"id":"2A9q6SGttUbpUelfma-Gm","name":"clear","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

              Set some values of the response back to their defaults.
              \nCall this between tests if you are going to reuse a single this object for chaining

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"_3w8Yy1waKXQoBY1u7hCV","name":"RoundRect","brief":"","type":"ClassDoc","description":"

              a rectangle object with rounded corners

              ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"7odz-jvnCCOmuVXQqkUJl","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kZKeUhzf38lJrfLsLakRA","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uO19oRDcJJNVBzLRLVi2H","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jqjuGfqCvpdx6lwZ0Q7mA","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_gKHElnBspjeTT73KRXe8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P-KcD6IoWRpO17GtH_ktk","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ibw74fFlXfRjEpuHc1L24","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

              origin point of the Polygon

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_pPwWu784O4vzVcyohcSN","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

              the radius of the rounded corner

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oG4-eZ_kU84W9SitHjfMG","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cfYu--Y7brH7UUcOqR5JE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vI1CLagc9nsHt4_aPkwCN","name":"type","brief":"","defaultValue":"\"RoundRect\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JZTF3lPzmv5FpZ2RGkmSH","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rk9wi4l6z5einOalGCjWE","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5aF-kXuzgD8BiQmSTfUmV","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this RoundRect

              ","params":[],"returns":[{"description":"

              new RoundRect

              ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ji5mjxbSUoXRV77JRWw-2","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              position of the rounded rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the rounded rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

              the rectangle width

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

              the rectangle height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":true,"default":"20","description":"

              the radius of the rounded corner

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"bKqrwZKYiGO3l-kSkB4Ib","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rounded rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a Rect to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rounded rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aJ0jGrviHhRf5pLZvk0mw","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position, size and radius of the given rounded rectangle into this one

              ","params":[{"identifier":"rrect","optional":false,"description":"

              source rounded rectangle

              ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BHNbiFiC9csB6d3Jxv_6e","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this RoundRect is identical to the specified one

              ","params":[{"identifier":"rrect","optional":false,"dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BI7kY7lM5hR6tRNGJT1J3","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VtskGl-8usX_bC7C2OQAy","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_tIS14ldT-msPmwnWolDt","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Uker7tBIS8npMh8PVvRcu","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Tre9tpQdMOlRZpD0g_K9x","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UqWTWgrZhMbUVHsf0A2lK","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dC6frD61pT5msTM53O0Jv","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y_zjyqVcAwkKLfGm4KOGc","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KQ-_uGN1-9WtMvXBzxG5G","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the rectangle

              ","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V74Tb-zwluveinDcKwcAE","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              Scale this Polygon by the given vector

              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dE4OiSd-JfGNUJz5z7dFu","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tg04yx8FFihvIxWsCwQi1","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q9u8Uxh3YFtv2k2ejupor","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VOsON9yc1lkiWezKHPCW7","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hsvKULGw-w5R0Xp-55uPk","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P1zY6utB6x6ctnk0stwBO","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2lzekCtW-LQshiO5h5qTm","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply the given transformation matrix to this Polygon

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KGY8j0kUmQOUqOgR7Mg5M","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JfpcBrRevm1PZ06R6cBW6","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GwytBh5s6423tRdAsoQFz","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"U9bhQO-n4Wog-5D1YS4Fm","name":"Sprite","brief":"","type":"ClassDoc","description":"

              An object to display a fixed or animated sprite on screen.

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"6n5lcT8WjwDHqRLHbXL5c","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YhP5fkoLBxCtyeC69zI0U","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2FfUI8rcC2jgogh_jJOyh","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"80dE8kXYyeHeew2Hd_K9V","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nd52Fk2z1R-Y6EKFDwV5S","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j0LDEkOY9eDE0lqYjc13x","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

              animation cycling speed (delay between frame in ms)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3OnYFx5tB0RGk65UwD0_r","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cxnu9I72tJQeggf2DrmLR","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mVrRPLO3H5KU_jzApU3BC","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Lx_gyD4ES3iUv5azHSJja","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sQ4RV44gssjr_d1SSsXJ7","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sW5BdeukauAW3nAcl0dcb","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4j0e-Bb2iIL8M8-qPxVMe","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h6_mjSyGy1ELrK-TgHdAG","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9I0byd2fxagyKNeuLTmih","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OQLkH6sLD8ktDBxaS-jBF","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0bvEOipCwDNB-hDiCXzRI","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hxtOEh3r0TQ9MXF-LBQdd","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CexJIeY805d1Q_kwWKFIj","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XcIZO5SBE_KnyZNQ13L5X","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aVlGQRqPGeN4u2rTav7Qp","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nbakFWEfXQBKZiaOE1duu","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bT817NCRG08wNOilSbo7b","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-XWWX4TT7UXEpFsyDWDdR","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W5GnCmWUcENAR-6SqOmFj","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fu_dvo2RbfUoXli3z3Lp6","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TK97oo0u9UshOvaV33pHN","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56-6JaTZ71dhUtM2TkBDz","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PAdyYL1ZY_455aP6M3iEQ","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

              global offset for the position to draw from on the source image.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eOV-xrL53W3sXsIVEHafo","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jA8ME9rIxpPymJrm1yVXa","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fLlexfP7f0hXOlJj05jc0","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GuLzsutP5IXmwaA2o9Xv8","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-HHkLK1oC_S6cmFHHCG16","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YMBMlf_A4OsJLHgpvvu80","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UBtjNIYqfbc03_44xQWLL","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              The source texture object this sprite object is using

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9lKD2n6H3PYzxiHZgMUXP","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fpnxxLWPR2WHDmbEp0HZj","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LBfyR3gwm-IRSFvszvITC","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"28Oi6W97JbOmSTbZX7A5k","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hdFpXODUnObIueb1Qr-4Z","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H7luJFM0WUBYhZCkZoUkE","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              add an animation
              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

              cycling speed for animation in ms

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              frame amount of frame added to the animation (delay between each frame).

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uscQ7fBOcQfmJgEh6IfJR","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4Gbgp_1arPLkjmi1FfksP","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CMm8tRY4Yy9FjBH4JpnOS","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pqmEUHPwadq5BDamjxHWT","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a single sprite from a standalone image, with anchor in the center\n let sprite = new me.Sprite(0, 0, {\n image : \"PlayerTexture\",\n framewidth : 64,\n frameheight : 64,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n\n // create a single sprite from a packed texture\n mytexture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n let sprite = new me.Sprite(0, 0, {\n image : mytexture,\n region : \"npc2.png\",\n });\n\n // create a video sprite\n let videoSprite = new me.Sprite(0, 0, {\n image : me.loader.getVideo(\"bigbunny\"),\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n // scale the video sprite\n videoSprite.currentTransform.scale(2);\n // start playing the video (if video is preloaded with `autoplay` set to false)\n videoSprite.play();"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              the x coordinates of the sprite object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinates of the sprite object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              Configuration parameters for the Sprite object

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

              reference to spritesheet image, a texture atlas, a video element, or to a texture atlas

              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | %4 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

              name of this object

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

              region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

              Width of a single frame within the spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

              Height of a single frame within the spritesheet

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

              a tint to be applied to this sprite

              ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

              flip the sprite on the horizontal axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

              flip the sprite on the vertical axis

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

              Anchor point to draw the frame at (defaults to the center of the frame).

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jTXTt_DgJ9Be1VPDQpFjR","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_Q5dsRh71dA8u2Z4xGdu_","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x-Uc0gRsOZtD0mCUPb8PS","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fGfxC19_EkZDRqlYFkxP_","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4e0_QUd_9OfyEiELLT5CZ","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

              make the object flicker

              ","params":[{"identifier":"duration","optional":false,"description":"

              expressed in milliseconds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

              Function to call when flickering ends

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sIvqotQoFdOtZHXW4x_wV","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3CGztgiyO8rMTW6CiAEHn","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eghSkcNPA13Qr1l15Nkzd","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wlgkZ_hL2eWBjrfLDGRbN","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RNbxA0mNYJNECiMt5aGtH","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the current animation frame index.

              ","params":[],"returns":[{"description":"

              current animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rezy5zLt-cvqMbzBEXorg","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"A6r_KpnIBB7kp1rqDRav3","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_hv6Iddy0oZjDcUoITx7Z","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"R6C5ot1rwJdY40KMRUSBt","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

              return true if the specified animation is the current one.

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UX_L5G-oGzHxTQiNObXge","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XqErwPW6XpQyfQzuJ3TNo","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the flickering state of the object

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lwMmvbdCUt7X54sUJrmHO","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VELJ1hrfs_RCCrwEFWYiF","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EEgDkzVC5K8QNsEZXDtt5","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zJan4qOb7Mre8bxg4FHzr","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TEha9y3L95dzeVeynMa-w","name":"pause","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2QiFiLJUPvVK2n7-ejrtv","name":"play","brief":"

              play or resume the current animation or video

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f6qTumi34Xrtkq9ahLLQR","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"i1mOBtmYSaPmXYfDPLPeZ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"wXUhNmkbkxsCByve4duKN","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zCtw-uudQbYX9dL6LuwdC","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j3iQERVw6nH6KY2qD559G","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

              reverse the given or current animation if none is specified

              ","params":[{"identifier":"name","optional":true,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ATxRdNLr0FYrqY7RY8apj","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3zOTMDwT54S3pRJxteSNv","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Tr5SVANNMVoVHBUMfqOf","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"38k3yeYKMLWb-gP3TeKaG","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

              force the current animation frame index.

              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

              animation frame index

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jEjSk4xZXSpcXxG1FDktN","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

              set the current animation\nthis will always change the animation & set the frame to zero

              ","params":[{"identifier":"name","optional":false,"description":"

              animation id

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

              animation id to switch to when complete, or callback

              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

              if false will reset the elapsed time counter since last frame

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"afmW2S18O7P8xCkIWwKof","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_ibUkI72Uwi0sUCsq7fm6","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

              change the current texture atlas region for this sprite

              ","params":[{"identifier":"region","optional":false,"description":"

              typically returned through me.Texture.getRegion()

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FpOGys4q4AsKPwHZLaI9k","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_9JYMKH168ezujw-EaT6S","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3lA8GBsT6-61ziToDTedg","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tFntVEPVgozs1aj011-mu","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WTfFaxFhRJT0FVOhLC4z2","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0YnHlQ60hJZP2caqbJOBn","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jNOJq4_S6vsQv8chu5RpP","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e4dc2DZDnaPl9o0uTf2qo","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zTZrX_y4GkalfSStDFoPV","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XV0P3a-S0PR-CcTOHs_EP","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0nVEtNXd6DSGc0NeFXavz","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              draw this srite (automatically called by melonJS)

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

              the viewport to (re)draw

              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hPqyKn-o2aGCucc6UpROd","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

              update function.
              \nautomatically called by the game manager {@link game}

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the Sprite is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oq4yjRd8DccI0SZdVZ2fG","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"PnEancPYSjwo1nnR3X90H","name":"Stage","brief":"","see":["state"],"type":"ClassDoc","description":"

              a default "Stage" object.\nevery "stage" object (title screen, credits, ingame, etc...) to be managed\nt...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"N1YK2vBm6ZwYl7_iMgPCK","name":"ambientLight","brief":"","access":"public","defaultValue":"\"#000000\"","scope":"instance","see":["Light2d"],"type":"PropertyDoc","description":"

              an ambient light that will be added to the stage rendering

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hFinOjC1TrTi5qwGdnxjZ","name":"cameras","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The list of active cameras in this stage.\nCameras will be renderered based on this order defined in this list.\nOnly the &q...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g0wY9OZo30vdvmsmNs2Ci","name":"lights","brief":"","access":"public","examples":[{"caption":"","code":"// create a white spot light\nlet whiteLight = new me.Light2d(0, 0, 140, \"#fff\", 0.7);\n// and add the light to this current stage\nthis.lights.set(\"whiteLight\", whiteLight);\n// set a dark ambient light\nthis.ambientLight.parseCSS(\"#1117\");\n// make the light follow the mouse\nme.input.registerPointerEvent(\"pointermove\", me.game.viewport, (event) => {\n whiteLight.centerOn(event.gameX, event.gameY);\n});"}],"scope":"instance","see":["Light2d","Stage.ambientLight"],"type":"PropertyDoc","description":"

              The list of active lights in this stage.\n(Note: Canvas Renderering mode will only properly support one light per stage)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ii-uWXy_oaetwE17xfLXZ","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              The given constructor options

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x5BXq7-puAz_0hT2j9uBD","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"settings","optional":true,"description":"

              The stage` parameters

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.cameras","optional":true,"default":"[new me.Camera2d()]","description":"

              a list of cameras (experimental)

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"settings.onResetEvent","optional":true,"description":"

              called by the state manager when reseting the object

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.onDestroyEvent","optional":true,"description":"

              called by the state manager before switching to another state

              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"9fPg50D3egiaiskie76-3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              onDestroyEvent function
              \ncalled by the state manager before switching to another state

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qej_Lt2-_r51e98qRQEp-","name":"onResetEvent","brief":"","scope":"instance","see":["state#change"],"type":"MethodDoc","description":"

              onResetEvent function
              \ncalled by the state manager when reseting the object\nthis is typically where you will load a lev...","params":[{"identifier":"...arguments","optional":true,"variadic":true,"description":"

              optional arguments passed when switching state

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"EvxPaPcxz_LaJEAGLN8Dw","name":"Text","brief":"","type":"ClassDoc","description":"

              a generic system font object.

              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"E4IiI2KT_nIEZzMiYi0Aq","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

              Define the renderable opacity
              \nSet to zero if you do not wish an object to be drawn

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JoNXCQSg06FYvehE-tr7-","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object will always update, even when outside of the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"74cGq6HGuNzbKmZGxsFea","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kM1N76P1KOyfFog82A8tx","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

              The anchor point is used for attachment behavior, and/or when applying transformations.
              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lk5hFzv9xoqIcB0VnGtnf","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N3NIhD3h67-xzPGM2xaOi","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HEdlb8aobZT_ZHyzSIcHI","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

              the renderable physic body

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d-ZsXf144HFrhS7tW17St","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DledI629Iw9shAa90Cp-K","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jS35JZoCxeoI2C5ns6-Wl","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nK03-dOv2CW7LNvCCUCO1","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6FyhIxDELD7o2c04gYmoT","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IbtIFo4f_HpDjeEIsOPef","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

              defines the color used to draw the font.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aywz0E1Dd96cQgkNe99yK","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e8u_I-dw_W3C89aAq15Vt","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

              the font size (in px)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-nxWV0LxE6zoORmwt2nxG","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

              (G)ame (U)nique (Id)entifier"
              \na GUID will be allocated for any renderable object added
              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0_u2yDlFxFAbeR_rwdoCa","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Lrf9Ltxlnrt1SJRGmJCd_","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether the renderable object is visible and within the viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IQ4ioLtwWJsUMHrN_1qQ0","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              when true the renderable will be redrawn during the next update cycle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PBGSDVC_jRLQLuSssR9Z0","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WSVItfR9RHow9sec87BtT","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

              returns true if this renderable is flipped on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TGkSKg-VKrcVXG0MrLdef","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oX7JBnWohZD7kznkWbeDy","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

              If true then physic collision and input events will not impact this renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"62SILwTSXANxAF-DqBxf1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gz4Xfgq7eDUAosZo9f8-Z","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OwPt17xKGRNl9ZKBOYQfM","name":"lineHeight","brief":"","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

              Set the line spacing height (when displaying multi-line strings).
              \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MrgtNTJHSexDzysIe812b","name":"lineWidth","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

              sets the current line width, in pixels, when drawing stroke

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j07YiYEgNWhmeAbW5zDfS","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HHbXaqUEzS18bn2JlcqqX","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k98SvV4KBz_kqe9D-IW0j","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

              an event handler that is called when the renderable leave or enter a camera viewport

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MWUcaEaH0TYxEDRHbDd4X","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

              returns the parent application (or game) to which this renderable is attached to

              ","params":[],"returns":[{"description":"

              the parent application or undefined if not attached to any container/app

              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XHck1RM1yfNau85QBixzN","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

              Array of points defining the Polygon
              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OumtrGsbBEEpPoAf0sWtc","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eXs6bADczwzEDpLstRYfY","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tz0QSGVKNWNenJj8z4pY6","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EOWQio92wGn4tYpObjid6","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

              defines the color used to draw the font stroke.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2kHVNvOKyp9dxn90iCwNk","name":"textAlign","brief":"","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

              Set the default text alignment (or justification),
              \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c7FG0wN3AExGWiv6Q9_bu","name":"textBaseline","brief":"","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

              Set the text baseline (e.g. the Y-coordinate for the draw operation),
              \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jci5Rt0ewBrE21PNw7Yj-","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-C5Pn9ldRrMD3Uu2rE3Y1","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dTXXWFykIndeQ12Z4rI50","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g3avjT6kivVXp02baJbF4","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              Whether to update this object when the game is paused.

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1GoVFL16ZTr3HCL6yulfK","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xNrtYcg5lmbJVuNWiO1AY","name":"wordWrapWidth","brief":"","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

              the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iEowos8HxnIZSpw4av-TQ","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

              the text to be displayed

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Co_I0Qg_BbdFgxUFPz2yg","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the angle to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              angle in radians

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7AmD6nJJeps2oH14ZXUG4","name":"bold","brief":"","scope":"instance","type":"MethodDoc","description":"

              make the font bold

              ","params":[],"returns":[{"description":"

              this object for chaining

              ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UbXsOUxklIiNMie47xWfG","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the rectangle position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xQK7SvU55t90fVFR4trCT","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this rectangle

              ","params":[],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v-cSF87RJGgfEsowz5vts","name":"constructor","brief":"","examples":[{"caption":"","code":"let font = new me.Text(0, 0, {font: \"Arial\", size: 8, fillStyle: this.color});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

              position of the text object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the text object

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

              the text configuration

              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

              a CSS family font name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","description":"

              size, or size + suffix (px, em, pt)

              ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.fillStyle","optional":true,"default":"\"#000000\"","description":"

              a CSS color value

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.strokeStyle","optional":true,"default":"\"#000000\"","description":"

              a CSS color value

              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"0","description":"

              line width, in pixels, when drawing stroke

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

              horizontal text alignment

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

              the text baseline

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

              line spacing height

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

              anchor point to draw the text at

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

              the maximum length in CSS pixel for a single segment of text

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"default":"\"\"","description":"

              a string, or an array of strings

              ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"D_vVWlm8Tjh_a6ew_ZXlJ","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the rectangle contains the given point or rectangle

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point, or a rectangle to test

              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the rectangle contain the given point or rectangle, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"e05pGxb1HtjhbN7EkI5PH","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

              copy the position and size of the given rectangle into this one

              ","params":[{"identifier":"rect","optional":false,"description":"

              Source rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              new rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qjv2VBIQAWBhiSxhXPTgF","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the distance to the specified target

              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              distance

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lFC-wR5W4eHN6NMTFDPNs","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

              draw a text at the specified coord

              ","params":[{"identifier":"renderer","optional":false,"description":"

              Reference to the destination renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CrzCeIPPDwt5o_GNLaLWb","name":"drawStroke","brief":"","deprecated":"since 15.0.0","scope":"instance","type":"MethodDoc","description":"

              draw a stroke text at the specified coord, as defined by the lineWidth and fillStroke properties...","params":[{"identifier":"renderer","optional":false,"description":"

              Reference to the destination renderer instance

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aOyDS6u_jMZG41SW0v4Nv","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is identical to the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if equals

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ndURkq96OwdTsj0ZKYaAp","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

              flip the renderable on the horizontal axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8O3anW8MMOz38LiHMlWqE","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

              flip the renderable on the vertical axis (around the center of the renderable)

              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

              true to flip this renderable.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W4zIVxkPCmPV_Rjf2gng7","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

              return the renderable absolute position in the game world

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LPVMtjherP8yC0cp9c7F4","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns the bounding box for this renderable

              ","params":[],"returns":[{"description":"

              bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qm-8XL8d1CZt0-Ee3rJWv","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

              returns a list of indices for all triangles defined in this polygon

              ","params":[],"returns":[{"description":"

              an array of vertex indices for all triangles forming this polygon.

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"5Yuuw_l7nwK79KHHmLice","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              get the renderable alpha channel value

              ","params":[],"returns":[{"description":"

              current opacity value between 0 and 1

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y7mO-7uAC10dDzRdXjMLo","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

              ","params":[],"returns":[{"description":"

              true if the vertices are convex, false if not, null if not computable

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ywOZ6kH_3laXeoWWL9cPr","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this rectangle are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C5z736waIcmi6ONRoj0Id","name":"italic","brief":"","scope":"instance","type":"MethodDoc","description":"

              make the font italic

              ","params":[],"returns":[{"description":"

              this object for chaining

              ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2SgwNpN0vdkmDtAi9O6i_","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable towards the given target.

              ","params":[{"identifier":"target","optional":false,"description":"

              the renderable or position to look at

              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2AUdIKGRjowYnsxDIABXK","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

              measure the given text size in pixels

              ","params":[{"identifier":"renderer","optional":false,"description":"

              reference to the active renderer

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"description":"

              the text to be measured

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

              a TextMetrics object defining the dimensions of the given piece of text

              ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DV_WnsFMNekQna25SQRHl","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

              ","params":[{"identifier":"response","optional":false,"description":"

              the collision response object

              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

              the other renderable touching this one (a reference to response.a or response.b)

              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

              true if the object should respond to the collision (its position and velocity will be corrected)

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DdbtgtXQfmgN9gDFQU3L3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zEkuQkdKIKvewici2fh1a","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              check if this rectangle is intersecting with the specified one

              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              true if overlaps

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"M7s-m-QiJlSGb5lf5EPje","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

              restore the rendering context after drawing (automatically called by melonJS).

              ","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"YM4UsUF_vfpv__aRxpHff","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

              a renderer object

              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"z5Hn1yT2lZ3UajOgwJYUD","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sOqGg4FsbnEU8_e0YR6bU","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

              resize the rectangle

              ","params":[{"identifier":"w","optional":false,"description":"

              new width of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

              new height of the rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-5FkROW0n04DpB_Zzn6_g","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

              Rotate this renderable by the specified angle (in radians).

              ","params":[{"identifier":"angle","optional":false,"description":"

              The angle to rotate (in radians)

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

              an optional point to rotate around

              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FzfWRutYAaRR5NH8uY6b3","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

              a number representing the abscissa of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

              a number representing the ordinate of the scaling vector.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Gmx1SjXcN4gajHlsEIrO_","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

              scale the renderable around his anchor point

              ","params":[{"identifier":"v","optional":false,"description":"

              scaling vector

              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r8wUzAGvbtnFxKW5-rAuz","name":"setFont","brief":"","examples":[{"caption":"","code":"font.setFont(\"Arial\", 20);\nfont.setFont(\"Arial\", \"1.5em\");"}],"scope":"instance","type":"MethodDoc","description":"

              set the font family and size

              ","params":[{"identifier":"font","optional":false,"description":"

              a CSS font name

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":true,"default":"10","description":"

              size in px, or size + suffix (px, em, pt)

              ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}}],"returns":[{"description":"

              this object for chaining

              ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wgdYGzryr5QMqXkxf2Qtl","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the renderable alpha channel value

              ","params":[{"identifier":"alpha","optional":false,"description":"

              opacity value between 0.0 and 1.0

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xhXlygb_HQJPvXYgVjSNb","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

              set new value to the rectangle shape

              ","params":[{"identifier":"x","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              position of the Rectangle

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

              width of the rectangle, or an array of vector defining the rectangle

              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

              height of the rectangle, if a numeral width parameter is specified

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"16Rie0FRO85NZFuxaco5F","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

              change the text to be displayed

              ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

              a string, or an array of strings

              ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

              this object for chaining

              ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iMIDlzVI7CLTIKvbdS1r_","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

              set the vertices defining this Polygon

              ","params":[{"identifier":"vertices","optional":false,"description":"

              array of vector or vertice defining the Polygon

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

              this instance for objecf chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4LnsGZFt-u94T92sJFXLo","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the Polygon to the given position vector.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_Bdy8-MBEwNyCy0757glr","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply a 2d projection to this shapen

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YLFQyU3qO5zArn2OXubpa","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

              apply an isometric projection to this shape

              ","params":[],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w-3bQqlynZYXTHKsOG-jI","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this box.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this rectangle.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"itq2AtPp9Kzqw4o7FIK0k","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

              multiply the renderable currentTransform with the given matrix

              ","params":[{"identifier":"m","optional":false,"description":"

              the transformation matrix

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9J0Zr877LvT16t3XJwrdb","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              translate the Polygon by the specified offset

              ","params":[{"identifier":"x","description":"

              x offset or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y offset

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              Reference to this object for method chaining

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J8NREsGNtF6OeyHRvqB-1","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

              merge this rectangle with another one

              ","params":[{"identifier":"rect","optional":false,"description":"

              other rectangle to union with

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

              the union(ed) rectangle

              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d552qQk17QG3PUVn3mF4L","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              update function (automatically called by melonJS).

              ","params":[{"identifier":"dt","optional":false,"description":"

              time since the last update in milliseconds.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              true if the renderable is dirty

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lulh9h8BSnUqA0T5O6YPx","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              update the bounding box for this shape.

              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

              update the bounds size and position in (world) absolute coordinates

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

              this shape bounding box Rectangle object

              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1U4dh3RWwfuJvt_J9MUo-","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

              called when the anchor point value is changed

              ","params":[{"identifier":"x","optional":false,"description":"

              the new X value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the new Y value to be set for the anchor

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"MV1FuPd5QisgUsdUPd3CG","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

              a Text Metrics object that contains helper for text manipulation

              ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"tRTSK-tnW6grLxsOv1TXG","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

              a reference to the parent object that contains this TextMetrics object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4RW3Q6E23EwECfYB5oyu7","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DRRFKUKy65ZVe_2Mp-_OM","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

              return the center position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ys8OlIAsEcoGQlGSV8gU0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the x axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"34VpLS51ciivdzIOb_KbD","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              center position of the bound on the y axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nEMWDA6sp-_nWICcmg4Zm","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v2Tg07RXnvlxdVgP0AYQF","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3RVxoTnir9sBgRsc--0Gy","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_AKhjaw8xUpAWZaSI4z8i","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RSvEdJbudWcUuMAGkDMoM","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

              the object type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uNvsbyKWAQdomUORqIZcu","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8XT2UqlEIqLLJIHUQyuXj","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

              x position of the bound

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M4jBZo41KFVWNDxVFgc8p","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

              y position of the bounds

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1UoxbN04-xBrW7q-u3iVg","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given vertices to the bounds definition.

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"r0eP23oN13DqNsl3bvMqK","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given bounds to the bounds definition.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

              either to reset the bounds before adding the new vertices

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"bqnke12P5_R8G3_31cca-","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given quad coordinates to this bound definition, multiplied by the given matrix

              ","params":[{"identifier":"x0","optional":false,"description":"

              left X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

              top Y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

              right X coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

              bottom y coordinates of the quad

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given frame coordinates

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RiHPzNm192b-En8uC6XkR","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

              add the given point to the bounds definition.

              ","params":[{"identifier":"point","optional":false,"description":"

              the vector or point to be added to the bounds

              ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

              an optional transform to apply to the given point (if the given point is a Vector2d)

              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8EAgVa3h6AxHeU93lAMuM","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

              center the bounds position around the given coordinates

              ","params":[{"identifier":"x","optional":false,"description":"

              the x coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

              the y coordinate around which to center this bounds

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"l_Mf1RVG0Wuvv_Z3VA2tY","name":"clear","brief":"

              reset the bound

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uqfCXvQ_dlq4kI954TeK5","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

              clone this bounds

              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VICSS1Z_zFRlyvsd48WJy","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

              the parent object that contains this TextMetrics object

              ","dataType":{"tokens":[{"value":"Text | BitmapText","kind":"canonical"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GE2BXLz24vPVPn4F9T8O6","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

              Returns true if the bounds contains the given point.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to check

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

              y coordinate

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              True if the bounds contain the point, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lSLV0jBuLG625i6f4eIVO","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

              determines whether all coordinates of this bounds are finite numbers.

              ","params":[],"returns":[{"description":"

              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1kbEfLOGiezJIYIwXT1_j","name":"lineHeight","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the height of a segment of inline text in CSS pixels.

              ","params":[],"returns":[{"description":"

              the height of a segment of inline text in CSS pixels.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ovlex9IE2bwu0r4SUIlUn","name":"lineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns the width of the given segment of inline text in CSS pixels.

              ","params":[{"identifier":"text","optional":false,"description":"

              the text to be measured

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

              reference to an active 2d context for canvas rendering

              ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              the width of the given segment of inline text in CSS pixels.

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9glzPQl6c75OwuYEtZ9dW","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

              measure the given text size in CSS pixels

              ","params":[{"identifier":"text","optional":false,"description":"

              the text to be measured

              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

              reference to an active 2d context for canvas rendering

              ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              this

              ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kBiA123namIuDZDMdRbgb","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns true if the two bounds intersect.

              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

              True if the bounds overlap, otherwise false

              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eIIujtTwvH_KZ1EKJrYzX","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

              sets the bounds to the given min and max value

              ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QQtoWmT4lC5-IvQDM6LTF","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Shifts the bounds to the given x, y position.

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to shift to

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"oTVGi0M5mkTt-DSlJy9mR","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Returns a polygon whose edges are the same as this bounds.

              ","params":[],"returns":[{"description":"

              a new Polygon that represents this bounds.

              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u1se872-lj-FYefvassrs","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

              Translates the bounds by the given point

              ","params":[{"identifier":"x","description":"

              x coordinate or a vector point to translate by

              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xx_I28kzhyXN3iXxK5ChV","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

              Updates bounds using the given vertices

              ","params":[{"identifier":"vertices","optional":false,"description":"

              an array of Vector2d or Point

              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"DZemd86VBVWfjmPVku8hE","name":"wordWrap","brief":"","scope":"instance","type":"MethodDoc","description":"

              wrap the given text based on the given width

              ","params":[{"identifier":"text","optional":false,"description":"

              the text to be wrapped

              ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}},{"identifier":"width","optional":false,"description":"

              maximum width of one segment of text in css pixel

              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"context","optional":true,"description":"

              reference to an active 2d context for canvas rendering

              ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

              an array of string representing wrapped text

              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"JQ6Np0e4lvoQszQKa04H2","name":"TextureAtlas","brief":"","type":"ClassDoc","description":"

              A Texture atlas class, currently supports :

              \n
                \n
              • [TexturePacker]{@link http://www.codeandweb.com/texturepacke...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"nRy4bHBtXUtUtTVR6NWUL","name":"addRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                add a region to the atlas

                ","params":[{"identifier":"name","optional":false,"description":"

                region mame

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

                x origin of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y origin of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                height of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the created region

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"WollXK2k7i7hz3GIDCX3G","name":"addUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                add uvs mapping for the given region

                ","params":[{"identifier":"atlas","optional":false,"description":"

                the atlas dictionnary where the region is define

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

                region (or frame) name

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"w","optional":false,"description":"

                the width of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                the height of the region

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the created region UVs

                ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wSWa97Y_JSIAY6PkRRD3A","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a texture atlas from a JSON Object\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\")\n );\n\n // create a texture atlas from a multipack JSON Object\n game.texture = new me.TextureAtlas([\n me.loader.getJSON(\"texture-0\"),\n me.loader.getJSON(\"texture-1\"),\n me.loader.getJSON(\"texture-2\")\n ]);\n\n // create a texture atlas for a spritesheet with an anchorPoint in the center of each frame\n game.texture = new me.TextureAtlas(\n {\n framewidth : 32,\n frameheight : 32,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n },\n me.loader.getImage(\"spritesheet\")"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"atlases","optional":false,"description":"

                atlas information. See {@link loader.getJSON}

                ","dataType":{"tokens":[{"value":"object | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"object | %1"}},{"identifier":"src","optional":true,"default":"atlas.meta.image","description":"

                Image source

                ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string | Array | Array | Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | %2 | string | %3<%4> | %5<%6> | %7"}},{"identifier":"cache","optional":true,"default":"false","description":"

                Use true to skip caching this Texture

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"04Oza9PUt86f19W6UYgHq","name":"createAnimationFromName","brief":"","examples":[{"caption":"","code":" // create a new texture object under the `game` namespace\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n\n // create a new Animated Sprite\n let sprite = game.texture.createAnimationFromName([\n \"walk0001.png\", \"walk0002.png\", \"walk0003.png\",\n \"walk0004.png\", \"walk0005.png\", \"walk0006.png\",\n \"walk0007.png\", \"walk0008.png\", \"walk0009.png\",\n \"walk0010.png\", \"walk0011.png\"\n ]);\n\n // define an additional basic walking animation\n sprite.addAnimation (\"simple_walk\", [0,2,1]);\n // you can also use frame name to define your animation\n sprite.addAnimation (\"speed_walk\", [\"walk0007.png\", \"walk0008.png\", \"walk0009.png\", \"walk0010.png\"]);\n // set the default animation\n sprite.setCurrentAnimation(\"simple_walk\");\n // set the renderable position to bottom center\n sprite.anchorPoint.set(0.5, 1.0);"}],"scope":"instance","type":"MethodDoc","description":"

                Create an animation object using the first region found using all specified names

                ","params":[{"identifier":"names","optional":false,"description":"

                list of names for each sprite\n(when manually creating a Texture out of a spritesheet, only numeric values are authorized)

                ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}},{"identifier":"settings","optional":true,"description":"

                Additional settings passed to the {@link Sprite} contructor

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2uNY8TlzFqEQR2nzqMWeG","name":"createSpriteFromName","brief":"","examples":[{"caption":"","code":"// create a new texture object under the `game` namespace\ngame.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n);\n...\n...\n// create a new \"coin\" sprite\nlet sprite = game.texture.createSpriteFromName(\"coin.png\");\n// set the renderable position to bottom center\nsprite.anchorPoint.set(0.5, 1.0);\n...\n...\n// create a 9-slice sprite\nlet dialogPanel = game.texture.createSpriteFromName(\n \"rpg_dialo.png\",\n // width & height are mandatory for 9-slice sprites\n { width: this.width, height: this.height },\n true\n);"}],"scope":"instance","type":"MethodDoc","description":"

                Create a sprite object using the first region found using the specified name

                ","params":[{"identifier":"name","optional":false,"description":"

                name of the sprite

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings","optional":true,"description":"

                Additional settings passed to the {@link Sprite} contructor

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"nineSlice","optional":true,"default":"false","description":"

                if true returns a 9-slice sprite

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite | NineSliceSprite","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"255Wd0DlpRO6zuIDh6--s","name":"getAtlas","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the default or specified atlas dictionnary

                ","params":[{"identifier":"name","optional":true,"description":"

                atlas name in case of multipack textures

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"TL2sHg3ibFPR1CUpCluCj","name":"getFormat","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the format of the atlas dictionnary

                ","params":[],"returns":[{"description":"

                will return "texturepacker", or "ShoeBox", or "melonJS", or "Spritesheet (fixed cell si...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"nXaYHxYo6PT2ZMdGIFcwY","name":"getRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a normalized region (or frame) information for the specified sprite name

                ","params":[{"identifier":"name","optional":false,"description":"

                name of the sprite

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"atlas","optional":true,"description":"

                name of a specific atlas where to search for the region

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"OGabRknsMGI9oqxDqN3dx","name":"getTexture","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the source texture for the given region (or default one if none specified)

                ","params":[{"identifier":"region","optional":true,"description":"

                region name in case of multipack textures

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"Ch1MZxIzN7dfFAHvSzWUr","name":"getUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the uvs mapping for the given region

                ","params":[{"identifier":"name","optional":false,"description":"

                region (or frame) name

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                region Uvs

                ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"n8rSI8rSTE3HTO2h5dPkn","name":"Tile","brief":"","type":"ClassDoc","description":"

                a basic tile object

                ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"Da410x3k6U-x0_sfVaOFD","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yJZPMxiSzZ3fpwQk-JCS2","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                return the center position of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w0bID0qxShNUM1l_MNhnz","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                center position of the bound on the x axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"14bmYvSLjm67ipCvu0LL4","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                center position of the bound on the y axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lAqSBZd6hQVF5IVhF_dLY","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Global flag that indicates if the tile is flipped

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SN7PChfnZbSFLtJb_bdCF","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

                True if the tile is flipped anti-diagonally

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"stIS-VS4JD8ZivPVRHZIH","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                True if the tile is flipped horizontally

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-7LcsZeaP7nnuqWuPXGmx","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                True if the tile is flipped vertically

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ID1H8-uMl_DsaBt-O-9xp","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"woqMxFdXgcLSRy6op_2sc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TRHCJowYmk3AnCqgwsPAX","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5q9mFlvVZQ57aETshb-VI","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

                tileId

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4fNoiiPqK9T9DSrzldKW","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

                tileset

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bdVzmOcTnaKm9OxY3sh31","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nBmKNKRdIUqsV3LS9BuZX","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                the object type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3lEJFBA5xNMmC4fo79pZV","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z2bVl2qeBOqXm2SM-_yI4","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                x position of the bound

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xwukvXLeqr46d0Wga92zH","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                y position of the bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vK_UHubSvzAvrkbN4apSu","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                add the given vertices to the bounds definition.

                ","params":[{"identifier":"vertices","optional":false,"description":"

                an array of Vector2d or Point

                ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                either to reset the bounds before adding the new vertices

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"jcRYr1nHafEZJKTYEOzJG","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                add the given bounds to the bounds definition.

                ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                either to reset the bounds before adding the new vertices

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"DFYwNJErHPW0w0XRAaC45","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                add the given quad coordinates to this bound definition, multiplied by the given matrix

                ","params":[{"identifier":"x0","optional":false,"description":"

                left X coordinates of the quad

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                top Y coordinates of the quad

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                right X coordinates of the quad

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                bottom y coordinates of the quad

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                an optional transform to apply to the given frame coordinates

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Lf6Z28uWhjiZXrFbU3DRn","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                add the given point to the bounds definition.

                ","params":[{"identifier":"point","optional":false,"description":"

                the vector or point to be added to the bounds

                ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                an optional transform to apply to the given point (if the given point is a Vector2d)

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gsUqTc3wVRquyfPKU5oTb","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the bounds position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this bounds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this bounds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"buUd1hOloMsnUAnyN28gZ","name":"clear","brief":"

                reset the bound

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XCi_qkYGxSykYND--i01G","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this bounds

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I7AoO_6IpCNochaVJlsbo","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                x index of the Tile in the map

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y index of the Tile in the map

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"gid","optional":false,"description":"

                tile gid

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileset","optional":false,"description":"

                the corresponding tileset object

                ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VQi7h3OfbSvgsQJWfVLvy","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the bounds contains the given point.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to check

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the bounds contain the point, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RFMf4C0z526VIMMoe6MvJ","name":"getRenderable","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a renderable object for this Tile object

                ","params":[{"identifier":"settings","optional":true,"description":"

                see {@link Sprite}

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                a me.Sprite object

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wHhY9Y-oGXE4VrAbe6PAp","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this bounds are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FfxS5Z1no9LC_bTfvlEOf","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the two bounds intersect.

                ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                True if the bounds overlap, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"T6B18IkF7vZ-rHSl3OiLE","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                sets the bounds to the given min and max value

                ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wxWfg39ea8Lulbwnru3Rh","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the bounds to the given x, y position.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-jnYQU5xaDSw9PjSChuL6","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this bounds.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this bounds.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9T3SGwVopvW9eUk5CXj-N","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Translates the bounds by the given point

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Crjj2jTsTPRRmf58S0ZWL","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                Updates bounds using the given vertices

                ","params":[{"identifier":"vertices","optional":false,"description":"

                an array of Vector2d or Point

                ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"fNYKjWcXlkjEBAXcejXcZ","name":"Timer","brief":"","see":["{@link timer} the default global timer instance"],"type":"ClassDoc","description":"

                a Timer class to manage timing related function (FPS, Game Tick, Time...)

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"MkjCSUFGpFhEgndX8kbLN","name":"fps","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                Last measured fps rate.
                \nThis feature is disabled by default, unless the debugPanel is enabled/visible.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PdPqVdPooDWe3Vtvz1JN2","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                Enable/disable frame interpolation

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dZheODxRKNz1ZFAQ_NtY1","name":"maxfps","brief":"","access":"public","defaultValue":"60","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                Set the maximum target display frame per second

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CAqwfkRFRgBn3B_tjMYNG","name":"tick","brief":"","access":"public","defaultValue":"1","scope":"instance","see":["interpolation"],"type":"PropertyDoc","description":"

                Last game tick value.
                \nUse this value to scale velocities during frame drops due to slow hardware or when setting an F...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"twk5VMu6thYEj_2wU1Cw7","name":"clearInterval","brief":"","scope":"instance","type":"MethodDoc","description":"

                cancels the timed, repeating action which was previously established by a call to setInterval().

                ","params":[{"identifier":"intervalID","optional":false,"description":"

                ID of the interval to be cleared

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"q2HHBnFI3mrw9IhEMYMkr","name":"clearTimeout","brief":"","scope":"instance","type":"MethodDoc","description":"

                Cancels a timeout previously established by calling setTimeout().

                ","params":[{"identifier":"timeoutID","optional":false,"description":"

                ID of the timeout to be cancelled

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZXYPkxetvF8FQlW4HlFIZ","name":"getDelta","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return elapsed time in milliseconds since the last update

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KoArzNvZMkUi3b2J9mlpx","name":"getTime","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return the current timestamp in milliseconds
                \nsince the game has started or since linux epoch (based on browser suppor...","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NOTK-ehh5toCXt_7GiZ_r","name":"setInterval","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" every 1000ms\nme.timer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setInterval(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                Calls a function continously at the specified interval. See setTimeout to call function a single time.

                ","params":[{"identifier":"fn","optional":false,"description":"

                the function to execute

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                the number of milliseconds (thousandths of a second) on how often to execute the function

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                respects the pause state of the engine.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                optional parameters which are passed through to the function specified by fn once the timer expires.

                ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1F26t9bkHWLT3obqnFMwO","name":"setTimeout","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\nme.timer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setTimeout(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.

                ","params":[{"identifier":"fn","optional":false,"description":"

                the function you want to execute after delay milliseconds.

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                the number of milliseconds (thousandths of a second) that the function call should be delayed by.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                respects the pause state of the engine.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                optional parameters which are passed through to the function specified by fn once the timer expires.

                ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"FSBk1Nkeg9JIgcqEEMmlW","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

                an Hexagonal Map Renderder

                ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"yFr1WsMb6McdJFB5h72jV","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the renderer can render the specified map or layer

                ","params":[{"identifier":"component","optional":false,"description":"

                TMX Map or Layer

                ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ahax8bjBHHBxpaS5jabFR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                the TMX map

                ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ArMn1YHbqnJgvKpLQbJ5R","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given tile at the specified layer

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                X coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                the tile object to draw

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DcnOlgPntOW-HACamosMR","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given TMX Layer for the given area

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                a TMX Layer object

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                the area of the layer to draw

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tS-YE7rpKlKwTclFxZsYk","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the bounding rect for this map renderer

                ","params":[{"identifier":"layer","optional":true,"description":"

                calculate the bounding rect for a specific layer (will return a new bounds object)

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aL91UZa5lDtXguu5ur7JT","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile position corresponding to the specified pixel

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DPPfpG01h1cXwOZpWNTGD","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the pixel position corresponding of the specified tile

                ","params":[{"identifier":"col","optional":false,"description":"

                tile horizontal position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                tile vertical position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"zXEGo9Seco3-muLImV7a2","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

                an Isometric Map Renderder

                ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"dgBCC_RZijiLBLDL6LZOl","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the renderer can render the specified map or layer

                ","params":[{"identifier":"component","optional":false,"description":"

                TMX Map or Layer

                ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"X2oL5hV989e5x267nbPAW","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                the TMX map

                ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QLIbEmZ1W9BhCoh360ZCS","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given tile at the specified layer

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                X coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                the tile object to draw

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lGzT1mBqYZKvFkX6ejEgg","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given TMX Layer for the given area

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                a TMX Layer object

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                the area of the layer to draw

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5zI5ngPHi1zySRyqktXU3","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the bounding rect for this map renderer

                ","params":[{"identifier":"layer","optional":true,"description":"

                calculate the bounding rect for a specific layer (will return a new bounds object)

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DrDPcI8LZ1aMs8x2c0gA3","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile position corresponding to the specified pixel

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QBGgsUUGyB56bxAzBvgoh","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the pixel position corresponding of the specified tile

                ","params":[{"identifier":"col","optional":false,"description":"

                tile horizontal position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                tile vertical position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"QlhraqBWiBeTCWqAZrVGv","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

                a TMX Tile Layer Object\nTiled QT 0.7.x format

                ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"bFGZbAJntjwZ3AWzTaUcv","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeosxyQxor_HO-0Oh6Z32","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LDdSbak2nGJH0HIglOuQw","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5M18Ks24swpCDSAPhQOb","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3A1rH5fMNYPW71AXuG8Wh","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                All animated tilesets in this layer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bIwcE6nWrtqfyl9CIiZDj","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"80B315TvLES1N4GAucl4B","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hG145j9Gt9_McRHj-rbiC","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Y99GmgikdJkGEHdzXNh7","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"npDWBu_-fP8ddfDrHyh_e","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EAmfp32ZNH3W0XXaUIHu1","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f-ZJ4k7zaSh46pgjOYDmP","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the layer class

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KoEO41xL7dE7Rk_sl8zHW","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hoj41gSlw3H02hfRuc-ot","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xk2aFw1DUzO8L3PvLk9St","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zXQtim91dSokdJkv1WrX8","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FrdcEDiLdRcP58EryEaxB","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wyQZjYV-S-9cg0tgcWz6N","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hgeWoF9_MYSsQZ6U9x8WU","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Layer contains tileset animations

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5GRISczd6KuwWQS5ALHa_","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K7y8P68bHc5JJBzg01KLL","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ALuggLVjfFjzK8vRvl-8D","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"92gt6Ofre5Ft86ie9k2mm","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HRyT1L4KXy0dWUsPImA0o","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qOpfzMm7YdP-32qT7DNpw","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gAvEhSUYln3VCWD9LYiGP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pTqalygNelYsERzHALzoK","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uJGQgaUk-c5aulfu-zFf5","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CR-S7mevZQCK-Yy2cixJw","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8b4RjNGCX9teYT6UVfwDp","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"arDY7dT8jfh20NIANnBjH","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fg_yN9Kzv3B8EqAiE4gqy","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qvZQNfIuOZbDdnlxZ-0FL","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_PI2s69EG2IElyBq6LEMU","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yQzi2eoO7s9ZSdWyV8e1F","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NDUEbiLEcVBerq2lYl00y","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The Layer corresponding Tilesets

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YAWcQp4AwHix7ej7ayVYH","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NXNrQMbq19uMDM4JML89a","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hS2JOsM_6y_LS4C9OKKJF","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WTTjGYv0MlF4Dvbn4Ef57","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mdfFRaJPaLEsD2UxeD5E0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RoTI4-lh6NAoGEiKZdYgN","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                Horizontal layer offset in tiles

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zr9KOh-o4e1t5x0CWHsrn","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                Vertical layer offset in tiles

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hc00MUIkPb179wyNMR_kj","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vxOz2eB4vzd8j1CQa21oO","name":"cellAt","brief":"","examples":[{"caption":"","code":"// return the first tile at offset 0, 0\nlet tile = layer.cellAt(0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                Return the Tile object at the specified tile coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x position of the tile (in Tile unit)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                x position of the tile (in Tile unit)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"boundsCheck","optional":true,"default":"true","description":"

                check first if within the layer bounds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                corresponding tile or null if there is no defined tile at the position or if outside of the layer bounds

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LlncuwIRkAI_w7m01e0T2","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z30AEnT-rxh1IlWMVzM_R","name":"clearTile","brief":"","examples":[{"caption":"","code":"me.game.world.getChildByType(me.TMXLayer).forEach(function(layer) {\n // clear all tiles at the given x,y coordinates\n layer.clearTile(x, y);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                clear the tile at the specified position

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate (in map coordinates: row/column)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate (in map coordinates: row/column)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"gnCar_diu0Jw2DVJ9JkCz","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"54UYOpkTF8qlVEhAI3c8p","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

                layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"tilewidth","optional":false,"description":"

                width of each tile in pixels

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                height of each tile in pixels

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"orientation","optional":false,"description":"

                "isometric" or "orthogonal"

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"tilesets","optional":false,"description":"

                tileset as defined in Tiled

                ","dataType":{"tokens":[{"value":"TMXTilesetGroup","kind":"canonical"},{"value":"TMXTilesetGroup","kind":"link"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

                z-index position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ELYzvTYF18uILUmCee6HA","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Z7hWTgTeeOoENmHT5oBaZ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2PhkKSpM5jNWmNmQJ-6qe","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qg4sAanKlIIL1JmKILa4g","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wnvpRy_s1oTW3AbqssidV","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VQPg21Q16wYrsApctk-kQ","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mvHbXfj6MwcsCh-hf665u","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tbO7hWETnsW728ZVWkoaf","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"idUBdovokBnxJXK0QIilu","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nBp7d3a8M8Ue5zO_FQsZS","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"JgtTU2ClFx2AcofiQJ25u","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vLAOnpan-I6Xfdk4BBhVT","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return the layer current renderer object

                ","params":[],"returns":[{"description":"

                renderer

                ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_2nqLUrM2T7GSLPcNJpd_","name":"getTile","brief":"","examples":[{"caption":"","code":"// get the TMX Map Layer called \"Front layer\"\nlet layer = me.game.world.getChildByName(\"Front Layer\")[0];\n// get the tile object corresponding to the latest pointer position\nlet tile = layer.getTile(me.input.pointer.x, me.input.pointer.y);"}],"scope":"instance","type":"MethodDoc","description":"

                Return the Tile object at the specified position

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                corresponding tile or null if there is no defined tile at the coordinate or if outside of the layer bounds

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NE_bU80mE2Bj-S3gbAn8Y","name":"getTileById","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a new the Tile object corresponding to the given tile id

                ","params":[{"identifier":"tileId","optional":false,"description":"

                tileId

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                X coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the tile object

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MpZsuJ_YliXW2H5j7J8fm","name":"getTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return the TileId of the Tile at the specified position

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                TileId or null if there is no Tile at the given position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B6ZHfiuq_dveoKpU5JIvE","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-jEzjtxaw8L3lpUWbd1y0","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ngd0cBWNL-WNsxMi0kaud","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eiZj6RLRtt6JQH4j4ac_R","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bv_noh21z_IQWtyPO05o3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeQ846lKV-YjvgkiHFtUn","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wweLktSt1dyXbe8MmpQzh","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_WZJbWcIKW2ILCwq8CHfv","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"fBiF--Gs2ce8NsHDOmf_k","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ljPcS-NktgLlU76CLnTLb","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6DA6JaeDkpeX3uTlIZFU7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UUog0URZ3Rg9k3YPrgc1y","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WEJ7r0IFBh0emOv0_BRxL","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zZwhEbgKl5txo6bRTwpd3","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KYIT-6Oe_W3Kbw7spqSHb","name":"setRenderer","brief":"","examples":[{"caption":"","code":"// use the parent map default renderer\nlet layer = new me.TMXLayer(...);\nlayer.setRenderer(map.getRenderer());"}],"scope":"instance","type":"MethodDoc","description":"

                Set the TMX renderer for this layer object

                ","params":[{"identifier":"renderer","optional":false,"dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OLRRCHluflRaiPEEJGLTM","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Onn2c5-a7o1LEesC972Ko","name":"setTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                assign the given Tile object to the specified position

                ","params":[{"identifier":"tile","optional":false,"description":"

                the tile object to be assigned

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                x coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y coordinate (in world/pixels coordinates)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the tile object

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nvCNtx8BKfMOvjX8TM1-b","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S7rZrB90bBPoC-VROT1O-","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NIEa2uJRJACCqtPfnrlvU","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jXUbMz0_u6FHGHqxIbKsE","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wrWeCDOrnLFEev50qu7S8","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fKlZyTXlYQnhaojjSxE3k","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iCr8dhlN4m3MhAu0ztVVz","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AfPSpDr3oRT8JIqMGldTt","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ezs5-15gcqotr4T5dTfn2","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                update function (automatically called by melonJS).

                ","params":[{"identifier":"dt","optional":false,"description":"

                time since the last update in milliseconds.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the renderable is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3-1_q_TdP2PCdYTRyCyGw","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this shape.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this shape bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JrxviX3bp560NDfFC-bvy","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"xxtuFpVdVEKfvgndR2nBV","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

                an Orthogonal Map Renderder

                ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"phF_h-My8bdeYKmOT_oOl","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the renderer can render the specified map or layer

                ","params":[{"identifier":"component","optional":false,"description":"

                TMX Map or Layer

                ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zWQTw3Imq4jGsDEHVsbT5","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                the TMX map

                ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VHjURQetixd9RnubPBTkq","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given tile at the specified layer

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                X coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                the tile object to draw

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xadksAX-R2s8gth3K_WbR","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given TMX Layer for the given area

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                a TMX Layer object

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                the area of the layer to draw

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AOgEqayNFCWvQrDyooYEE","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the bounding rect for this map renderer

                ","params":[{"identifier":"layer","optional":true,"description":"

                calculate the bounding rect for a specific layer (will return a new bounds object)

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xd4pfjdBTgQAB3_tX6nwt","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile position corresponding to the specified pixel

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ousoyFshxaoELRB951JpF","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the pixel position corresponding of the specified tile

                ","params":[{"identifier":"col","optional":false,"description":"

                tile horizontal position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                tile vertical position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"nfDo9mD11YFHIDowyY-LK","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

                The map renderer base class

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"p1xZRJWomInVWDSaefsMy","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the renderer can render the specified map or layer

                ","params":[{"identifier":"component","optional":false,"description":"

                TMX Map or Layer

                ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FTSLCp8-oJnlDZkiHZ7q8","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"cols","optional":false,"description":"

                width of the tilemap in tiles

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rows","optional":false,"description":"

                height of the tilemap in tiles

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tilewidth","optional":false,"description":"

                width of each tile in pixels

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                height of each tile in pixels

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"i1BrpTjY_6F3VmR7QeWUt","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given tile at the specified layer

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                X coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                the tile object to draw

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TMA1QMn4G1QTGJtU3Jbyu","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given TMX Layer for the given area

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                a TMX Layer object

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                the area of the layer to draw

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zxz6WtANqTlkAdOMe4Qz_","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the bounding rect for this map renderer

                ","params":[{"identifier":"layer","optional":true,"description":"

                calculate the bounding rect for a specific layer (will return a new bounds object)

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u4P7-wa-8PUz9Ic2YJ1HQ","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile position corresponding to the specified pixel

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Dmm1iNNE1ZtMlL_CO0nW2","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the pixel position corresponding of the specified tile

                ","params":[{"identifier":"col","optional":false,"description":"

                tile horizontal position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                tile vertical position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"T-veIoXJ5qW2PTkzFJZho","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

                a Staggered Map Renderder

                ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"cs1p9NaWmZELx4ueNdW0S","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the renderer can render the specified map or layer

                ","params":[{"identifier":"component","optional":false,"description":"

                TMX Map or Layer

                ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4AcEtrsyocmMKoBK75zcW","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"yZff_Lttg9YwECLQsOntq","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given tile at the specified layer

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                X coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate where to draw the tile

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                the tile object to draw

                ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NrCHDVGwM8CCIWgiB2zcN","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                draw the given TMX Layer for the given area

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                a TMX Layer object

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                the area of the layer to draw

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jSPUw8skbx2N4d7Vp2fEf","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the bounding rect for this map renderer

                ","params":[{"identifier":"layer","optional":true,"description":"

                calculate the bounding rect for a specific layer (will return a new bounds object)

                ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3_Q3jUtxxxt8CyZd32cRn","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile position corresponding to the specified pixel

                ","params":[{"identifier":"x","optional":false,"description":"

                X coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ih1uawnhhUJzrqRlEz8hF","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the pixel position corresponding of the specified tile

                ","params":[{"identifier":"col","optional":false,"description":"

                tile horizontal position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                tile vertical position

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional vector object where to put the return values

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"PmWiwjF5nvZDcyQgSI2uQ","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

                a TMX Tile Map Object\nTiled QT +0.7.x format

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"M5RGbKo8yzxojolGF3K7C","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The map class.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QKoJVgFzubwKKpaV47FTN","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                width of the tilemap in tiles

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x9LIHz9QSi0BSOWO2KJn8","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                is the map an infinite map

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DRFnBwPKgJuaPhFcVa_0U","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

                name of the tilemap

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gy6KILn5713Qhq-qqfGV9","name":"orientation","brief":"","defaultValue":"\"orthogonal\"","scope":"instance","type":"PropertyDoc","description":"

                the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “hexagonal”.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wQN3qODrmVxf8e9V4eCbe","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9PHVhG3UHZHKrCX44NB5q","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                height of the tilemap in tiles

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rQ_k0UYTipFz1gDilUR8Q","name":"tiledversion","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The Tiled version used to save the file (since Tiled 1.0.1).

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I0De0o4nf7UpXJlUTWV6o","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                Tile height

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"apJjTWvICoxNPmPSjBJCa","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                Tile width

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_juY2xF-JG1Cy_ia0X0Y_","name":"version","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the TMX format version

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SFD3rV_AwDEj7mOO3iWRV","name":"addTo","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true, true);"}],"scope":"instance","type":"MethodDoc","description":"

                add all the map layers and objects to the given container.\nnote : this will not automatically update the camera viewport

                ","params":[{"identifier":"container","optional":false,"description":"

                target container

                ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"flatten","optional":true,"default":"true","description":"

                if true, flatten all objects into the given container, else a me.Container object will be created for each co...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"setViewportBounds","optional":true,"default":"false","description":"

                if true, set the viewport bounds to the map size, this should be set to true especially if adding a level to the game worl...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6hYf66XeEp_zMNOgs1s-U","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"levelId","optional":false,"description":"

                name of TMX map

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"data","optional":false,"description":"

                TMX map in JSON format

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"fuslpAa2R2kdrpO8YI3Y0","name":"destroy","brief":"

                destroy function, clean all allocated objects

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0WjH7VWJbaORVv67yb3WP","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the map bounding rect

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z7aJm0wNwDDX3FCHIiFiw","name":"getLayers","brief":"","scope":"instance","type":"MethodDoc","description":"

                return all the existing layers

                ","params":[],"returns":[{"description":"

                Array of Layers

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ZHF68rEpXeH-3ht65o-Xs","name":"getObjects","brief":"","scope":"instance","type":"MethodDoc","description":"

                return an Array of instantiated objects, based on the map object definition

                ","params":[{"identifier":"flatten","optional":true,"default":"true","description":"

                if true, flatten all objects into the returned array.\nwhen false, a me.Container object will be created for e...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Array of Objects

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"VYo1mrJPjz9c9JZycVk12","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return the map default renderer

                ","params":[],"returns":[{"description":"

                a TMX renderer

                ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"G0VkpmpqXO6ffipDWKzes","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

                a TMX Tile Set Object

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"XS4ztV_fUCgClAslCeWSQ","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the tileset class

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UyeqpCymUH5XtgZmnQkTW","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Tileset contains animated tiles

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K-fQsbHEGvvTqzF7FMBPi","name":"isCollection","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                true if the tileset is a "Collection of Image" Tileset

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"32VoKU7nrp-7q04yDnprz","name":"_lastUpdate","brief":"","access":"private","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                Remember the last update timestamp to prevent too many animation updates

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9nkX1_mZN33pTMueqF_4X","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                Tileset animations

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YrN82GMI4PsyS4mhiTMhQ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"tileset","optional":false,"description":"

                tileset data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset})

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"h1oJlFnNXV3evX7QQcF_7","name":"contains","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if the gid belongs to the tileset

                ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Rl_vJxMJJD73nJBH4zMKb","name":"getTileImage","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tile image from a "Collection of Image" tileset

                ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                corresponding image or undefined

                ","dataType":{"tokens":[{"value":"Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SFisXYD7ze7AgTYz5GH8R","name":"getTileProperties","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the properties of the specified tile

                ","params":[{"identifier":"tileId","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"8sWCb2HlsbVLIMyadlZ7o","name":"getViewTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                Get the view (local) tile ID from a GID, with animations applied

                ","params":[{"identifier":"gid","optional":false,"description":"

                Global tile ID

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                View tile ID

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"HrQWmwrth5xuiJ4riypAT","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

                an object containing all tileset

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"XV5VEZs7UiyLhdQcHiffS","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                add a tileset to the tileset group

                ","params":[{"identifier":"tileset","optional":false,"dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pa2zgvZA5YR4nrBouC_jV","name":"getTilesetByGid","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tileset corresponding to the specified id
                \nwill throw an exception if no matching tileset is found

                ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                corresponding tileset

                ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WowzPCQstnSDaJs5HysUv","name":"getTilesetByIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the tileset at the specified index

                ","params":[{"identifier":"i","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                corresponding tileset

                ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"n1ekvULMzlE2rrlxrDBKo","name":"Trigger","brief":"","type":"ClassDoc","description":"

                trigger an event when colliding with another object

                ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"TC7VRhNByADrtdLFyJ1-E","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-E00cW_cR0pjMyKa23B3Q","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5DVzPbJEnU9OvK-7PzBIL","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_3eczN1XdC1dm-NKHBDS2","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a_vvJQ24l0nYbdkyFvRL5","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8MRxDJI3HT_mSOBybGcm3","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MdFCVw93IaVLGMA4wlhzv","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZPA8Xfl7o8NQ28W7WIOgJ","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1QKZ3-3jt9HXtmBFXme2b","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Dk07JzUmqQ4C8Bv9_whi","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X68DnvbMB8eric2FHJufN","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O2GUxEJcO8WHQSNoWyASS","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0YaHaGXRFX3lRdEiGG7Hy","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eLN4Mn3ScNXzO9s-QeCc9","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CcFiok6E5WJ-fFG65R0bi","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eG-V2q1EjuHx5MFU32Sse","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n3giPeI5np9cWiPFALqef","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yscNDIKGpPFW2auYu0zZO","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5SL60QuxQn7DpCta3_kxv","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"weY6_5u6LqzM3V6BpIxOa","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Una14MYD_5cKWDag2yIa","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1v-QskXEoqPjp0ZCLt0qs","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PehGFsAPPW-WRLx6TXMlN","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MC5Ef8Hw62spXedfFRaVT","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WkoseqduhnWbQgOfKocuj","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R3yxgKV79T395rN4YrDlM","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wybTSpg_XR-b7XEBWN3g6","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Su0hTqvd_Usft1z30S4AZ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hcWrW63ifAAqibkoSPoaQ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Dq8_VcbRXFkuR16FrXiA","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4xQ8ezAsjCz33VozLrwI1","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8WPODEpH40OY6wg_UmfeA","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SbJ-2lN4CWujLmAerAqge","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LNknL2DzXwpawNSi1kWvy","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6TeWHjOv8B2u5kqjmXnVL","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5S4vWi30C30_-niGdKNtU","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"muiFRhOzHgMmupQyg0a7r","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AKLrxAAa4VsVHwa2Qyqhc","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ApEnmzPdptT_PKkfqGmS8","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XM76fNT7sdBKWtGJ0hIUA","name":"constructor","brief":"","examples":[{"caption":"","code":"world.addChild(new me.Trigger(\n x, y, {\n shapes: [new me.Rect(0, 0, 100, 100)],\n \"duration\" : 250,\n \"color\" : \"#000\",\n \"to\" : \"mymap2\"\n }\n));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                the x coordinates of the trigger area

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinates of the trigger area

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.width","optional":true,"description":"

                width of the trigger area

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","optional":true,"description":"

                height of the trigger area

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

                collision shape(s) that will trigger the event

                ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}},{"identifier":"settings.duration","optional":true,"description":"

                Fade duration (in ms)

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.color","optional":true,"description":"

                Fade color

                ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.event","optional":true,"default":"\"level\"","description":"

                the type of event to trigger (only "level" supported for now)

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.to","optional":true,"description":"

                level to load if level trigger

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.container","optional":true,"description":"

                Target container. See {@link level.load}

                ","dataType":{"tokens":[{"value":"string | Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.onLoaded","optional":true,"description":"

                Level loaded callback. See {@link level.load}

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.flatten","optional":true,"description":"

                Flatten all objects into the target container. See {@link level.load}

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.setViewportBounds","optional":true,"description":"

                Resize the viewport to match the level. See {@link level.load}

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VuXqJuYXLg-7AC5B_heF_","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZSge6Ue8kvoAooCzAXZeF","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ghgBk3Gu42SVBiqDygGra","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ReDy_3hOsr_q5Sr0A90GW","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EWYNQFrodUSK-baSRHKXe","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"G8YWuINeX_aerDE0jwq6m","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dPE4m1LIKhylrK-cruzuH","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E9wNqLnKJ6wwUffYsykJG","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O00iN3SLpgZUzUx7_Dc60","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7UgcZ8HD66JbwKtTTb0dt","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"sRI3D26VJRDBcHZSWE7AL","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NorIdIomclEAsVuLfXkqZ","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_N3BJEq2VJpUzT0xfuZkL","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"bwaHNm2AoI1F_fr8f6M0u","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fhh8UR_NJwQHkv4WMn9TI","name":"onCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision with this trigger

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Fn5Ump4eqI4ZCvthmzHaL","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0Zqf-YSsKiFEWwrIGxaG5","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5_V-s5vkrL6gylBZKNd8u","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"dirzrRxorWrTaBbL1icWk","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"FruRT0Y3Dvy2uV1S5k4AV","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nm32jwuQBtjD7BKBz_Pye","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ihgV0XRcyGdbjLhBoYUun","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WDDmZliXMFMKMzt_700-7","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YnbQGpkAQTaZJlhXbKYfx","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3hOw1XxTnoEiKIaWnpAA8","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8TGWtwm4DCP4o2ksc9tsA","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MHKKSGmIG9prk7q4LkKEk","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jy7zynPXArCa5IMLJ-Pp2","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5nQetBLgL8KiOZeSvsxRq","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"98I-jx-BlJ1D9OhJmmTTd","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1LNJ8Iof1nid__sM5Hu7j","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0dS-QfbzdwUY27Kumn3jX","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gkhCdAOSroM8tfC8yY87P","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e7wGUokbKuO8wEZOoooxy","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ho0EI_HlPqKAjb6qZeay7","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                update function (automatically called by melonJS).

                ","params":[{"identifier":"dt","optional":false,"description":"

                time since the last update in milliseconds.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the renderable is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"IPh7ukQP1ZndcdW8tT7qB","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this shape.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this shape bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yg2TDx4PoWOW1FrhyyALK","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                trigger this event

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oRmzTYjQO-N-hDg6xii6_","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"rTFGQUhN22b7fV9HXtknh","name":"Tween","brief":"","type":"ClassDoc","description":"

                Javascript Tweening Engine

                \nSuper simple, fast and easy to use tweening engine which incorporates optimised Robert Penne...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"0qQ42tHuOc-S1h0nqhTjI","name":"Easing","brief":"","access":"public","type":"EnumDoc","description":"

                Easing Function :

                \n

                \n Easing.Linear.None
                \n Easing.Quadratic.In
                \n Easing.Quadratic.Out
                \n Easing.Quadrati...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Oh5NeVPZFpuLSWh6LK69","name":"Interpolation","brief":"","access":"public","type":"EnumDoc","description":"

                Interpolation Function :

                \n

                \n Interpolation.Linear
                \n Interpolation.Bezier
                \n Interpolation.CatmullRom\n

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TKWYRRh2jApUhImqb8uwo","name":"chain","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                chain the tween

                ","params":[{"identifier":"chainedTween","description":"

                Tween(s) to be chained

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lTJwvA7mxM09DI_PaiBAw","name":"constructor","brief":"","examples":[{"caption":"","code":"// add a tween to change the object pos.x and pos.y variable to 200 in 3 seconds\ntween = new me.Tween(myObject.pos).to({\n x: 200,\n y: 200,\n }, {\n duration: 3000,\n easing: me.Tween.Easing.Bounce.Out,\n autoStart : true\n}).onComplete(myFunc);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"object","optional":false,"description":"

                object on which to apply the tween

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"NueEiSUuKO0Ajr7V6nzQs","name":"delay","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                delay the tween

                ","params":[{"identifier":"amount","optional":false,"description":"

                delay amount expressed in milliseconds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M9ry1LZyjqZP92cDzfg2D","name":"easing","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                set the easing function

                ","params":[{"identifier":"easing","optional":false,"description":"

                easing function

                ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cFdLJqkDVAojUkGoFrR9v","name":"interpolation","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                set the interpolation function

                ","params":[{"identifier":"interpolation","optional":false,"description":"

                interpolation function

                ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yNes5nNp-IWD-Sor-5Hu4","name":"onComplete","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                onComplete callback

                ","params":[{"identifier":"onCompleteCallback","optional":false,"description":"

                callback

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gYHzJhznr3jPM5psNCxe2","name":"onStart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                onStart callback

                ","params":[{"identifier":"onStartCallback","optional":false,"description":"

                callback

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"U4K1pC3vl0hfznOcFbkpj","name":"onUpdate","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                onUpdate callback

                ","params":[{"identifier":"onUpdateCallback","optional":false,"description":"

                callback

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bpj0_I88ZeY1idpoOItwy","name":"repeat","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                Repeat the tween

                ","params":[{"identifier":"times","optional":false,"description":"

                amount of times the tween should be repeated

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2nkU0ta8OSdtj3kJTZKIh","name":"start","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                start the tween

                ","params":[{"identifier":"time","optional":true,"description":"

                the current time when the tween was started

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DQ90fTI-u9MrsCD0_h4It","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                stop the tween

                ","params":[],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3Pd27BKZ78YngwbQAL-Ic","name":"to","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                object properties to be updated and duration

                ","params":[{"identifier":"properties","optional":false,"description":"

                hash of properties

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options","optional":true,"description":"

                object of tween properties, or a duration if a numeric value is passed

                ","dataType":{"tokens":[{"value":"object | number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"object | %1"}},{"identifier":"options.duration","optional":true,"description":"

                tween duration

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.easing","optional":true,"description":"

                easing function

                ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}},{"identifier":"options.delay","optional":true,"description":"

                delay amount expressed in milliseconds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.yoyo","optional":true,"description":"

                allows the tween to bounce back to their original value when finished. To be used together with repeat to create endless l...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.repeat","optional":true,"description":"

                amount of times the tween should be repeated

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.interpolation","optional":true,"description":"

                interpolation function

                ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}},{"identifier":"options.autoStart","optional":true,"description":"

                allow this tween to start automatically. Otherwise call me.Tween.start().

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xgXIULMk-cgEt10pVa47X","name":"yoyo","brief":"","access":"public","scope":"instance","see":["Tween#repeat"],"type":"MethodDoc","description":"

                Allows the tween to bounce back to their original value when finished.\nTo be used together with repeat to create endless l...","params":[{"identifier":"yoyo","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this instance for object chaining

                ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"faJ7_siZpYJDUvxLBhx-w","name":"UIBaseElement","brief":"","type":"ClassDoc","description":"

                This is a basic clickable and draggable container which you can use in your game UI.\nUse this for example if you want to d...","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"fXJTjQniGjcFY9TieGORr","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FLeGCmjxQ0i1b8VTaPIqM","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZrhsU0TFRhZcbVNM8DqN4","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VjzmTFFtug0TSaGh-2slT","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4WEC9oD_vRWQzig8gcG9","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children z index should automatically be managed by the parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dq5hExnTrAWekVQV4WW_O","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children list should be automatically sorted when adding a new child

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fdH6D9M07aAtkZkqM6oqN","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RKZWXoEewKmCLxQwCZEoh","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a background color for this container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zo4U3g6W-ME58z16WEg4p","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XtOi-WqnjdJ_7wNtsy3ap","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WniWNxILnVMWP0UiQSTn0","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ytUppx7L27GvT_Iwni57","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HNgIIBVCDerBEsVzjanZ_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tTgUMiY80EwdyXYwToqKj","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container draw operation should clip his children to its own bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6KHZcQiVfxt2PMBc6Rhc3","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S_2OsBcv7Gi8aEyBQPT6V","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ekH02nrX55GZO9MGZw7ge","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FZUNE_GjtBPAngo3Adudf","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rBFEsYu6PW8XLUNtyl_g5","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v5rYwe9004vOSS8sUVux9","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0qyzCg4ijcZgaoOVrUxm7","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                Tap and hold threshold timeout in ms

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"835z4yTipcJZZcoRVc0B8","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                true if the pointer is over the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qOxe0SFQ_i5aUAnsQxReD","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jZI0VTo_2k44yypC9IDRI","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                object can be clicked or not

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fNuWpFEkqqc0ADGRmkwig","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CWLGZXcsw1zEKeHy5sEAk","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                object can be clicked or not

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ivOn15TXDqc1PcmUgiGCq","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vlLuiopKIazmGDrnB_WR9","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8NSGmYZsm6qSBfaP5Wl99","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ylZwAeFx40QkKv5eTAqbI","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                object can be tap and hold

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j5R2-UE80YD-R1clUGEI-","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zDHxqdU2WSBLvTbLd9bmY","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j6pM3H4b2y7p0Ev86oIxE","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MMlHYK9gBKhRgn-P-YNzf","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6nQVRLyKHvp_MjjI4_Y0e","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7LxKMB4ZXpQBLAR41OX1j","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"alRNhSsGIFqakYkj1ahwo","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JmpXvqGJRaAgNlKSkU6gJ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S-2U57yqdJSN5_J8w3pcB","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4N8ECCLYTIndrc9opGM49","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                false if the pointer is down, or true when the pointer status is up

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qvnp4dlNWp0qfxpTa7eIv","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b1ESAIzAq5sv3sKwY7Dms","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                whether the container is the root of the scene

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N5uCUveEdxVIzZG2t25t7","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"49Y8m4G4IguA_g2U29Lmr","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FbqQUT4o6-LCdGbEB8VU_","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Z_B4g2YqMoa_fDvD5J17","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"28o-57RFKaGPTBISIcdL_","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nWQ4Hc_VqghY7d8zmaytX","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lcGDtr15XN85mzsSTrcO3","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JsuT2Wxh5oGPr1_2jgMmi","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container
                \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                forces the z index of the child to the specified value

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PD6YbqgiyMzvlwf4Rp86f","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container at the specified index
                \n(the list won't be sorted after insertion)

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                The index at which to insert the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oGamoajzpPjRUH8mjbDpl","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n5CixfZzgRt6Exs8TQ84L","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uR3Vsite_3FyDN4gK48NO","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5Y77-cOvdCuyw4jJB-MCd","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                The x position of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                The y position of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                height of the container

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ohudo8h_mgwGiHgDPty-m","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-6UrJH9nqSz6or_lhuAtX","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9teCzOWw7IOBkGu1KhyPn","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vHNPQVX3rhw_r5WFgzRdQ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BRDGRPZ-Im0WzTH5mH6Pg","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NwcwVrTCg0RcyBgSwwaRz","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-Lf9m91S-B6xB7DY9pUGD","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                The forEach() method executes a provided function once per child element.
                \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                fnction to execute on each element

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                value to use as this(i.e reference Object) when executing callback.

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"eFm-A_XEpxNp0XSTcajjp","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z3U8KeUgCBM1-2eCj9nDh","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-M-TwRhA8CbYLP0Jxf0gt","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the Child at the specified index

                ","params":[{"identifier":"index","optional":false,"description":"

                The index of the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the child at the specified index

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NhxBVtPFcaxWJELvnfCq3","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the specified GUID
                \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                child GUID

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                corresponding child or null

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"inUhAfbpiZDQS4v1XrPed","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified name
                \nas defined in Tiled (Name field of the Object Properties)
                \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                child name

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"MqITECjp7MTsK7X4dny7_","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the given property and value.
                \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                Property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                Value of the property

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of childs

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"FqFitFdZUbyDBTKJFIC9n","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified class type

                ","params":[{"identifier":"classType","optional":false,"description":"

                Class type

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"T0-QuQ8oIlhzjrAXvQSN7","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the index of the given Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6E6ZdQt_vNWlW0VE5HRqT","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                return all child in this container

                ","params":[],"returns":[{"description":"

                an array of renderable object

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"ouXGJscgWIoU59kQ09I_g","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"LURjYDRbNvw9H59gWyyMi","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the next child within the container or undefined if none

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q0NQ5j8myW_dowrKpTiQM","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"otPWJ4bNGdjABSq4JrShF","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the instance of the root container (i.e. the current application World container).

                ","params":[],"returns":[{"description":"

                root container

                ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FLsbRNIxrsNEFHnUaSslL","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if contains the specified Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"IwjxZeqOVj-Lk6U3Ag43J","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                Checks if this container is root or if it's attached to the root container.

                ","params":[],"returns":[{"description":"

                true if this container is root or if it's attached to the root container

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4vugGxdFdLA1C9PsLx7yN","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GippedqUAWkuIyVfJDWRC","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dR-QIQKn6Xr2gq67K4m4k","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OXzYpb2R7052JL_8mlGcf","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step backward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"1VgErxVKSWN5Tp1GaBoll","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child the bottom (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"637yD8wPEP7aMONtMbSEh","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child to the top(z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"yNNAUDN7_enwFpjEKEt3h","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step forward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Fuo5z0MqHF7bYk0lzlLYE","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                a callback to be extended, triggered after a child has been added or removed

                ","params":[{"identifier":"index","optional":false,"description":"

                added or removed child index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LUqdhBwBf09F11EKl011b","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed (to be extended)

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KtyabnKJNpdCLxc35JI6I","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"V7yJ5h2i9IdPd01kzKSuh","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YKtCt9jyXEkESNGApWXSv","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and held
                \nto be extended

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CFU7X8M-u14rx4QlH3fh-","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is moved over the object

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vVKJwwmkh4vi4JzeTG4E0","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is leaving the object area

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z-2a0DqVDV8OtRCyRefyd","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is over the object

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iuhWV3e_pNBSlfjxhLvzX","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and released (to be extended)

                ","params":[],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Cck1yioJtt14IbXy3uXQs","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qMhJNbzBhtJ1ijQv1_jbe","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"RXQUVCkKRLuDn-npeGH78","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZAJ9sFPZcI4IRZCse5fVS","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C5unk9mn7DVel2iP0E5pA","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                true to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"eCqXi1nnEHC5BlyRT8zdu","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                Removes (and optionally destroys) a child from the container.
                \n(removal is immediate and unconditional)
                \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                True to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"fuWGuuYlHxQ3fvAWi0Lot","name":"reset","brief":"

                reset the container, removing all childrens, and reseting transforms.

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vPNtEY-fCx5raUYM-7Tzb","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xg-75a-Bgw5B-XwUdKZC7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YYNfyldVg4wHW_IoseUeP","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uIiVmgGKvBDXU0yVc2h3i","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"To8RNowejeNHbuCg-HhG3","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                Automatically set the specified property of all childs to the given value

                ","params":[{"identifier":"prop","optional":false,"description":"

                property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                property value

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively apply the value to child containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"jvKJhySRi4wV0qlqnHERb","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yPTOOPXK5nhETAF-s3Oo3","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tq5K68XbK_PIoWwGl-6lS","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_7uzEVOga8seReMvCtugy","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GPaxuu4sgBQGnEmiZ0h8e","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                Manually trigger the sort of all the childs in the container

                ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively sort all containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"haF7pkrdhn4PJ2bwu-zKx","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                Swaps the position (z-index) of 2 children

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"fA4l0xELhjv_BhbDOlw5f","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CCiSG84Dv7BGbtIhYv0Zo","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"25ROjlZfOStJ5q4zIx3FV","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BWTtu7C_Z2k5CeEDBb2RH","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Av4iTRCZa597Ago_gcxl1","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W_IRI6hx1G8tn4M2dMDJQ","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NsC8SYNxx4mc6Gbbej5sX","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this container.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this container bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PHsx7aDoyinu__MfEkanO","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                draw this renderable (automatically called by melonJS)

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"41eeGq5WGC1xP5v3kIdSL","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                container update function.
                \nautomatically called by the application update loop {@link Application}

                ","params":[{"identifier":"dt","optional":false,"description":"

                time since the last update in milliseconds.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the Container is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J7GSQOsTjOv6t5sYFJjf4","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"zx25DW1ZvkWi3nU-ItRRv","name":"UISpriteElement","brief":"","type":"ClassDoc","description":"

                This is a basic sprite based button which you can use in your Game UI.

                ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"uAVwa6NY06ijiHkazhMpP","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NFMzWVU8K6f689odkmaoB","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EH8KZQU6SBpdKf_JCoh_m","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gHqi1WRWqmO6YrsnLwymT","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sn-h0FyWs43qofXFK65xZ","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"In0A68UbcjDMTKV3T_dWd","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                animation cycling speed (delay between frame in ms)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bb3_mAz5XSfdrAbqngN6h","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ue1Zv-a2nVmTs6h-SsO0h","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tqeehvtTnjYnGmOnFmiZt","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uPHScPMf5LOdg9V15a3PH","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3dVXRy2QjyBB_NiazpvK0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4mwnXhUbnv_-KVAvWEOJj","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1ukdnoBFF5nRTGFiOyzoh","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vwvQJeto9OTXVD5QRnD-R","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rCmg_a33gYfR-onH_nba-","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                if this UISpriteElement should use screen coordinates or local coordinates\n(Note: any UISpriteElement elements added to a ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gj4DaMn6ZR85gAUjFB-2H","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cV7Z-O9ewbwYkwKnytgbT","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EYKSl_rUBA4dqLD2s6eyR","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                Tap and hold threshold timeout in ms

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Lj6toiRaGR52uiR5UX-H8","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                true if the pointer is over the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0U6hjU24ncBZVTDBsHdd-","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QDOdfbkIE8lAbVfoI7TyN","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                object can be clicked or not

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TpHxLTHNf-XLTOIVE42of","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DRVveD0YqqVc4_aZucTBA","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8zvZFbPiWWon8RnRt5fDB","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w7mM22Ka602sehN2cySAZ","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"92Baz2rhvmQT4LCr3PbAE","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                object can be tap and hold

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5_LBP_9WC_uIzvBkCnqZN","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JW5JQP1Jn0g0T2ZzZ8krA","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nxZTsWbGzWADEmGNqyxQV","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p09sufVZcSigi4tpYBQNP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-fo-j-l2ig3cMWySXAKlL","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t2x-C-kmngaHpAVj9cnPM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DZR2PH8FB5aKIwjJ32aWS","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                global offset for the position to draw from on the source image.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pAW0q8CE9HqfxzBAZb3Jf","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oLf1GmQD9em8MT8QYJiSB","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0BVJHw9JyOUtCxqYxYUt0","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ISXWayqU6ds1FQqRHDZ-n","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vlmdE2duywAspmn9xHm-t","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y3Q4jCQvlr2I8ejToRH-b","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nz1DLAmoDXdzGdZJxpddn","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                The source texture object this sprite object is using

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yoo77lvJUwLq7ei7-wwmz","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7j4oC82fvVid0dlAYNy15","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H_hiiiTJAZJjPCI3n6hJm","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4mgYV9CHLbcPaXiMYd2CR","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FZn_b-1f1mJ9iqTpx8JtJ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nT-zqfdfE90Gf2hHebW2f","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                add an animation
                \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                animation id

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                cycling speed for animation in ms

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                frame amount of frame added to the animation (delay between each frame).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o1y5A9LoAOZjSE2iKWg0T","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iHNNib_jjY0mccqS-lSm-","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"swlJE3eLFEbO8WS3SAoqC","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XGiKhpSjxR490Jp-gA9GI","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a basic GUI Object\n class myButton extends UISpriteElement {\n constructor(x, y) {\n // call the UISpriteElement parent constructor\n super(x, y, {\n image: \"button\",\n framewidth: 100,\n frameheight: 50\n });\n }\n\n // output something in the console\n // when the object is clicked\n onClick(event) {\n console.log(\"clicked!\");\n // don't propagate the event\n return false;\n }\n });\n\n // add the object at pos (10,10)\n world.addChild(new myButton(10,10));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate of the UISpriteElement Object

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate of the UISpriteElement Object

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                See {@link Sprite}

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Dcn-ahWBcEDjsiw0CDrpF","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9Lofq9bAVPcVhAPB57cuR","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bo7o5AhsqQwZHW8XikQ7i","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5a1hUNQ-VDcXta2emJY4T","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"l7g26jC5Zg92hS0-39DJy","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                make the object flicker

                ","params":[{"identifier":"duration","optional":false,"description":"

                expressed in milliseconds

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                Function to call when flickering ends

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bzEiroI2hCKZeJmz_SnD5","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MeNfm9wVbrrWa81FC5wj0","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qVsDlzMUIjyK1G2aTxZBj","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uJAQXz6iwQNGqbK48HOQY","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FXE6wxebQ29AFMq1pZ5Ao","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the current animation frame index.

                ","params":[],"returns":[{"description":"

                current animation frame index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nLljz2s1H0Li9_APYdZCo","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"uP1qlknJ-isVxpgMdFrd3","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aZZdtD1yqa3o3nOlepLL4","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qAh2Ly5V9cU2YgHpoL3bH","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                return true if the specified animation is the current one.

                ","params":[{"identifier":"name","optional":false,"description":"

                animation id

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4ZeeEZZKn6POQKOKOd6ll","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"l86wTLr7lvsxjOcxqDuX3","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the flickering state of the object

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mYW8r_EpUlk_0Am6sS4vV","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DRFwcgIeTn2FpSPMbw5qP","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed (to be extended)

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TBmObGCMkuBhzUk6LuFyz","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rCHIXRMJs1alc-dWWhtNN","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"okHZQEFFuPG1-t587NaNm","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and held
                \nto be extended

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s4xIEcyxEsa0J5yTsvwAI","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is leaving the object area

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IBPPTuzaEqKIA3SlJKUgm","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is over the object

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DLMhTtaZ4yiRjKOfIkF7V","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and released (to be extended)

                ","params":[],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"IDyjMb5Ugd55EouCcGRL-","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"DxCqb8zOye-O7Y-CpTyb1","name":"pause","brief":"

                play or resume the current animation or video

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lYFQKkQzjM8vhGRw_dTQ5","name":"play","brief":"

                play or resume the current animation or video

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yRX0ri7sJPLr4ZozWk1qN","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"fe8iI5EyROtExlp4W45eq","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"5wEzo5X_JSh_oPS9Sp26D","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0mo3tYUX2YttPLHwn5AfR","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CKQ-CXb4LQgyX8bJUkU6t","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                reverse the given or current animation if none is specified

                ","params":[{"identifier":"name","optional":true,"description":"

                animation id

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yD9MYWfwHFthsDTKLkb_Y","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VzCRCLCR8C6gp_9c4IlFL","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zy9uvUmfLcoNcTyDTkWAi","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bTczvL429H_qTyXHePl8t","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                force the current animation frame index.

                ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                animation frame index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ec5VL8rGELsDmzmjRuiNN","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                set the current animation\nthis will always change the animation & set the frame to zero

                ","params":[{"identifier":"name","optional":false,"description":"

                animation id

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                animation id to switch to when complete, or callback

                ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                if false will reset the elapsed time counter since last frame

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NLaMyUt4ZoofAAMTPWJKl","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"s50ABNRHCFPPutkNlwYOm","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                change the current texture atlas region for this sprite

                ","params":[{"identifier":"region","optional":false,"description":"

                typically returned through me.Texture.getRegion()

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WHypjffWMSAcoCC-7HTNP","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cabupkX7c6QqiGJJH_A8r","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ThaK5PSCltUQ_n1Oyhx2K","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AwWK81E0-J9RRgDZEnd1T","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LdGg6-NkAJq_F-UyxD6hz","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eHrS4-dR5wfWWbzyQVnpQ","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ACVOIxU96Nn0kmGgEEY5j","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uSOK1Zd9Sc67piPnZd5f-","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VfB_xEw_44qeEz2yXr5hy","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WJ7hNgdj13c9cJBtAhCNP","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this shape.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this shape bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D_dvfoW2IxBu8AGL2lVS8","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                draw this srite (automatically called by melonJS)

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"uIIVJ8wRf6x0uXB-cTXl8","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                update function.
                \nautomatically called by the game manager {@link game}

                ","params":[{"identifier":"dt","optional":false,"description":"

                time since the last update in milliseconds.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the Sprite is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oKeemzn_3wGAOqfWA0BPx","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"RR1-hvQcbd-rf3C7Phqk_","name":"UITextButton","brief":"","type":"ClassDoc","description":"

                This is a basic base text button which you can use in your Game UI.

                ","params":[],"returns":[],"extends":["UIBaseElement"],"implements":[],"members":[{"id":"fYQQyQBx0jWAaTvfx-vQ8","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                Define the renderable opacity
                \nSet to zero if you do not wish an object to be drawn

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sN85KAwKA73xbiGtGtOvl","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object will always update, even when outside of the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W3vH6OXIUEi9K0UwSbx11","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                a reference to the parent object that contains this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVHJ8-X-9GTX7UiLYjH9I","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                The anchor point is used for attachment behavior, and/or when applying transformations.
                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Vit-HAotiso1GnhSdHjK","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children z index should automatically be managed by the parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FXaIWrmdewuj7HDqOlzaT","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                Specify if the children list should be automatically sorted when adding a new child

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EoiaQQgQitaSsbsPUt1zj","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GvXmnZ7LQ32_CZOZnWPD7","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a background color for this container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EFWvoDm2VxqWeX37xsv2x","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The key to bind the action to

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YYTFyVk74gvE71mJcmlCR","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the bitmapText used by the UITextButton class

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JeupIrh76EyA-WbjCHRr","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ASAUlQsUyqWpo6hwOOyZh","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                the renderable physic body

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vCwpQvZPvdskv3D0TEL1o","name":"borderStrokeColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The css value of a color to be used to draw the border

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mUjvAJctc0soA5RoII8gr","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                bottom coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IadvphVaQxuBPxOVpftPS","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T9iarfSTCeNXHOha1x2LP","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                absolute center of this rectangle on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eTQfCbQf3Hd47V7O2pY8C","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container draw operation should clip his children to its own bounds

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cz4vHqk6CVc0uinOMnYDC","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the renderable default transformation matrix

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uHz6KH5U_9-1FrYJ9yJ_2","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the depth of this renderable on the z axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"InWUqTvfKFCKxuY-5rW3p","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oofiltsb88L9I2TdPEUGM","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0c-VYJS-Fe9A8Sy8fkK5_","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                (G)ame (U)nique (Id)entifier"
                \na GUID will be allocated for any renderable object added
                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"joKGCN6R-y11v1JUjbrYb","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                height of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sVsUQe_1nMig-P7nqUKtt","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                Tap and hold threshold timeout in ms

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xQwVfQCcKR4Jfv8ub6leo","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                true if the pointer is over the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0zDumic3tE3WOCwBJFkwe","name":"hoverOffColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The css value of a color to be used if the pointer is nothovering over the button

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mNVlEkjR9H1Goo5aSoztS","name":"hoverOnColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The css value of a color to be used if the pointer hovers over the button

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fXattKZ73aSbt_crQ9bYZ","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether the renderable object is visible and within the viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ttoCfH_BIzMovPzZFWKw3","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                object can be clicked or not

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vJr6n_TiI12Cr939btdup","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                when true the renderable will be redrawn during the next update cycle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m-lEGqVUHbzTlkfEfX3oN","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                object can be clicked or not

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o-iHnaWK-M0wuh-JonEsE","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the horizontal axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fj064094M8pF3L0LpnvQe","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                returns true if this renderable is flipped on the vertical axis

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_nxNiFLXMLlbSYkRoN4aw","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6AJeHIAQOd2BWu4MA88Uk","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                object can be tap and hold

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1P1akAza3bTxdqJtBrpRO","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                If true then physic collision and input events will not impact this renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kzoDgXqjhRnaXRIJxzR2P","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                make the renderable object persistent over level changes

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0hUsYhcI7njQbKRZ8aFQg","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                left coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrGq-24e_56EStndweu7B","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Do8bQAOIo0XSIOx_2TEHG","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                The name of the renderable

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aNkr3uxSGcr4V3rtUmHnv","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                an event handler that is called when the renderable leave or enter a camera viewport

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8hyFQqV0GDZqTio4Ru-BQ","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                returns the parent application (or game) to which this renderable is attached to

                ","params":[],"returns":[{"description":"

                the parent application or undefined if not attached to any container/app

                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-IKT5633C0tEnMljzuztX","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                Array of points defining the Polygon
                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1xtbY7CI3-wHBHl19KMwC","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                Position of the Renderable relative to its parent container

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"waOyu6l1GRtSTtDzebZl5","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                false if the pointer is down, or true when the pointer status is up

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eeErmkuOHixLmYYQhFES3","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                right coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukz83E4-zxqo2NbgyGzpG","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                whether the container is the root of the scene

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lYiIlKpqgjTo9_ZBiPMTp","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CUknVvnm_-PHb3OEweiQf","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4uCWXmYo0FtW7s_Tp7-Ew","name":"textAlign","brief":"","access":"public","defaultValue":"\"center\"","scope":"instance","type":"PropertyDoc","description":"

                Set the default text alignment (or justification),
                \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yJ6yTNwbxgLAKK54o6sY5","name":"textBaseline","brief":"","access":"public","defaultValue":"\"middle\"","scope":"instance","type":"PropertyDoc","description":"

                Set the text baseline (e.g. the Y-coordinate for the draw operation),
                \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l7Eg_NpS4ZVDoBLVJXMbD","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GlnBiJqH4tHik0Jur7ldi","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                top coordinate of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PB1GM9PkZ6RT7-TvXXWdo","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                the shape type (used internally)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L3WluXf0jgtKZZ47ax71g","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                Whether to update this object when the game is paused.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aPhtVYXIKukW99XEHq2kB","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                width of the Rectangle

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x_3yVQkEUjBW6u4fUQ_x3","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container
                \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                forces the z index of the child to the specified value

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zqWQnsjrXHQd9KThpCPW8","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add a child to the container at the specified index
                \n(the list won't be sorted after insertion)

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                The index at which to insert the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the added child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QR6RlmFmAiz0yWcjx3YCw","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KTynsiuenDYc-27rFlMpu","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                center the rectangle position around the given coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                the x coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the y coordinate around which to center this rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kZFCo2Ka0ekJiHCAmhBm6","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                clone this rectangle

                ","params":[],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"viVdMzsKZGnH7umF026Ne","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a new Button\n class PlayButton extends UITextButton {\n constructor(x,y) {\n super(x,y, {\n font: 'my-font',\n text: 'Play',\n // if you omit the next two, size is calculated by the size of the text\n borderWidth: 200,\n borderHeight: 20,\n backgroundColor: '#00aa0080',\n hoverColor: '#00ff00ff'\n });\n }\n\n onClick(){\n state.change(state.PLAY);\n }\n }\n\n world.addChild(new PlayButton(15,200));"}],"scope":"instance","type":"MethodDoc","description":"

                A Bitmap Text Button with an outlined background border, filled with background color.\nIt uses a RoundRect as background a...","params":[{"identifier":"x","optional":false,"description":"

                x pos of the button

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y pos of the button

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.font","optional":true,"description":"

                The name of the BitmapText font to use

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"default":"1","description":"

                The scale factor of the BitmapText

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

                The text to display

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.bindKey","optional":true,"description":"

                The key to bind the action to (default: none)

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOffColor","optional":true,"default":"\"#00aa0080\"","description":"

                The css value of a color to be used if the pointer is not hovering over the button

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOnColor","optional":true,"default":"\"#00ff00ff\"","description":"

                The css value of a color to be used if the pointer hovers over the button

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderStrokeColor","optional":true,"default":"\"#000000\"","description":"

                The css value of a color to be used to draw the border

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.fillStyle","optional":true,"description":"

                The css value of a tint color to be used to tint the BitmapText

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textAlign","optional":true,"default":"\"center\"","description":"

                horizontal text alignment

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"middle\"","description":"

                the text baseline

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderWidth","optional":true,"description":"

                Width of the button

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.borderHeight","optional":true,"description":"

                Height of the button

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lYGSWyhcasH0ff9g2r7da","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                Returns true if the rectangle contains the given point or rectangle

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point, or a rectangle to test

                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                True if the rectangle contain the given point or rectangle, otherwise false

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Zo_gJI6r1UlsY60eKeLez","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                copy the position and size of the given rectangle into this one

                ","params":[{"identifier":"rect","optional":false,"description":"

                Source rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                new rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"49dK_Me9b0jiU4cgE--aM","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance to the specified target

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                distance

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cf2uUVibOkhWkF1hyKwnA","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is identical to the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if equals

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WdtTlVf5TguTWumIwidGa","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                flip the renderable on the horizontal axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-jza48SMd2zjfpj_5V2Bn","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                flip the renderable on the vertical axis (around the center of the renderable)

                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                true to flip this renderable.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZDhLaCMbaMEbyASS9QTzh","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                The forEach() method executes a provided function once per child element.
                \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                fnction to execute on each element

                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                value to use as this(i.e reference Object) when executing callback.

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"kh6eP7bQf6ZnBH_0sBRV5","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the renderable absolute position in the game world

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AAoqi1hV6biGrK5kgrA6U","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the bounding box for this renderable

                ","params":[],"returns":[{"description":"

                bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XF91R6D6zyyjPXmfRlFLI","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the Child at the specified index

                ","params":[{"identifier":"index","optional":false,"description":"

                The index of the child

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                the child at the specified index

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fR0lPq5yjJ4nFDCOGBfoQ","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the specified GUID
                \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                child GUID

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                corresponding child or null

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qQdcWfS4DlqImodG7d2wc","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified name
                \nas defined in Tiled (Name field of the Object Properties)
                \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                child name

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Ypm20NNLJu_kCFJzyHk4q","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                return the child corresponding to the given property and value.
                \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                Property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                Value of the property

                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                Array of childs

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-F45tQbaTXcs2AKICcKAJ","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the list of childs with the specified class type

                ","params":[{"identifier":"classType","optional":false,"description":"

                Class type

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                Array of children

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"954pNDtIrkPjja7UdkBZn","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the index of the given Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CWih9xEEFYe6cK7AfN2lV","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                return all child in this container

                ","params":[],"returns":[{"description":"

                an array of renderable object

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"9X8WpwTDDeTtv_gvq0DKP","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns a list of indices for all triangles defined in this polygon

                ","params":[],"returns":[{"description":"

                an array of vertex indices for all triangles forming this polygon.

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_scETKy3-ckmTo2GcYCcD","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the next child within the container or undefined if none

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                child

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TTFd7hKOqJ9Rbyctpdmst","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the renderable alpha channel value

                ","params":[],"returns":[{"description":"

                current opacity value between 0 and 1

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q4Td7VC9h_o-2kbDL0TDe","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the instance of the root container (i.e. the current application World container).

                ","params":[],"returns":[{"description":"

                root container

                ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D1mL9HTnMiqqW_Id09_5H","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if contains the specified Child

                ","params":[{"identifier":"child","optional":false,"description":"

                The child object

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U-TRPqYPVvK9fHK4Thp-U","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                Checks if this container is root or if it's attached to the root container.

                ","params":[],"returns":[{"description":"

                true if this container is root or if it's attached to the root container

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wlCytvJwC4G10ol0idHPI","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                ","params":[],"returns":[{"description":"

                true if the vertices are convex, false if not, null if not computable

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q7H8BmGVA-nJVErSIBVqI","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                determines whether all coordinates of this rectangle are finite numbers.

                ","params":[],"returns":[{"description":"

                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"peFupyJl_HnN46fWQnDvw","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable towards the given target.

                ","params":[{"identifier":"target","optional":false,"description":"

                the renderable or position to look at

                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hlYH79jYBZ-mVyKTek8FO","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step backward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"UQZsQCdFELcDbEEvb9X94","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child the bottom (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"i6Os_lEg3WB9RtT1DKhuh","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the specified child to the top(z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z9tbBUNDH1T6Ei7YNr1as","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Move the child in the group one step forward (z depth).

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be moved

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Rm2mfA5QloslViw0brjd6","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                a callback to be extended, triggered after a child has been added or removed

                ","params":[{"identifier":"index","optional":false,"description":"

                added or removed child index

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3T8orE8TPGFIg_YZ_xeWt","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed (to be extended)

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"SKsZVTMsUeZmOZoqc3ptg","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                ","params":[{"identifier":"response","optional":false,"description":"

                the collision response object

                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                the other renderable touching this one (a reference to response.a or response.b)

                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                true if the object should respond to the collision (its position and velocity will be corrected)

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7B7B8CMYF9F2q-B6cwEVT","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                OnDestroy Notification function
                \nCalled by engine before deleting the object

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JdWkVQlTrKl2TN3LUlQlM","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and held
                \nto be extended

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CMYicZFvIVsvG0kpYO-vd","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is moved over the object

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"X0NEQhNMv8p2zFOs7jh4f","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is leaving the object area

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"zLR4I0G0kZdwUh3bxK_nN","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the pointer is over the object

                ","params":[{"identifier":"event","optional":false,"description":"

                the event object

                ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AN1gKInr_KgW922myYxfm","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                function called when the object is pressed and released (to be extended)

                ","params":[],"returns":[{"description":"

                return false if we need to stop propagating the event

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"e3qAwbu846CFxee8czVLI","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if this rectangle is intersecting with the specified one

                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"25tbXJmbuZNX63Jtwu9Xr","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                restore the rendering context after drawing (automatically called by melonJS).

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"-JzUyNlLGdwB6g1BAmnBD","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer object

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"ChMUrlUSGlnffl6ozCLNE","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c8XudpMFkmz8Qi4bMYqQh","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                true to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CzvCJxYGGnSdobLdrBhS0","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                Removes (and optionally destroys) a child from the container.
                \n(removal is immediate and unconditional)
                \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                Child to be removed

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                True to prevent calling child.destroy()

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"b1DvwubWjFYL9UfUwlUkF","name":"reset","brief":"

                reset the container, removing all childrens, and reseting transforms.

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ggvnWCnzGup9B9c2MVIVv","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resize the rectangle

                ","params":[{"identifier":"w","optional":false,"description":"

                new width of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                new height of the rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9vDvlS0Eh2_Uuo-hDn8WK","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this renderable by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EJXCRqG28w4Z5q--au5aH","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                a number representing the abscissa of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                a number representing the ordinate of the scaling vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tCWw9FcvcrmxdC2qPJNvc","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                scale the renderable around his anchor point

                ","params":[{"identifier":"v","optional":false,"description":"

                scaling vector

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tvg59RmNK2ooV3M4-Lg8N","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                Automatically set the specified property of all childs to the given value

                ","params":[{"identifier":"prop","optional":false,"description":"

                property name

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                property value

                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively apply the value to child containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"xW4_A6q_-sLK9iFj6Bm_s","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the renderable alpha channel value

                ","params":[{"identifier":"alpha","optional":false,"description":"

                opacity value between 0.0 and 1.0

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Flx6OxAlSkksp5Ywkksua","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                set new value to the rectangle shape

                ","params":[{"identifier":"x","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                position of the Rectangle

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                width of the rectangle, or an array of vector defining the rectangle

                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                height of the rectangle, if a numeral width parameter is specified

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                this rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vfrqFTbzON8bzIaZ4SgMW","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the vertices defining this Polygon

                ","params":[{"identifier":"vertices","optional":false,"description":"

                array of vector or vertice defining the Polygon

                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                this instance for objecf chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IHjgbJdvhvkmG11xGLS2V","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                Shifts the Polygon to the given position vector.

                ","params":[{"identifier":"x","description":"

                x coordinate or a vector point to shift to

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"edyqzxyiADTfEFkRP5KzX","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                Manually trigger the sort of all the childs in the container

                ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                recursively sort all containers if true

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"UPrLbDjAVEwu6fWfo-PGw","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                Swaps the position (z-index) of 2 children

                ","params":[{"identifier":"child","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                Child to be added

                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"lV1-8Y84lX0BI30daApw-","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply a 2d projection to this shapen

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EaXIVui9KJ4lncZF6P7c-","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                apply an isometric projection to this shape

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oteSHIW1OLb17x6ThYDDD","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns a polygon whose edges are the same as this box.

                ","params":[],"returns":[{"description":"

                a new Polygon that represents this rectangle.

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nOy7oYRSt1-4DSHgIuYR-","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                multiply the renderable currentTransform with the given matrix

                ","params":[{"identifier":"m","optional":false,"description":"

                the transformation matrix

                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yYyM_8F29qvqnY8Fk6kD7","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                translate the Polygon by the specified offset

                ","params":[{"identifier":"x","description":"

                x offset or a vector point to translate by

                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                y offset

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tI8tHzdoc2RwBYNkQD1iY","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                merge this rectangle with another one

                ","params":[{"identifier":"rect","optional":false,"description":"

                other rectangle to union with

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                the union(ed) rectangle

                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vf2fBURGtNZSTV3z8KMMF","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                update the bounding box for this container.

                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                update the bounds size and position in (world) absolute coordinates

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                this container bounding box Rectangle object

                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yQRu-cq-UjunqvUnTX7Ev","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                draw this renderable (automatically called by melonJS)

                ","params":[{"identifier":"renderer","optional":false,"description":"

                a renderer instance

                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                the viewport to (re)draw

                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yFPb1f6CXM__v9kBm72AN","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                container update function.
                \nautomatically called by the application update loop {@link Application}

                ","params":[{"identifier":"dt","optional":false,"description":"

                time since the last update in milliseconds.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                true if the Container is dirty

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"n2nOaPJGY39zlWulqaxXn","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                called when the anchor point value is changed

                ","params":[{"identifier":"x","optional":false,"description":"

                the new X value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                the new Y value to be set for the anchor

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"uXlHRYx7VgJGyE2Cr7oLr","name":"Vector2d","brief":"","type":"ClassDoc","description":"

                a generic 2D Vector Object

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"wguUB1NnTAxjnZsNUjvD5","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                x value of the vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wLAdamnr-N4417xyvgalC","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                y value of the vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ooMKIATEHdcB2g_QzPO3","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector values to absolute values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"exSavZc3XUflXsmE4VoFD","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add the passed vector to this vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ynLoAiDxsJVeSCv3VQAJq","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle between this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_v8hya2ZXgAfa6PS7tvFa","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                Ceil the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector2d

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7qRSdSYbKZjNfxTYY7Nhx","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Ceil this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uGFd6LHFSE5LSFj61yX6b","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Clamp the vector value within the specified value range

                ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                new me.Vector2d

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tXFTZupW0qDcwzBULOFEl","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Clamp this vector value within the specified value range

                ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3xf5NLOcRH4NmFFgKd09y","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a clone copy of this vector

                ","params":[],"returns":[{"description":"

                new me.Vector2d

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H6b2xAQAEo-8oyzb8nXiQ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                x value of the vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                y value of the vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eQhXgQ0OPAhIenWpel7ZO","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                Copy the x,y values of the passed vector to this one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Q_dNyHbmaQw7U3LYC0SKr","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the cross product of this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                The cross product.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pHT3i8cuCiw_q_SKkeYwE","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance between this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"prKqKowgBy7ccdGVIf-p0","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                Divide this vector values by the passed value

                ","params":[{"identifier":"n","optional":false,"description":"

                the value to divide the vector by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GujFKlc7HW9Hf-Gm-0vyR","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the dot product of this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                The dot product.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"83LZyNM9COa-o16n5m5Lj","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if this vector is equal to the given values or vector

                ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NUKUgrUKQ5CK1PcC6cjjX","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Floor the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector2d

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GRrGiG6eJVMl6L75Eu4Ky","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Floor this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y_avnT1qHYibYkgYwNNL3","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the length (magnitude) of this vector

                ","params":[],"returns":[{"description":"

                the length of this vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Aqp6yJexUYStJb6KTctMm","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the square length of this vector

                ","params":[],"returns":[{"description":"

                The length^2 of this vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pV4Jy53FmAjAVAMQ_Re4p","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Linearly interpolate between this vector and the given one.

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K8tLy1fwLGb3_2yX5RVDP","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector with the maximum value between this and the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RdEtNtn0VLy_HPMZxQ7qJ","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector with the minimum value between this and the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d3MRwzGx7jWnnAegLy3EZ","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                interpolate the position of this vector towards the given one by the given maximum step.

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"step","optional":false,"description":"

                the maximum step per iteration (Negative values will push the vector away from the target)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aCVvNUk4agWa32oB0oa02","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Negate the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector2d

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3iNOZ7bVZPvlYcOwSnwkY","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Negate this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TLC1_tpYWcb32tpgs-HZT","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                normalize this vector (scale the vector so that its magnitude is 1)

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LQhqFkqmoSNFbwywvKue_","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                change this vector to be perpendicular to what it was before.
                \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J28QL6oWOh5duK6cxsMz6","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                project this vector on to another vector.

                ","params":[{"identifier":"v","optional":false,"description":"

                The vector to project onto.

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AryRq_gZbVyHh_OBWc3Ku","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                Project this vector onto a vector of unit length.
                \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                The unit vector to project onto.

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bq16sRD4jwbxh9fQmoDw3","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this vector (counter-clockwise) by the specified angle (in radians).

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_KiCJAsN3FaUgUszipurC","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                Multiply this vector values by the given scalar

                ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1k53JruLduCwHNgkHjwIJ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Multiply this vector values by the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Uj-x-cqiEXPJkm2chKQ9R","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties to the given values

                ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"40GRu5NZBBfAKtoRO-vFN","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties using the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2fds7MSxUyPFu00dIRXEd","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties to 0

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QWTtoSOg7ZBEupo0R9uuu","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                Substract the passed vector to this vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MrhByLp8gcld2ERSdXrZl","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                Convert this vector into 2d coordinate space

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uYe0V2qWXOJPoqroKl0Ti","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                Convert this vector into isometric coordinate space

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ExBCTdfCvhH8O4wmG0vbG","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                convert the object to a string representation

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"X0dvJQGqVhqC-FjQ1a7Lc","name":"Vector3d","brief":"","type":"ClassDoc","description":"

                a generic 3D Vector Object

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"zvFWfX7O84Tsu0pJFVqkd","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                x value of the vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UUv4Jp24RTjaQ3ntXT-8v","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                y value of the vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U20XzwEp7Hin9hxLJQHOd","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

                z value of the vector

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mSHhL4o84NXIp9cM6cJjb","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector values to absolute values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"373Z9O_Or7tfeOBp697SW","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                Add the passed vector to this vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IWMTY_s_bnCNvBYP6z9qa","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the angle between this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7rjRFU5f0_2liGqzMn91m","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                Ceil the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector3d

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qSUPsQJj7Nst-Nar3IWNL","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Ceil this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jbHoNsrKl1mrmHBBtrwuQ","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Clamp the vector value within the specified value range

                ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                new me.Vector3d

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GXnHgf049n6IlgaYMosqE","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Clamp this vector value within the specified value range

                ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cNeoAjNuqxpsbbBOCqJKm","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a clone copy of this vector

                ","params":[],"returns":[{"description":"

                new me.Vector3d

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yA_TkvynTi8q8kpPMhSza","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                x value of the vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                y value of the vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                z value of the vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"fe6PFKZUZV6KoZqlrqNPS","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                Copy the components of the given vector into this one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CEbnmQcvz6c289OJPheW0","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                calculate the cross product of this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4tRZ17M2hqGxDNYy55yTQ","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the distance between this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sr8AEgGOxzrFae2i2TWME","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                Divide this vector values by the passed value

                ","params":[{"identifier":"n","optional":false,"description":"

                the value to divide the vector by

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uX5NFLGAvAc84gQgprX3N","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the dot product of this vector and the passed one

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                The dot product.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AakXFHNUGZXlVARhlo2yp","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                return true if this vector is equal to the given values or vector

                ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pzOoJ4g9HKGcGtQ52kxqU","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Floor the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector3d

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w88wuMOMa2j-HfEWixvk3","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Floor this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VOU9Q1AEhc0bE0qsHu4lY","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the length (magnitude) of this vector

                ","params":[],"returns":[{"description":"

                the length of this vector

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LGWZSqAAsP21TtpWelM8K","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the square length of this vector

                ","params":[],"returns":[{"description":"

                The length^2 of this vector.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wCoSATbMjntnIFwqsDSoO","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                Linearly interpolate between this vector and the given one.

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X7z3HO_S4B_dsArE9iZSF","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector with the maximum value between this and the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MyZrElNx8UpIiirLhVkta","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Update this vector with the minimum value between this and the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i1ZnWPqvmrfKOlrJSXHgx","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                interpolate the position of this vector on the x and y axis towards the given one by the given maximum step.

                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

                the maximum step per iteration (Negative values will push the vector away from the target)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4_qzVX02QHpu-212GwgvC","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Negate the vector values

                ","params":[],"returns":[{"description":"

                new me.Vector3d

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PoaS6ROVhvJHUPQ_4WNzB","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                Negate this vector values

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5CDmOf2iwAXHe4MP0_u3t","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                normalize this vector (scale the vector so that its magnitude is 1)

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ItVAWpitgH6sCleBV1xvJ","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                change this vector to be perpendicular to what it was before.
                \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JV5mY3Eel1bnv54BoUNeE","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                project this vector on to another vector.

                ","params":[{"identifier":"v","optional":false,"description":"

                The vector to project onto.

                ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0-FPkqrP-T47jEACBXmOh","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                Project this vector onto a vector of unit length.
                \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                The unit vector to project onto.

                ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wiXNMyKli8ROb75GQ2HUh","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                Rotate this vector (counter-clockwise) by the specified angle (in radians) around the z axis

                ","params":[{"identifier":"angle","optional":false,"description":"

                The angle to rotate (in radians)

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                an optional point to rotate around (on the same z axis)

                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"282vbUgK7FKtFXaQoCBQW","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                Multiply this vector values by the given scalar

                ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mrSR8sjtatVWM7eYxs9QH","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                Multiply this vector values by the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NpMgFqwLedT_dyg0x5wgY","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties to the given values

                ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S32t8RExOh3j1Qo1OaJxW","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties using the passed vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dsv_mNDuioXIP--TMS4Oe","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                set the Vector x and y properties to 0

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4VD1XDqtdLYs5o-x-r2Zp","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                Substract the passed vector to this vector

                ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V8UAdO6Mp-26i2cQc24OO","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                Convert this vector into 2d coordinate space

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IVRVMVMjGZKAxFd-VzT2y","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                Convert this vector into isometric coordinate space

                ","params":[],"returns":[{"description":"

                Reference to this object for method chaining

                ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RfLPezSbq7jOlm_7rmhlT","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                convert the object to a string representation

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"wmZhJAfrnf_V97pkYytWl","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

                a WebGL renderer object

                ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"_NqgpVzx62AN9-6Vd0iSY","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The list of active compositors

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HcGemAWcHRlG7ev1Y7F-Z","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The current compositor used by the renderer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X3ULDCZWkZM5OqAzrWwGb","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

                a reference to the current shader program used by the renderer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8EZ69Hhk_XtAK-Iq67t5e","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The current transformation matrix used for transformations on the overall scene

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nwn-XWjLYEyr48BMgwJLH","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                the default method to sort object ("sorting", "z-buffer")

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1VFN78IGjS1fIzDPbSJ6H","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                the requested video size ratio

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RXqbrJibdCo8jvA75BDPh","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The WebGL context

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J-KE06_ZTBzroHD0M-t3p","name":"GPURenderer","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                The renderer string of the underlying graphics driver.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0Iox1kaQr-D2kFjFfwDfF","name":"GPUVendor","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                The vendor string of the underlying graphics driver.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SQbp6MjouUsWFl6rVlgPH","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                return the height of the canvas which this renderer draws to

                ","params":[],"returns":[{"description":"

                height of the system Canvas

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SBboeV5BecQ2g0n0KH3zk","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                true if the current rendering context is valid

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pkr2n01mJ2jYuglkfZzkS","name":"maxTextures","brief":"","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                Maximum number of texture unit supported under the current context

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V6z88wc3LCgkTNJ_BzO6d","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                The Path2D instance used by the renderer to draw primitives

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lBCdZidFBZn96iXNgQAbw","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                the scaling ratio to be applied to the main canvas

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h2j1sd-2QIRT-ac6C1rzg","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                The given constructor options

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dM7Dtt1ecUSnIMpdw5W0n","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hjbOHReaIzy_QiT7XbuIa","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                the vertex buffer used by this WebGL Renderer

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M1rVaFEiiIdORmMcoeQj7","name":"WebGLVersion","brief":"","defaultValue":"1","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                The WebGL version used by this renderer (1 or 2)

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f3trMmwkbtg_AXUXmwASM","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                return the width of the canvas which this renderer draws to

                ","params":[],"returns":[{"description":"

                width of the system Canvas

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rE4HC04i4d2yJdkalHI0_","name":"addCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                add a new compositor to this renderer

                ","params":[{"identifier":"compositor","optional":false,"description":"

                a compositor instance

                ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":false,"default":"\"default\"","description":"

                a name uniquely identifying this compositor

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"activate","optional":true,"default":"false","description":"

                true if the given compositor should be set as the active one

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"sOdfGCk8d3PlPxpaolNup","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

                starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t4XThDGbXDZ2xzmeWa_g8","name":"clear","brief":"

                Clear the frame buffer

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x7UzcdZQwtcXHXeg-cZ-Z","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                Clears the gl context with the given color.

                ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

                CSS color.

                ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

                Allow transparency [default] or clear the surface completely [true]

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"zLx4ltiexJ8KZhiJ689QD","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

                disable (remove) the rendering mask set through setMask.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jgYZ8P_fw0xFX_R4yPY6G","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ewZi_UffC6zdA7I0XsMp7","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                clear the rendering tint set through setTint.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dUtsHKSfqxekMPYGhYcqW","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                the width of the rectangle to start clipping from.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                the height of the rectangle to start clipping from.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"E5EFxDgSCEYItW-gdg5uV","name":"closePath","brief":"

                add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KmFqzmFo3-0tRd9dbN3Ts","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                optional parameters for the renderer

                ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YQuXFY8YL3_-j1PqHE8V4","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

                Create a pattern with the specified repetition

                ","params":[{"identifier":"image","optional":false,"description":"

                Source image to be used as the pattern's image

                ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

                Define how the pattern should be repeated

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                the patterned texture created

                ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"45jZB-nOmRYh_G1NxFMAY","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

                Draw an image to the gl context

                ","params":[{"identifier":"image","optional":false,"description":"

                An element to draw into the context.

                ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

                The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

                The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

                The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

                The height of the sub-rectangle of the source image to draw into the destination context.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

                The X coordinate in the destination canvas at which to place the top-left corner of the source image.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

                The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

                The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

                The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WnHQY6AfZ4mEBEtLVIw5O","name":"drawPattern","brief":"","scope":"instance","see":["WebGLRenderer#createPattern"],"type":"MethodDoc","description":"

                Draw a pattern within the given rectangle.

                ","params":[{"identifier":"pattern","optional":false,"description":"

                Pattern object

                ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                x position where to draw the pattern

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y position where to draw the pattern

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                width of the pattern

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                height of the pattern

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"td5W0IURqXvGyJR6anDW6","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                fill the given shape or the current defined path

                ","params":[{"identifier":"shape","optional":true,"description":"

                a shape object to fill

                ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"LXnrkThKe8v6xI9HKlmqA","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                Fill an arc at the specified coordinates with given radius, start and end points

                ","params":[{"identifier":"x","optional":false,"description":"

                arc center point x-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                arc center point y-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                arc radius

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                start angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                end angle in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                draw arc anti-clockwise

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"DJni1TVyOZpQzsfv8kPtj","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                Fill an ellipse at the specified coordinates with given radius

                ","params":[{"identifier":"x","optional":false,"description":"

                ellipse center point x-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                ellipse center point y-axis

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                horizontal radius of the ellipse

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                vertical radius of the ellipse

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cJhg2m4OfvHEzHr17gT-9","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                Fill a line of the given two points

                ","params":[{"identifier":"startX","optional":false,"description":"

                the start x coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                the start y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                the end x coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                the end y coordinate

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Nlfi51XOsAdp17z_FMRC6","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                Draw a a point at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"21g4RDlQHC_4CKNRXXsU1","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                Fill a me.Polygon on the screen

                ","params":[{"identifier":"poly","optional":false,"description":"

                the shape to draw

                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"kUK3IfoVHee43cha318vv","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                Draw a filled rectangle at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3-iFq-wJbMWeQ2zf1CWuG","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                Draw a rounded filled rectangle at the specified coordinates

                ","params":[{"identifier":"x","optional":false,"description":"

                x axis of the coordinate for the rounded rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                y axis of the coordinate for the rounded rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rounded rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rounded rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                The rounded corner's radius.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hbQptATKNx7ECC2JgTFs9","name":"flush","brief":"

                Flush the compositor to the frame buffer

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_beIMLrXL17aAaxo91Fv5","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                returns the current blend mode for this renderer

                ","params":[],"returns":[{"description":"

                blend mode

                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"U_x2cGp8Qau4hRcpZnAg_","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                return a reference to the canvas which this renderer draws to

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1K-Crv0BtBRDhuA0C7pA-","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                get the current fill & stroke style color.

                ","params":[],"returns":[{"description":"

                current global color

                ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h8MyEEM81NEVOD1WaG_Ox","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the WebGLContext instance for the renderer\nreturn a reference to the system 2d Context

                ","params":[],"returns":[{"description":"

                the current WebGL context

                ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zn0TxxKCehJq2Q3hbP0eD","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the 2D Context object of the given Canvas
                \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

                use false to disable transparency

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wcmLZJVgzYubznEJEZJFk","name":"getContextGL","brief":"","scope":"instance","type":"MethodDoc","description":"

                Returns the WebGL Context object of the given canvas element

                ","params":[{"identifier":"canvas","optional":false,"description":"

                the canvas element

                ","dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"false","description":"

                use true to enable transparency

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"depth","optional":true,"default":"false","description":"

                use true to enable depth buffer testing

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                the WebGL Context object

                ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GBR5SNN-2JGrPNOB6s1vA","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                Return the global alpha

                ","params":[],"returns":[{"description":"

                global alpha value

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XfPSV5nan8wm0RDqnIMfb","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                return a reference to the screen canvas

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x0xkhdPJhxXu3Ba89KZn-","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                return a reference to the screen canvas corresponding 2d Context
                \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IMocnC_Ub8jSd2hj6HiVi","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                return the current global alpha

                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QPnySq5WEOVOamcXQsIHX","name":"lineTo","brief":"

                adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

                ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"rhjYIIobPEXnUMPYquuQV","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                begins a new sub-path at the point specified by the given (x, y) coordinates.

                ","params":[{"identifier":"x","optional":false,"description":"

                The x axis of the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                The y axis of the point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PpsfarpJkdJ8qXLHOIAQf","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                check if the given rect or bounds overlaps with the renderer screen coordinates

                ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                true if overlaps

                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Upx5qVoF_DOSi4E075SR5","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

                ","params":[{"identifier":"x","optional":false,"description":"

                The x axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                The y axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qrYJSHuVfJ-2qTTWq3tRu","name":"reset","brief":"

                Reset context state

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hIFYU1srJXgXIWZL-j9K2","name":"resetTransform","brief":"

                Reset the gl transform to identity

                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MXn4pJQ8g_9UFz0XugOk8","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                resizes the system canvas

                ","params":[{"identifier":"width","optional":false,"description":"

                new width of the canvas

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                new height of the canvas

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cYLzIR5UJUyjLlFpsc_Xt","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                restores the most recently saved renderer state by popping the top entry in the drawing state stack

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4tCq_ydpfye0-qnXiU_kk","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                adds a rotation to the transformation matrix.

                ","params":[{"identifier":"angle","optional":false,"description":"

                the rotation angle, clockwise in radians

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UqvZ0VqJvwM5ODPvHfYOL","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                adds a rounded rectangle to the current path.

                ","params":[{"identifier":"x","optional":false,"description":"

                The x axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                The y axis of the coordinate for the rectangle starting point.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                The rectangle's width.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                The rectangle's height.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                The corner radius.

                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"K4UlRFMAcQjHZyBWpKApk","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                saves the entire state of the renderer by pushing the current state onto a stack.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fWgJTKs5SPHMtGDaGOOQe","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                adds a scaling transformation to the renderer units horizontally and/or vertically

                ","params":[{"identifier":"x","optional":false,"description":"

                Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yowsJHtHKvO2QkNGFfUXT","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                enable/disable image smoothing (scaling interpolation) for the given context

                ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"soGiPWLlJoXaxoGeIQCbG","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

                set a blend mode for the given context.
                \nSupported blend mode between Canvas and WebGL remderer :

                \n
                  \n
                • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                  blend mode : "normal", "multiply", "lighter", "additive", "screen"

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"gl","optional":true,"description":"

                  a WebGL context

                  ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8FDr8QBolpmKse0iVkrx6","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                  ","params":[{"identifier":"color","optional":false,"description":"

                  css color string.

                  ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"l_twqtwv4oKlNq9KcM1yn","name":"setCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set the active compositor for this renderer

                  ","params":[{"identifier":"name","optional":false,"default":"\"default\"","description":"

                  a compositor name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"shader","optional":true,"description":"

                  an optional shader program to be used, instead of the default one, when activating the compositor

                  ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  an instance to the current active compositor

                  ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yvxmvBIJyk0EP5KKDtNJP","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Set the global alpha

                  ","params":[{"identifier":"alpha","optional":false,"description":"

                  0.0 to 1.0 values accepted.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JYLUqY0PuXq_K_Rwh8m4N","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Set the line width

                  ","params":[{"identifier":"width","optional":false,"description":"

                  Line width

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4w5HPMPNKWB_mRm8cjj79","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                  A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                  a shape defining the mask to be applied

                  ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                  either the given shape should define what is visible (default) or the opposite

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"wdgeP8appLvS7zfY9GnEL","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set/change the current projection matrix (WebGL only)

                  ","params":[{"identifier":"matrix","optional":false,"description":"

                  the new projection matrix

                  ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wWCf8Kk_1ws-tRAlVmgti","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set a coloring tint for sprite based renderables

                  ","params":[{"identifier":"tint","optional":false,"description":"

                  the tint color

                  ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                  an alpha value to be applied to the tint

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8acuMHfKIz73qm-YemHvk","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                  ","params":[{"identifier":"a","optional":false,"description":"

                  a matrix2d to transform by, or a the a component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                  the b component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                  the c component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                  the d component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                  the e component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                  the f component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cJAu55eGOvlvqcKraz8vv","name":"setViewport","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Sets the WebGL viewport, which specifies the affine transformation of x and y from normalized device coordinates to window...","params":[{"identifier":"x ","optional":true,"default":" 0","description":"

                  x the horizontal coordinate for the lower left corner of the viewport origin

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y ","optional":true,"default":" 0","description":"

                  y the vertical coordinate for the lower left corner of the viewport origin

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w ","optional":true,"default":" width of the canvas","description":"

                  the width of viewport

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h ","optional":true,"default":" height of the canvas","description":"

                  the height of viewport

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6XgNFiKQBKVRfhHb_zzxG","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                  stroke the given shape or the current defined path

                  ","params":[{"identifier":"shape","optional":true,"description":"

                  a shape object to stroke

                  ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"xSXBAL0X0okh8yPjwQugV","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke an arc at the specified coordinates with given radius, start and end points

                  ","params":[{"identifier":"x","optional":false,"description":"

                  arc center point x-axis

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  arc center point y-axis

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                  arc radius

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                  start angle in radians

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                  end angle in radians

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                  draw arc anti-clockwise

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  also fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"cqGiR7887cXeC_Opv_yBt","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke an ellipse at the specified coordinates with given radius

                  ","params":[{"identifier":"x","optional":false,"description":"

                  ellipse center point x-axis

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  ellipse center point y-axis

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                  horizontal radius of the ellipse

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                  vertical radius of the ellipse

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  also fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"L7cRk5Z-s2bti9_NI6zkr","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke a line of the given two points

                  ","params":[{"identifier":"startX","optional":false,"description":"

                  the start x coordinate

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                  the start y coordinate

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                  the end x coordinate

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                  the end y coordinate

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QGPFOrHAn2stnPjoV4iyF","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke a Point at the specified coordinates

                  ","params":[{"identifier":"x","optional":false,"description":"

                  x axis of the coordinate for the point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  y axis of the coordinate for the point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ARp7iQBhUUmgezXL0GvVC","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke a me.Polygon on the screen with a specified color

                  ","params":[{"identifier":"poly","optional":false,"description":"

                  the shape to draw

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  also fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"UpumKAOSAZ4Ijd-0JBll_","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Draw a stroke rectangle at the specified coordinates

                  ","params":[{"identifier":"x","optional":false,"description":"

                  x axis of the coordinate for the rectangle starting point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  y axis of the coordinate for the rectangle starting point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                  The rectangle's width.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                  The rectangle's height.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  also fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"uQG6JOSK4QL5M6Ey0XCn4","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Stroke a rounded rectangle at the specified coordinates

                  ","params":[{"identifier":"x","optional":false,"description":"

                  x axis of the coordinate for the rounded rectangle starting point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  y axis of the coordinate for the rounded rectangle starting point.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                  The rounded rectangle's width.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                  The rounded rectangle's height.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                  The rounded corner's radius.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                  also fill the shape with the current color if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"s43wxpVK4TXlAAEbFHn9A","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                  tint the given image or canvas using the given color

                  ","params":[{"identifier":"src","optional":false,"description":"

                  the source image to be tinted

                  ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                  the color that will be used to tint the image

                  ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                  the composition mode used to tint the image

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                  a new canvas element representing the tinted image

                  ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"VIPxHmBHwvBmJ4SvyVo1A","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                  creates a Blob object representing the last rendered frame

                  ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                  A string indicating the image format

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                  A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  A Promise returning a Blob object representing the last rendered frame

                  ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EfsNXnJShWDsU1Kv_YpFN","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                  returns a data URL containing a representation of the last frame rendered

                  ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                  A string indicating the image format

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                  A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  A Promise returning a string containing the requested data URL.

                  ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D3JqduTjSL1QZ-b1J8JMC","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                  creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                  ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                  A string indicating the image format

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                  A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  A Promise returning an ImageBitmap.

                  ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-totDcANRLG6KBVoXfbRP","name":"transform","brief":"","scope":"instance","see":["{@link WebGLRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                  Multiply given matrix into the renderer tranformation matrix

                  ","params":[{"identifier":"a","optional":false,"description":"

                  a matrix2d to transform by, or a the a component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                  the b component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                  the c component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                  the d component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                  the e component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                  the f component to multiply the current matrix by

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"W5LL5m0IiQQm0_P3LLAoO","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                  adds a translation transformation to the current matrix.

                  ","params":[{"identifier":"x","optional":false,"description":"

                  Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  Distance to move in the vertical direction. Positive values are down, and negative are up.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"lQ8CsAO3o2_5mHqCTGU-q","name":"World","brief":"","type":"ClassDoc","description":"

                  an object representing the physic world, and responsible for managing and updating all childs and physics

                  ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"VDHWhmxWROMR9ol_Qgmt4","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                  Define the renderable opacity
                  \nSet to zero if you do not wish an object to be drawn

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EhNqMW6nH8LkRE-Gh4Q0X","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Whether the renderable object will always update, even when outside of the viewport

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U3Lt1Evs0_2Xwzq3b2S4B","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                  a reference to the parent object that contains this renderable

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ww1VZo932omxM_EHckMQg","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                  The anchor point is used for attachment behavior, and/or when applying transformations.
                  \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lDtPOnilcaOZbCEh-ZOc0","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the application (game) this physic world belong to

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RXMP0ea01Xo-BtZLRSpnZ","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                  Specify if the children z index should automatically be managed by the parent container

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2iv6dG-jYYn9BYsWWwkVV","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                  Specify if the children list should be automatically sorted when adding a new child

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FH-vX1HoDXbKGWYYSNI07","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                  When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C37yVgONQIAo6VwGN-4Cr","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                  define a background color for this container

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DmX9CTRMnE-YqkdjwFPgu","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                  the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-JNkF_SyzPq4m2lsgRtuB","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the active physic bodies in this simulation

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LUAVdtiJaH79LgO8DYWBG","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                  the renderable physic body

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U46cYCsCBIZ6QCchjE1Pu","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  bottom coordinate of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ysLnjg4NH0zxGY_ty9qJ3","name":"broadphase","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the instance of the game world quadtree used for broadphase (used by the builtin physic and pointer event implementation)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"69yn8PhaTjW2uUNYNVEIK","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  absolute center of this rectangle on the horizontal axis

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wURbeF3e0nPINXn5HptHi","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  absolute center of this rectangle on the vertical axis

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0FSn97MKZYtBg3_QZFyQq","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Specify if the container draw operation should clip his children to its own bounds

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nw71MjorGEVj4tNB3WFgN","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the renderable default transformation matrix

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4IAuoBTxRJlFWPtRoE4Wh","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the depth of this renderable on the z axis

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NsednTDLTm6jnYZUXJlGa","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  the collision detector instance used by this world instance

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a40BNgzkJ0g794P7I1S_c","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbxm8xcecimV85PwtsThO","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eiKmCisnOL0ntttPjZFFn","name":"fps","brief":"","defaultValue":"60","scope":"instance","see":["timer.maxfps"],"type":"PropertyDoc","description":"

                  the rate at which the game world is updated,\nmay be greater than or lower than the display fps

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x3EXesKFqCUBmuRAicia7","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

                  world gravity

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kWKw_1Za5ERQ5eBPI_VzU","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  (G)ame (U)nique (Id)entifier"
                  \na GUID will be allocated for any renderable object added
                  \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygQ8Ms1EPhP2fBXNFuKlC","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  height of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ehCWLAximqx1Gj3DMN6p0","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Whether the renderable object is visible and within the viewport

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nGLa_cRm9rTf472Ie0UOB","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                  when true the renderable will be redrawn during the next update cycle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3tLmgLMdIrjnH97k5O7os","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                  returns true if this renderable is flipped on the horizontal axis

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G8devthbPzuTjMgHovFJO","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                  returns true if this renderable is flipped on the vertical axis

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KoqP5MtNBn3qIrsN_pia_","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                  Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jl5pqMLYZZnI8n7AbAiBo","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                  If true then physic collision and input events will not impact this renderable

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CWe3F_rS5VlsA26jPFrEY","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  make the renderable object persistent over level changes

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YnrzAevjuGl2XwTpIaLbl","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  left coordinate of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CPxIBi2dkGd9a3n5vFCNd","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                  A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iAszIRHKTGjTrM361TXII","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                  The name of the renderable

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jAZG3s9OG6kfU30mHpEBV","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                  an event handler that is called when the renderable leave or enter a camera viewport

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y1TLFB9pQrbORPkZgwqZX","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  returns the parent application (or game) to which this renderable is attached to

                  ","params":[],"returns":[{"description":"

                  the parent application or undefined if not attached to any container/app

                  ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c1k3uBiIb8elG3GcRUBBx","name":"physic","brief":"","defaultValue":"\"builtin\"","examples":[{"caption":"","code":"// disable builtin physic\nme.game.world.physic = \"none\";"}],"scope":"instance","see":["Application.Settings.physic"],"type":"PropertyDoc","description":"

                  the physic engine used by melonJS

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qpvPV0JHpCB4m8-wWkqrB","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  Array of points defining the Polygon
                  \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9vfQmD5oxXpx7eNrgLGoY","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                  Position of the Renderable relative to its parent container

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"941ZY7YznyTBF36Gj5sO7","name":"preRender","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Enabled pre-rendering for all tile layers.
                  \nIf false layers are rendered dynamically, if true layers are first fully r...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rcY3DnD6azZQSY-NxGHO5","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  right coordinate of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L1xIZnCrYLCIyBs60eDF5","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  whether the container is the root of the scene

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VGY_TTxU880P1X826bReX","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                  (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2DqzwC4JXXKt7osT_nSzd","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                  The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6xiEmHoc8vUfZh2866hGh","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                  define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q0sXewkrKbYWJep5uRInf","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  top coordinate of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uAffp3ARP29lFeAQ9EgLJ","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                  the shape type (used internally)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OlQQeaFH6SY74mkPAGBgQ","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                  Whether to update this object when the game is paused.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JnUZYD_28nLi2A7YhfxND","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                  width of the Rectangle

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2ghX6pmGiBqJxJ5V5_gAW","name":"addBody","brief":"","scope":"instance","see":["Container.addChild"],"type":"MethodDoc","description":"

                  Add a physic body to the game world

                  ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  this game world

                  ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kQYvfMaF6wBGKcGkUOZWi","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Add a child to the container
                  \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                  Child to be added

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                  forces the z index of the child to the specified value

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  the added child

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bob7DcTaH4Ey5Goe_iRmN","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Add a child to the container at the specified index
                  \n(the list won't be sorted after insertion)

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be added

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                  The index at which to insert the child

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  the added child

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-pqpm1-jHIN3zT7lMetc8","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                  return the angle to the specified target

                  ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                  angle in radians

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"btPZeHopwRWZ-fO_YtvJr","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                  center the rectangle position around the given coordinates

                  ","params":[{"identifier":"x","optional":false,"description":"

                  the x coordinate around which to center this rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  the y coordinate around which to center this rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  this rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6uq3yf3r_hVkmfMNJlb2K","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                  clone this rectangle

                  ","params":[],"returns":[{"description":"

                  new rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nlXE0VxI0pGVmeduW-nG9","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                  position of the container (accessible via the inherited pos.x property)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                  position of the container (accessible via the inherited pos.y property)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                  width of the container

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                  height of the container

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VG4Oi6ivllTiqPQmvypK4","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                  Returns true if the rectangle contains the given point or rectangle

                  ","params":[{"identifier":"x","description":"

                  x coordinate or a vector point, or a rectangle to test

                  ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                  y coordinate

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  True if the rectangle contain the given point or rectangle, otherwise false

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"61sk7b6mBnxJ83lai_uSE","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                  copy the position and size of the given rectangle into this one

                  ","params":[{"identifier":"rect","optional":false,"description":"

                  Source rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  new rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s7s4qUDWUjMw-JcRaP_R0","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                  return the distance to the specified target

                  ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                  distance

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1tHA1Ty-_mVbt9IvG_GM6","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                  check if this rectangle is identical to the specified one

                  ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  true if equals

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VcDQpl26OPlTkZdsII_x-","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                  flip the renderable on the horizontal axis (around the center of the renderable)

                  ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                  true to flip this renderable.

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7JwTePhso4q5t7riH3Xhy","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                  flip the renderable on the vertical axis (around the center of the renderable)

                  ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                  true to flip this renderable.

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_4groY83qFK35HABw4kI1","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                  The forEach() method executes a provided function once per child element.
                  \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                  fnction to execute on each element

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                  value to use as this(i.e reference Object) when executing callback.

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"V7aNVxpvfwp6HAZnhI1L5","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                  return the renderable absolute position in the game world

                  ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pABcb-Kmmel63dpSXnci7","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                  returns the bounding box for this renderable

                  ","params":[],"returns":[{"description":"

                  bounding box Rectangle object

                  ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IsN_0gF5iwGYugmbIn7E3","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns the Child at the specified index

                  ","params":[{"identifier":"index","optional":false,"description":"

                  The index of the child

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  the child at the specified index

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BJ1ZTLDHQO4ZavNlA5-30","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                  return the child corresponding to the specified GUID
                  \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                  child GUID

                  ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                  corresponding child or null

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nGu7c8LSiOmN8vIMYMdU3","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                  returns the list of childs with the specified name
                  \nas defined in Tiled (Name field of the Object Properties)
                  \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                  child name

                  ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                  Array of children

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"nnNCBd0MGe96wrqCLtOms","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                  return the child corresponding to the given property and value.
                  \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                  Property name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                  Value of the property

                  ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                  Array of childs

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"oRQEb4F5rrnCRjhIjF7GB","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                  returns the list of childs with the specified class type

                  ","params":[{"identifier":"classType","optional":false,"description":"

                  Class type

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                  Array of children

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"gYzEPzwahOcDPdtbBs_09","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns the index of the given Child

                  ","params":[{"identifier":"child","optional":false,"description":"

                  The child object

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                  index

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ps7mhitSxFkWK_9AtltKk","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                  return all child in this container

                  ","params":[],"returns":[{"description":"

                  an array of renderable object

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Gy3O99qHzJkqXdGAXKr0b","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                  returns a list of indices for all triangles defined in this polygon

                  ","params":[],"returns":[{"description":"

                  an array of vertex indices for all triangles forming this polygon.

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_-RDXIIGgary9gs0-n86t","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns the next child within the container or undefined if none

                  ","params":[{"identifier":"child","optional":false,"description":"

                  The child object

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                  child

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Dd0hFRtJ6fWImLvPzRU4","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                  get the renderable alpha channel value

                  ","params":[],"returns":[{"description":"

                  current opacity value between 0 and 1

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C9UmJIV_XgV36YOkfqlTh","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns the instance of the root container (i.e. the current application World container).

                  ","params":[],"returns":[{"description":"

                  root container

                  ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CkQLCFPmo8q4_UB3K0aOJ","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns true if contains the specified Child

                  ","params":[{"identifier":"child","optional":false,"description":"

                  The child object

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7VpRs4F3tqvwiqS3pLt9c","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Checks if this container is root or if it's attached to the root container.

                  ","params":[],"returns":[{"description":"

                  true if this container is root or if it's attached to the root container

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I7SAw_HTuMsRpXDBMoKif","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                  ","params":[],"returns":[{"description":"

                  true if the vertices are convex, false if not, null if not computable

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hB_KJ5r6755kDKQmvRBHd","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                  determines whether all coordinates of this rectangle are finite numbers.

                  ","params":[],"returns":[{"description":"

                  false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Kyqz2-Cya0HnrcxppRkJ5","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Rotate this renderable towards the given target.

                  ","params":[{"identifier":"target","optional":false,"description":"

                  the renderable or position to look at

                  ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QdqUsqT4gDD8vNklMXKIm","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Move the child in the group one step backward (z depth).

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be moved

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"9LQgkRfUYkpJAr7EISk0b","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Move the specified child the bottom (z depth).

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be moved

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"LSQOKoAURUb1z3Jgxb5I9","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Move the specified child to the top(z depth).

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be moved

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zt9wovwOL5Ov9ICGNZMu5","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Move the child in the group one step forward (z depth).

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be moved

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"AYEjcEpz18PKlDv0QQmyb","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                  a callback to be extended, triggered after a child has been added or removed

                  ","params":[{"identifier":"index","optional":false,"description":"

                  added or removed child index

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lK39u8xT2ZUygSp5RSWdQ","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                  onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                  ","params":[{"identifier":"response","optional":false,"description":"

                  the collision response object

                  ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                  the other renderable touching this one (a reference to response.a or response.b)

                  ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                  true if the object should respond to the collision (its position and velocity will be corrected)

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6Uvv8k9fPNmVLRBNtT1oB","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                  OnDestroy Notification function
                  \nCalled by engine before deleting the object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"scz8YIOtLxBGeTQNu8k6C","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                  check if this rectangle is intersecting with the specified one

                  ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  true if overlaps

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U5UzXhjO3Q4P1x_aAj4CQ","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                  restore the rendering context after drawing (automatically called by melonJS).

                  ","params":[{"identifier":"renderer","optional":false,"description":"

                  a renderer object

                  ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"HcVMlchsx1q1IsT9q6zdr","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                  Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                  a renderer object

                  ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"dpqT4E_-33C_xeB_ai9mE","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"baHv6AVendxS4j3D1CyMg","name":"removeBody","brief":"","scope":"instance","see":["Container.removeChild"],"type":"MethodDoc","description":"

                  Remove a physic body from the game world

                  ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  this game world

                  ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8duai3cBZbfrhGftmm3Lg","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                  Child to be removed

                  ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                  true to prevent calling child.destroy()

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"qsQXGWgliFy35A_jDwjvE","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Removes (and optionally destroys) a child from the container.
                  \n(removal is immediate and unconditional)
                  \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                  Child to be removed

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                  True to prevent calling child.destroy()

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"8asUMHWKUpBJisWuQ7myf","name":"reset","brief":"

                  reset the game world

                  ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kksfHZ764APpq7LDXdsqk","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                  resize the rectangle

                  ","params":[{"identifier":"w","optional":false,"description":"

                  new width of the rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                  new height of the rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  this rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7TXaQkp7G3F6QbFyW0an8","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Rotate this renderable by the specified angle (in radians).

                  ","params":[{"identifier":"angle","optional":false,"description":"

                  The angle to rotate (in radians)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                  an optional point to rotate around

                  ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M1ZvEEJWICN124UINovGS","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                  scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                  a number representing the abscissa of the scaling vector.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                  a number representing the ordinate of the scaling vector.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PNhsKjbbXXn000fSE5ZBO","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                  scale the renderable around his anchor point

                  ","params":[{"identifier":"v","optional":false,"description":"

                  scaling vector

                  ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zFy6HY6FuQnQgKwAUt1oz","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Automatically set the specified property of all childs to the given value

                  ","params":[{"identifier":"prop","optional":false,"description":"

                  property name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                  property value

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                  recursively apply the value to child containers if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"NjBX-VdWQGRyTHlaskSJp","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set the renderable alpha channel value

                  ","params":[{"identifier":"alpha","optional":false,"description":"

                  opacity value between 0.0 and 1.0

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dYOqhuexUuHITCj2MFE1T","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set new value to the rectangle shape

                  ","params":[{"identifier":"x","optional":false,"description":"

                  position of the Rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  position of the Rectangle

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                  width of the rectangle, or an array of vector defining the rectangle

                  ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                  height of the rectangle, if a numeral width parameter is specified

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  this rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v7eDcTl4IDlD7_-zx2xzj","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                  set the vertices defining this Polygon

                  ","params":[{"identifier":"vertices","optional":false,"description":"

                  array of vector or vertice defining the Polygon

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                  this instance for objecf chaining

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2dq8RVx-PDlJbl4PuYZOr","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                  Shifts the Polygon to the given position vector.

                  ","params":[{"identifier":"x","description":"

                  x coordinate or a vector point to shift to

                  ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZPjeOyv7xbsmFEvlBgV5e","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Manually trigger the sort of all the childs in the container

                  ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                  recursively sort all containers if true

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"nldKdbaestgxLuxCNB0j2","name":"step","brief":"","scope":"instance","type":"MethodDoc","description":"

                  update the builtin physic simulation by one step (called by the game world update method)

                  ","params":[{"identifier":"dt","optional":false,"description":"

                  the time passed since the last frame update

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"URxqQgReZfhrPilCDgQrN","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Swaps the position (z-index) of 2 children

                  ","params":[{"identifier":"child","optional":false,"description":"

                  Child to be added

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                  Child to be added

                  ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"XgKPDKumgoNg1NJ5ryjf9","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                  apply a 2d projection to this shapen

                  ","params":[],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JI-si2P30pBpb-Nbyxep5","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                  apply an isometric projection to this shape

                  ","params":[],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vXtQbXgU-F-FABgRWV6C3","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                  Returns a polygon whose edges are the same as this box.

                  ","params":[],"returns":[{"description":"

                  a new Polygon that represents this rectangle.

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AmQ-FeJHajRZDpwYqU4U_","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                  multiply the renderable currentTransform with the given matrix

                  ","params":[{"identifier":"m","optional":false,"description":"

                  the transformation matrix

                  ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r2PC4or53c_ltt_WlMMRe","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                  translate the Polygon by the specified offset

                  ","params":[{"identifier":"x","description":"

                  x offset or a vector point to translate by

                  ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                  y offset

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  Reference to this object for method chaining

                  ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HMJqmK4rnNFScGvtD53cR","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                  merge this rectangle with another one

                  ","params":[{"identifier":"rect","optional":false,"description":"

                  other rectangle to union with

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                  the union(ed) rectangle

                  ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rGIvGpFdzVNrCmAFoFfK2","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                  update the game world

                  ","params":[{"identifier":"dt","optional":false,"description":"

                  the time passed since the last frame update

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  true if the world is dirty

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KtR5hzs3Blj8sKGT3cd5j","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                  update the bounding box for this container.

                  ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                  update the bounds size and position in (world) absolute coordinates

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                  this container bounding box Rectangle object

                  ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uwjyFl4SQeGT0DrhTWWL6","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                  draw this renderable (automatically called by melonJS)

                  ","params":[{"identifier":"renderer","optional":false,"description":"

                  a renderer instance

                  ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                  the viewport to (re)draw

                  ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rcPOaagPTcuV8oKiCUyHb","name":"bodyApplyGravity","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                  Apply gravity to the given body

                  ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"If_bbuhYXgfk3W2UxTEKA","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                  called when the anchor point value is changed

                  ","params":[{"identifier":"x","optional":false,"description":"

                  the new X value to be set for the anchor

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  the new Y value to be set for the anchor

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"c-rjnI-iBd7PX3sOi-AA4","name":"AUTO","brief":"","defaultValue":"2","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                  constant to auto-select the renderer (Attempt WebGL first, with fallback to Canvas)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sXJOPe74Yx3w9pu5_eJKK","name":"CANVAS","brief":"","defaultValue":"0","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                  constant to select the HTML5 Canvas renderer

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M3Hh4QRPTILszZRapI8ka","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                  current melonJS version

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1yYl7UeXiu1Pu4IX-AOqR","name":"WEBGL","brief":"","defaultValue":"1","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                  constant to select select the WebGL renderer

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LrTFAuLdInAkL5N6VUf3b","name":"failureLoadedAssets","brief":"

                  Assets uploaded with an error

                  ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SmE7b2WUp6eNd7njxiO8V","name":"imgList","brief":"

                  where all preloaded content is cached

                  ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gj6jr0a4qt30EnmX9ksOJ","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                  a flag indicating that melonJS is fully initialized

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pqietVR95cIP4tQe3DDZf","name":"parserInitialized","brief":"

                  keep track if parsers were registered

                  ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xAnTc6iO6A5MRnn_Et6P9","name":"parsers","brief":"

                  list of parser function for supported format type

                  ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c9rALwztEp3P8MGGqYreq","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                  disable melonJS auto-initialization

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b49K14hmLlte5jjetpyIN","name":"boot","brief":"","access":"public","see":["skipAutoInit"],"type":"FunctionDoc","description":"

                  initialize the melonJS library.\nthis is automatically called unless me.skipAutoInit is set to true,\nto allow asynchronous ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sBOWI7XND7PqcOO99196j","name":"consoleHeader","brief":"","type":"FunctionDoc","description":"

                  display information

                  ","params":[{"identifier":"app","optional":false,"description":"

                  the game application instance calling this function

                  ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LZve6doVDSoy4lXaHPzYR","name":"fetchData","brief":"","examples":[{"caption":"","code":"fetchData('https://api.example.com/data', 'json')\n .then(data => {\n // Handle the fetched JSON data\n })\n .catch(error => {\n // Handle the error\n });"}],"type":"FunctionDoc","description":"

                  Fetches data from the specified URL.

                  ","params":[{"identifier":"url","optional":false,"description":"

                  The URL to fetch the data from.

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"responseType","optional":false,"description":"

                  The type of response expected ('json', 'text', 'blob', 'arrayBuffer').

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                  A promise that resolves with the fetched data or rejects with an error.

                  ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9B6fj5fjQN9QaPxnUlcEP","name":"hasVideoFormat","brief":"","type":"FunctionDoc","description":"

                  detect if the given video format is supported

                  ","params":[{"identifier":"codec","optional":false,"description":"

                  the video format to check for support

                  ","dataType":{"tokens":[{"value":"\"h264\" | \"h265\" | \"ogg\" | \"mp4\" | \"m4v\" | \"webm\" | \"vp9\" | \"hls\"","kind":"canonical"},{"value":"\"h264\"","kind":"canonical"},{"value":"\"h265\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"m4v\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"vp9\"","kind":"canonical"},{"value":"\"hls\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8"}}],"returns":[{"description":"

                  return true if the given video format is supported

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C99YXGzBFQxxjf3qkQhay","name":"pow","brief":"","type":"FunctionDoc","description":"

                  Calculates the power of a number.

                  ","params":[{"identifier":"n","optional":false,"description":"

                  The number to be raised to the power of 2.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  The result of raising the number to the power of 2.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SeFs5c5DPAJM5LRdPVHuY","name":"warning","brief":"","type":"FunctionDoc","description":"

                  display a deprecation warning in the console

                  ","params":[{"identifier":"deprecated","optional":false,"description":"

                  deprecated class,function or property name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"replacement","optional":false,"description":"

                  the replacement class, function, or property name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"version","optional":false,"description":"

                  the version since when the lass,function or property is deprecated

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"IV1emSx_EDyA52h5gABWO","name":"onresize","brief":"","access":"private","type":"FunctionDoc","description":"

                  callback for window resize event

                  ","params":[{"identifier":"game","optional":false,"description":"

                  the game application instance triggering the resize

                  ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5Nf731HrQtO4iZ0lVE_cO","name":"scale","brief":"","access":"private","type":"FunctionDoc","description":"

                  scale the "displayed" canvas by the given scalar.\nthis will modify the size of canvas element directly.\nOnly use...","params":[{"identifier":"game","optional":false,"description":"

                  the game application instance triggering the resize

                  ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                  x scaling multiplier

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                  y scaling multiplier

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},"registry":{"pkg-yRWsP1PY4UQIyoCRvC98Y":{"uri":"/melonJS/docs/melonjs.html"},"RWQFk2t2SacyJAB6GdKbb":{"uri":"/melonJS/docs/melonjs/audio.html"},"LWxEOwBfqweh-gPZFDL85":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"osCutTtDEiGegJ7qRbSyk":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"UF5iR2VM9Xjdkdiq0IhlV":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"DQlPWa5GradirLPUxCcWx":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"IDTJhSEA0af0UrJ6cxas1":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"UYivXqhQ5_YnVu3jQqgnH":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"yLprUjw4aBCzhglUCaReC":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"OuA7FnKD319j8M4e6cqf8":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"GzkVBSusdw7gRIe6fpmn9":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"LaJQSoNASGRxlLBPbOxnQ":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"CW2a4fVuzmKp7kzW3AOO_":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"1fNUpaWUlpNWWse3O9H6H":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"-rgCdi7iMDefMrPO723iU":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"JWdThYbsKJV3K0qmlCcw0":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"HfU_DPivRZVk5C8p1NLs3":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"b5OQHd53JDqg7Ldbh3zYF":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"82misYktIZr7LOo1i45q7":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"_KrIn8BYYMV02q3Yohiy9":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"3KNRoSOrp-C2drITYJ7bf":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"W8BumNXley6O167fNK3RF":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"WwhKflEUx6v2e-vwQ2oTu":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"Brc3z3WsOKVFvgF69RaVl":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"Co0ZQv5sFALdq390xaURC":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"7grYjjgiO6WIH2TobjPDi":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"zfmMrnMr02K26PgOXP549":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"f3qvQutx_6NVMkCSL8vAX":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"oHK1lh26DP4D9zka_gvQb":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"LMud13CidMABdPXGH-rwo":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"bZye8AAywx8UpJIZ2SsnK":{"uri":"/melonJS/docs/melonjs/collision.html"},"bFFpxsmSFV1xdfvWpXh5v":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"pN-aBoZCmVkIvTJA2MKnN":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"GeeXspLeC0Fazst0uCW8Y":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"PfjzI4gYa0V1AG1KSghtW":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"orNSwf3651gHvD4uP9w3a":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"ieXJnvO0VTIoWfK7Qk-HX":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"xnGAvq1ipcBbK2hHO0b9r":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"3wqKYpxEkErQiyiR-njiA":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"ITU9_8zdX8gFaYn5fV1zo":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"cImcVClrcVe_5TVgUg18a":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"tjm2HbAXKS7RpPOZ1tMG9":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"VdV2pC4Ea0pFLvIShfW12":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"0tc5WOxpfEd_0f_pOBwEq":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"BhJ2FjnLAYiXTkDA_EnSu":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"vQHpYUE_rGXbf0DpgrCeY":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"kUhRcLYRdIImxOeWRT_rE":{"uri":"/melonJS/docs/melonjs/device.html"},"JB-w46ttEmmm1q3uCZFkt":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"87YVYgkEOLY7Hmvxwa6gL":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"wW0sOrvQcBD_5MP-mYuJV":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"lX5U7onBs1G_OpbJBxsSv":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"yCVnmjHsejC8RnxiEAGoO":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"4jk2DvDrGUJNoeCr7CugC":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"UUI03BSNOB3eJP2dPE988":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"deZ9HFAHqTtlZG62olnMs":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"muNJ6_lS-XabmLCnmPcIm":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"2UU343hxLFJsjKLJLR1bA":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"vv7VhSrWXKPh_vtkCI-gg":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"B8gpctUrFpNMOpq7lmYLv":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"RP7ZqtVApaAVycB0G1-Ra":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"YPnMjywfR_JeeurCmqquY":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"oPeY-3uTFMoMVKANosjgA":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"skoWIvIHN8qdiKVLjp4lf":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"XZxI-AvE-XBu1lB_SOrKb":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"iXWQbNAJe4cNC3qceAKjv":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"DLBP3DsywVZPm8H9SWx1S":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"tRbR35r66I2ofEp6i9bEj":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"sRPRquG4VZb-Z9NG7xTYh":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"XCAdJCgpsWX-JcyiXG68v":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"rXHKyx7jv3zZOr3clxhmn":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"KLC5GVxLKBw73AK7OffjF":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"Ojcid6cnQ7e_VYIofwoxa":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"XzqSD9t3ihfHDiNAXMpeZ":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"YkEI6roIbBWHB7IV4Pk5i":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"ucLeJC5d-B58PcX-eSVO-":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"0rZiZzZeoUkTtvKFK8trD":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"VJ43gulJft7EG8zueTkgB":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"HqBio1S2NIHR6aWlAPLw6":{"uri":"/melonJS/docs/melonjs/device.html#language"},"LnfKELwwE6bNhncwiMQdG":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"ahqq2Zks5nEwM0AjApVNi":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"b7up6DLdPZGqyzckcbeKs":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"1R_4a5LB0tRxM39SSdopa":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"E1rmo0U0hSxMX0rC3lXXB":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"itOHAFAiDBsvzm0R-FNLk":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"BUUAVFolRUNsu_0WOw15Z":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"spx_VzQ4qrlqEqZ3h-s6s":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"P5fn4v8eFzijcFs4MVcPi":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"QJjrpkuZx9GWRSOFGlh6k":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"eXvUhEUpiwkTqkwDeRBs6":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"CfrppyAJf6_G-DmCTUwPi":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"-ka5UhCel9-1CWmVJ26HI":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"TcYCHmYGGyUvG5GXU9Gg2":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"D3iq6ihnSB7gSVLcDWAfA":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"dLMdvCHm_bgw_QcS1RZft":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"1nsE6fAVY5SNiFlcHH6wB":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"SnZI2wLWi4t-73L24Fobm":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"CKr2SGqg_KhjDr1S284Kg":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"0JFSQ2FrlHOST367rckE_":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"BI-8AbiwGJbJmRdJok7dK":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"FbDEtyctmW7NzsS8pDPen":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"J4AIfNqat2UFoqpgQYK6-":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"wU3174X_j_DT4ThSEMsFr":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"EO8pRTgDK5UPClKeIgidO":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"0aWhAeOMRTecgFVDULuoI":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"zTn4-jok8DvYi3QvPHakv":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"4wRibvCcOfBoZShkucuqL":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"62SFxHaI_r0_FUG7lJOb1":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"-iAcEFGryQUGLfa4KL0aB":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"sT9J2-AUQtf6L-fW1jgEJ":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"y-fdBZe7sDEYAIG2jigiT":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"A9_d6ersItrPx_PkciDC9":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"W5Y-RfGZuIlZgQmsqCind":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"Esua41VVnqApzXXfqi6_k":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"a-0mNqDpjhIXfIxPEW4mN":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"8mSvPcNJ1RMqRgQySxyLU":{"uri":"/melonJS/docs/melonjs/event.html"},"TBJYPPJS_ZSIRsnICZXvD":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"_cIlu2oSllyik94o0JebE":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"rM9G6VAh2MJ_Wn7j2M0yR":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"oNqmg3pK29xrE8R8ROwI5":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"-lX8DRiEjTU0ais_kTmR5":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"_z56h9Rz_xEhJJqHUe1u6":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"wB7pNDSuzhMcuyrZtd94N":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"0YfSRtihNN6XwB7qEO5SS":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"MLuEv-BQvgGsVGVdPsUHV":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"kJbRz9fBFUfOPGeM7AFB8":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"OFtzYd4uJOeok4Fy0Iqkw":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"yV1czqr5waYqWLPA6VdiX":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"UmUlFqaI4owBQJl55GKLm":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"T5DCcWAcWL5VtKuAnd9QR":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"IBzEY8T5vwYRSA4HAeYN0":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"ac8qbl-AITKmLQ3LyuS2U":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"PlNDMwWQ5FouSE5mXVOi2":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"t6o2rFrE1nhid4zMvnMfE":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"HiL7oS0YM1lvga2ILdf6F":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"8KDAZdYtV-6Dey0rh3b-m":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"nmD8CJoqVrpKq92vBGy3M":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"x3IfxPFI96TOdjLD4-363":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"wVe9nb9ad634nrJ6pZ6OB":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"CPN0Wrn1TowSmZPBcKf0L":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"hMcSdAyZ38MV1G_o8TGfO":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"48EiZhlLQGwea_Xr58Csx":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"astJaOdPBromzulZh3Ix_":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"myRg03BhPRLLxDTgxVI64":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"KRWmsVnvOvn-gYKWd_Q82":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"CAxda5b-GzkGg3PsTe3Dn":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"jAKM-EHI1lIK6WDo00vsI":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"vwqXtEGKb5LwP_a6kX183":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"ol76N8U3PWV_bI85TB2if":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"2DMaTxB_05q0j1Z-ZpsPd":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"qjLCdpKnfK8iRZVzfJrKZ":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"W0GVuu_2Dxk2uSjIUd7sk":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"LGNp4YWCITpMHJKnkpFVS":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"a0PWWpaAXgPSJ_xiBIhij":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"P_P4_ZXMZ0Q1PSvmU9Ar2":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"p3NzDiB_zqbdcA7OjEnRO":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"YqO4DyewPrjAlsnATXrxl":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"6FCY9FSyLBSEL2D7X_lFH":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"VWe3kQU1W2EbdzM1u1StK":{"uri":"/melonJS/docs/melonjs/event/off.html"},"xSDk-TGlAPtCaZWrTf-br":{"uri":"/melonJS/docs/melonjs/event/on.html"},"d2lOFiwxGXDg-uwvK7jN6":{"uri":"/melonJS/docs/melonjs/event/once.html"},"uZIAtikBERz0zbP8M3pBl":{"uri":"/melonJS/docs/melonjs/game.html"},"pmHOMIj43us9pk08ORDaW":{"uri":"/melonJS/docs/melonjs/input.html"},"fAGHy49JsghzzzKPz5IAF":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"5yJ5zfUThwdOA3H7pKABU":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"hS-yIv1CKgKl_8GrQmtBn":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"R49eXdq4iXCr8E5EBRkcn":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"kUZGwjAOzcue0pqLKqkuW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"2pyp9SUBx0DWziW51az4y":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"OzrV1nyzQ1oWhgHTPtJnR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"-ZkTjukWx0lpvB2IOn8jt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"jup0ie9d0MHWkAoidZGPd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"hchAsTUmj7HSwFDU157fl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"MdX8RaoFdOvEAjIJapLdm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"3kuIbKp_Zxt0euM6srGuI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"JPLma1jdH01dT5tQyubPH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"oDbLQGO5i9Z0kFcgf1JlX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"KY3ghMQwNYPJqjoI8fUJG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"PWl5CV7lY6EZB1L2_xPbA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"Tgv-RmehZKS8bboR1H3mm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"3J0k23adCLQQd8-xfN1mM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"dOGxJ9i6nYOb7q8SNjtu0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"OBSXKjl6SqD2a1uBhmzRL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"D24NvSKt99AhvD3mo4b-O":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"pXx05EA6VNqd3TR9ic4jU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"260fGWjBtFFyoQGTqWjT-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"t-s5qEEuCoRUgP21qQTkY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"9yYldmwJ0ETmprGaGuIxo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"QMgo85TlDIdq09j79AwCS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"UT4qD9IzawtcruCex-mDz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"pdF12K-pwZDSaDWMV6tF6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"z8Sqawq4PcTTaEoHkMc-v":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"mt7HCByIwqI87EfFo_axQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"ScY72WFGkDANMyn-5ImnO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"dsf1p9zUE6A11gvHcCT7u":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"GziKZZZazf1osTRSX9-zI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"Y_Wt3cdFEw7Y2sG-rUeby":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"7NAXw7BSko-0qUXCHehkC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"QgJXJLBBfGR9KelA36t4b":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"t_wmABcxSZGd3ftm4hrK9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"qPAyGfHS2m6aHlQ1-d2_Z":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"5n9IMlF71L9hJQoFZqGOg":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"pJg0PrFcLjQ0sinoJqh2q":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"CdB2nSLDJVkhdZimjhhLw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"abs77kbrmKHmx5Pi7861L":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"9r6DyTM8jWFGjQOTvSesO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"f1DuLJU06YsXah79a6L2W":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"2T5I1jA96dQnShm6GSCV4":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"qMhu0OJHEOX5bUgqb7--i":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"SHH9I5_S05oRdQZHZhIUI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"lfIGXSheHmLqZu7VVBcin":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"zHmRFcvWxvxLDcOWebtWA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"PEhN5OiKrlYKfbnNBiXcU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"PNQEW8n_FxcZ_gvp9ljW3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"0oJl_L4cU54llRJ-TRDjm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"92GdwcysVRVOqxzlrReDu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"TziahhFY65pyRnQ4szQCp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"eP2KYCaGPpSfSDA_DYZ_Y":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"b356QhLL26vyJPnnmiMBv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"o4vln-X2dyJ6eyAIavl0O":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"_Pc49KlE2pJBCdw_zkzcE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"m-c6K4CDnLZF7yrWNruZ0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"l8rL9zkoU23vb54TCUMsI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"R6zTUMkq0VslQP51sltkU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"arhKFS49cPsvr6Z-Da8Sy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"BMe7G4WbY-hzJj6TTJqNG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"1LNAYjJ3IcspupUUFSKt_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"IElHx2g5k_S_Etyl3LUq2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"cgumO1c9e7tS5NBJTT8_U":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"ByHNsAfXj2e5P6fovDBev":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"tS7O6OLdG0ovOoqsP23YN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"GVJIMlL7WTdrjEkF0MQIt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"UeycecreUZcFBDsgBdqqs":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"ed0TTwLtzUtbT7rRdM3sl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"J-uc59K1f0mubzsgIaR88":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"ykH4iQCd3tgZbB1SzGOaO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"q3lDV2lYi0Fbr-ZEzIdmq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"u1ueJ1rERRi8Fpda7TXlk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"tYKeozL03UFVTcTomCpJA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"ktMhpLldkgBZDDDRYWMIb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"0LfQDHo-8u148TETAi13M":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"bxtSvxfSAvwhshU7D35G3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"B_T4gFU8By6Z7eD4aiYDQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"rgE0D8tZkVZbAbFbfzxNd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"VMe1bGsE97H3MiLRl4kfu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"QPqqZ5SPnEqnpjgQgpYSv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"K8Mf3kiTtt6u452qhEeel":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"9tvMzmXNJpp1VKYbMHNND":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"WQtbCcSC2UfPp2IPTx_0X":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"wiPGC8TC8Gafvzrkvd0hu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"mRI5AsiEwIxuDryyrhaxp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"uoqu2GCAw-Ok1xrgsKSMx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"D74aATb1eerckRbMI-WSI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"vIiD7yGnbrZHFGvhfXg3N":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"hu7pmSQerCkk68LdludKV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"2pSU3AKlLhMLvyW-YvX7c":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"ybDYd2kVo6OnybKCoO1St":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"1fuC4XAHVVjAZAW9w2gov":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"vp0ECtYrmjj1IZk0fPHIg":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"HrQewGg_Hr5di1Yw2Fm9a":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"lnoqFVfdmHD_918ThCDNH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"LKprp1xZfqtzOUriu6Uz9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"KSnRaEfBauDVSnkiobeLE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"6jUkQZdTIK6kHDqfJnwQS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"2QHsoN7CqArUjFJ48eVgs":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"-oGBQdVynGNmWN6gYQiCT":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"xa0Ry9kOWs2513P1aSIWH":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"jzRPz5jfxALOen3slVL4F":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"YnG0PCLTaE8kKl_fE0rUq":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"42KmOtNLS8VoQlaMNYU8O":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"xG8WZxVlsb3Nlmqi-VPhd":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"rm8PIFgVe-Ui89HVhvViT":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"u3ELMZAOBF9-KXyTumFCr":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"8gKP543wLuZvBsZvQDtlB":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"KUQ7f7E00HrHzblf21bFV":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"wLxqYy-sBJ3yhcsPqDuWU":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"dettZ2n_XXZZjGp7Lk493":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"2q_R5M5aJOOZ2saZa5wPR":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"P4JcvtK2nld7g1W8ipvRv":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"hqbsse3lxTq03lgNWXAm-":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"9xMofmgOKT5k5NBdsjnSA":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"Q38jaHCTgqwH-UXcUji8_":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"Dy1oIkNagdO1I3vpPAywj":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"b34cQLuxZJsgrUQwGzk6Z":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"Pp8oq5mzMK8_L7pyoPJCi":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"cIiM_nDmKOEd0CsA2-lyP":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"MhENTydZys61-oICuJR5B":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"eNZVhDQOfn-pU7kQNodUS":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"obPqTTngn0a4iWjc4Dad5":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"0GY8YvIcy9chmycraPKyx":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"7uq0JOtapz21wHlfYYBGB":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"MGngBZFJQbhCq6xpXp84G":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"B2i8BTyqrvj8gFS5GUaAd":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"TYINTfZ5jBEueJuXthlUp":{"uri":"/melonJS/docs/melonjs/level.html"},"871YmOKWwwC4WIXLMvERt":{"uri":"/melonJS/docs/melonjs/level.html#add"},"FillHXypwdYCepZIWGyWB":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"B4aKxmdwhJAxOnMH0qmhD":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"MkLEB-DUIn354MK04Yzj-":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"yTjG6wLRnvApVN6RfEx6L":{"uri":"/melonJS/docs/melonjs/level.html#load"},"123rzSwE3luCGgwGC0mz_":{"uri":"/melonJS/docs/melonjs/level.html#next"},"_5X6JwEFo86j-PkKnEMUj":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"7SP1dFXNsAv8pcxXwGk0Z":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"syWfyrMp7Bn8_WxtQw6kf":{"uri":"/melonJS/docs/melonjs/loader.html"},"hXeoMnFxYh7_LlCZoHMhZ":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"oShOV9eyNE57TPNIZjwMz":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"8tkV4wBPaJK4jBqTH0l_J":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"mnMr4Otaid7dZEsAil178":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"H_hKubGqGpHR0YN636VMQ":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"ACt9MxXe1J0l18tgkJlIR":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"I3k7j2-lqzg5ZcprELV-G":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"9Z5sfDqJ9LVy8TTNTOx2i":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"PHVdvCmFzROUUhFlzBEgv":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"gfb0MS-mVeDSTSs9kWeDS":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"KlHUYwdM3daQZtCoDKRbf":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"H9MJFoyacQ0QcGxTBg8Qh":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"Rx5PZtZlfpXfiXS8MuEPI":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"EemPiSCcCpUNAD4FiByj2":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"oZKAVqn8FWR-Fwgcx0z7d":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"C0jWRrBETP6Rix9vnmSlZ":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"czMngVhonds0gvCgKwA72":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"gsyVXLzmnxD3KWDRA4oHI":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"SQH6KCGe4kx7RKBsITxhM":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"kRIPYm8sz48CvENvYGPC6":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"97fkbzapqtCnvHCVsPU5F":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"YYwlS7nVcuZEHBFIvu0bB":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"sQfqdCaEX3WECivsQAKPK":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"BCqHnHLcYkdPbqL2J-l1j":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"KH0Iis0gy_FpESPnn0t6n":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"GhIapA8oJ1RQCGd9xfKfy":{"uri":"/melonJS/docs/melonjs/Math.html"},"69TReRYNGBXQlLOfN4o6o":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"YBxs2IxaNh_l6H3Aikr3p":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"n0xubNMKx4ncqAmaN48vh":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"ED2cxGN4e-FqmlBcGGGQV":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"Tefbp5YdQHG0e-7Pz5Rwr":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"r8VQazv1htBzD3cNGm1ZV":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"Q9FYkIQfM4u4bH3c6nLe5":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"_y99gDt9O4iQt4XulS38x":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"Uo0jnrnWOfE37vmxS5fnX":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"UZy9DpPgjvEvtRxi-Wmbd":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"KNfp0AKf55WLD0b4s9jfP":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"XbXgRRFWHAivMPnN-iJPj":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"-Pw2sqmROSkOrlqmVU9S1":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"Yu0x_u_lNA3Wg0dwcwOgD":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"0I1tROrtyBHEsiLyD6AYH":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"-oMmGxMQtbsuVpMMMK9JP":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"akufXV2BLmjw25k4VisYO":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"oarWhXqEs5EqcgfGMXZZf":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"gO-wm7-BM86rsIfIgIrPF":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"cZik92ZUMbbe4_iEIjGrk":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"mRhUMtm1etkk1yMZ8LoLO":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"bXuCWc-DQlARW4zl8Ts-s":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"8EqSwsZKsgsx3Nup-TAOV":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"nhJrv93Bf8wSMAAtFlxct":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"pp_065oMhdxtPySTpz6l8":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"3QrZlNgBH39NGF-5ZLl3p":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"HyCdRyC0ypnzfK5TzNxLb":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"saymc6izJ_6y-6LoaSNSq":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"8ycDCnT9X918TEGdXAkEt":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"0tvWKuO1hdnJs3T5buCqW":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"LEB_PDXFs_ekvhU4mMHQI":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"7yslkb4T4b7s3wkvwEqJD":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"CsYhiW53TVvkvdzetxAv3":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"wiDFw6T7r_dMPh-fDGZqo":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"JRuRLX5sdzv2y-uB9qSqX":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"wy4MJiStrFR-zq6NQZAK3":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"MK0WPuYrMdjmnLvDcoJUM":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"kBceeZ8K3Aml4dwS-8MAF":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"98PibBQ4q1qGsNweb4R8f":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"v7smNkPhaRKCTtNHtdfAy":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"OFVFJn-ny4mFDY7ybQWa_":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"3LqqZfYkcIC55TcXKVwQY":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"OH5S6aBT9ROPniUs8OVLy":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"9ij01RjdqQV1ff5cZAiBg":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"MsglQ6Tv3VOkNv9YD3bM0":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"YEZ_47ZSMrBY9wQrGosi-":{"uri":"/melonJS/docs/melonjs/plugin.html"},"aMj7E3QQBcLwoxc2s9dUc":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"E-OOmnjaf9jx6hFYbcbdV":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"cFDxselrpPkvVour6gL9f":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"salud8UBg1FelobIAaKk6":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"tzqVUmZ0MgL9X9TlfnXK4":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"VfHRcV0q4pBR79JtyEl3f":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"dtQ91WAIDNX36BH2CVJ8U":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"VNDk6hl5H1mMzm0YnNbjy":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"1LMObsvST8shFv6qiAWXQ":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"V3NXEma5UkojCpur8qyrE":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"r9TcMkARPFSPbTLmRwID0":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"HiUxyVjV5fM5Vb50U7f72":{"uri":"/melonJS/docs/melonjs/pool.html"},"fkRhWxOEgQf0GkEKQsPu5":{"uri":"/melonJS/docs/melonjs/save.html"},"7gHbVnmUMvKQ1X0Hxaa67":{"uri":"/melonJS/docs/melonjs/save.html#add"},"msUogB9CFo4pitSD8avqB":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"gwGRhHw-o6wTIXnKlTlB7":{"uri":"/melonJS/docs/melonjs/state.html"},"Q7mZoXKVmSmkTkNnXSiPB":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"UVRo2i5NkiQ-JMKdl2lvI":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"xHs17geMuuIUhKvKsUv48":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"lh3AaXr-tVB_p3gIaL5c2":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"zqXyKMmLegE4hv01J7BEK":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"ZF8OVfByvLFVswyoYLlfx":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"fD4cupvEBj9YWvE386tzy":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"N7KFgEDl6CuBybOid3ixK":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"lYYwCk-me4M2mIupavN7X":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"dE9wwfyjCMK1_Vjcbm2DO":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"nW_6ZPIMYulsFcNONt2o_":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"QAl91hNKJiAK5-2BAarlp":{"uri":"/melonJS/docs/melonjs/state.html#change"},"E7UKxJPe7y0deqeoXt62B":{"uri":"/melonJS/docs/melonjs/state.html#current"},"NxF8leuOgpoSgpFklIpI1":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"GEXjfg4yeDz9X4Z_-BgQX":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"Q60vz3PfViJ15ltThZqIw":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"PyiHire8d4MrP4V1-oj0x":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"HLhdZAlHLR-TvalReXBTg":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"ZLYIYCuDxEZ4c6dXYO3Dq":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"iq211mHN9yMCg5ColyBEM":{"uri":"/melonJS/docs/melonjs/state.html#set"},"HVyRWOaP6FsHoJLhehlld":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"HaK5_6rztb_2AUDh4OoX5":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"yLk4-wKiprHW1ebNLcVlP":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"U90HxVuwlePkiHQCRM0xL":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"x6gv1sdk8rAx_bjUtBvKx":{"uri":"/melonJS/docs/melonjs/timer.html"},"ukYBc7KwQdULX7hF4D11V":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"Dr9wDIciYciFt44U8-fhG":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"DEcreGBbq0-j0AbtzSVYl":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"2GyxhleI2Uc8F6qEMpZEw":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"3KkOsAEQ1Xmac1NVvyne9":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"S3E8qkM_0_oKhBIKLjHGJ":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"WDGAk8HfcyAs7EyHV8cw1":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"klqnP-TT0wB74VWxwt00k":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"ZnXpltZHxqJtIUeGbFjrg":{"uri":"/melonJS/docs/melonjs/utils.html"},"gQRwDAnED4az8nRykKCHI":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"t2p9tf8P_-sfko8ebilyY":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"2YHPXUF3C8jxzv6Wsrs-V":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"Ro0KSK_iJYW3SnjWw-wMB":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"CA5YbNpG2ZQIcUBkoK9Bl":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"ap7JWgR4HnBkP8aEQs85D":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"dU4hDfWtxPwX5rCarqzdP":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"Rv-k-EUwxSSfGWmhFwVNR":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"hlI85Sngr7Ww3o5eaDrMO":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"OiVR_fOorKrE-x1X37oXq":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"fdKW9zJRfqDt3g1ihRnPM":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"olER_vQO3WxPPkrJ7LXiz":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"S6W4CRXQAcYmRrQERyo7P":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"2EeO-CX8Mv_1mJlYxlwlh":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"ybp_K1WUQqbBKTXbjwGMo":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"jnS4n9Mk9g2MumJDqEc6Q":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"E-itP1NQ23ZaX-ODj-SkI":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"cN39IEi_YBRJdWv0UyPuZ":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"RsDqekK6Pes0384tyhqVe":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"cccmVltKJUWKdQYGXu3pa":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"XpHqa7-W8QDQwstEL0SPx":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"6EsCgDnWF9eGRGwqPD7J1":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"rst-RlA00uIWfrXxGC5Sy":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"IFuV6KP60wnxzD5_ypBXa":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"XgCsP-BgQv7iUNWs6csnw":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"sBuUURCIDfBwo8s0U0Off":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"YPM8G3l-mx-M9tH3DOycz":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"PFONUeY_NKMiHEgfxupbL":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"Fw495ixfpV6wkUrpzzBOF":{"uri":"/melonJS/docs/melonjs/video.html"},"YTvn89at8vRKBToJquuBV":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"nJ8yGDHB9vbplnZY3l2TE":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"haeC2gHkPPTUssTzGAHZM":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"bg36Rk0hCPI13Vog58Orq":{"uri":"/melonJS/docs/melonjs/video/init.html"},"Mh2Jom5xv-0oSewZb9XWg":{"uri":"/melonJS/docs/melonjs/Application.html"},"Olf8vQRWIPjyi_kNttEWS":{"uri":"/melonJS/docs/melonjs/Application/Settings.html"},"7tVdZdVPmgl3hReeFZ90-":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#antiAlias"},"q_-dzqkrwgZKb6muANWaI":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#canvas"},"1D-N-VwLQmmMoEHmcsxLZ":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#consoleHeader"},"doX0tWXIIlLSsfIN92u4E":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#depthTest"},"A4UO2Li7d8SLMQYH0WrmC":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#parent"},"KY9oPAOvrrbjUSadT58Aj":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#powerPreference"},"rUVGqPjMsjvzcJICNlr_4":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#preferWebGL1"},"b8EUa3h6DmEQHKfzpVPs_":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#renderer"},"Q60ITemLFjYedGrLXWin5":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scale"},"-IGfD42aQRN0QGRdvWHbS":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleMethod"},"NYuPMKg6jI8RD8VkFdQmo":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleTarget"},"J4Z9M-KGTanHySxHeHHVk":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#transparent"},"imnYGeLmpaJpRrH0zVXdE":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"6oaANG9OKcr-I_p0wk7uc":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"kT5RuWH44q_44WaPjSzjy":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"ebHSogCvv8UyVUmH2nEUl":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"ceV8feh7HyeV6P7LomT0L":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"7LVMFK4lZxjNlRh1HLX4M":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"oDHB7J_H_q_GEXSnbVBGz":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"Hveg_fQHDyR-8QpmWgXo0":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"mioblfB3zardyorBHkYyN":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"d6f6jAU2uE3Iigaprilcx":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"ocdhGNXM16XSIxILvRKV3":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"DpTIOdJEfKO898Ipinp3B":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"Y2ZSHfsEQn_9Ouo9eZBfo":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"I8YU3yyZWDvY5Sb596X4H":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"o-UhfGaps-j5HWl6ALQcy":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"uTbed9Oqo1dJXdi66aGzy":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"OLukvnowy1lNaANVzB7R7":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"2MPG7kBQ0Tv0tNtKxgQF3":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"yba2za-xFUgrkU5LQNE9t":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"DaLJtWPr1YbJmt_j0-abT":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"5jjhlq8OjQWT-2aPy2OO9":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"__a-8WqHSAF3XVIGLhPqW":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"YQIgZWzIZDKeIGaiswF7e":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"C950DhjhY9LpWCRREzFJ4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"Gy-8Wc37B0fEkZ_o_IGq1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"QJpifzRRKrXJAoASn68h_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"SllWnTb2axJKDUgYsV4iZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"hVDh8zaLzKWGOJv3aw7F3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"drNuZS_-SkXMOs6hoRV6f":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"l6P7kEROLRCoagJxFD0J3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"TBnuq3kOhgeDiXk3QUvIf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"pKZutmSlyi6osbVaQdwTl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"3LnyYIXxMg16vyBOwfLeV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"3cmOSJZA9cwOv2kEeMZFF":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"wvI_fKe4z0pEaXPv4na9K":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"qKsCNqtrsb30GeQJfk1z1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"KmjlvraCaZIYT6GX3K2Yx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"Ndn79o892SU8xTdSQafov":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"AGc_A1qBoqeIJSvUattuC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"UD64OB4YIh6qUqu94NBJE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"gHLY6AIvtefjcw7vZNtac":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"zi9LqW6J5vp6ucv9nkGbY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"TAydBRonieNDPG2BD8cP0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"kH4MhHo3t2DQ70uI88hMf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"6lBKMmX_cn54sJAlmprXR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"I3VAS1Tp7IRtgq6BoyVwX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"pGLAhAG2FrfwQdh2QqB8J":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"VeJK-c00I_T8tkMppb4sf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"7MaB2Qkgqm-TCR7hCFMMz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"uBFv3hK7gMurD7a6mCLNR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"Xr1IgmoU0P-yOBhlh78vi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"81lUf7-pPQEeFl0C6h1gD":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"hTTXAYdpSZZENNQBzCPTX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"4w8nbHDHvqli1uHFVwjHy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"1fy6d01ZCNSjEnILtPhX9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"eiPJ_zJ4r25ht_dxJPd8N":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"SSvfNEjkbpgC49FKzK9uv":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"Wu8aJ4driAoGfC76jjG8V":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"Z1BbgHmOdj8WpoquQN2jn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"OdZ_YfSg1C7YG_vg4GOfA":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"3YtkxihHmGuXgDQNnJnu2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"28hMI3-bjfssmZQTdyaL6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"SHptDDQkafI5KodKRSG0F":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"Hq7Fk87CFxPT94-GpSQiI":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"ttzxuiYMteeBFgJXJ8s4g":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"pQcGuNSWUEaoUCAGWzeVJ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"H4aQmeiFzdIq-TSqccSLN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"J8s6DsczM7B4vLjKN13tg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"qS5bLUfoHUtowBils8blz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"RAmfFhAcIJzJ6YLQnsY-2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"7AgWJUCUREJQspSaY-S-S":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"tIZtD-VQzS6m2ZiUAPWuJ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"RozCcxD2vGo7ioaV82-X1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"MEgwNnCAub-cRss8s3hDk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"fwGAYaWDfTxku1aK7ZKD3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"QFmBKIbEN2JTwmVli21js":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"4IrfWacprUp0tPUzCE3g4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"zdD3fKd_i99-pcvGtFxKf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"qLFlrqi9IRbQEOzXPibwC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"y4dKwAUEhbEaiDqfdX9-D":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"0Jw5mp7UydzUS-L_95WQV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"2unNsTvzYxsn71McCo-Df":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"_7P-_OfxRIH4lIDoLAU6b":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"tO_GxkbLIiIsejuwjJhv7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"65Q4Vp2Ek9QZfDHH0BpPt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"UsroqczRTw_R9ehOVv6Qo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"yO6ZZdcQwtN4RMzz1xNS7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"hPqSJx0xx_qpqkt6kabxc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"FFdDsHHZIegCCdOukMIOB":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"djU0U1ZiUfg4ZUwgYrXjY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"OP9txU7H_XXM5UaeGqUUo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"XGOz0J5joXDun3Q6OlSbx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"YHbxvB9uYkC_iUtvwgwQv":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"eSzAnNYYHMAhz1h31-hLQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"92lmmwF_r98vUJ_19Ghpt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"iHdbl6QtCjIWPy9PPrgvy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"TxjxjROU-wHlASrwflB81":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"XbGQ2HXQcTqwVELB6mXTx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"sDhhWEjItePZjLfLs9eek":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"xNYdmfVsNrwkvFDc89BJS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"QIgKfe6UZzR3Vp5IsP2La":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"2s4TY88C2yt2vPR_VR-50":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"GKPTSQz0oHX7Wq3Fww_cz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"WkW57Lxc-Kysa-jyNIfSB":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"eH3uaqRBXIHvnxSczK0N3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"d0SYiJEW3ZrIdvn7UKsDw":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"Lanac7ktPAiQUR7qVQQgK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"ddv59SH9TfpVR2DVyG-ri":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"DGBjoxoUCrq78cFB5dw__":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"lhOET78lXKW35fMQotqh7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"E5UsZ_UXHUvdWWhPC2lSy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"RkrOtcsGs9gsxYrn5yVdj":{"uri":"/melonJS/docs/melonjs/Body.html"},"DY6tsNPwfpZYXAHUen6Ep":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"fpmUoH2jgl7gH4iZrGEP-":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"L-xu3FRae4DvW9rD_rre6":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"u5f6HDFAFE8VwNZR2fv6w":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"sYLNFdp7GFyF6xR7jK3RA":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"IMreg5Ha-drcCmFYKpAxh":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"gJWCpk6s9UQSsMedJj3Y2":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"hn2cJatMeq6V6cpsrx-rX":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"LBufaQmEAkQXXs-1FeMYf":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"gnWv9Zlp2RrfEYWvYhYdB":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"e9ajasQ3qgJ2I5gR5Q0jJ":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"krMuCW5wZ15Nj60K2kOBp":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"_woyVVHe3EjcWR0VA2ync":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"UTL3emIzQJzCdyExuzvOr":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"p7gYYgV2V879PlS3MdMin":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"RDnDRLmxLKqFlyvKRNsnN":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"J_AdB7sazA2_NU_NOUeao":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"pKHBvLFh-Z-_gmTVj8hJC":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"QFWAlrzaTakCSre9vh9Qs":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"7WEFslaXgsWCcX_ts5UP0":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"LfHDlGuCpWySXiB2gMw-2":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"B9WPeyOPzIhVhwd1T0-If":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"Q9z7Jp14Ymvp_yXCA0X6O":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"ZSmRCdFwoW189JxAbprjG":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"9E_tTEalvyysBSCXc2VWl":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"qzb5tmo2qaToECb_0acon":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"BuXPwVXlzsOKopEAlsh2d":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"40RnzOrgvFqRO8oc-boiO":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"aH-IJqcBvgdud-JBAyVmJ":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"m8cst8_pm4rOpigxq32tH":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"loetrouHIZ7ZYKbTDV7aQ":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"qU-kqNzzaUgPvFaV7BeUg":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"hygiZZYakVUYSpU558ljS":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"F_Rnn1a96y9GqHsM1uyKd":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"1_QQa4dfrxZL63YJEib24":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"1Nz3W-79D0LfRPsJtdMyB":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"yhFZ84AGJW9a6FNNY7JM0":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"qEBUCWiZd9eUBNzuz55SN":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"Dptw9AWKxKCtKthKPiaNi":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"DBrfq-w1rjbeFa15kb9y8":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"4mHIgpzQSehsg67XyzyhO":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"D9RwwJ6L4529dpq3rwi-Y":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"ZB4x-JOw0A1mM5zQOnWki":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"DkfDFzkkC-Zj10aNneupt":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"7EeWmRe1WdksdNxlox-RY":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"4aa9BXZeIB0EZMXiqePm_":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"Tx1z2xp6eDKZD9DFyPT7X":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"_gfr8jT0-XyopOycms6Pi":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"kAq_psZjQEvua0K4NROJ7":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"5tfO6O-QAWGPjKDktMy9R":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"MssyG9pMihAHn31kPKV9p":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"8EtfLddg0oBKpckaYqoRP":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"_jWAbQyR784JfWDeX3gwk":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"M0JffyaEyMAOy-xZFE_O5":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"iucvgr6NBNxoNOjEUcs7g":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"kzXAV6VIB03DYa8Qn4cFq":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"hyz1t2UiqQWXxYaOlfEE2":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"uyZFlEbTVCYJTYJJBrtDn":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"7Lj82nDPbUUGU_noUcgbC":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"joe4Mfcxa-sIjicPe5Cuj":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"JSlCTEl6f6Tw6Fhv49_4t":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"gKUCOUa14IRqBI-22N6rW":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"9L2dKpgIbBh7-zqucO6K6":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"od8E7zpXdsdbhto-8ypOd":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"xJD3TPtJkDMzoYVu5xZ08":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"ZGwCQBXB6qcD8jdnnOXh-":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"Zb8zsX008NMgqKRHPSzZL":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"RLkJghBBqrK9ZDIi5T4N3":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"UYymaNL6U4BRwrrPU2tlO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"NWEnDOBkaA1tWbJUXhCWn":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"S1A0vdVCtxveYu1LmM1BP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"z9-icXM-cA6RZSiUUHAT7":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"eVRwmKFmlRdEbWslnpEuV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"Quo9fluVUi1k-tDhHkWSb":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"Sx9Hijslbycl0gIelC3ze":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"-ccc7cf9ezYjC1XVLC_2j":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"Tq4bBmnvju_zBB5r84Ps5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"OexroqmiMMSGzb-W-Cpy6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"84wReHEXO7Coh7dqiuHlH":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"b_yVgVkAj_qA0XILUZJiz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"eFM9yG1qxxsoFEU5VQURv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"MAfv6NYTJnQtrRHREMWP4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"SmHkjPni7NQMQXUrRqcX-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"JjKlBV5aLgVv6ZE740bF1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"wQdpw6F-cQeMzZbJOsOPL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"xj134-PsLMMeUIFsv05iM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"tlXa3u4Sm0dVbI2F1vZPE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"ZkhArWnH0v1Ypc1CutDRi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"2q_m5fWaPja1aaZTHfgcF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"qDM3E5utB1iOJ7eedcoxk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"M64abRdUmZik9x0ojTtLM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"8YzW2yNchKUoZEAL5jr-K":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"lq9SsBY_l2ERUlCXX16Um":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"HV3xWRa4JqOrX8h19wv0K":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"3Q0JgswthmnemkW4eLk_c":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"Slhs6BmLCNjHVCg8Uyp3S":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"5giFiy-j77D_tlI5n1Bdj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"ltOQWXqhR99s_NB1boNY9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"oXnaSMrzCLaVFqMlA7qec":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"WK6Tg7HPYsCF9SInx6xrT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"gP5mJbWzz5bODMX8J9RyN":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"qKjzqURkjVvVukXAC31sa":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"-qTPPvUbaTzsP-qgjjdT1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"q8LLWBTE30n4AH5JkyqzZ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"xvhreelaQ3xby5aSVHdl0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"-1FdVMXS20eoiOZtO9Ke_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"TRLiE6xspQzZnHjpjUUIV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"PzmP5EOEDQ64LL6HMd9Z0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"mmIyobr1dVFuQW3Ix3e1h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"PVIv_jonzCuC3A17Lrt3h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"hWCGgMc3_4gR5wBCIErEY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"xCRNhzAaWmyTGhaLWF7UL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"LOMUfe6aF8EqODv0JdD-M":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"_ohADQfeOYQbuUlMIKqe8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"07z9EFtAYZlAkRIVHa30b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"Cp9TVd-xYgu1dN-gPHeuh":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"_WbZIE3khXLNDrjNIUdaH":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"T1oI9Z0Qawx4LKgR1DKhZ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"7w2W5WEHrt4ew5RUra1ko":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"k-ADOK0Y62wT_klEUXIwF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"ZPfW4ytGtytgUPjgv6L79":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"rOG46M5h2jNKhThMTHV4r":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"o2URc3vQcoce01y400q55":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"Sdet9xgfn7Q2rQBPlF5qx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"_0KLMDvfnLPr1YOnGu-ui":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"1rp1oWNUKjr1ENYhNn6S2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"TlcpEekJwjFg5-lN7w39_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"9wkpoeGAFhlOLMbIOOOyc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"dlYC1MYJ3oDds-KJ3OGdK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"P003QygXHj3ae_pa-0Wet":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"I5BX7kFK2i6ttHdGWHprJ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"UD2EOd0rkaUzbr4OH7J0o":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"9ysAAIEres0eVJJq_PHyh":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"Zrbl3XMv-O5OMqSmhuwyo":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"_kDrR3YDgLwqczGh46dGh":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"PQW6JikFpqIm25k06Q7W3":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"MgNi8j5KqN8XiXu1w2J2-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"PJrLi5ZaSxIxVeo3M4EGL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"zUC45fqveqwvCXV0TDRUA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"Tgfv-tlUhNw15TzFi9sFe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"Kxh5oIJOtB2Rlnr_mVY8W":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"rKHUIYaOiidl8q7oG6F_z":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"KI_ESiQMuNRdEw6N2tLvl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"UsniIFwPSldtBPMXrNglW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"WUudlSmzM12eS8MJ1E6NO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"KShn6vbvKwGzOxCm5OKr_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"dq5K4cu9TWcx3BDnb1y4m":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"h86WBY3KYyvoO1rSQv9xQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"hXyLngZS2cVPm8hjpbqnc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"XjM7H3XxGBJoRLHCkHXct":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"UVE84MZIrB8tJXvf2Ef_h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"j5W-JiiLOJsYd8Bn5Qu70":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"bagao4y3j0eeUdExm20mH":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"VrbRT2emDEUF6Oy0xTO1S":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"9ywprbcCWpuXCSmPV1Ae5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"TR4C4UNorjfiGpErqNInU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"Sc949Qi_ENpKnG6sAZ4Lw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"YOwY_Xx4w8oXWOyCe8d1G":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"1aX6Qai3gv67wNbblYFyz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"xpPyBVokotXSIiwuIDjec":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"w5Qd_NxcS0XS53lx9GZ0B":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"seLjGuWuXtdEh3IPQS0BV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"BCxwypaTTo6OTPJ1UmqUU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"1_k_47Hxii2s12ku8V5Jv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"gh1LdmsXORYIi09l_C5F_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"CJO6Ajmxwyke7LZFPxHfy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"K60eSPwHXttVUYLKp6FcE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"IUtbCVL3APN3hJF2dSUBd":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"nVWvHwJ2oOcDI2XynUd1I":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"ZPR2wS4niu1heffDYMXLL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"KbD1RNj09_QZGWuq1x3AD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"QUyjoU6mOASrL8y8-lAlG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"EiKx97vWN2ff4f2lSsAaT":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"Se-A8Gmq9N5ISMsXN_sdw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"2QfKo3oQpd67g8KtSXSuy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"8CgClZwqD5EHG_8lK_ajg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"x9w_BdBzdiIvsgEHKi1hr":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"k85ETlzuO7cnhks4lORyB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"nzV7ZBjTTEw-FG0zVHFHw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"YDJWU6c8OazczUcEgBA07":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"5Dbtlj1dUtstL-ak7Smkm":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"jamD4ptdMkq0aAWzG6oWx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"mg9NCsd-LOpZ6pe_RdXGc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"WhjbEXC8QgTCHzjWDUQcR":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"Z3JvaFo9pw1S2xcdPUPUz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"PhDYG38fEYwGb3oW4X9T7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"ZCIuNHWQ97ZFGZ4By1yYz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"mcGCLC38rds8xxlOWviVu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"0RUezLdnr2jMBhc8CIBqL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"voRhQ6lBB6QiFm0LqFSCo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"TP7UH6cuXnZZrjafhdDeS":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"dTlbXn2AsRPmakI7z_jaT":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"garj8tRcS_RTlOHq4TSL-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"xATLP3MkgkSQa8i0Xpw3c":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"9gUD7Ob7KatYHEUsgOmG-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"_QX3wROVlhHtKBg9gT2xq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"W--o0VOd1v8mUOIVATgCU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"VASp9y1iza_z8SYFdxAs1":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"95mTMKSPUBzyFKQ6CNylF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"UwdWalsCiieU202Kf29eu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"hIfJUYvIsrZhomwlnGpuY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext2d"},"KoU6HeZ5r_Us0GC6Aj1gE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"iPkzehHvWYwKa6yqXPyRh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"6vlpuwgpefvtUWsWtIh_4":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"18rxeMZGRzlW4-OEbmDbV":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"ImkhU3i9ffxZYwknWLKMc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"_rmBAXBC7AAVUwr5R2K30":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"e7ZdnVH-0oy_V5VERA423":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"izg-Ioi-5m83cReYrV_ba":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"Gwpszpzy80iwt70oyE9ii":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"mI_Uij2b5drl3A0AgLexQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"ctLR2ViLUI4IBohvKsalB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"G32pGB0ZbIPeZxkmlIJLY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"LrsazkQlSDKP8wm7be56w":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"kouRU6o5ExHkUA8PIzP8G":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"7UK6FmR2tcYybfdJorL8N":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"lVLtG5mjjnF2ucB0Blp4Q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"1-8ovDEGOnd0oPy-cH4dk":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"n-MitxHFWHu8TTGO7ReRQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"npT_Y9pO94DyS_exBOAQ0":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"FFHzwIqBHA0xenVDd9Ktz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"NSej3iFS1fWM485prCmKr":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"0a1UeJV8goy1EqUwQM9ht":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"inoKj1qYnItV2n0C37HWb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"VkF1SHf-c9GcRBUohHBKy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"RVVqWVsH00e6uF_2ttgPW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"6Iq-E6NiPImfDup_ZPvAE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"WSK8mpXKAupVoObRf4jwy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"9oHijbQAVDYghH3J3Edc3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"CtLbED9LMYeSc37lRGESA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"9LzdgPiUl2qf7Be3iTuPi":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"enbDrJ96Urs2MNDOS00n5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"vlxSJzQIjyJ0EIU1u92TW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"W5btZ7lDwAquKxoyHokvW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"hheRZNIpRi17R35_b0L5P":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"z7cjsqBO2MtzoGWkCx98y":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"aJOqasFMwIe6R2HHl3DG_":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"gJDl0L6qCsQ8aCrXYoL4Y":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"vB3tNS0BVaWlWfZ0oJyA6":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"J4Iawn-fUflwWgDEQrGbt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"tzNxkX_JJrHvmn30N6yDq":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"Uzgl_DZUxVqEybmmtyCZV":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#canvas"},"5JsZzkS0Ts1wLIvsVPqEb":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#context"},"EdR67aQHyCuRYauLQglzK":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"w14mAnU0gx5iDeUBVgcyv":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"6w1-W9mDUbvGkYppTktrq":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"CZYEumhbvlbgtqKXxDtHP":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"voPD47g4Rkgi9EomvaxDG":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"oymkkK3B8X0oZRfMrPk7j":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"QzhpTw17K4dK7tgnOa_PM":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"rv94F2wmQnKsAELAEpvLj":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"-JAKktFyFOYok_6jt2zV-":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"3y16W1F7fwSkj2MZz5_df":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"5eZYYBi9d-4NSFcDaEnsy":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"cUPUn3xA3AljPyoy2VIV5":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"RaURCuzXkdMMnqj9NIuRt":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"HCUy9qLNKVTrcS46xplp3":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"0EB-jkNdkmHpdekb0Tm-O":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"eNu1n-uzu2o8fDXRZlbD_":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"PDLyHkHk8be2YqxT4C6fW":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"IUk9VZ3N4yAyChiTzvzQa":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"xZj3NwXwp_Wxurlpx0CGx":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"P9W8ZBD6iTgTPSEexkEO6":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"Zc1ohCPdSWAdWpXCRPqmp":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"sajixTUiqa1AmzL2FzQot":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"ixQaUz9sFRk_WK0OC3kXq":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"tF3pLURRIh0dZ237U1kO4":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"PuSJK9JAARSavSVhcvQP1":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"-F5PPWXTwYhNDLlFRo-w_":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"0IAnWC7pWr7hSQCA9SOgD":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"apUfPD_ZdjZwLGEJu00j0":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"Qat2jFBhAoqMHCOWwUkPH":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"pQeL26vtjMxgW5sEIaPdP":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"DG9uG-3CmLMj-W1WnMi8v":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"sLbjvD3zY_Q57D67rnjpc":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"aMu7ZDQY9UsyjyVVTuqEQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"KfaF12f5CpRuZe75PwTnO":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"wQp0etaoDIkGG09ST1p-I":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"L5DYkYx3Q31Mb8KSoBvD7":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"OIYM2beiLgp1eje9_8-EW":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"A6JckQNr2SnB2wJKfr6uR":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"6w7EQVmRYR77lS1Vyl_vE":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"w0lTlREnp_gxH4joTd1n4":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"mXNktH94BOEoeRo0r5Uzo":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"GLVE5azu3TCtJfwQP0JSj":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"Hup9vwwnfofdFfAX7Fsts":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"82-JKrrLtMPIPJd5qf4vo":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"VmyOOzGPIofPy8CsshqJ1":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"dhfZMWCZASX4RDXVV9q1E":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"pavBuFm6bpubfK7WoK-SS":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"S_1CfqhEzxhnPwkQ_-uCy":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"DGg-3Huug0_ccW1mEAV19":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"Z_fPKPNxbC0aHDo6Am26D":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"8JTHe4ioeWQzfGX5t7EiX":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"9Jx72Rg3oscH-PSspdUPx":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"v0fR8LUjTI24Ekuw-8J3H":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"3CQz5R_RuTLiUoIADJ6ju":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"O_u6XtdFm21phfiTeqq6P":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"yk_MaXN6nZhqCMtTk4hdY":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"TTpnm5VwqneiIHvLbMkh7":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"w5QG39HR6WsA6LWJhLbX4":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"CX6AoIlnOzdm7f95BKmPs":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"Bcl1d3zAs3eLkdj31rHPt":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"hZH3H_4cblGrFztkryQ5O":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"MsZbx5QRVH18fdu9H_H7R":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"53PAE_SGIWw6eACLPoVgF":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"dbLYHw6SGUE1l02yki7XY":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"ecfhbt7ABC3kH0WM42SwM":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"eDzfQ4z0HxI3c3BvPLfpi":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"Eq-p0sNdNYsAAILwDCFQS":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"l_kzBmhBZ_qeCSKyRLQae":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"GbNX0j-exRndBZ7VoeyFy":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"Qfg7sAcHKkK1WgNrqyP_l":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"M3Jij1TlkscPp4K_tWViV":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"HqQR3bqxlPNMAnqzx8_lF":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"thFy7UtPESJ7ICmRgk9A1":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"r5euk_mKk3oHW4VKZSRPH":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"xmXdvVyLeeV0UOSVE2NzK":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"RkekyO60a04FABzZMxYmZ":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"34eAWOHEqjTpmJIAwfwCG":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"n2UQZH-bBV-FhFCaJuSjJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"v4zoCMPAROcRI9LucgFmt":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"LqOL5RxTHnsM_8oQQ3qrh":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"ZIhK3Hu_l64sqmpA0caXy":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"KMR8RK1dtEYeXvK6n5KWb":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"yZcauw5Q_O0tDc2EIeur4":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"JE49mNpiaz8w_39Jvnj-9":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"rN1iRkElB7l7Fs0KlsCY1":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"Nf43DbB3zRGCidkHxQMt1":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"LPFOmZU8N-F8AzvuI2k7p":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"f5ji3KYHU3UcYJa6xGk1k":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"-UlMbKPUfoat28k917gUl":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"jA-4u7ldeBClmO9j2GhNA":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"WMWvisxj_cMkLsmsjOYip":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"XzX0VYz0Snsi2QUTj7iVr":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"lfydLW9uoo8HwbLOay8zL":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"GLatJOulXqmwjPT3gZWGB":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"Xht328iOz1K80VrJpjlFJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"ZRkBjrBsykwfPAqs8cmU6":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"BZ-7XOmaqIKJn6Rt4sa7X":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"C7xwKcVW5WWA0Pq0psLVs":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"K-bxUmn49VdibPKhZ6TAh":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"R9OVsVLxWfsaqd0qs1LPO":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"uHG7SXy_Ih-Km2k-oZFWT":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"u4gzKBQlYfQQEjuMecLZG":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"wpu_QhDpSPQ6AzygMBFDO":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"WOCGcHDQb6fhHKLVnHrYH":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"FImmm4JCna7qNZUiWr4Ou":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"wz9GYL8ShmahlH_GdHaHh":{"uri":"/melonJS/docs/melonjs/Color.html"},"0xhSGKMNuBaYenXgo1gy6":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"I4KgThGCg7OZLZaWZu9CF":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"lq3Mw5Kx8YMC24Zfc13j5":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"ELRwWWj6ulY4zJZOnrFpz":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"SjPxrOC9cypZEF9BsyOSC":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"49RMGo36X296KAopfuAOK":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"Llv3zYLUma0qt8dQlo0rs":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"RYbdXZFrevCwdsDd-pB21":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"93IrkbfLxbPzmQLcaOuhS":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"NrWrv4HZMXdodU8TK0wnn":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"UDT9sHmke8nBYZL8axB8Y":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"_38vZ--lNjrE3qJnHJT5F":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"irHJEqX4minuhdFE4pWtx":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"u03w5WWPUbO0c8eYQGw8V":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"81roEzuyVgYRED68mJnbS":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"-61LBhs_eXcH8vMIQiC49":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"oXaR-uk5t9kSHEUf10QoP":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"TgO1WI4ecTppmmdbn9gyW":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"or8n8yONmnxYsUQwebeao":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"AQ-AKNIV3ZxmVzv4RCrSE":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"VsY4Nsg7fSjwfR_WOZMDG":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"_GSfUeDXKMNznlZSISIIR":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"3HUkTR3YE4LvzByxmVJ0f":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"WCxOcE3TGZ94Wj8kR2_vm":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"8ej75nIWa8wuEpdZs2IBw":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"Owosm3kqLmhM8CagrjHKV":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"WTgkyql78c2QnBgyGF3iV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"S6L34W0cXOjoe55fPwKVm":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"vltT2a0v8mDJJ0aecA1YK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"mOJaZ6BK3x_hiGxwMek-y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"NGvPqzJZYCOft4TNRP6hj":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"rpnXFQt_Jzbmjm1IhUqgG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"lk4lymfuGhv-xAdSwy6m-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"K1Qe7FAt_GbGNMqtXpQrb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"qslijEJDCg8u_62tz25UW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"JSIAMQ8m0a0ST06_PnhO7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"6rHEKovLhCOjqn5_WyJTT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"edgySQwS97S5rrV4eOmy0":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"K_dsMUT7wV0cxgRxiYCUv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"oN4OzF7lmB0Ty263JE8Wa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"RcBpNruGxbf3c1kzQHjyq":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"GnnX2CJdiwP29MUlKdSD7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"sR8FNou6h4B5frR1poHmB":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"x3mo6a2w_C1mTPxqLIA4y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"6soGMAJIrpvAEb0swKbQq":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"pgchSVjYpgv7hMjtMPu0-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"DaN4sI4fK2fs7fKdn22me":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"98C4q_yPs4u7abgPjMki8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"Xxz8TwJeOPgn-OpLwdsh2":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"EssbZciiKBN0fV7298158":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"3jj7EtfTijtMm-UvsmVQ_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"HIHMyGtuJBlvzIOb2XfBM":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"E1yZ2FhYa8CNdYjDzdUrC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"JnlWWUKWziuuePDJxYHuH":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"ckl_VJHp5aDKd-bj2jtAb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"OtrDpZKH-jY2-H2Iqy2hJ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"gagznzPUCpJB-tF98a1LJ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"KuHPfnwrRu289LVqNvCY8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"F3AICSM5cxeEAa3xFw_Gb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"KidqYHdLLupTc2OiOnPfN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"NxCtLbw_Cuc7Rhu_A_RTv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"C5Wh24TE0Ni924xo9DRYd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"V0QxJcAXDZ6qfkvyKzHMC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"vQOAcczMDbsPPOLLRBQ5Y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"RBvJ7oxvpOAgvK4_M5VRg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"S3Y2nbIzjdkI6gm2Q-g0p":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"q9kVCT_xqMYHnKrIEe3kI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"EtPw6uWe9rGnNiIN-Exxy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"Iatpm0uOUg223uPI_ol_Q":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"MEebwpC7FHv0U95LnnplT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"AqM4h-Eqf9Kct7Vcxa5Fi":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"xcBa-fM6G6O1-fDiuAnto":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"jnvk2Fi-ajORwdaLDWa9r":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"XVCun9zfGe1DtP1X6vVzF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"6Vp6TAJGJ3nP7mgGXaMPX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"uWdCbCmds8M-KdfBRwWYs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"ZnKkARzgtGKCvtry8DTHF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"n1iZ8GeYWQDtYAkjcuYe-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"X5Ojv2HL0a7H_nTIkupVR":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"m3VMFH4Da1HkGhFITFTPQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"ajB0qo1zln5-xpmF9eOW6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"q34s7RHxFHFYoJF4gF25n":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"pbFjWlCRoao3t9xvjC7K5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"hmUa4d49avQMWgWy6Guv8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"8s0hPDbxy8drhDqmIa-1U":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"HVn00vjIUgzMbE7b4c7nY":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"IBOmzPD1TkQoQBT5gqpe4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"DDBk2g9YuM0MvfSvBOkBL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"kbgoCyfv4zMzq6CUcjRm3":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"aHDkMaWbdrYDGbmt_pFcG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"Eus3uZCDl1JZMSlayYzAt":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"OcEUhVnOM6mCuvmxPHnei":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"59uWRVb_-TVgwAyCoGq_n":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"BcJnl51bjMyqQ5kf58DIh":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"AFBf0EFvvnp9lqEXRmX7m":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"0FbYxI6Oo5lfzYY2x-ETY":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"fJMdy2gu_jFAdB5vE_pA3":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"YiO2Q3KBxXCJbwNSr_zsC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"1MtxVMCmfQezlA_SppfNU":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"ArXWxiOsyuGn_blM0tMTU":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"oYA9cVh7-GrHuJCM1M1Yb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"2qoAMJTV21tRVd-CGGnVs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"9G1WnQMQQ2Gdf5oowj9G7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"g9-EJG7Rd41yoylTaDG38":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"qiK8sEMuWXvXnRHLQ9g2u":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"hJatcDRAuQ8O6SM03iEUH":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"J4i52rNUzzOasXIeTdgUt":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"z5mb_8Q9vxxU8YwHmrQuw":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"AAv2h_Q1ZJzBGlU0OVGIb":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"kqktZ06R-Wg5OH184Enrp":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"oTYOjf6iO3ki5VoUqsRqQ":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"LQ-YIW7KBFXTll0XNP7pi":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"bHFV6Ja3rRkhZSauepsSn":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"Vclb3OhG0LqwkLdYkPYxP":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"pYFphnvlnk0hvrkVdscie":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"DsvusFUckgbuKq5NDQvkl":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"i2Rcw5kOix9gy7kJwNZVN":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"652HEZlxVQ0nAuvN86ZiY":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"CU2rd2YhyYjwvhyC0YlIM":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"vwLHUmSScElo3ponMBifU":{"uri":"/melonJS/docs/melonjs/Container.html"},"EXPbzCiDBNf4B0g22w-y7":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"Fm8cCOmZ8GJI3oLVYZi4w":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"wfIewyND3xNvjQ1nUaUdP":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"MxSdGoamJU5fR1wnV4Hes":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"1Au6cvn2WHlIPTUdEqnMz":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"YrmX42dwPa1MiH5FEGtzG":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"bM8p0YmrLi--sQT-Km6_9":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"ZPwfaiPlhq24_kVsCZef4":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"peJzFMxEztXBDYJtncuMa":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"GjdX8QxeZYOTg15ox0nEk":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"hqNX72UdEVxskBDddUe6O":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"RiD3pxotTGsLKvr9UvU4U":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"QeGihXyf2S41uoHRg7HQu":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"2lBpBl8BfrVkJI_RMKhsE":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"8x9ONJWtG-AsDsiJLQUTR":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"m-OO_okelUOe7g7dA80_e":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"G012nZK1fGT-i0EbsVVzS":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"bOq7sopsYhL-w0gtFQXWt":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"MsscYPyVqKXFBS9umvy5v":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"zRK7PaD3N6IfiYR6Gsvv-":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"AO055DeaX6ker4cSwOiwK":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"6QHbtZDE1mziag108ZDQg":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"pDKE26H2oiMRdJnG5poov":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"o2f_mvzVRK7MDoBj6ERDz":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"kF307VOlbc041qTyAoo9p":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"6TSLBFpMVOzdy5uZoxRgY":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"OfpJ2g2X8nKFQtzQhsawX":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"lkmBMAVsLKFcGMmvXvh5w":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"xFWZ-fcuFnsL12nrxCV5o":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"tR1I3HyBXjWvXZN3fe2ml":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"n1dTW5vRPVS5syGpf4s5I":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"P_5iQQhBPTjyhU6gt-WLz":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"5Z8GPkTJ7FZJXZk8F3hfE":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"7tfyHE3HnC-GImHtEMxmo":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"RUtCFMgDuYFI-gl6WE-nU":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"-l2BYSn9BVn0vnMD1aFgU":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"fxNwfpJn60deF60Qz3oq9":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"WUC4qtAkymlDY59ntDXap":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"GXRly7nz6eSNjboskNo4a":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"INtzbH70w93Oitji6b1yr":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"1JQM-CsYQteDiSF4ZB21U":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"Dh-ejDcpK91hXj19UbJJg":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"r98rEck2H2OoGtswanuEm":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"0_VmZSFUFZc5CMNWxlfia":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"KCZA6txSGL2uJNQ3ufm3Y":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"qnVIMJeJfzOrmQrdxst5n":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"fMNrRMPkSC1IXAGoml2od":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"7TnmlnOqJL8mxLv4Ih50X":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"-ImjySwpezmJdkWvRK4kP":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"e_jYR1SA-Ylrjp-97CB5I":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"MC5I_hHNMATQRinyYo64Y":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"0aCD60QU_q-yb55LXvGPN":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"XBqARHLY_boxcinUL18Bi":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"_ZLeLXyFBor9I3B_gUNLu":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"hPwSbkd9T3SrVxZ8TaFhH":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"Z92yKymuifAEzR-IUrm_v":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"qHzt1hiyd_5lKTT1o8YYS":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"oXQP6TxcbIvEoZ1QCWPCs":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"nhkA9HBNFKpTTxk2L0Nxp":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"1KQa74uNClYYjpTUH4QoT":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"gCh4AW06JzMijNnumJvI_":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"3AZPezxKbVl9GPJ2MMUh1":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"N2Z4CcT_6mXAe9aaWROig":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"iNuPNXlRVToeYyOCtaqf5":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"QbOE5pjJdS7TS3v_PlHE_":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"8jZRM9nDKrQyCaUiBHF5F":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"aac4vg9cWvFZFepJU2WlH":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"v-X6mDLKg7WaSIVyk2s_w":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"yJF3Y3SSwCz4bETsvDvjw":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"ZRIpqmeXUHiBq62DR-1gn":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"c3Ck84_0H4KIJJLj_F9S-":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"XUqt-2BgAhd1qluQ11bf5":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"8VekX3I03WPUVrCCABrZf":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"hZobPwL2rKxquDKfgvzcM":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"8PYFMShBLvJ8fErh73KW4":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"XfKrYaNRVFNwNL7GHBx5w":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"5ylfw9sRsf7w0DV-QXAiQ":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"H5pUH0DH_U-4lQDID-bod":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"xC-Tc_tBeRG9DYshklnFb":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"JdXZCNgxTDHothzCoYzke":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"oTKVn0roQwarwju-0HpQi":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"Y1ZW9cknmRCd8Knw-l4rg":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"EAz2ueZFA2Uf8ZlIv15k3":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"Hq97_LnzWhfCj6aPom4lS":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"fRlNRvgro9v6kfoXNEhIS":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"y-SN4PQ2noeZQmi6LInLT":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"Z2EAz5hqveWv2skFxiEPA":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"cYPEqZUPxPIWwHnQNZxsz":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"m6WJaVZQe0AItYJDEvkRN":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"Y6UQVavcpcctiSfpDUMX7":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"IIbMHfzMzKDzUvTkmSRLD":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"3MXvFW1T8CwAwSTJviXq1":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"gftY1ckgloIXBuBe-Mxv2":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"XUqxNY9ibVpS8MGKZFd0g":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"ltTRgGAdrpMPeG1Ecc5s-":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"XWVmv0DmyRDa07NmDc239":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"9-ZYQZ_K0HTQ2ujTXku3C":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"fO6qgbIe-BxUgvE8uDqE0":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"Ya8wtW9pjyB0B9kPxjkd-":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"cTllczVu8wa0m_2iLp3nK":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"CUo3Tk27sASfuMJor9DRK":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"jwsGDq5_nwMArYJDsZh9y":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"HpEfz4faAeIXcPwk28ww4":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"iniSBekYn_CRQTABbrxSV":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"t4-u8vAC_YxQdlvcKMi60":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"LGyMB1Zz2YKMFwVkURX_0":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"h2nMFNfu4tQcgF_OqABZY":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"-_okUX3Kbo5v3742wxxiT":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"mxuGVyvlJ6DzzcPbeqTQC":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"oFQP_CYMs9P7AU5YbvNRb":{"uri":"/melonJS/docs/melonjs/Detector.html"},"Hz_MUwj3vrkp15_cidlTp":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"2skGgUdzcoATDLVdfVJIO":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"s3EAsmF_ex9wXR6_BLCX6":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"9G-mzBtZSEMSOSm35gFXh":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"bA8ldoOfPoQiDfwf5Fkle":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"SxwqXUbIlYIMkRD0eejFL":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"CeasAfwyifGdiIdLO4fr6":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"BqZL-2PVNLiGb6iLv0RQt":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"xqLivTofsnlNlvoM1EZ2A":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"v43XPbrtBUTS9dnOFxXPT":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"suI5er3jTCEZiDnk28Kto":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"syJjhjltlvlFEy779SHbl":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"a4a98rs3gKE8KRKIiazDC":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"T4IDkEeL9b9sSUEJs-D-k":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"ecgr2b-xhBi9HijTQ17Ra":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"L8PHb-XudWVMUjj43_GQV":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"0JfZznVbxi79DsPbo46kx":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"XCbwRfVDK3S72o4dyRzLi":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"NpvyMqHqiIfqrqGdjaBp2":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"E8oT3Mz-pTriyI41yNKzV":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"HH5djjILfKucf5G5pBuA1":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"4tWCD56xbR6wPcJp196it":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"PGiijjZOAjM0wV01ARF9W":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"LD89-y-Gu_juHkD0cJWBC":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"k0IefSzxaECcVCYhoN5kj":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"apV1vRdv2UFFJAEtVnv9L":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"bCdAw9zx0CGvCb6zLH9_U":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"2I4THP_CJa93c-UoxmAHP":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"GPqjCGUkJuYjPHKMZfVWR":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"LYQYR37PzQdtE5F4pKM_6":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"wLG2rZxZ1eUplN25PUkqT":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"7CsWLrqmID5qpXkTr9af9":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"qrIJN8qZ69JO_aLBIKcLJ":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"wHPtA7zffr6OMWtp_r6Tp":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"LSqIb7KGu8MUGAfR631of":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"r4rx867DuGmVMvFC5WO5c":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"Z8bHUPieO-D5buMA7g7L_":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"8LUGJ9fKkMYODfVv5W-a1":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"4xm9fmayeSyPyDk5Hqlvk":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"oe5bpGDNYbyqiXZKnFMc7":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"-cWMczmEg2VhT-aXVIseo":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"U0P_aXpIMA-LrmX_triPa":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"mRfo9PKRlq0oqTtvWFahb":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"XKBSWNrjhcJSG2mP-wrNX":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"txccEoOIVMB5Fue2-zEg8":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"3knRhmODygbgjtsKsdJzd":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"cl5lvVwXXnxUlTXqTwkCp":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"Any22Yp9iUVAowicvKSmR":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"7dZJU_NJ_2gb2eMkehguZ":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"idyjfFqsRbjLsTuPw89j8":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"TkBG1Y2aBWqsTMfbB0vYE":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"rrJpb8igVj9lZd__Q_0IN":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"QUaw67mWuFv0QMJWEdDxb":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"3H87g8tCUKbaGzynkunlT":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"w9PTcDMkCQrS_IDxfv6NT":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"3TM6fjKQTTKc-PP4W0-ok":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"uRheHu6CLZphOcYf9xewx":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"QstiWlg2yRLf3wn0wkdbK":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"sfpaeqttr-SOJa-YilF2E":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"CqRtljue0GqXmVX4c0RBP":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"DEMQle1_sKaupMn-0YUKH":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"LzxF_e9jfm_BXU7IVJ-un":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"DiWjWIYC_hGCZ0eCkRL3J":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"uqrPHxyHzX3a2Zg0g5nzb":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"MmpivtuFL9zDcMrVvfXFI":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"-0QL4InkYCIUN1ltQhjpr":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"kVXZ6lRyFMTuxTdQU3seB":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"qv6k7xQSdLiLidzBXyChr":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"449UryoICILII4uaJStW2":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"jaUKVrLB61HAAplWSJJVH":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"it0PHFQawr59wRE9uON3c":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"I1NqhF-lfvcxIzrtzCxZC":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"tYqCz9VBJJKwOLC92EamO":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"c8RwR1MwkA1JKUZTcdJQ0":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"XSqZvC0ciSYFto1X5BnYR":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"mk1KvKOWkcgme7RG6FL0c":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"QjyRyyNV6j6F6Z96rLPVI":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"cldaTGP_-Hl3acGGE96tc":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"B5b7oq4UFJWwb8Yco2yYy":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"haodzdGwHqsQ_8TGlAcAk":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"_-9XEy6dgk2H5evfOuwTQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"IAbzZw8i0hYBWCyyHd0G5":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"mnal1vMJH0aS60AgwxBeH":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"KNdMyzbBkEA5uc5Y_Q_Up":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"vwxIhJdDS7ZvsvYMUj3ln":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"oH1wDoV5NiCITNPKqubdE":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"SDhQJbThxtO8LJG1JlJDI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"mdB6ufznpDRW8l1IyRpCX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"9lCRXWy7Pd7IqPv_j3YIg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"yix70qbXDIfYsbb9IryVP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"DOJxhrRfpcG98ZLNK13iz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"ySNa00swetKsfh8vrXXSs":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"iOcTPHt8fCFAjFJ5O4UAl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"ZgtMY1WDyQmJBYPNgJFu5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"e9DLdu5EfCiYe2isnCxPR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"EmbxyDG_zpJifkR5CXjND":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"Zgoqzpko80cXDdlsCF-aX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"vipUF23Z0tPGOWqFJUQB6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"mrXO0r6wJjhGdcG3322Cp":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"f1DloVbqko-Nh9_Ws5lZh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"Iv1s6Pc_Lq2YH1E-fXJU2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"zjdMGYXgsLbyfK61loHRu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"0TEMLl_7GRp-Ugra3Xr8B":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"hfIOEcKmouh9P9GELyqqZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"xq88Zvq2IjcEfR3thGsIZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"_tYgWH_7k_Ox35x1M2TTu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"UJ-awgzLml5nYLomja-qd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"Rdc8Xzg2chq__hWHd4Dff":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"g-PTPl3i-vxntmTbfU0V4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"vh8LDVGLSb-nwClt96Xnt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"6lor4IEzB0LbNQ6L9_vn6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"fzhg--8-C-lyMxZjEk_wE":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"t8cqIQ1M-i1K0Zd2XMhvC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"fDEdbM0ew-5OpvN10h_Ta":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"0cx0siLO6A336EnOwiVDl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"jEft9g8yJi1bPEDhOK6Jn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"qLlgeImhGmF1qgBE3QAdy":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"3uM9mr9Zzr3Z-T-kD2Bym":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"L4VuHdZ1iGkEskV1ig20P":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"SQCOvqO8EtfXS5wXyfsu1":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"Cixg7SXKnSu71QOHZBaKN":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"F8vQm0KmWVqNLXOH9iouk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"J-Ln9i3yZX7EmtwFDwoV7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"QQG3aguSk5of6IUnde6m8":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"nCfMJ-kRVyVb3TFnXgTup":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"pmt8ygmVkl2KxpkKINlyR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"NWZMgi11Rx2JbydzRMVCm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"8KT8DODkn7THxEAIqOtAP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"_Pvu7CqdIldEgKxCWZuEm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"7QB3cmiXh3Lw4sDU7TSyl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"MQ9OI9Rzk-2I-TxqizdNx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"SYqaggdBCTAtsd-CCIlEU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"70crBWDVIgmjNkJze6HeG":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"lE3zm6afRbDCJ9QFge9Ig":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"Mre6es4eBlkdcTqwQ3Tzh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"VoiT9_gSK76DCUTMtfUdK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"rF9Jojr3uNgtiRfUt81is":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"7imJF3GNyYGqVhV_asGq9":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"QYtID1jHIZ1VZnXhqTGAk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"NivBwP9bSXqYG-QT1xElo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"ty-a_YluBZFmimBN6rVxw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"hmMtbJ1ofNHpYyKG65OTR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"_GZh3wveUMahecA0CFeeb":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"r0Xq43EDYz8pCto2cI7KW":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"myidB1NqYjDntQA_Zhrvx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"aG71j8lrz39HAPRBij1hc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"5KZ-hgYKv4nBxqk_tCLZ6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"Y9SUnyUcGgNIQdpefwpTG":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"RKXYnESqS2E3SLTcc0rcS":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"53Kc7BxCM_vNkmfVNugAN":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"xYXjuR1QrSuign6mXnEGe":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"USJdSXKwNIRTHP_82ysFH":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"17YlboibWXkHNy3WhaZKv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"KLb1-ZdYJeMXRaN6EgWm5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"aLU6r7G6rYv6nO18Grz0K":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"n3-Iv1GKNGWchRRf8Howu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"IzHhO9-eUf_dCCuzVs2eX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"hvBBrCOGVBLawu3g_U5OW":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"6X_7ckua85tm3s38Y8OrC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"eUOb1uaY9-Lgg7UJsgkRu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"apvpgUyxE1_Vq-sEfYTew":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"VR9h38z9SgQ0nqF65uO9n":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"yPaYIZXo2TFh14RW4GN1r":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"VYzh4O9yEYI48VYyE4qo6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"bFm6OSPYy8zX4Q7kLu4_A":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"TRSRZwXzC8VW18cEXsPjO":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"Ho0DnTNumgV7CX-lcrbQg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"8bhBJwgIZdTYO8-c_681Z":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"BRCCsr5EadZexcdYnwtfk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"hi9QixiH3pSEW8eVBPwrW":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"o3uL8GnLfJy5-DnpPrXEx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"yTTOrocrE3CBi5M8MOeun":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"TuKNpvRVlfj7_ajEm3l5Z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"_W7gywC6C22P2CuKv1lo-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"j5Bkty1tg6PetJ4217dqr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"i9eTyYZQGZdhrXK-eZse1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"5dEK5aQ7vHfWokrLeuok7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"Iyv22UA887pMKVdrKe6gD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"Dc5xDO_HWg5Kf9uK7yY-C":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"ilDRCcqD9tXTF5SIOHTja":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"HWBRU2OFRVwSxfvvzVSCR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"MJLBfKlqq1wn3uw43Y1H6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"b8Oh6C5ZGKJEhsIgD5vPs":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"myGSQycs9WP0TUFcOWOQR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"3XjKpDpnvqE8QuAWloA26":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"8hWncvEqQ6OvzbsAODtou":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"XSgi5oNARBgpN_xST3jLO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"NSpDBilaP_H679uWs97by":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"Dx0nkRck298ac669XqUBZ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"Ko7p-D3cCS72LgeUv53q7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"5Jx5D-sSUmoaqdfGf5msF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"EHiw5MQWL_rOMXyT5sHgG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"uwostR62geK7XLTdylpMF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"Te3ggaeuKHAvDKgoS6iyt":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"F8JSbkKDWThLorsLTKkRs":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"uvb0m7gHuLoHTLIsKTpVs":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"fuuJZqy7K706aknTSZUKN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"DZUecSsL1QFXlOdLfN57C":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"pJ-PFIvBDAmt2bdIQupnw":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"WXLGVc7aYqYfuuZlBiSEI":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"IJ1Ms6Oc4NOpLeexKXjb7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"J7YjY-vom9WVEYf29Y7PC":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"3Zt0r-q7CC1nhAw0AKNsF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"1iGwKWd0yBM0sAQeR0p34":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"uT_Dz-axmjTlEeMjNc91j":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"M5Bu-8TZOENTo-ZK__dZz":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"f4KvuautL4GrXBSjT980v":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"ITNgNzU5xsaHamrvwW3CP":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"6Ey3HdRcj6z2rMHPRlrHc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"iDkN-TjXll9Th9OB0EpaY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"t7EHN-lfFjzl113RuiW8K":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"xLcC7yzHaE-jNRR_2a5KK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"UpkonBgNBYq3wW-duLGGV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"aqN7gkOHxinOKt_I6jbOO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"PMeP4h28aatlw1V5KicaT":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"Xlin4ybOGG8A8BjcbnHSm":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"rGG1oNfqUwchoblfC5FuY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"nIK-DZKKoOP8RY5X8fHTf":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"1UHdv-UHll8HKxUlPdjq7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"EK9279lXvrWRu3wAeRDiX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"Bluf-0ZxJpfWZLb2i4Pg5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"TctdJmC9lCWoH5Z5u6KIp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"yzm_9FQ2CHJ7CxAF7YvC_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"XEgDgOwM1hvLVRyUpNezr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"6kLuDagu1kFJ56C9tSxgZ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"61Od_Vru1k1wCHP5cuCVa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"-w80oIDdV15qdcCIA9127":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"kFE3GHY9jjYIkXgsySpEr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"a1YwvaueAmbawNE5abKJA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"sVkGMXI4wv9P5j_uTPdmJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"2B5iRZC46Vm1dNx8mcfuV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"tYNZKpAsPXZUC1EwINXai":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"8j4raJFiD2ZbuDki5pxiN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"MWLAX1s9iBBmL3htgQusO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"_l6KcnqCEdl7oObvIFoDE":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"TAbk4r_bW1dpHwjboKKCb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"vOjQmEQrTmhj9tgOcBLl1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"3mJJ7v-EWVBZGzru9nY-x":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"vaRmkmM321jj1R7n2am0O":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"2meJgCynU95aICgv77k23":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"Hbh9jMRla75Q3xYseXDHD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"D5xmwPP14Ih9DrBxOfDRF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"a0-y63MesnGytJqrMLp9f":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"-S6ITj679OXWm5mbm6Y2-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"tTtfYxS-eUNyAl9L-CC8-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"y9bLS5Atyz3V7ceBv4juN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"h9V5NdSI8V3tBRRArQeD9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"ovuODMvtoUajFzVKMfjB3":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"YtJBNn-uV-yoGq0aGxvTX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"BJoLiLVUIqn4rCKI8Z0pA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"bjA0gwT_BWP-8_pv1W-VQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"9iniY2wybis9Lhly0P4yu":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"8eZ6I1wy6FMSpEpSsA7BP":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"CPa5gdxIoe_DR7sG6pvCt":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"GTnl6RxxnqrsJ-6-tad0w":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"5hEvm3xVc_YNfHounqQOy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"65V5xwXi6iHhM7-Tq-zKm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"jz1i_Gbn9BF5PO2MiosI8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"u2d7eu6u5DxovRmSKOX1H":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"GLc_qJ5q5FQAaKV2mJd30":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"lbLKBRIPLAsdHokhmZP-T":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"KLCHy0hAMZMmybi2JK7ZM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"naJWZ8d-s_VaGVwdv7Mcv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"fFiAK9zS5pPllpckLQ7fM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"5bSJ68ZVBd7vJAEzbARAB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"lk4g6fDssl0HAH80khojW":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"4sMRh4eKElTQ3sSij7-bf":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"9cY9qMMU35aD5t0oBPnsz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"QhfmPgaVS5alyl6lEqmCy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"P6UrJslt1FLiog4d8FpX0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"FoQMmbRvxc3NUQK515vS8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"GAaBsVYnXlxXFQBxjh8H0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"oiY5FheCl2CD7d9VHvxyF":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"sg2Ned_KceAW9HPvAeg6p":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"RvO7qNwXl0GSubLZmLpiX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"uGnBFEw-GUSrQnfs4CrNe":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"_5r7gerbfE7mIUNSdTiKt":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"7RYjbGCKkiLgMWIVGakCT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"5jkHL-BviKBYM7aivEjY2":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"yVPIkYMG3xq-XL41Js4js":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"lHoaL_6Urqnw-ZxRzAh32":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"FhHU30Qr08y9y_WjnNzcJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"zWDZXYRMo9WrjS0F1ymIM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"5aCQWH3jUI8RlbU54Um2G":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"o8eY8vb2bJabH8tUEWZIb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"k6rgktfm569q3IWTYZBmq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"xabB6dNMLjZk9CypKJq9q":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"rdFo2DzeSiw_KzwTjzqdV":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"6ZsGLrM8z1PWZLWjRlZfy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"ygP4CQARzxpnCnEkwX_cn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"vEpTIsYkQYhlGNO2AgJJX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"NDcSC25f9FQF4FasuRYHz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"RR7-ee1sW_bI1eCN8qVdA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"5I4NbtzlZiLC7lTFundnr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"U3yQfWhA_AipkY4ZlZCCo":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"3McBHiw4WnIF55-iON2bC":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"z4UBoBq57ZEK0OpYqW1P9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"Fkx0irwora64Ly3q73zKH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"GXGIdvQdzg_X0mdhz1_Ac":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"wxu-h0UJGs3qOwj0a3o3S":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"gqRD26YQjpXftFrFfGgDh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"Mf3QSHecf84MZe87x8a80":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"WVGwY0RCkn1eRfKujbIpT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"-qdir_makEe_UF55BYOLR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"r04L7Qh_7LHnVF0HjblEB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"q48rTvFsplUgTOgakjXA7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"-IQNZ_yEZ6wB9TQfA85Zq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"87lB9VnKhKoLLT1bNYX8c":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"WVIVOniGQLCOdOkYRLMIq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"xAWVxcvWLew6OoYcJxQUU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"xn816POPwpdeEnujQByfb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"rjYlJSmnfRmiWvWtpXfwr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"qfUUeWT6PHBiMT4IwMp3-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"nT0uuE24VrQ-VL3AJQ7Cm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"V1vWrlL6YFnEu2__tCFvE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"JmOcl_EKplJw0N-rT5Z5B":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"VBKACLW-j49zSS1y8ZDOz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"MNhCkMnYb9wOBFx5A_IGw":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"9NB9ds8QUqM5m_qy7L3Mj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"CBtE5nR56IDt0S019O3RT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"ByOJ4kHyuQbLvc5p80Ucl":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"cyTQ9r43YoaV6pqkPYJeU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"Jtusb6IqkXNLdkcd7exNI":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"INLqwWuOq1flSpvhBIaMk":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"ERgozvL58U3QLeulDoKdL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"yTwiChlYNbXf3G0y6gK0w":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"rpe12Fg8dSc8RFROMCL1T":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"UQb9OWxMibsQgV6rfJk38":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"YVlahvi_z1v5lgaDCOQUg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"R5dHz0ML7DwcyAOOc0z-s":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"ZiOdNBgVydlZC3xrJms0P":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"nA1-1X7z-97ySH6ick5ZN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"Z3daXESMAy2oO9XvN2Bt4":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"yGqxlXg-M6NvcR2zAjUtR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"k70qgLhxqS__BM9V5KGBM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"BCTuyIOag4nX0NTgD_MkE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"CpsjNVYmVOxTc2FkhsC-L":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"ZwZFXDcHtgu5r9nHvhU46":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"uUH7HyYRNt1e8fytN_gZx":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"KXbecORAo5nVUafmY7llm":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"HCndNnR37g7LVD_tPQmB4":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"o9F61bdXXAzEXlL571LLX":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"isCCC8LsAPR6HpRDk5BUW":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"KG0Sd5c5IjSt4SP76xHjX":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"S3oAyknOw2D0vj3-8_ifI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"4Xd2mqjcjGzYU6Z_HOmXe":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"2dswzVEK6wILHN8aFis4N":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"VB3k8UdBSX6_7m8GY4NCn":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"GrIUZc4pLYL9CQOoLaw9b":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"sk5l0-LfDMbcKH2b-jPrm":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"L5rNmbx960rt87KxDqjvL":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"V8v83s6NmPjsn3mnzTo-U":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"sI0IrE_IfrDInfPolRK5E":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"unrbZp8J0QT0OuZ1HwE1y":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"ty2ME6lLKBwSKASwyrXk8":{"uri":"/melonJS/docs/melonjs/Entity.html"},"Jy_EH7HM6UROfEGsp16fC":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"3v7MVHBB36rMZcYV_vABW":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"HV0hM7rtbny17iFzdsbBp":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"MN-MTfJgiqhZiCSqo3xoW":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"7ybUojhbtAy2JVTqdRGFP":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"NJYklD1bNRCokGFkAek-d":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"Ubnt2JOsEbUzvheXJtBT3":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"iIXaF-oBz2QziwDPdU5aT":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"I1F4i9kQoB6AXq1YEUQtf":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"QdEC7l4aq8_yJyqqQdOiU":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"Dr8LaeKYBNHiXBxCvOPKZ":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"56WR-WeuD4g--iQNuqGvA":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"FDgUy1a1gTdPPPRTWOnVR":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"DLS-ijWggV0dbNinWO5d4":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"zgS9puh4up16cTsS3dRqE":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"NS2Up14UjZQk8KYkq_33P":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"_o2xeIbV8IZ_1CA7XFl74":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"Nq3U25-oLafFffWebeMR5":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"SR7I8mq0t9AG982Thn6Xe":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"jjLbGJBShfpsP7H-SDmwX":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"_GZwfDa5-A4RUxNn2vIuz":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"L4WMb2rEYMD7OH-97uWRS":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"YKLVd1YzJ3I4xaCOysyGM":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"FnPmUrJ6LERqpv5bXfjcC":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"r_u-JKScW2Wz23mRZ1-Dw":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"SVOMke0o8KZ_YYsKKCkWD":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"GQYCRZAhtybW8wZB9jnkY":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"udODVBATKqaia5SPf-W0e":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"wtvuX742MqOolv8rP9_Sb":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"vertOGwcFFP7CkH54OrGC":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"V_uxAIgKGlgFLI24uuF45":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"taSfJDPPkMvS5nMy3ySyj":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"22ZFICImomhtqHQT5ZBtM":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"hSgVhtAU4wrhwV5J_uCms":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"LDOYhla9Hu4kO903ZxYTR":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"M5pcJTKhEmrF82w8qsfMR":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"n1sdDFs5DXCrJfNubZ0Ae":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"Gr5h9cY-cKR2nOAY3DPrb":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"aq_saoqnnYYtYjg55TjMA":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"-f7X_cK4Ix7QSlPV-A5hw":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"L_ymAU6sY1vcXYvmKNA2_":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"d2b6cUFi8EJQOXokO_2V6":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"rmKfTyTJ_9brn0fl0KEqU":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"05qzy-iBt-mt9RRjfGh_2":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"eZP6lsUyT4ihV7iftPPJC":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"zYgG7kLYfE-yuz0-KZMDz":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"snhxteOfkj-e35emv04pS":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"sr10mhE4OkkR9rgEfI5IW":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"E6b7gD8UTdfUq8zsWa0NX":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"_fOPu8W7RLJKPE3KxtnX-":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"lz5dBb1fX-rWvqTlk6RiA":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"A4OFJR0CtXIs2UFgO2S2T":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"F7nfY-rr4p9uNI7f7WihJ":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"uDZqB82ncJXNFGghWtr4q":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"K5ZyUVlIFERJC9FpfhHiM":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"dGh-v_Q2al-BErNLFP5OI":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"uk7pRU7h5o2wZtsZyK7_f":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"5ZNKRHxBiSnHa6xfCIm6v":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"f5baq5xsQpjPFho9OHDQH":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"6fxDVOnbhdC3mkFArO23J":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"Smfi9F2kLpL1TJbkmbgwI":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"Nz6nOo95Ab_B2tP_3AhOP":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"0DvW1pecFGQh8ChplghY3":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"i-mb6AErrreXumAS41CR0":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"C2Rp9RN6zRc_zwqQpHKNx":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"-_5_6zT060oACIxxcDG4B":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"AK4zMSqMk315JwWs2S-8O":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"gvKnNAhmW5ssQ4fUz0Ev-":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"IlKXvryXCVRl9154AZl-G":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"bdqhKxfUdh9UBxj8zBKBu":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"2hBFaPVdQN-vTqajTBDLD":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"ZMYYwsiIR_uppB1EJgLUz":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"IvkeB6pxuTtmPJVMXIqZ9":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"9RXh1EV4PGz9UfVDfm9ZB":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"PF_2u0RiHTPAfr4loARmm":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"XSQEdP_QcLp7HuazhS1JD":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"NehiBVEV8JU9vzdhmjJk_":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"EerQqAcp8hlkj7b_nhbcT":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"3U3z5EqQzCByBUjkDlYxV":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"-j-j_ITgTNJt651_Dj1SW":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"0No4771mWgF-MGHHWxCK4":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"F0VVo3yCfyLu-pgQW821A":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"gbabF9QUok2Wfo1EybxDq":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"amZZA1HlqdEnxTYaYVZLg":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"njoHBp_b6aLx5Erk3wKS2":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"-uWR9tQqkWfmeWlfRYLj2":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"Q9BUN4PMNCiCJtikLcFak":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"sITGEhvgPDH5oKc2WaLB5":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"_9ay4AzMqi6iqtki5gW5D":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"0_DFlEdUofFXgb7Lkf8XH":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"Sw0fobJOVzs5JP2o9j23v":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"wIeEnJFlv5t-J7wB1D9XR":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"5A7JgKHOynvF9lP6fRHJT":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"XK0jth_DbNN5DMAi-24lt":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"USCG46ir9rxtpzagZqT8V":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"Pt6UnaFd8p_Kn1bOCXaCf":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"yI9424QlplMTQRvvhucNa":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"PtP4KukAsJJlKzSH0nIQu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"RLvbEigkn4kJkj95dvmdn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"_qh5MXmAsNVkMkUZpDpYS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"sC1kJ3SERYHJm3jtEIU4T":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"GtOsblaZ7iUIfuIOLvc7f":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"HCMOBDFXPImV2K6Wlu6_2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"FxxfZhYmXgF_LYES36eFu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"eOdtCFP6caJEM_OCqwcz7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"51IgtAzMfgaWfJajbIp7W":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"Z0fDgqyYpiz_VrjL3cXZA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"u5KFKrOc8VxJ7aNjYBtU2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"tZ7v8hbyGYrMwOLJg2CZX":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"bE3AAvdowBk8GGllR0Kav":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"4u0M-KpDywFlCGcVkwI4-":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"lXb3fj8CPKdjgTXgPDrmF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"_WElex1yQA991Win4FBrs":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"Ug_aqiYLWtQj0IoTbQUhB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"hvsBvvVfEqkz0e2CmBWK5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"8Y6OV4s0XXBiL-L6Jy0wr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"LcwvaVENaqJsesuzoYzfc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"kA47h1Xl31kGWXa2ZkgS5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"CSTgDrym3CCdeqaaJusoj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"Rkz8t8XnX2oimEpTosj4A":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"1BnVAZfjsKvG_X3sWnTrd":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"iYL6uqwVSvPqGlAdO7Oe3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"OViTuEsjfzIma9YsyS_Q4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"GajfUQz7eBeLHSwfz0CYc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"Cs6UqS0OrqRnv3u3ujel3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"lzOdmNVzoFJmsr3dXD1XH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"5gTayBrcUpJoMiTFZ-t6j":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"7QkU0siX3gHuddjQiJFTh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"mhzoj33zz-h3Kf0QM8Uz5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"UPQrnMPTc_MHatx1wuqyB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"p9KczQIfgHfDKam2soaJv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"Ub0XIkSi_s56My1xzBoA0":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"ECKx0TMx1KbzuGiIXPBuI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"I-KrBcJadz0YruJT6z4ZB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"ifyUiOPVVOabr9JXEmT6T":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"BnfHQMtiJrUvW2jafWh5M":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"slU9WkiSwz3EEXTA6Q22V":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"HXV2IOf1GK7PubKaeULaH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"IZv7eG7SMj7pRyIWmI5Kw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"Kix8z11JROUlwnB-toQw4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"mbCIzcEm8JDv3vXrKeKCk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"L_EuIQ87z9hdDc1RcOExN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"SBlt4pk38kJYb3OfqFcUf":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"2nF3aCWZXHk_6kC9y2-ts":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"P27wOrqAoMrUWr0oXOTTF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"tzFbLFF6raGdvTVwUq1Si":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"rTTAzDJb8LWXhdLF2pWiN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"h74IaowOeey3fLcvfreGp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"ph1Sg0uLUfKscu9L7kUwy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"4DftTziJvFrrwIRUSgfrL":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"LNaTvHxpyrSs0w7fH3czv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"63Cjn1zUbviZT1j_LJeK3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"A3s7wxx2L8SYmO-19-vKT":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"tnaiN0XJayREN1cyfTxaP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"pqX7S3UYye_73k6SPvQ_T":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"iMpbtpUVDCkG47OXVvIOr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"kKPAijo-HGAYcHC3xGZIW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"Wl2s4s2A8J7RgTKdy3iNZ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"o34ms9PcJYswnrQl0cC72":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"7KPsQ2M0_IdK93Rem7IYB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"K8YYA5esRLb8N3TCxPMBv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"OSpIMuMZZvDrqzfIT5Qf_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"WRP3lrp7b6KazBpPDKels":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"1Hx6g9Hmy0abejtwPZq4D":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"ONgLHgL0-bPufJn6-IDLs":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"LiutTp2Pt7-Cnk9JZ0EAV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"R-YUztdjjr8lWfjoh4z2M":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"Kls3hd1BeiUTX1g88RY4O":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"zEA0IQD8YaA1BLl_-i6to":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"rQ5Q3gSm8SisCaRy0lnkN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"WWqyqZeeUgUZEfWh2lnsR":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"5gztGj7ZgQO6cMBLIiUp2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"fJv6j3M11-Rg04tN2rZWe":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"POOQfoJvlomrDa94qGpNj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"RTvOtNAbrnIsmQa7SQ0c0":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"jNE2c91v_dTkygAX1Qu1q":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"6Tmh2OHxBYh7gYbzuqp_O":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"zStITv_moJz148YCJRMha":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"0z6IiUDWokHaXzhj8yCLX":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"tLJkYf8WFK6H6KsAVn7VJ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"rEV_pufadtaRqExiEPoA1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"oa2mIkBpuRet1JtuFFXdN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"eM2QcZb5plVopSBYpXRns":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"Apbn3U-oA5nigTn08A-ge":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"LjYd6rj2ubd_Sn59n2XvP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"4Z48ODi7FTblUUVu0syQc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"klLT35RUEbsUNbsD4KD_h":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"48rfwmuJ0ziMwbvUsylMt":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"XUhPOjRXXA-rlrxYh_GN0":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"Ezomk7uJvsyNc4AIZltGZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"WcO84kG-oZobBFS-p1ykD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"3-9LXqc3tyKwabyCAGzTr":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"hnh0JeIx1qTo_EMenAdyF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"8Bd1W9t-IJpfywDcqkJw2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"ECdYFyW3sFU4iGF-qjipb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"BPZF3VzrCKBDq_i0SGfRz":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"7FxO0YTDXT1rXn6_i6V1g":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"i3XhQ__p_sS0knEo7LiXQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"zeWqpBb8AlsfmT4aH3jz8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"unGk5x4-2extZAswWMVLr":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"ws2VjnqkiEXt4ywjc9R-X":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"kKmn8KvE3Or4LmkTDH5lv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"pQokEoMh2PuUquooGp7Rf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"i2pyW5mxZgVZYfIqPVxZu":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"4ijyvpWD5A_5v0SgbDVux":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"M616Yt_k3zVdFBvnHVKCa":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"H33nvYMtVSyYOkn7UtMUl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"A-w924NxklEOWmUq4k2aY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"4Dj9W0RrX_K5xUU4YCw9i":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"N0u47bsp3vDls-3YiFNkd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"FYHKep5V7mHrwQ-Evr8Z1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"Zl9eNibjt73uOHFhymS_v":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"2p7AsKXdjPYkicsqAQmrD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"DAA5U6wKQhZBpqwYT2p48":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"Ep4ViGydo_diNVlso-xCB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"afQ16fex5B4agtXveQbG1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"i4QxHPHq0A8EL_xNN29-C":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"H-tminML4WRbSACtgJ9Mc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"6xQe4iz0qKNW20lXfm5f9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"UgroxMMFD8WiupfmkhIST":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"EIOjFBSvskaEe2srvjAz7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"zGfigPnXVn5j3Tym2SHTp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"lZaylSMkV88DSzf7YF_8R":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"WG1xOzODeIi0NXNyRovAU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"3JQoxIs39heqg4uO3RWtS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"qo8NXGQV5VQmARG-qzDbA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"7YKziKxztkBKRBL35wVj2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"i3YtYg5Jdm7ZZm4JimS-5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"YbtynM3WPg3chBby0E3u3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"jjwisuo7NYctUhyyU8h1S":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"bvLY5-R220DfYy2vvEKHK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"rY_W7xNER5W0-1KQZ6ovc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"GnqUCZZA9cuceMJIuXpWi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"dpCNWUM4MvXpO_kf4nQm3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"hIvj7UblvgP4Wj9EJ_Iqu":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"X0pNQhZvMqeUyH9JgHosJ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"SiLPCJNRO6oTBaKU5e-mU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"OKlGTUbBgKTgvH462D42F":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"N1eXIXD-RuiCUWEGDQNzy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"NBVLSbiegu8slZfs8sqc1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"PdY_YgaSNBfwYEV-C2G18":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"DXEkqrDxwJOe2GtQ4RkzT":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"7PT_l0V0rXrLpICiznldX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"zzM3O2I9Vf1IqkZ_bilxh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"GcgoC42rSH-_t-uwG__c_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"DOgWg6eHXt6vXbylt6qlc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"z1ZZn-HBZORATd1W6QfrF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"QEN87L0vvnIToyjLJ7c7H":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"dyXYB35PUinC3U7f1jRgA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"0XqAlC6ipXIynU5jzWY1u":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"M6lPh1_gUIApuL5Tz_Mhv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"PaTBKBvNsh2OtxifJibKQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"-qhjlpCDXC-c6qCUlysDy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"Wk8IyK49GPnCrmkPt2gxN":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"Jf6QAUGGmQFGoBCzuLuZX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"D6D7tmoLQcQRmn3HXZ_UA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"Digxof9qy7oINwpXPdSHx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"fDxwR7VO1o1zpBSpwik0G":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"nAqU4kUz_-RR64VjvLjXm":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"A89w_SjjascwGOtZq377x":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"BKPRUpcCzUyi4DxHUYOqf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"sPUkmkTdZ6b22J1x_I8QK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"14uSzE5nd2Od3QuTJrlW3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"4wxuq6AUTa_mcd4BgiGXX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"IZFSyKB6hiy0kWJKNi_hH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"rAw_UqdaeBpGWTGqKjqwG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"con2aoqsPXdwWmJ_6uC2c":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"xFwxiOqpKgGJJ5Qv4e1Hp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"ZvotqzxuPPbyP7lLqXmsr":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"wewrkyrQNOwaCUwbKnyYw":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"xHndHyUGKFUIoEVvFrTJr":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"07YtrPpUbr-ysPmedahK-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"CdKuPbhHxxC6RwREcPXsc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"E6YLk85gstwDtd-LnRB5K":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"zMZGu5Y-cxSyMFW6z6eCK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"DlvtKaG9GKrNWvhmXxLy1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"ijd7jA64iPxq7wKa_jpsl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"kJvotELWyLZR0yVUoY1vR":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"20ECeqH5g_TjMi9iiDU94":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"mFdQny9jyr_I03m81i2LI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"7l2ajBcstiYr9mgyljNBo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"oISOyWvKMChpgg2pJ09lY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"LkGd6Mvv5UuFnXxVQc_eG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"jnBCDt29BLiYbTVcGMesx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"61HNtCTvkq2AthK1eyjtT":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"QeLbHX17YPW-vDGBYU8IA":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"OMIfLT_v5bshZqXx8S45A":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"CF-4m-ilOJdKfTjOtGS_w":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"weyxu19c4Fk9Uow1mTIYL":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"dwfLUKSezYLQurXAweCIc":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"V5GEoMBQGHLHc8WjDMyuY":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"Fzg9qsvUedaG9VwQUbr6V":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"LdyFjG602gwzY4_2y7pUh":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"dlF_ZQ-k5Lb6L21_rc89e":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"Sv5cbVr25wPtjCUIIPQPT":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"9S7P7gU-VYZL3YseI_xQK":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"Zb8tWQ2j8KPwUmIl5CPOh":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"6dmEO0B_fXualXlpVZCLc":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"iazkl6YbTNXSig2AJsd0_":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"fAUAmHwTZRNdG4Qyh94ap":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"u_70h54NYv1LXUHP9jNU6":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"wVxq-UcV1Zjqqs67SO_hz":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"fuuqjG7Sz5jSOZYia1SuO":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"KxO0M1IsslG6aI6e2_qsA":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"7xwxP5YELxChC1NHorp5S":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"Zt0R5-Cwm_Zs6T6idtQFl":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"1qabs74FjK-b12EqbEy0K":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"SxrdF6W5qzTYeCs_68V68":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"Xz_gBt6x58ZocVcCicb8i":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"Cvesv041JG4bjLWGNMwdn":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"dBbIbi1HjTdXH0w4PJmkb":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"z04SBcetpB_J9IrCFNtPj":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"jRJ1sNOx89f0jwkRBYIBv":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"GSjR6e1IGT7jISJJVSGap":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"QH3wlxeXUsxrgh344Um5C":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"Gn9h44B32vvakcCxpyfFO":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"8r4WGarHP7QV_deo2pKCf":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"mhzByjbK8ZKCXXXCdRkiE":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"CH76kgXgbtzAPYMdYGy1U":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"QrPw3T0SuvSbMqR9nQeWF":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"UtUf4fjlLEcLz05IDKYPK":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"2etK31lnI3w3iaMRCOAgl":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"83cuIV3Ov-V5P3BjItHhj":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"hPGiTq1iZVrlx1b-6fBmp":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"hdbS9_Gk2u_lv1G_oc93J":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"xl710YMsH_hhdQpHO7JTE":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"JuZK1mtH14IFOGAVxh8Mg":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"H8i0l2mgJ4D-DNa3CKYGk":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"6Me0UL4sPphE9mvWh0ORg":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"JdWWK_JQkQ-AJtOUeZ7Qz":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"SmpksyzN_rHuj65wLjcOt":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"oi6qDvo1hiLVtz_aNMmKZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"IYI4R6L4Xx2HmT5xu_S0H":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"TEovha7F-GdsqA_4aNkfs":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"ChxhXkXIcdhBZOZyowBeY":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"pHw45OzEOp1Bip75g6vvE":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"F9wIJq8gvX_T3Z4dva8Zu":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"xRGtNuKhi1RKvEgUMat1Y":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"EDHgAE3Ds-WZRfR_aPsGn":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"YZm7Y6zc6rymZfp31MHme":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"aD-6Ea1t5hi7hoXuvST6H":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"oH1YSHF6pWZrc6g1aV5MZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"ECSBjQZz6WG9sPwWw1zZJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"Rv-5hw7PhirNlw0B_dToU":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"5ay8C3siXVzTkXVe-SfqE":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"x6lHZ9fW21b2A9yz7Newt":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"e4waYfuI7QqF0osx_VfcT":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"vOhu4pDWgjUTdlN00S5NQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"UamfI67kupYPqkm43BrV1":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"DZ5i4n_jujHK9WFzgZXiO":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"H0HL0KMJ44QQXHatXCaJa":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"Y0ThF-rkZ95xaN4Rr8odT":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"0DbQTSNOlcvECd83d8a6K":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"IhtBr0d35eCycF9Rrmrs5":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"LQuWR2D4tlz1ifdUSqj1t":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"sYUA4OBFbRj27p0BNaZiC":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"EKFVRy5J79pZm2lSfeG8c":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"_JHOQvJQafnh5JUSnSn5_":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"DCU4T-jF40If71MFTo5jK":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"xlSdaGAXpOrB-3QdHW5J4":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"15059yqj4SpeuwUOsQ4Xb":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"kxf9EYrpsgv9DMbi11mtQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"bmlxdS0TKv6ubpnd1cH4c":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"BeWPFhu5WiQcBXPJrX5lc":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"nh-TaC3A9XQpRoE1-gSRE":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"UgzI9o4irMmSnSOHlXZ7W":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"GbYJ47fm80XxtdocPthGy":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"2a7ireLKTq28qc0qR-oZw":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"22Q7srVA2dDhIre9nyQb3":{"uri":"/melonJS/docs/melonjs/Line.html"},"1dHxy5i6rdaUzoDWuhRDD":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"DlNukBN9ek5IV83_aTpEo":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"pGb7j1OUJsQai14Z1tbIv":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"_WXzj8cKMW5oB9VeZ3YIp":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"HjsXonvcpBRBJvSQqao-9":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"aYizoD_518LTGO6quJA2-":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"OQLDxj4T0Sxo4YNz1TsHk":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"1jPk4L5Pe6tvCYv3srG4P":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"6WUpCNXc8RhWtLIooJ_7s":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"LBynlAUnhYmDC_4WgkyDP":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"Eo37UkXtIi43O4wGyKDlG":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"7NN2TLu-3BatKGog27sBa":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"PEPNoYR4KZXV2nKJdZRll":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"hSBhSZdHSWh2oQ16cPc2Z":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"Pdev-q2B2uwIkGhMA-Yg8":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"M1dr5YYF_GF6_qQttmO3w":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"0XCHZze3iq3pd83p0thVP":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"5_KjKoX4sH0L50Ic2olQv":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"SptzjSBrQBqNNa_6d64aA":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"TiTs5NLVJ9NSGUwvk1VOt":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"oeALGFPpV0wdq14E-muUY":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"_rHaTdbLmLAl-gQyoNbeM":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"gXc4-WUobR5tDAVtaKKV0":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"TRRG_mXSGc5Pxr3tpa0vL":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"HAX1hJDe6NG3c7X6JiltH":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"HO94dSMHlQ9I5b7HIXMDL":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"2sbP87SzxBrlyI8PZK9xd":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"_B8oMA7bdzlFi0EZEnZ8x":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"TbsqO0XWELPRlZbnwv4hM":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"QCQnHGpUMd_lmB9LCLfN_":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"wAoAwwMeti97nc9dYuKR9":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"IUiikE1I1wlY1Fek3jSv_":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"NlsKhyDg656f1p9n_Byt6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"mbActmPueZkX_Z7oZ3H9f":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"7B2UHKUcVStWFyhA4EffX":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"hszR5XvlJQq9d5PnFO2qe":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"PVT0V1eg_BiKCPLme1ABe":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"ghau7--WH-dwQ_gZYaaTt":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"f-aYVyYbY9Kz-ZlN7t7JX":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"otloeE2y-Zf5nsCeyT7kP":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"ga98XrwG-wCyegJxOaXby":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"wdLLxbFC9IM3nDhqS7EXH":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"56fgjvAkU_HuJJRT4ZuhV":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"UEve7lFxxVsTIs06GIGXq":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"zJq4vx5KT-xe4b-3BbWgX":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"GVZSBJJCGgKuvsnSGdoiV":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"0DYesnGO0DX9xN7sdhOn5":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"ipGKHdhyQ8WeAZVX_mnXC":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"HWmbkclw7I6xtkL_VZwkR":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"-oMt6aLTvuGvYqXeicJ1X":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"deCzuTf7kDk4_yktgWcE3":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"_qPGmB2lOdDogtBgYDQSe":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"Z2ntqXyiwav9ZiqwAEtyd":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"6PbBaTic2d7fo6sN9gR3o":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"ZmVHsGPwjjVCxZEZwL9yG":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"t4WWP2hgnbJTnY86CjpXh":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"q2BoEXUzwqGvz0nSw_UBp":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"aTIBxxhegdAATW9V1KoVs":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"9egGHuYrQ-Su9KtnqSfrV":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"QxywHyj_tNqudfsff7kIW":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"-HXY_6R0TZLLqcIhKYB1H":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"wySQ7F5m1jrferylX_cWm":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"4kqaAlvQRiuYssISMso-B":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"-oa3RAxGMnzNsRsj-uTcc":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"gaN43IlU7WS6igjjnJiBI":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"j2WakiNkwc-Sc3bieYJeE":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"tKJ53WwzM3ZDgh1jyiB_b":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"DmcHzB0Vqfq3QFEjT5YZP":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"bz4NEC9cu9Vl3A_AA3AVJ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"l9scKMq85XBeW0YdIqqH5":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"j_Wr-e_SwQvpg-8lADNIz":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"UVtfiYzgeg_Kv4OgEdkqC":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"MVAvEq2MGThjpvvc8wrql":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"gygKkwpUr1Xux4v3lNtz8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"BvlYhOsKWV-MfA7odW7TP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"wmZqbXewevhV6dwR2DmWS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"EAxXMnp_TH4hkorpbJ8Y6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"suODqWcfbzIhZ8PXij0z5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"OkrrD9Knm9w8G09k9WodO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"rS1mMYI2kwp2hrtxa8GjX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"oi1ru3zVxeTGqFrfUk3FZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"OMxqCxXwATzOV0O_1okX9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"io5aB3Nloqcs4ONT894km":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"FMQ2DrdPqAJEOo4Fw9KFE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"uKYbBEcsNfHvv5QnKFxeA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"RCzY0h1g5FJrRdS138DDX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"L5n7XPmAg-O5ZrGGs5UhE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"uKgyCuoWFmVA9sd6RNRsA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"fE1o7RJW-Uye_QWQOLllw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"sO21MRDlqVdkWq7vQDYx6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"S6B60Ed2Q7Jc2pOsyiaQ-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"fLgmFh8_bPS84DqQ0zwPL":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"uHku2KuhoQtTsBXOn9-ge":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"PCwPxPWjQdJz0d3t8j8uH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"o5O7uf7i0NgQUeGr4psuy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"We-ktY3nMQAIXe310pv1b":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"63KiNnSWg5wjdxWDH06bX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"RvhlzEubKb_CpZtNafoqi":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"VbxglzY5y1ZT0xKZh2IB8":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"ykRrFI4GRsDUj7JmTOXOU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"iEGkPvMN1ss_kjeeXvGhf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"8Q0zMxHfi2nJgCRiFz0s4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"wBAa_m07dT-4JOelUIwAQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"EcCEoFJgtWp8L_CuJjWiV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"VXjNlvlOmeJzWwvhEPN1j":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"8QnfO77_ektSS-Deee1N1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"qzpkf8oQ6o3asLr15jsyW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"nBXyDKdoaG-3pLJI4U8pb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"feXCWXtyvkFUzY3S7QZOw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"26-2i9IAYr2vtO0qcQkQ9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"TjBuNL-s7k4rV58vp4IV0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"6C_RsvekyeAezD02qd3Vo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"KiiXz2HfKTjOHxvq9H1oc":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"fdPkzbIIwF46K4ZStKeF5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"CKQGFKvfyYEfY17AGy4c7":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"C-gweM-Aw32yI3rgMbfIf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"4EXte-gaTwToYOmvkWdMn":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"45KmR_f3EBj9EcwxoaXgA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"g-SV7ju8RN0MUXWV2mm2V":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"cfhPQXsAeYWwFM-rDjTv4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"bjqPurX74D-436HM6WhkP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"J-zBZj6zHtretmXAw3SIo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"7ngomUsQJ-IqBLUV2Rh2D":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"J3M5JtnKc35SCQqYqzTCl":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"Bu0WM6Mv3Uw_A4bjEbf9w":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"s3TRII9t60Shsv17JKFar":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"BQWoBPI8F9CpourSbYph7":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"9u-3ziWGdNXjWYn6AcUn-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"gCNqvWznABmFOZUHTy-QK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"sCrAR_iUAEtHHFfsRTK0A":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"EBsxpIV-kVaQjqOZSLXnD":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"v09_L_pmpoensSratE250":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"Q_his955yrgnwcBsuWPEK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"n-4tPJactmMgJ0Xj00qaT":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"UppijSTlULNb4W4T_Jm_Z":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"sBVui6QRJe6MVXh9LvjXk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"AYckPj6omhMjuTMJmJnUa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"4hxw6KP5bebTy8dv31wjB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"JQ6mHSTs4tLj2BtPgRDkU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"wsQt2XEqqtJ0KzcFKsmds":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"ggoaa9Z8hT7p9h9oczuXY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"mAZpSMsn-opEQeVNXNtnV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"4RhP6vABULmS4A5v9hREP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"CeI8QBRqIgAd-2qYYYIeh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"l65aO3WVExfrRgkrRDQsQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"vf8YF_99VgQPZpZZByEzQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"jmNLv0a3DfNa1kEeE70kX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"S08pSKyct8IBBHdhPlMYK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"40vsskN7Ni0M3ppi7FC2C":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"1r0YIlwC-WuhwNvWu18Kb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"NmRkv0BvSWkMdObTspbrZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"TI6_xUzvT-eViEK_DCTjj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"XzLwiciis-EHY6YS4O7nr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"ScAZZDF77TrD740fLXH_6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"Gd-FFwCOAjMVi_YOxCGn1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"Is3tUgPuGSNfpTi0OjS74":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"yeYcPmvvhsH-VEib0-Yoa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"Pj99YC_RSmM4OUAYPf8se":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"9U0999uVxwzSfNZIJOkJy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"cDNDNkD5VfMRJZsbCsSzA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"yvIh65sOc0I5SeOyhLvWH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"RMoOlW7wPhZCrEmXp1hTQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"v0ho_8SraFpHSOB7rXQfr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"TKEegxw8tUJIdK1syVYf5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"be4dMLqOaSOfZ4dZeXu1R":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"TgN30CS6b8c2MtliZSAAG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"-zhxFEn9593jQqYSC2bnM":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"tGTEM8JSsXcXB0uJQfl89":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"LZt2Fv0JEYlFN-ROSQAQN":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"24zv8UXZGa9BMGTzEX-qe":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"wEtOJq6cAUndTYh8HFNjr":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"jS5jPbmeG8QBc2abIM8fe":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"OziaTTwK8bqZFX7lRCfTn":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"c3U2vbKQMy_18e4mmNY7F":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"tiPzoDYJ4QjdMqhryCPdw":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"g1abmT3bmIrgaTHP1wtb1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"5J3dOjZIdYc2PnqnQ-Ean":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"b0Txn7L3EIHUO9fc7uk9I":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"FdyTQ3l8O8GCrP4SIOalO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"w2oxeB-Roms3XhYtFLewT":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"L_1qzJDTgKEl0Zew6TGoT":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"eE_U-K3ediqUsl4cXA5t_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"EEGMipnVBqDHcGd9Wqe4c":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"0l57xOuPhI9_zy9DBjCOI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"mtgSSW_lsPNtxhK7IslJH":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"4GToidm7YH392Zn-aK0hO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"T6j5YoGiW1aH8SVnhX1Ud":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"CN-sWLBjiA57Evuzc1ulj":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"0su-p-G9Mx09E2eeJhpw1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"gounUY8SjDDYT1ScDhKyI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"Xj0yzhuZrUZyFzgNwGFSj":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"JVJKxenin8rm3DJNKEZp9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"Dq7_hsqJB9W__x9QZ9Sf-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"xutdyBPcRY3Fq0gzkJqgm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"tYzy15b0ItKGpekqhaaBH":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"rHuyve6YVKSbU5pa6uyuM":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"01yXXrDyNMavWnmvnbhJF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"_ml0mKzRmmj4kBwU6i1g6":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"DKRuN9rSaXd_DRT3JS7YF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"Sn9ZDBRmjTIDrM2krBO1T":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"bypGk0i9K9OKWDLv4RUwR":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"bKhErTrWccSmsSGs3YcpD":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"O_qf9uvL7yvcahTCYLeRe":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"Wl_y1J5gIv2-azWCggtA_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"SPbXh6L_gyrgne4Xt23qq":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"_FswqDpPlfX5qM4Jsbg3s":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"8CCCi8uBc3lxPOSy1nVio":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"XqwAKaA-_PR94_g8K7cAM":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"EU4vexOzy0xh1Z-0RArYy":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"tVJDvFWUm0fuULN8WKm7Z":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"8K5X4ddXs5BaFGuLg7_JN":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"vtndFgVm82UGL93RugXU0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"Zu1VAJmAER3swQ9dqZuh1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"vEPIZdlnnU2VLdsF8tEAF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"0PuIJoefNIZtiPFA81PbK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"FlQhvYxuOPxb9Irv_rMFv":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"qoV2FhBvTaEqM_2OIE8ZF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"R7Q9TBWvX53CQHc1UmiSz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"uYcXy8L6CmlCv-an7o8O_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"ZETrEWBmSm42Q0WHWl-g2":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"A3fVlzGmwfhfP_zLe6_Pe":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"LVFVuBN349Hi0hCyTL_ck":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"61KVpQekN39ptWBrAHfya":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"nebLunHf1Ib3Un20KQCzE":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"mzQqEfoZeVnPlI_By5ml7":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"cmqmbQRZz_4SC1hIJ-iv-":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"dysrganuCGTFhEMmcKfmE":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"HyVyFKhkQBj_LXscBSTsk":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"aEI7oRF-gyKZ7wqgePbrx":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"yK_XHjUxdz5KQLo2bjNB3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"4tdd0MzVYnbMyu6sHzE7u":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"SRWoRSZKYlx-IJeo_HeKx":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"1BQo2ZyQyskEVDX0Av-3k":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"qYK1DhkkX6Cg-Xl_qBoKl":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"PS8fz9NPtrnyVanxCYT0N":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"-yAexSpE9LmQCm60iD3OU":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"x5Loqa6mCforWjo-wppCL":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"1mRZi5u--d6de4SiXNZ-1":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"wxEjln4n14TqENBTk1kTq":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"mm5AUDN5iAuZ_r2pao_no":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"3Ofjdjz5ceI-MwQqTNC6L":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"aQrImC22QH2bvYQvBq944":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"w-7kWyXBcmq4GA6ExvI_h":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"cJd0mXxlizuJigTCtx5bp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"vN4ArKIh3H5gUi5k3HYuW":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"hcKyHT3Q-tFT-laFGUgg2":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"a6TnnwXQxOzZEk6FZY_m4":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"-6ljHmZBBB9bL9YWvr6Zg":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"FSWrGYapOEqF2aDgKIqHA":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"4l-NxV_0qUbVi31cLY8FA":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"n_Lh6i1_9sDUKk5LK9wE1":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"jba0rn5BwwjW_8bvyWHuK":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"5bYTc8M7bEUwav33nWgb_":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"4oVDCWXYQ_uHIXQ7SEX2z":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"iwCJfs4Z7sSG-WDOWVYfm":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"hb2Dq-5SnEmjdH4lfj5dR":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"iYFeP9xM285zH_xYBh-Zw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"TOSavp9siHrFwDx1_QtRJ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"x9IUzW-BU14m5LtClS-rc":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"joTQyDYZxEUk7nUZEYKVj":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"vuuCkvTwdwaoz_XZOtSfG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"CYLAdApdgtaTvd2E56G5b":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"nZL6Pu8wNoQS6PbMIOALs":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"w_G6mztEi7HWb8m4OFQzq":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"Px6hlsHELzdRJktXI1R24":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"vwzP6ZK5kdUTUkS9I0_XU":{"uri":"/melonJS/docs/melonjs/Particle.html"},"fNFY_UneDQlazGfHQamZU":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"JQl8Y8OlDguqELSC5JTcd":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"HaZPGkNrm5WR3goKKPOrB":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"ctZRoWqOnsP54F2NdG9AJ":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"42BTQoYGThPfelRDbLTkV":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"ZA2nLaVzZOJyQ131fzYJL":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"cHOPHlr8WOsnPWEAdwMVH":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"Jphq-QoWOrE8s6VAdlZ-j":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"pYucLEL8cVXFatXFL-fZu":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"nOxZntTqwqseSQVXtKeV7":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"h9FJ_wFHFtrA_g-aPp9VF":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"xTTiEYQJUggb6SnQTiig7":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"z45gvSHcGOQIKoG9Qb4yt":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"ySlGXqrEab4K9TkdidUsh":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"s53dANmFQ4qRYbVzUY0uJ":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"LdGTlNJ7UAkuH8ZFiJQhn":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"t26ywA3PmW_W5Ja2_LJiC":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"h-LQ0tdMHuOte8QQWiyVn":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"Z-hUihUpglMHkMDOFy8Hd":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"ac5g9-Hp3tCuw691besJT":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"3vUve_u0AJNXWlLK6fs8h":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"j2mJDFOWsfAZkmHKiHRAs":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"nKlV_-BFosta5O-bul15M":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"GIWHW1vB01k91EPiAwLUh":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"N4A7jiOuDEI-wXpUJo8WF":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"ghLNFrw845KUnY_5k6vss":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"KBjKshY01EDg__WKbfvXd":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"nfP060y4QI2NHo6tr881D":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"PeoVqq2wq-RdCaTCx1EWs":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"tl_nQg88nH0OwVU4fRim3":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"vLeolalPX9Fe8LneFDnPW":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"kR8bW-ij0CmdpdlJFxfSO":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"61c8Kmzmsv53_c1RWU-mG":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"LZ6jDGqC02v-8WatWGk_s":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"2y5yGd08D5orO7nDvcQRt":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"xuOiag88sn0tJeadPRwdi":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"E5AxN7JfRy9e2s-e2aEeb":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"tAX6Z2_dxYOpYh42DqAfC":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"BhjTZo5OmY6dBkn3NJv5m":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"R9heVXIzuVCj9kP7reftI":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"sPX6kfHiir6jMz8QivLFM":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"2-IAPHRgY_OsYSptcKCrS":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"s7M2odHiuGMJISeX9peuC":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"KoDTObN5U_vmeDjOwBgK7":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"V4b3JeQNim_yFY9ufYWWU":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"J1zZx1RWEGpiG3GDi54jv":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"JZvF0TYZHRZ740UGhusnW":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"9CYNueuSd0f5MaA7Mq7Ty":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"aMck3eozpQ8TjzU-QzrEx":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"dtLJVlm-B-tLIY_Fjpcem":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"KAy2XjNC53WCKDU4PJDBx":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"wSgQvOCfVgNA9VjAOHNGh":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"cn_AXQ9y9jkv7SlpOTohV":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"99N6_sF74Qnh3lKK8EV3j":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"MoFJO9jsRXwB-43PAqa8R":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"21ludieT9frjuaFHPTuBA":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"G6-2FGdXz8B82DiI_OBM1":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"_8v8cGi8DgW7RnwyuyIgf":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"VBwqlbR8TJ0f3tsGlwkAX":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"YhU3HVYTaB7MuXFGJpk8T":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"E6jYqzkq4mn_47Z4M_MCo":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"bFqgUiVFNdS5cRzcXYUH7":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"aMloAbbv7gWwcdEYsij3G":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"--0-UW0JofrMSGzERtOHF":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"LV8xM7qaSvULZgOnuv7X_":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"IQm3tU3P90cnjr5KoXL0H":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"pOpkjD-_p0CqDdYHOjUeU":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"T81piV5hkBlySElb-sDE5":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"ugB6i0ggTD9r0xdWovEoP":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"XZ4IyXj-F3wWpB1IGj6bA":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"d_ONL_zY4M_N7AunVGET2":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"v3Txsos0pvLGKu17YRJRv":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"b0aG7tctGRFLZ5pfz605N":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"83eN5ovlBxD2ZJct0TkKx":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"rRQ5t9eBUyF_BdfBAph2v":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"mxVY4W3RYJMqXTVrxUzDz":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"bcCr3ohtXtm2KEcsxlnsg":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"kja91lQBE6dx6hlPaZvDi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"BuFpNQs22jwVpAma8-wdy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"3Q0nNu_6cveyiN9s-LkLh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"7zeTWm9hlYCR7MI4sqs4a":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"tH3_EaE2S5th9MS2Xv_82":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"rVZJjqsbJKJbPG8IEPixF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"grhxCV1x5UdCLWA77yzEk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"gS2FlqdgD8AXZSUf2s7Nq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"u2SlggwJdvaIsWjPRb3y2":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"_nKMBpufJuHbcNYu_quZL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"pfT_VJH5ApH2RaVWMofeC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"z8jOCGPxJOCQ7lYjxbC59":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"10Od-uWxiXrOq-mTTDSNI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"M6JVBESUtjCkWnijMAxWC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"Cu8305pz7dQ7dbUle7TuX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"pXsVvKDqIECAL5-_eQpS7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"jrRIRHu2Vto0uN-ukBda5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"zeuvRdIVwurxjWFihDd4n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"FvH0UbGeOxwds9RtlBaRY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"XaL0W8LcssCSrT6VgOwC6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"Q1aDVgvATNlH5kgsvOBjN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"BZlOLI_OQDJ72hVw1MvRq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"qtMAW3rboSWOjXWpAKFtV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"gbE9hqmW1px8Tw3dS4ZQc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"6g9FoHodLUSSTRpK7jF4v":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"JJhaLuGvv6-oRz2VQaO1h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"BaootpQ024yXtfQLARV9s":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"hgjx0A62tWHedQMWmnovS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"1KTT1AtllbiRCNG2mBgKu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"IkWPf1RfcaM-u_Xnot4K3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"ME7r7wGPbBjVm7H0XUVII":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"BUkhKObI2lHwb23xJ0r9J":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"4mKExlApOCEHMMQ8oBHv5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"VYrOUwhzQpZ3zNheSVZQG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"blNZwes4Y92Wr21Q19ddd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"C9p7aMP1DMs4QGCtD1tq8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"yCLknYZf1H6B6klfU0we4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"pY-lhzWV5G1DCl68Osuz4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"eI7dOLe6_5eJ4nil9kDZp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"Rtyait4uF-xAqnJh2o9mB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"-gS2fGlXrdQ-RulAk7kaQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"sxJheGXutmq2kDlLzbBYp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"BkqDU4fH750LXYLHB2I5P":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"j_PMHTNlkoqvDisXrl8aB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"bITow5mbsPI7ZqBVNbjU-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"jUobayUNQGhkM3krqOHCk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"TuKXBbnZK8t2GLIqhIw64":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"4fG7VYIgWHofgPL35DbfI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"WX1ARzqH7Yc6nIhzHn-8V":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"eZFW0N4kKk6wop2_mYOFU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"QFdjhPJ9N6ts-PGLEXa_C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"uVipIuQUm0mZKntbtBrP6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"gG_tSM4lHlNPxFSp2fiLO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"xL28O-f77FfPN0tmrdQxm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"ezqtOmy1KOkIpIQ-ezeMC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"Sik2G-BDLWLawDFG9iZNx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"XOqpH9OdC1mmc_718xk39":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"S88GYWghpn_D4jmLMZ8BV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"FrVyd7cy7vaBrNzc4aiC3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"Qf6g77Fz0IWVxsss74ebj":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"c1PxtJ1mVFrI4nfYXU3c4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"6NWjuxM07kwLrGjAphb9-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"KbUVAZX1_ugSjbyIsaBN1":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"qhvtNP5zt-YB_nHJcjpGn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"jwuRzePeKRNNcju6cHyr9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"KJ1t1KqQyl9ky80sFP77A":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"rgx1D3J5syzQ4xOWqoFq0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"k1UUIoZ_eKefEnYFxgMP4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"gwOXOpgLVcrthkNk_Rwdu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"d_XokkSCqMLbS1w-Zpfz1":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"KR_a9HjVLzWJKU-cbPoVX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"uAV1VLhSYTJKRv1DXfvu1":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"STxRkA2KGHesfmae65n1x":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"dwtWxpa0m1zk8f4yp_3K4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"aFl2pUq1aFhAgsTf_IpyH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"KTLgCnQ00Prfj-mZwWrjp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"Sf4ysrkRCXWn-L3Z-RSMM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"bHREflMcFxBHO-vjf9Qhl":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"TJVJhkMyZcn1iiPlHcWq0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"ssS-1SvU_Vwci061nWw7l":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"hdAXzJNv584CiVSMd9J9X":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"f28UBVlZYNZp3wb-nORdR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"hNBER73rSRfh8lCXZK0F7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"6W0G7VWsB6sqFAR12mMgG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"CW-C0g9dU9_5dm8ZccRKJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"5gbj6swyHsXGooDtzqlwm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"U0_MtT9gNmcB5KsPYxRZF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"-Y5ga6X09bDfLeqZx-krD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"lSz9B69sOgsokXgJYIUif":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"e1KJikICLijHOkolLJUhd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"_tC7-qkByCtQifJ5l4c40":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"mzufyu4I2_o-S6af9Ee9S":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"ne5HndhnNpTJZZD8bFfeU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"6VvoJ-pAghZ-XYTXSXdzZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"QPJESlSFjuNQsro21EWjZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"d9wvwjfNKo5Kvn91Sjx4Z":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"qSmYmq1tTxzMv-dBBbGzA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"U85LKjM8TAF-4HniohZUa":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"tgsqnaPJXJ-jqapG3j4Kb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"YhtCVLqY0WYUHMoq3yrjo":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"pyZ1WYyu_vXF-bY9KExQf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"XGnwlMSUs648FDYGPt4AX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"o14hjcEkDQpmJzHRTwwAk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"RWN7c9g7zQ5bzN124dHto":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"jpMQ0hFs1WO37C17w-Gy5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"Sq5D-8ZGbcz3Cxo1mCaR7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"MeAMkQ6shnzbcBHZmuFCE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"3mef1m0fkwlas32zDakys":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"PmVcr6OdeqMa6Wp9DeAOU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"ADYrEgFnYvmeka3v0-gSV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"F2iMPaZLyqrl0N100EkD2":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"CjE9wVI1zMdGMlEgLqziL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"vDdJpDP7-9OLrU39T_j3d":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"zZGeOXgFp4RpH35MSmluk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"3LctCYNM-dMtMu_DYUDsI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"pICghH6Ds6LfKnCM7UW6l":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"t_lJChg0Fgg-0kao-SxO0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"FtUbStq77egUSrWENrPBd":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"RrIEX8tLw70fwt0RRXJTL":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"vjOtaxpJBcxmhxryUzY1b":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"F3dAzgPxgCixDa4JbPefN":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"d6ZbGqX3UzzIR0md3Em5d":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"zvz7fI96_qVJH_1I_lXt4":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"KJA1GD2IfO6NU8L9sBv2V":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"lirkl3S4uk3PHwct8lJ4G":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"GrfVcmtWilw-xKABTnXbV":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"BvshHUFXuCwXH6pR4zXfh":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"9dfMRgwS3_zFtBp_YLmJM":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"Lk8PY0bDBPCjl7c0rl9Iv":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"xqYpEY9tWt4pwPCI0cwIf":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"mLrNFqSwtc6hR-VBulokN":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"wN0DqGeLhV_1sbMbNoaUZ":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"khbajUipYp4JFMBqaY-Vx":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"fBtP38uYkkvVmEXBeREaZ":{"uri":"/melonJS/docs/melonjs/Point.html"},"SoAaYr3S14FQzrI5brXYj":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"WPvqSDQVwzhRVH0gwC0vW":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"EpgEx22tB_VZwo1BBzSNY":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"Q2toS_iz1ztEOKkuo0hh9":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"rTwVdyb82SlSUguvAZXcI":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"qwyME6sw6r1haz6gWtnsz":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"SEOXo5LIeD2m7jSdB2mCh":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"bqhSfTqRVsbFP5zCZaOb6":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"UB0-znsCNf3gIjo9yOMDv":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"HTBwv3uF9ZGKcT5fv_SqV":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"LTeS9AahJHnjdRS7PcgdV":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"JvmUL4RdLREuBJBISDycI":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"lmQYIFq-PxUz1xrMIKIBf":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"SZ8FNPjGLK687VoCzzizX":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"ZhDq2Vh9xfVPxS42CzoPc":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"Fv_xq3l91Bx2chBeOJzeb":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"Yyy2ZA78ZmoBwc4bW-BBg":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"jv4vs5vBhuDuP-J1B9ySX":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"Ah-PmUdNW5d3auM1PiJi6":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"Mc7zIyhIobMA1QPwXVAd0":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"azjv_BVxaGr6fGiQPhq2K":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"n4z_CovmJ7QbTfDkiWMq2":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"yBmtN2a0X_0tBt5Wj4kEX":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"pcP5I4DTSdq6un0oi4RdU":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"GrJ7xf_i62kumQy5FUhYS":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"h56lC3wO44RZ8k-dMp6Sh":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"ALCUt0CbJ9MegzezqZbC-":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"xbtsiGjtI9qAV0TXU8QvV":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"T0YGBXo3oxa1ydP12DQN5":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"EifK6M9Wl6mexeSoFYcAN":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"GB8uS_JFCaB5Kbc1Qv4yl":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"82JXpiNyDcSuSxcimm0NX":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"V9X0WznGMTkQn4s3qwrPt":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"asEUWOtvQPijV3JMNVkEM":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"zTnaZacBDV2yANwtVfaI4":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"VIDWr0yPxbrxtz-u1OPmo":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"TPwjEIrgTfLgY2E5l_RJD":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"ono3A72TZetVadk2QKGR1":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"3lOsUMAa3c6nXwXkT6wzY":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"enXy_x9A7n0Eh2Mtkx3Np":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"B1lDUebQlh866pQebhEKM":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"C5QcdxCKoza_ZWYY4c3mE":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"2UX1R2mak0Mf1m_DoE4QE":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"4EPJojWhcRkr43pmsYPl9":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"qGZi_2kxbvGVYUbvg114o":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"AXxdUoU9AsMJZlvSos9zh":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"fv97IqJUzTJfrtFUNApUq":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"S59BVGLo5qRJURrxDYfDf":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"Q8LF7Qho79g4a7LrrCPK9":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"6DGckNMWQuPG3NqzXUp5J":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"Auw3OzeCiUuybCshDQAMV":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"zHSNMGBFw4vB3tBA8tyK0":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"XLkSLX8QXviv9Z_t_d8F5":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"B0ubbSxfAw-zVrPHiBe3t":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"XbDwr5Y04OaO-T-NguooC":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"ED-hCbEZIclZgE8CwLidU":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"aQz80M-OKRksH_TdOjBXr":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"hfZhvMQnyzbMXzvfVtCUf":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"SVo3REz7b7R49TfWFs5CA":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"669qQVURHf01HbK9eamuy":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"V7DRvMLwlDo7tJPcXcHXg":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"9plpTdwYtcClVVNnLBxmg":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"6ZdAXvxhW_SZRMg6Xh8BH":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"IaA2cm0noixju9RKpmBVj":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"CzQaakcO8-_Il3jIt6Gvb":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"oELD4i4c8qMnHq2mdj-3l":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"KdYO-L86zuq4WKI4YW6yv":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"zIiWZU2AmUMW6IFfRJiRf":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"y98BtSQIk9AWQ5k1LVG7o":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"7slQEwySB2lXfiUJPekL_":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"ITizVJOsCnoo1-O8etcTa":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"SQRNvkTEYWXoFWtgLJVpW":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"k7h11rN5mdYiAwMKUEzrR":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"2uB55GXEzXkQBcBK69ouS":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"FmrIymNq_xpONGFj8NHqF":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"imB0_r-oLTG8UvjIZeZCN":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"JXmPu8m61adTXwSqgDBqj":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"hLVAEB1ivziQfK8VAFxTd":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"0dEAJWPzUqWJkf9u8hAvh":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"5LrDDsy4FBJNhW-0h0DJe":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"wNHaPz7GUzjv9QpyEQgJ7":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"22-mXYEyhRNtB_5_uiFcm":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"oDgFjjyEQEREu_6r7kc1R":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"wd0zP59Gxiwrcu-QrJmEI":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"yAipSwn1E4kotOh5-nN3X":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"ONVavdvQTajWYeY3ZNkpw":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"QsBPUamBhY3qvr_H7mYLF":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"UPGQi8iVvJOeYNXXuWRlb":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"DoM3-FUbT4GIRq_wYU7-E":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"KTxtETIEn4GNWZpQV3Jft":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"THo1H_4ptb2llptcFZL8V":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"4IYFZvEFvtBapraR-OF6_":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"ybbE6sPlBfpQWL5pbBLoe":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"Hr6CCOd6afqRYIsGQUBLO":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"rKElwLAF4jJO-rya8zrDL":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"-cD6CmUC2ZEVk23bC2oTl":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"R54EXYVt6LqTHP82uh1hl":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"JO4-vdOvxfdM-lC4NOtka":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"IxV53RV5GtQgQi4DqPdpq":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"AqYHxxlmJS3IBC3SFrves":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"isbTQtg5Mn7BCTBBPIhOK":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"ho8k_Fpp-_sgesLWIGAUI":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"DG1FZPdqBdq1SeqdSWrEc":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"qCppT4EvQ6dF8774JQXUR":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"VYVHfHfujd3rVDb34QiQB":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"PiD9_5wTLKHNi2A1C_Hu-":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"bXKXzYobIiGCFN9MoFHm8":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"Hs6emJIBzKPzHy5O9rC7Q":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"n7MqVswTve1vDgDKrAtK9":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"sbTNQ8L0h_I0ZcaRQUHyF":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"df92Ck_eD2XUayOFRp6R9":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"_HIXxBB0jEQVIc3ZbFlEU":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"-XWtVEhpVs5JfRPTmtLwB":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"qzCV2nKWxA78aHCFWU8zz":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"KXyHOcg5xDRoD7xwraNFo":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"YKo9ABI7yLJPabL1BXqC3":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"vp7sntBMHdF0JZkLufAwI":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"E2mI-C92K4psZxIzJZnJ6":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"e2ZP4L-EV8S4qKHvd5JYJ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"nUE4N0JmuyotozmGIW-CX":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"9mIZ1I-rqZu6aXjTKR2SV":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"5ZIqZms432kKSI7t2HcJN":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"NrYsUI6w-1p0eW3SqIe33":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"2DyDb_B529jLGj3lkZKta":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"8jYm7appkAocDkh7eHuZ-":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"YyieG7a44uw_CRgnXw_OR":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"Isz0mzlk_8X-LKPoewKQo":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"-0DzF8ixClIBqAWIJb7RO":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"EcOjIUhdYW1-VYUKee0Yh":{"uri":"/melonJS/docs/melonjs/Rect.html"},"Zbcu7e5zh882IdQhZkJO5":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"TogObzvA0g-kC1JnFSLrJ":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"an2IiAScBwFPdDEvZs4i9":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"WBeQKayBfqQDzaN6TAMfB":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"Xc2SylxA0CztWSCZifVN-":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"WEMO8yyCC1MD_qtKuzrFk":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"7juv7GyQ1rkokY497hd_y":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"XGWPVtQVTgQQvRgQBTDDs":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"pVZH56QR5jUp_PvKctFd8":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"fUQFhrtCiblT25Ii7K2Yd":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"SMK2TYOhmB4EeSTohGXKS":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"UNPReSJNgg76OEpA0WBNx":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"Gdc6VmFcCs-DjzJUCrqyK":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"v9BjyvlLGNwWx_yRjQPpT":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"gmMdIjXpViNnvS6wAh6kK":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"2kFhZqV0gTR1cyawCy3LY":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"uSjoIuM56Q-ydMHChmjtk":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"ePLYC8p82HJRFkA6KjTOz":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"icWFNIFl6IAXH4AFlsDul":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"3O8h9RFpWJuHl6YL3_hVp":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"BhVN-z8TUhGy89sk3M8gx":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"OH-F0cyOdGTnTuwznSTQS":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"ij9sVPxGHJUmirxWckXLL":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"kEPQeN1uUZdWyncue5wOA":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"0x2dIzf75tNaTg9x4gv5J":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"RBUNDofFrBBfVVkVjLVYA":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"tN7z7bICgHX85zxk7klhO":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"ZKUkmubIUDuy-ofLw839L":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"eSBYuWYf2e_DVAm75hnjZ":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"3imlh8MOFsjDu0QqpBgS7":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"3QbXER1bRfDD-Mm3rKUFB":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"48W6L8wAbKlWVuOYaKp4d":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"eQD65NMXqntqoey5EM4Nm":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"mnTu3OgOxV1dR2RGQXA5p":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"eQkPux9X28g_cg7zcPh7n":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"9swF5hHeP_AIaqgZpE8-z":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"nzaOtxCWjQRt8NXFl00UK":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"UpWfAvAec_SkXE1R1yAKX":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"S_pSVXr3nOGxLQRaDRLyQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"yQ8FZYCubQVY6DwYKueVR":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"nEn7Cg0b2ps2gC4xgWM4Z":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"yCiq0jpcXoK-SiC6MOgfo":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"OEirB4UBGAtEjeVDO0H6C":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"LBMjJ-aux_Lr3Ezgbuq7a":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"6i4uToVb2aTj5VG9-HVhg":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"SVWNGlqPbNpX15OEzXg8g":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"VGrFbqReLr_Csl_F4DIel":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"rHjiPPTNjbA37w_OW6a0z":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"UCJC_6Fxn6XN9d7wDaMsl":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"1mEee2NT8CaZWi6GPiOYY":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"kuMUYIbkhzW9J5_j0VtJz":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"skCjnYrPIIcWqMydNiVxL":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"hYuAwZuEOZ_AdfVAQ4dEg":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"kvAgWaDuOIDPBQLELY2TA":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"MPKU97Ix_2RWj02yEWUKI":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"rgHaOltUlTHFFbB2RvGNT":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"cmgBqMkucXw7z3XIK4XAO":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"pYu-DR4tCVZ4Fpw5X_X3s":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"P-lj4hKnaqP5YZr51ye-u":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"5FMCf6mvqsuEjYZDgyB6C":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"M1-RqEgBvhFUlnFfQG48x":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"ygCaXl4iVG8In3837Facv":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"1-vY7oU0_4yuvor_YPwMq":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"Bi0K51heq0xBKJWxx2k0Z":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"5T9601hGG4jRCmINgOpu0":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"_9Hho7FXgp2-nsD0WC84K":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"A84HwOMJGCFQrvOyc3kDB":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"EZmKjLQps0O4avlDHxz9c":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"cNEaL70bmFQj9o6lh_lno":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"ep-TiuoqQH-dLReQs1I0p":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"oRsDigTKkcdE6q19rtwvh":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"bV4ZZdh8MztRgx5N6CTwp":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"T-q75uflHtPKjWp1Re3KC":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"oDADdzr-Pvvf8-z3AMtcI":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"RjiJLqJCTUZ8bq39311m9":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"kZ1qYb4a2NmvLK99kbKqT":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"TBk8yIPO_Lxp4_ghD2dmA":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"yySNUsDJxterZ9G37b5R4":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"TvYFYr3WFdGBliSW3XXMT":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"WVQpKroOue0kVAhj621cA":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"M_IedLxAbNsyvGDFzCZfQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"HM7UNR-M6LZsNhqg8k6It":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"SQah1HYeGIxiXIu3RTYtO":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"vQiYULSwDYM6ATn9ip1P1":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"NwzWj_GNsMHvSdXoUCeaT":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"6dzpfud9GYZkxvRUFkv4Y":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"6aEzjEZxAfF3Mw9gYm4at":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"d9GjhidB6P17xF8VLyDG_":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"WChrmOgHIzFRHxeCz2uoq":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"3_UaCGpl90lj4jJo-II17":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"6v5PRYWwBzTzYCixR8Hfb":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"hWaWN2COE4OucBTUom6ZO":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"mbHs7jAIYREO_ZAr41JFy":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"4ftheOccv6YZpJ1JdOWbN":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"9xW2UMaWdYHcm8i7xvD9S":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"3Vb_Dpwwz51N00fJE4bie":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"S-afs09nAcA3ciz6zjIYj":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"NyYKa3cYYyUdEzCaWXRmN":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"Tohx5PsqEbSYurdKWf_6I":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"hAEOk4leMy6cX0yP6vGXW":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"trJ1SA7xG-CxIk-h09x7w":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"YAHZ-0XZhGcCqdzUJm5Tf":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"TZLPhlxI1RrP5imLGWuhT":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"iaSNj3-sxI3spotwPggUN":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"iNimitfAIH6ErcMKN35VO":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"CwIwrx610Q3kadMGH3-Mt":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"eW4lkYJ07GGU_Jai8_7wi":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"8J6XeJSpVAL-DWuWX8Lfj":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"F3JBjNetbk0oS6XQfNnbr":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"j5UNZQ6S4RW95aeWlYtGa":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"aBxzrmtQmNPb9gs14I2ge":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"lftEgO8mGe_GZfQ7q5w2I":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"zm8MqhOYIHmOTRnjHnJG1":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"HP9zDSnXNFqyshSRf87nD":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"GCwh7wIjVbhIlWAQDKmHi":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"qqSsRMvG3yd-6GLcEr_IK":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"xoyUEwpHIPQuSwFHXGiXy":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html"},"kq1lxNyz1cNRJg4x-aGIu":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html#constructor"},"o8TcaKS9OPm1GksChKalj":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"yU3NHPVzspWOpTwAj7mi6":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"cAL8C1vh6LyPDutn5uTmE":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"6HOtxGXtcnxkDH5ooL9x5":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"NhQOlWt25TeaQJ28wE2Qr":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"8thTATF0792CyAD_4UZvc":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"ba4ZDBVtpkkogcv-i8HJC":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"aWCFZpUbAuKTTzovH7YLN":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"khY1ms7MhdWSjD8G8ymcZ":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"5uQtz41kVeJKAURj_QOWl":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"GdidEsm7RbE2yrl11_Now":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"db6o6anJ4qBSRpvClKK4y":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"WEyvMyPhjc3AHtyIM3taq":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"gbJAnvyFRa4zbSQWU73v8":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"Gu_2Ee4lczGQKJC7Tr6pU":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"x53RW3TVrVcZ3XJLHY2nk":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"7nkqrt4xcCtDUgxVlNN3N":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"2oByPQKMIJVMIqItz4frC":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"qkivL6ZwJTTPu3AFudbUU":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"BWdIZAyMIB_si6fXMiSw3":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"-ykvHmOUoOP2U0-fF4T-0":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"HXaiAtJyjpbFwPMX3uugQ":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"b-fN7WUA4UMb79jrAGiKJ":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"d1XuBQ7M3768tsJne1b7u":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext2d"},"Rwmz5oYh1XYXymb2QTFUM":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"t-XPCfvJPpFuAcZgRE0E9":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"AKUdHDPEIvR20G7iE31Cc":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"eraJNWwp1vhKjk3LEhIN5":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"g3VJnGJRcEUihrjRHUnJb":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"QA2xB9vyH5bme13JUE8nk":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"YDvE1VDBOcKkuoU6mxS4L":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"UPMf39E99VHi4yKVcFB5n":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"9-aENT6nUpsm5cz7dgum8":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"Zh7kBVGIW1IuR-PjEb4fH":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"2WuwpBnEDmsv5K8eT0szf":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"EpTelWoNnL9R6KWWIaEj6":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"XBLGv9TglHSkSRVQjrama":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"dV_8ngSmFgXxrQmnP7xau":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"J_K2p6vNuHmc0kg-Nd-h3":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"ZS8kyp8UmBqUIGMj5IVf8":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"NDbka82VRTIopyqlvOlUQ":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"2ND6BsjC1eQM5ujDzOlp9":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"R5bzd2VaIg4RfHoSyhhz6":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"eWVBFRTlCoW2Ay0zDBCFe":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"gSPGkuNWqUUO75Wg43Smg":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"EKAaaihH2EZ-QeMfAscoF":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"3pZzCy5miYQkDwq7EYibu":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"pxsL_2h7bb7P3ZfXBbIxZ":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"6CiTJarK_KQqDdqy5oxaa":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"2A9q6SGttUbpUelfma-Gm":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"_3w8Yy1waKXQoBY1u7hCV":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"7odz-jvnCCOmuVXQqkUJl":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"kZKeUhzf38lJrfLsLakRA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"uO19oRDcJJNVBzLRLVi2H":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"jqjuGfqCvpdx6lwZ0Q7mA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"_gKHElnBspjeTT73KRXe8":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"P-KcD6IoWRpO17GtH_ktk":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"ibw74fFlXfRjEpuHc1L24":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"_pPwWu784O4vzVcyohcSN":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"oG4-eZ_kU84W9SitHjfMG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"cfYu--Y7brH7UUcOqR5JE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"vI1CLagc9nsHt4_aPkwCN":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"JZTF3lPzmv5FpZ2RGkmSH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"rk9wi4l6z5einOalGCjWE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"5aF-kXuzgD8BiQmSTfUmV":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"ji5mjxbSUoXRV77JRWw-2":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"bKqrwZKYiGO3l-kSkB4Ib":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"aJ0jGrviHhRf5pLZvk0mw":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"BHNbiFiC9csB6d3Jxv_6e":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"BI7kY7lM5hR6tRNGJT1J3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"VtskGl-8usX_bC7C2OQAy":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"_tIS14ldT-msPmwnWolDt":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"Uker7tBIS8npMh8PVvRcu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"Tre9tpQdMOlRZpD0g_K9x":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"UqWTWgrZhMbUVHsf0A2lK":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"dC6frD61pT5msTM53O0Jv":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"y_zjyqVcAwkKLfGm4KOGc":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"KQ-_uGN1-9WtMvXBzxG5G":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"V74Tb-zwluveinDcKwcAE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"dE4OiSd-JfGNUJz5z7dFu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"Tg04yx8FFihvIxWsCwQi1":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"Q9u8Uxh3YFtv2k2ejupor":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"VOsON9yc1lkiWezKHPCW7":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"hsvKULGw-w5R0Xp-55uPk":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"P1zY6utB6x6ctnk0stwBO":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"2lzekCtW-LQshiO5h5qTm":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"KGY8j0kUmQOUqOgR7Mg5M":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"JfpcBrRevm1PZ06R6cBW6":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"GwytBh5s6423tRdAsoQFz":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"U9bhQO-n4Wog-5D1YS4Fm":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"6n5lcT8WjwDHqRLHbXL5c":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"YhP5fkoLBxCtyeC69zI0U":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"2FfUI8rcC2jgogh_jJOyh":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"80dE8kXYyeHeew2Hd_K9V":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"nd52Fk2z1R-Y6EKFDwV5S":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"j0LDEkOY9eDE0lqYjc13x":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"3OnYFx5tB0RGk65UwD0_r":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"cxnu9I72tJQeggf2DrmLR":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"mVrRPLO3H5KU_jzApU3BC":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"Lx_gyD4ES3iUv5azHSJja":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"sQ4RV44gssjr_d1SSsXJ7":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"sW5BdeukauAW3nAcl0dcb":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"4j0e-Bb2iIL8M8-qPxVMe":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"h6_mjSyGy1ELrK-TgHdAG":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"9I0byd2fxagyKNeuLTmih":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"OQLkH6sLD8ktDBxaS-jBF":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"0bvEOipCwDNB-hDiCXzRI":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"hxtOEh3r0TQ9MXF-LBQdd":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"CexJIeY805d1Q_kwWKFIj":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"XcIZO5SBE_KnyZNQ13L5X":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"aVlGQRqPGeN4u2rTav7Qp":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"nbakFWEfXQBKZiaOE1duu":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"bT817NCRG08wNOilSbo7b":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"-XWWX4TT7UXEpFsyDWDdR":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"W5GnCmWUcENAR-6SqOmFj":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"Fu_dvo2RbfUoXli3z3Lp6":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"TK97oo0u9UshOvaV33pHN":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"56-6JaTZ71dhUtM2TkBDz":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"PAdyYL1ZY_455aP6M3iEQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"eOV-xrL53W3sXsIVEHafo":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"jA8ME9rIxpPymJrm1yVXa":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"fLlexfP7f0hXOlJj05jc0":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"GuLzsutP5IXmwaA2o9Xv8":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"-HHkLK1oC_S6cmFHHCG16":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"YMBMlf_A4OsJLHgpvvu80":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"UBtjNIYqfbc03_44xQWLL":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"9lKD2n6H3PYzxiHZgMUXP":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"fpnxxLWPR2WHDmbEp0HZj":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"LBfyR3gwm-IRSFvszvITC":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"28Oi6W97JbOmSTbZX7A5k":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"hdFpXODUnObIueb1Qr-4Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"H7luJFM0WUBYhZCkZoUkE":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"uscQ7fBOcQfmJgEh6IfJR":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"4Gbgp_1arPLkjmi1FfksP":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"CMm8tRY4Yy9FjBH4JpnOS":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"pqmEUHPwadq5BDamjxHWT":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"jTXTt_DgJ9Be1VPDQpFjR":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"_Q5dsRh71dA8u2Z4xGdu_":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"x-Uc0gRsOZtD0mCUPb8PS":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"fGfxC19_EkZDRqlYFkxP_":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"4e0_QUd_9OfyEiELLT5CZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"sIvqotQoFdOtZHXW4x_wV":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"3CGztgiyO8rMTW6CiAEHn":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"eghSkcNPA13Qr1l15Nkzd":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"wlgkZ_hL2eWBjrfLDGRbN":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"RNbxA0mNYJNECiMt5aGtH":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"rezy5zLt-cvqMbzBEXorg":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"A6r_KpnIBB7kp1rqDRav3":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"_hv6Iddy0oZjDcUoITx7Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"R6C5ot1rwJdY40KMRUSBt":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"UX_L5G-oGzHxTQiNObXge":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"XqErwPW6XpQyfQzuJ3TNo":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"lwMmvbdCUt7X54sUJrmHO":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"VELJ1hrfs_RCCrwEFWYiF":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"EEgDkzVC5K8QNsEZXDtt5":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"zJan4qOb7Mre8bxg4FHzr":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"TEha9y3L95dzeVeynMa-w":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"2QiFiLJUPvVK2n7-ejrtv":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"f6qTumi34Xrtkq9ahLLQR":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"i1mOBtmYSaPmXYfDPLPeZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"wXUhNmkbkxsCByve4duKN":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"zCtw-uudQbYX9dL6LuwdC":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"j3iQERVw6nH6KY2qD559G":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"ATxRdNLr0FYrqY7RY8apj":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"3zOTMDwT54S3pRJxteSNv":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"6Tr5SVANNMVoVHBUMfqOf":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"38k3yeYKMLWb-gP3TeKaG":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"jEjSk4xZXSpcXxG1FDktN":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"afmW2S18O7P8xCkIWwKof":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"_ibUkI72Uwi0sUCsq7fm6":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"FpOGys4q4AsKPwHZLaI9k":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"_9JYMKH168ezujw-EaT6S":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"3lA8GBsT6-61ziToDTedg":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"tFntVEPVgozs1aj011-mu":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"WTfFaxFhRJT0FVOhLC4z2":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"0YnHlQ60hJZP2caqbJOBn":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"jNOJq4_S6vsQv8chu5RpP":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"e4dc2DZDnaPl9o0uTf2qo":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"zTZrX_y4GkalfSStDFoPV":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"XV0P3a-S0PR-CcTOHs_EP":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"0nVEtNXd6DSGc0NeFXavz":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"hPqyKn-o2aGCucc6UpROd":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"oq4yjRd8DccI0SZdVZ2fG":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"PnEancPYSjwo1nnR3X90H":{"uri":"/melonJS/docs/melonjs/Stage.html"},"N1YK2vBm6ZwYl7_iMgPCK":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"hFinOjC1TrTi5qwGdnxjZ":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"g0wY9OZo30vdvmsmNs2Ci":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"Ii-uWXy_oaetwE17xfLXZ":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"x5BXq7-puAz_0hT2j9uBD":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"9fPg50D3egiaiskie76-3":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"qej_Lt2-_r51e98qRQEp-":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"EvxPaPcxz_LaJEAGLN8Dw":{"uri":"/melonJS/docs/melonjs/Text.html"},"E4IiI2KT_nIEZzMiYi0Aq":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"JoNXCQSg06FYvehE-tr7-":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"74cGq6HGuNzbKmZGxsFea":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"kM1N76P1KOyfFog82A8tx":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"lk5hFzv9xoqIcB0VnGtnf":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"N3NIhD3h67-xzPGM2xaOi":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"HEdlb8aobZT_ZHyzSIcHI":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"d-ZsXf144HFrhS7tW17St":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"DledI629Iw9shAa90Cp-K":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"jS35JZoCxeoI2C5ns6-Wl":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"nK03-dOv2CW7LNvCCUCO1":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"6FyhIxDELD7o2c04gYmoT":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"IbtIFo4f_HpDjeEIsOPef":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"aywz0E1Dd96cQgkNe99yK":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"e8u_I-dw_W3C89aAq15Vt":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"-nxWV0LxE6zoORmwt2nxG":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"0_u2yDlFxFAbeR_rwdoCa":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"Lrf9Ltxlnrt1SJRGmJCd_":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"IQ4ioLtwWJsUMHrN_1qQ0":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"PBGSDVC_jRLQLuSssR9Z0":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"WSVItfR9RHow9sec87BtT":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"TGkSKg-VKrcVXG0MrLdef":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"oX7JBnWohZD7kznkWbeDy":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"62SILwTSXANxAF-DqBxf1":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"Gz4Xfgq7eDUAosZo9f8-Z":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"OwPt17xKGRNl9ZKBOYQfM":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"MrgtNTJHSexDzysIe812b":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"j07YiYEgNWhmeAbW5zDfS":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"HHbXaqUEzS18bn2JlcqqX":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"k98SvV4KBz_kqe9D-IW0j":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"MWUcaEaH0TYxEDRHbDd4X":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"XHck1RM1yfNau85QBixzN":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"OumtrGsbBEEpPoAf0sWtc":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"eXs6bADczwzEDpLstRYfY":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"tz0QSGVKNWNenJj8z4pY6":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"EOWQio92wGn4tYpObjid6":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"2kHVNvOKyp9dxn90iCwNk":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"c7FG0wN3AExGWiv6Q9_bu":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"jci5Rt0ewBrE21PNw7Yj-":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"-C5Pn9ldRrMD3Uu2rE3Y1":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"dTXXWFykIndeQ12Z4rI50":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"g3avjT6kivVXp02baJbF4":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"1GoVFL16ZTr3HCL6yulfK":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"xNrtYcg5lmbJVuNWiO1AY":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"iEowos8HxnIZSpw4av-TQ":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"Co_I0Qg_BbdFgxUFPz2yg":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"7AmD6nJJeps2oH14ZXUG4":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"UbXsOUxklIiNMie47xWfG":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"xQK7SvU55t90fVFR4trCT":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"v-cSF87RJGgfEsowz5vts":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"D_vVWlm8Tjh_a6ew_ZXlJ":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"e05pGxb1HtjhbN7EkI5PH":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"qjv2VBIQAWBhiSxhXPTgF":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"lFC-wR5W4eHN6NMTFDPNs":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"CrzCeIPPDwt5o_GNLaLWb":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"aOyDS6u_jMZG41SW0v4Nv":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"ndURkq96OwdTsj0ZKYaAp":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"8O3anW8MMOz38LiHMlWqE":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"W4zIVxkPCmPV_Rjf2gng7":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"LPVMtjherP8yC0cp9c7F4":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"qm-8XL8d1CZt0-Ee3rJWv":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"5Yuuw_l7nwK79KHHmLice":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"Y7mO-7uAC10dDzRdXjMLo":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"ywOZ6kH_3laXeoWWL9cPr":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"C5z736waIcmi6ONRoj0Id":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"2SgwNpN0vdkmDtAi9O6i_":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"2AUdIKGRjowYnsxDIABXK":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"DV_WnsFMNekQna25SQRHl":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"DdbtgtXQfmgN9gDFQU3L3":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"zEkuQkdKIKvewici2fh1a":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"M7s-m-QiJlSGb5lf5EPje":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"YM4UsUF_vfpv__aRxpHff":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"z5Hn1yT2lZ3UajOgwJYUD":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"sOqGg4FsbnEU8_e0YR6bU":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"-5FkROW0n04DpB_Zzn6_g":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"FzfWRutYAaRR5NH8uY6b3":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"Gmx1SjXcN4gajHlsEIrO_":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"r8wUzAGvbtnFxKW5-rAuz":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"wgdYGzryr5QMqXkxf2Qtl":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"xhXlygb_HQJPvXYgVjSNb":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"16Rie0FRO85NZFuxaco5F":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"iMIDlzVI7CLTIKvbdS1r_":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"4LnsGZFt-u94T92sJFXLo":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"_Bdy8-MBEwNyCy0757glr":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"YLFQyU3qO5zArn2OXubpa":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"w-3bQqlynZYXTHKsOG-jI":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"itq2AtPp9Kzqw4o7FIK0k":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"9J0Zr877LvT16t3XJwrdb":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"J8NREsGNtF6OeyHRvqB-1":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"d552qQk17QG3PUVn3mF4L":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"lulh9h8BSnUqA0T5O6YPx":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"1U4dh3RWwfuJvt_J9MUo-":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"MV1FuPd5QisgUsdUPd3CG":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"tRTSK-tnW6grLxsOv1TXG":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"4RW3Q6E23EwECfYB5oyu7":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"DRRFKUKy65ZVe_2Mp-_OM":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"Ys8OlIAsEcoGQlGSV8gU0":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"34VpLS51ciivdzIOb_KbD":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"nEMWDA6sp-_nWICcmg4Zm":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"v2Tg07RXnvlxdVgP0AYQF":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"3RVxoTnir9sBgRsc--0Gy":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"_AKhjaw8xUpAWZaSI4z8i":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"RSvEdJbudWcUuMAGkDMoM":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"uNvsbyKWAQdomUORqIZcu":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"8XT2UqlEIqLLJIHUQyuXj":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"M4jBZo41KFVWNDxVFgc8p":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"1UoxbN04-xBrW7q-u3iVg":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"r0eP23oN13DqNsl3bvMqK":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"bqnke12P5_R8G3_31cca-":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"RiHPzNm192b-En8uC6XkR":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"8EAgVa3h6AxHeU93lAMuM":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"l_Mf1RVG0Wuvv_Z3VA2tY":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"uqfCXvQ_dlq4kI954TeK5":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"VICSS1Z_zFRlyvsd48WJy":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"GE2BXLz24vPVPn4F9T8O6":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"lSLV0jBuLG625i6f4eIVO":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"1kbEfLOGiezJIYIwXT1_j":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"Ovlex9IE2bwu0r4SUIlUn":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"9glzPQl6c75OwuYEtZ9dW":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"kBiA123namIuDZDMdRbgb":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"eIIujtTwvH_KZ1EKJrYzX":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"QQtoWmT4lC5-IvQDM6LTF":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"oTVGi0M5mkTt-DSlJy9mR":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"u1se872-lj-FYefvassrs":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"xx_I28kzhyXN3iXxK5ChV":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"DZemd86VBVWfjmPVku8hE":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"JQ6Np0e4lvoQszQKa04H2":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"nRy4bHBtXUtUtTVR6NWUL":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"WollXK2k7i7hz3GIDCX3G":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"wSWa97Y_JSIAY6PkRRD3A":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"04Oza9PUt86f19W6UYgHq":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"2uNY8TlzFqEQR2nzqMWeG":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"255Wd0DlpRO6zuIDh6--s":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"TL2sHg3ibFPR1CUpCluCj":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"nXaYHxYo6PT2ZMdGIFcwY":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"OGabRknsMGI9oqxDqN3dx":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"Ch1MZxIzN7dfFAHvSzWUr":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"n8rSI8rSTE3HTO2h5dPkn":{"uri":"/melonJS/docs/melonjs/Tile.html"},"Da410x3k6U-x0_sfVaOFD":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"yJZPMxiSzZ3fpwQk-JCS2":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"w0bID0qxShNUM1l_MNhnz":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"14bmYvSLjm67ipCvu0LL4":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"lAqSBZd6hQVF5IVhF_dLY":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"SN7PChfnZbSFLtJb_bdCF":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"stIS-VS4JD8ZivPVRHZIH":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"-7LcsZeaP7nnuqWuPXGmx":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"ID1H8-uMl_DsaBt-O-9xp":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"woqMxFdXgcLSRy6op_2sc":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"TRHCJowYmk3AnCqgwsPAX":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"5q9mFlvVZQ57aETshb-VI":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"N4fNoiiPqK9T9DSrzldKW":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"bdVzmOcTnaKm9OxY3sh31":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"nBmKNKRdIUqsV3LS9BuZX":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"3lEJFBA5xNMmC4fo79pZV":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"z2bVl2qeBOqXm2SM-_yI4":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"xwukvXLeqr46d0Wga92zH":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"vK_UHubSvzAvrkbN4apSu":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"jcRYr1nHafEZJKTYEOzJG":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"DFYwNJErHPW0w0XRAaC45":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"Lf6Z28uWhjiZXrFbU3DRn":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"gsUqTc3wVRquyfPKU5oTb":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"buUd1hOloMsnUAnyN28gZ":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"XCi_qkYGxSykYND--i01G":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"I7AoO_6IpCNochaVJlsbo":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"VQi7h3OfbSvgsQJWfVLvy":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"RFMf4C0z526VIMMoe6MvJ":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"wHhY9Y-oGXE4VrAbe6PAp":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"FfxS5Z1no9LC_bTfvlEOf":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"T6B18IkF7vZ-rHSl3OiLE":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"wxWfg39ea8Lulbwnru3Rh":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"-jnYQU5xaDSw9PjSChuL6":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"9T3SGwVopvW9eUk5CXj-N":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"Crjj2jTsTPRRmf58S0ZWL":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"fNYKjWcXlkjEBAXcejXcZ":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"MkjCSUFGpFhEgndX8kbLN":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"PdPqVdPooDWe3Vtvz1JN2":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"dZheODxRKNz1ZFAQ_NtY1":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"CAqwfkRFRgBn3B_tjMYNG":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"twk5VMu6thYEj_2wU1Cw7":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"q2HHBnFI3mrw9IhEMYMkr":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"ZXYPkxetvF8FQlW4HlFIZ":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"KoArzNvZMkUi3b2J9mlpx":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"NOTK-ehh5toCXt_7GiZ_r":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"1F26t9bkHWLT3obqnFMwO":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"FSBk1Nkeg9JIgcqEEMmlW":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"yFr1WsMb6McdJFB5h72jV":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"Ahax8bjBHHBxpaS5jabFR":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"ArMn1YHbqnJgvKpLQbJ5R":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"DcnOlgPntOW-HACamosMR":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"tS-YE7rpKlKwTclFxZsYk":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"aL91UZa5lDtXguu5ur7JT":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"DPPfpG01h1cXwOZpWNTGD":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"zXEGo9Seco3-muLImV7a2":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"dgBCC_RZijiLBLDL6LZOl":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"X2oL5hV989e5x267nbPAW":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"QLIbEmZ1W9BhCoh360ZCS":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"lGzT1mBqYZKvFkX6ejEgg":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"5zI5ngPHi1zySRyqktXU3":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"DrDPcI8LZ1aMs8x2c0gA3":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"QBGgsUUGyB56bxAzBvgoh":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"QlhraqBWiBeTCWqAZrVGv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"bFGZbAJntjwZ3AWzTaUcv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"UeosxyQxor_HO-0Oh6Z32":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"LDdSbak2nGJH0HIglOuQw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"C5M18Ks24swpCDSAPhQOb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"3A1rH5fMNYPW71AXuG8Wh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"bIwcE6nWrtqfyl9CIiZDj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"80B315TvLES1N4GAucl4B":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"hG145j9Gt9_McRHj-rbiC":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"2Y99GmgikdJkGEHdzXNh7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"npDWBu_-fP8ddfDrHyh_e":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"EAmfp32ZNH3W0XXaUIHu1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"f-ZJ4k7zaSh46pgjOYDmP":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"KoEO41xL7dE7Rk_sl8zHW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"hoj41gSlw3H02hfRuc-ot":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"Xk2aFw1DUzO8L3PvLk9St":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"zXQtim91dSokdJkv1WrX8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"FrdcEDiLdRcP58EryEaxB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"wyQZjYV-S-9cg0tgcWz6N":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"hgeWoF9_MYSsQZ6U9x8WU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"5GRISczd6KuwWQS5ALHa_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"K7y8P68bHc5JJBzg01KLL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"ALuggLVjfFjzK8vRvl-8D":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"92gt6Ofre5Ft86ie9k2mm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"HRyT1L4KXy0dWUsPImA0o":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"qOpfzMm7YdP-32qT7DNpw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"gAvEhSUYln3VCWD9LYiGP":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"pTqalygNelYsERzHALzoK":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"uJGQgaUk-c5aulfu-zFf5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"CR-S7mevZQCK-Yy2cixJw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"8b4RjNGCX9teYT6UVfwDp":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"arDY7dT8jfh20NIANnBjH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"Fg_yN9Kzv3B8EqAiE4gqy":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"qvZQNfIuOZbDdnlxZ-0FL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"_PI2s69EG2IElyBq6LEMU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"yQzi2eoO7s9ZSdWyV8e1F":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"NDUEbiLEcVBerq2lYl00y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"YAWcQp4AwHix7ej7ayVYH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"NXNrQMbq19uMDM4JML89a":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"hS2JOsM_6y_LS4C9OKKJF":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"WTTjGYv0MlF4Dvbn4Ef57":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"mdfFRaJPaLEsD2UxeD5E0":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"RoTI4-lh6NAoGEiKZdYgN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"zr9KOh-o4e1t5x0CWHsrn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"Hc00MUIkPb179wyNMR_kj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"vxOz2eB4vzd8j1CQa21oO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"LlncuwIRkAI_w7m01e0T2":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"Z30AEnT-rxh1IlWMVzM_R":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"gnCar_diu0Jw2DVJ9JkCz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"54UYOpkTF8qlVEhAI3c8p":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"ELYzvTYF18uILUmCee6HA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"Z7hWTgTeeOoENmHT5oBaZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"2PhkKSpM5jNWmNmQJ-6qe":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"qg4sAanKlIIL1JmKILa4g":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"wnvpRy_s1oTW3AbqssidV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"VQPg21Q16wYrsApctk-kQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"mvHbXfj6MwcsCh-hf665u":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"tbO7hWETnsW728ZVWkoaf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"idUBdovokBnxJXK0QIilu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"nBp7d3a8M8Ue5zO_FQsZS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"JgtTU2ClFx2AcofiQJ25u":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"vLAOnpan-I6Xfdk4BBhVT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"_2nqLUrM2T7GSLPcNJpd_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"NE_bU80mE2Bj-S3gbAn8Y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"MpZsuJ_YliXW2H5j7J8fm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"B6ZHfiuq_dveoKpU5JIvE":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"-jEzjtxaw8L3lpUWbd1y0":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"ngd0cBWNL-WNsxMi0kaud":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"eiZj6RLRtt6JQH4j4ac_R":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"bv_noh21z_IQWtyPO05o3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"UeQ846lKV-YjvgkiHFtUn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"wweLktSt1dyXbe8MmpQzh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"_WZJbWcIKW2ILCwq8CHfv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"fBiF--Gs2ce8NsHDOmf_k":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"ljPcS-NktgLlU76CLnTLb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"6DA6JaeDkpeX3uTlIZFU7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"UUog0URZ3Rg9k3YPrgc1y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"WEJ7r0IFBh0emOv0_BRxL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"zZwhEbgKl5txo6bRTwpd3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"KYIT-6Oe_W3Kbw7spqSHb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"OLRRCHluflRaiPEEJGLTM":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"Onn2c5-a7o1LEesC972Ko":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"nvCNtx8BKfMOvjX8TM1-b":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"S7rZrB90bBPoC-VROT1O-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"NIEa2uJRJACCqtPfnrlvU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"jXUbMz0_u6FHGHqxIbKsE":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"wrWeCDOrnLFEev50qu7S8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"fKlZyTXlYQnhaojjSxE3k":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"iCr8dhlN4m3MhAu0ztVVz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"AfPSpDr3oRT8JIqMGldTt":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"Ezs5-15gcqotr4T5dTfn2":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"3-1_q_TdP2PCdYTRyCyGw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"JrxviX3bp560NDfFC-bvy":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"xxtuFpVdVEKfvgndR2nBV":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"phF_h-My8bdeYKmOT_oOl":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"zWQTw3Imq4jGsDEHVsbT5":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"VHjURQetixd9RnubPBTkq":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"xadksAX-R2s8gth3K_WbR":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"AOgEqayNFCWvQrDyooYEE":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"xd4pfjdBTgQAB3_tX6nwt":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"ousoyFshxaoELRB951JpF":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"nfDo9mD11YFHIDowyY-LK":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"p1xZRJWomInVWDSaefsMy":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"FTSLCp8-oJnlDZkiHZ7q8":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"i1BrpTjY_6F3VmR7QeWUt":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"TMA1QMn4G1QTGJtU3Jbyu":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"Zxz6WtANqTlkAdOMe4Qz_":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"u4P7-wa-8PUz9Ic2YJ1HQ":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"Dmm1iNNE1ZtMlL_CO0nW2":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"T-veIoXJ5qW2PTkzFJZho":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"cs1p9NaWmZELx4ueNdW0S":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"4AcEtrsyocmMKoBK75zcW":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"yZff_Lttg9YwECLQsOntq":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"NrCHDVGwM8CCIWgiB2zcN":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"jSPUw8skbx2N4d7Vp2fEf":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"3_Q3jUtxxxt8CyZd32cRn":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"ih1uawnhhUJzrqRlEz8hF":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"PmWiwjF5nvZDcyQgSI2uQ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"M5RGbKo8yzxojolGF3K7C":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"QKoJVgFzubwKKpaV47FTN":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"x9LIHz9QSi0BSOWO2KJn8":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"DRFnBwPKgJuaPhFcVa_0U":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"gy6KILn5713Qhq-qqfGV9":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"wQN3qODrmVxf8e9V4eCbe":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"9PHVhG3UHZHKrCX44NB5q":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"rQ_k0UYTipFz1gDilUR8Q":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"I0De0o4nf7UpXJlUTWV6o":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"apJjTWvICoxNPmPSjBJCa":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"_juY2xF-JG1Cy_ia0X0Y_":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"SFD3rV_AwDEj7mOO3iWRV":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"6hYf66XeEp_zMNOgs1s-U":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"fuslpAa2R2kdrpO8YI3Y0":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"0WjH7VWJbaORVv67yb3WP":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"Z7aJm0wNwDDX3FCHIiFiw":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"ZHF68rEpXeH-3ht65o-Xs":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"VYo1mrJPjz9c9JZycVk12":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"G0VkpmpqXO6ffipDWKzes":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"XS4ztV_fUCgClAslCeWSQ":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"UyeqpCymUH5XtgZmnQkTW":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"K-fQsbHEGvvTqzF7FMBPi":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"32VoKU7nrp-7q04yDnprz":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"9nkX1_mZN33pTMueqF_4X":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"YrN82GMI4PsyS4mhiTMhQ":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"h1oJlFnNXV3evX7QQcF_7":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"Rl_vJxMJJD73nJBH4zMKb":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"SFisXYD7ze7AgTYz5GH8R":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"8sWCb2HlsbVLIMyadlZ7o":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"HrQWmwrth5xuiJ4riypAT":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"XV5VEZs7UiyLhdQcHiffS":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"pa2zgvZA5YR4nrBouC_jV":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"WowzPCQstnSDaJs5HysUv":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"n1ekvULMzlE2rrlxrDBKo":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"TC7VRhNByADrtdLFyJ1-E":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"-E00cW_cR0pjMyKa23B3Q":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"5DVzPbJEnU9OvK-7PzBIL":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"_3eczN1XdC1dm-NKHBDS2":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"a_vvJQ24l0nYbdkyFvRL5":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"8MRxDJI3HT_mSOBybGcm3":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"MdFCVw93IaVLGMA4wlhzv":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"ZPA8Xfl7o8NQ28W7WIOgJ":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"1QKZ3-3jt9HXtmBFXme2b":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"2Dk07JzUmqQ4C8Bv9_whi":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"X68DnvbMB8eric2FHJufN":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"O2GUxEJcO8WHQSNoWyASS":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"0YaHaGXRFX3lRdEiGG7Hy":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"eLN4Mn3ScNXzO9s-QeCc9":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"CcFiok6E5WJ-fFG65R0bi":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"eG-V2q1EjuHx5MFU32Sse":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"n3giPeI5np9cWiPFALqef":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"yscNDIKGpPFW2auYu0zZO":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"5SL60QuxQn7DpCta3_kxv":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"weY6_5u6LqzM3V6BpIxOa":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"-Una14MYD_5cKWDag2yIa":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"1v-QskXEoqPjp0ZCLt0qs":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"PehGFsAPPW-WRLx6TXMlN":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"MC5Ef8Hw62spXedfFRaVT":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"WkoseqduhnWbQgOfKocuj":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"R3yxgKV79T395rN4YrDlM":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"wybTSpg_XR-b7XEBWN3g6":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"Su0hTqvd_Usft1z30S4AZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"hcWrW63ifAAqibkoSPoaQ":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"6Dq8_VcbRXFkuR16FrXiA":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"4xQ8ezAsjCz33VozLrwI1":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"8WPODEpH40OY6wg_UmfeA":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"SbJ-2lN4CWujLmAerAqge":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"LNknL2DzXwpawNSi1kWvy":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"6TeWHjOv8B2u5kqjmXnVL":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"5S4vWi30C30_-niGdKNtU":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"muiFRhOzHgMmupQyg0a7r":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"AKLrxAAa4VsVHwa2Qyqhc":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"ApEnmzPdptT_PKkfqGmS8":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"XM76fNT7sdBKWtGJ0hIUA":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"VuXqJuYXLg-7AC5B_heF_":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"ZSge6Ue8kvoAooCzAXZeF":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"ghgBk3Gu42SVBiqDygGra":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"ReDy_3hOsr_q5Sr0A90GW":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"EWYNQFrodUSK-baSRHKXe":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"G8YWuINeX_aerDE0jwq6m":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"dPE4m1LIKhylrK-cruzuH":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"E9wNqLnKJ6wwUffYsykJG":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"O00iN3SLpgZUzUx7_Dc60":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"7UgcZ8HD66JbwKtTTb0dt":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"sRI3D26VJRDBcHZSWE7AL":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"NorIdIomclEAsVuLfXkqZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"_N3BJEq2VJpUzT0xfuZkL":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"bwaHNm2AoI1F_fr8f6M0u":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"fhh8UR_NJwQHkv4WMn9TI":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"Fn5Ump4eqI4ZCvthmzHaL":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"0Zqf-YSsKiFEWwrIGxaG5":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"5_V-s5vkrL6gylBZKNd8u":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"dirzrRxorWrTaBbL1icWk":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"FruRT0Y3Dvy2uV1S5k4AV":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"nm32jwuQBtjD7BKBz_Pye":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"ihgV0XRcyGdbjLhBoYUun":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"WDDmZliXMFMKMzt_700-7":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"YnbQGpkAQTaZJlhXbKYfx":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"3hOw1XxTnoEiKIaWnpAA8":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"8TGWtwm4DCP4o2ksc9tsA":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"MHKKSGmIG9prk7q4LkKEk":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"jy7zynPXArCa5IMLJ-Pp2":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"5nQetBLgL8KiOZeSvsxRq":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"98I-jx-BlJ1D9OhJmmTTd":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"1LNJ8Iof1nid__sM5Hu7j":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"0dS-QfbzdwUY27Kumn3jX":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"gkhCdAOSroM8tfC8yY87P":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"e7wGUokbKuO8wEZOoooxy":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"ho0EI_HlPqKAjb6qZeay7":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"IPh7ukQP1ZndcdW8tT7qB":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"Yg2TDx4PoWOW1FrhyyALK":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"oRmzTYjQO-N-hDg6xii6_":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"rTFGQUhN22b7fV9HXtknh":{"uri":"/melonJS/docs/melonjs/Tween.html"},"0qQ42tHuOc-S1h0nqhTjI":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"7Oh5NeVPZFpuLSWh6LK69":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"TKWYRRh2jApUhImqb8uwo":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"lTJwvA7mxM09DI_PaiBAw":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"NueEiSUuKO0Ajr7V6nzQs":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"M9ry1LZyjqZP92cDzfg2D":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"cFdLJqkDVAojUkGoFrR9v":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"yNes5nNp-IWD-Sor-5Hu4":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"gYHzJhznr3jPM5psNCxe2":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"U4K1pC3vl0hfznOcFbkpj":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"Bpj0_I88ZeY1idpoOItwy":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"2nkU0ta8OSdtj3kJTZKIh":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"DQ90fTI-u9MrsCD0_h4It":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"3Pd27BKZ78YngwbQAL-Ic":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"xgXIULMk-cgEt10pVa47X":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"faJ7_siZpYJDUvxLBhx-w":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"fXJTjQniGjcFY9TieGORr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"FLeGCmjxQ0i1b8VTaPIqM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"ZrhsU0TFRhZcbVNM8DqN4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"VjzmTFFtug0TSaGh-2slT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"i4WEC9oD_vRWQzig8gcG9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"Dq5hExnTrAWekVQV4WW_O":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"fdH6D9M07aAtkZkqM6oqN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"RKZWXoEewKmCLxQwCZEoh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"zo4U3g6W-ME58z16WEg4p":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"XtOi-WqnjdJ_7wNtsy3ap":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"WniWNxILnVMWP0UiQSTn0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"8ytUppx7L27GvT_Iwni57":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"HNgIIBVCDerBEsVzjanZ_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"tTgUMiY80EwdyXYwToqKj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"6KHZcQiVfxt2PMBc6Rhc3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"S_2OsBcv7Gi8aEyBQPT6V":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"ekH02nrX55GZO9MGZw7ge":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"FZUNE_GjtBPAngo3Adudf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"rBFEsYu6PW8XLUNtyl_g5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"v5rYwe9004vOSS8sUVux9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"0qyzCg4ijcZgaoOVrUxm7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"835z4yTipcJZZcoRVc0B8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"qOxe0SFQ_i5aUAnsQxReD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"jZI0VTo_2k44yypC9IDRI":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"fNuWpFEkqqc0ADGRmkwig":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"CWLGZXcsw1zEKeHy5sEAk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"ivOn15TXDqc1PcmUgiGCq":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"vlLuiopKIazmGDrnB_WR9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"8NSGmYZsm6qSBfaP5Wl99":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"ylZwAeFx40QkKv5eTAqbI":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"j5R2-UE80YD-R1clUGEI-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"zDHxqdU2WSBLvTbLd9bmY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"j6pM3H4b2y7p0Ev86oIxE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"MMlHYK9gBKhRgn-P-YNzf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"6nQVRLyKHvp_MjjI4_Y0e":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"7LxKMB4ZXpQBLAR41OX1j":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"alRNhSsGIFqakYkj1ahwo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"JmpXvqGJRaAgNlKSkU6gJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"S-2U57yqdJSN5_J8w3pcB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"4N8ECCLYTIndrc9opGM49":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"qvnp4dlNWp0qfxpTa7eIv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"b1ESAIzAq5sv3sKwY7Dms":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"N5uCUveEdxVIzZG2t25t7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"49Y8m4G4IguA_g2U29Lmr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"FbqQUT4o6-LCdGbEB8VU_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"6Z_B4g2YqMoa_fDvD5J17":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"28o-57RFKaGPTBISIcdL_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"nWQ4Hc_VqghY7d8zmaytX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"lcGDtr15XN85mzsSTrcO3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"JsuT2Wxh5oGPr1_2jgMmi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"PD6YbqgiyMzvlwf4Rp86f":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"oGamoajzpPjRUH8mjbDpl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"n5CixfZzgRt6Exs8TQ84L":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"uR3Vsite_3FyDN4gK48NO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"5Y77-cOvdCuyw4jJB-MCd":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"ohudo8h_mgwGiHgDPty-m":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"-6UrJH9nqSz6or_lhuAtX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"9teCzOWw7IOBkGu1KhyPn":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"vHNPQVX3rhw_r5WFgzRdQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"BRDGRPZ-Im0WzTH5mH6Pg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"NwcwVrTCg0RcyBgSwwaRz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"-Lf9m91S-B6xB7DY9pUGD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"eFm-A_XEpxNp0XSTcajjp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"z3U8KeUgCBM1-2eCj9nDh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"-M-TwRhA8CbYLP0Jxf0gt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"NhxBVtPFcaxWJELvnfCq3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"inUhAfbpiZDQS4v1XrPed":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"MqITECjp7MTsK7X4dny7_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"FqFitFdZUbyDBTKJFIC9n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"T0-QuQ8oIlhzjrAXvQSN7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"6E6ZdQt_vNWlW0VE5HRqT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"ouXGJscgWIoU59kQ09I_g":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"LURjYDRbNvw9H59gWyyMi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"q0NQ5j8myW_dowrKpTiQM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"otPWJ4bNGdjABSq4JrShF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"FLsbRNIxrsNEFHnUaSslL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"IwjxZeqOVj-Lk6U3Ag43J":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"4vugGxdFdLA1C9PsLx7yN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"GippedqUAWkuIyVfJDWRC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"dR-QIQKn6Xr2gq67K4m4k":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"OXzYpb2R7052JL_8mlGcf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"1VgErxVKSWN5Tp1GaBoll":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"637yD8wPEP7aMONtMbSEh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"yNNAUDN7_enwFpjEKEt3h":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"Fuo5z0MqHF7bYk0lzlLYE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"LUqdhBwBf09F11EKl011b":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"KtyabnKJNpdCLxc35JI6I":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"V7yJ5h2i9IdPd01kzKSuh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"YKtCt9jyXEkESNGApWXSv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"CFU7X8M-u14rx4QlH3fh-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"vVKJwwmkh4vi4JzeTG4E0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"Z-2a0DqVDV8OtRCyRefyd":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"iuhWV3e_pNBSlfjxhLvzX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"Cck1yioJtt14IbXy3uXQs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"qMhJNbzBhtJ1ijQv1_jbe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"RXQUVCkKRLuDn-npeGH78":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"ZAJ9sFPZcI4IRZCse5fVS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"C5unk9mn7DVel2iP0E5pA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"eCqXi1nnEHC5BlyRT8zdu":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"fuWGuuYlHxQ3fvAWi0Lot":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"vPNtEY-fCx5raUYM-7Tzb":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"Xg-75a-Bgw5B-XwUdKZC7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"YYNfyldVg4wHW_IoseUeP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"uIiVmgGKvBDXU0yVc2h3i":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"To8RNowejeNHbuCg-HhG3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"jvKJhySRi4wV0qlqnHERb":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"yPTOOPXK5nhETAF-s3Oo3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"Tq5K68XbK_PIoWwGl-6lS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"_7uzEVOga8seReMvCtugy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"GPaxuu4sgBQGnEmiZ0h8e":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"haF7pkrdhn4PJ2bwu-zKx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"fA4l0xELhjv_BhbDOlw5f":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"CCiSG84Dv7BGbtIhYv0Zo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"25ROjlZfOStJ5q4zIx3FV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"BWTtu7C_Z2k5CeEDBb2RH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"Av4iTRCZa597Ago_gcxl1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"W_IRI6hx1G8tn4M2dMDJQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"NsC8SYNxx4mc6Gbbej5sX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"PHsx7aDoyinu__MfEkanO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"41eeGq5WGC1xP5v3kIdSL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"J7GSQOsTjOv6t5sYFJjf4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"zx25DW1ZvkWi3nU-ItRRv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"uAVwa6NY06ijiHkazhMpP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"NFMzWVU8K6f689odkmaoB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"EH8KZQU6SBpdKf_JCoh_m":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"gHqi1WRWqmO6YrsnLwymT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"Sn-h0FyWs43qofXFK65xZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"In0A68UbcjDMTKV3T_dWd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"Bb3_mAz5XSfdrAbqngN6h":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"ue1Zv-a2nVmTs6h-SsO0h":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"tqeehvtTnjYnGmOnFmiZt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"uPHScPMf5LOdg9V15a3PH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"3dVXRy2QjyBB_NiazpvK0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"4mwnXhUbnv_-KVAvWEOJj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"1ukdnoBFF5nRTGFiOyzoh":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"vwvQJeto9OTXVD5QRnD-R":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"rCmg_a33gYfR-onH_nba-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"Gj4DaMn6ZR85gAUjFB-2H":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"cV7Z-O9ewbwYkwKnytgbT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"EYKSl_rUBA4dqLD2s6eyR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"Lj6toiRaGR52uiR5UX-H8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"0U6hjU24ncBZVTDBsHdd-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"QDOdfbkIE8lAbVfoI7TyN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"TpHxLTHNf-XLTOIVE42of":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"DRVveD0YqqVc4_aZucTBA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"8zvZFbPiWWon8RnRt5fDB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"w7mM22Ka602sehN2cySAZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"92Baz2rhvmQT4LCr3PbAE":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"5_LBP_9WC_uIzvBkCnqZN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"JW5JQP1Jn0g0T2ZzZ8krA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"nxZTsWbGzWADEmGNqyxQV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"p09sufVZcSigi4tpYBQNP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"-fo-j-l2ig3cMWySXAKlL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"t2x-C-kmngaHpAVj9cnPM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"DZR2PH8FB5aKIwjJ32aWS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"pAW0q8CE9HqfxzBAZb3Jf":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"oLf1GmQD9em8MT8QYJiSB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"0BVJHw9JyOUtCxqYxYUt0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"ISXWayqU6ds1FQqRHDZ-n":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"vlmdE2duywAspmn9xHm-t":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"y3Q4jCQvlr2I8ejToRH-b":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"nz1DLAmoDXdzGdZJxpddn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"Yoo77lvJUwLq7ei7-wwmz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"7j4oC82fvVid0dlAYNy15":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"H_hiiiTJAZJjPCI3n6hJm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"4mgYV9CHLbcPaXiMYd2CR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"FZn_b-1f1mJ9iqTpx8JtJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"nT-zqfdfE90Gf2hHebW2f":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"o1y5A9LoAOZjSE2iKWg0T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"iHNNib_jjY0mccqS-lSm-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"swlJE3eLFEbO8WS3SAoqC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"XGiKhpSjxR490Jp-gA9GI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"Dcn-ahWBcEDjsiw0CDrpF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"9Lofq9bAVPcVhAPB57cuR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"Bo7o5AhsqQwZHW8XikQ7i":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"5a1hUNQ-VDcXta2emJY4T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"l7g26jC5Zg92hS0-39DJy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"bzEiroI2hCKZeJmz_SnD5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"MeNfm9wVbrrWa81FC5wj0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"qVsDlzMUIjyK1G2aTxZBj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"uJAQXz6iwQNGqbK48HOQY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"FXE6wxebQ29AFMq1pZ5Ao":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"nLljz2s1H0Li9_APYdZCo":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"uP1qlknJ-isVxpgMdFrd3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"aZZdtD1yqa3o3nOlepLL4":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"qAh2Ly5V9cU2YgHpoL3bH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"4ZeeEZZKn6POQKOKOd6ll":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"l86wTLr7lvsxjOcxqDuX3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"mYW8r_EpUlk_0Am6sS4vV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"DRFwcgIeTn2FpSPMbw5qP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"TBmObGCMkuBhzUk6LuFyz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"rCHIXRMJs1alc-dWWhtNN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"okHZQEFFuPG1-t587NaNm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"s4xIEcyxEsa0J5yTsvwAI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"IBPPTuzaEqKIA3SlJKUgm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"DLMhTtaZ4yiRjKOfIkF7V":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"IDyjMb5Ugd55EouCcGRL-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"DxCqb8zOye-O7Y-CpTyb1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"lYFQKkQzjM8vhGRw_dTQ5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"yRX0ri7sJPLr4ZozWk1qN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"fe8iI5EyROtExlp4W45eq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"5wEzo5X_JSh_oPS9Sp26D":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"0mo3tYUX2YttPLHwn5AfR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"CKQ-CXb4LQgyX8bJUkU6t":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"yD9MYWfwHFthsDTKLkb_Y":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"VzCRCLCR8C6gp_9c4IlFL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"Zy9uvUmfLcoNcTyDTkWAi":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"bTczvL429H_qTyXHePl8t":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"ec5VL8rGELsDmzmjRuiNN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"NLaMyUt4ZoofAAMTPWJKl":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"s50ABNRHCFPPutkNlwYOm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"WHypjffWMSAcoCC-7HTNP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"cabupkX7c6QqiGJJH_A8r":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"ThaK5PSCltUQ_n1Oyhx2K":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"AwWK81E0-J9RRgDZEnd1T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"LdGg6-NkAJq_F-UyxD6hz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"eHrS4-dR5wfWWbzyQVnpQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"ACVOIxU96Nn0kmGgEEY5j":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"uSOK1Zd9Sc67piPnZd5f-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"VfB_xEw_44qeEz2yXr5hy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"WJ7hNgdj13c9cJBtAhCNP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"D_dvfoW2IxBu8AGL2lVS8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"uIIVJ8wRf6x0uXB-cTXl8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"oKeemzn_3wGAOqfWA0BPx":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"RR1-hvQcbd-rf3C7Phqk_":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"fYQQyQBx0jWAaTvfx-vQ8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"sN85KAwKA73xbiGtGtOvl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"W3vH6OXIUEi9K0UwSbx11":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"yVHJ8-X-9GTX7UiLYjH9I":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"7Vit-HAotiso1GnhSdHjK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"FXaIWrmdewuj7HDqOlzaT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"EoiaQQgQitaSsbsPUt1zj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"GvXmnZ7LQ32_CZOZnWPD7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"EFWvoDm2VxqWeX37xsv2x":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"YYTFyVk74gvE71mJcmlCR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"4JeupIrh76EyA-WbjCHRr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"ASAUlQsUyqWpo6hwOOyZh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"vCwpQvZPvdskv3D0TEL1o":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"mUjvAJctc0soA5RoII8gr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"IadvphVaQxuBPxOVpftPS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"T9iarfSTCeNXHOha1x2LP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"eTQfCbQf3Hd47V7O2pY8C":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"cz4vHqk6CVc0uinOMnYDC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"uHz6KH5U_9-1FrYJ9yJ_2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"InWUqTvfKFCKxuY-5rW3p":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"oofiltsb88L9I2TdPEUGM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"0c-VYJS-Fe9A8Sy8fkK5_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"joKGCN6R-y11v1JUjbrYb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"sVsUQe_1nMig-P7nqUKtt":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"xQwVfQCcKR4Jfv8ub6leo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"0zDumic3tE3WOCwBJFkwe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"mNVlEkjR9H1Goo5aSoztS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"fXattKZ73aSbt_crQ9bYZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"ttoCfH_BIzMovPzZFWKw3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"vJr6n_TiI12Cr939btdup":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"m-lEGqVUHbzTlkfEfX3oN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"o-iHnaWK-M0wuh-JonEsE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"fj064094M8pF3L0LpnvQe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"_nxNiFLXMLlbSYkRoN4aw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"6AJeHIAQOd2BWu4MA88Uk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"1P1akAza3bTxdqJtBrpRO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"kzoDgXqjhRnaXRIJxzR2P":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"0hUsYhcI7njQbKRZ8aFQg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"mrGq-24e_56EStndweu7B":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"Do8bQAOIo0XSIOx_2TEHG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"aNkr3uxSGcr4V3rtUmHnv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"8hyFQqV0GDZqTio4Ru-BQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"-IKT5633C0tEnMljzuztX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"1xtbY7CI3-wHBHl19KMwC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"waOyu6l1GRtSTtDzebZl5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"eeErmkuOHixLmYYQhFES3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"ukz83E4-zxqo2NbgyGzpG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"lYiIlKpqgjTo9_ZBiPMTp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"CUknVvnm_-PHb3OEweiQf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"4uCWXmYo0FtW7s_Tp7-Ew":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"yJ6yTNwbxgLAKK54o6sY5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"l7Eg_NpS4ZVDoBLVJXMbD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"GlnBiJqH4tHik0Jur7ldi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"PB1GM9PkZ6RT7-TvXXWdo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"L3WluXf0jgtKZZ47ax71g":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"aPhtVYXIKukW99XEHq2kB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"x_3yVQkEUjBW6u4fUQ_x3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"zqWQnsjrXHQd9KThpCPW8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"QR6RlmFmAiz0yWcjx3YCw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"KTynsiuenDYc-27rFlMpu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"kZFCo2Ka0ekJiHCAmhBm6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"viVdMzsKZGnH7umF026Ne":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"lYGSWyhcasH0ff9g2r7da":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"Zo_gJI6r1UlsY60eKeLez":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"49dK_Me9b0jiU4cgE--aM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"Cf2uUVibOkhWkF1hyKwnA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"WdtTlVf5TguTWumIwidGa":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"-jza48SMd2zjfpj_5V2Bn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"ZDhLaCMbaMEbyASS9QTzh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"kh6eP7bQf6ZnBH_0sBRV5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"AAoqi1hV6biGrK5kgrA6U":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"XF91R6D6zyyjPXmfRlFLI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"fR0lPq5yjJ4nFDCOGBfoQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"qQdcWfS4DlqImodG7d2wc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"Ypm20NNLJu_kCFJzyHk4q":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"-F45tQbaTXcs2AKICcKAJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"954pNDtIrkPjja7UdkBZn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"CWih9xEEFYe6cK7AfN2lV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"9X8WpwTDDeTtv_gvq0DKP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"_scETKy3-ckmTo2GcYCcD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"TTFd7hKOqJ9Rbyctpdmst":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"q4Td7VC9h_o-2kbDL0TDe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"D1mL9HTnMiqqW_Id09_5H":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"U-TRPqYPVvK9fHK4Thp-U":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"wlCytvJwC4G10ol0idHPI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"Q7H8BmGVA-nJVErSIBVqI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"peFupyJl_HnN46fWQnDvw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"hlYH79jYBZ-mVyKTek8FO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"UQZsQCdFELcDbEEvb9X94":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"i6Os_lEg3WB9RtT1DKhuh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"Z9tbBUNDH1T6Ei7YNr1as":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"Rm2mfA5QloslViw0brjd6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"3T8orE8TPGFIg_YZ_xeWt":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"SKsZVTMsUeZmOZoqc3ptg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"7B7B8CMYF9F2q-B6cwEVT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"JdWkVQlTrKl2TN3LUlQlM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"CMYicZFvIVsvG0kpYO-vd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"X0NEQhNMv8p2zFOs7jh4f":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"zLR4I0G0kZdwUh3bxK_nN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"AN1gKInr_KgW922myYxfm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"e3qAwbu846CFxee8czVLI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"25tbXJmbuZNX63Jtwu9Xr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"-JzUyNlLGdwB6g1BAmnBD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"ChMUrlUSGlnffl6ozCLNE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"c8XudpMFkmz8Qi4bMYqQh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"CzvCJxYGGnSdobLdrBhS0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"b1DvwubWjFYL9UfUwlUkF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"ggvnWCnzGup9B9c2MVIVv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"9vDvlS0Eh2_Uuo-hDn8WK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"EJXCRqG28w4Z5q--au5aH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"tCWw9FcvcrmxdC2qPJNvc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"tvg59RmNK2ooV3M4-Lg8N":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"xW4_A6q_-sLK9iFj6Bm_s":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"Flx6OxAlSkksp5Ywkksua":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"vfrqFTbzON8bzIaZ4SgMW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"IHjgbJdvhvkmG11xGLS2V":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"edyqzxyiADTfEFkRP5KzX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"UPrLbDjAVEwu6fWfo-PGw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"lV1-8Y84lX0BI30daApw-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"EaXIVui9KJ4lncZF6P7c-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"oteSHIW1OLb17x6ThYDDD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"nOy7oYRSt1-4DSHgIuYR-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"yYyM_8F29qvqnY8Fk6kD7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"tI8tHzdoc2RwBYNkQD1iY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"Vf2fBURGtNZSTV3z8KMMF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"yQRu-cq-UjunqvUnTX7Ev":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"yFPb1f6CXM__v9kBm72AN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"n2nOaPJGY39zlWulqaxXn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"uXlHRYx7VgJGyE2Cr7oLr":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"wguUB1NnTAxjnZsNUjvD5":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"wLAdamnr-N4417xyvgalC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"8ooMKIATEHdcB2g_QzPO3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"exSavZc3XUflXsmE4VoFD":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"ynLoAiDxsJVeSCv3VQAJq":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"_v8hya2ZXgAfa6PS7tvFa":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"7qRSdSYbKZjNfxTYY7Nhx":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"uGFd6LHFSE5LSFj61yX6b":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"tXFTZupW0qDcwzBULOFEl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"3xf5NLOcRH4NmFFgKd09y":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"H6b2xAQAEo-8oyzb8nXiQ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"eQhXgQ0OPAhIenWpel7ZO":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"Q_dNyHbmaQw7U3LYC0SKr":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"pHT3i8cuCiw_q_SKkeYwE":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"prKqKowgBy7ccdGVIf-p0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"GujFKlc7HW9Hf-Gm-0vyR":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"83LZyNM9COa-o16n5m5Lj":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"NUKUgrUKQ5CK1PcC6cjjX":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"GRrGiG6eJVMl6L75Eu4Ky":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"Y_avnT1qHYibYkgYwNNL3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"Aqp6yJexUYStJb6KTctMm":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"pV4Jy53FmAjAVAMQ_Re4p":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"K8tLy1fwLGb3_2yX5RVDP":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"RdEtNtn0VLy_HPMZxQ7qJ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"d3MRwzGx7jWnnAegLy3EZ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"aCVvNUk4agWa32oB0oa02":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"3iNOZ7bVZPvlYcOwSnwkY":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"TLC1_tpYWcb32tpgs-HZT":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"LQhqFkqmoSNFbwywvKue_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"J28QL6oWOh5duK6cxsMz6":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"AryRq_gZbVyHh_OBWc3Ku":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"Bq16sRD4jwbxh9fQmoDw3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"_KiCJAsN3FaUgUszipurC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"1k53JruLduCwHNgkHjwIJ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"Uj-x-cqiEXPJkm2chKQ9R":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"40GRu5NZBBfAKtoRO-vFN":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"2fds7MSxUyPFu00dIRXEd":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"QWTtoSOg7ZBEupo0R9uuu":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"MrhByLp8gcld2ERSdXrZl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"uYe0V2qWXOJPoqroKl0Ti":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"ExBCTdfCvhH8O4wmG0vbG":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"X0dvJQGqVhqC-FjQ1a7Lc":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"zvFWfX7O84Tsu0pJFVqkd":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"UUv4Jp24RTjaQ3ntXT-8v":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"U20XzwEp7Hin9hxLJQHOd":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"mSHhL4o84NXIp9cM6cJjb":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"373Z9O_Or7tfeOBp697SW":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"IWMTY_s_bnCNvBYP6z9qa":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"7rjRFU5f0_2liGqzMn91m":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"qSUPsQJj7Nst-Nar3IWNL":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"jbHoNsrKl1mrmHBBtrwuQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"GXnHgf049n6IlgaYMosqE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"cNeoAjNuqxpsbbBOCqJKm":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"yA_TkvynTi8q8kpPMhSza":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"fe6PFKZUZV6KoZqlrqNPS":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"CEbnmQcvz6c289OJPheW0":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"4tRZ17M2hqGxDNYy55yTQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"sr8AEgGOxzrFae2i2TWME":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"uX5NFLGAvAc84gQgprX3N":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"AakXFHNUGZXlVARhlo2yp":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"pzOoJ4g9HKGcGtQ52kxqU":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"w88wuMOMa2j-HfEWixvk3":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"VOU9Q1AEhc0bE0qsHu4lY":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"LGWZSqAAsP21TtpWelM8K":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"wCoSATbMjntnIFwqsDSoO":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"X7z3HO_S4B_dsArE9iZSF":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"MyZrElNx8UpIiirLhVkta":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"i1ZnWPqvmrfKOlrJSXHgx":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"4_qzVX02QHpu-212GwgvC":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"PoaS6ROVhvJHUPQ_4WNzB":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"5CDmOf2iwAXHe4MP0_u3t":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"ItVAWpitgH6sCleBV1xvJ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"JV5mY3Eel1bnv54BoUNeE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"0-FPkqrP-T47jEACBXmOh":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"wiXNMyKli8ROb75GQ2HUh":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"282vbUgK7FKtFXaQoCBQW":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"mrSR8sjtatVWM7eYxs9QH":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"NpMgFqwLedT_dyg0x5wgY":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"S32t8RExOh3j1Qo1OaJxW":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"dsv_mNDuioXIP--TMS4Oe":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"4VD1XDqtdLYs5o-x-r2Zp":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"V8UAdO6Mp-26i2cQc24OO":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"IVRVMVMjGZKAxFd-VzT2y":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"RfLPezSbq7jOlm_7rmhlT":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"wmZhJAfrnf_V97pkYytWl":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"_NqgpVzx62AN9-6Vd0iSY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"HcGemAWcHRlG7ev1Y7F-Z":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"X3ULDCZWkZM5OqAzrWwGb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"8EZ69Hhk_XtAK-Iq67t5e":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"nwn-XWjLYEyr48BMgwJLH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"1VFN78IGjS1fIzDPbSJ6H":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"RXqbrJibdCo8jvA75BDPh":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"J-KE06_ZTBzroHD0M-t3p":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"0Iox1kaQr-D2kFjFfwDfF":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"SQbp6MjouUsWFl6rVlgPH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"SBboeV5BecQ2g0n0KH3zk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"pkr2n01mJ2jYuglkfZzkS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"V6z88wc3LCgkTNJ_BzO6d":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"lBCdZidFBZn96iXNgQAbw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"h2j1sd-2QIRT-ac6C1rzg":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"dM7Dtt1ecUSnIMpdw5W0n":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"hjbOHReaIzy_QiT7XbuIa":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"M1rVaFEiiIdORmMcoeQj7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"f3trMmwkbtg_AXUXmwASM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"rE4HC04i4d2yJdkalHI0_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"sOdfGCk8d3PlPxpaolNup":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"t4XThDGbXDZ2xzmeWa_g8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"x7UzcdZQwtcXHXeg-cZ-Z":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"zLx4ltiexJ8KZhiJ689QD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"jgYZ8P_fw0xFX_R4yPY6G":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"ewZi_UffC6zdA7I0XsMp7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"dUtsHKSfqxekMPYGhYcqW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"E5EFxDgSCEYItW-gdg5uV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"KmFqzmFo3-0tRd9dbN3Ts":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"YQuXFY8YL3_-j1PqHE8V4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"45jZB-nOmRYh_G1NxFMAY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"WnHQY6AfZ4mEBEtLVIw5O":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"td5W0IURqXvGyJR6anDW6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"LXnrkThKe8v6xI9HKlmqA":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"DJni1TVyOZpQzsfv8kPtj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"cJhg2m4OfvHEzHr17gT-9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"Nlfi51XOsAdp17z_FMRC6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"21g4RDlQHC_4CKNRXXsU1":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"kUK3IfoVHee43cha318vv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"3-iFq-wJbMWeQ2zf1CWuG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"hbQptATKNx7ECC2JgTFs9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"_beIMLrXL17aAaxo91Fv5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"U_x2cGp8Qau4hRcpZnAg_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"1K-Crv0BtBRDhuA0C7pA-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"h8MyEEM81NEVOD1WaG_Ox":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"zn0TxxKCehJq2Q3hbP0eD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext2d"},"wcmLZJVgzYubznEJEZJFk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContextGL"},"GBR5SNN-2JGrPNOB6s1vA":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"XfPSV5nan8wm0RDqnIMfb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"x0xkhdPJhxXu3Ba89KZn-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"IMocnC_Ub8jSd2hj6HiVi":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"QPnySq5WEOVOamcXQsIHX":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"rhjYIIobPEXnUMPYquuQV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"PpsfarpJkdJ8qXLHOIAQf":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"Upx5qVoF_DOSi4E075SR5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"qrYJSHuVfJ-2qTTWq3tRu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"hIFYU1srJXgXIWZL-j9K2":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"MXn4pJQ8g_9UFz0XugOk8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"cYLzIR5UJUyjLlFpsc_Xt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"4tCq_ydpfye0-qnXiU_kk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"UqvZ0VqJvwM5ODPvHfYOL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"K4UlRFMAcQjHZyBWpKApk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"fWgJTKs5SPHMtGDaGOOQe":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"yowsJHtHKvO2QkNGFfUXT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"soGiPWLlJoXaxoGeIQCbG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"8FDr8QBolpmKse0iVkrx6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"l_twqtwv4oKlNq9KcM1yn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"yvxmvBIJyk0EP5KKDtNJP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"JYLUqY0PuXq_K_Rwh8m4N":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setLineWidth"},"4w5HPMPNKWB_mRm8cjj79":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"wdgeP8appLvS7zfY9GnEL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"wWCf8Kk_1ws-tRAlVmgti":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"8acuMHfKIz73qm-YemHvk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"cJAu55eGOvlvqcKraz8vv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"6XgNFiKQBKVRfhHb_zzxG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"xSXBAL0X0okh8yPjwQugV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"cqGiR7887cXeC_Opv_yBt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"L7cRk5Z-s2bti9_NI6zkr":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"QGPFOrHAn2stnPjoV4iyF":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"ARp7iQBhUUmgezXL0GvVC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"UpumKAOSAZ4Ijd-0JBll_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"uQG6JOSK4QL5M6Ey0XCn4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"s43wxpVK4TXlAAEbFHn9A":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"VIPxHmBHwvBmJ4SvyVo1A":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"EfsNXnJShWDsU1Kv_YpFN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"D3JqduTjSL1QZ-b1J8JMC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"-totDcANRLG6KBVoXfbRP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"W5LL5m0IiQQm0_P3LLAoO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"lQ8CsAO3o2_5mHqCTGU-q":{"uri":"/melonJS/docs/melonjs/World.html"},"VDHWhmxWROMR9ol_Qgmt4":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"EhNqMW6nH8LkRE-Gh4Q0X":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"U3Lt1Evs0_2Xwzq3b2S4B":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"Ww1VZo932omxM_EHckMQg":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"lDtPOnilcaOZbCEh-ZOc0":{"uri":"/melonJS/docs/melonjs/World.html#app"},"RXMP0ea01Xo-BtZLRSpnZ":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"2iv6dG-jYYn9BYsWWwkVV":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"FH-vX1HoDXbKGWYYSNI07":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"C37yVgONQIAo6VwGN-4Cr":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"DmX9CTRMnE-YqkdjwFPgu":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"-JNkF_SyzPq4m2lsgRtuB":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"LUAVdtiJaH79LgO8DYWBG":{"uri":"/melonJS/docs/melonjs/World.html#body"},"U46cYCsCBIZ6QCchjE1Pu":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"ysLnjg4NH0zxGY_ty9qJ3":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"69yn8PhaTjW2uUNYNVEIK":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"wURbeF3e0nPINXn5HptHi":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"0FSn97MKZYtBg3_QZFyQq":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"nw71MjorGEVj4tNB3WFgN":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"4IAuoBTxRJlFWPtRoE4Wh":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"NsednTDLTm6jnYZUXJlGa":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"a40BNgzkJ0g794P7I1S_c":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"gbxm8xcecimV85PwtsThO":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"eiKmCisnOL0ntttPjZFFn":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"x3EXesKFqCUBmuRAicia7":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"kWKw_1Za5ERQ5eBPI_VzU":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"ygQ8Ms1EPhP2fBXNFuKlC":{"uri":"/melonJS/docs/melonjs/World.html#height"},"ehCWLAximqx1Gj3DMN6p0":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"nGLa_cRm9rTf472Ie0UOB":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"3tLmgLMdIrjnH97k5O7os":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"G8devthbPzuTjMgHovFJO":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"KoqP5MtNBn3qIrsN_pia_":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"Jl5pqMLYZZnI8n7AbAiBo":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"CWe3F_rS5VlsA26jPFrEY":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"YnrzAevjuGl2XwTpIaLbl":{"uri":"/melonJS/docs/melonjs/World.html#left"},"CPxIBi2dkGd9a3n5vFCNd":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"iAszIRHKTGjTrM361TXII":{"uri":"/melonJS/docs/melonjs/World.html#name"},"jAZG3s9OG6kfU30mHpEBV":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"y1TLFB9pQrbORPkZgwqZX":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"c1k3uBiIb8elG3GcRUBBx":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"qpvPV0JHpCB4m8-wWkqrB":{"uri":"/melonJS/docs/melonjs/World.html#points"},"9vfQmD5oxXpx7eNrgLGoY":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"941ZY7YznyTBF36Gj5sO7":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"rcY3DnD6azZQSY-NxGHO5":{"uri":"/melonJS/docs/melonjs/World.html#right"},"L1xIZnCrYLCIyBs60eDF5":{"uri":"/melonJS/docs/melonjs/World.html#root"},"VGY_TTxU880P1X826bReX":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"2DqzwC4JXXKt7osT_nSzd":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"6xiEmHoc8vUfZh2866hGh":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"Q0sXewkrKbYWJep5uRInf":{"uri":"/melonJS/docs/melonjs/World.html#top"},"uAffp3ARP29lFeAQ9EgLJ":{"uri":"/melonJS/docs/melonjs/World.html#type"},"OlQQeaFH6SY74mkPAGBgQ":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"JnUZYD_28nLi2A7YhfxND":{"uri":"/melonJS/docs/melonjs/World.html#width"},"2ghX6pmGiBqJxJ5V5_gAW":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"kQYvfMaF6wBGKcGkUOZWi":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"bob7DcTaH4Ey5Goe_iRmN":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"-pqpm1-jHIN3zT7lMetc8":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"btPZeHopwRWZ-fO_YtvJr":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"6uq3yf3r_hVkmfMNJlb2K":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"nlXE0VxI0pGVmeduW-nG9":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"VG4Oi6ivllTiqPQmvypK4":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"61sk7b6mBnxJ83lai_uSE":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"s7s4qUDWUjMw-JcRaP_R0":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"1tHA1Ty-_mVbt9IvG_GM6":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"VcDQpl26OPlTkZdsII_x-":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"7JwTePhso4q5t7riH3Xhy":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"_4groY83qFK35HABw4kI1":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"V7aNVxpvfwp6HAZnhI1L5":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"pABcb-Kmmel63dpSXnci7":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"IsN_0gF5iwGYugmbIn7E3":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"BJ1ZTLDHQO4ZavNlA5-30":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"nGu7c8LSiOmN8vIMYMdU3":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"nnNCBd0MGe96wrqCLtOms":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"oRQEb4F5rrnCRjhIjF7GB":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"gYzEPzwahOcDPdtbBs_09":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"ps7mhitSxFkWK_9AtltKk":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"Gy3O99qHzJkqXdGAXKr0b":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"_-RDXIIGgary9gs0-n86t":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"8Dd0hFRtJ6fWImLvPzRU4":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"C9UmJIV_XgV36YOkfqlTh":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"CkQLCFPmo8q4_UB3K0aOJ":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"7VpRs4F3tqvwiqS3pLt9c":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"I7SAw_HTuMsRpXDBMoKif":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"hB_KJ5r6755kDKQmvRBHd":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"Kyqz2-Cya0HnrcxppRkJ5":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"QdqUsqT4gDD8vNklMXKIm":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"9LQgkRfUYkpJAr7EISk0b":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"LSQOKoAURUb1z3Jgxb5I9":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"Zt9wovwOL5Ov9ICGNZMu5":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"AYEjcEpz18PKlDv0QQmyb":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"lK39u8xT2ZUygSp5RSWdQ":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"6Uvv8k9fPNmVLRBNtT1oB":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"scz8YIOtLxBGeTQNu8k6C":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"U5UzXhjO3Q4P1x_aAj4CQ":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"HcVMlchsx1q1IsT9q6zdr":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"dpqT4E_-33C_xeB_ai9mE":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"baHv6AVendxS4j3D1CyMg":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"8duai3cBZbfrhGftmm3Lg":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"qsQXGWgliFy35A_jDwjvE":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"8asUMHWKUpBJisWuQ7myf":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"kksfHZ764APpq7LDXdsqk":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"7TXaQkp7G3F6QbFyW0an8":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"M1ZvEEJWICN124UINovGS":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"PNhsKjbbXXn000fSE5ZBO":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"zFy6HY6FuQnQgKwAUt1oz":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"NjBX-VdWQGRyTHlaskSJp":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"dYOqhuexUuHITCj2MFE1T":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"v7eDcTl4IDlD7_-zx2xzj":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"2dq8RVx-PDlJbl4PuYZOr":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"ZPjeOyv7xbsmFEvlBgV5e":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"nldKdbaestgxLuxCNB0j2":{"uri":"/melonJS/docs/melonjs/World.html#step"},"URxqQgReZfhrPilCDgQrN":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"XgKPDKumgoNg1NJ5ryjf9":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"JI-si2P30pBpb-Nbyxep5":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"vXtQbXgU-F-FABgRWV6C3":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"AmQ-FeJHajRZDpwYqU4U_":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"r2PC4or53c_ltt_WlMMRe":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"HMJqmK4rnNFScGvtD53cR":{"uri":"/melonJS/docs/melonjs/World.html#union"},"rGIvGpFdzVNrCmAFoFfK2":{"uri":"/melonJS/docs/melonjs/World.html#update"},"KtR5hzs3Blj8sKGT3cd5j":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"uwjyFl4SQeGT0DrhTWWL6":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"rcPOaagPTcuV8oKiCUyHb":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"If_bbuhYXgfk3W2UxTEKA":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"c-rjnI-iBd7PX3sOi-AA4":{"uri":"global.html#AUTO"},"sXJOPe74Yx3w9pu5_eJKK":{"uri":"global.html#CANVAS"},"M3Hh4QRPTILszZRapI8ka":{"uri":"global.html#version"},"1yYl7UeXiu1Pu4IX-AOqR":{"uri":"global.html#WEBGL"},"LrTFAuLdInAkL5N6VUf3b":{"uri":"global.html#failureLoadedAssets"},"SmE7b2WUp6eNd7njxiO8V":{"uri":"global.html#imgList"},"gj6jr0a4qt30EnmX9ksOJ":{"uri":"global.html#initialized"},"pqietVR95cIP4tQe3DDZf":{"uri":"global.html#parserInitialized"},"xAnTc6iO6A5MRnn_Et6P9":{"uri":"global.html#parsers"},"c9rALwztEp3P8MGGqYreq":{"uri":"global.html#skipAutoInit"},"b49K14hmLlte5jjetpyIN":{"uri":"/melonJS/docs/melonjs/boot.html"},"sBOWI7XND7PqcOO99196j":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"LZve6doVDSoy4lXaHPzYR":{"uri":"/melonJS/docs/melonjs/fetchData.html"},"9B6fj5fjQN9QaPxnUlcEP":{"uri":"/melonJS/docs/melonjs/hasVideoFormat.html"},"C99YXGzBFQxxjf3qkQhay":{"uri":"/melonJS/docs/melonjs/pow.html"},"SeFs5c5DPAJM5LRdPVHuY":{"uri":"/melonJS/docs/melonjs/warning.html"},"IV1emSx_EDyA52h5gABWO":{"uri":"/melonJS/docs/melonjs/onresize.html"},"5Nf731HrQtO4iZ0lVE_cO":{"uri":"/melonJS/docs/melonjs/scale.html"}}} \ No newline at end of file +{"version":"1.0.0","metadata":{"linker":"(unsigned)","siteRoot":"melonJS/docs"},"root":{"id":"root-Y8IP5-qwyVwKq9MYIB626","name":"","type":"RootDoc","members":[{"id":"liMI_6KYTLpP_0KjOvsEU","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"3sZIPjFeRt3KxZ98ZNyuw","name":"stopOnAudioError","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

                  Specify either to stop on audio loading error or not
                  \nif true, melonJS will throw an exception and stop loading
                  \nif ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qoDWnPKlAMt_9eK9mo96h","name":"disable","brief":"","scope":"static","type":"FunctionDoc","description":"

                  disable audio output

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CCRR5pepQ-i9IDFnfvZ5u","name":"enable","brief":"","scope":"static","see":["audio.disable"],"type":"FunctionDoc","description":"

                  enable audio output
                  \nonly useful if audio supported and previously disabled through

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3z2z9ig55xFILKN3JN60Y","name":"fade","brief":"","scope":"static","type":"FunctionDoc","description":"

                  Fade a currently playing sound between two volumee.

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"from","optional":false,"description":"

                  Volume to fade from (0.0 to 1.0).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"to","optional":false,"description":"

                  Volume to fade to (0.0 to 1.0).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

                  Time in milliseconds to fade.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will fade.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qRIAWT4k2Ed6tSSTqKalG","name":"getCurrentTrack","brief":"","scope":"static","type":"FunctionDoc","description":"

                  returns the current track Id

                  ","params":[],"returns":[{"description":"

                  audio track name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"IPTYTrTUne3LP8SexUYYY","name":"getVolume","brief":"","scope":"static","type":"FunctionDoc","description":"

                  get the default global volume

                  ","params":[],"returns":[{"description":"

                  current volume value in Float [0.0 - 1.0] .

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZfI7x0iFmOM_zZzxk9CLO","name":"hasAudio","brief":"","scope":"static","type":"FunctionDoc","description":"

                  check if audio (HTML5 or WebAudio) is supported

                  ","params":[],"returns":[{"description":"

                  return true if audio (HTML5 or WebAudio) is supported

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aPevG6Ys35LTaUnFJRIed","name":"hasFormat","brief":"","scope":"static","type":"FunctionDoc","description":"

                  check if the given audio format is supported

                  ","params":[{"identifier":"codec","optional":false,"description":"

                  the audio format to check for support

                  ","dataType":{"tokens":[{"value":"\"mp3\" | \"mpeg\" | \"opus\" | \"ogg\" | \"oga\" | \"wav\" | \"aac\" | \"caf\" | \"m4a\" | \"m4b\" | \"mp4\" | \"weba\" | \"webm\" | \"dolby\" | \"flac\"","kind":"canonical"},{"value":"\"mp3\"","kind":"canonical"},{"value":"\"mpeg\"","kind":"canonical"},{"value":"\"opus\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"oga\"","kind":"canonical"},{"value":"\"wav\"","kind":"canonical"},{"value":"\"aac\"","kind":"canonical"},{"value":"\"caf\"","kind":"canonical"},{"value":"\"m4a\"","kind":"canonical"},{"value":"\"m4b\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"weba\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"dolby\"","kind":"canonical"},{"value":"\"flac\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}}],"returns":[{"description":"

                  return true if the given audio format is supported

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2ziPTowmn17aO_OctSXov","name":"init","brief":"","examples":[{"caption":"","code":"// initialize the \"sound engine\", giving \"webm\" as default desired audio format, and \"mp3\" as a fallback\nif (!me.audio.init(\"webm,mp3\")) {\n alert(\"Sorry but your browser does not support html 5 audio !\");\n return;\n}"}],"scope":"static","type":"FunctionDoc","description":"

                  Initialize and configure the audio support.
                  \nFor a maximum browser coverage the recommendation is to use at least two o...","params":[{"identifier":"format","optional":true,"default":"\"mp3\"","description":"

                  audio format to prioritize ("mp3"|"mpeg"|"opus"|"ogg"|"oga"|"wav&qu...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                  Indicates whether audio initialization was successful

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uL4H9vIOQhmIG9GIrH1xN","name":"load","brief":"","scope":"static","type":"FunctionDoc","description":"

                  Load an audio file

                  ","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onloadcb","optional":true,"description":"

                  function to be called when the resource is loaded

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerrorcb","optional":true,"description":"

                  function to be called in case of error

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                  the amount of asset loaded (always 1 if successfull)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sva77drwXuH_LpKVZtN2O","name":"mute","brief":"","examples":[{"caption":"","code":"// mute the background music\nme.audio.mute(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

                  mute or unmute the specified sound, but does not pause the playback.

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will mute.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"mute","optional":true,"default":"true","description":"

                  True to mute and false to unmute

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"4rm5z2iprde7D8cwXhwEC","name":"muteAll","brief":"","scope":"static","type":"FunctionDoc","description":"

                  mute all audio

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zZgnqxIx95hNB5IVRHPEe","name":"muted","brief":"","scope":"static","type":"FunctionDoc","description":"

                  Returns true if audio is muted globally.

                  ","params":[],"returns":[{"description":"

                  true if audio is muted globally

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kz2iqNYA8wXrAFE5w26CY","name":"pause","brief":"","examples":[{"caption":"","code":"me.audio.pause(\"cling\");"}],"scope":"static","type":"FunctionDoc","description":"

                  pause the specified sound on all channels
                  \nthis function does not reset the currentTime property

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will pause.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"N93M_RXJLxXgRz_yp4SNc","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"scope":"static","type":"FunctionDoc","description":"

                  pause the current audio track

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mwTogKLjNil5HL3V_TL1_","name":"play","brief":"","examples":[{"caption":"","code":"// play the \"cling\" audio clip\nme.audio.play(\"cling\");\n// play & repeat the \"engine\" audio clip\nme.audio.play(\"engine\", true);\n// play the \"gameover_sfx\" audio clip and call myFunc when finished\nme.audio.play(\"gameover_sfx\", false, myFunc);\n// play the \"gameover_sfx\" audio clip with a lower volume level\nme.audio.play(\"gameover_sfx\", false, null, 0.5);"}],"scope":"static","type":"FunctionDoc","description":"

                  play the specified sound

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"loop","optional":true,"default":"false","description":"

                  loop audio

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"onend","optional":true,"description":"

                  Function to call when sound instance ends playing.

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"volume","optional":true,"default":"default","description":"

                  Float specifying volume (0.0 - 1.0 values accepted).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  the sound instance ID.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tdj8TWsv-MNAXeiZwRUg-","name":"playTrack","brief":"","examples":[{"caption":"","code":"me.audio.playTrack(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

                  play the specified audio track
                  \nthis function automatically set the loop property to true
                  \nand keep track of the cur...","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio track name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"volume","optional":true,"default":"default","description":"

                  Float specifying volume (0.0 - 1.0 values accepted).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  the sound instance ID.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CXLvqrocQOR5IiFryf0S1","name":"rate","brief":"","examples":[{"caption":"","code":"// get the playback rate of the background music\nlet rate = me.audio.rate(\"dst-gameforest\");\n// speed up the playback of the background music\nme.audio.rate(\"dst-gameforest\", 2.0);"}],"scope":"static","type":"FunctionDoc","description":"

                  get or set the rate of playback for a sound.

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"rate","optional":true,"variadic":true,"description":"

                  playback rate : 0.5 to 4.0, with 1.0 being normal speed.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will be changed.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  return the current playback rate (if no extra parameters were given)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"frI5tLKRGINmlilEQqcDe","name":"resume","brief":"","examples":[{"caption":"","code":"// play a audio clip\nlet id = me.audio.play(\"myClip\");\n...\n// pause it\nme.audio.pause(\"myClip\", id);\n...\n// resume\nme.audio.resume(\"myClip\", id);"}],"scope":"static","type":"FunctionDoc","description":"

                  resume the specified sound on all channels

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will resume.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ry-R2v9wOAYmqebJRKlyq","name":"resumeTrack","brief":"","examples":[{"caption":"","code":"// play an awesome music\nme.audio.playTrack(\"awesome_music\");\n// pause the audio track\nme.audio.pauseTrack();\n// resume the music\nme.audio.resumeTrack();"}],"scope":"static","type":"FunctionDoc","description":"

                  resume the previously paused audio track

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U8Je6tiE7ZpXQfURiy1k4","name":"seek","brief":"","examples":[{"caption":"","code":"// return the current position of the background music\nlet current_pos = me.audio.seek(\"dst-gameforest\");\n// set back the position of the background music to the beginning\nme.audio.seek(\"dst-gameforest\", 0);"}],"scope":"static","type":"FunctionDoc","description":"

                  get/set the position of playback for a sound.

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"seek","optional":true,"variadic":true,"description":"

                  the position to move current playback to (in seconds).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will changed.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                  return the current seek position (if no extra parameters were given)

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XvXk8BVjoG0AZ7kaexwf8","name":"setVolume","brief":"","scope":"static","type":"FunctionDoc","description":"

                  set the default global volume

                  ","params":[{"identifier":"volume","optional":false,"description":"

                  Float specifying volume (0.0 - 1.0 values accepted).

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"E-cNeHdmDOJYpUtlaQkdt","name":"stop","brief":"","examples":[{"caption":"","code":"me.audio.stop(\"cling\");"}],"scope":"static","type":"FunctionDoc","description":"

                  stop the specified sound on all channels

                  ","params":[{"identifier":"sound_name","optional":true,"description":"

                  audio clip name (case sensitive). If none is passed, all sounds are stopped.

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will stop.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hwmGMYCnaSCjRmwjenhG5","name":"stopTrack","brief":"","examples":[{"caption":"","code":"// play a awesome music\nme.audio.playTrack(\"awesome_music\");\n// stop the current music\nme.audio.stopTrack();"}],"scope":"static","see":["audio.playTrack"],"type":"FunctionDoc","description":"

                  stop the current audio track

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GBPoWhpEl_-yW5V5ONAT1","name":"unload","brief":"","examples":[{"caption":"","code":"me.audio.unload(\"awesome_music\");"}],"scope":"static","type":"FunctionDoc","description":"

                  unload specified audio track to free memory

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio track name - case sensitive

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                  true if unloaded

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BNMML841JQ9Latf_v2DrO","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"scope":"static","type":"FunctionDoc","description":"

                  unload all audio to free memory

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dLe5ln_D4k-CQj2DNgSWk","name":"unmute","brief":"","scope":"static","type":"FunctionDoc","description":"

                  unmute the specified sound

                  ","params":[{"identifier":"sound_name","optional":false,"description":"

                  audio clip name

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"id","optional":true,"description":"

                  the sound instance ID. If none is passed, all sounds in group will unmute.

                  ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xapu6Zu-zg6gSyTUXfHT-","name":"unmuteAll","brief":"","scope":"static","type":"FunctionDoc","description":"

                  unmute all audio

                  ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"n2lVqS8NegC2pz--jhZRI","name":"collision","brief":"","type":"NSDoc","description":"

                  Collision detection (and projection-based collision response) of 2D shapes.
                  \nBased on the Separating Axis Theorem and s...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xDVI8clvezCKnWm81jCnh","name":"types","brief":"","examples":[{"caption":"","code":" // set the body collision type\n myEntity.body.collisionType = me.collision.types.PLAYER_OBJECT;\n\n // filter collision detection with collision shapes, enemies and collectables\n myEntity.body.setCollisionMask(\n me.collision.types.WORLD_SHAPE |\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.COLLECTABLE_OBJECT\n );\n\n // User-defined collision types are defined using BITWISE LEFT-SHIFT:\n game.collisionTypes = {\n LOCKED_DOOR : me.collision.types.USER << 0,\n OPEN_DOOR : me.collision.types.USER << 1,\n LOOT : me.collision.types.USER << 2,\n };\n\n // Set collision type for a door entity\n myDoorEntity.body.collisionType = game.collisionTypes.LOCKED_DOOR;\n\n // Set collision mask for the player entity, so it collides with locked doors and loot\n myPlayerEntity.body.setCollisionMask(\n me.collision.types.ENEMY_OBJECT |\n me.collision.types.WORLD_SHAPE |\n game.collisionTypes.LOCKED_DOOR |\n game.collisionTypes.LOOT\n );"}],"readonly":true,"scope":"static","see":["Body.setCollisionMask","Body.collisionType"],"type":"EnumDoc","description":"

                  Enum for collision type values.

                  ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"V1C0D3_4CFgehp-pq1Hgo","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  e.g. doors

                  "},{"id":"UeK6_PZkaw_TvPoyikiHP","name":"ALL_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  all of the above (including user-defined types)

                  "},{"id":"rPsOpEdSccZer5eC9okDp","name":"COLLECTABLE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  collectable objects

                  "},{"id":"aF_v33yQwCHdJblNmDSM3","name":"ENEMY_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  enemies objects

                  "},{"id":"CdzYJjmZ2cctsfwG2SUQh","name":"NO_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  to disable collision check

                  "},{"id":"5TzbHITjZ3TtslWsj3qUL","name":"NO_OBJECT","brief":"

                  to disable collision check

                  ","defaultValue":"0","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vBalrE1Riznl9DY-LQ_83","name":"NPC_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  non playable characters

                  "},{"id":"Nro46Wq5o_NNdeUpCtInJ","name":"PLAYER_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  playbable characters

                  "},{"id":"BE-rQqgr24DYnpA-6UqhF","name":"PROJECTILE_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  e.g. missiles

                  "},{"id":"FWGmaY4jcKYrxt1F8LXkr","name":"USER","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  user-defined collision types (see example)

                  "},{"id":"2eGh2R638PFhx7fX01Fsh","name":"WORLD_SHAPE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  e.g. walls; for map collision shapes

                  "}]},{"id":"dgjyCOw_O6xbwtm-askfF","name":"maxChildren","brief":"","access":"public","defaultValue":"8","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

                  The maximum number of children that a quadtree node can contain before it is split into sub-nodes.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZAoNTgwgboEBE9o5bXy7R","name":"maxDepth","brief":"","access":"public","defaultValue":"4","scope":"static","see":["game.world.broadphase"],"type":"PropertyDoc","description":"

                  The maximum number of levels that the quadtree will create.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H-h7U-cknsgGfhIaB9i09","name":"rayCast","brief":"","access":"public","examples":[{"caption":"","code":" // define a line accross the viewport\n let ray = new me.Line(\n // absolute position of the line\n 0, 0, [\n // starting point relative to the initial position\n new me.Vector2d(0, 0),\n // ending point\n new me.Vector2d(me.game.viewport.width, me.game.viewport.height)\n ]);\n\n // check for collition\n result = me.collision.rayCast(ray);\n\n if (result.length > 0) {\n // ...\n }"}],"scope":"instance","type":"MethodDoc","description":"

                  Checks for object colliding with the given line

                  ","params":[{"identifier":"line","optional":false,"description":"

                  line to be tested for collision

                  ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}},{"identifier":"result","optional":true,"description":"

                  a user defined array that will be populated with intersecting physic objects.

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                  an array of intersecting physic objects

                  ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"spiXJEeppebxKODQSEom5","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

                  device type and capabilities

                  ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"8FxgbhYd32XcG1u5B_rPy","name":"platform","brief":"","readonly":true,"type":"NSDoc","description":"

                  The device platform type

                  ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"qQoFoBOKsL811NxWXD2Ui","name":"android","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is an Android platform

                  "},{"id":"mqrX2UPfg_SV5lqGGWHNR","name":"android2","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is an Android 2.x platform

                  "},{"id":"euTxZicLXNprgsWSx1mp4","name":"BlackBerry","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is a BlackBerry platform

                  "},{"id":"4bR1PXnJHg3UEqZ3NyYFb","name":"chromeOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is running on ChromeOS.

                  "},{"id":"h8CFR-uGpfaw4JY3HPcZ6","name":"ejecta","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if running under Ejecta

                  "},{"id":"2uVqHDl5s-W6Kcu3jXdrY","name":"iOS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is an iOS platform

                  "},{"id":"6mqWlXg47JBgy6dw-Dza7","name":"isMobile","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if a mobile device

                  "},{"id":"e1-W7o8Bhts-3LLVeAD8P","name":"isWeixin","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if running under Wechat

                  "},{"id":"Aek_VsUjt1Z4YMZtdVVGs","name":"Kindle","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is a Kindle platform

                  "},{"id":"XHa418MQMZJE45iW6e_St","name":"linux","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is a Linux platform

                  "},{"id":"ps8BMaUmsEx3cNWK-AqPz","name":"nodeJS","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if running under node.js

                  "},{"id":"DwNU0Kfqqc9s74wLphTiK","name":"ua","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  the user agent string for the current device

                  "},{"id":"oNdzW534B5wMG23--M5AN","name":"wp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                  true if the device is a Windows Phone platform

                  "}]},{"id":"TOh9VcfNypOz3KgZH0Bkz","name":"accelerationX","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                  contains the g-force acceleration along the x-axis.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"InzI8mJhzQAaT3oQ110r8","name":"accelerationY","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                  contains the g-force acceleration along the y-axis.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EOUwYfQ6E6aCYkpmjoDPT","name":"accelerationZ","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchAccelerometer"],"type":"PropertyDoc","description":"

                  contains the g-force acceleration along the z-axis.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sTM5svomtzo5lAdjjC0q4","name":"alpha","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                  Device orientation Alpha property. Gives angle based on the rotation of the phone around its z axis.\nThe z-axis is perpend...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yJys_WmwbFGblJuRVHJJ8","name":"autoFocus","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

                  Specify whether to automatically bring the window to the front

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OEi3rC5LRKiotGahMbZqy","name":"beta","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                  Device orientation Beta property. Gives angle on tilting a portrait held phone forward or backward

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vY3BJSIlFkA9GY-DLwffe","name":"devicePixelRatio","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iKeSm9SlEAmnicmoFQ5lK","name":"gamma","brief":"","access":"public","defaultValue":"0","readonly":true,"see":["device.watchDeviceOrientation"],"type":"PropertyDoc","description":"

                  Device orientation Gamma property. Gives angle on tilting a portrait held phone left or right

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XF_VWK_c-ufIUyVT-A_3J","name":"hasAccelerometer","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                  Browser accelerometer capabilities

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_dg220mALIbRH1oN5JKj","name":"hasDeviceOrientation","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                  Browser device orientation

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LwB0QtKD7N7OTLEbYetGD","name":"hasFullscreenSupport","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Browser full screen support

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4tgOh3RqPQoUw7PMRunmh","name":"hasHTML5Audio","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Device HTML5Audio Support

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJnrBvM9covhs54o_7xHC","name":"hasPointerLockSupport","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Browser pointerlock api support

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qXZ85U3sZkYUKwdppHNy4","name":"hasVideo","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Device Video Support

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DsqD9jAcOpUIzxEQbHXaK","name":"hasWebAudio","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                  Device WebAudio Support

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OCkzSxcS2VoAwsPSDTs8Y","name":"isMobile","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  equals to true if a mobile device.\n(Android | iPhone | iPad | iPod | BlackBerry | Windows Phone | Kindle)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WJgC9nvZCKqVsCwCmCe2u","name":"language","brief":"","access":"public","readonly":true,"see":["http://www.w3schools.com/tags/ref_language_codes.asp"],"type":"PropertyDoc","description":"

                  a string representing the preferred language of the user, usually the language of the browser UI.\n(will default to "e...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jAyyNubQ7H13LSb_tWSNp","name":"localStorage","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Browser Local Storage capabilities
                  \n(this flag will be set to false if cookies are blocked)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iN6L8tPpJ3h-kkLDgau2B","name":"maxTouchPoints","brief":"","access":"public","examples":[{"caption":"","code":"if (me.device.maxTouchPoints > 1) {\n // device supports multi-touch\n}"}],"readonly":true,"type":"PropertyDoc","description":"

                  the maximum number of simultaneous touch contact points are supported by the current device.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DVsoz44BziYGJdIb2A4hl","name":"nativeBase64","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Browser Base64 decoding capability

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r-rAsUw3uyXrsSZbMykAG","name":"offscreenCanvas","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  equals to true if the device browser supports OffScreenCanvas.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TpVDlJV2oZc_1-kH_JHEH","name":"pauseOnBlur","brief":"","access":"public","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.pauseOnBlur"],"type":"PropertyDoc","description":"

                  Specify whether to pause the game when losing focus

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zinwXyV0WYHq0fpPwipJi","name":"platform","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  the device platform type

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-M8olIUrbmFW_A6kgADG5","name":"pointerEvent","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                  True if the browser supports Pointer Events

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NV5AHmO0cZUFDvWGSGRcV","name":"resumeOnFocus","brief":"","access":"public","defaultValue":"true","deprecated":"since 15.4.0","see":["Application.resumeOnFocus"],"type":"PropertyDoc","description":"

                  Specify whether to unpause the game when gaining focus

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xMolKZdlm1QuGFphnaClz","name":"screenOrientation","brief":"","access":"public","readonly":true,"see":["https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange"],"type":"PropertyDoc","description":"

                  Supports the ScreenOrientation API

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tDSciiSkoukbyTkq7P2eF","name":"sound","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Returns true if the browser/device has audio capabilities.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c9wa3KOl90Q2_9KyZxspf","name":"stopOnBlur","brief":"","access":"public","defaultValue":"false","deprecated":"since 15.4.0","see":["Application.stopOnBlur"],"type":"PropertyDoc","description":"

                  Specify whether to stop the game when losing focus or not.\nThe engine restarts on focus if this is enabled.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oi_nMVdCNJjQEwXdEIdB7","name":"touch","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  Touch capabilities (support either Touch or Pointer events)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OW47a3SoGG0yZ8TvoMnku","name":"touchEvent","brief":"","access":"public","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                  True if the browser supports Touch Events

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IPakbKEs0ltIgKxEkbB3w","name":"wheel","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                  W3C standard wheel events

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xVUXIwoNFDNzhgPq_Kw5y","name":"enableSwipe","brief":"","access":"public","type":"FunctionDoc","description":"

                  enable/disable swipe on WebView.

                  ","params":[{"identifier":"enable","optional":true,"default":"true","description":"

                  enable or disable swipe.

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"77Je7KCZTGMau2oLcPsMb","name":"exitFullscreen","brief":"","access":"public","type":"FunctionDoc","description":"

                  Exit fullscreen mode. Requires fullscreen support from the browser/device.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L9L_vpcHGBgo9H2-GRWbX","name":"focus","brief":"","access":"public","examples":[{"caption":"","code":"if (clicked) {\n me.device.focus();\n}"}],"type":"FunctionDoc","description":"

                  Makes a request to bring this device window to the front.

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NMYtnW4quZwPZVA-2ZBX6","name":"getElement","brief":"","access":"public","type":"FunctionDoc","description":"

                  return the DOM element for the given element name or HTMLElement object

                  ","params":[{"identifier":"element","optional":false,"description":"

                  the parent element name or a HTMLElement object

                  ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                  the corresponding DOM Element or null if not existing

                  ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1zMoLnF6Ry_XQkDT_SlzG","name":"getElementBounds","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

                  returns the size of the given HTMLElement and its position relative to the viewport\n
                  an HTMLElement object

                  ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                  the size and position of the element relatively to the viewport

                  ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wHShpr37_9cGfxwBF-VEt","name":"getParentBounds","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/DOMRect"],"type":"FunctionDoc","description":"

                  returns the size of the given HTMLElement Parent and its position relative to the viewport\n
                  an HTMLElement object

                  ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                  the size and position of the given element parent relative to the viewport

                  ","dataType":{"tokens":[{"value":"DOMRect","kind":"canonical"},{"value":"DOMRect","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y-bEZrlYH0pFkHYynoQcv","name":"getParentElement","brief":"","access":"public","type":"FunctionDoc","description":"

                  return the parent DOM element for the given parent name or HTMLElement object

                  ","params":[{"identifier":"element","optional":false,"description":"

                  the parent element name or a HTMLElement object

                  ","dataType":{"tokens":[{"value":"string | HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                  the parent Element

                  ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1FA2U1K1QnjUOGQdGfj15","name":"getScreenOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation"],"type":"FunctionDoc","description":"

                  Return a string representing the orientation of the device screen.\nIt can be "any", "natural", "l...","params":[],"returns":[{"description":"

                  the screen orientation

                  ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"h_gGJhyT8GiR3Qaq66n-d","name":"getStorage","brief":"","access":"public","see":["save"],"type":"FunctionDoc","description":"

                  return the device storage

                  ","params":[{"identifier":"type","optional":true,"default":"\"local\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                  a reference to the device storage

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"VKu36TF7Nk9wgjMXrkMXy","name":"isFullscreen","brief":"","access":"public","type":"FunctionDoc","description":"

                  Returns true if the browser/device is in full screen mode.

                  ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BE5V0ZRbjMcAz3QZewhWy","name":"isLandscape","brief":"","access":"public","type":"FunctionDoc","description":"

                  return true if the device screen orientation is in Portrait mode

                  ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"u0mOoQ_yTF8zXxVvkJFfU","name":"isPortrait","brief":"","access":"public","type":"FunctionDoc","description":"

                  return true if the device screen orientation is in Portrait mode

                  ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HMImWI1tZcKMn0qkL9fj8","name":"isWebGLSupported","brief":"","access":"public","type":"FunctionDoc","description":"

                  returns true if the device supports WebGL

                  ","params":[{"identifier":"options","optional":true,"description":"

                  context creation options

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.failIfMajorPerformanceCaveat","optional":true,"default":"true","description":"

                  If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than t...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                  true if WebGL is supported

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"o5X6x_PCPK2_at6m_N0Ly","name":"lockOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

                  locks the device screen into the specified orientation.
                  \nThis method only works for installed Web apps or for Web pages...","params":[{"identifier":"orientation","optional":false,"description":"

                  The orientation into which to lock the screen.

                  ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[{"description":"

                  true if the orientation was unsuccessfully locked

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7w1dmPE7BZFy1Dxvrn_y8","name":"onReady","brief":"","access":"public","examples":[{"caption":"","code":" // small game skeleton\n let game = {\n // called by the me.device.onReady function\n onload = function () {\n // init video\n if (!me.video.init('screen', 640, 480, true)) {\n alert(\"Sorry but your browser does not support html 5 canvas.\");\n return;\n }\n\n // initialize the \"audio\"\n me.audio.init(\"mp3,ogg\");\n\n // set callback for ressources loaded event\n me.loader.onload = this.loaded.bind(this);\n\n // set all ressources to be loaded\n me.loader.preload(game.assets);\n\n // load everything & display a loading screen\n me.state.change(me.state.LOADING);\n };\n\n // callback when everything is loaded\n loaded = function () {\n // define stuff\n // ....\n\n // change to the menu screen\n me.state.change(me.state.PLAY);\n }\n }; // game\n\n // \"bootstrap\"\n me.device.onReady(function () {\n game.onload();\n });"}],"type":"FunctionDoc","description":"

                  specify a function to execute when the Device is fully loaded and ready

                  ","params":[{"identifier":"fn","optional":false,"description":"

                  the function to be executed

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"SZd6Qo_lDuh5AjIwx0yrv","name":"requestFullscreen","brief":"","access":"public","examples":[{"caption":"","code":"// add a keyboard shortcut to toggle Fullscreen mode on/off\nme.input.bindKey(me.input.KEY.F, \"toggleFullscreen\");\nme.event.on(me.event.KEYDOWN, function (action, keyCode, edge) {\n // toggle fullscreen on/off\n if (action === \"toggleFullscreen\") {\n me.device.requestFullscreen();\n } else {\n me.device.exitFullscreen();\n }\n});"}],"type":"FunctionDoc","description":"

                  Triggers a fullscreen request. Requires fullscreen support from the browser/device.

                  ","params":[{"identifier":"element","optional":true,"description":"

                  the element to be set in full-screen mode.

                  ","dataType":{"tokens":[{"value":"Element","kind":"canonical"},{"value":"Element","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5khOk98HTj3DkWKVH_5CS","name":"unlockOrientation","brief":"","access":"public","see":["https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation"],"type":"FunctionDoc","description":"

                  unlocks the device screen into the specified orientation.
                  \nThis method only works for installed Web apps or for Web pag...","params":[],"returns":[{"description":"

                  true if the orientation was unsuccessfully unlocked

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XsVqFxjzTB_09O9qkbuK0","name":"unwatchAccelerometer","brief":"","access":"public","type":"FunctionDoc","description":"

                  unwatch Accelerometor event

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lm43_S_2A0yZfgEYBvuRf","name":"unwatchDeviceOrientation","brief":"","access":"public","type":"FunctionDoc","description":"

                  unwatch Device orientation event

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BXv6MczFBZhXNP7klzh3N","name":"vibrate","brief":"","access":"public","examples":[{"caption":"","code":"// vibrate for 1000 ms\nme.device.vibrate(1000);\n// or alternatively\nme.device.vibrate([1000]);\n// vibrate for 50 ms, be still for 100 ms, and then vibrate for 150 ms:\nme.device.vibrate([50, 100, 150]);\n// cancel any existing vibrations\nme.device.vibrate(0);"}],"type":"FunctionDoc","description":"

                  the vibrate method pulses the vibration hardware on the device,
                  \nIf the device doesn't support vibration, this method ...","params":[{"identifier":"pattern","optional":false,"description":"

                  pattern of vibration and pause intervals

                  ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"qqtE9wV2QLnp-t7ksbnU4","name":"watchAccelerometer","brief":"","access":"public","examples":[{"caption":"","code":"// try to enable device accelerometer event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchAccelerometer() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device accelerometer event\n }\n});"}],"see":["device.accelerationX","device.accelerationY","device.accelerationZ"],"type":"FunctionDoc","description":"

                  Enable monitor of the device accelerator to detect the amount of physical force of acceleration the device is receiving.\n(...","params":[],"returns":[{"description":"

                  false if not supported or permission not granted by the user

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ey-Cg3VyYm9m5n_Y5Jyxu","name":"watchDeviceOrientation","brief":"","access":"public","examples":[{"caption":"","code":"// try to enable device orientation event on user gesture\nme.input.registerPointerEvent(\"pointerleave\", me.game.viewport, function() {\n if (me.device.watchDeviceOrientation() === true) {\n // Success\n me.input.releasePointerEvent(\"pointerleave\", me.game.viewport);\n } else {\n // ... fail at enabling the device orientation event\n }\n});"}],"see":["device.alpha","device.beta","device.gamma"],"type":"FunctionDoc","description":"

                  Enable monitor of the device orientation to detect the current orientation of the device as compared to the Earth coordina...","params":[],"returns":[{"description":"

                  false if not supported or permission not granted by the user

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"gClSnucaAFwJz0_ZaRyeG","name":"event","brief":"","type":"NSDoc","description":"

                  an event system based on nodeJS EventEmitter interface

                  ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"LX7Qk4TkWpq38hCeC-96n","name":"BLUR","brief":"","access":"public","defaultValue":"\"me.blur\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event generated when the main browser or window is losing focus

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aFQ7WczcIWSySjBx1oeMZ","name":"BOOT","brief":"","access":"public","defaultValue":"\"me.boot\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event when the system is booting

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tPeHkv_yRnu7zUJMax4_4","name":"CANVAS_ONRESIZE","brief":"","access":"public","defaultValue":"\"canvas.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the canvas is resized
                  \n(this usually follows a WINDOW_ONRESIZE event).
                  \nData passed : {number} canva...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_BzlnQGtIDhTwrOqKd2-Y","name":"DOM_READY","brief":"","access":"public","defaultValue":"\"dom_ready\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event when the DOM is Ready is booting

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ibxUn11DgyFJumW9cuCBT","name":"DRAGEND","brief":"","access":"public","defaultValue":"\"me.game.dragend\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for dragend events on a Draggable entity
                  \nData passed:\n{object} the drag event
                  \n{object} the Draggable entit...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RH6CxxA6ex4GeSQfZAJLP","name":"DRAGSTART","brief":"","access":"public","defaultValue":"\"me.game.dragstart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for dragstart events on a Draggable entity
                  \nData passed:\n{object} the drag event
                  \n{object} the Draggable ent...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3FwduoEtOAsdxSMb6iksz","name":"FOCUS","brief":"","access":"public","defaultValue":"\"me.focus\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event generated when the main browser or window is gaining back focus

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XetTB-XR5wVVlxaS6NFIT","name":"GAME_AFTER_DRAW","brief":"","access":"public","defaultValue":"\"me.game.afterDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for the start of the draw loop\nData passed : {number} time the current time stamp

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JCyoKHkHSTjjqowFRqdI6","name":"GAME_AFTER_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.afterUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for the end of the update loop\nData passed : {number} time the current time stamp

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AczxnaCsaB2v4c5cVyh3L","name":"GAME_BEFORE_DRAW","brief":"","access":"public","defaultValue":"\"me.game.beforeDraw\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for the end of the draw loop\nData passed : {number} time the current time stamp

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uvrvcntmo6v0JN9gJ5PeD","name":"GAME_BEFORE_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.beforeUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the engine is about to start a new game loop\nData passed : {number} time the current time stamp

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xa-DNdCDF1pUzIKJsenED","name":"GAME_INIT","brief":"","access":"public","defaultValue":"\"me.game.onInit\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the game manager is initialized
                  \nData passed : none

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"twfy974c2WHdVwnUM--0M","name":"GAME_RESET","brief":"","access":"public","defaultValue":"\"me.game.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the game manager is resetted
                  \nData passed : none

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yRS3iRvcn23q_SRjG_Xpd","name":"GAME_UPDATE","brief":"","access":"public","defaultValue":"\"me.game.onUpdate\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the game is updated (will be impacted by frame skip, frame interpolation and pause/resume state)
                  \nData ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iFBSWBr5v4Mra4evD3EQ8","name":"GAMEPAD_CONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.connected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when a gamepad is connected
                  \nData passed : {object} gamepad object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ItVrCr2ZSVR97teDXUT-q","name":"GAMEPAD_DISCONNECTED","brief":"","access":"public","defaultValue":"\"gamepad.disconnected\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when a gamepad is disconnected
                  \nData passed : {object} gamepad object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TGaAr5gw5iXhlCz9kDPlU","name":"GAMEPAD_UPDATE","brief":"","access":"public","defaultValue":"\"gamepad.update\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when gamepad button/axis state is updated
                  \nData passed : {number} index
                  \nData passed : {string} type : &...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_oE_r49at8PK0afTHiMtM","name":"KEYDOWN","brief":"","access":"public","defaultValue":"\"me.input.keydown\"","examples":[{"caption":"","code":" me.input.bindKey(me.input.KEY.X, \"jump\", true); // Edge-triggered\n me.input.bindKey(me.input.KEY.Z, \"shoot\"); // Level-triggered\n me.event.on(me.event.KEYDOWN, (action, keyCode, edge) => {\n // Checking bound keys\n if (action === \"jump\") {\n if (edge) {\n this.doJump();\n }\n\n // Make character fall slower when holding the jump key\n this.vel.y = this.body.gravity;\n }\n });"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for pressing a binded key
                  \nData passed : {string} user-defined action, {number} keyCode,\n{boolean} edge state {\n // Checking unbound keys\n if (keyCode == me.input.KEY.ESC) {\n if (me.state.isPaused()) {\n me.state.resume();\n }\n else {\n me.state.pause();\n }\n }\n});"}],"readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for releasing a binded key
                  \nData passed : {string} user-defined action, {number} keyCode

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tY2cK0e5iEOrVVz5pcovr","name":"LEVEL_LOADED","brief":"","access":"public","defaultValue":"\"me.game.onLevelLoaded\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when a level is loaded
                  \nData passed : {string} Level Name

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sUKI_Z0gOxTVeroFsK8pT","name":"LOADER_COMPLETE","brief":"","access":"public","defaultValue":"\"me.loader.onload\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when everything has loaded
                  \nData passed : none

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5pBnPocArk1YvTgadyn_w","name":"LOADER_ERROR","brief":"","access":"public","defaultValue":"\"me.loader.onError\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when an error occur during preloading
                  \nData passed : {Resource} resource object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LbBTy_9aB_ygJ1nc3P9iu","name":"LOADER_PROGRESS","brief":"","access":"public","defaultValue":"\"me.loader.onProgress\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for displaying a load progress indicator
                  \nData passed : {number} [0 .. 1], {Resource} resource object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMAYQYZveTQZjmRrV0n5Y","name":"ONCONTEXT_RESTORED","brief":"","access":"public","defaultValue":"\"renderer.contextrestored\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the current context is restored
                  \nData passed : {me.Renderer} the current renderer instance`

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5feKm6nkdEEnTTdC76Ftp","name":"POINTERLOCKCHANGE","brief":"","access":"public","defaultValue":"\"me.event.pointerlockChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for onPointerLockChange event
                  \nData passed : {boolean} pointer lock status (true/false)

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p0KJbXWDW5re-xSKCDl5M","name":"POINTERMOVE","brief":"","access":"public","defaultValue":"\"me.event.pointermove\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for pointermove events on the screen area
                  \nData passed : {me.Pointer} a Pointer object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ki8Z9cDNs4P1kfeXOcHEU","name":"STAGE_RESET","brief":"","access":"public","defaultValue":"\"me.stage.onReset\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when a stage is resetted

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tvYk7yG-zRKY_RL3K2zcU","name":"STATE_CHANGE","brief":"","access":"public","defaultValue":"\"me.state.onChange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the changing to a different stage

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_rdUuEOiYPn-ZETZkcmoo","name":"STATE_PAUSE","brief":"","access":"public","defaultValue":"\"me.state.onPause\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event when the game is paused
                  \nData passed : none

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hktbjQ0XUucjJnltD3t3q","name":"STATE_RESTART","brief":"","access":"public","defaultValue":"\"me.state.onRestart\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the game is restarted
                  \nData passed : {number} time in ms the game was stopped

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CaWJXHGLQjZZclvTNQ3DZ","name":"STATE_RESUME","brief":"","access":"public","defaultValue":"\"me.state.onResume\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event for when the game is resumed
                  \nData passed : {number} time in ms the game was paused

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VVmHtrgTVg-SdClXZoE20","name":"STATE_STOP","brief":"","access":"public","defaultValue":"\"me.state.onStop\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event when the game is stopped
                  \nData passed : none

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xXMeBaUo48w1VCdRANpGv","name":"TICK","brief":"","access":"public","defaultValue":"\"me.tick\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  event generated when the system update the engine and the renderer by one step

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sGy7B6aBmLp_qa4H2po9l","name":"VIDEO_INIT","brief":"","access":"public","defaultValue":"\"me.video.onInit\"","readonly":true,"see":["video.init","event.on"],"type":"PropertyDoc","description":"

                  event for when the video is initialized
                  \nData passed : {Renderer} the renderer instance created

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xGTFhModUJBgqqOqZdc03","name":"VIEWPORT_ONCHANGE","brief":"","access":"public","defaultValue":"\"viewport.onchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the viewport position is updated
                  \nData passed : {me.Vector2d} viewport position vector

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K4Pgg-c7LVnojgJwIrg_-","name":"VIEWPORT_ONRESIZE","brief":"","access":"public","defaultValue":"\"viewport.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the viewport is resized
                  \n(this usually follows a WINDOW_ONRESIZE event, when using the flexEvent for when the current context is lost
                  \nData passed : {me.Renderer} the current renderer instance

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W5-bhMwIA3t6LnVZcHNGn","name":"WINDOW_ONORIENTATION_CHANGE","brief":"","access":"public","defaultValue":"\"globalThis.orientationchange\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the device is rotated
                  \nData passed : {Event} Event object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WgB5Zz_TQHgKklxHogMkM","name":"WINDOW_ONRESIZE","brief":"","access":"public","defaultValue":"\"globalThis.onresize\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the (browser) window is resized
                  \nData passed : {Event} Event object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5AxTCxhjvjaGyzx7KI3Rl","name":"WINDOW_ONSCROLL","brief":"","access":"public","defaultValue":"\"globalThis.onscroll\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the (browser) window is scrolled
                  \nData passed : {Event} Event object

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W51VSMn6tJe2puWXdF65L","name":"WORLD_STEP","brief":"","access":"public","defaultValue":"\"me.world.step\"","readonly":true,"see":["event.on"],"type":"PropertyDoc","description":"

                  Event for when the physic world is updated\nData passed : {number} time the current time stamp

                  ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ulf2Vsa32S__EwAguR4Zt","name":"emit","brief":"","examples":[{"caption":"","code":"me.event.emit(\"event-name\", a, b, c);"}],"scope":"static","type":"FunctionDoc","description":"

                  calls each of the listeners registered for a given event.

                  ","params":[{"identifier":"eventName","optional":false,"description":"

                  The event name.

                  ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

                  arguments to be passed to all listeners

                  ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                  true if the event had listeners, false otherwise.

                  ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NwqgOck-0Hj8EMIrhcC3_","name":"off","brief":"","access":"public","examples":[{"caption":"","code":"me.event.off(\"event-name\", myFunction);"}],"scope":"static","type":"FunctionDoc","description":"

                  remove the given listener for a given event.

                  ","params":[{"identifier":"eventName","optional":false,"description":"

                  The event name.

                  ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                  The listener function.

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                  this.

                  ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OiUe-0cm7PCDWUB0Y_Tt3","name":"on","brief":"","access":"public","examples":[{"caption":"","code":"me.event.on(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

                  Add a listener for a given event.

                  ","params":[{"identifier":"eventName","optional":false,"description":"

                  The event name.

                  ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                  The listener function.

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

                  The context to invoke the listener with.

                  ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                  this.

                  ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hcw1tOrVgFXjroiMZdctI","name":"once","brief":"","access":"public","examples":[{"caption":"","code":"me.event.once(\"event-name\", myFunction, this);"}],"scope":"static","type":"FunctionDoc","description":"

                  Add a one-time listener for a given event.

                  ","params":[{"identifier":"eventName","optional":false,"description":"

                  The event name.

                  ","dataType":{"tokens":[{"value":"string | symbol","kind":"canonical"},{"value":"symbol","kind":"canonical"}],"template":"string | %1"}},{"identifier":"listener","optional":false,"description":"

                  The listener function.

                  ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"context","optional":true,"default":"this","description":"

                  The context to invoke the listener with.

                  ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                  this.

                  ","dataType":{"tokens":[{"value":"EventEmitter","kind":"canonical"},{"value":"EventEmitter","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"AlukIS9aNe0sPAEamYwaV","name":"game","brief":"","readonly":true,"see":["Application"],"type":"NSDoc","description":"

                  game is a default instance of a melonJS Application and represents your current game,\nit contains all the objects, tilemap...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b_J_egx94EarKPBNLlWqR","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Zs_8Lcx3hFORw4JFN5wdg","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

                  Namespace for standard gamepad mapping constants

                  ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"C02mbPIwaG2Vg_FiaysFk","name":"AXES","brief":"","access":"public","scope":"static","see":["https://w3c.github.io/gamepad/#remapping"],"type":"EnumDoc","description":"

                  Standard gamepad mapping information for axes

                  \n
                    \n
                  • Left control stick: LX (horizontal), Standard gamepad mapping information for buttons

                    \n
                      \n
                    • Face buttons: FACE_1, FACE_2standard keyboard constants

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"n9iwJMq8KDoO5aam8Crwl","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nezM3Tb12mnE5gA8B2xj1","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0MdkdXYBuaCbD_jerzupW","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TEAcGJibQ1q4qv_vDbbdm","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dy4OHcUoSpv1e86IelQhq","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IW-7i6KBWnvPH_XxN8oWz","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PmXjq1UynuVSVoykzFugT","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TYR1tMA62Q6sL5BiWPzgC","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x_hILKiXWgQ6zN_7_SE-a","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xsKPUdEGQf_KzuiHD9ZDJ","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qtL9et6YKfZpjNBJk3-wu","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gUbBC-t2mvwP7ZWQ9TE0T","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wUerGTT3vABmeLsWl5vuY","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IAMfokYSnvkkXVFJ8zepZ","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"89pl1jwFUNp2zZPuMWXUd","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b1YEja-AjYNLuJbZSNv6A","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ienOfh27FjLEWfcNPNKxt","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CyoEX4fowoWD0RrGLkqCo","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S1RSoPqmiwFO8Cjbdiz_W","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tL8aBtSjtBJzU68EtrZv9","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vad3_9O8YpfNzqGJbt6sB","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oew5f-14-3x2F3sKeHuII","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r302Ewb9pOsmAm_gGHRCv","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jFn_Koius-tYuuWqehouL","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DQq6qjQtBZ4-8ozxH6fWQ","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gx2ODapQZxyhzaMNlwCvU","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"htIA_4CLPZD4YeQgktgXw","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SWAyTirAc2_PPdbz0qEac","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"br6RvzAl8KigvD0ZVsB30","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W37EB4Tn7rKQk7h--T1Ca","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a-VQIxc1xZXdvRjq8e8aR","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z5qzzv0ZqbiQvofbfHJAk","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QvA_qi58jkWeNKPnk2fIg","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7G8QHhSh3VdertYqC_AMW","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yEKB9mBbwU5L51dI0KGjF","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nigCL7aKjqBgmvfUeRGKR","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nS4GBXSqyj_Hwu-scpba2","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L3gcWT9t7-rPJNsQwAjmn","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4cEJoa1nZUvlS2tAodD14","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-QbpEGI17DnwozcexlMll","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C8DUkZl1LVMEAx3bxQJer","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0VBbRiyl8v5Uxv7nE23cH","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"csmLd_SwESiOCqzEtjKeS","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XsPkDicF-8iYvfbCM6mQY","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yy8dDNIf_tdKrQ-g-Kp3C","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nC-q8phHiAfVYI3lx7ocR","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aLyzYbXIU-i9ZyLK9Zjag","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WEjExNOad3rkGNCuOio_Z","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jwUPEbdc-7sHbo-9IfSsw","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dKekT51-Z2heypu2DPqTh","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oJo2lTxaKdBSfT5KoZlj8","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mNYqoRkja6tsU22tCCxtX","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rmfOVIw3iaV1XH8rR4ub6","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1IUZmWQUCxpT3Qi8YC9bm","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R5GQpvGTY7Z15dp9kRbVD","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8ekZPu8jR1Gmr8_2JpWYR","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2UjbEP8zuD5VD-KaZ8Dy-","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xU-KcA9Me_9VfL6pzBUgj","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CxTNHNUcQUhLOBlu5Z-9s","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sTIc1jnKpIOP6ADyqh3Cm","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ut3ryqcKPjQYOcq1X0Cqc","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pF5g0BUT2B0x_dguY7cuR","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UEna8NIq0Kj5l_LGDReOW","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S-6osWskzpVvQlPLRMyC7","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WpJb7RsWEquJyp-zl5p63","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9VtekhNilQxfsJnl4GZvf","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A0kOzmoIgsF_JRHohjGDM","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3216LlDcacURACc1S9GRF","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GUESkKHN3QOP2kSPCleOQ","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D5NAaeszcvIHTdYiLjELE","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_0mIX-fXvvYjdUmNGmdPE","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"trLyXrvM9_ElPsJfdXWSV","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9wXmWVDVCXT63b9r-7Z9o","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PlP8HJxznRDQaW3tGao7F","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QdIs0HfhSw07alM0v97Mr","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0YRoLIzKQLlqGKHf4MT0h","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rcnTA7CNPmyRZxwG-BXtt","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZrItOZY1-4UiO5-sHUYm7","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ySyIGhGMUWZWbOEW9g-AM","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tuKHTNRHGAjBe2GvVDgf-","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yDp8PWHVfrOCqaXS8XB5F","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iVwbRq9Nt8fdZQ9ewAuZH","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"osSV8Y0l_7Na7raxRNhgB","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EKgk25N4dk8ZD67fO3JCq","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sAqt59sk4xc45MbJxQbs6","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IwymZIzrenmsKdHifQgC-","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xGU_w01MfcRc6X0vDo4t_","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c0_Txass_lrgf81ksCXmn","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hazU5D4OY0uUuI-MPV2gJ","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AXCdiVwspQXz5yCRUg--7","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J4RbKof4V-yzcTBthqmc_","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8JmXCUwC724K1wXTxdcAy","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DB6XcWfK-ojQbL4_0cQ6w","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zqBKacdgVCfBFOqloWuZ8","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qXW7b5fKlX-WOQQgUmbKP","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rgruBciS6rPolHqREkjMG","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Xq3K3DKvorDY7o4NCWCo","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"69A8GR5r3JL8rQt46ZPmw","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"3ljGGOy1mDk0kcjNUtq9e","name":"keyBoardEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

                      the default target element for keyboard events (usually the window element in which the game is running)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPk-owXb_KEqh9ZhR1qG6","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

                      indicates if the pointer is currently locked

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zGpFnZZ35CotplZ0DFwci","name":"pointer","brief":"","access":"public","type":"PropertyDoc","description":"

                      Pointer information (current position and size)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SuDq3oF8s13UJ9z0azDGh","name":"pointerEventTarget","brief":"","access":"public","defaultValue":"undefined","type":"PropertyDoc","description":"

                      the default target element for pointer events (usually the canvas element in which the game is rendered)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zw7Hol1Drf6e0XAOCpdSp","name":"preventDefault","brief":"","access":"public","defaultValue":"true","type":"PropertyDoc","description":"

                      specify if melonJS should prevent all default browser action on registered events.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4lz6sdUA5EXrFbF6dy1pk","name":"setGamepadMapping","brief":"","access":"public","examples":[{"caption":"","code":" // A weird controller that has its axis mappings reversed\n me.input.setGamepadMapping(\"Generic USB Controller\", {\n \"axes\" : [ 3, 2, 1, 0 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ]\n });\n\n // Mapping extra axes to analog buttons\n me.input.setGamepadMapping(\"Generic Analog Controller\", {\n \"axes\" : [ 0, 1, 2, 3 ],\n \"buttons\" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ],\n\n // Raw axis 4 is mapped to GAMEPAD.BUTTONS.FACE_1\n // Raw axis 5 is mapped to GAMEPAD.BUTTONS.FACE_2\n // etc...\n // Also maps left and right triggers\n \"analog\" : [ 4, 5, 6, 7, -1, -1, 8, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1 ],\n\n // Normalize the value of button L2: [-1.0..1.0] => [0.0..1.0]\n \"normalize_fn\" : function (value, axis, button) {\n return ((button === me.input.GAMEPAD.BUTTONS.L2) ? ((value + 1) / 2) : value) || 0;\n }\n });"}],"type":"PropertyDoc","description":"

                      specify a custom mapping for a specific gamepad id
                      \nsee below for the default mapping :

                      \n
                      Gamepad id string

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"mapping","description":"

                      A hash table

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"mapping.axes","description":"

                      Standard analog control stick axis locations

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.buttons","description":"

                      Standard digital button locations

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.analog","optional":true,"description":"

                      Analog axis locations for buttons

                      ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}},{"identifier":"mapping.normalize_fn","optional":true,"description":"

                      a function that returns a normalized value in range [-1.0..1.0] for the given value, axis and button

                      ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"QDQVBvXM2UWNjASZs3zQP","name":"throttlingInterval","brief":"","access":"public","type":"PropertyDoc","description":"

                      time interval for event throttling in milliseconds
                      \ndefault value : "1000/me.timer.maxfps" ms
                      \nset to 0 ms...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U_3CIcrWni2P4XpUuK9LR","name":"bindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n...\n// map the lower face button on the first gamepad to the X key\nme.input.bindGamepad(0, {type:\"buttons\", code: me.input.GAMEPAD.BUTTONS.FACE_1}, me.input.KEY.X);\n// map the left axis value on the first gamepad to the LEFT key\nme.input.bindGamepad(0, {type:\"axes\", code: me.input.GAMEPAD.AXES.LX, threshold: -0.5}, me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

                      Associate a gamepad event to a keycode

                      ","params":[{"identifier":"index","optional":false,"description":"

                      Gamepad index

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

                      Button/Axis definition

                      ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"button.type","description":"

                      "buttons" or "axes"

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"button.code","description":"

                      button or axis code id (See {@link input.GAMEPAD.BUTTONS}, {@link input.GAMEPAD.AXES})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button.threshold","optional":true,"default":"1","description":"

                      value indicating when the axis should trigger the keycode (e.g. -0.5 or 0.5)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","optional":false,"description":"

                      (See {@link input.KEY})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WENzOEKpDQIqJFoshVDi4","name":"bindKey","brief":"","access":"public","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.LEFT, \"left\");\nme.input.bindKey(me.input.KEY.RIGHT, \"right\");\nme.input.bindKey(me.input.KEY.X, \"jump\", true);\nme.input.bindKey(me.input.KEY.F1, \"options\", true, true);"}],"type":"FunctionDoc","description":"

                      associate a user defined action to a keycode

                      ","params":[{"identifier":"keycode","optional":false,"description":"

                      (See {@link input.KEY})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"action","optional":false,"description":"

                      user defined corresponding action

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"lock","optional":true,"default":"false","description":"

                      cancel the keypress event once read

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"preventDefault","optional":true,"default":"input.preventDefault","description":"

                      prevent default browser action

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Okmk3D6czrlqXbJQxCEz2","name":"bindPointer","brief":"","examples":[{"caption":"","code":"// enable the keyboard\nme.input.bindKey(me.input.KEY.X, \"shoot\");\n// map the left button click on the X key (default if the button is not specified)\nme.input.bindPointer(me.input.KEY.X);\n// map the right button click on the X key\nme.input.bindPointer(me.input.pointer.RIGHT, me.input.KEY.X);"}],"type":"FunctionDoc","description":"

                      Associate a pointer event to a keycode
                      \nLeft button – 0\nMiddle button – 1\nRight button – 2

                      ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

                      (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"keyCode","dataType":{"tokens":[{"value":"input.KEY","kind":"canonical"},{"value":"input.KEY","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"27ITPlo7UxNSgeTxSw1xW","name":"exitPointerLock","brief":"","type":"FunctionDoc","description":"

                      Initiates an exit from pointer lock state

                      ","params":[],"returns":[{"description":"

                      return true if the request was successfully submitted

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q_F8TWr3Q96dZnhIZPgj_","name":"getBindingKey","brief":"","access":"public","type":"FunctionDoc","description":"

                      return the action associated with the given keycode

                      ","params":[{"identifier":"keycode","optional":false,"description":"

                      (See {@link input.KEY})

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      user defined associated action

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"SVjD1_3k5vUa9aTnYU72y","name":"globalToLocal","brief":"","examples":[{"caption":"","code":"onMouseEvent : function (pointer) {\n // convert the given into local (viewport) relative coordinates\n let pos = me.input.globalToLocal(pointer.clientX, pointer.clientY);\n // do something with pos !\n};"}],"type":"FunctionDoc","description":"

                      Translate the specified x and y values from the global (absolute)\ncoordinate to local (viewport) relative coordinate.

                      ","params":[{"identifier":"x","optional":false,"description":"

                      the global x coordinate to be translated.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                      the global y coordinate to be translated.

                      ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                      an optional vector object where to set the translated coordinates

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                      A vector object with the corresponding translated coordinates

                      ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wodbpoThUX66JpyYQ1YxA","name":"hasActiveEvents","brief":"","type":"FunctionDoc","description":"

                      return true if there are pending pointer events in the queue

                      ","params":[],"returns":[{"description":"

                      true if there are pending events

                      "}],"extends":[],"implements":[]},{"id":"cVDJPn9Djw3AwJ4dTw8aS","name":"hasRegisteredEvents","brief":"","see":["registerPointerEvent"],"type":"FunctionDoc","description":"

                      return true if there are register pointer events

                      ","params":[],"returns":[{"description":"

                      true if there are pending events

                      "}],"extends":[],"implements":[]},{"id":"RJTphLSo3F7B69nAlLfgp","name":"isKeyPressed","brief":"","access":"public","examples":[{"caption":"","code":"if (me.input.isKeyPressed('left')) {\n //do something\n}\nelse if (me.input.isKeyPressed('right')) {\n //do something else...\n}"}],"type":"FunctionDoc","description":"

                      return the key press status of the specified action

                      ","params":[{"identifier":"action","optional":false,"description":"

                      user defined corresponding action

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      true if pressed

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MDS57zInwRhNnt-8aev5v","name":"keyStatus","brief":"","access":"public","type":"FunctionDoc","description":"

                      return the key status of the specified action

                      ","params":[{"identifier":"action","optional":false,"description":"

                      user defined corresponding action

                      ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                      down (true) or up(false)

                      ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WBxL5yMAhB_OF4eMS1Eoh","name":"registerPointerEvent","brief":"","examples":[{"caption":"","code":" // onActivate function\n onActivateEvent: function () {\n // register on the 'pointerdown' event\n me.input.registerPointerEvent('pointerdown', this, (e) => this.pointerDown(e));\n },\n\n // pointerDown event callback\n pointerDown: function (pointer) {\n // do something\n ....\n // don\"t propagate the event to other objects\n return false;\n },"}],"see":["Pointer","{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

                      allows registration of event listeners on the object target.
                      \nmelonJS will pass a me.Pointer object to the defined cal...","params":[{"identifier":"eventType","optional":false,"description":"

                      The event type for which the object is registering
                      \nmelonJS currently supports:

                      \n
                        \n
                      • \"pointermo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

                        a shape representing the region to register on

                        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":false,"description":"

                        methods to be called when the event occurs.\nReturning false from the defined callback will prevent the event ...","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"R32vZykyOni_pHH3zvrLk","name":"releaseAllPointerEvents","brief":"","examples":[{"caption":"","code":"// release all registered event on the\nme.input.releaseAllPointerEvents(this);"}],"type":"FunctionDoc","description":"

                        allows the removal of all registered event listeners from the object target.

                        ","params":[{"identifier":"region","optional":false,"description":"

                        the registered region to release event from

                        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"1A3FsffnSsXVfMGaGulWb","name":"releasePointerEvent","brief":"","examples":[{"caption":"","code":"// release the registered region on the 'pointerdown' event\nme.input.releasePointerEvent('pointerdown', this);"}],"see":["{@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}"],"type":"FunctionDoc","description":"

                        allows the removal of event listeners from the object target.

                        ","params":[{"identifier":"eventType","optional":false,"description":"

                        The event type for which the object was registered. See {@link input.registerPointerEvent}

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"region","optional":false,"description":"

                        the registered region to release for this event

                        ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"callback","optional":true,"default":"\"all\"","description":"

                        if specified unregister the event only for the specific callback

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"oe7yKzexT2iyHqyj0Dup5","name":"requestPointerLock","brief":"","examples":[{"caption":"","code":"// register on the pointer lock change event\nevent.on(event.POINTERLOCKCHANGE, (locked)=> {\n console.log(\"pointer lock: \" + locked);\n});\n// request for pointer lock\nme.input.requestPointerLock();"}],"type":"FunctionDoc","description":"

                        request for the pointer to be locked on the parent DOM element.\n(Must be called in a click event or an event that requires...","params":[],"returns":[{"description":"

                        return true if the request was successfully submitted

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7Us2_bGJ4G9-XfYuh2kaC","name":"setGamepadDeadzone","brief":"","access":"public","type":"FunctionDoc","description":"

                        Set deadzone for analog gamepad inputs
                        \nThe default deadzone is 0.1 (10%) Analog values less than this will be ignored

                        ","params":[{"identifier":"value","optional":false,"description":"

                        Deadzone value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SFgJHPMlTuJWf3PdiKjxg","name":"setTouchAction","brief":"","see":["https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action"],"type":"FunctionDoc","description":"

                        enable/disable all gestures on the given element.
                        \nby default melonJS will disable browser handling of all panning and ...","params":[{"identifier":"element","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"value","optional":true,"default":"\"none\"","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"V9Qj84f4GpL9LTRYqlYkc","name":"triggerKeyEvent","brief":"","access":"public","examples":[{"caption":"","code":"// trigger a key press\nme.input.triggerKeyEvent(me.input.KEY.LEFT, true);"}],"type":"FunctionDoc","description":"

                        trigger the specified key (simulated) event

                        ","params":[{"identifier":"keycode","optional":false,"description":"

                        (See {@link input.KEY})

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"status","optional":true,"default":"false","description":"

                        true to trigger a key down event, or false for key up event

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mouseButton","optional":true,"description":"

                        the mouse button to trigger

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EqYs6B_PyYQb20Kb4txQp","name":"unbindGamepad","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindGamepad(0, me.input.GAMEPAD.BUTTONS.FACE_1);"}],"type":"FunctionDoc","description":"

                        unbind the defined keycode

                        ","params":[{"identifier":"index","optional":false,"description":"

                        Gamepad index

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"button","optional":false,"description":"

                        (See {@link input.GAMEPAD.BUTTONS})

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HRmWvuPqBxxBAoHDKzG55","name":"unbindKey","brief":"","access":"public","examples":[{"caption":"","code":"me.input.unbindKey(me.input.KEY.LEFT);"}],"type":"FunctionDoc","description":"

                        unbind the defined keycode

                        ","params":[{"identifier":"keycode","optional":false,"description":"

                        (See {@link input.KEY})

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NoY5HNV34i8Fv00zO1qCD","name":"unbindPointer","brief":"","examples":[{"caption":"","code":"me.input.unbindPointer(me.input.pointer.LEFT);"}],"type":"FunctionDoc","description":"

                        unbind the defined keycode

                        ","params":[{"identifier":"button","optional":true,"default":"input.pointer.LEFT","description":"

                        (accordingly to W3C values : 0,1,2 for left, middle and right buttons)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"F26S1oKZqS4oNuiLVMIzj","name":"unlockKey","brief":"","access":"public","examples":[{"caption":"","code":"// Unlock jump when touching the ground\nif (!this.falling && !this.jumping) {\n me.input.unlockKey(\"jump\");\n}"}],"type":"FunctionDoc","description":"

                        unlock a key manually

                        ","params":[{"identifier":"action","optional":false,"description":"

                        user defined corresponding action

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"OY1-893Ree0x5ko9ptkXC","name":"level","brief":"","type":"NSDoc","description":"

                        a level manager. once ressources loaded, the level manager contains all references of defined levels.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"05ijcyF66yl4H_wW_Hq8i","name":"add","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        add a level into the game manager (usually called by the preloader)

                        ","params":[{"identifier":"format","optional":false,"description":"

                        level format (only "tmx" supported)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"levelId","optional":false,"description":"

                        the level id (or name)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"callback","optional":true,"description":"

                        a function to be called once the level is loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        true if the level was loaded

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_1porQ9F9OL9_8_CZRFob","name":"getCurrentLevel","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return the current level definition.\nfor a reference to the live instantiated level,\nrather use the container in which it ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"INUbIDljuge3se2mhcEZQ","name":"getCurrentLevelId","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return the current level id

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"Maza6AiuHlBcmuehhnJp7","name":"levelCount","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return the amount of level preloaded

                        ","params":[],"returns":[{"description":"

                        the amount of level preloaded

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AdhIO4f1rUldLySdNOq1p","name":"load","brief":"","access":"public","examples":[{"caption":"","code":" // the game assets to be be preloaded\n // TMX maps\n let resources = [\n {name: \"a4_level1\", type: \"tmx\", src: \"data/level/a4_level1.tmx\"},\n {name: \"a4_level2\", type: \"tmx\", src: \"data/level/a4_level2.tmx\"},\n {name: \"a4_level3\", type: \"tmx\", src: \"data/level/a4_level3.tmx\"},\n // ...\n ];\n\n // ...\n\n // load a level into the game world\n me.level.load(\"a4_level1\");\n ...\n ...\n // load a level into a specific container\n let levelContainer = new me.Container();\n me.level.load(\"a4_level2\", {container:levelContainer});\n // add a simple transformation\n levelContainer.currentTransform.translate(levelContainer.width / 2, levelContainer.height / 2 );\n levelContainer.currentTransform.rotate(0.05);\n levelContainer.currentTransform.translate(-levelContainer.width / 2, -levelContainer.height / 2 );\n // add it to the game world\n me.game.world.addChild(levelContainer);"}],"scope":"instance","type":"MethodDoc","description":"

                        load a level into the game manager
                        \n(will also create all level defined entities, etc..)

                        ","params":[{"identifier":"levelId","optional":false,"description":"

                        level id

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"options","optional":true,"description":"

                        additional optional parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                        container in which to load the specified level

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                        callback for when the level is fully loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                        if true, flatten all objects into the given container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.setViewportBounds","optional":true,"default":"true","description":"

                        if true, set the viewport bounds to the map size

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        true if the level was successfully loaded

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zKYjhX82aeItdEoKA2zRm","name":"next","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        load the next level

                        ","params":[{"identifier":"options","optional":true,"description":"

                        additional optional parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                        container in which to load the specified level

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                        callback for when the level is fully loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                        if true, flatten all objects into the given container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        true if the next level was successfully loaded

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sHg29B3sZk2V6QsgshH2E","name":"previous","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        load the previous level

                        ","params":[{"identifier":"options","optional":true,"description":"

                        additional optional parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                        container in which to load the specified level

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                        callback for when the level is fully loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                        if true, flatten all objects into the given container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        true if the previous level was successfully loaded

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mqn8IVaDfzm130loU7ph6","name":"reload","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        reload the current level

                        ","params":[{"identifier":"options","optional":true,"description":"

                        additional optional parameters

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options.container","optional":true,"default":"game.world","description":"

                        container in which to load the specified level

                        ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"options.onLoaded","optional":true,"default":"game.onLevelLoaded","description":"

                        callback for when the level is fully loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"options.flatten","optional":true,"default":"game.mergeGroup","description":"

                        if true, flatten all objects into the given container

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        the current level

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"JxDFuCFxxmPBTna8n9hbO","name":"loader","brief":"","type":"NSDoc","description":"

                        a small class to manage loading of stuff and manage resources

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"2Wf5grXJcTJbaCeitTY-5","name":"Asset","brief":"","examples":[{"caption":"","code":"// PNG tileset\n{name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"}\n// PNG packed texture\n{name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n// PNG base64 encoded image\n{name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n// TSX file\n{name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"}\n// TMX level (XML & JSON)\n{name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"}\n{name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"}\n{name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}}\n{name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}}\n// audio resources\n{name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"}\n{name: \"cling\", type: \"audio\", src: \"data/audio/\"}\n// base64 encoded audio resources\n{name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"}\n// binary file\n{name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"}\n// JSON file (used for texturePacker)\n{name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"}\n// JavaScript file\n{name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"}\n// Font Face\n{ name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\" }\n// video resources\n{name: \"intro\", type: \"video\", src: \"data/video/\"}"}],"scope":"static","see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

                        an asset definition to be used with the loader

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"77xH4aCfMSQ39xU7onWAm","name":"autoplay","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        Set to true to automatically start playing audio or video when loaded or added to a scene (using autoplay might require us..."},{"id":"DHKb8IUm78iiNiGWlcrsR","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                        TMX data if not provided through a src url

                        "},{"id":"TvsLIJDNuKoJNsbUSCSC9","name":"loop","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        Set to true to automatically loop the audio or video when playing

                        "},{"id":"j7TqJLbT8IdY0TVz6K5dL","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                        name of the asset

                        "},{"id":"auYL-BRw6-KW_Ax0-4COg","name":"src","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                        path and/or file name of the resource (for audio assets only the path is required)

                        "},{"id":"jFAoh1R2bQHC15HQ0N73K","name":"stream","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        Set to true to not to wait for large audio or video file to be downloaded before playing.

                        "},{"id":"iGsFCUub3AAplXvwxiqUr","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                        the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"WUS3DxmjOOqE1fyfIUchv","name":"crossOrigin","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":" // allow for cross-origin texture loading\n me.loader.crossOrigin = \"anonymous\";\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"],"type":"PropertyDoc","description":"

                        crossOrigin attribute to configure the CORS requests for Image and Video data element.\nBy default (that is, when the attri...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L727pDqbJ1iV7S9znNXT_","name":"onError","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for error notification\nme.loader.onError = this.loaderError.bind(this);"}],"type":"PropertyDoc","description":"

                        onError callback
                        \neach time a resource loading is failed, the loader will fire the specified function giving the actual...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3-MpqZNIQKRg3sHK7XjWi","name":"onload","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback when everything is loaded\nme.loader.onload = this.loaded.bind(this);"}],"type":"PropertyDoc","description":"

                        onload callback

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YAnhurZEq72r6_IBVCfUw","name":"onProgress","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// set a callback for progress notification\nme.loader.onProgress = this.updateProgress.bind(this);"}],"type":"PropertyDoc","description":"

                        onProgress callback
                        \neach time a resource is loaded, the loader will fire the specified function,\ngiving the actual pro...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8DvT7IXpEOX5n4Chxu_rB","name":"withCredentials","brief":"","access":"public","defaultValue":"false","examples":[{"caption":"","code":" // enable withCredentials\n me.loader.withCredentials = true;\n\n // set all ressources to be loaded\n me.loader.preload(game.resources, () => this.loaded());"}],"see":["https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials"],"type":"PropertyDoc","description":"

                        indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies,\nauthorizatio...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SIyPEb0U773dFyl2Ntk7j","name":"getBinary","brief":"","type":"FunctionDoc","description":"

                        return the specified Binary object

                        ","params":[{"identifier":"elt","optional":false,"description":"

                        name of the binary object ("ymTrack");

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        requested element or null if not found

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"V6QoOdKZkmguAe-GiIp0l","name":"getImage","brief":"","type":"FunctionDoc","description":"

                        return the specified Image Object

                        ","params":[{"identifier":"image","optional":false,"description":"

                        name of the Image element ("tileset-platformer");

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        requested element or null if not found

                        ","dataType":{"tokens":[{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-SmesipqEULQccMyPJHSQ","name":"getJSON","brief":"","type":"FunctionDoc","description":"

                        return the specified JSON Object

                        ","params":[{"identifier":"elt","optional":false,"description":"

                        name of the json file

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"JSON","kind":"canonical"},{"value":"JSON","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_MT041ofDON0MFdL71b3u","name":"getTMX","brief":"","type":"FunctionDoc","description":"

                        return the specified TMX/TSX object

                        ","params":[{"identifier":"elt","optional":false,"description":"

                        name of the tmx/tsx element ("map1");

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        requested element or null if not found

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"ZjXlx7Qo1tKxSo8_ffGn-","name":"getVideo","brief":"","type":"FunctionDoc","description":"

                        return the specified Video Object

                        ","params":[{"identifier":"elt","optional":false,"description":"

                        name of the video file

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4AcpkhKFukLJczo95BVwK","name":"load","brief":"","examples":[{"caption":"","code":"// load an image asset\nme.loader.load({name: \"avatar\", type:\"image\", src: \"data/avatar.png\"}, () => this.onload(), () => this.onerror());\n// load a base64 image asset\n me.loader.load({name: \"avatar\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"};\n // load a base64 video asset\n me.loader.load({\n name: \"avatar\",\n type:\"video\",\n src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ..\"\n };\n// start loading music\nme.loader.load({\n name : \"bgmusic\",\n type : \"audio\",\n src : \"data/audio/\"\n}, function () {\n me.audio.play(\"bgmusic\");\n});"}],"type":"FunctionDoc","description":"

                        Load a single asset (to be used if you need to load additional asset(s) during the game)

                        ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}},{"identifier":"onload","optional":true,"description":"

                        function to be called when the asset is loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"onerror","optional":true,"description":"

                        function to be called in case of error

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                        the amount of corresponding resource to be preloaded

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ye1jnTH9jnLgC3O_aTdjn","name":"preload","brief":"","examples":[{"caption":"","code":"game.assets = [\n // PNG tileset\n {name: \"tileset-platformer\", type: \"image\", src: \"data/map/tileset.png\"},\n // PNG packed texture\n {name: \"texture\", type:\"image\", src: \"data/gfx/texture.png\"}\n // PNG base64 encoded image\n {name: \"texture\", type:\"image\", src: \"data:image/png;base64,iVBORw0KAAAQAAAAEACA...\"}\n // TSX file\n {name: \"meta_tiles\", type: \"tsx\", src: \"data/map/meta_tiles.tsx\"},\n // TMX level (XML & JSON)\n {name: \"map1\", type: \"tmx\", src: \"data/map/map1.json\"},\n {name: \"map2\", type: \"tmx\", src: \"data/map/map2.tmx\"},\n {name: \"map3\", type: \"tmx\", format: \"json\", data: {\"height\":15,\"layers\":[...],\"tilewidth\":32,\"version\":1,\"width\":20}},\n {name: \"map4\", type: \"tmx\", format: \"xml\", data: {xml representation of tmx}},\n // audio resources\n {name: \"bgmusic\", type: \"audio\", src: \"data/audio/\"},\n {name: \"cling\", type: \"audio\", src: \"data/audio/\"},\n // base64 encoded audio resources\n {name: \"band\", type: \"audio\", src: \"data:audio/wav;base64,...\"},\n // binary file\n {name: \"ymTrack\", type: \"binary\", src: \"data/audio/main.ym\"},\n // JSON file (used for texturePacker)\n {name: \"texture\", type: \"json\", src: \"data/gfx/texture.json\"},\n // JavaScript file\n {name: \"plugin\", type: \"js\", src: \"data/js/plugin.js\"},\n // Font Face\n {name: \"'kenpixel'\", type: \"fontface\", src: \"url('data/font/kenvector_future.woff2')\"},\n // video resources\n {name: \"intro\", type: \"video\", src: \"data/video/\"},\n // base64 encoded video asset\n me.loader.load({name: \"avatar\", type:\"video\", src: \"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZ...\"};\n];\n...\n// set all resources to be loaded\nme.loader.preload(game.assets, () => this.loaded());"}],"type":"FunctionDoc","description":"

                        set all the specified game assets to be preloaded.

                        ","params":[{"identifier":"assets","optional":false,"description":"

                        list of assets to load

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1<%2>"}},{"identifier":"onloadcb","optional":true,"default":"loader.onload","description":"

                        function to be called when all resources are loaded

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"switchToLoadState","optional":true,"default":"true","description":"

                        automatically switch to the loading screen

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"vjU9VAMrIyEyMchdEDZRj","name":"reload","brief":"","examples":[{"caption":"","code":"event.on(\n event.LOADER_ERROR,\n (res) => {\n // custom function\n showErrorNotification({\n text: `Error during loading content: ${res.name}`,\n done: loader.reload(res.src);\n })\n }\n);"}],"type":"FunctionDoc","description":"

                        retry loading assets after a loading failure

                        ","params":[{"identifier":"src","optional":false,"description":"

                        src of asset to reload

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"73-J6miZe3biBPS60XLAc","name":"setBaseURL","brief":"","access":"public","examples":[{"caption":"","code":"// change the base URL relative address for audio assets\nme.loader.setBaseURL(\"audio\", \"data/audio/\");\n// change the base URL absolute address for all object types\nme.loader.setBaseURL(\"*\", \"http://myurl.com/\")"}],"type":"FunctionDoc","description":"

                        change the default baseURL for the given asset type.
                        \n(this will prepend the asset URL and must finish with a '/')

                        ","params":[{"identifier":"type","optional":false,"description":"

                        "*", "audio", "video", "binary", "image", "json", "js&quo...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"url","optional":true,"default":"\"./\"","description":"

                        default base URL

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"prco7KOepZRZEoceMsaxa","name":"setParser","brief":"","examples":[{"caption":"","code":"// specify a custom function for \"abc\" format\nfunction customAbcParser(data, onload, onerror) {\n // preload and do something with the data\n let parsedData = doSomething(data);\n // when done, call the onload callback with the parsed data\n onload(parsedData);\n // in case of error, call the onerror callback\n onerror();\n // return the amount of asset parsed\n return 1\n}\n// set the parser for the custom format\nloader.setParser(\"abc\", customAbcParser);"}],"see":["loader.Asset.type"],"type":"FunctionDoc","description":"

                        specify a parser/preload function for the given asset type

                        ","params":[{"identifier":"type","optional":false,"description":"

                        asset type

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"parserFn","optional":false,"description":"

                        parser function

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"Pwdacet3HBdl5CJB21Ybv","name":"unload","brief":"","examples":[{"caption":"","code":"me.loader.unload({name: \"avatar\", type:\"image\"});"}],"type":"FunctionDoc","description":"

                        unload the specified asset to free memory

                        ","params":[{"identifier":"asset","optional":false,"dataType":{"tokens":[{"value":"loader.Asset","kind":"canonical"},{"value":"loader.Asset","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        true if unloaded

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uFHSra0sh3CLcri1b-e9s","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.loader.unloadAll();"}],"type":"FunctionDoc","description":"

                        unload all resources to free memory

                        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"9qO0P-KOjjI0eQPsoYRi-","name":"Math","brief":"","type":"NSDoc","description":"

                        a collection of math utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"8zT8q8KZuT2U-fpMwUjqr","name":"DEG_TO_RAD","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                        constant to convert from degrees to radians

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YGVBDFpSSK4OaWVMPj6uK","name":"EPSILON","brief":"","access":"public","defaultValue":"0.000001","readonly":true,"type":"PropertyDoc","description":"

                        the difference between 1 and the smallest floating point number greater than 1

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KHrhlme_bfL80TUNGyxky","name":"ETA","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                        constant equals to half pi

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pbd-xv1kDg-yyboFUgB4A","name":"RAD_TO_DEG","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                        constant to convert from radians to degrees

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TSaemEhhu6LVEpWnBu_PH","name":"TAU","brief":"","access":"public","readonly":true,"type":"PropertyDoc","description":"

                        constant equals to 2 times pi

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ctiw3zoPOikynmNSmlnNj","name":"clamp","brief":"","access":"public","type":"FunctionDoc","description":"

                        clamp the given value

                        ","params":[{"identifier":"val","optional":false,"description":"

                        the value to clamp

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"low","optional":false,"description":"

                        lower limit

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"description":"

                        higher limit

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        clamped value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4uP_FOsfH9R-LW51F5Hvc","name":"degToRad","brief":"","access":"public","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.degToRad(60); // return 1.0471..."}],"type":"FunctionDoc","description":"

                        Converts an angle in degrees to an angle in radians

                        ","params":[{"identifier":"angle","optional":false,"description":"

                        angle in degrees

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        corresponding angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sUuZaV8C71EliustLwUCd","name":"isPowerOfTwo","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns true if the given value is a power of two

                        ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2EABAUB83BD1nWo2lGw3U","name":"nextPowerOfTwo","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns the next power of two for the given value

                        ","params":[{"identifier":"val","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"z_szS-FSzRtYuTjKVFK40","name":"radToDeg","brief":"","access":"public","examples":[{"caption":"","code":"// convert a specific angle\nme.Math.radToDeg(1.0471975511965976); // return 60"}],"type":"FunctionDoc","description":"

                        Converts an angle in radians to an angle in degrees.

                        ","params":[{"identifier":"radians","optional":false,"description":"

                        angle in radians

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        corresponding angle in degrees

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YdIeN39o4U1Dq3_x9rYQ_","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.random(5, 10) );"}],"type":"FunctionDoc","description":"

                        return a random integer between min (included) and max (excluded)

                        ","params":[{"identifier":"min","optional":false,"description":"

                        minimum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                        maximum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        random value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s2juTnxBTEvzA7WjzDQn-","name":"randomFloat","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.randomFloat(5, 10) );"}],"type":"FunctionDoc","description":"

                        return a random float between min, max (exclusive)

                        ","params":[{"identifier":"min","optional":false,"description":"

                        minimum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                        maximum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        random value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5gRlu6Q77i1XNVSlzBweF","name":"round","brief":"","access":"public","examples":[{"caption":"","code":"// round a specific value to 2 digits\nme.Math.round(10.33333, 2); // return 10.33"}],"type":"FunctionDoc","description":"

                        round a value to the specified number of digit

                        ","params":[{"identifier":"num","optional":false,"description":"

                        value to be rounded.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dec","optional":true,"default":"0","description":"

                        number of decimal digit to be rounded to.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        rounded value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CThXV9YbUjHkbNdIOMDJ4","name":"toBeCloseTo","brief":"","access":"public","examples":[{"caption":"","code":"// test if the given value is close to 10\nif (me.Math.toBeCloseTo(10, value)) {\n // do something\n}"}],"type":"FunctionDoc","description":"

                        check if the given value is close to the expected one

                        ","params":[{"identifier":"expected","optional":false,"description":"

                        value to be compared with.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"actual","optional":false,"description":"

                        actual value to compare

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"precision","optional":true,"default":"2","description":"

                        float precision for the comparison

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        if close to

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6uPHKlWctbf_wn5RO2BwY","name":"weightedRandom","brief":"","access":"public","examples":[{"caption":"","code":"// Print a random number; one of 5, 6, 7, 8, 9\nconsole.log(me.Math.weightedRandom(5, 10) );"}],"type":"FunctionDoc","description":"

                        return a weighted random between min, max (exclusive)

                        ","params":[{"identifier":"min","optional":false,"description":"

                        minimum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":false,"description":"

                        maximum value.

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        random value

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"eJpdfho_0pwlUeguAlOIP","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

                        ParticleEmitterSettings contains the default settings for ParticleEmitter

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"b8rn84D3smeWDr-O2lkOl","name":"angle","brief":"","access":"public","defaultValue":"Math.PI / 2","scope":"static","type":"PropertyDoc","description":"

                        Start angle for particle launch in Radians

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j8B6XxUzWHSDYbl7cbVyW","name":"angleVariation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        letiation in the start angle for particle launch in Radians.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kuhybxE-MRgLH7A9UWISP","name":"blendMode","brief":"","access":"public","defaultValue":"normal","scope":"static","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                        the blend mode to be applied when rendering particles.\n(note: this will superseed the textureAdditive setting...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2vWIWlzvSq9--PsUvCuwl","name":"duration","brief":"","access":"public","defaultValue":"Infinity","scope":"static","type":"PropertyDoc","description":"

                        Duration that the emitter releases particles in ms (used only if emitter is Stream).\nAfter this period, the emitter stop t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ft2wrrJMejwxGQjMKfKif","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        Render particles in screen space.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mOU5jzh_iqOxdIpKJzIB9","name":"followTrajectory","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        Update the rotation of particle in accordance the particle trajectory.
                        \nThe particle sprite should aim at zero angle (d...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rF9fHSkGBdqAmWeVCPSkQ","name":"framesToSkip","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Skip n frames after updating the particle system once.\nThis can be used to reduce the performance impact of emitters with ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zHd8oJi1uQZcO1aGmInzE","name":"frequency","brief":"","access":"public","defaultValue":"100","scope":"static","type":"PropertyDoc","description":"

                        How often a particle is emitted in ms (used only if emitter is a Stream).

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FuI7gIfOjtG5tJq2S5hFl","name":"gravity","brief":"","access":"public","defaultValue":"0","scope":"static","see":["game.world.gravity"],"type":"PropertyDoc","description":"

                        Vertical force (Gravity) for each particle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nmH8ROKEjuOv2GP-mMz9n","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        Height of the particle spawn area

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zy8fPTC1U2bar3tcXxtUa","name":"image","brief":"","access":"public","defaultValue":"undefined","scope":"static","see":["ParticleEmitterSettings.textureSize"],"type":"PropertyDoc","description":"

                        image used for particles texture\n(by default melonJS will create an white 8x8 texture image)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7bcpDaXuEtoiHKcAmrf8J","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Maximum end scale ratio for particles

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yA7deQ8PHzZqtMMjQ5_ta","name":"maxLife","brief":"","access":"public","defaultValue":"3000","scope":"static","type":"PropertyDoc","description":"

                        Maximum time each particle lives once it is emitted in ms.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"euqe4mLTYNoayh9z-3uXS","name":"maxParticles","brief":"","access":"public","defaultValue":"10","scope":"static","type":"PropertyDoc","description":"

                        Maximum number of particles launched each time in this emitter (used only if emitter is Stream).

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y2t56zPP-DM1wlnnyy55M","name":"maxRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Maximum start rotation for particles sprites in Radians

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VK4XCHhzrHVLcfXf4mdhX","name":"maxStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        Maximum start scale ratio for particles (1 = no scaling)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SkU5HgIMJDg8WlhWjcKpP","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Minimum end scale ratio for particles

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JxSdoHzH2FkTuw_mcw29u","name":"minLife","brief":"","access":"public","defaultValue":"1000","scope":"static","type":"PropertyDoc","description":"

                        Minimum time each particle lives once it is emitted in ms.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6-DSXKywdXX9PBD-mxDrB","name":"minRotation","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Minimum start rotation for particles sprites in Radians

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ijsfW8fSvdEXcLI9VrMv","name":"minStartScale","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        Minimum start scale ratio for particles (1 = no scaling)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gaxj2hNiMmb0sDu6f1T_i","name":"onlyInViewport","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

                        Update particles only in the viewport, remove it when out of viewport.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WhgVSflJ8-3J2PWc5JM4M","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

                        Start speed of particles.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OM2quUBCDcL6S7PxQm3NM","name":"speedVariation","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        letiation in the start speed of particles

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GLVA5WOGZfiwMHFdT9kZw","name":"textureAdditive","brief":"","access":"public","defaultValue":"false","scope":"static","see":["ParticleEmitterSettings.blendMode"],"type":"PropertyDoc","description":"

                        Enable the Texture Additive by composite operation ("additive" blendMode)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qG6D8GcqPaMvsVd2NmhNi","name":"textureSize","brief":"","access":"public","defaultValue":"8","scope":"static","see":["ParticleEmitterSettings.image"],"type":"PropertyDoc","description":"

                        default texture size used for particles if no image is specified\n(by default melonJS will create an white 8x8 texture imag...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yaSbhhN-CmuyHcUw2rFL6","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

                        tint to be applied to particles

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OcBUkTFj4_T1QVpsWF0Qi","name":"totalParticles","brief":"","access":"public","defaultValue":"50","scope":"static","type":"PropertyDoc","description":"

                        Total number of particles in the emitter

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IGBK_I23Yp3wfETXjXegC","name":"width","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        Width of the particle spawn area.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CQIbgmvWd9ZmesnExcESp","name":"wind","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        Horizontal force (like a Wind) for each particle

                        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"kkHxy-js8_IxhLeXjKviJ","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"RnjX9SlxX75kDn-y9UnCc","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"WFGveZ7KGTILZCIP1YzDZ","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the app/game that registered this plugin

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XPBlnKWilsPILJUxjF8DC","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

                        define the minimum required version of melonJS
                        \nthis can be overridden by the plugin

                        ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"SR0dGaM6sVSeci--ArLYP","name":"BasePlugin","brief":"","type":"ClassDoc","description":"

                        a base Object class for plugin\n(plugin must be installed using the register function)

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ICqP0Gp3vGqoFByh0jdXV","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the app/game that registered this plugin

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zYXlI0sWO90ECYZfNmhvi","name":"version","brief":"","defaultValue":"\"__VERSION__\"","scope":"instance","type":"PropertyDoc","description":"

                        define the minimum required version of melonJS
                        \nthis can be overridden by the plugin

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w9nlRfEVPbDq5MLRhxQnC","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"app","optional":true,"description":"

                        a reference to the app/game that registered this plugin

                        ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"-I6epVD_1L_5qYb5wJqpy","name":"cache","brief":"","type":"PropertyDoc","description":"

                        Contains all registered plugins.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3pK0BI2UAgV1kdFxKnO0E","name":"get","brief":"","type":"FunctionDoc","description":"

                        returns the the plugin instance with the specified class type or registered name

                        ","params":[{"identifier":"classType","optional":false,"description":"

                        the Class Object or registered name of the plugin to retreive

                        ","dataType":{"tokens":[{"value":"object | string","kind":"canonical"}],"template":"object | string"}}],"returns":[{"description":"

                        a plugin instance or undefined

                        ","dataType":{"tokens":[{"value":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KaCjPJ8lLvhMJNYqTmEE1","name":"patch","brief":"","examples":[{"caption":"","code":"// redefine the me.game.update function with a new one\nme.plugin.patch(me.game, \"update\", function () {\n // display something in the console\n console.log(\"duh\");\n // call the original me.game.update function\n this._patched();\n});"}],"type":"FunctionDoc","description":"

                        patch a melonJS function

                        ","params":[{"identifier":"proto","optional":false,"description":"

                        target object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

                        target function

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fn","optional":false,"description":"

                        replacement function

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"C3x7s0xvhJ0Rn_Df8u-b0","name":"register","brief":"","examples":[{"caption":"","code":"// register a new plugin\nme.plugin.register(TestPlugin, \"testPlugin\");\n// the `testPlugin` class instance can also be accessed through me.plugin.cache\nme.plugin.cache.testPlugin.myfunction ();"}],"type":"FunctionDoc","description":"

                        Register a plugin.

                        ","params":[{"identifier":"plugin","optional":false,"description":"

                        Plugin object to instantiate and register

                        ","dataType":{"tokens":[{"value":"plugin.BasePlugin","kind":"canonical"},{"value":"plugin.BasePlugin","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":true,"default":"plugin.constructor.name","description":"

                        a unique name for this plugin

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

                        all extra parameters will be passed to the plugin constructor

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"U7e6hqiNgEYZaN2h6lpGi","name":"pool","brief":"","examples":[{"caption":"","code":"// register our bullet object into the object pool\npool.register(\"bullet\", BulletEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = pool.pull(\"bullet\", x, y, direction, velocity);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\ngame.world.removeChild(bullet);"}],"see":["ObjectPool"],"type":"NSDoc","description":"

                        a default global ObjectPool instance

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p1N8zrOg4Z8Y-5yqXtGu2","name":"save","brief":"","examples":[{"caption":"","code":" // Initialize \"score\" and \"lives\" with default values\n // This loads the properties from localStorage if they exist, else it sets the given defaults\n me.save.add({ score : 0, lives : 3 });\n\n // Print all\n // On first load, this prints { score : 0, lives : 3 }\n // On further reloads, it prints { score : 31337, lives : 3, complexObject : ... }\n // Because the following changes will be saved to localStorage\n console.log(JSON.stringify(me.save));\n\n // Save score\n me.save.score = 31337;\n\n // Also supports complex objects thanks to the JSON backend\n me.save.add({ complexObject : {} })\n me.save.complexObject = { a : \"b\", c : [ 1, 2, 3, \"d\" ], e : { f : [{}] } };\n\n // WARNING: Do not set any child properties of complex objects directly!\n // Changes made that way will not save. Always set the entire object value at once.\n // If you cannot live with this limitation, there's a workaround:\n me.save.complexObject.c.push(\"foo\"); // Modify a child property\n me.save.complexObject = me.save.complexObject; // Save the entire object!\n\n // Remove \"lives\" from localStorage\n me.save.remove(\"lives\");"}],"type":"NSDoc","description":"

                        allow to access and manage the device localStorage

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"pscwpqOxA2LfxQSRdKLg9","name":"add","brief":"","examples":[{"caption":"","code":"// Initialize \"score\" and \"lives\" with default values\nme.save.add({ score : 0, lives : 3 });\n// get or set the value through me.save\nme.save.score = 1000;"}],"scope":"instance","type":"MethodDoc","description":"

                        Add new keys to localStorage and set them to the given default values if they do not exist

                        ","params":[{"identifier":"props","optional":false,"description":"

                        key and corresponding values

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"f5USn7WFh6Z3fHPpEJDNr","name":"remove","brief":"","examples":[{"caption":"","code":"// Remove the \"score\" key from localStorage\nme.save.remove(\"score\");"}],"scope":"instance","type":"MethodDoc","description":"

                        Remove a key from localStorage

                        ","params":[{"identifier":"key","optional":false,"description":"

                        key to be removed

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"7z8ZW2jlPeS75y4CPscvd","name":"state","brief":"","type":"NSDoc","description":"

                        a State Manager (state machine)

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"JbGB6oIab7aow7HqnXM9d","name":"CREDITS","brief":"","defaultValue":"7","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Credits Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bX2-kVTbSoTrWBcayP9Hk","name":"DEFAULT","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","description":"

                        default state ID for the default Stage\n(the default stage is the one running as soon as melonJS is started)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p1h8xzH3IV6Kvx_4ECP8Q","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Game End Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LMFLB6ya-IMtaDGR7B6lf","name":"GAMEOVER","brief":"","defaultValue":"4","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Game Over Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z3_-iS4ELfKBER5pAu2Tr","name":"LOADING","brief":"","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Loading Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Ee1TxEDwDmq_Lomcim9b","name":"MENU","brief":"","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Menu Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CNY2xTtOiUlCx0KqTIhfr","name":"PLAY","brief":"","defaultValue":"3","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Play Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t_ISQeRjsScTr6Xb0A8d-","name":"READY","brief":"","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

                        default state ID for "Ready" Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sZQpd_qQBg1jH6rUO-Ytc","name":"SCORE","brief":"","defaultValue":"6","scope":"static","type":"PropertyDoc","description":"

                        default state ID for High Score Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DPsB4CMZSUj3DWRSjzdcD","name":"SETTINGS","brief":"","defaultValue":"8","scope":"static","type":"PropertyDoc","description":"

                        default state ID for Settings Stage

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vcuNEfKZXW5XlEDWMWsXn","name":"USER","brief":"","defaultValue":"100","examples":[{"caption":"","code":"let STATE_INFO = me.state.USER + 0;\nlet STATE_WARN = me.state.USER + 1;\nlet STATE_ERROR = me.state.USER + 2;\nlet STATE_CUTSCENE = me.state.USER + 3;"}],"scope":"static","type":"PropertyDoc","description":"

                        default state ID for user defined constants

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yvm9Oy6nl3GxIfFdfBPNW","name":"change","brief":"","access":"public","examples":[{"caption":"","code":"// The onResetEvent method on the play screen will receive two args:\n// \"level_1\" and the number 3\nme.state.change(me.state.PLAY, \"level_1\", 3);"}],"scope":"instance","type":"MethodDoc","description":"

                        change the game/app state

                        ","params":[{"identifier":"state","optional":false,"description":"

                        State ID (see constants)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"forceChange","optional":false,"description":"

                        if true the state will be changed immediately

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

                        extra arguments to be passed to the reset functions

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Yhuk1T9zBGN7xjLEU20HD","name":"current","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return a reference to the current stage
                        \nuseful to call a object specific method

                        ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h2OkQEg15xwURbbL7MECd","name":"isCurrent","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return true if the specified state is the current one

                        ","params":[{"identifier":"state","optional":false,"description":"

                        State ID (see constants)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        true if the specified state is the current one

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"S_sVmYhIRkxB_4ngixgvq","name":"isPaused","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        Return the pause state of the state manager

                        ","params":[],"returns":[{"description":"

                        true if the game is paused

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dtGMeY25VUF0M6yFzw2YK","name":"isRunning","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        return the running state of the state manager

                        ","params":[],"returns":[{"description":"

                        true if a "process is running"

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CNvOjKQpkw-6vqzA0hftU","name":"pause","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        pause the current stage

                        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                        pause current music track on screen pause

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"HFe_4ZJ_uKHL5D0-jU51Y","name":"restart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        Restart the current stage from a full stop.

                        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                        resume current music track on screen resume

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"z8tLVQeEF0kr-lnv1bwnJ","name":"resume","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        resume the current stage

                        ","params":[{"identifier":"music","optional":true,"default":"false","description":"

                        resume current music track on screen resume

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-lmj-CslD1FRXI3xkz8dW","name":"set","brief":"","access":"public","examples":[{"caption":"","code":" class MenuButton extends me.GUI_Object {\n onClick() {\n // Change to the PLAY state when the button is clicked\n me.state.change(me.state.PLAY);\n return true;\n }\n };\n\n class MenuScreen extends me.Stage {\n onResetEvent() {\n // Load background image\n me.game.world.addChild(\n new me.ImageLayer(0, 0, {\n image : \"bg\",\n z: 0 // z-index\n }\n );\n\n // Add a button\n me.game.world.addChild(\n new MenuButton(350, 200, { \"image\" : \"start\" }),\n 1 // z-index\n );\n\n // Play music\n me.audio.playTrack(\"menu\");\n }\n\n onDestroyEvent() {\n // Stop music\n me.audio.stopTrack();\n }\n };\n\n me.state.set(me.state.MENU, new MenuScreen());"}],"scope":"instance","type":"MethodDoc","description":"

                        associate the specified state with a Stage

                        ","params":[{"identifier":"state","optional":false,"description":"

                        State ID (see constants)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"stage","optional":false,"description":"

                        Instantiated Stage to associate with state ID

                        ","dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}},{"identifier":"start ","optional":true,"default":" false","description":"

                        if true the state will be changed immediately after adding it.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"6y4_jIYv4sRvRiOgcYFxq","name":"set","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        returns the stage associated with the specified state\n(or the current one if none is specified)

                        ","params":[{"identifier":"state","optional":true,"description":"

                        State ID (see constants)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Stage","kind":"canonical"},{"value":"Stage","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AwXJpm4hjoRt3W8YjNJnn","name":"setTransition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        enable/disable the transition to a particular state (by default enabled for all)

                        ","params":[{"identifier":"state","optional":false,"description":"

                        State ID (see constants)

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"lKRNS6uhALuHMNkO4UmLA","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        Stop the current stage.

                        ","params":[{"identifier":"pauseTrack","optional":true,"default":"false","description":"

                        pause current track on screen stop.

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"hwyTcPaCWxmRwhvurf8Mq","name":"transition","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                        specify a global transition effect

                        ","params":[{"identifier":"effect","optional":false,"description":"

                        (only "fade" is supported for now)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

                        a CSS color value

                        ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                        expressed in milliseconds

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"SlK-zYfk_KuTknvzJjYIz","name":"timer","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\ntimer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setTimeout(myFunction, 1000, true, param1, param2);\n// set a timer to call \"myFunction\" every 1000ms\ntimer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\ntimer.setInterval(myFunction, 1000, true, param1, param2);"}],"see":["Timer"],"type":"NSDoc","description":"

                        the default global Timer instance

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"094ym-a7yp4T8hhN9qZsm","name":"TMXUtils","brief":"","type":"NSDoc","description":"

                        a collection of utility functions for parsing TMX maps

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jd1Q4CaaU4mrF30-70mFU","name":"applyTMXProperties","brief":"","type":"FunctionDoc","description":"

                        Apply TMX Properties to the given object

                        ","params":[{"identifier":"obj","optional":false,"description":"

                        object to apply the properties to

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

                        TMX data object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        obj

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"9AMe5VKYrGlGaJwzP9d7E","name":"decode","brief":"","type":"FunctionDoc","description":"

                        Decode a encoded array into a binary array

                        ","params":[{"identifier":"data","optional":false,"description":"

                        data to be decoded

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"encoding","optional":true,"default":"\"none\"","description":"

                        data encoding ("csv", "base64", "xml")

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Decoded data

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"4p33jtMAa7NBdQfEfG8kw","name":"decodeBase64AsArray","brief":"","type":"FunctionDoc","description":"

                        Decode a base64 encoded string into a byte array

                        ","params":[{"identifier":"input","optional":false,"description":"

                        Base64 encoded data

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"bytes","optional":true,"default":"1","description":"

                        number of bytes per array entry

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Decoded data

                        ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DzwlRondCfIvmnLI-m5YI","name":"decodeCSV","brief":"","type":"FunctionDoc","description":"

                        Decode a CSV encoded array into a binary array

                        ","params":[{"identifier":"input-","optional":false,"description":"

                        CSV formatted data (only numbers, everything else will be converted to NaN)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Decoded data

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"4PPbOlll011q6ZcBPKtvu","name":"decompress","brief":"","type":"FunctionDoc","description":"

                        decompress and decode zlib/gzip data

                        ","params":[{"identifier":"input","optional":false,"description":"

                        Base64 encoded and compressed data

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"format","optional":false,"description":"

                        compressed data format ("gzip","zlib", "zstd")

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        Decoded and decompress data

                        ","dataType":{"tokens":[{"value":"Uint32Array","kind":"canonical"},{"value":"Uint32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bqcimikCAjdg_aTR59cYz","name":"parse","brief":"","type":"FunctionDoc","description":"

                        Parse a XML TMX object and returns the corresponding javascript object

                        ","params":[{"identifier":"xml","optional":false,"description":"

                        XML TMX object

                        ","dataType":{"tokens":[{"value":"Document","kind":"canonical"},{"value":"Document","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        Javascript object

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"9XVWspi-iyDdciS4I1u5B","name":"setInflateFunction","brief":"","type":"FunctionDoc","description":"

                        set the function used to inflate gzip/zlib data

                        ","params":[{"identifier":"fn","optional":false,"description":"

                        inflate function

                        ","dataType":{"tokens":[{"value":"Func","kind":"canonical"},{"value":"Func","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Q04AD5lim2YieuD2xN_mp","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

                        a collection of utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"wXiWMRqyOr6TStdG8TyvX","name":"agent","brief":"","scope":"static","type":"NSDoc","description":"

                        a collection of utility functons to ease porting between different user agents.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"TEM8YKkV4iXiyrQrVoTLU","name":"prefixed","brief":"","access":"public","type":"FunctionDoc","description":"

                        Get a vendor-prefixed property

                        ","params":[{"identifier":"name","optional":false,"description":"

                        Property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

                        Object or element reference to access

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        Value of property

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"ZlqpQQ58ClrUa5RPCUIRk","name":"setPrefixed","brief":"","access":"public","type":"FunctionDoc","description":"

                        Set a vendor-prefixed property

                        ","params":[{"identifier":"name","optional":false,"description":"

                        Property name

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                        Property value

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"obj","optional":true,"default":"globalThis","description":"

                        Object or element reference to access

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        true if one of the vendor-prefixed property was found

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"a7Qzucog54gKaeQIQrqMk","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

                        a collection of array utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"kQxkju0_v2-DrhY234d6a","name":"random","brief":"","access":"public","examples":[{"caption":"","code":"// Select a random array element\nlet arr = [ \"foo\", \"bar\", \"baz\" ];\nconsole.log(me.utils.array.random(arr));"}],"type":"FunctionDoc","description":"

                        return a random array element

                        ","params":[{"identifier":"arr","optional":false,"description":"

                        array to pick a element

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

                        random member of array

                        ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]},{"id":"pmYMbjDdUX90PFIHCW0iT","name":"remove","brief":"","access":"public","type":"FunctionDoc","description":"

                        Remove the specified object from the given Array

                        ","params":[{"identifier":"arr","optional":false,"description":"

                        array from which to remove an object

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}},{"identifier":"obj","optional":false,"description":"

                        to be removed

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                        the modified Array\nlet arr = [ "foo", "bar", "baz" ];\n// remove "foo" from the arr...","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"extends":[],"implements":[]},{"id":"QIUayBecav2X81sAyCA1e","name":"weightedRandom","brief":"","access":"public","type":"FunctionDoc","description":"

                        return a weighted random array element, favoring the earlier entries

                        ","params":[{"identifier":"arr","optional":false,"description":"

                        array to pick a element

                        ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2 | string | Object>"}}],"returns":[{"description":"

                        random member of array

                        ","dataType":{"tokens":[{"value":"any","kind":"canonical"}],"template":"any"}}],"extends":[],"implements":[]}]},{"id":"yIlSO3cCwzYmTRMkwgeBr","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

                        a collection of file utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"zWwrUVL2UpsAd0JxtwnXz","name":"getBasename","brief":"","access":"public","type":"FunctionDoc","description":"

                        return the base name of the file without path info

                        ","params":[{"identifier":"path","optional":false,"description":"

                        path containing the basename to extract

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        the base name without path information.

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"cR5Zzl8Myi67iqcpr6W9U","name":"getExtension","brief":"","access":"public","type":"FunctionDoc","description":"

                        return the extension of the file in the given path

                        ","params":[{"identifier":"path","optional":false,"description":"

                        path containing the filename and extension to extract

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        filename extension.

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"QJFPMuIqrGE9IZLfy76o7","name":"getPath","brief":"","access":"public","type":"FunctionDoc","description":"

                        return the path of the file

                        ","params":[{"identifier":"path","optional":false,"description":"

                        the copmplete file path to extract the path from

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        the extracted path

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"OC0K6y-Hi4m-nr5W11PAG","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

                        a collection of utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"3_8LqHYNMEC__KuW2oWy9","name":"defer","brief":"","access":"public","examples":[{"caption":"","code":"// execute myFunc() when the stack is empty,\n// with the current context and [1, 2, 3] as parameter\nme.utils.function.defer(myFunc, this, 1, 2, 3);"}],"type":"FunctionDoc","description":"

                        Executes a function as soon as the interpreter is idle (stack empty).

                        ","params":[{"identifier":"func","optional":false,"description":"

                        The function to be deferred.

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":false,"description":"

                        The value to be passed as the this parameter to the target function when the deferred function is called

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                        Optional additional arguments to carry for the function.

                        ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                        id that can be used to clear the deferred function using\nclearTimeout

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xMpJMwxMtZrIrG0msqp9r","name":"throttle","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns a function that, when invoked will only be triggered at most once during a given window of time

                        ","params":[{"identifier":"fn","optional":false,"description":"

                        the function to be throttled.

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                        The delay in ms

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"no_trailing","optional":false,"description":"

                        disable the execution on the trailing edge

                        ","dataType":{"tokens":[{"value":"no_trailing","kind":"canonical"},{"value":"no_trailing","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                        the function that will be throttled

                        ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"extends":[],"implements":[]}]},{"id":"lPoqW26zzYvP5IShXJo6I","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

                        a collection of string utility functions

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"TVRumLIWGkmfz8H2x7yZ9","name":"capitalize","brief":"","access":"public","type":"FunctionDoc","description":"

                        converts the first character of the given string to uppercase

                        ","params":[{"identifier":"str","optional":false,"description":"

                        the string to be capitalized

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        the capitalized string

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"5YQ76DlaVDUYi7PXjDYwe","name":"isBoolean","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns true if the given string contains a true or false

                        ","params":[{"identifier":"str","optional":false,"description":"

                        the string to be tested

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        true if the string is either true or false

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"G5IcEqANEtOTsaCDcDEvj","name":"isDataUrl","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns true if the given string is a data url in the data:[<mediatype>][;base64],<data> format.\n...","params":[{"identifier":"str","optional":false,"description":"

                        the string (url) to be tested

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        true if the string is a data url

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Z5IhgE2x971L31Wt6VV93","name":"isNumeric","brief":"","access":"public","type":"FunctionDoc","description":"

                        returns true if the given string contains a numeric integer or float value

                        ","params":[{"identifier":"str","optional":false,"description":"

                        the string to be tested

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        true if string contains only digits

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Z74j6HqIBrDSxmcpfdZcy","name":"toHex","brief":"","access":"public","type":"FunctionDoc","description":"

                        convert a string to the corresponding hexadecimal value

                        ","params":[{"identifier":"str","optional":false,"description":"

                        the string to be converted

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        the converted hexadecimal value

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"5LodgJ9XH89Alb9vn2gKB","name":"checkVersion","brief":"","access":"public","examples":[{"caption":"","code":"if (me.utils.checkVersion(\"7.0.0\") > 0) {\n console.error(\n \"melonJS is too old. Expected: 7.0.0, Got: 6.3.0\"\n );\n}"}],"type":"FunctionDoc","description":"

                        Compare two version strings

                        ","params":[{"identifier":"first","optional":false,"description":"

                        First version string to compare

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"second","optional":false,"description":"

                        second version string to compare

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        comparison result
                        < 0 : first < second
                        \n0 : first == second
                        \n> 0 : first > second

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o8jDZ3NuD8eiT_UnDbIqQ","name":"getUriFragment","brief":"","access":"public","examples":[{"caption":"","code":"// http://www.example.com/index.html#debug&hitbox=true&mytag=value\nlet UriFragment = me.utils.getUriFragment();\nconsole.log(UriFragment[\"mytag\"]); //> \"value\""}],"type":"FunctionDoc","description":"

                        parse the fragment (hash) from a URL and returns them into

                        ","params":[{"identifier":"url","optional":true,"default":"document.location","description":"

                        an optional params string or URL containing fragment (hash) params to be parsed

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                        an object representing the deserialized params string.

                        ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[],"members":[{"id":"hUpBMBdyHIpSmZE1UbFKz","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        display the debug panel (if preloaded)

                        "},{"id":"4M1fAJXI99nIR_T8HWgtC","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

                        show/hide the debug panel (if preloaded)

                        "},{"id":"jhT-AVnBgoNd2bj9zpYZ4","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        draw the hitbox in the debug panel (if enabled)

                        "},{"id":"_R-NBxjJb9kkFUfp35eQO","name":"quadtree","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        draw the quadtree in the debug panel (if enabled)

                        "},{"id":"St6U9B_-Wj8UOeLH-GMay","name":"velocity","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        draw the entities velocity in the debug panel (if enabled)

                        "},{"id":"FOpx3iRJbd6YorD-Yn3CM","name":"webgl","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        force the renderer to WebGL

                        "}]}]},{"id":"94iXwQcDw1XCI2WAvOTtI","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"k8-9cC6dj9mtz4XQKKKGa","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

                        A reference to the active Canvas or WebGL active renderer renderer

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cUEUtsr9_5WfxbnysJUDE","name":"createCanvas","brief":"","type":"FunctionDoc","description":"

                        Create and return a new Canvas element

                        ","params":[{"identifier":"width","optional":false,"description":"

                        width

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        height

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"returnOffscreenCanvas","optional":true,"default":"false","description":"

                        will return an OffscreenCanvas if supported

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                        a new Canvas element of the given size

                        ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"k-5Z7pQaaLovykjMKmydX","name":"getParent","brief":"","type":"FunctionDoc","description":"

                        return a reference to the parent DOM element holding the main canvas

                        ","params":[],"returns":[{"description":"

                        the HTML parent element

                        ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eqGtXrvL9oz9a5l-oJ-RP","name":"init","brief":"","examples":[{"caption":"","code":"// init the video with a 640x480 canvas\nme.video.init(640, 480, {\n parent : \"screen\",\n renderer : me.video.AUTO,\n scale : \"auto\",\n scaleMethod : \"fit\"\n});"}],"type":"FunctionDoc","description":"

                        Initialize the "video" system (create a canvas based on the given arguments, and the related renderer).

                        ","params":[{"identifier":"width","optional":false,"description":"

                        The width of the canvas viewport

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                        The height of the canvas viewport

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                        optional parameters for the renderer

                        ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                        false if initialization failed (canvas not supported)

                        ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"Jf_raImAKzGZWkczAx8J9","name":"Application","brief":"","see":["game"],"type":"ClassDoc","description":"

                        An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object statu...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"4PX5lPVXJO8PJLr2yPfcQ","name":"Settings","brief":"","see":["Application"],"type":"TypedefDoc","description":"

                        Application & Renderer Settings definition.

                        ","params":[{"identifier":"options.zoomX","optional":true,"default":"width","description":"

                        The actual width of the canvas with scaling applied

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.zoomY","optional":true,"default":"height","description":"

                        The actual height of the canvas with scaling applied

                        ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.compositor","optional":true,"description":"

                        a custom compositor class (WebGL only)

                        ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"option.physic","optional":true,"default":"\"builtin\"","description":"

                        the physic system to use (default: "builtin", or "none" to disable builtin physic)

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[],"members":[{"id":"ZkhR5ixHk92TAxA6FdMpL","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        whether to enable or not video scaling interpolation

                        "},{"id":"NtOSqRz1akaZZY755T3Eb","name":"canvas","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                        an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given par..."},{"id":"9cMcorAbFxSd5GAbk0BpQ","name":"consoleHeader","brief":"","access":"public","defaultValue":"true","scope":"static","type":"PropertyDoc","description":"

                        whether to display melonJS version and basic device information in the console

                        "},{"id":"oQxhoTroFMO-_srSdInzb","name":"depthTest","brief":"","access":"public","defaultValue":"\"sorting\"","scope":"static","type":"PropertyDoc","description":"

                        ~Experimental~ the default method to sort object on the z axis in WebGL

                        "},{"id":"14egDsqUFvLWuEmx8yBLQ","name":"parent","brief":"","access":"public","defaultValue":"document.body","scope":"static","type":"PropertyDoc","description":"

                        the DOM parent element to hold the canvas in the HTML file

                        "},{"id":"jzf3YoKIuLKZuvJZmDUsl","name":"powerPreference","brief":"","access":"public","defaultValue":"\"default\"","scope":"static","type":"PropertyDoc","description":"

                        a hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. To be noted that Safari a..."},{"id":"y4OBRBl2qE08rocXP5VSl","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                        if true the renderer will only use WebGL 1

                        "},{"id":"w9t4tLtgNrHYHoQg3fw_k","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

                        renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

                        "},{"id":"p3lqBz8hC5DiZskoYqerq","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

                        enable scaling of the canvas ('auto' for automatic scaling)

                        "},{"id":"jJ0WMhE9ddAsGErlegDHX","name":"scaleMethod","brief":"","access":"public","defaultValue":"\"fit\"","scope":"static","type":"PropertyDoc","description":"

                        screen scaling modes :

                        \n
                          \n
                        • fit : Letterboxed; content is scaled to design aspect ..."},{"id":"EHZvGYpk5YL4UEitky-8-","name":"scaleTarget","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                          the HTML Element to be used as the reference target when using automatic scaling (by default melonJS will use the parent c..."},{"id":"oaOwIcGhpsCYyVjfxvvmd","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                          whether to allow transparent pixels in the front buffer (screen).

                          "}]},{"id":"cZeBddFNW6BhJVyjK4axO","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true when this app instance has been initialized

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYQlb4GKY44GTTCQmnBqd","name":"lastUpdate","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Last time the game update loop was executed.
                          \nUse this value to implement frame prediction in drawing events,\nfor crea...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mqMGCLln0FKH4UZJTIUos","name":"mergeGroup","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true, all objects will be added under the root world container.
                          \nWhen false, a me.Container object wi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HZC5682bHx7CQan6VBoAx","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the parent HTML element holding the main canvas of this application

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dnRIE6pUU5UMF1HbCMHrh","name":"pauseOnBlur","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// keep the default game instance running even when loosing focus\nme.game.pauseOnBlur = false;"}],"scope":"instance","type":"PropertyDoc","description":"

                          Specify whether to pause this app when losing focus

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3PGmuVd_UWZAT9HeXVNkN","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the active Canvas or WebGL active renderer renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YNyHLqDxTDtvkqDRJOUEf","name":"resumeOnFocus","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          Specify whether to unpause this app when gaining back focus

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pV5G4JwlvffvpR4eTHp1Q","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the given settings used when creating this application

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pkhIdYawki0jmLtP3aXf8","name":"sortOn","brief":"","scope":"instance","see":["World.sortOn"],"type":"PropertyDoc","description":"

                          Specify the property to be used when sorting renderables for this application game world.\nAccepted values : "x",...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hoTkPyGRdcPU_pVnbci4P","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Specify whether to stop this app when losing focus

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZKZWmvruRY7hdw1hHcn9C","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the active stage "default" camera

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mzlVjhqRrEIw1NpEw-9X-","name":"world","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the game world,
                          \na world is a virtual environment containing all the game objects

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qmMTlnzSJ7H2aNJdnxjOZ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

                          The width of the canvas viewport

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The height of the canvas viewport

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                          The optional parameters for the application and default renderer

                          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jOpwpZ1YLtBdXr3ERYoKa","name":"draw","brief":"

                          draw the active scene/stage associated to this game

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o2QfinZdHASBqfJdk9FYr","name":"getParentElement","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the parent HTML Element holding the main canvas of this application

                          ","params":[],"returns":[{"description":"

                          the parent HTML element

                          ","dataType":{"tokens":[{"value":"HTMLElement","kind":"canonical"},{"value":"HTMLElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gfHUuD0iPssI5MbNrAALj","name":"init","brief":"","scope":"instance","type":"MethodDoc","description":"

                          init the game instance (create a physic world, update starting time, etc..)

                          ","params":[{"identifier":"width","optional":false,"description":"

                          The width of the canvas viewport

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The height of the canvas viewport

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options","optional":true,"description":"

                          The optional parameters for the application and default renderer

                          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"t55PPpxt9OVS_CGRZQ5O6","name":"onLevelLoaded","brief":"","examples":[{"caption":"","code":"// call myFunction () everytime a level is loaded\nme.game.onLevelLoaded = this.myFunction.bind(this);"}],"scope":"instance","type":"MethodDoc","description":"

                          Fired when a level is fully loaded and all renderable instantiated.
                          \nAdditionnaly the level id will also be passed to ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UKZuImK8E6804PnwZYLON","name":"repaint","brief":"

                          force the redraw (not update) of all objects

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vSRie6ZixezSOzgG-dQEl","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                          reset the game Object manager\ndestroy all current objects

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"64AHjnlcdR4n1DgYSqZNM","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update all objects related to this game active scene/stage

                          ","params":[{"identifier":"time","optional":false,"description":"

                          current timestamp as provided by the RAF callback

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m9JXR8eZ4FqnKmEvFprhn","name":"updateFrameRate","brief":"","scope":"instance","see":["timer.maxfps","World.fps"],"type":"MethodDoc","description":"

                          Update the renderer framerate using the system config variables.

                          ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"tB3PeGMsNNYPDDXjM_jjY","name":"BitmapText","brief":"","type":"ClassDoc","description":"

                          a bitmap font object

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"9yT9rk0LsaVl7QZkF_YLW","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"18t9-vvLtpiKSZoB-PNQQ","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"roBu6j3AZBntv6tv_kveY","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PYMY0or8a0TZ4AvTx5agh","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nErat08-fUUbZezPNZ2o8","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DIUQ76q43FrbbjsBtv3J2","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZCNxE_1MSE09GPriVXpwS","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gT3itVkEDvSlAhUxfbBF0","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aIC-YS3DShWUDu5JLmPjm","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Aeuno8aEnRaJ_1TbAgo2m","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CXj5GipeHm2_DqH1KkYEa","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PncmS2j507UCpQnAeNtGl","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g_uajAm31f8xCGYlcd9Bz","name":"fillStyle","brief":"","access":"public","scope":"instance","see":["Renderable#tint"],"type":"PropertyDoc","description":"

                          defines the color used to tint the bitmap text

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zWYS7oqXbXD7HhxhLa3i7","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ys_uHatWt7NFed8zV4HVu","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zUs7R6jnm8Uljt0EG9eJA","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yQ85Ywx5xtiImxENmsH-p","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oDY91FjnC9-s5VqM6HGgQ","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t0E6808ShFB4w3Ejceg3z","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"huVmi27nDlnvbi-nZ6Rja","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PCbmYK33BvApjqoiumHrF","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5ndWLC8F9tlZYkYWk5KgM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VIgHhnmAMoYtm6PGEWoyh","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V6ITA9GVHp6m5Ws2NdpKF","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6jnI9QNSshW0yeQw9FtEQ","name":"lineHeight","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                          Set the line spacing height (when displaying multi-line strings).
                          \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ygRx7lzsvVh9uAI1d8j0s","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8biRP1MN2BxYnIStToI8U","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZivjCOUB0C-i0LFN3HdGK","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LqC5_OPe45SDqaXz4Ni--","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kXSQXccqT0OGtB_J1ZefG","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fmABNRkYDCWvL7cida8gZ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pFnLfpnzqO5tZZ_XC-nH-","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3gnh5aguTf_5leSNLH-bc","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jxUzzigIrwJXygvISJpKW","name":"textAlign","brief":"","access":"public","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

                          Set the default text alignment (or justification),
                          \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ljt9DaJ8mG779n9qxMZoq","name":"textBaseline","brief":"","access":"public","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

                          Set the text baseline (e.g. the Y-coordinate for the draw operation),
                          \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hiih4TafuCII0DDKzRaRT","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kUR50_6PAYZEonCIzclu2","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XBEJgpxIJxud6T9_nnCif","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3uYbgXDKH6VG2wSUFZklH","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a-UpsEneMnIBcRjXf2QG8","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xsyqhFBfqmDJ5SNuUfBcd","name":"wordWrapWidth","brief":"","access":"public","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

                          the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SeCfYwQN420VCRE7wcGls","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          the text to be displayed

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TDp8iVI7T4J4Gj3bDMxBI","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          font data

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5cij0WxWDeT0TzUG4F1s-","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          font image

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7kg52uYONCqLmfF-PVUU_","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          scaled font size

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5amANHYO4QvLrCUQVajqb","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uirjFQUSo0nlLkPLPoqO8","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3JkIXNTfYebz5OFeGH6ty","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N6mDR7P-_9HfM-GBnD_1q","name":"constructor","brief":"","examples":[{"caption":"","code":"// Use me.loader.preload or me.loader.load to load assets\nme.loader.preload([\n { name: \"arial\", type: \"binary\" src: \"data/font/arial.fnt\" },\n { name: \"arial\", type: \"image\" src: \"data/font/arial.png\" },\n])\n// Then create an instance of your bitmap font:\nlet myFont = new me.BitmapText(x, y, {font:\"arial\", text:\"Hello\"});\n// two possibilities for using \"myFont\"\n// either call the draw function from your Renderable draw function\nmyFont.draw(renderer, \"Hello!\", 0, 0);\n// or just add it to the word container\nme.game.world.addChild(myFont);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                          position of the text object

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the text object

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                          the text configuration

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

                          a font name to identify the corresponing source image

                          ","dataType":{"tokens":[{"value":"string | Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"string | %1"}},{"identifier":"settings.fontData","optional":true,"default":"settings.font","description":"

                          the bitmap font data corresponding name, or the bitmap font data itself

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"description":"

                          size a scaling ratio

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.fillStyle","optional":true,"description":"

                          a CSS color value used to tint the bitmapText (@see BitmapText.tint)

                          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"1","description":"

                          line width, in pixels, when drawing stroke

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

                          horizontal text alignment

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

                          the text baseline

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

                          line spacing height

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

                          anchor point to draw the text at

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

                          the maximum length in CSS pixel for a single segment of text

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

                          a string, or an array of strings

                          ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QKsesOftRwjL5sx0XkbhR","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"X2wYOu80hnz2PbSxanyDm","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wAPBcnvYOrrAM8OTbeEeW","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RxSDtinWMRo0u_ChcBigR","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

                          draw the bitmap font

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          Reference to the destination renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZaJ13mHmvw2e5NavniYBn","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YJqFfzg_kYR9hNZqQwZcG","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dcCk3ZDvWchK8xom562pg","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KHQQkJeobhge3FzqwaU4G","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5mLW-d2eA5xKIEyafoEMp","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w8px2tSDDA2d5fpqmRE5-","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_96cNVUSMmwEILqQf-44D","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4tss22QgypMjhqdfMjSYP","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2ZrUqr1M5I-BeNegTlnmK","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gKPsi_kEcJDdMa3x4hBMR","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b3QQjh9mJUu8pib_3rTSd","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                          measure the given text size in pixels

                          ","params":[{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                          a TextMetrics object with two properties: width and height, defining the output dimensions

                          ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5biglcnJU9sfS1tOfXzhd","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dCc-poTHiQEehwmAKT8X3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EladmIXhb_X-iqI7k5hlA","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"duueTNXRfgFO_N1zYbBHe","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"LO9wVGnF4hAMIORpfrlmm","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"AaicEoWFdKuJw_acx5Dtj","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EvDODNV5LXG2BaShlSFJq","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          change the font display size

                          ","params":[{"identifier":"scale","optional":false,"description":"

                          ratio

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this object for chaining

                          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YA5lVeG1MTzGaxEilAemM","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8yUDzeHZZeAvIkNFj6kdl","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mOjusq-lrsyuHYjZ0W9Kd","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yGxDPhZOqFdjwXCcT2pBt","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                          change the font settings

                          ","params":[{"identifier":"textAlign","optional":false,"description":"

                          ("left", "center", "right")

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"scale","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this object for chaining

                          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8ld8pj2ETYbjp--Xv7m3F","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cqxljktPbpkUz8QkL0UMK","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z9-KPxUzOxb9MFi0hIg6o","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

                          change the text to be displayed

                          ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

                          a string, or an array of strings

                          ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

                          this object for chaining

                          ","dataType":{"tokens":[{"value":"BitmapText","kind":"canonical"},{"value":"BitmapText","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KkZ8dCgAtagMIJwZkbbJP","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mvltmFmQjMSWwV7G6OlHn","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ARo0YLkyj2nwwvfUUjw-S","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fa7quKDg_Hn6Iqkd5sJW7","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6lgnIN_AhuGW8pmbllo3f","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ry25SQWdZ-VexG_ZJBUzH","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FrwMO-FjuLqFSJ4WWvW4F","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7Sr8N4RXtH9C-x5yuA4rE","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u1GpRWheuqVQAKx46iet8","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update function (automatically called by melonJS).

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the renderable is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"h7Z8p-9i6PdloNZqjwd7V","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this Bitmap Text.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this Bitmap Text bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"csxIWUnD1Y3mwe9E-UCnP","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Kdlfm9avwIcAY1YS__Dyh","name":"Body","brief":"","see":["Renderable.body"],"type":"ClassDoc","description":"

                          a Generic Physic Body Object with some physic properties and behavior functionality, to add as a member of a Renderable.

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Ac9YOG8cPsUh1Jm0FWEW5","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this body,\nor undefined if it has not been added to one.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"muWEO1UfF-eV-mic4iB5K","name":"bounce","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          the body bouciness level when colliding with other solid bodies :\na value of 0 will not bounce, a value of 1 will fully re...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PP4TiU5bgNISEmW80m4yn","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          The AABB bounds box reprensenting this body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8QLSnZ4YoZW6F-NDOwSq9","name":"collisionType","brief":"","access":"public","defaultValue":"collision.types.ENEMY_OBJECT","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"PropertyDoc","description":"

                          define the collision type of the body for collision filtering

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"glFOkHf594DsGNJnDtaXy","name":"falling","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          falling state of the body
                          \ntrue if the object is falling
                          \nfalse if the object is standing on something

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2C3lX-UssClVsSJWwCI4P","name":"force","brief":"","access":"public","defaultValue":"<0,0>","examples":[{"caption":"","code":" // define a default maximum acceleration, initial force and friction\n this.body.force.set(1, 0);\n this.body.friction.set(0.4, 0);\n this.body.setMaxVelocity(3, 15);\n\n // apply a postive or negative force when pressing left of right key\n update(dt) {\n if (me.input.isKeyPressed(\"left\")) {\n this.body.force.x = -this.body.maxVel.x;\n } else if (me.input.isKeyPressed(\"right\")) {\n this.body.force.x = this.body.maxVel.x;\n }\n }"}],"scope":"instance","see":["Body.setMaxVelocity"],"type":"PropertyDoc","description":"

                          body force to apply to this the body in the current step.\n(any positive or negative force will be cancelled after every wo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1GLDQBnHudQoXcD6hwOjc","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

                          body friction

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4RVpgyPz3cV_1iiod8wxX","name":"gravityScale","brief":"","access":"public","defaultValue":"1.0","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

                          The degree to which this body is affected by the world gravity

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3sBXGNp9cnFBPdshjhkXq","name":"ignoreGravity","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["World.gravity"],"type":"PropertyDoc","description":"

                          If true this body won't be affected by the world gravity

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LYMeEawNpfqgNJtT1d9ap","name":"isStatic","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          Either this body is a static body or not.\nA static body is completely fixed and can never change position or angle.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YwDs3JoGO7x0GqYbJ01il","name":"jumping","brief":"","access":"public","defaultValue":"false","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                          jumping state of the body
                          \nequal true if the body is jumping

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_PG76GVpWAUNUiV70G_le","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                          the body mass

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"93y3xi_1yO27eIuiYipBQ","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

                          max velocity (to limit body velocity)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2E7tTk6lcOyE4yBk06-NW","name":"vel","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","see":["Body.force"],"type":"PropertyDoc","description":"

                          The current velocity of the body.\nSee to apply a force if you need to modify a body velocity

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9bA0EVxyHZ6UMvXvjWDyB","name":"addShape","brief":"","examples":[{"caption":"","code":"// add a rectangle shape\nthis.body.addShape(new me.Rect(0, 0, image.width, image.height));\n// add a shape from a JSON object\nthis.body.addShape(me.loader.getJSON(\"shapesdef\").banana);"}],"scope":"instance","type":"MethodDoc","description":"

                          add a collision shape to this body
                          \n(note: me.Rect objects will be converted to me.Polygon before being added)

                          ","params":[{"identifier":"shape","optional":false,"description":"

                          a shape or JSON object

                          ","dataType":{"tokens":[{"value":"Rect | Polygon | Line | Ellipse | Point | Array | Bounds | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6<%7> | %8 | object"}}],"returns":[{"description":"

                          the shape array length

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-wj7nIgXQbctn8RuwbZwd","name":"addVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given vertices to the body shape

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of me.Vector2d points defining a convex hull

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

                          the shape object for which to set the vertices

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BeEM5uLn9icimGQCe_lvf","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

                          the parent object this body is attached to

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"shapes","optional":true,"description":"

                          a initial shape, list of shapes, or JSON object defining the body

                          ","dataType":{"tokens":[{"value":"Rect | Array | Polygon | Array | Line | Array | Ellipse | Array | Point | Array | Bounds | Array | object","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"},{"value":"Point","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Bounds","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1 | %3<%2> | %4 | %5<%6> | %7 | %8<%9> | %10 | %11<%12> | %13 | %14<%15> | %16 | %17<%18> | object"}},{"identifier":"onBodyUpdate","optional":true,"description":"

                          callback for when the body is updated (e.g. add/remove shapes)

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"GO63wS7jHnxBfM1W7sK_f","name":"contains","brief":"","examples":[{"caption":"","code":"if (mySprite.body.contains(10, 10)) {\n // do something\n}\n// or\nif (mySprite.body.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the any of the shape composing the body contains the given point.

                          ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                          x coordinate or a vector point to check

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if contains

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TpwkRBwcXkvQxLdZMJpNZ","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all shapes of the physic body\nmySprite.body.forEach((shape) => {\n shape.doSomething();\n});\nmySprite.body.forEach((shape, index) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... });\nmySprite.body.forEach((shape, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                          The forEach() method executes a provided function once per body shape element.
                          \nthe callback function is invoked with ...","params":[{"identifier":"callback","optional":false,"description":"

                          fnction to execute on each element

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                          value to use as this(i.e reference Object) when executing callback.

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"R3hy347m4UH4Mb8uCF1C_","name":"fromJSON","brief":"","examples":[{"caption":"","code":"// define the body based on the banana shape\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\").banana);\n// or ...\nthis.body.fromJSON(me.loader.getJSON(\"shapesdef\"), \"banana\");"}],"scope":"instance","see":["https://www.codeandweb.com/physicseditor"],"type":"MethodDoc","description":"

                          add collision mesh based on a JSON object\n(this will also apply any physic properties defined in the given JSON file)

                          ","params":[{"identifier":"json","optional":false,"description":"

                          a JSON object as exported from a Physics Editor tool

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"id","optional":true,"description":"

                          an optional shape identifier within the given the json object

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                          how many shapes were added to the body

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WN9lRe0p8w3Ybvq12aiiO","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the AABB bounding box for this body

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HOW8_NiQjBhI4E8Wzb4Sa","name":"getShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the collision shape at the given index

                          ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                          the shape object at the specified index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          shape a shape object if defined

                          ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"extends":[],"implements":[]},{"id":"05AgJRn9Zpn2P8JMIqKpu","name":"removeShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          remove the specified shape from the body shape list

                          ","params":[{"identifier":"shape","optional":false,"description":"

                          a shape object

                          ","dataType":{"tokens":[{"value":"Polygon | Line | Ellipse","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          the shape array length

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HefoeM5-6CSwOvh6VWy-2","name":"removeShapeAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          remove the shape at the given index from the body shape list

                          ","params":[{"identifier":"index","optional":false,"description":"

                          the shape object at the specified index

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          the shape array length

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BUTy1E2RYEb46WE2Jz_Sd","name":"respondToCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

                          the built-in function to solve the collision response

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object (see {@link ResponseObject})

                          ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"J-07NR9ccji04awKtwwvH","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this body (counter-clockwise) by the specified angle (in radians).\nUnless specified the body will be rotated around...","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"default":"Body.getBounds().center","description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sb5CYw-cPeOFRRU50fMDm","name":"setCollisionMask","brief":"","examples":[{"caption":"","code":"// filter collision detection with collision shapes, enemies and collectables\nbody.setCollisionMask(me.collision.types.WORLD_SHAPE | me.collision.types.ENEMY_OBJECT | me.collision.types.COLLECTABLE_OBJECT);\n...\n// disable collision detection with all other objects\nbody.setCollisionMask(me.collision.types.NO_OBJECT);"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

                          By default all physic bodies are able to collide with all other bodies,
                          \nbut it's also possible to specify 'collision ...","params":[{"identifier":"bitmask ","optional":true,"default":" collision.types.ALL_OBJECT","description":"

                          the collision mask

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"J_ZwiD7LjesGa_pgUCHU3","name":"setCollisionType","brief":"","examples":[{"caption":"","code":"// set the body collision type\nbody.collisionType = me.collision.types.PLAYER_OBJECT;"}],"scope":"instance","see":["collision.types"],"type":"MethodDoc","description":"

                          define the collision type of the body for collision filtering

                          ","params":[{"identifier":"type","optional":false,"description":"

                          the collision type

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Kh1npH72jmOiiK1mWAI5t","name":"setFriction","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the body default friction

                          ","params":[{"identifier":"x","optional":false,"default":"0","description":"

                          horizontal friction

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                          vertical friction

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9AlYZE6n1DYPsFCHCp6VF","name":"setMaxVelocity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          cap the body velocity (body.maxVel property) to the specified value

                          ","params":[{"identifier":"x","optional":false,"description":"

                          max velocity on x axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          max velocity on y axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BnHxru6tYbMMcs-JPG6lo","name":"setStatic","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the body as a static body\nstatic body do not move automatically and do not check againt collision with others

                          ","params":[{"identifier":"isStatic","optional":true,"default":"true","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"56gaYc5J4dwQILFlZ0uLm","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the body vertices to the given one

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of me.Vector2d points defining a convex hull

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"index","optional":true,"default":"0","description":"

                          the shape object for which to set the vertices

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"true","description":"

                          either to reset the body definition before adding the new vertices

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"zhGHnTBOkwNZMPSSCjIGw","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          Updates the parent's position as well as computes the new body's velocity based\non the values of force/friction. Velocity...","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if resulting velocity is different than 0

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"c1x7hUqFdOHLG5m2bXXyY","name":"Bounds","brief":"","type":"ClassDoc","description":"

                          a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1dRuvilA6XnSLOfpHbOkD","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nC-qV1K0DJEWCmj9zxOGF","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the center position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jqVcSB7dguLYhqHVkkbAt","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the x axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HX_MN0LQ-_UKIDzqYPWa_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the y axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DllySBzcwmnTlpzxOZ_3O","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wb9evITAkaGbLCsS_-C-B","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"szRYUlKtw1tj2CpLiCKlX","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tchfGKAU0ODFqdY9myfoi","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qe34X_AIBCj4l5qgzUY0R","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                          the object type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aUxVGO-DqfBfTi8wrpYkd","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2a5bpNJ0uXHj3UBRkeSQf","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rYqo3RkyOUxXYH6UWGSD2","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y position of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DOY-2-dYwqqneQiU3DzGF","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given vertices to the bounds definition.

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of Vector2d or Point

                          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                          either to reset the bounds before adding the new vertices

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"JmOg-uTHOiCGIBHQQjQO6","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given bounds to the bounds definition.

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                          either to reset the bounds before adding the new vertices

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"y-wr0ZKzRSyrZ0yJcjnRA","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given quad coordinates to this bound definition, multiplied by the given matrix

                          ","params":[{"identifier":"x0","optional":false,"description":"

                          left X coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                          top Y coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                          right X coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                          bottom y coordinates of the quad

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                          an optional transform to apply to the given frame coordinates

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1Bz2-fTrjOgeoTwFEFhTh","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                          add the given point to the bounds definition.

                          ","params":[{"identifier":"point","optional":false,"description":"

                          the vector or point to be added to the bounds

                          ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                          an optional transform to apply to the given point (if the given point is a Vector2d)

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ytc96C7Hvwf4xNycJTbFs","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the bounds position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this bounds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this bounds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6c9U-LCXFWokfMhZnQNfJ","name":"clear","brief":"

                          reset the bound

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WpmazKQ6GFVwUL_klHebP","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this bounds

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mqK831f8gCJJKsuUt5KMh","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"vertices","optional":true,"description":"

                          an array of Vector2d or Point

                          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"BqyqdjFiLglgt4WajHT7P","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the bounds contains the given point.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to check

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the bounds contain the point, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fyK42S3WFFQ9vXfH068_v","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this bounds are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LrZwTbPC_NjTPwn8vsJeB","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the two bounds intersect.

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          True if the bounds overlap, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ViSH0pOQYGfZLSO9Hfnvc","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                          sets the bounds to the given min and max value

                          ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"x-Yg7IU53XR_MUYiP1eKN","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the bounds to the given x, y position.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"inSfB-cd9_fbnQ4L3bzQv","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this bounds.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this bounds.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uJVXmQz-p1YbRra6A4ZUa","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Translates the bounds by the given point

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"w6Lno1KM23bRlgeCxKABT","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Updates bounds using the given vertices

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          an array of Vector2d or Point

                          ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"78atrQxvlfbIwZZBzSz87","name":"Camera2d","brief":"","type":"ClassDoc","description":"

                          a 2D orthographic camera

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"9p7e-DMG_rRWtmEyQh29T","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

                          Axis definition

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ivqZP_UvS5Kb7ehDyiaYG","name":"BOTH","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                          both axis

                          "},{"id":"D_WpJb1RNYxRSfjW10aR0","name":"HORIZONTAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                          horizontal axis only

                          "},{"id":"cuAKlGLJJEZ1Rkdt4JdSA","name":"NONE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                          no axis

                          "},{"id":"sxLy5JWYdQksplJfOvZb1","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                          vertical axis only

                          "}]},{"id":"HuytYK2qf7ZSLS-rElfKG","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                          Define the renderable opacity
                          \nSet to zero if you do not wish an object to be drawn

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L71WWJdqRn1qNzUmedZQ2","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object will always update, even when outside of the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rWhz6qeVed2E9jrMbk6v8","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the parent object that contains this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UemmRhufgzQvUymivU3DN","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                          The anchor point is used for attachment behavior, and/or when applying transformations.
                          \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MJkMquO3UzQV_evzfglZb","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                          When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_xvgk3d4AsNfKkz5IQflF","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                          the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"39S9dmw4Vi37TaIV8Shep","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                          the renderable physic body

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ns2cn-vnD_jM8gOQCIkbi","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9wf-Xyav5AwZzNBUmkyR-","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Camera bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"59wyDTWCYlaDfYOMBNTer","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9UXj3fmSsoMm7KNyWkyZZ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OuHg7N3GCH9SY0q3c4so8","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HeKDFR4guCu6-5wXvHz1r","name":"damping","brief":"","access":"public","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                          Camera damping for smooth transition [0 .. 1].\n1 being the maximum value and will snap the camera to the target position

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hjfwzX1JUHfJX2KLK6wB8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZkW3UO1q0Ea5eQ18SBEkd","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

                          the furthest point relative to the camera.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E6P4au0KcwSO9ORUyARvM","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EQZ4p28JczqGY8ON8l8Xo","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          (G)ame (U)nique (Id)entifier"
                          \na GUID will be allocated for any renderable object added
                          \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"466xMgxSI7H0rom76udoD","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M9oCsXANxKML77qb4L1Of","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether the renderable object is visible and within the viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"waUKUycmdaKmJkeH0PIew","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          when true the renderable will be redrawn during the next update cycle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NVlX34kEEe7FOTtmmthu7","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9CRZs7STyaqMyOiJgdWOA","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                          returns true if this renderable is flipped on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aidOuL3iq7j6jrqc3chBf","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                          Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gUyGNqXjii81MFX98ZEvw","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          If true then physic collision and input events will not impact this renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EDdwLYNQKeaXggTk4yGIe","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WrUDprQlwk9zFrx4CZ7s6","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ck8edLyEMdNbdOUBiq2L","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                          A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1__OJKvYodV5EhV-cjos6","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wulLfCpk3cwzdWZuFC_dM","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

                          the closest point relative to the camera

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zqGwUCEFCNOqNhIc1SOC0","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                          an event handler that is called when the renderable leave or enter a camera viewport

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"66ETx0RqYD72u85sWiP6D","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          returns the parent application (or game) to which this renderable is attached to

                          ","params":[],"returns":[{"description":"

                          the parent application or undefined if not attached to any container/app

                          ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"osG2i0s_0igOr8VOv0OxW","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Array of points defining the Polygon
                          \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4J3M_l3uuFqN-ay_6wQnY","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"brsm49bv2RSw6VHM3T33r","name":"projectionMatrix","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          the default camera projection matrix\n(2d cameras use an orthographic projection by default).

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rByh3f4VjxbqIQHSLvOre","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hZe0lgxgjxjz19HdBmiAW","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dhkMlQpopF9sglnW4judy","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                          define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XbwiHKk1Uimcd4S7FtrKx","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rXxapubf2ulObyjFLB6HI","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rXi7Ne-soWSMh9Qpkw-Le","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Whether to update this object when the game is paused.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3S2rmz9PpK1HEH4nv2i1-","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YjgP0plpppbZCnIjKOb9H","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          enable or disable damping

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FvLYzMB7P-94ip-dKq58D","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the angle to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PenrAaCxRR5JAnKffnuDr","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          center the rectangle position around the given coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate around which to center this rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uNJTSV5VmKTbuGcAdRotD","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clone this rectangle

                          ","params":[],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ckaTsxEQ1bcEkdYIw0_kD","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"minX","optional":false,"description":"

                          start x offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"description":"

                          start y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"description":"

                          end x offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"description":"

                          end y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PP45s914EdWH5PNI7dysy","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                          Returns true if the rectangle contains the given point or rectangle

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point, or a rectangle to test

                          ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                          y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          True if the rectangle contain the given point or rectangle, otherwise false

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aI1DGqdPBgPCFVEYLcQYO","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                          copy the position and size of the given rectangle into this one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          Source rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          new rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S6e2UHwydmvsVHS9QSVGr","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the distance to the specified target

                          ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          distance

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DNgbDWEwzOUImDacXg4UH","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer instance

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                          the viewport to (re)draw

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8QXBTXvNlGgWhW4_NLktC","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is identical to the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Gk9RPbR1yvQ1GOLxBFW-f","name":"fadeIn","brief":"","examples":[{"caption":"","code":"// flash the camera to white for 75ms\nme.game.viewport.fadeIn(\"#FFFFFF\", 75);"}],"scope":"instance","type":"MethodDoc","description":"

                          fadeIn effect

                          \nfade to the specified color

                          ","params":[{"identifier":"color","optional":false,"description":"

                          a CSS color value

                          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                          expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                          callback once effect is over

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"smYuw_ajzBcLW26vT0cNC","name":"fadeOut","brief":"","examples":[{"caption":"","code":"// fade the camera to white upon dying, reload the level, and then fade out back\nme.game.viewport.fadeIn(\"#fff\", 150, function() {\n me.audio.play(\"die\", false);\n me.level.reload();\n me.game.viewport.fadeOut(\"#fff\", 150);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                          fadeOut(flash) effect

                          \nscreen is filled with the specified color and slowly goes back to normal

                          ","params":[{"identifier":"color","optional":false,"description":"

                          a CSS color value

                          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"duration","optional":true,"default":"1000","description":"

                          expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                          callback once effect is over

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"nJ7KEdMLkEGKBtDkXbASr","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                          flip the renderable on the horizontal axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"25R1CypbKsU14RXW25Wxk","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                          flip the renderable on the vertical axis (around the center of the renderable)

                          ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                          true to flip this renderable.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vBE3BINf1RJCFLIkfYNLp","name":"focusOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the camera position around the specified object

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable to focus the camera on

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[],"extends":[],"implements":[]},{"id":"htX5wSubrPmRJ7sJKYN4M","name":"follow","brief":"","examples":[{"caption":"","code":"// set the camera to follow this renderable on both axis, and enable damping\nme.game.viewport.follow(this, me.game.viewport.AXIS.BOTH, 0.1);"}],"scope":"instance","type":"MethodDoc","description":"

                          set the camera to follow the specified renderable.
                          \n(this will put the camera center around the given target)

                          ","params":[{"identifier":"target","optional":false,"description":"

                          renderable or position vector to follow

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

                          Which axis to follow (see {@link Camera2d.AXIS})

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"damping","optional":true,"default":"1","description":"

                          default damping value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9bYaszRBKT3sS4pLNhq_-","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the renderable absolute position in the game world

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YIo5_nO61sDwWPOzLmwMv","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the bounding box for this renderable

                          ","params":[],"returns":[{"description":"

                          bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gpmQbu1nFkO9LBjMo2Afm","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns a list of indices for all triangles defined in this polygon

                          ","params":[],"returns":[{"description":"

                          an array of vertex indices for all triangles forming this polygon.

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Fbu8Fiu_eAnPOSwiu0SEe","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the renderable alpha channel value

                          ","params":[],"returns":[{"description":"

                          current opacity value between 0 and 1

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yiEgdYmbtNbhYjsHG8g98","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                          ","params":[],"returns":[{"description":"

                          true if the vertices are convex, false if not, null if not computable

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Nb-sNfVry11VIC8HYWnoL","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                          determines whether all coordinates of this rectangle are finite numbers.

                          ","params":[],"returns":[{"description":"

                          false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QOGeAEr5V4BssXGwcqBC1","name":"isVisible","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if the specified renderable is in the camera

                          ","params":[{"identifier":"obj","optional":false,"description":"

                          to be checked against

                          ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"floating ","optional":true,"default":" obj.floating","description":"

                          if visibility check should be done against screen coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          true if within the viewport

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gUBbo9M5ZIpFFuVOOBRYF","name":"localToWorld","brief":"","scope":"instance","type":"MethodDoc","description":"

                          convert the given "local" (screen) coordinates into world coordinates

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the x coordinate of the local point to be converted

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the y coordinate of the local point to be converted

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to set the converted value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bSGOHJeQfccGVPgSVC380","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable towards the given target.

                          ","params":[{"identifier":"target","optional":false,"description":"

                          the renderable or position to look at

                          ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vm99fw0hPS0vCzdEmGvqi","name":"move","brief":"","examples":[{"caption":"","code":"// Move the camera up by four pixels\nme.game.viewport.move(0, -4);"}],"scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

                          move the camera upper-left position by the specified offset.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          horizontal offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          vertical offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vWrVGcpVVQ6JsvyeM9026","name":"moveTo","brief":"","scope":"instance","see":["Camera2d.focusOn"],"type":"MethodDoc","description":"

                          move the camera upper-left position to the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"N0LPk_8PYbV7Jiu-OLSBa","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                          onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                          ","params":[{"identifier":"response","optional":false,"description":"

                          the collision response object

                          ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                          the other renderable touching this one (a reference to response.a or response.b)

                          ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                          true if the object should respond to the collision (its position and velocity will be corrected)

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"n_jELsOjtFTVM62o4ib-8","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LZn4oAayZEAJAnt2O17DB","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if this rectangle is intersecting with the specified one

                          ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"avhUpVkZXX4pGP5XuDGOU","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                          restore the rendering context after drawing (automatically called by melonJS).

                          ","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"JWIDnyJJUWJ0nUG7PlqnK","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                          Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                          a renderer object

                          ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Sh5PmaeQaLdxtUpKLVm3U","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wf50nP3eIuwq5wDIFWrje","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                          reset the camera position to specified coordinates

                          ","params":[{"identifier":"x","optional":true,"default":"0","description":"

                          initial position of the camera on the x axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                          initial position of the camera on the y axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nVfQh2kYWDC1a9zm1WiZ5","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resize the camera

                          ","params":[{"identifier":"w","optional":false,"description":"

                          new width of the camera

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          new height of the camera

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this camera

                          ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hPA06fc9wJvKxxOKdGPQ7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Rotate this renderable by the specified angle (in radians).

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          The angle to rotate (in radians)

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional point to rotate around

                          ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"akhpIIODKVczBKc13S9b6","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                          a number representing the abscissa of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                          a number representing the ordinate of the scaling vector.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S1fs--1iU86BIgC-H90Ge","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                          scale the renderable around his anchor point

                          ","params":[{"identifier":"v","optional":false,"description":"

                          scaling vector

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rrea4mQW0u8VKYQCNxCvw","name":"setBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the camera boundaries (set to the world limit by default).\nthe camera is bound to the given coordinates and cannot mov...","params":[{"identifier":"x","optional":false,"description":"

                          world left limit

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          world top limit

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          world width limit

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          world height limit

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nPFVlBXWAtAUG7rBuM6sd","name":"setDeadzone","brief":"","scope":"instance","see":["Camera2d.follow"],"type":"MethodDoc","description":"

                          change the deadzone settings.\nthe "deadzone" defines an area within the current camera in which\nthe followed ren...","params":[{"identifier":"w","optional":false,"description":"

                          deadzone width

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          deadzone height

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1KG7JQt7rZoOXI5PXEqHT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the renderable alpha channel value

                          ","params":[{"identifier":"alpha","optional":false,"description":"

                          opacity value between 0.0 and 1.0

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dAiTnavvlMv--fi14rTpp","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set new value to the rectangle shape

                          ","params":[{"identifier":"x","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          position of the Rectangle

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          width of the rectangle, or an array of vector defining the rectangle

                          ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                          height of the rectangle, if a numeral width parameter is specified

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          this rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"InVtLJWOZjVsr07B6bwKy","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                          set the vertices defining this Polygon

                          ","params":[{"identifier":"vertices","optional":false,"description":"

                          array of vector or vertice defining the Polygon

                          ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                          this instance for objecf chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nsidT7c5u0QFPxQryrOtb","name":"shake","brief":"","examples":[{"caption":"","code":"// shake it baby !\nme.game.viewport.shake(10, 500, me.game.viewport.AXIS.BOTH);"}],"scope":"instance","type":"MethodDoc","description":"

                          shake the camera

                          ","params":[{"identifier":"intensity","optional":false,"description":"

                          maximum offset that the screen can be moved\nwhile shaking

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"duration","optional":false,"description":"

                          expressed in milliseconds

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"axis","optional":true,"default":"me.game.viewport.AXIS.BOTH","description":"

                          specify on which axis to apply the shake effect (see {@link Camera2d.AXIS})

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"onComplete","optional":true,"description":"

                          callback once shaking effect is over

                          ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"force","optional":true,"description":"

                          if true this will override the current effect

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q_dQeJdCQP1BRsGK-pfkl","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          Shifts the Polygon to the given position vector.

                          ","params":[{"identifier":"x","description":"

                          x coordinate or a vector point to shift to

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JntvFuMiqK8fxP37QbEmY","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply a 2d projection to this shapen

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"69K7LTA-cDavG6taTKm7K","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                          apply an isometric projection to this shape

                          ","params":[],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5h6bLzvYm4FHloHBdakdj","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns a polygon whose edges are the same as this box.

                          ","params":[],"returns":[{"description":"

                          a new Polygon that represents this rectangle.

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"frzlA55C5dkl5nVWlWZvf","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                          multiply the renderable currentTransform with the given matrix

                          ","params":[{"identifier":"m","optional":false,"description":"

                          the transformation matrix

                          ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D5hfk-l4vERX7PmHGYtAt","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                          translate the Polygon by the specified offset

                          ","params":[{"identifier":"x","description":"

                          x offset or a vector point to translate by

                          ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                          y offset

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          Reference to this object for method chaining

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"awPZ0MGKMWAM8XdNMsM_w","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

                          unfollow the current target

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4U1us_x6pDe4TlDaCEtpT","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                          merge this rectangle with another one

                          ","params":[{"identifier":"rect","optional":false,"description":"

                          other rectangle to union with

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                          the union(ed) rectangle

                          ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u35p_OOh2vsGMoBkBtrC2","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update function (automatically called by melonJS).

                          ","params":[{"identifier":"dt","optional":false,"description":"

                          time since the last update in milliseconds.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          true if the renderable is dirty

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"mLGzJUYzRZbNRa442GnAV","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                          update the bounding box for this shape.

                          ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                          update the bounds size and position in (world) absolute coordinates

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                          this shape bounding box Rectangle object

                          ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SBXlv-ofpcaT8vPCbamUe","name":"worldToLocal","brief":"","scope":"instance","type":"MethodDoc","description":"

                          convert the given world coordinates into "local" (screen) coordinates

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                          an optional vector object where to set the converted value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                          a vector with the converted local coordinates

                          ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1qjakg89gcU_Cp8Ka4Fg3","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                          called when the anchor point value is changed

                          ","params":[{"identifier":"x","optional":false,"description":"

                          the new X value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          the new Y value to be set for the anchor

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"K6wDn8x9eXMFyMh5NBzbD","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

                          a canvas renderer object

                          ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"QitYrL1fdS51APi0eoXUj","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                          the default method to sort object ("sorting", "z-buffer")

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w3T3HtmIgZPvKqqB7w16f","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          the requested video size ratio

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tW-veZEPRu3nkADrw2KVg","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the height of the canvas which this renderer draws to

                          ","params":[],"returns":[{"description":"

                          height of the system Canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ea4Tbw45YFkA5SF--rrYU","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          true if the current rendering context is valid

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x89cstwG1wFV1DWjmxjqY","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Path2D instance used by the renderer to draw primitives

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lZmaVO7i3NvBorNy6mdOJ","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                          the scaling ratio to be applied to the main canvas

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YzQSqEFso6mHKcA2M7i0T","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          The given constructor options

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T-KgyUh0P_mSUjmBUMC9L","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                          The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fXc3KQEPqes2aKwpxXpIN","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the width of the canvas which this renderer draws to

                          ","params":[],"returns":[{"description":"

                          width of the system Canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xjapa_VyGTOMSwte96F9A","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

                          starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"86C4UU5LQseCPLklMGpU8","name":"clear","brief":"

                          prepare the framebuffer for drawing a new frame

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DsdGmIHBWabY1H2kxgm36","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Clears the main framebuffer with the given color

                          ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

                          CSS color.

                          ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

                          Allow transparency [default] or clear the surface completely [true]

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"eeK4YE1o_G6kCbN0vhOao","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

                          disable (remove) the rendering mask set through setMask.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vCcxewgrJkzNeaLwNBWjH","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

                          ","params":[{"identifier":"x","optional":false,"description":"

                          x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"din1F7hVGZo0AqHGe6F3s","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                          clear the rendering tint set through setTint.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6KLz5buXucRzjTxV1V50q","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q2Ix9f7kVGzSkM6t5wb-A","name":"closePath","brief":"

                          add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UWXhfWmoLK7sz4K_GPNMR","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                          optional parameters for the renderer

                          ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BpjLYmgSbP0fiXeOn4Yxn","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

                          Create a pattern with the specified repetition

                          ","params":[{"identifier":"image","optional":false,"description":"

                          Source image to be used as the pattern's image

                          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

                          Define how the pattern should be repeated

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KVaJmI3HN0HiM8-oSBREs","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

                          Draw an image onto the main using the canvas api

                          ","params":[{"identifier":"image","optional":false,"description":"

                          An element to draw into the context.

                          ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

                          The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

                          The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

                          The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

                          The height of the sub-rectangle of the source image to draw into the destination context.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

                          The X coordinate in the destination canvas at which to place the top-left corner of the source image.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

                          The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

                          The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

                          The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FHLkbTrgC1HL0E9IQm-TL","name":"drawPattern","brief":"","scope":"instance","see":["CanvasRenderer#createPattern"],"type":"MethodDoc","description":"

                          Draw a pattern within the given rectangle.

                          ","params":[{"identifier":"pattern","optional":false,"description":"

                          Pattern object

                          ","dataType":{"tokens":[{"value":"CanvasPattern","kind":"canonical"},{"value":"CanvasPattern","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"W-vHXvAolC9WZzTWu_Ao5","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                          fill the given shape or the current defined path

                          ","params":[{"identifier":"shape","optional":true,"description":"

                          a shape object to fill

                          ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"459vMuZd2lWGCVs1IAzIp","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill an arc at the specified coordinates with given radius, start and end points

                          ","params":[{"identifier":"x","optional":false,"description":"

                          arc center point x-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          arc center point y-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                          start angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                          end angle in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                          draw arc anti-clockwise

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"GuT2NSpcACzm60Hzml6VA","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill an ellipse at the specified coordinates with given radius

                          ","params":[{"identifier":"x","optional":false,"description":"

                          ellipse center point x-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          ellipse center point y-axis

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                          horizontal radius of the ellipse

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                          vertical radius of the ellipse

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Y1Vu344je2EvZJ_W2oYDc","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill a line of the given two points

                          ","params":[{"identifier":"startX","optional":false,"description":"

                          the start x coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                          the start y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                          the end x coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                          the end y coordinate

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"89nF7wYO25jqUdzXXryjo","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a a point at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AuePEf6GM4WFQx6rddicT","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Fill the given me.Polygon on the screen

                          ","params":[{"identifier":"poly","optional":false,"description":"

                          the shape to draw

                          ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-rp9UqiSu4mH7r4yC5yaa","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a filled rectangle at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KRCtmTXI4SwMs3kSd9_uJ","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Draw a rounded filled rectangle at the specified coordinates

                          ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0TsEg7kosH1fBvbWpGdnv","name":"flush","brief":"

                          render the main framebuffer on screen

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pVKv0GS2RNbOScNja_s0W","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                          returns the current blend mode for this renderer

                          ","params":[],"returns":[{"description":"

                          blend mode

                          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"F9p9C7iQh3QRGx62T35mO","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a reference to the canvas which this renderer draws to

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ihaj1myoIlUx_GfTroeLI","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                          get the current fill & stroke style color.

                          ","params":[],"returns":[{"description":"

                          current global color

                          ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kZtEbLGkg-7HqGVnoaN1h","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return a reference to this renderer canvas corresponding Context

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"E2IJzMlQf3xSzbFDFy2ku","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Returns the 2D Context object of the given Canvas
                          \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

                          use false to disable transparency

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vo46FkFJx0YBZoRoL2AtG","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                          Return the global alpha

                          ","params":[],"returns":[{"description":"

                          global alpha value

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Qu_3m4OB-QxycjWyGMdLK","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                          return a reference to the screen canvas

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4LgqPsBwpNaO9e_6l4ulN","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                          return a reference to the screen canvas corresponding 2d Context
                          \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4UrOTgeUHPrXXXwSg1wDZ","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                          return the current global alpha

                          ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uCaONT_vyTlJ1ModgbE1o","name":"lineTo","brief":"

                          adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

                          ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"-6YYDXcWO-8PemDpNupWL","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                          begins a new sub-path at the point specified by the given (x, y) coordinates.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CntdrPxzfDqpZM37aOknx","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                          check if the given rect or bounds overlaps with the renderer screen coordinates

                          ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                          true if overlaps

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GAOzzZa2IwKnm7POx5geq","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n8xFBGzJfZenyiX1KDXJB","name":"reset","brief":"

                          Reset context state

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_FTthunurSUmeBmtz2Km4","name":"resetTransform","brief":"

                          Reset the canvas transform to identity

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iz1hARdFLcNmFTaip3T9q","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                          resizes the system canvas

                          ","params":[{"identifier":"width","optional":false,"description":"

                          new width of the canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          new height of the canvas

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lecptkB1vrVT8Lo2KFEEB","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                          restores the most recently saved renderer state by popping the top entry in the drawing state stack

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gjgyzoJKZf3CYGLNo0W3a","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                          adds a rotation to the transformation matrix.

                          ","params":[{"identifier":"angle","optional":false,"description":"

                          the rotation angle, clockwise in radians

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ysylteyhZVtlYOEA6F7SC","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                          adds a rounded rectangle to the current path.

                          ","params":[{"identifier":"x","optional":false,"description":"

                          The x axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          The y axis of the coordinate for the rectangle starting point.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                          The rectangle's width.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                          The rectangle's height.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                          The corner radius.

                          ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iZ44p7iZQobONxATvhXYM","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                          saves the entire state of the renderer by pushing the current state onto a stack.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3QjhDfgFwnlUiaCa_JJPm","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                          adds a scaling transformation to the renderer units horizontally and/or vertically

                          ","params":[{"identifier":"x","optional":false,"description":"

                          Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                          Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"0sbRN_aeCWYovFsxY341O","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                          enable/disable image smoothing (scaling interpolation) for the given context

                          ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"OPXrvwF8VIjWmha9V0Os_","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

                          set a blend mode for the given context.
                          \nSupported blend mode between Canvas and WebGL remderer :

                          \n
                            \n
                          • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                            blend mode : "normal", "multiply", "lighter, "additive", "screen"

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5Y83l-hPpCaKyJYJ_UFWc","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                            ","params":[{"identifier":"color","optional":false,"description":"

                            css color value

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"vPeveNYg94JA1-81MjRpQ","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set the global alpha

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            0.0 to 1.0 values accepted.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NWny5_H3paEdM6oHKG8qF","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set the line width on the context

                            ","params":[{"identifier":"width","optional":false,"description":"

                            Line width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h9MF8XBJ0fdhSJWa0zjE0","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                            the shape defining the mask to be applied

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                            either the given shape should define what is visible (default) or the opposite

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-8yYJq3QvvpF8gIfiUlIn","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix (WebGL only)

                            ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OkEjRWY3Aphgm8NPW2dXG","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set a coloring tint for sprite based renderables

                            ","params":[{"identifier":"tint","optional":false,"description":"

                            the tint color

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                            an alpha value to be applied to the tint

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"N0dTralG3ljvZ6XRKcu_9","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                            ","params":[{"identifier":"a","optional":false,"description":"

                            a matrix2d to transform by, or a the a component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                            the b component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                            the c component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                            the d component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                            the e component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                            the f component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DHJ64LlKrwXFoUM5-s0Z_","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                            stroke the given shape or the current defined path

                            ","params":[{"identifier":"shape","optional":true,"description":"

                            a shape object to stroke

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7U29kxcUNXyZr8eovXJD9","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke an arc at the specified coordinates with given radius, start and end points

                            ","params":[{"identifier":"x","optional":false,"description":"

                            arc center point x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            arc center point y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                            start angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                            end angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                            draw arc anti-clockwise

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-zfX55-duqZ_PvYGdR667","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke an ellipse at the specified coordinates with given radius

                            ","params":[{"identifier":"x","optional":false,"description":"

                            ellipse center point x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            ellipse center point y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            horizontal radius of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            vertical radius of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"KWTHtsUWZuYp228UfpM36","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a line of the given two points

                            ","params":[{"identifier":"startX","optional":false,"description":"

                            the start x coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                            the start y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                            the end x coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                            the end y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"P21UgshetuELt2jbr3CsN","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a Point at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"iqlHg36iCVFjbFdiwPpQW","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke the given me.Polygon on the screen

                            ","params":[{"identifier":"poly","optional":false,"description":"

                            the shape to draw

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"FTyA8t17a6CEwOBfh33vm","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a rectangle at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"uYd7IpshhEhgZgv2ioDAe","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a rounded rectangle at the specified coordinates

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            also fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"2lwnhFT00pWCzjZQpgJ2w","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            tint the given image or canvas using the given color

                            ","params":[{"identifier":"src","optional":false,"description":"

                            the source image to be tinted

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                            the color that will be used to tint the image

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                            the composition mode used to tint the image

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            a new canvas element representing the tinted image

                            ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"9HCxT1A-IiAUpSLn3i64V","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates a Blob object representing the last rendered frame

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a Blob object representing the last rendered frame

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Qqqz0ITZvX2jV5fHUCOxP","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                            returns a data URL containing a representation of the last frame rendered

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a string containing the requested data URL.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KdX96w4779MktHtJJ9fII","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning an ImageBitmap.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6fqXjZgYHsv4i47C4F1-c","name":"transform","brief":"","scope":"instance","see":["{@link CanvasRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                            Multiply given matrix into the renderer tranformation matrix

                            ","params":[{"identifier":"a","optional":false,"description":"

                            a matrix2d to transform by, or a the a component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                            the b component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                            the c component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                            the d component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                            the e component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                            the f component to multiply the current matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"S7t0pkfPhlOMmnNLukA9a","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds a translation transformation to the current matrix.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            Distance to move in the vertical direction. Positive values are down, and negative are up.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"VFi3W5sUhzm9X-z9KjZt6","name":"CanvasTexture","brief":"","type":"ClassDoc","description":"

                            Creates a Canvas Texture of the given size\n(when using WebGL, use invalidate to force a reupload of the corre...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Uugk_RJBeuiT8YQvJ4_kH","name":"canvas","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the canvas created for this CanvasTexture

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0sqUxtaYCdzfDRKAiXuQz","name":"context","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the rendering context of this CanvasTexture

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ibWCe0Le6gK6AB10-_R8m","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The height of this canvas texture in pixels

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jF5buneFPc3PXsfw9fwiW","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The width of this canvas texture in pixels

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dVorkny2mG0QgwJHxMmmt","name":"clear","brief":"

                            Clears the content of the canvas texture

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P_ogNCuKi3WHG6BaMNMdQ","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"width","optional":false,"description":"

                            the desired width of the canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            the desired height of the canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

                            The attributes to create both the canvas and context

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"attributes.context","optional":true,"default":"\"2d\"","description":"

                            the context type to be created ("2d", "webgl", "webgl2")

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.offscreenCanvas","optional":true,"default":"false","description":"

                            will create an offscreenCanvas if true instead of a standard canvas

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.willReadFrequently","optional":true,"default":"false","description":"

                            Indicates whether or not a lot of read-back operations are planned

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"attributes.antiAlias","optional":true,"default":"false","description":"

                            Whether to enable anti-aliasing, use false (default) for a pixelated effect.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Dw271JuUuYnvVpSjcUBd6","name":"getImageData","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.\n(Note: ...","params":[{"identifier":"x","optional":false,"description":"

                            The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            The ImageData extracted from this CanvasTexture.

                            ","dataType":{"tokens":[{"value":"ImageData","kind":"canonical"},{"value":"ImageData","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w65HZmZAE7k3Qub9IIfzH","name":"invalidate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            invalidate the current CanvasTexture, and force a reupload of the corresponding texture\n(call this if you modify the canva...","params":[{"identifier":"renderer","optional":false,"description":"

                            the renderer to which this canvas texture is attached

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"YRAqeZ7UCgBeijNTAWFgO","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Resizes the canvas texture to the given width and height.

                            ","params":[{"identifier":"width","optional":false,"description":"

                            the desired width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            the desired height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"p3JIhka3xVqih6bhgvnoX","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                            enable/disable image smoothing (scaling interpolation)

                            ","params":[{"identifier":"enable","optional":true,"default":"false","description":"

                            whether to enable or not image smoothing (scaling interpolation)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ow2BBsZaPqd3u-PbtPfXL","name":"toBlob","brief":"","examples":[{"caption":"","code":"canvasTexture.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates a Blob object representing the image contained in this canvas texture

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a Blob object representing the image contained in this canvas texture

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nqbBcrI5egghA_uLTIUv5","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                            returns a data URL containing a representation of the most recently rendered image of this canvas texture\n(not supported b...","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a string containing the requested data URL.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_ix7qknS43EvajtBFue-g","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"canvasTexture.transferToImageBitmap().then((bitmap) => console.log(bitmap));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates an ImageBitmap object from the most recently rendered image of this canvas texture

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning an ImageBitmap.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"yWLwDbUccegv8U4YKDfOM","name":"Collectable","brief":"","type":"ClassDoc","description":"

                            a basic collectable helper class for immovable object (e.g. a coin)

                            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"cu9M30ZoFQn38oj03Q5_a","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CQakb79RU1y4i0ihCR8qx","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Cf6YC5_hIBMXhKHQawaxL","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"99kqMeI1LJrWRs_PaVzdm","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aCBP_5ad8avOZb61uUOGV","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uUvI94fV6xQhbtFrTRkko","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                            animation cycling speed (delay between frame in ms)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u9r0RRYegA6J9dBRWPvZj","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SBdD1a5qth2qRyWCY-iWY","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O8eC3MKCOEBwZ0jJbTkpV","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zwHOmgw97k-U6GoL0mx81","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CJKYJwop94vx4uERKfSdg","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ZGo_MzrUGOgsO7b3lqsv","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5jJP-gbf80wPeU-W0RfH2","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MEwIRL2TXzsZqFn5cE1Fz","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A3_j4lJCUytQEDadMczwB","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-y3BpCZMmWHrkSYpZroLm","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2fFBs7PWnJUDirzwNhz0v","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OBduZ-7TXi5aw_uK90_Sj","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VWvqDk2GIh_0bd3B9jUJf","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3xy7WOEXBcujiFfrm39rv","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hsqf9HuLYrxvkTifK584h","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MiVCBd9juoDTfeAJzfh9O","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1wX5NcCMY1iYZ1cBXUQYM","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p8DgkpR8vUTn2ORaeBgg2","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4v4Kmcs1e3qVzz38gtNMD","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uyb6q5VEmB9shFQ9iD26X","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G4jCwZ4MbEQ3sOEnqljcb","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W9eE_maWRLNOlaZiXEZyr","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8Yxst7SvrniwsQ3ZjSI0n","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                            global offset for the position to draw from on the source image.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r4xRKHcJaaApkunYRNU6B","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jBD6OamhrY7Svpro1-zbG","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UNjxX-Da4QQvrmKY3AWN6","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m9zQkLkl4UtNfH0CxFwSw","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YqaNXB15eoyuOu-_zQUDX","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"24XxAJ850OAzv_Arov2hy","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YypVKYRtMiZZuMEKFUt_6","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            The source texture object this sprite object is using

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lxYKQUQNPQseEOR2S0ZuT","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y9ZqFIQriH14zar37WjdJ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eibqqBmJY7LG3UvEkPTWr","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pKgzkgB1izFKQo4sNAE47","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D-hB8T1BjIkIiQ-PRvYJC","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZwIxl9eVweKLxwDoSC_EV","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            add an animation
                            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                            cycling speed for animation in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            frame amount of frame added to the animation (delay between each frame).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JMQsQTc7QjEVyho3Vu50b","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JXnG2bC6Y3WK-yz6hCeUm","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iy7aQsCwhW6QipHF5KmE1","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M2eNff1BUIWpsJrjhs0ff","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the collectable

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the collectable

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            See {@link Sprite}

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"c5nFdyrRDjRLqpw2IKvtT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"stkwlsewBBALztUZzUjX8","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o9Tqvfglo2diHnmOP2F6T","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fzUyx5o1cvfpVGlYftNRd","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0S6heBOAizYODF9Nh21hP","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                            make the object flicker

                            ","params":[{"identifier":"duration","optional":false,"description":"

                            expressed in milliseconds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                            Function to call when flickering ends

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tb8p57REdfcr1Un8472rp","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5QPU6nHfZhrdseNuNY8ft","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kD8dHvicMQUlo3WggBR-W","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6-Xap1YPWxfNOKMDO3m-m","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mY4aTSlpkVyTkGnqwntL2","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current animation frame index.

                            ","params":[],"returns":[{"description":"

                            current animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qVUGBTND-OZnOMzechzPs","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"93frHp0tJOEye8eTsPcHN","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zyzI98ZNapyI9NlD_ILvN","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5elzajjuB729BwtSuviWt","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            return true if the specified animation is the current one.

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_-fHpZDRW6ioop4E_ZbHg","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NWiE4RBVPWjWDNhrqvEJS","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the flickering state of the object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yP5l1ygVxNi9lrjbhSQRi","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"n3xfqxesNbZpiIyskyWKr","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"30Ptko6t77YH9xtfSfFpW","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Q3uv_dtai-JNl07AwkqK","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8vtD5DZcxqm7nfoWh7Va_","name":"pause","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MmLgJYTNqhbBaI5k_HQxt","name":"play","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CcuBV5bk8z-_kTVSDPiha","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"k-zoVB5L0hSGDAgAH2zCW","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"BqtHjZ_YwCmZm6w8tl382","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HsPzFBbS6mQ6UlYs4YlAx","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WM7igPggPjPLR342QfH-W","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            reverse the given or current animation if none is specified

                            ","params":[{"identifier":"name","optional":true,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HAUAmn9nGUN5Uqr_pGMHV","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7Mgl4pfQBS7dprVHo0xy1","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rEjvy_R7cKaW12Pdp4rJr","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bkEaEq3C15b0tKRT8icd8","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                            force the current animation frame index.

                            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                            animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jzwaz8_ZHWuGq2wLAPP8w","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                            set the current animation\nthis will always change the animation & set the frame to zero

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                            animation id to switch to when complete, or callback

                            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                            if false will reset the elapsed time counter since last frame

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LH1RexaPAyi4asZvCiC9B","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lo5pbsbUcZeUKQtvBzmPq","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                            change the current texture atlas region for this sprite

                            ","params":[{"identifier":"region","optional":false,"description":"

                            typically returned through me.Texture.getRegion()

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LPt7B2KHGkjLs18RhXQLc","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FWm4iAkoUxy7v-DWdgp8U","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zHEAOKSZ_5KmGZIFFYsYQ","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"5oEq0mk3gB4IgvFwWizll","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZU1-1yN1Ct6DqlSkuem4A","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d9Zh6bXU0NWj7Us7f0Kvy","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Dkp9ua_QV2r4NuClYd3qB","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VajoZ04Jd3OA30xFQaJ2z","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ax6IQiEZZrnt6BeymbevI","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Du9Ffzn9QDtaxzYb0ZBZ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rTPSw7OlkLISGp9xvNXDC","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this srite (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rN9Rtbuswm3fybimL2tC2","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            update function.
                            \nautomatically called by the game manager {@link game}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Sprite is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"M-JIY4_NKK4fisJT7q6zd","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DD_LzKQjLAqfd1rY18Yry","name":"Color","brief":"","type":"ClassDoc","description":"

                            A color manipulation object.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"vRbd--FnDgz5fiUha2kIV","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Color Alpha Component [0.0 .. 1.0]

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lyHZoHw5XcSflxQbPije0","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Color Blue Component [0 .. 255]

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p_wnbk7YAwToCGVPFNYT5","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Color Green Component [0 .. 255]

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JJ1kFvmJ3pTTA4UJ9K5Qw","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Color Red Component [0 .. 255]

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SKCFkP0PBI4nASGdvblYx","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Blend this color with the given one using addition.

                            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"A-KMlF66ObNeq1GtCla4d","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Create a new copy of this color object.

                            ","params":[],"returns":[{"description":"

                            Reference to the newly cloned object

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yaw5Ynh4zcqr6qst6W9su","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"r","optional":true,"default":"0","description":"

                            red component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","description":"

                            green component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":true,"default":"0","description":"

                            blue component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                            alpha value [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DGAC4g0-0hMQyEpSOF-vo","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copy a color object or CSS color into this one.

                            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iXnllCiO8WR0GZxN0GeqP","name":"darken","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Darken this color value by 0..1

                            ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"53wHfQ2bA0nCT6_jq8kXq","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Return true if the r,g,b,a values of this color are equal with the\ngiven one.

                            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3PcdTRatWoFTx5t1W9Vsw","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Linearly interpolate between this color and the given one.

                            ","params":[{"identifier":"color","optional":false,"dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                            with alpha = 0 being this color, and alpha = 1 being the given one.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NKQ8nhCsklSJADPPY6ZMt","name":"lighten","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Lighten this color value by 0..1

                            ","params":[{"identifier":"scale","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XNPHxoywyGJ-rc7ZJi1h7","name":"parseCSS","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Parse a CSS color string and set this color to the corresponding\nr,g,b values

                            ","params":[{"identifier":"cssColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8qwVCxlaHMvpu_LsIP4Ew","name":"parseHex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Parse a Hex color ("#RGB", "#RGBA" or "#RRGGBB", "#RRGGBBAA" format) and set this ...","params":[{"identifier":"hexColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"argb ","optional":true,"default":" false","description":"

                            true if format is #ARGB, or #AARRGGBB (as opposed to #RGBA or #RGGBBAA)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rk_ViLNpguULOBVtFhWHE","name":"parseRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Parse an RGB or RGBA CSS color string

                            ","params":[{"identifier":"rgbColor","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P7Ix3vAwORa0vENPEahht","name":"random","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Generate random r,g,b values for this color object

                            ","params":[{"identifier":"min","optional":true,"default":"0","description":"

                            minimum value for the random range

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max","optional":true,"default":"255","description":"

                            maxmium value for the random range

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O4LVoLPdbMfzVA6aUSN9f","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Set this color to the specified value.

                            ","params":[{"identifier":"r","optional":false,"description":"

                            red component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

                            green component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

                            blue component [0 .. 255]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                            alpha value [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lNUmEr2emooNgviJfnDt7","name":"setFloat","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set this color to the specified normalized float values

                            ","params":[{"identifier":"r","optional":false,"description":"

                            red component [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":false,"description":"

                            green component [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"description":"

                            blue component [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"alpha","optional":true,"default":"1.0","description":"

                            alpha value [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zkiFD4gvFsovubPNmCBbG","name":"setHSL","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set this color to the specified HSL value

                            ","params":[{"identifier":"h","optional":false,"description":"

                            hue (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

                            saturation (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"l","optional":false,"description":"

                            lightness (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ztx_bvh4mOfyOs9fqur9C","name":"setHSV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set this color to the specified HSV value

                            ","params":[{"identifier":"h","optional":false,"description":"

                            hue (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"s","optional":false,"description":"

                            saturation (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

                            value (a value from 0 to 1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RMJUf3rOmmwa-Sn-eicNo","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return an Float Array representation of this object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mvkwd1CXXITOLhl2axkUf","name":"toHex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the color in "#RRGGBB" format

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"DeV9G87R14BBonacglDZ0","name":"toHex8","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Get the color in "#RRGGBBAA" format

                            ","params":[{"identifier":"alpha","optional":false}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"QNYznZdUu2Thi8nYoky6x","name":"toRGB","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Get the color in "rgb(R,G,B)" format

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"DDPkMEY12VCFGzE4unMdp","name":"toRGBA","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Get the color in "rgba(R,G,B,A)" format

                            ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

                            alpha value [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"COxhyNl_H6wLiXzjFOxX5","name":"toUint32","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Pack this color RGB components into a Uint32 ARGB representation

                            ","params":[{"identifier":"alpha","optional":true,"default":"1.0","description":"

                            alpha value [0.0 .. 1.0]

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"W1cuM7DwnY8B20QpI5hwY","name":"ColorLayer","brief":"","type":"ClassDoc","description":"

                            a generic Color Layer Object. Fills the entire Canvas with the color not just the container the object belongs to.

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"q3UQjQjL9Ade87b3-vHi6","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x2nK430-11GJmNkMxG0VG","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9zZKhLzL9lHLkRwHzik_a","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qjNwQVoUQdxHBZhUNtsPk","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-nbdLSwCcYtH7hK-fCuRv","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m-ncny9E-432ybiBWmUZa","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TZdEZ8kdpjoHMqxMhE9kY","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGwogRCGXP8zrpTuvBzTw","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qtKvVNyx3mbbuxh5HCDnY","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2aLOlFJodN0zlBW8d_npB","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HkXxq-FRQFhvBc5qjXVLX","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            the layer color component

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WVrFrW0cMBeUd-XR3gXKv","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NNQQEW9G_vooh2MNg7TQt","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bTqvmie2VKLrgnR8TMqlp","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OkobpPJzov8JNDXCvFr4M","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sN8-HGIw_9StaGxn7cQH4","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qem4wwNLTtPMWFbh75hYy","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jz3_7_kWEA_FQzy09slRb","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"di51tM-7_JLCdkd_3LdMx","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mwL0uFkc7gwMWBm2RyRmg","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bciWeMF6LzCo7B-xeTJg3","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dGwLcbh59ywzoWMjWCfTn","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jihBybE6w63eyC7jQ_th5","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JpgBkCi7jSjuDNEqFgKoN","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YR2bLI3c3My1EuGbIbtpf","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbIniJThPByQx0djd0S88","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OIBb8DzD0GGF9k7ehih--","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kpdlXMeSW9Nlsa2nPwWFf","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VRYbjWerxF2sQWMIpXoe8","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pp05By5tA4U-B4hqt1Ftc","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YXEKegrik3NLp1jjb4_6b","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w7buaCFP0zrWUFVmFFr2y","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xm-V3iUhSFxzt4bF07YF1","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QKet2D20N-scosL09FUO4","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i-Ovi7dKwaHae9kI76UYV","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"47yfMNOO1cY4Y6GXCgy97","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gMJiG_Hu7lNn3_qnGgoIQ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YxS1o2aTTDNlSLcByEC3f","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sUYXYA7d07nN4tywuYIZy","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7SSSRDeZ6l-oAlpd6v84a","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UWyKVOowMmqu1Dh89yhq-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"name","optional":false,"description":"

                            Layer name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"color","optional":false,"description":"

                            CSS color

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"z ","optional":true,"default":" 0","description":"

                            z-index position

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qT9Bg9wY0spaDLlmAgo-p","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"O5ma5kH-_VyKm3PaSi7S2","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y4KA_d-kleXWj_3ZHPuSX","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7wB3AwiZHJe57j4rhgQ9D","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZsOzveaHozfFYVPrhSVzz","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nDyGehfduDDAFjnDihv3V","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ceEZVIZHwzLM16q4-Z_j1","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-kYZh9rviOPq7fyeJeypm","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aKW4--VwXYvaShEeLGj__","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"zkwBm6JORxh48JeyIv6lK","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tPbOvRaIWWJZEwVOgE8xa","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0lanQ5zGvlpMF2A82NtoN","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VesbJ1rAfqCfRcmOvKNJL","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o0k4Td31JZojsJMHryI_z","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"U20E1KMKdsxTDqHjyOLtB","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dkeH0mdE-9dbtDRRTKZSd","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UF7H0io-gO55TAQyBS8Do","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"1Zl0knRIzRJvTfmHaUn2V","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"wSIX2sHZn75py-TBG8qaa","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8jDbSx2ykGbj4ebmfpen3","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YBD8Dtg2lyvLCPaCSs4XQ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5NY2WWTuK4AqfhfKabKag","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QZL_G85zHhKS8cDLcAVqD","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UOqFYfM1-3qmHKJSOlEcP","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4FKwy2QWYyIZeNSCp_gYz","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1XusvMSniXM8zGmA0EIyb","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NRvJs8X95MKSQjTFLQgBT","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hT_lEVFEzc8MCCNp2M2ay","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HeFSYVQANitNqCQuoTb3n","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JRCPp43aT-DGwYzNq4zzi","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pqDlONgaUawGLOSCgkMQ_","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w_g4h1HCLOmQo5JiZ_5cv","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zrd-tJxvcxy7S8WjodPyp","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oSWqHMg05jY2BVe89Gf0F","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2s8PMhWTQXgbzX_y_FCS_","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FkrAaoAqy3b0sbkdpWqUr","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this color layer (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"u94CL4eAdKjHIsEremCuy","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"boPaxtX09afhkJxnIoj_y","name":"Compositor","brief":"","type":"ClassDoc","description":"

                            A base Compositor object.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"BBYXkxyYq3Ue6CXO4yBUx","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            an array of vertex attribute properties

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fVgo6ULOvJWCW1t4N_d09","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the shader currently used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LvSQ0aPBdVSHxo2Q2vUce","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the default shader created by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"suM7JWxgRGXzZfP9O5tbz","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eY5bM_0Zw2bRdzM7qM78r","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tiWvJGUFhGBdxayEaExrZ","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            the vertex data buffer used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DSdJJA0G6TCJpyjEg1dWV","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tvrdbF3ZrJHmOp4ubIg0J","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add vertex attribute property definition to the compositor

                            ","params":[{"identifier":"name","optional":false,"description":"

                            name of the attribute in the vertex shader

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                            number of components per vertex attribute. Must be 1, 2, 3, or 4.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                            data type of each component in the array

                            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                            whether integer data values should be normalized into a certain range when being cast to a float

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                            offset in bytes of the first component in the vertex attribute array

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XZy4p-zncgrrfx8AjdC9c","name":"bind","brief":"

                            called by the WebGL renderer when a compositor become the current one

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IwDgihcquImC1JbLUIG3z","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"renderer","optional":false,"description":"

                            the current WebGL renderer session

                            ","dataType":{"tokens":[{"value":"WebGLRenderer","kind":"canonical"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            additional settings to initialize this compositors

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.attribute","description":"

                            an array of attributes definition

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.name","description":"

                            name of the attribute in the vertex shader

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.attribute.size","description":"

                            number of components per vertex attribute. Must be 1, 2, 3, or 4.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.type","description":"

                            data type of each component in the array

                            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.attribute.normalized","description":"

                            whether integer data values should be normalized into a certain range when being cast to a float

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.attribute.offset","description":"

                            offset in bytes of the first component in the vertex attribute array

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shader","description":"

                            an array of attributes definition

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.shader.vertex","description":"

                            a string containing the GLSL source code to set

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.shader.fragment","description":"

                            a string containing the GLSL source code to set

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"SHAB8UFiP-_jCiBCCXIF1","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Flush batched vertex data to the GPU

                            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                            the GL drawing mode

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3g3oyOonjkdIybH-IEyqq","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix

                            ","params":[{"identifier":"matrix","optional":false,"description":"

                            the new projection matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EAEWFpCBsG_urK3xHwYzQ","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                            Select the shader to use for compositing

                            ","params":[{"identifier":"shader","optional":false,"description":"

                            a reference to a GLShader instance

                            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"-XCAc4006OvxbF9UORRw7","name":"Container","brief":"","type":"ClassDoc","description":"

                            Container represents a collection of child objects

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"WGwWswVpYZCZEWHGOJLiQ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YMh4Z_IqJC2i5CrLxZFBI","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z-tFR-x-opMaR2OVCmLxl","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dnJrUM3tzv2Kt-MOchZxv","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kJAT9dUgjE4RAfZVD4x2Q","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children z index should automatically be managed by the parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"77Qy8EYt5XPx7P1absf6B","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children list should be automatically sorted when adding a new child

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8voBxanJyqH90OqCGjy6U","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I4jmWQ-PWMcuxJdnFCYEa","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a background color for this container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XM09RkyrcJsL2va-MoHQB","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LeTLaktEU3y7BKJNbPa31","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mWEjAfKjSPiulcLQbEf1a","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zSCDwaltdCgI3HSaD4EwJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YCL9sUq9JCfpbxhdpB5j0","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_C2nl6Sgz3GeOA6PE7hmo","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container draw operation should clip his children to its own bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zThCe8xC3w9XCxR6oUm2m","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qxm__ihE0kCpcNmAmq9x-","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dkd2nFI6iBXt1KTLJRSGT","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JWZ2LmLt0qXBNiTDx3-P4","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"60UcZ74Lmp63_hjp2CSIW","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V_pEYsiYPnlJtOp2ZHKBp","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bl6bnH3n43o56A_9lT5Ce","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FWvCsMqnymnXU_vUzhH-7","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zc-VLhbJihoJKcMuaf2eD","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tXz0bUeoYXwZMKKk0UTQv","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2HGM-xpOoYpoVZ412w0HR","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kdb94SX1tN77tLBetuBAB","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3qQH0HMhfnLUWacm_h1Gq","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NfVKkeoNS3zDgnua0rm12","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LwZyNTXLMIN1jiOJl6cNC","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d1esvHTECqFQHyK-PN6sz","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2inUabSkUWjct1v742je4","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SlYDcWm9g80wFr1Xamx2_","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xLqxl0BZuSTN80nJTeGv_","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OzBo7d8J8Km1BpQFoxqZT","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B-r0_p3jlswRJglwxTATI","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zzsIZMWsyouY62U32atrJ","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            whether the container is the root of the scene

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cul_FdHkRzEYeVCw4lLFn","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5HHCqL92fa_9EDysK3PFA","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                            The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vRDyoD1go4sTcm0V-c3Gb","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uLSftLj3lL12qR7TJi_ZE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hBwggc8qnoG7wIzNTLHkF","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zRpRIaR9i4xHM9MJ1AYcu","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QOm3-5XYl0mTKsNDzsaqt","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-8Ze4XQMSvns-jCsGhotu","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container
                            \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                            forces the z index of the child to the specified value

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aYwwsCGjNqX_1hBU0Avwd","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container at the specified index
                            \n(the list won't be sorted after insertion)

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                            The index at which to insert the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_28KH5uBDVHPcIAJB1xAA","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NyDfgcpPv4oB0-E88MKzu","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sLXuonEqEAmzYc9cxGZwq","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Z7bW7X8Z3PTWmIkKQ8Qo","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                            position of the container (accessible via the inherited pos.x property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                            position of the container (accessible via the inherited pos.y property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                            width of the container

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                            height of the container

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rh8Hz5LFuQerRYTZ71wrK","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m3-w9f4lNa_StaRjnxv-P","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QGDkiXGWCUwg2tp9loHVE","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"njL_nTUoRJIpKwWSqIwjk","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"USkjFpKMOk3VFwxwxlq0H","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"64zZLslowpX-oz8lcjw7u","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KSnZxVqm_BTQ8XjJhzX-1","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                            The forEach() method executes a provided function once per child element.
                            \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                            fnction to execute on each element

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                            value to use as this(i.e reference Object) when executing callback.

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"szZ7Dkjc3BSOeq_LVAjCT","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b11qr-8y0zquGrb28tuJ3","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fbz6Cm78xSlJhtOtazARs","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the Child at the specified index

                            ","params":[{"identifier":"index","optional":false,"description":"

                            The index of the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the child at the specified index

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AOtRIHCuTlBT7zbJTG6Ww","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the specified GUID
                            \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                            child GUID

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            corresponding child or null

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-iS-JWcpyc1g_tgPCuNiy","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified name
                            \nas defined in Tiled (Name field of the Object Properties)
                            \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                            child name

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"vLa9mUV-cPKpaSpBQGhvN","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the given property and value.
                            \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                            Property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            Value of the property

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of childs

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"WdXme5cH_9FS7bORRcUOv","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified class type

                            ","params":[{"identifier":"classType","optional":false,"description":"

                            Class type

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"rpFnsQtBSPhyYnDyXHGwA","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the index of the given Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WqGBBznvapUmDAkSFd7hR","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return all child in this container

                            ","params":[],"returns":[{"description":"

                            an array of renderable object

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"VC999SoWgSidR3Do8xYF1","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"H90CO36Na32MQCDo3Ytiw","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the next child within the container or undefined if none

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WQWciCYfUYSCr7XliV_FT","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y7elzIiMEZ0rn9hEF8_up","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the instance of the root container (i.e. the current application World container).

                            ","params":[],"returns":[{"description":"

                            root container

                            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZngorXVGYNJbdrmFVlnzS","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if contains the specified Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"2ziTlKXC28f7yWZOUrLPn","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Checks if this container is root or if it's attached to the root container.

                            ","params":[],"returns":[{"description":"

                            true if this container is root or if it's attached to the root container

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dpX6gKgwaV4mXIsDOtkr4","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wNlIUACB-ito_iYNLK-p_","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kGm28pXF0RFiADcXWJbEt","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-A74hVICfVC_Y1DMtWNyV","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step backward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z97TcwSQs2zsgREuUOWZh","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child the bottom (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"d_-z0IwviVxwI-TNOG0uJ","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child to the top(z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"4EqMEnca1wY5clsj09srw","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step forward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"5c7Q33E7pLWtALoEVmUBN","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                            a callback to be extended, triggered after a child has been added or removed

                            ","params":[{"identifier":"index","optional":false,"description":"

                            added or removed child index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"k5ka8hAB-9FwXlP_r302A","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cxtJWEBRwSrtBe0bR3GQc","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"se8S0rmYBXYgsGP7jNr7V","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aTgcLDfa-UnbT-0sIrm3S","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"NqiEfn2ex3tQS9GWDPOyB","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"RLUfL06wXAtiZ6XdeJ0EO","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o4hhwTSgZVOdpsdcSMBro","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                            true to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"hafQyogeafifB9CnYnWiT","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Removes (and optionally destroys) a child from the container.
                            \n(removal is immediate and unconditional)
                            \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                            True to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7AyENGNycDsZ1hQjQxaKD","name":"reset","brief":"

                            reset the container, removing all childrens, and reseting transforms.

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eYocuwRL_ecflpVGOHm8U","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eH1k4wG2g_uaBYb2mIrWW","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"46WckfK1aMEDYxWxAAkjG","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gqhE8SvW7MFI28zuMRpEa","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IOtLDKq-sZNZ_NkV31djv","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Automatically set the specified property of all childs to the given value

                            ","params":[{"identifier":"prop","optional":false,"description":"

                            property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            property value

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively apply the value to child containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"fTOeECgAcFiNfFc82EV8F","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"A_C0m6kSK908Ux8okp5cd","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2A4jG0NYa9-aXHBXo347Y","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yn7wuChDqjtBWdi_-oeOc","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4avcEyo0h36uCOAOaKRUB","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Manually trigger the sort of all the childs in the container

                            ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively sort all containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"PNmM2KsalM9jeH-XrNK3s","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Swaps the position (z-index) of 2 children

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"fcR3BRq_Se5HHY7Op3sey","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3sPGVH8Nv1pdfEIRlmAZE","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OzK-DjAi2t-_SLjEPoOij","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kqcL-Db4puK6hARfKpPz8","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WTny6YFbFu_JZu5DteuZ9","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ShaCYCUmnvPWQE3xzNgYu","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2qAYH4OkjAZj2FB7yMPYH","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this container.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this container bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KpBsRT9oMZ7JeejsH_Lf2","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this renderable (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"73-b1jPcrTb865nuneTTU","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            container update function.
                            \nautomatically called by the application update loop {@link Application}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Container is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C_g-IQjY92nyVKkpExOWQ","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ZGPR-hN_p27Ybwy8RbVhM","name":"Detector","brief":"

                            the Detector class contains methods for detecting collisions between bodies using a broadphase algorithm.

                            ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ASPUDnLfPNG9UebtjkrKG","name":"response","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the default response object used for collisions\n(will be automatically populated by the collides functions)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YUgAln7bALRtScJocozKu","name":"collides","brief":"","scope":"instance","type":"MethodDoc","description":"

                            detect collision between two bodies.

                            ","params":[{"identifier":"bodyA","optional":false,"description":"

                            a reference to body A.

                            ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}},{"identifier":"bodyB","optional":false,"description":"

                            a reference to body B.

                            ","dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if colliding

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3G7KnU3dLRCB-7s65zOZT","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

                            the physic world this detector is bind to

                            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4ujt2vQBdGMRcNF9Ysd09","name":"shouldCollide","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determine if two objects should collide (based on both respective objects body collision mask and type).
                            \nyou can redef...","params":[{"identifier":"a","optional":false,"description":"

                            a reference to the object A.

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"b","optional":false,"description":"

                            a reference to the object B.

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if they should collide, false otherwise

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]}]},{"id":"I7tBe1Jzwj485CjQRw4ba","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

                            A Draggable base object

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"sz1C7iSJfvNfZAy3S6HVn","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"18LOXKwl8WpyWOCvi27op","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W5TystW962EKFEbkdIMVL","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UpMPv4eA-lyBsp1A48m4R","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WEHCPqWf35Tw4CeDidkgh","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RqPLe1K3q6KgqmecwwgP5","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"94BoiaNlKdxwjPFn0mJN8","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u6fg7w71sqMzg_TIk3Apo","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMZ6wUXiUSOFqOhAxO1uh","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DhzvPYQSbdJa3hxFfx3Q0","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y99SnYiSe7bvsXtUyOjRN","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7D6BUlJUSm_6zBUH2suLx","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o5UraDPgvYrhZg6Js3wy_","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OGOUH4L0mv9ljZVwPzZRS","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ReWWLMwm9_OHflxJ6IKNW","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UvL6wzeW_5_QD8eb606yb","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YCYLWswpR9cDG0v1CaXhl","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7w-H_jQydraBm_gMjL6vl","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HtlUqn-gmtibq-HtgMUah","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"frMYcRYABjSq6SN8h8wJt","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OVrdXFH49uFNsgyxKqJME","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ORZFrFlFR37aLsmLvBeX8","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xe3GsXAVOmPgsuDz5Jz83","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kAhvocQkV8KtjbH5qa9dN","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KDt593BFKAgw43L9hb4VH","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XLTsUHyoWut47erLyOGlO","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"55IAuGlTChuJv8rzBLeTL","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y4B7kfX0N4oJBTB2SxfxO","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rp5bYDWX-MgTt60OBA4-W","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ThXiWWHda6lxDgQGtbUs9","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f7eZtqz-v6hIL1JW6pFbf","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IGHEeQcIlTmBuvnUjAqhy","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oGMPcWO7UsOe-ET3HJONA","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ccI8Zl8G6qJu2r4cKR475","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tqcgx1uOxBEbmask2U3sh","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0jjGv95pIzNi_zsBKsV67","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cZx6ir5hvtkGxFMlnVaHK","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sQciZgt-XoSWYn-Ih3Weo","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uxVFpkdAtsK3Kz-iGmat3","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rpoDcjGpUaOAYs3FCCrUp","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            draggable object width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            draggable object height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"h250ksumn_2uFmKgC32_Z","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0v3Xx8BHko2kZqu88s6Xv","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Oj-mJTOQCKVyRPVd8ud_5","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y49LmVnJfWbLEJbyoIW3L","name":"dragEnd","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Gets called when the user stops dragging the entity

                            ","params":[],"returns":[{"description":"

                            false if the object stopped being dragged

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"RV2AgWH6u1DPw67nsxzVR","name":"dragMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Gets called when the user drags this entity around

                            ","params":[{"identifier":"e","optional":false,"description":"

                            the pointer event

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"pBhASEKKYpletWvkuKbOP","name":"dragStart","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Gets called when the user starts dragging the entity

                            ","params":[{"identifier":"e","optional":false,"description":"

                            the pointer event

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            false if the object is being dragged

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dDCl5io_bwQUV1ck6GG27","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MPpOyu-5pACmhLsXhqe98","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"q8hLvkqvdpkAs_xPwnd4K","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2VhYnJgGdmZYWyf2Gt5lM","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fi7U-C6ZeunUdF6QFjyC3","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V1LuxmRN17T3HyEz2wsJa","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cUYzJQXBPzUhAW-PHFQAB","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"u1NU7xBazmgEKeY1Y6bXS","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EiREDtsYj_EuGsh8C3IJw","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JZEcNUZZ_LLACKD4a5VkT","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tpzcqHLgIzmxCKqve7uoA","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IhNRByuJOAgef5aQqbHMg","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5gdhxep43K3D822U8Hes8","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0HZHkAM2sRrVf9rJmBI2U","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"IQrVvqQQ_GAL7G1dLvRwj","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"mfLc4fpw9lnWW6qs0yI9E","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"uiTFe1Xit29BQk_xYatLJ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CorPEx0L9WNe526rD8OyI","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fkpo8POeFjSJ1G3S2pD0D","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x093S6xRVpjVVCKfN5msZ","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PtPZ8SBXa71HjzcOx5LYk","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vcdULyRlsgVGa1GAYjGOW","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"KjzmL2JE4WBG7FWQIojaE","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CjCwkVQnMWhjLZbOP64AB","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FvaMQfmoLPEm7QPQlnH6i","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LlL021ZmNO_oPUSQhwebl","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AwO0wY77jPvViuWdAe3Cx","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZzKRPKNjPUt_ZtQy3FRyI","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VaWrUKV1jlQxlFbUcPtcY","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PPGS8BhRrp2mfEKflIxjO","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eul15xASJHQ1FfpUWtUpF","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Qy3lK69_a-e_DJ5ByNEDR","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ydYDoM9_DMJ_U_XXd8fyZ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F4O2YCo7suDecHSH2bzBv","name":"initEvents","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            Initializes the events the modules needs to listen to\nIt translates the pointer events to me.events\nin order to make them ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G5N4puquQ890v8WiF0yNr","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"TSoN4Bt8cMw_LnvDHG85q","name":"DraggableEntity","brief":"","deprecated":"since 10.5.0","see":["Draggable"],"type":"ClassDoc","description":"

                            Used to make a game entity draggable

                            ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"vRomU6ahAMd1iL0om64wu","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            dead/living state of the entity
                            \ndefault value : true

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sS8pJCTb7ylEwWCbMtYQz","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMnkfIZ38hsQcWNEtFSCK","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F9zoBW-LJCPiPhrSD2DAj","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K6IDS6Vq96tPwp4d9n3jp","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-cupR6jNc720kCtxzYXm4","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hkByAfF76CB4kXUzkgT33","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SynuliLXuayYxn8BdYvL5","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the entity body object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MRAKfiVR_PtF-cL6I_agn","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mVQQoGqo2gQ7z_U1svIMn","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qH7iyY_5_pJxhc7CAqq65","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o3iW9M_pUhRFhNsI-XUtw","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6GhsfgUN2KNFYlh1JXnw2","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dPTFEIfRkJVsV3yBcgaGS","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DtTXQCTge3i98Cbettnax","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SBrW1ysk1mQtxAE3ViNX4","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WV4geJL02U__Rg30Bfvxm","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object unique ID (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"laj6M_F1IfulSZDyDYsk3","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t05koUj6T7Gxt68eJIRcn","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P63I8jhNiz9AuEhTX79hv","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hgbB1uy63o_PBOZTWKB4_","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LsvEvetp2hhmEhdrNLdor","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ktTaTErMdQ8EB-4S6t5V","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nIrnSMWxccTq3lFMDpbN5","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CEJss16BbVxJoRM3M73v7","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gwgWfDLdZICr36_0ueqOw","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PQWya-iqD_ZzOmUnWyR6Q","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vM2b2b9nGYok4h5_W1ejn","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oE2zo9Akrc7JhNU4oSbnd","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AsBAmKY-e9JyeZ9AZOO8G","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jgN6cnUHngaptcwIIn5RS","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VClu_WstoDs2vTPxW6GNW","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I9y8hh7UmPLa4kRn75-sY","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"47edyrEhNku3MmnKsU5qq","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8tp_kPZQnRZXvqNPK1Zy1","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XVa7xMU1SkxzhWSfGNsZ2","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPkpDwvE0VgpW6GUDagU4","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object type (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oQ6p8-8d36dJVe7Oj7ACz","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yvNCyqgiktUeMlrvhBZE5","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fr6K2DZ0MvOBY7RaMMSTv","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fJNc-qap0SeBVAn8v6XUd","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p9LZCemoEcbVZNtmsTp8I","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t3pYYiCEgRhBu0s9vJBdD","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            Entity properties (see {@link Entity})

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"dN9uHoMR3k6JdoPzvMgAr","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dCgrOlhVRAzpxZO1o6AjP","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Z2kil3CXWY1D-qnetZEuu","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hZ-WOmDlGCxfEBQUmycoI","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wIpDPwyOpTHZpit1JbfFd","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ls9Umt0rIWk_2QZxb9B47","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"35hFnpDW9pufM8GSE2-Wh","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WdoTD3oD5RXHbz6FqzW21","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kO6dNIe1YyEjPUFtExZGV","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"FKJYMz-ny7U0yN6ivX0VK","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rT6Ra-yPtoSx4xowVBdF5","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HI5EwNqKa-6bI076RM0DP","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aKKqknvLyTYZ5FQ_y4qm-","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2b8A12w4LIOVuyF6oQS9L","name":"onBodyUpdate","brief":"

                            update the bounds when the body is modified

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5bXHi6pTcY6zMUW97-1I2","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LYBWpzWJ0XRCWgAgQvvjw","name":"onDeactivateEvent","brief":"

                            onDeactivateEvent Notification function

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJmDI5WcudeOGkXwRMr2_","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7bkUE36vvU0SHCOoiD_xV","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"chm_06PgK9WI7DTPRLaWn","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"K3Wkr6QWGubRsW0wyxWG0","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"XRbBv75ZYsnkBdjgZJpeK","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y_XfJOKL_CEgejE41OTgk","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bpmzeX-8GT95SsrMI0sbj","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Hilt5jocyslDNhzn7FLhT","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o9L88GMXRVseiMb1mmwPK","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HFvjDNhZHBpUaVOm4X-yf","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-Zg7XFpQweABTJDecsdHQ","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xlb_8lZWj42RpOmFzjkrk","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gPlQ6UuJnQEwihp8ic7Q0","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"g_BY5SXMcoTqSREWNMtST","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9-s-YdQ92V7G-eL1F2qBF","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ad-Lx9EbBLqF6OpX17TF1","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Py5shH5DyTiN2DIMWOxQZ","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WbkbEEj-BH0kYBNwbJbof","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m-la_HSLlntlD35iir-19","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cjqjzlw38odFwRh0iyiHJ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Yr-myoL8MHJIQjazzBq7P","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this entity.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this entity bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"edYQhabXsqEZL0zbBNEOE","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this entity (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9sMQpffXf8tzC6OVu26gN","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"iQMFYOeperlmue3N9F4XX","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

                            a base drop target object

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"JD1FGZPVq8VHUZGVFZ4WI","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y18r2jB2-Fxq5BV8WK7H0","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eBKLpXlq7v2D71-RiMzMQ","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wwut59g7QenFRQaU3SLFy","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"doOH9vQUYmGHaJZihdpWn","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMCJzdcF2459wlM_rBk8c","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FpHGScrXe1iliNjNYs6i4","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FPedjDFbM7WBS-1ZFXhkS","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Otos9MQinoKhXSZcKDIQA","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k_2DngaFf_cenYpLbMNU5","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"adzS9K87qomcCHhGd9lYO","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                            the checkmethod we want to use

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QcBQC-bUwZbgqO-T4v583","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

                            constant for the contains method

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"unL5DuwMqYO5J4CSntpw7","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                            constant for the overlaps method

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ol-vHMFceK18HrhYujYIK","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"irUalR52wvUXUn05gPc65","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w0PqBrj77_pXeSp9xQyRU","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Tma3Iz1aGBp9EmrPPvDwB","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w6KkiBxa3hEw2Jga15PZF","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QXPhIuf9_cmEl9gVTs_6w","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xeFFfvXgNQtqy3yxqekfM","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JPYYuhXM8oHNTRBV_VIXX","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2UOtpnKifdhuac-BWEwSX","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7TYwsDZrY3cis_f5ERIDw","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W6R4kzUCfY_1Z0addcZeO","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nsxA24fn7dw-nPR6cL7sv","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tDHzPip2Lmxz8N9nHtcmd","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BL-xkQ5w1VDJzAL0tNPUM","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rBKshQxC-V17P_iiiqJ6z","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GkQ05QXlvlRJFDWK9X3_a","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JkClXZUjQ__PxzkGTTpAD","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZUsBXf0fNxaAhF4le9gAg","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gpqN4sW4K7IenIUwmQi2c","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VW6s1j4M_5VCKp7_9LRX_","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q4VPOV1g-BcK9rmHITicX","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a9YN1fsVTiVB3q3L_13xu","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"utxOgF_vrVbtBQdY3u9Vx","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EvSVSLVBJ2g0GQXTIIGBJ","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zpeq7sv5hpi7KNa1WaBvA","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0lZSQ16ilHfCA_AGfVoNK","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ynWYszsaQppqtu8V_ZD-a","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ed3j6DTvypb1lMhS6hCRa","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4cCDchd2d9UZm1wKWupwb","name":"checkOnMe","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Checks if a dropped entity is dropped on the current entity

                            ","params":[{"identifier":"e","optional":false,"description":"

                            the triggering event

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"draggable","optional":false,"description":"

                            the draggable object that is dropped

                            ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6s256fuDROVd067ZrbLWW","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fY3nPsTG93kGgULQaRUoL","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the drop target

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the drop target

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            drop target width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            drop target height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SpVDumKix_LCvkHkvH937","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6t-ROc3jsPD3s2-UwfqCb","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UtbSb74VfrPixCuGOsvkB","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YWyuTAbMPp7yGip0E_vW_","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sFHuBxtkwb9aQgxusojDr","name":"drop","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Gets called when a draggable entity is dropped on the current entity

                            ","params":[{"identifier":"draggable","optional":false,"description":"

                            the draggable object that is dropped

                            ","dataType":{"tokens":[{"value":"Draggable","kind":"canonical"},{"value":"Draggable","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R3Sw6QyLBMgi1iImvEtkx","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"omk2TphHrOyZkfzskrp_9","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"InMmOGkm13NzCXnpQ29Mn","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yt5j5PHqSdNrTcd1_yqbH","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wGHtBMvE5qgas6ObPg2ca","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_qdCqMYoxwRdPF7dJl7mA","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"30klMyTRxjx8aVx3647jb","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a0tMelerivO7xjjTN1VOQ","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"k4X4PEhpOelByGjqhiLdc","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ydq6ItX4oxwlVi8sqYOVd","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FLDVuXw4fqj1EZC9Fop6Z","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HKLuxew2I_oVaFRiVvi7e","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_5BX8NrGxuT4jxUIB0WXw","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"v1j5CUi2q3VLHBQr68Gff","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_NFSPvua9HQMYlr5FF7dR","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"t2OpLbhhNSSL3u7zkPT0W","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HRvHxGiq8sKLTWjo5q1MA","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jBHgFE2xXFqE6O4oubgKJ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r3R0BSoetsDXs73GMMjjz","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d7ItoJ_sA5E3r_CGrchl5","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cTHy9tGpDiHYv_MElldAA","name":"setCheckMethod","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Sets the collision method which is going to be used to check a valid drop

                            ","params":[{"identifier":"checkMethod","optional":false,"description":"

                            the checkmethod (defaults to CHECKMETHOD_OVERLAP)

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"OsTQ57R1g_NdfLi81IQMi","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"MGoykymbkFC2XD-CHhAgr","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"W2Hbr5y8AX3RYScYVccPP","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jLfYeg7fLdI6MWlmzV2VG","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XHY8LPjyyxNGI2Nvron3Z","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F3sr1pOPqCae3PejUsvxM","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DdvHu0x0qs4gT9_kxL-30","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"itf2u649pxhJFziC2iRkL","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lbN-42MnQFosMDkJDgAzZ","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C2KS9ojVasN6TSWYScFeG","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y1g979Yulu63TLPSkwwgn","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3p5JjAcVc-NT14qJEHpcp","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YNPeUUXm5E7VzFXTmoLyc","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"lUOge6kq6iM0jXcxWy890","name":"DroptargetEntity","brief":"","deprecated":"since 10.5.0","see":["DropTarget"],"type":"ClassDoc","description":"

                            Used to make a game entity a droptarget

                            ","params":[],"returns":[],"extends":["Entity"],"implements":[],"members":[{"id":"6cqVcX4jEn-7mb-MlKjXT","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            dead/living state of the entity
                            \ndefault value : true

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v2JIzFK9wrSth8Z6EYOgl","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vHOcw1f7QqSxWEwogAVd_","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N3hag7hdcRVeXIUMdlBHV","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"whyV87TJUlKg0FGCO3Fva","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cfIz7kzX0Bgb0D_fK9vMc","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D8h5FuE98Wjihw44vYx6M","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AfP9lfKNP34atd-1FpITL","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the entity body object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mOAht6GxeypuOinEFLpAX","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YX5yfltDSXIjxniWBPSh8","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qIhiyCffvglaNyuk2KsT7","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bf848DnVIyyXTtpzgKjJF","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S4Agtc32hoEeyiDyAM3Wv","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZAk2gnVP-EBmgSNVOs_yd","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eZw6oCdc5ZutXtiRRJlVM","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"afrvHEeFCDj1fkZIaw2Bo","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zIAR8MQrg4OnRPc2BVX1Y","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object unique ID (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H2Eq7U-zOlhgsK_XevY7k","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OAQydWkGfjyA7SsNNdQpz","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uOluTDzUVA-7d7lIptVzR","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H8tbbpdkk2jhCJ0Bs7nST","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8YTkz3C_16LgXJAWaHzJA","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BDBurDgEaDCk2YkEWKONt","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XZ2s-iITp1VOP0AALtsWR","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MZZeb6UMDB_nLuk6oauqh","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p985lovThPEe2-ujymWbp","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wGwjyVr7o4-anlqjHH_uq","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B5YqjWl23XQX3miiOr18F","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZeoQ-HtgkcRL4A87jXbGm","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iCzGYcn5cGDCq_PsC93Ld","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pz7QsaUUMwhFfzIlIc5BR","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hifMETETQ0UD1BjJ7zXH-","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CwEYjD5q0gqzeaUXdjQzN","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x9wHC-M402OSO79f2J1cP","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wp2b04eBp0tW9xgy2WMHc","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ixjwvoSs8F9mQHEdQsXsN","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UVrUlOwZfRB8A3TPQ6bTz","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object type (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oC_Ck71AgBL69j4_8nQgM","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LHaSXgFGpuGs7Mi-TCrvA","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jIRWvjS-NVHwPnQAgjFT_","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wOql6ggplkDbbr5UqV3CE","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wHTF72YT_JYqmDz5Xdq7R","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H_hwbPI9VylNu2Al-EBjz","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the draggable object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            Entity properties (see {@link Entity})

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"2nSDOyBlYPpkbcaWYkSvT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JKg_Ct8rncKsI1Ob9Je-S","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l15iiVyJr9FgRZzZ9QqVM","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bc5I7qRl-AqMk1023LT_K","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yMEDFnpmg6o5wVRNG_7uw","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rrmo7py6yoBcXJmjKl524","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UF2WFZjCwwCMTY7los_m5","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wy6KBzPi5V1eXREWqP-II","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jbqq2OBJ2qJkZhdagKRZj","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-tBJBpYYPUZkOkyilyxBT","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iV4KVdPEt9hkaK2UUuKDz","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tNz4t4I_ukcPJfSEBQOgu","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"S6LjNb8StVX-1UA87wGWM","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JOX_yPtVDjZcZhT3_YeG_","name":"onBodyUpdate","brief":"

                            update the bounds when the body is modified

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eEsCVg6IFKTj4GPhzpnDE","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qpLtU1XgIhMk4SIugypUH","name":"onDeactivateEvent","brief":"

                            onDeactivateEvent Notification function

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FbPWLZ1zSeYwi4SdM9Azr","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J_SkzoHCBRwL0iNua_swC","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ihNET2vAoxWTWvggAAiRE","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"hG6S62E3viEPk-2qO0hIQ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"eHKCNLnXQDgj_-nDCORz3","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b0UZFUcBJD2mpEI0p5x2C","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MUOZ5zu6MawKKY6jWZKqx","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WqZivhL9gId3kzegQiaYX","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-tj3tPlH5KpwsptfVTSs8","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1TlVj54PoWTFdDkPYP-GO","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8UmW15s9TkVyo1gQBECl_","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"R0gRPHGPxUFyzrEoizZvy","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f8DBvOKMF3INV-2i7QZpD","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"f81BfoZvJZJyKHKYFRHoy","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M9XbHhpuEanB8F2rVw9-3","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uinwMA0aprCVl9pBCtryH","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HnxopiFSoeyQVn3GxH087","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8LANllLzZ9vm8-73MF9Hi","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UgpMcE4XfFiewNMDd3we5","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wW375FohyBjPxSF5MPHgb","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QxoTRVnhYb3txXCgbWXkp","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this entity.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this entity bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LZf09_dKwTVqscOJS-suz","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this entity (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"t9CNo6Lkz0RLURqJJMkRv","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"62vG0VM-OtZQDFpjoS954","name":"Ellipse","brief":"","type":"ClassDoc","description":"

                            an ellipse Object

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"tbYb5qYpoc3wMvfZwgJ53","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            the center coordinates of the ellipse

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Klrdqec3uVrcOAleQRW5-","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Maximum radius of the ellipse

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KSTZvkZ4MI4w2rpKVo9E1","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Radius squared, for pythagorean theorom

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sloNCfa1jBcTRST3SN9UI","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Pre-scaled radius vector for ellipse

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YMso34I-Z5UphWK5j1WTW","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            x/y scaling ratio for ellipse

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YfOtxmE0hLQ_1c9z1gllE","name":"type","brief":"","defaultValue":"\"Ellipse\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7NFG4pR7r-7Js_GGxpZbW","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                            The bounding rectangle for this shape

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MU8SoCWJPOQy3iQfJw2sT","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this Ellipse

                            ","params":[],"returns":[{"description":"

                            new Ellipse

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZgdaQLSpSRhU-_SYsLYOI","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the center x coordinate of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the center y coordinate of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width (diameter) of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            height (diameter) of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"az4o6BgYc6VFvRsgmOarH","name":"contains","brief":"","examples":[{"caption":"","code":"if (circle.contains(10, 10)) {\n // do something\n}\n// or\nif (circle.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            check if this circle/ellipse contains the specified point

                            ","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                            x coordinate or a vector point to check

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if contains

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"71I0ZAci-DpTCJADQCL77","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VYSFzTv1KlDNUokEXq2qI","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this Ellipse (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FLjkU3_10GLHTFkgY9-2h","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Ellipse by the specified scalar.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the scale factor along the x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            the scale factor along the y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1z5GdMmds2pxyP6R9bH0S","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Ellipse by the specified vector.

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YvksA7H_xO5yWI4NSpM6Q","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the Ellipse shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the center x coordinate of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the center y coordinate of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width (diameter) of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            height (diameter) of the ellipse

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5VZY858W_I7KfOenRbXwo","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the given transformation matrix to this ellipse

                            ","params":[{"identifier":"matrix","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"C5U3noMN-G8O5tYc2uR7m","name":"translate","brief":"","examples":[{"caption":"","code":"ellipse.translate(10, 10);\n// or\nellipse.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the circle/ellipse by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this ellipse

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"YpMQoqmaTVoP-aRgH8_qg","name":"Entity","brief":"","type":"ClassDoc","description":"

                            a Generic Object Entity

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"bqg-VM1l_PAU_iXPYReKA","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            dead/living state of the entity
                            \ndefault value : true

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ro1uVjTFQo71P87xgjY4z","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_cmMbR2fmB25AP7hy2btg","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_IcogyuiLRH1bI0ikvOXM","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hF8FMqL8xkrYgYplqwWbn","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rUpEM8vAhnFKUpg3e9QaW","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uBI2hDOMIO9KnibwgfhnL","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ztWaZTqWZUxqN3DBzME9d","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the entity body object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-KQDoJddZEUFLqST-HxgG","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lpe7NzYTtMvO-QCmHytpN","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mSD01fdobvVSHJ3Vb11PX","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TWsAKQ3Wi_I-t1d49AwDD","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gV22omFvcAc--5dVN7Nzl","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lnLpP-lrawC6CGNwGETSN","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t7l38ZIT0UZiX143tPrCz","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WhFC3O3klsIgs-FU4skty","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QYdnl0qzCpe0_Q5bNhEgi","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object unique ID (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ke7WWBfmMrcVAlUL7eO5w","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4gKzgksJOnFN5opeBukEY","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1QOfRtdq7MkxJ-GEQ6XYF","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Sid7lbxIgWJWtlC65ZaGB","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m4npIEQY6ZNzxqfQyumkB","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kYsGvPHthQ_k3mwdAXmhP","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F_mJCE01n83EJ0FCBfD9h","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wjGOHhD02__EEQJK9RChX","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bGoyvHmJ6ilUDYp3grO2l","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XmxyfvTJltFiQogs5-fBl","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xgX-84Uh821h6bQi7-cSX","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v9q0t3nju9EznDH2m-ccB","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jwa9O5yPNuA804OY1FonP","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pSP-harAMB04NwzhYR2oz","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T1RwMwvV9YDiwxATT77lg","name":"renderable","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The entity renderable component (can be any objects deriving from me.Renderable, like me.Sprite for example)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FZr1VxWlIStweZmfVODYD","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZaSbTwDcdngVzzwO3732D","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"98Uj7cnMo8O7AomLcR4dw","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wp6g-X-77js18HOuvlRK8","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7_DbUa0zRANDbJBO4vMyg","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            object type (as defined in Tiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"le9Dcf5X_IJbK6XVtXs0-","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6zW0pCa4N06N_t_4qthfG","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x2keBUtcwllGC5eWnrCOQ","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m8gxqO18j0CT1mJtzmDRC","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q3-rYTTuIOpeijpURNcv8","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4M4zIf7mH1QV5rIz3dhqX","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the entity object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the entity object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            Entity properties, to be defined through Tiled or when calling the entity constructor\nthe physical width the entity takes up in game

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

                            the physical height the entity takes up in game

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.name","optional":true,"description":"

                            object entity name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.id","optional":true,"description":"

                            object unique IDs

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.image","optional":true,"description":"

                            resource name of a spritesheet to use for the entity renderable component

                            ","dataType":{"tokens":[{"value":"Image | string","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.anchorPoint","optional":true,"default":"0.0","description":"

                            Entity anchor point

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.framewidth","optional":true,"default":"settings.width","description":"

                            width of a single frame in the given spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"default":"settings.width","description":"

                            height of a single frame in the given spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.type","optional":true,"description":"

                            object type

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.collisionMask","optional":true,"description":"

                            Mask collision detection for this object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

                            the initial list of collision shapes (usually populated through Tiled)

                            ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}}],"returns":[],"extends":[],"implements":[]},{"id":"SXFtPS9O3crRtjErnTgvU","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"C7qoc5jidWdUGqMsRAYa8","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9A1QGLNj67fjiedveacwb","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nL8qYMrbcTAt5Gc-2lz3y","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BFSCwCOhDAtMHmg2MXfzU","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"crML9ErCi7un5s8dxBLMI","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"z0uSg5iaIpLtBUL62KKDv","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ux4c49bG7aMgMgpVV_xsE","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PMHXShCzBv5vOaFckIyXF","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"eA186o35iTO0r4ifeMV7L","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XMC5vlp9IR5EA2Elw54uq","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LMdStydH70MikdF3MXR4O","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zj3fNL2FIAC7IZG6HrPuK","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"avuGAMI7rmiWy7QIHqPc_","name":"onBodyUpdate","brief":"

                            update the bounds when the body is modified

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JP8B-FruzaesePp0txyYF","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"onjOtWTp9_jwvkDvLr2lm","name":"onDeactivateEvent","brief":"

                            onDeactivateEvent Notification function

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u2t8mXOTKz_Ts57AhaulT","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nOEjSd7TSL4MEpVAiWQcX","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PRr1VWT1Nviz2W3PjJlBu","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"3--ctwe9khAu4iOWVigHL","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"n8kg83YQYVv_9PeBC2rBN","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HNPUknuUu5n0LHBpopA2b","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"50qlwECBN6I3gH95xub_H","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bpXCRZyV19fAhqgRTtLuU","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1GBnH7RFTAqoMDDliZbfT","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oQW84KZs6p9MXeMyKawQq","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"786nt8uOQ2LfhAxcaEZ2_","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8LPJ6FhwIuPd53dcTo1g-","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yBttirozcViwNkngTFKRO","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LaC6HnSRPfoYkKyXyc0FR","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"B_puFoijzPxhrvDQ7FtQq","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Yi1_q3QzlHWALYcWF5Omx","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m1ncL7we7ip_FFX5Z4w5b","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8CZa0dP0SXfvXBlgC_b8m","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CT8VXw5bYLx1HpzRa_3d6","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tCkxHouUCTxTFIX-7hv2J","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"44QXLbOQiagEc5GXpn7AK","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this entity.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this entity bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZsTNJnrIjb0gawSZrhuSE","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this entity (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jr-ZOqX439mXo3UsLc1Dy","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"qXGNd_4YvoU2HFmUxdW5Z","name":"GLShader","brief":"","type":"ClassDoc","description":"

                            a base GL Shader object

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"1TxjXUTv6BWvITsIa79Up","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the location attributes of the shader

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"us77wEAeawdh5r0mEZP0q","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the fragment shader source code

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n789S2RqXypv1YtftjqfA","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the active gl rendering context

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lxvCDDjB_bQVKhMRt628i","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the shader program (once compiled)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SCPPiX-9bkwNVVxHumBGy","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the uniforms of the shader

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dDfcqEMrdXUzs_Xs-8Tps","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the vertex shader source code

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S5WftMhYg1pBjLAChu4Bl","name":"bind","brief":"

                            Installs this shader program as part of current rendering state

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E1vT7PRNFiMEIrF7btHjC","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a basic shader\nlet myShader = new me.GLShader(\n // WebGL rendering context\n gl,\n // vertex shader\n [\n \"void main() {\",\n \" gl_Position = doMathToMakeClipspaceCoordinates;\",\n \"}\"\n ].join(\"\\n\"),\n // fragment shader\n [\n \"void main() {\",\n \" gl_FragColor = doMathToMakeAColor;\",\n \"}\"\n ].join(\"\\n\")\n )\n// use the shader\nmyShader.bind();"}],"scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_on_the_web/GLSL_Shaders"],"type":"MethodDoc","params":[{"identifier":"gl","optional":false,"description":"

                            the current WebGL rendering context

                            ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"vertex","optional":false,"description":"

                            a string containing the GLSL source code to set

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"fragment","optional":false,"description":"

                            a string containing the GLSL source code to set

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"precision","optional":true,"default":"auto detected","description":"

                            float precision ('lowp', 'mediump' or 'highp').

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"7SsizvrV8LOC7TM_bweSu","name":"destroy","brief":"

                            destroy this shader objects resources (program, attributes, uniforms)

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RGVcha1rywnQCBV580A5z","name":"getAttribLocation","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the location of an attribute variable in this shader program

                            ","params":[{"identifier":"name","optional":false,"description":"

                            the name of the attribute variable whose location to get.

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            number indicating the location of the variable name if found. Returns -1 otherwise

                            ","dataType":{"tokens":[{"value":"GLint","kind":"canonical"},{"value":"GLint","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vMIS6wBewADsj5LhrDYDH","name":"setUniform","brief":"","examples":[{"caption":"","code":"myShader.setUniform(\"uProjectionMatrix\", this.projectionMatrix);"}],"scope":"instance","type":"MethodDoc","description":"

                            Set the uniform to the given value

                            ","params":[{"identifier":"name","optional":false,"description":"

                            the uniform name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            the value to assign to that uniform

                            ","dataType":{"tokens":[{"value":"object | Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"object | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"o3iT_bHdw2d5eDgBcdmW9","name":"setVertexAttributes","brief":"","scope":"instance","type":"MethodDoc","description":"

                            activate the given vertex attribute for this shader

                            ","params":[{"identifier":"gl","optional":false,"description":"

                            the current WebGL rendering context

                            ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}},{"identifier":"attributes","optional":false,"description":"

                            an array of vertex attributes

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}},{"identifier":"vertexByteSize","optional":false,"description":"

                            the size of a single vertex in bytes

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"vpszRFD8ZWnBBuThrAYNL","name":"GUI_Object","brief":"","deprecated":"since 14.0.0","see":["UISpriteElement"],"type":"ClassDoc","description":"

                            A very basic object to manage GUI elements

                            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"q2KsY1ewVxgqLieKuNMQE","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5VAeG0CMw4IiPcfb0Eonh","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xq64Ue5cZHpxdBZTDCOJC","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FNKOCW7LtFwJG8PBSWi5V","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VOUe-9IksHKtVGwq5dqoI","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qA8_BC4R-f9hgvZUz7z0j","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                            animation cycling speed (delay between frame in ms)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J0Tv6s_W_bc75B_WDE_il","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"clfv2mMHgKUDa9oJnXaq8","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iqi-YGpLxWJWZAMjMfxvx","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sZEhxAEkmnS9I-DY4aACo","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XCZNLpx5krrh34SsdXH4r","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bRqdhvE7QpkyDsED5XMie","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yZbZAdojZ8ekkLUwoIqYz","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2XlxGTtOBDUUlhv_fkjLI","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EQXfK-8PL5zHae3O2LnZH","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tfX-fEHSPn3WXWd_lPsCb","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1uZBGkaUvENoH175y6H1j","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ToI4ZJqWGpUlBM-suvHg7","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lubn8lVOKHg7M317F_Fce","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TYKBd8eC8i6h0nbZ1hgld","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yYfTHr5ysU7qYNHpIQ95n","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VvQF4e8zgPICh0qn3qMfz","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1eyjPH0ijBjeVTLXtxb8n","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IF1C5pX1k3OUxqJl7XtR_","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uGh2sfFHR9VgDez5xQprh","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NkGtH42R9V56e4nfMeAGK","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LefijSw9csrpusyAsdsxg","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EqN-UjkaiIFUGn11aXKJF","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zTRV17h-i13nQhP9Q8dYK","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                            global offset for the position to draw from on the source image.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vyrh8n6qmM6Q6I6hXaLur","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeMQE-7DCOmATOFTml3za","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KZM-cM_CkXk08RtslmefC","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KtOPswZkUfkWY3PWPCWKx","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2OUmrKAkcuUsLWkPloJq7","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5HaBlRKIkVkk6m42WdcHG","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2OVWG6RYdt097a8n5h-Tg","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            The source texture object this sprite object is using

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MGg0dUduQHJF5a7PVNzE_","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DdsDiT-WYeVrWeQ0zxk43","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CKIbRAYvGAGinmDMR5rKA","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fkYvvr5xpJaDe_TgddMrU","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PbmG7Gz43AxIvBdfL6DWf","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIdi5x5hjjwkNV7f5xaiK","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            add an animation
                            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                            cycling speed for animation in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            frame amount of frame added to the animation (delay between each frame).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TZRZcTSKtT2Jar8MZNOJp","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"r6wSJfeNP4JnmBEVyNcm5","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tuk_9AGqczefty0Ie5EMo","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j5Es3z8ldqIPctGazTKha","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate of the GUI Object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate of the GUI Object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            See {@link Sprite}

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"QmNkCcKzBGvixwllZtzXi","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"g8Sh4l8XYzhMiQyoxPTKU","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jI2YIX1orG6A_M5aOiCxc","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PkOg_nbT78Gf641PKUx3S","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"du9oRuclD1CLMzkzSd7PW","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                            make the object flicker

                            ","params":[{"identifier":"duration","optional":false,"description":"

                            expressed in milliseconds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                            Function to call when flickering ends

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eTL21p1MkVbRofDwVd66P","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_d0Jx0NTKt4TnwQd16Jql","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"987aZb2J_3BguGwPLzSof","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YUdBGCkqg1DZkejUutxIu","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IJsDzbKx3Hiba_H7Pe-Uh","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current animation frame index.

                            ","params":[],"returns":[{"description":"

                            current animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3OHTL9Op3p9MI8Yvp2Xt3","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"07P4kBJu1h9Y3A7dkl6ey","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_I0br3YW7_IAJ12u_kZfg","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PA-RBHGMhoF9X8jOSiKQE","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            return true if the specified animation is the current one.

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"z7Dg6DY0Yw2Gdn3ZU03vO","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"P3YPlTTy9gcgvLtSb8krq","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the flickering state of the object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lkS95nnqzdScZW-mJlI68","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QsaJbDLUfKjtVhMwHQB4i","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-w1sffbADK1JN_KTL9laG","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s8eg-_9c3ZVH-ocN8GB1F","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WIq_8spC4WKfXbL1nrw6C","name":"pause","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hrzs5zjeGu_-lMobQFzxm","name":"play","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OrSbmy5zX6MTIBFiGjTZC","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"h_afFp9k_UNt-aPD33BZK","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"AOkqr07VWzRH5VJ4zP9Qp","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xGqmFchlmRsdDwHm1P8gr","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vAdaUWqvbB4q0IdGcbYo3","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            reverse the given or current animation if none is specified

                            ","params":[{"identifier":"name","optional":true,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bmTmnwrIT0lYZwBKqoeiW","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uO_nAUIJ8c5lqxgq4RpeH","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"578hprLm4ccrEjYM8xSwQ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VRlxW_jaT7R9isX8W2S70","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                            force the current animation frame index.

                            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                            animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ekpgk_mnvnguiaQ33_SvS","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                            set the current animation\nthis will always change the animation & set the frame to zero

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                            animation id to switch to when complete, or callback

                            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                            if false will reset the elapsed time counter since last frame

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p6PDt0MIE3tP1A0JAF9fS","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FfTmM_vv8HywSABRiJZhE","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                            change the current texture atlas region for this sprite

                            ","params":[{"identifier":"region","optional":false,"description":"

                            typically returned through me.Texture.getRegion()

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3RMVuReHKaf10iw03zsYi","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TQ6vC558HztVlA7TVLcpF","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_Zl1MvK5QKiECcnf1UVjW","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UCsyTJfijLYUtRg_3zW0f","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CjWaYXjS_dwO8FlZe7Jbo","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K-4Ryxbdw-fwyY4HzfkUn","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HgX8_oiETy8G-XxW84ddN","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZokUGqkPDDEJXGNlZ_CYb","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DyYivsnO1esA-SMYWQ1vD","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L5uhYTFJeld9haXUcJswd","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DZLcCuad8RMib-ql3qAkj","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this srite (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wPOCoAcHg7OGfXVyEDv-p","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            update function.
                            \nautomatically called by the game manager {@link game}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Sprite is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dTSlBryiStQ45xhXGGpeq","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"4Wplzr3j0_82u2xB_-ZSL","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

                            a generic Image Layer Object

                            ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"PcRjNT7o3WZtI9SCLdlqh","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nTK9BNH4jENyoStX7lxYL","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oMKipEaH7P-NdwrGpij2h","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wBgMpX4kda6simpj3SsNi","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T9Nl2ZZtPJ9kz3F_vzsBY","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mkNMeCNO6l2K1EgQqUxo7","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                            animation cycling speed (delay between frame in ms)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MNcey5xZCGZHs2wfZSNMf","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q9n4AyLqKJ2_rB0PZ3Qfg","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W4BKBcwC9VT6iKEiAQNsd","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YTgbN04KQXQV23J0sGRfh","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-qlIxhBbJZMZ9ejQ6mXsx","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SeT4VYF86gAUGukInek9_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lJY8yY4SANZvNLiHDO-yZ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u9t9_MaWT9l8KDRH5XgCY","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X99WMs9Ye8RPwJ-t4TK5s","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5FzuFIhHzc-Pv17cRZBwx","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LsJLr-fdyrDo4udRjmTP-","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2UnleK7RY438PRH8ZGWZ9","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CoFboymerWOBSC0QJ08QU","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DDJWTFjnMIGvoHkJiiM3c","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IIKhZVhf1fl0UnUqjy2hp","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"psdq0SfZUS_TBdd0QLYHp","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kAaiFyQWHjUjvTb5Z2BPi","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CiMwTahRXs-Jc61i3Zbze","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"whvzAzeY-2EL_rn7CPjP5","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0cRvsnT6Bei5SBWNiiy3h","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a5SEePNr1BJGj5IJmAGBb","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C4cr8XcChqkCZdIC9pFtP","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J8fc8GM20Kpp0hKs1xfDR","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                            global offset for the position to draw from on the source image.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bp9rwQ3qVmNAa2AgJj_gX","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LZYenbFMWU1gkHIJiEAMy","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wlpufCu9Xo1hVsB9OmoBM","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Ga3coLzTUuSIh9xAjDbh","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rKWeRzwTW1tGli6wTWvRb","name":"ratio","brief":"","defaultValue":"<1.0,1.0>","scope":"instance","type":"PropertyDoc","description":"

                            Define the image scrolling ratio
                            \nScrolling speed is defined by multiplying the viewport delta position by the specifie...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wO_Iljr_KyLhD93TVOlN3","name":"repeat","brief":"","defaultValue":"'repeat'","scope":"instance","type":"PropertyDoc","description":"

                            Define if and how an Image Layer should be repeated.
                            \nBy default, an Image Layer is repeated both vertically and horizo...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BCD7Nef8ESdWhjVQAOlgF","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M2U-z907qw9b1jEYoWZ2_","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uckVGpBB80t58J08pxb4G","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            The source texture object this sprite object is using

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YVVy7TbAaLr1wlExrRzo5","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kRbCuHbZjg4s4RGqSws6S","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g_1_BxAvJfEX1U5KSVmW3","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YUrHXpKvL9El2eYNQuM5l","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8l6indHwX_KY8aXgOa2GB","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OjtiGKkMzLSHlZCpzcdYk","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            add an animation
                            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                            cycling speed for animation in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            frame amount of frame added to the animation (delay between each frame).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6CKw_f98HyF8kDNVLCHQP","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LRq0FvzGWaUt0An48jmO-","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JrDbPxBPfqQYucz9f-B7H","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"isEFPq5lTveX0e53CXmHM","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a repetitive background pattern on the X axis using the citycloud image asset\nme.game.world.addChild(new me.ImageLayer(0, 0, {\n image:\"citycloud\",\n repeat :\"repeat-x\"\n}), 1);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            x coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            ImageLayer properties

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

                            Image reference. See {@link loader.getImage}

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2 | string"}},{"identifier":"settings.name","optional":true,"default":"\"me.ImageLayer\"","description":"

                            layer name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.z","optional":true,"default":"0","description":"

                            z-index position

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.ratio","optional":true,"default":"1.0","description":"

                            Scrolling ratio to be applied. See {@link ImageLayer#ratio}

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"settings.repeat","optional":true,"default":"\"repeat\"","description":"

                            define if and how an Image Layer should be repeated. See {@link ImageLayer#repeat}

                            ","dataType":{"tokens":[{"value":"\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"no-repeat\"","kind":"canonical"},{"value":"\"repeat\"","kind":"canonical"},{"value":"\"repeat-x\"","kind":"canonical"},{"value":"\"repeat-y\"","kind":"canonical"},{"value":"\"no-repeat\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"settings.anchorPoint","optional":true,"default":"<0.0,0.0>","description":"

                            Define how the image is anchored to the viewport bound. By default, its upper-left corner is anchored to the viewport boun...","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_z6zXnhZN_7q88C6PzwX9","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"77cgmmATSesGopXJWGyAz","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uBm66P6PFzCtLJlCqcJfU","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tCurjB020R8HJBEENZ5tg","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7ufaP1aoJ1nwtfkhHS_Ok","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                            make the object flicker

                            ","params":[{"identifier":"duration","optional":false,"description":"

                            expressed in milliseconds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                            Function to call when flickering ends

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"srChAaot20sQpvCzWrXFH","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LYAQs6pBa4kuPPTFTnLV1","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V6zjwfdzrFG369D-CEFP1","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t3MzKsQ76xQ91JgxawXNX","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hFEoz1w9mgLzpYdLZ6Mmt","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current animation frame index.

                            ","params":[],"returns":[{"description":"

                            current animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JXiw6k92xXPdHZ-seM2tl","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"i3MXNeOIYcZCdSoAeMuzP","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jrz7jKMkFDI7qj8dxAzrD","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-7ZQ5iY7CmkY2GUUW4RK-","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            return true if the specified animation is the current one.

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"881qvQpmWtwK8ZOIhOMNe","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6Fkn80GtS9n4Nwa2JGjk0","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the flickering state of the object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8770W2V35s2c6k5gidFeF","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QA7-ap7MJJKhKQ7GUwhZh","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_s4QtHw0ClPepGA__hJ6g","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UFftMs46jCF7ihGHSeIOE","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oq_nCTnSbGsiNqPSPm42d","name":"pause","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OWUL3cVSQ9IZdASpsHLyK","name":"play","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUmLBxNzG4c_7GSJjfo4V","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"4MeWCYAJ-4emi-fhEsGcs","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"3HGN19eQncRE-oQ9u4WIy","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1SURbvRnajXGJ6SkVq0ZH","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the Image Layer to match the given size

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eREFg3cec7fjnUVLCD5BP","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            reverse the given or current animation if none is specified

                            ","params":[{"identifier":"name","optional":true,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Hcf-LyeCFVaMoCmtkLz07","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mkbCvUUlLSuF-k8UH3v7u","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6bvj5BB4nkOPMjcFqAzZi","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gOgy5n0uYJ67iGIKcI5JS","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                            force the current animation frame index.

                            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                            animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8Dmb8eIIe9Kozi2ecDuS3","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                            set the current animation\nthis will always change the animation & set the frame to zero

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                            animation id to switch to when complete, or callback

                            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                            if false will reset the elapsed time counter since last frame

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WDK0qomz_hsFUg5QgnBQf","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WpDOs3LmaEFDQeYujKtP4","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                            change the current texture atlas region for this sprite

                            ","params":[{"identifier":"region","optional":false,"description":"

                            typically returned through me.Texture.getRegion()

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"99ud22ebSJvriaNrRPsOW","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aNYYWGQwtBS33dTXl7zDl","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jt4g4yFjnX2sOc83cn0IR","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"OtjDLnZgI4sps7sgAtCrw","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iZLWFegtycpR-0D7lKLLk","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mla7SdO6u1KFBE2SdEvvS","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_dmjINIJ_EVqxyITjBvVM","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"noCGRn0A_irT4v_YezuH_","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kVma1S5ZyupHdeeCFOo2d","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HsBHc3IRGQ38OKurbbDfH","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lIDtUNEodr5oSylhKMtBQ","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this ImageLayer (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DLZZjnytnoEuva1SqF0OT","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            update function.
                            \nautomatically called by the game manager {@link game}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Sprite is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6K2YzPqVY95JpE2d8cZQg","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DYMPUfYJaPlEcoZjQIvFf","name":"Light2d","brief":"","see":["stage.lights"],"type":"ClassDoc","description":"

                            A 2D point light.\nNote: this is a very experimental and work in progress feature, that provides a simple spot light effect...","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"RebgYvrCfpzv51d_ydzG9","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0BcYfkLB1HHJGWgEMXfij","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMcnxGAeWXQ7EysETRWto","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dLlywPXvXJgJfuVJryfqb","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f82Lc-CDZSC3b5XP0gAbp","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7fruDRZ2oGPzgn8DIqTRu","name":"blendMode","brief":"","defaultValue":"\"lighter\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the default blend mode to be applied when rendering this light

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NnNvzLdMdcvPgMMAEFuyo","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yc3Gvg3DhZVVnFVVMr-Ic","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oxzmyKL5rQdoXhP4MV6aq","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"06-EEYI2VTAxh9vmIZtZs","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p4IRhi5_-HkD-qBWBkzjg","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

                            the color of the light

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9E7pFaVf5Z5RS76wrYXB_","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dF19QUwKCOlyCQH-JXawK","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RJF1R2hFp6OH8jT7hhRrG","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-HwM-Ib1lpVR5iN0zbloD","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Hnbxc6B_KRWedHiDwbCi","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TWPMtwUnlKvjHwBZakmVM","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

                            The intensity of the light

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qyLRHfPtLENwcXijOaZoC","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ChBJhpUZB8Q6q80P2Flwr","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XbttvZiGj6A6alPpaKNOC","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EOBUAAlGy5fsCgDqenIdq","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vluyWl2SkY1QJyyOpYBsL","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vwYs8VeGKJrp4VrczlChC","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EWWmx_7b4o6RqSE1DnD63","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E8P8TbS6PBILumKIk1bjT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xeht-OH9wCle2qxGc6g2h","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FBDu4S6hKeRbJA6TCfkZv","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"imm47VSsOUVaLG5A50mOU","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VbfF6fx0pdlRNVZfig8TV","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"myyvMQ6flOiGgNeIy2pu8","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mbxu_ABdBs3EFaviyYgqo","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z1Ryp45anIQ2d-tO-a64K","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The horizontal radius of the light

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GL-5EWRWbtUSt5noeYJDE","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The vertical radius of the light

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6JYd5WoEwNOKec8sV_j4x","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9YPC0x5KqtbEMCEmUj-ZA","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y9pLwnMRxdD7dXXZ4vYKb","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r6Kkurp59JDzz7I8HXlBb","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9flxG-6b-VixGUtFiU_Ix","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vx0Y74dGCPLVKipdF4e1C","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u1KOtRaI-lhaNYrNWIPOx","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kUlKqFVqlXnIog5C61Znd","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TB6zhuAYfoGTDdh_ZmYSj","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YYKRJWvWiTU7RJQiCiXmi","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6KnGRLRpBGrfbzGHINekT","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            The horizontal position of the light.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            The vertical position of the light.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

                            The horizontal radius of the light.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":true,"default":"radiusX","description":"

                            The vertical radius of the light.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"color","optional":true,"default":"\"#FFF\"","description":"

                            the color of the light

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"intensity","optional":true,"default":"0.7","description":"

                            The intensity of the light.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Oq4PF0K-qmyFr1RX3iWpg","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xFooM_y671qS0wWvQcmoZ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ud70yYEgiaTsWzW2Cngzr","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UX8-C1JftsDCrIu2i8G1x","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5iuEUs1-bLcKSdYvEAQ_n","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NQEE1MGtONWd4Z8XHXSxO","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MVHDbxeei_S-J8geLk9fL","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_0bQUc4pvBhF5_cdTh_wZ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rDusukJP3O71kphtFpOVj","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"bJ0jcs7LHDvpAB88o_QkL","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"exzc4jD-XaiCRmIB8tLkX","name":"getVisibleArea","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a geometry representing the visible area of this light

                            ","params":[],"returns":[{"description":"

                            the light visible mask

                            ","dataType":{"tokens":[{"value":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K-Rar5nMSQyQumKnvxFXd","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"x36fiVOk3RUBSWuHLPlim","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"44hHXTMJ_y0XrChTr-zUO","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"s5YOlWT8Fp2DycCs59ga5","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"saWSPzvjCr0S2ekVZ8-G7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bnf0RXdkpP5el5G_twVKs","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MBg8aIyYkpXBuUYG8G5zp","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"emPZUDd0PF6tCKeMGl0Pq","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"sLhGwXQZVuQJvKkUFc1h8","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5izLmN4wPDs_lOfjyp6dp","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PWKkabRpbGyNCmclaRDyJ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nTE2jWpEEIl93Hdt7Dn6A","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nMycJZTbgmy58tu_YmIiV","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1o7AUQ22V-7qQdabstFVh","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ENus8IKAjBPfMA8it6kJA","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OMAz5GgyEe_PgLBQKmcv8","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Msay27YV4uGKv2mGTbuhv","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CA67-MhJW3dpi6M7SopYc","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hZ_zXPQIjWnhqXA6_Z42W","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l-UMcMbtexachirJ1tRRp","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ymxwlpq1kAWYb6fs73YVr","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"19qBAS4GtSAjpiTCYP7x2","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hF79RvBsi6pFKo0xJhM5t","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rnjBH43pwvqBWBDxkk7Jj","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dzXP6yFx9kDxLpzWuJq-g","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MgBE8bZi516uJaD19BUKh","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this Light2d (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"H3GWmRdbZw6PC_zqxBw7l","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"j0fEeKVmrL4yUzpwQNbZl","name":"Line","type":"ClassDoc","description":"

                            a line segment Object

                            ","params":[{"identifier":"x","description":"

                            origin point of the Line

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

                            origin point of the Line

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

                            array of vectors defining the Line

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"YkEOq5uhrg5iE8l6gqfKT","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HIPC6NaDlZknbERIL10y1","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            origin point of the Polygon

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4JaL7GleMLjo-gnP-7Vr","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u_Wl52e8u9DpC4e3qAxVQ","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this line segment

                            ","params":[],"returns":[{"description":"

                            new Line

                            ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1OXTax-QeFzrA_oinDuRb","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","description":"

                            origin point of the Line

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","description":"

                            origin point of the Line

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","description":"

                            array of vectors defining the Line

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[]},{"id":"4WEMqfiZJvkite6LfFIRP","name":"contains","brief":"","examples":[{"caption":"","code":"if (line.contains(10, 10)) {\n // do something\n}\n// or\nif (line.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the Line contains the given point

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to check

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if contains

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"z1vTfnbc2QVpK3yf5Dt7n","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Eq-u25Bn3CCYtAmRnYzDX","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Dk8UrRD0ApECP_Hc1JYCw","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"14lUAtyXmEdtiWFJLQ53N","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision edges and normals.\nThis must be called if the points array...","params":[],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Line","kind":"canonical"},{"value":"Line","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bush2nO1eHzsiaY-mRCrX","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7ujTRioY-JQaIpiqrruUz","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given scalar.

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zHioFyvs71Vbr5MbuJiv8","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WBG1lI3xm2EBo1s2qlDMS","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the Polygon

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yix_i1ucuaan1d4y-rQmA","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_jtElNgDYB9CHTJOQ4h4H","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PdXktlHntsJolpjMm-rBu","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HkFBFLq2nxzu7Wlj4UdBt","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vE7RmBn6tWwgp95tm1oEq","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the given transformation matrix to this Polygon

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5H4Bf4QPVdXuBmmzZsd21","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nJIdl69Tj0smK-7bZ5JUm","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"V7oVFdYgBtQHsDsnV74aC","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

                            a Matrix2d Object.
                            \nthe identity matrix and parameters position :
                            \n

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"CHSuHj_bC1Z7Bzy9q5-Wu","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                            tx component of the matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-9OpxLrpVxuXxiFaNHgjk","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                            ty component of the matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r5P_lzHBWT846wkbGdl1f","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the current transform to the given 2d or 3d vector

                            ","params":[{"identifier":"v","optional":false,"description":"

                            the vector object to be transformed

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            result vector object.

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"2lSYkCzAB8E1kad5yHMbw","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the inverted current transform to the given 2d vector

                            ","params":[{"identifier":"v","optional":false,"description":"

                            the vector object to be transformed

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            result vector object.

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e9mK6ezyWJqws1mefut5L","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clone the Matrix

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CFN_rfs_fYFhwDiW4G8HO","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

                            an instance of me.Matrix2d or me.Matrix3d to copy from, or individual matrix components (See {@link Matrix2d.setTransform}...","dataType":{"tokens":[{"value":"Matrix2d | Matrix3d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2 | %3"}}],"returns":[],"extends":[],"implements":[]},{"id":"jqu40_bVoCqEtC672WDTw","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copies over the values from another me.Matrix2d.

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the matrix object to copy from

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vEe3veYkr991IIso-oCjF","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the two matrices are identical

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the other matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if both are equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"R1kKH916a1Te15KnEbe7N","name":"fromMat3d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copies over the upper-left 3x3 values from the given me.Matrix3d

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the matrix object to copy from

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RK5iA_hFSqsfyKKFLfL-6","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            reset the transformation matrix to the identity matrix (no transformation).
                            \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1kK17u0XiN9-qcnI0-Wp0","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

                            invert this matrix, causing it to apply the opposite transformation.

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-nYs76mzVhRPlqYpP5RbO","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns true if the matrix is an identity matrix.

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"jtxQe8ycWRBUYOs-C9KbF","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

                            multiply both matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the other matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bsipBZmpkMxHg8RgozBSh","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            rotate the matrix (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            Rotation angle in radians.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w2yLZD3QMu6RtdKIAjS3N","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the matrix

                            ","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XrJNE5uSLHkF7JDqx219C","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds a 2D scaling transformation.

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TnZRXk85hbuCeRyGjgtmu","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

                            specifies a 2D scale operation using the [sx, 1] scaling vector

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x scaling vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xUzjz3Gb6jJ8kw5usQcsw","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

                            specifies a 2D scale operation using the [1,sy] scaling vector

                            ","params":[{"identifier":"y","optional":false,"description":"

                            y scaling vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v6SQ6z3WfDT_wtjvpn8tz","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the matrix to the specified value

                            ","params":[{"identifier":"a","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"g","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"i","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9uRSVN0dbq318si5rbGU6","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return an array representation of this Matrix

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6anlFE_nGgTP2aCUk_mg8","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                            convert the object to a string representation

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"KXjma-d_4YJQnMDycEyxS","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Multiplies the current transformation with the matrix described by the arguments of this method

                            ","params":[{"identifier":"a","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"b","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nz0A2NKcZ3wIyVCFIS5qK","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            translate the matrix position on the horizontal and vertical axis

                            ","params":[{"identifier":"x","description":"

                            the x coordindates or a vector to translate the matrix by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            the y coordindates to translate the matrix by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TTvxXleN8AHhw-aMlz8mk","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Transpose the value of this matrix.

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"3tkV4keAFRnv2imNnQ2qZ","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

                            a 4x4 Matrix3d Object

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"uzW2miRvPRfkPzZGLe-61","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            tx component of the matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EfH9wjjSvmEK--BLn9sQ0","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            ty component of the matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B-kXCIEIoYd6ozY2Z-mQp","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            ty component of the matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wt6XP_pMrLOahRH-eG4Ur","name":"apply","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the current transform to the given 2d or 3d vector

                            ","params":[{"identifier":"v","optional":false,"description":"

                            the vector object to be transformed

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            result vector object.

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"loHV1z0fyzuhyc80hAaPS","name":"applyInverse","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the inverted current transform to the given 2d or 3d vector

                            ","params":[{"identifier":"v","optional":false,"description":"

                            the vector object to be transformed

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            result vector object.

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"nAXTxup4UG7IKYRJgVlYh","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clone the Matrix

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kj-tyzwJgM3MkXETYSbqh","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"args","optional":false,"variadic":true,"description":"

                            An instance of me.Matrix3d to copy from, or individual Matrix components (See {@link Matrix3d.setTransform}). If not argum...","dataType":{"tokens":[{"value":"Matrix3d | number","kind":"canonical"},{"value":"Matrix3d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"HZVVHNoNNORl1yqoL8n4M","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copies over the values from another me.Matrix3d.

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the matrix object to copy from

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rQ80Y_NwHzrQ-ZRlwu0Jf","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the two matrices are identical

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the other matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if both are equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ODZD4FerhZlSJw8h_oiTs","name":"fromMat2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copies over the upper-left 2x2 values from the given me.Matrix2d

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the matrix object to copy from

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vj-accebk-A1spFnzgC3O","name":"identity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            reset the transformation matrix to the identity matrix (no transformation).
                            \nthe identity matrix and parameters positio...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"F3YgnUxS0SjiUYfpxU3Mr","name":"invert","brief":"","scope":"instance","type":"MethodDoc","description":"

                            invert this matrix, causing it to apply the opposite transformation.

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lAr46ZP4-ie4oOa23fZMy","name":"isIdentity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns true if the matrix is an identity matrix.

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"-MhaAz03B2lJiaATppudp","name":"multiply","brief":"","scope":"instance","type":"MethodDoc","description":"

                            multiply both matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            Other matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"19WPpZz4zOxyOvIdWAUuA","name":"ortho","brief":"","scope":"instance","type":"MethodDoc","description":"

                            generate an orthogonal projection matrix, with the result replacing the current matrix\n
                            ...","params":[{"identifier":"left","optional":false,"description":"

                            farthest left on the x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"right","optional":false,"description":"

                            farthest right on the x-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"bottom","optional":false,"description":"

                            farthest down on the y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"top","optional":false,"description":"

                            farthest up on the y-axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"near","optional":false,"description":"

                            distance to the near clipping plane along the -Z axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"far","optional":false,"description":"

                            distance to the far clipping plane along the -Z axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Npo5BZxTWu0ktsyEzhC5Z","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            rotate this matrix (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            Rotation angle in radians.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":false,"description":"

                            the axis to rotate around

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2EozApq6e-J4xJ3v2HCxw","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the matrix

                            ","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                            a number representing the depth vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i9Y3r76azYmbu5tSZUtdH","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds a 2D scaling transformation.

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xss3oYNwHrxMTUuygPVc-","name":"scaleX","brief":"","scope":"instance","type":"MethodDoc","description":"

                            specifies a 2D scale operation using the [sx, 1] scaling vector

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x scaling vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_SAO76DIpNg-eYAq2_cyM","name":"scaleY","brief":"","scope":"instance","type":"MethodDoc","description":"

                            specifies a 2D scale operation using the [1,sy] scaling vector

                            ","params":[{"identifier":"y","optional":false,"description":"

                            y scaling vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QcfCW_hI4xjZXD6XWzct4","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the matrix to the specified value

                            ","params":[{"identifier":"m00","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m01","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m02","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m03","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m10","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m11","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m12","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m13","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m20","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m21","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m22","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m23","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m30","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m31","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m32","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m33","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VpMz7OhZCTkQkIdz2_EM5","name":"toArray","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return an array representation of this Matrix

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o7gIV3MOE3I7B248LMz6r","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                            convert the object to a string representation

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"-3z-dE2-lKRfmD2gPqg3u","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            translate the matrix position using the given vector

                            ","params":[{"identifier":"x","description":"

                            a number representing the abscissa of the vector, or a vector object

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            a number representing the ordinate of the vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                            a number representing the depth of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PkjaXBkM38vCMvE-36KeG","name":"transpose","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Transpose the value of this matrix.

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"t8dZ4N0xxvjk52b4fMbUj","name":"NineSliceSprite","brief":"","see":["https://en.wikipedia.org/wiki/9-slice_scaling"],"type":"ClassDoc","description":"

                            A NineSliceSprite is similar to a Sprite, but it uses 9-slice scaling to strech its inner area to fit the size of the Rend...","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"yebYCsk6VOIG1RAqcph6m","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2YoJmZj26i66h0XeQ1Cdo","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wdhtay0aP657f-CEp8rsz","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uQLK7tbOEy_zD0k8jPbqI","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMcc3A8zyHtfoJbF_AIlJ","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zaC9l0w2byXQxvRC3r8H5","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                            animation cycling speed (delay between frame in ms)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IC0c2kI0vSPWpWKUyeeXK","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oE3j1_ANQ6R_T2kSlc8OZ","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jNiHuLAamSxZBq5sx-BB2","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GuyMC-zXty1PEF652iau9","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QM6IG2QjaK9ZmQnrBCw6l","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U5JKqEzdX-x_KBuLzsBub","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D8q6zbcqvdjUk8Ox83GDZ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oWHmC9M0FW-1cxCyPQG4G","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vSRF0899VqrVQLgZ1g71Z","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AiVTb8B1Uy_lelNiTZH74","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mYsOgXllSqLv7JPrypu5B","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the NineSliceSprite

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5hJlHi1vw9Bm4_TVklwzp","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VFWAzCG1kFAWVRPkPQg9D","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ShUKb5-Iyc-wdlbXrYJhN","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yn1KmyyXHlG8miI5BsXrp","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D2iE0L5E9ElHCR3YqzO2g","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Zs6Z3VWFrhZUuVNxtYD6","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rrr2uVCzDGl4_m2dWl_dk","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eQ2VofkTO2NuDkhx4RBFV","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_X0E38SogiHjkmNi23UvS","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iZKR0wsjfmDdH3xOswC12","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mh2ah2Anci916EzRmmYvQ","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LLSHoUPAjXKrP5dyj2xxN","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                            global offset for the position to draw from on the source image.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hz6Y6zTtYm--5qDtaqvEY","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YnBKunJS7t2egSQKZWQZo","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JN_XGTLzz0D5HT-lShuzv","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wehzq62-f7dJQzaSCTZg4","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8TQ0doP79RrO_uu8ecmlz","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8kLTFc59lqkwpFsTx8J13","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lhJLvyfAraeDvcoD2nnLa","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            The source texture object this sprite object is using

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8iB5NKimtU3f6Y0XXYL-k","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6gppghqztJje8UhsU9Coa","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9t5_aJjPXa9VlKOFQeFWm","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pzcHGcyrqI0OOZZhvRlYy","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eNWDOFKWmulS5f9KvGjeO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the NineSliceSprite

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zZjpDPt0ZTuKeiT-Fvsox","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            add an animation
                            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                            cycling speed for animation in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            frame amount of frame added to the animation (delay between each frame).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dVaSnn-UWIEf8x2_YDM4K","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_thvrN7o4n-hvMIKYWwpw","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k-mrQfoJ1U0QEun9N-ay6","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wGNGa4f2yxWRV17PnspsA","name":"constructor","brief":"","examples":[{"caption":"","code":"this.panelSprite = new me.NineSliceSprite(0, 0, {\n image : game.texture,\n region : \"grey_panel\",\n width : this.width,\n height : this.height\n});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the sprite object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the sprite object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            Configuration parameters for the Sprite object

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.width","description":"

                            the width of the Renderable over which the sprite needs to be stretched

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","description":"

                            the height of the Renderable over which the sprite needs to be stretched

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insetx","optional":true,"description":"

                            the width of a corner over which the sprite is unscaled (default is a quarter of the sprite width)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.insety","optional":true,"description":"

                            the height of a corner over which the sprite is unscaled (default is a quarter of the sprite height)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.image","description":"

                            reference to spritesheet image, a texture atlas or to a texture atlas

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

                            name of this object

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

                            region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

                            Width of a single frame within the spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

                            Height of a single frame within the spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

                            a tint to be applied to this sprite

                            ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

                            flip the sprite on the horizontal axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

                            flip the sprite on the vertical axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

                            Anchor point to draw the frame at (defaults to the center of the frame).

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"z-BhXOk4dSCIfipJ3L9fd","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"i8Labp3OpB8f2G3lI1WaU","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ARbdSN0X7APNLNGZUZlPx","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H2kSSkaYLCUPV1_KNfB9g","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fggvmOFl6S9RXjwOAFEAa","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                            make the object flicker

                            ","params":[{"identifier":"duration","optional":false,"description":"

                            expressed in milliseconds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                            Function to call when flickering ends

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GvfPwtJmGKrk-NO1MF2lM","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P5wzmVEQFL1dmRKBMdWai","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SF0fUrS7xM8Ws9HfJgyHw","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LzI7dRAfUY5DWM6vqhHjQ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O4CBUQBDqqVGOl6Q2kN7F","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current animation frame index.

                            ","params":[],"returns":[{"description":"

                            current animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Fg-AysNh9j2-wfCcF4aRZ","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Fdt6MWPUKTS0_iflf4Tli","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ye-Da3gSRs8W_sroJxGge","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZGMAXPR3dVKrfixy5ZYrp","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            return true if the specified animation is the current one.

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_KYDNBrEgf-A1lwRuK1Sl","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"et25pZThGDklFzN2Lbyua","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the flickering state of the object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PBi2L0zhf7V0UiPoV3Rwj","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9Cp9b59_RffhxSey3FWca","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BrAxTY6ME6FUvVLiRza55","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aRu2ELWxUenqig3Y3awl9","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rkLtAvzKckAPTn0MSYjKp","name":"pause","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IFtgMD0qkKVDbExYjEh8H","name":"play","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b7O0R3HGd100lR1uPAFET","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"6nbHP11B8_ilT3WUHcwZX","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"nHWPNfzywcHZFhrYN1pA1","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dW3OLAE5K5QvEkHvXMQ-a","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OQJckClj0dyDf4SLTZ_MH","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            reverse the given or current animation if none is specified

                            ","params":[{"identifier":"name","optional":true,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zm5ftunJRVweDTgztGhTT","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zsJIJun4eLZAP9Tu9-8vp","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jznK4COP5P0m1yRE6R-S6","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pQgcMBLBSBW8hshD5mcN0","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                            force the current animation frame index.

                            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                            animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6iOjwdX6nxr_TeswzZxlD","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                            set the current animation\nthis will always change the animation & set the frame to zero

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                            animation id to switch to when complete, or callback

                            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                            if false will reset the elapsed time counter since last frame

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qpgEpX8K6PuOl6g5GWt5L","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7aGHv--Abxbyj5s7UcT99","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                            change the current texture atlas region for this sprite

                            ","params":[{"identifier":"region","optional":false,"description":"

                            typically returned through me.Texture.getRegion()

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Lg8X4t1rIWuO3w30NmkGk","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Oa0Q_Tnl5ZbtVvktRkn7L","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xt11SRjbmByP5kgyjnEeI","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"SqB4v_4DwV7UiVcRO7MyC","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NQ1etP8Q2np4CzQ7w6vxY","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IXT98V1J9XQrWLwLffPjd","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pegXggAGwjaRa3sD6_BXq","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cZJ486Ww33t1yy5ne15zE","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wlNf_5xZ1-6gJa6FgWz_5","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vIRAMLtjplHjOKNhX7RJG","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8gGU3LrLFUIVRDRu2jG54","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this srite (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Xcuj4RRYZfaznr6ucERFE","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            update function.
                            \nautomatically called by the game manager {@link game}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Sprite is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Eki9I3NLJNe8EOjcvwSXr","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"ZwKrFgQK9y2atL0SyLK2u","name":"ObjectPool","brief":"","see":["{@link pool} the default global instance of ObjectPool"],"type":"ClassDoc","description":"

                            Object pooling - a technique that might speed up your game if used properly.
                            \nIf some of your classes will be instantia...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"GeHzMNJ_wPclGOObQKeNa","name":"exists","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Check if an object with the provided name is registered

                            ","params":[{"identifier":"name","optional":false,"description":"

                            of the registered object class

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            true if the classname is registered

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"OFijDeNP6VTqRESQl3ud-","name":"getInstanceCount","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the amount of object instance currently in the pool

                            ","params":[],"returns":[{"description":"

                            amount of object instance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"T_pAs4dwXeXoJ7owbnATE","name":"poolable","brief":"","examples":[{"caption":"","code":"if (!me.pool.poolable(myCherryEntity)) {\n // object was not properly registered\n}"}],"scope":"instance","see":["register"],"type":"MethodDoc","description":"

                            Check if an object is poolable\n(was properly registered with the recycling feature enable)

                            ","params":[{"identifier":"obj","optional":false,"description":"

                            object to be checked

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            true if the object is poolable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0388kz-645s8KWj0HbAKJ","name":"pull","brief":"","examples":[{"caption":"","code":"me.pool.register(\"bullet\", BulletEntity, true);\nme.pool.register(\"enemy\", EnemyEntity, true);\n// ...\n// when we need to manually create a new bullet:\nlet bullet = me.pool.pull(\"bullet\", x, y, direction);\n// ...\n// params aren't a fixed number\n// when we need new enemy we can add more params, that the object construct requires:\nlet enemy = me.pool.pull(\"enemy\", x, y, direction, speed, power, life);\n// ...\n// when we want to destroy existing object, the remove\n// function will ensure the object can then be reallocated later\nme.game.world.removeChild(enemy);\nme.game.world.removeChild(bullet);"}],"scope":"instance","type":"MethodDoc","description":"

                            Pull a new instance of the requested object (if added into the object pool)

                            ","params":[{"identifier":"name","optional":false,"description":"

                            as used in {@link pool.register}

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"...arguments","optional":true,"variadic":true,"description":"

                            arguments to be passed when instantiating/reinitializing the object

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            the instance of the requested object

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"DrVSAcXmGcO3zO8aDoaBJ","name":"purge","brief":"","scope":"instance","type":"MethodDoc","description":"

                            purge the object pool from any inactive object
                            \nObject pooling must be enabled for this function to work
                            \nnote: thi...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V53zkQgeG4GONG1GC0jqh","name":"push","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Push back an object instance into the object pool
                            \nObject pooling for the object class must be enabled,\nand object mus...","params":[{"identifier":"obj","optional":false,"description":"

                            instance to be recycled

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"throwOnError","optional":true,"default":"true","description":"

                            throw an exception if the object cannot be recycled

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            true if the object was successfully recycled in the object pool

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gfypW9sl7hhwAiGnlVdSn","name":"register","brief":"","examples":[{"caption":"","code":"// implement CherryEntity\nclass Cherry extends Sprite {\n onResetEvent() {\n // reset object mutable properties\n this.lifeBar = 100;\n }\n};\n// add our users defined entities in the object pool and enable object recycling\nme.pool.register(\"cherrysprite\", Cherry, true);"}],"scope":"instance","type":"MethodDoc","description":"

                            register an object to the pool.
                            \nPooling must be set to true if more than one such objects will be created.
                            \n(Note...","params":[{"identifier":"className","optional":false,"description":"

                            as defined in the Name field of the Object Properties (in Tiled)

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"classObj","optional":false,"description":"

                            corresponding Class to be instantiated

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recycling","optional":true,"default":"false","description":"

                            enables object recycling for the specified class

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"4pPtN-Jpb_Lg548sGC8Eo","name":"ObservableVector2d","brief":"","type":"ClassDoc","description":"

                            A Vector2d object that provide notification by executing the given callback when the vector is changed.

                            ","params":[],"returns":[],"extends":["Vector2d"],"implements":[],"members":[{"id":"e5uzC4Yv9iCJpRLNfd7pT","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            x value of the vector

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-dh5Xujo3WIG4fG9LD311","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            y value of the vector

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iiSF2Kj3wiOgA3xsHi6GP","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector values to absolute values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NgF5gfDyBMvMJk95S5nWW","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add the passed vector to this vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D7qpZOGCHPEvDP-opT4uS","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle between this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pR_cHEdi0y5j5ZOwxAGrb","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Ceil the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector2d

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XWWsYGzFGCbt1XGguQCwG","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Ceil this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HKoEESeIy5nZWggB5DaCG","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clamp the vector value within the specified value range

                            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            new me.ObservableVector2d

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"waqbRTWAO1dl8XrkvML2E","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clamp this vector value within the specified value range

                            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jCwgYC4JlRFwTgnIwXwon","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a clone copy of this vector

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector2d

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O1mtZDfo0k_NM6tK_xQL9","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

                            x value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                            y value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            additional required parameters

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

                            the callback to be executed when the vector is changed

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

                            the value to use as this when calling onUpdate

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"li3iR3O0YMuJbs62rSAIQ","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copy the x,y values of the passed vector to this one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eg1boua3ACkU5DVVE_gJ4","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the cross product of this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            The cross product.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mUNxwzUVsyS7uiTyj2Nc9","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance between this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ewvp0HG8-zmzEM-pKxdja","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Divide this vector values by the passed value

                            ","params":[{"identifier":"n","optional":false,"description":"

                            the value to divide the vector by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3_UH5nN5jRXf4Sze1407g","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the dot product of this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            The dot product.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aq8-jqeTwl0goB0zdDeNG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the two vectors are the same

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"cQUckQQKaMFtBGXm56Dkm","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Floor the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector2d

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8DCzlNyoq_h6cMBJ4GKI1","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Floor this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3GM0VcFL9ed57xusjnykE","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the length (magnitude) of this vector

                            ","params":[],"returns":[{"description":"

                            the length of this vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oa5NwUByHpDWBN2HFOttS","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the square length of this vector

                            ","params":[],"returns":[{"description":"

                            The length^2 of this vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3u5NaYzvURqk_vWrkc5aP","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Linearly interpolate between this vector and the given one.

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

                            distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gwQcEf0VsL-50AokIvjJ8","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector with the maximum value between this and the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TtvjndUDjOtMU9cgq37oQ","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector with the minimum value between this and the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HuHdw0Csct2HxS_qNzjeJ","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                            interpolate the position of this vector towards the given one while nsure that the distance never exceeds the given step.

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

                            the maximum step per iteration (Negative values will push the vector away from the target)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iLMpcLPBayAWM4kmw_IwB","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Negate the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector2d

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d6leJ-HDH1-d81oGG36AY","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Negate this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dgWWmZdC5uqCUJ_NXA74J","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            normalize this vector (scale the vector so that its magnitude is 1)

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wyK6ryOK1bT_oZ83OlIOK","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            change this vector to be perpendicular to what it was before.
                            \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GpV5nXxxtYL07aDxhCkMR","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                            project this vector on to another vector.

                            ","params":[{"identifier":"v","optional":false,"description":"

                            The vector to project onto.

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qcuWsqDH3eVplD16u3W9r","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Project this vector onto a vector of unit length.
                            \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                            The unit vector to project onto.

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rub59xTCwurIMSv9dttPP","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this vector (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t8W_Zk5F4wEaDD292QyBz","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Multiply this vector values by the given scalar

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xh9DadKvHiOfXTdrztnKQ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Multiply this vector values by the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xzVpFMJQgzKsOFDlOWoT7","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties to the given values

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aizOgolR8dXsCcrOMC4g7","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the callback to be executed when the vector is changed

                            ","params":[{"identifier":"fn","optional":false,"description":"

                            callback

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

                            scope

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hPgEUIbAjGiUBZsTEKb5L","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vector value without triggering the callback

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RTFOLTuLjM-fyWvDOL0_1","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties using the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uMnY-NvAJUWvMSwTxbjVF","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties to 0

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pf8vO3jT30zYy1H84UG-C","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Substract the passed vector to this vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector2d","kind":"canonical"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p5tFvnWzXAKh8Nw3ttpbG","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Convert this vector into 2d coordinate space

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AuVE0dXjaqNAc01BWXz73","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Convert this vector into isometric coordinate space

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6EoUhkMq8NBIBXd5F61yY","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                            convert the object to a string representation

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"B_2Z8gXqkSWUSsDcMhlVe","name":"toVector2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a me.Vector2d copy of this me.ObservableVector2d object

                            ","params":[],"returns":[{"description":"

                            new me.Vector2d

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"WIuitUFGP4FTvQTu8o0Ej","name":"ObservableVector3d","brief":"","type":"ClassDoc","description":"

                            A Vector3d object that provide notification by executing the given callback when the vector is changed.

                            ","params":[],"returns":[],"extends":["Vector3d"],"implements":[],"members":[{"id":"HA8vgbxHaX8HRCQhUUM7s","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            x value of the vector

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"koX4HhL70iqsh8x_q1HqP","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            y value of the vector

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_NdG-20Z7VQu9MxBRTWTG","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            z value of the vector

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"97Ssl8Mk6QsH9JeFoeYaR","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector values to absolute values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y6CBR1kpfKzNReX28WPTX","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add the passed vector to this vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ojc7sLNR8zXlbXVEfPalH","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle between this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EufyqCxMvCAAX4m9CUUtn","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Ceil the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector3d

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dUDPfWMuY0dGRHAO3WFzp","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Ceil this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0ltHRsbM8DAEOAJ6qrMZF","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clamp the vector value within the specified value range

                            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            new me.ObservableVector3d

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HbCtk2bRuZJCSBBwe3aP5","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Clamp this vector value within the specified value range

                            ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LTx_-tsw27_9FYs5PJgCS","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a clone copy of this vector

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector3d

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jJOd5UOk77-ao0pHYAall","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"default":"0","description":"

                            x value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","description":"

                            y value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":false,"default":"0","description":"

                            z value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            additional required parameters

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.onUpdate","description":"

                            the callback to be executed when the vector is changed

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.scope","optional":true,"description":"

                            the value to use as this when calling onUpdate

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Oh1t6nE8GAQhSjtkC5hYt","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Copy the components of the given vector into this one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vQUKlVxbOi8sx1PYE_msz","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                            calculate the cross product of this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"S65C6B-1N_kvn9PhREkYU","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance between this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZnSjbIYbkKtUnGZ89lc2h","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Divide this vector values by the passed value

                            ","params":[{"identifier":"n","optional":false,"description":"

                            the value to divide the vector by

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1z4eUjttOJ1tlAVOAK6uO","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the dot product of this vector and the passed one

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            The dot product.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rA8CqL7nxvOunD7dZPDaP","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the two vectors are the same

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VwquiAfdPnbc9VPTWsK9s","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Floor the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector3d

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mtlZWJvxzTG1gOdThbJmz","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Floor this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MOpUtTGkFgpO8cBrsJo7x","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the length (magnitude) of this vector

                            ","params":[],"returns":[{"description":"

                            the length of this vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sNT5dDCQmNSmT_NeO9pJi","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the square length of this vector

                            ","params":[],"returns":[{"description":"

                            The length^2 of this vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bgsG8BV3Z4wN-9Z3rKrzi","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Linearly interpolate between this vector and the given one.

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"alpha","optional":false,"description":"

                            distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FVLBCK_qwEruF3AahMcMc","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector with the maximum value between this and the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IYuURKePPttJ5ANj1Rfaf","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Update this vector with the minimum value between this and the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0YfaiI40WajMRh2xZBTP6","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                            interpolate the position of this vector on the x and y axis towards the given one while ensure that the distance never exc...","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}},{"identifier":"step","optional":false,"description":"

                            the maximum step per iteration (Negative values will push the vector away from the target)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pJDmZnOXzfP1g96VxKOPw","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Negate the vector values

                            ","params":[],"returns":[{"description":"

                            new me.ObservableVector3d

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eLhP5yMYlHtkbtdp1JfkB","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Negate this vector values

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HKDURmsnpiD97cTa9FgL0","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            normalize this vector (scale the vector so that its magnitude is 1)

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OHBHfrW6ZRGQ2qL9qVBv0","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            change this vector to be perpendicular to what it was before.
                            \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZduHCdamgfcY4dhoAZTm-","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                            project this vector on to another vector.

                            ","params":[{"identifier":"v","optional":false,"description":"

                            The vector to project onto.

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5OzBt_7_uk4R2O--pp3BO","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Project this vector onto a vector of unit length.
                            \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                            The unit vector to project onto.

                            ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aqPVLoo3UnjD78u0GaXS5","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this vector (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around (on the same z axis)

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zTXYuX1TQAwEdR7lWGYQ5","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Multiply this vector values by the given scalar

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HK92-zNOBc-PEWnLZRskI","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Multiply this vector values by the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i9BXp1F1ReaaH7tq95m0o","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties to the given values

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p15ATzGsU3KjJ6yqlFpru","name":"setCallback","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the callback to be executed when the vector is changed

                            ","params":[{"identifier":"fn","optional":false,"description":"

                            callback

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"scope","optional":true,"default":"null","description":"

                            scope

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"McChXuBlee_9FzFxWjcSl","name":"setMuted","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vector value without triggering the callback

                            ","params":[{"identifier":"x","optional":false,"description":"

                            x value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                            z value of the vector

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GNY4VbGbfM-iH6ecxoJUz","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties using the passed vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IV_7_l8Dnc8Xq1yCIlGb9","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Vector x and y properties to 0

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6QjAxfoytUnHOwFBd2vbM","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Substract the passed vector to this vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d | ObservableVector2d | ObservableVector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"ObservableVector3d","kind":"canonical"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"njYpObLdf6trlBCeP23Uc","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Convert this vector into 2d coordinate space

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i-2CRBraNtbXpd5zAd_Ej","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Convert this vector into isometric coordinate space

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WWMPZfNhrOY2GSoXB2bAs","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                            convert the object to a string representation

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"_2OK4pGiU0fzo4SQ-Z1P8","name":"toVector3d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a me.Vector3d copy of this me.ObservableVector3d object

                            ","params":[],"returns":[{"description":"

                            new me.Vector3d

                            ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"sse8Gpk9moyFx2xFjUSMJ","name":"Particle","brief":"","type":"ClassDoc","description":"

                            Single Particle Object.

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"jZEBuezp6JcmidhJsuulN","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9mrbOlDADM3IT3Xng05RO","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UvtcCBPVajYhSO0SpGtPL","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qi1bDg75nQ6nYXsvyfcfU","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eLgFnZOJLhxfp1XPX3QKI","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nf0zrue_GiHwTNdcXtLx2","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"54tCCLpmAsSBz7-xukrM0","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3OWMANyNsA4x29e6AgkLV","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YrLWoNCKgQ11S4zDd00Ze","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q54MSCzsNSO_N1fYigG2j","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HEvPfwX14br8MitKyYcW5","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CdScRgOrQCKexQG8HULca","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZFohSesK68pX7KdvAtZzm","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7DmyqLyC3gJfweioTrSGM","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LWnn3grnE5Lntkdf26S6m","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SVLIrMhiHpBjUtEGRQDZ7","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b8Y1vUO_5adNyfFokBSQQ","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pZMaMJrEa-2Ezf-cGC1kn","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"naWYRHbTmEgk7-JgngRwi","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"42PVpAdZjyxBGlzxUSqSB","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XjFDjWu0aHQa82hWVla84","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HyAfbxdzrcMAmxcI5120C","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZnIxun_G53qV3F4MCR3Q2","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8HeVxzay6Bidb8aqPDZKs","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qa3e47N7q-HAnGb_OaHVv","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k-f3a7abceExBOiT7JxA6","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Chaujl9MPItCPMlURstAG","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"15pkZySobE7c4xCnbl-72","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IoPsoDItIpx6Qh4pxAwXi","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nqetfM8zig8EMpUPaA-K3","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jDU2Pmq1yRG2oEqgi4LrV","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YVhzYFMc7ysja3fOSRwAE","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QFkFVwu-w3rHaO4ymFoZP","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zmeqyS08RPNMabODr7dbv","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RU2tD2VPdx-0tE3JCKAjp","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0GjAr4KENYR2d3kRes-45","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wx1OPHRp0x5lv76AHOj13","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VXlZP3m0qh6tz3JoSmMJj","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"on6BOzkw9TkXIlwtzKEvu","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SKx2G1IzUn-x51gugMLrf","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"emitter","optional":false,"description":"

                            the particle emitter

                            ","dataType":{"tokens":[{"value":"ParticleEmitter","kind":"canonical"},{"value":"ParticleEmitter","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2OEqqExA6-7YjUQOoGnII","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Li79X7jqUJC8MKuO6ocBm","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wEI_VxJyynHLpumC92qnP","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dm7ixaHfRkNQs92CVnzzP","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"meydq2y-OxyskYT5JH7f3","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ghXunEdz6tv33KcIedFTN","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SZ-MCU4VTGBlbwGny5FFX","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hjftfyDEUetRtYSqAukhI","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JZVujgr9ohoBWThsuq9qJ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cj_D6VBFZ_KZmiJXM1TVi","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"2l159WJQONW_kvdoxNkpe","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-ocHBGrb3UNUGBs21dWd2","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8p42fGoujpt-vhu67DEcJ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ajetogy_LM41RK6LoDzsd","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dmbq8rjG2YDZcLMyS9_G-","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J-eZ9vPgvVJz3fWYOpF7p","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fBnasAD307Sh-gr-v2mB9","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"dolnkdffSjynRZ4BUAfrE","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"OkzS-YRKu3_0Png5bnRpQ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"GoRXJrrv5plQXRHEXjErN","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"h5hyHUxqyo1xTEADVGgij","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_7iuGSep_4vyBOd0b4_B2","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rfu2jKGWj5L4rtr5aOYgI","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DM0DISFMYhBRe9JFhLiVZ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-NW4zV_1_mcoQepip_Etn","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"EsyEAp0yu29cEyuFlj71g","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GLUk3m-qWETayhtUiUvy7","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1fXLox15ltDspZpN_5mmJ","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"oijkwVe8Q8j3AL8drVw9g","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fHkFio9of0Jg8Sk3Uf8A1","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"roFSlowoY-F-hr03yIskr","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LeL_hcdFp19o3y4JdN0vX","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GRGncsNFlkeLb6YHatbUl","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TqL2HrMKn7yd3CowzuUZE","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iD1s0ejI4M0Bx8lfB-6lA","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"azoTzUsCbpGCPob5s4zmy","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IBkciHaBKzGl-J_5J8s9s","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"QWbaKi2Z9B29xAWP64i2_","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

                            Particle Emitter Object.

                            ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"NzzPFHFqSc4IYwte0fJIJ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vk8WTlLQHwEHOfuKmDwtA","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mwQs0IvFf7zl4lk0in-aD","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMIaaaE9lqEm0TpeaaH0Y","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yszQIUfMeUKmauf7HIopR","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children z index should automatically be managed by the parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TVmdUMqiWPavXiZ3V2Fwm","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the children list should be automatically sorted when adding a new child

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R_Ofu9DZA-vCFXacvMb1n","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"StftSJhN2DxOixq1tyCTF","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a background color for this container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JjNVuMP5vszErf3e6ULF_","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gCMy0En69gGIawKCvDdOB","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZKEhTDHR1wvb_dqmHCMIO","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ky-eHCTdoG5S0azCsvKcu","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QO6X9qH5ZwDbGPOkD6GHV","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TQVWW1SaVB9mX7rueBxse","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container draw operation should clip his children to its own bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"po7toO7nT0zhwcDVuPU2_","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lkAwlU1MVYF3jrIg4BbYM","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Jkziijw3tb7kDBwqhvyu","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jiyh1jKeCv0WlJ3ZAdKoU","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UlxtyC7iGl6p_XTXpOqnZ","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ylMsqa0XpL4TV1SR-4xa2","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T7G_yxDNKYrHsP31fOUaN","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IhIgJupsS2-xVLQIvQhHi","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YvnSal0-X2wATEJIbR_yA","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ojXpGX71SM2MzcwAHOkgI","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hFXuJHuEjCeEdCeZuh0R-","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w8gmMl4u1sa63I9awtsQh","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zBMUM8Lq64oCX9r-r7y5d","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ofWz-EYvpoXh2i6EGM_JX","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u1CKUynki2TyQdx3q5MZr","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3zYKGiKYnxXUH2WSxD74P","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K42rr9RDDEiPKaWqVi4lo","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IPDqhj8nz8gVS4gDaD5OC","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I0uztEWVxdHlOnU71wmfs","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FEk88ef2uu7V78MlwJuly","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qAv9SQgUtPnFGCc8g8LQ5","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aJrUnzdfUPdBL8XtOIP4n","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            whether the container is the root of the scene

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3Boz7mSo1P7Rr_KUht9IA","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            the current (active) emitter settings

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HTUeiuWQSDUfA0jcFWtJU","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KHzCbJv8cSnEXAWeMHqhU","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                            The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hPCYBVJlA0cCWqoG0o91g","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_p6u38kuKAd8OlGvJGqVm","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5Ih7GF-7FJdUb6vW33AfO","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sxzdwj17HBtTs2oOHDtXn","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ehEe_gZiUKrgvP4us3FUu","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fV-_FKyxRVFl3kuRaxxc6","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container
                            \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                            forces the z index of the child to the specified value

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6ZSfSEI6Ff5Dj5z85ZMAG","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a child to the container at the specified index
                            \n(the list won't be sorted after insertion)

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                            The index at which to insert the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the added child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8rlviDjz3vNHDPzmQ7dp4","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aASIF4VIzDWiS3od5_qVJ","name":"burstParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Launch all particles from emitter and stop (e.g. for explosion)

                            ","params":[{"identifier":"total","optional":true,"description":"

                            number of particles to launch

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XPEEsX1AAJu8gvEtDctHD","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fWT0jn2Gio6jaPE-_AgLm","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y05Fc1hzrDuyaBZDgZWV5","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a particle emitter at position 100, 100\n let emitter = new ParticleEmitter(100, 100, {\n width: 16,\n height : 16,\n tint: \"#f00\",\n totalParticles: 32,\n angle: 0,\n angleVariation: 6.283185307179586,\n maxLife: 5,\n speed: 3\n });\n\n // Add the emitter to the game world\n me.game.world.addChild(emitter);\n\n // Launch all particles one time and stop, like a explosion\n emitter.burstParticles();\n\n // Launch constantly the particles, like a fountain\n emitter.streamParticles();\n\n // At the end, remove emitter from the game world\n // call this in onDestroyEvent function\n me.game.world.removeChild(emitter);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            x position of the particle emitter

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            y position of the particle emitter

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":true,"default":"ParticleEmitterSettings","description":"

                            the settings for the particle emitter.

                            ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hy3ElRPaxSH2MTZzv49ff","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"oHJ6EQoGSAYqeJB1PhS2b","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ie64D6uoVUI-01f7-6wu8","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1_HHpv-4sW8uMTRcmTNit","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"onXTKhlnfAJhrq2mMfiY_","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MwtyvGfgPY_n8_C7_2tLA","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g1nAaabbskcMDsAOssAws","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                            The forEach() method executes a provided function once per child element.
                            \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                            fnction to execute on each element

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                            value to use as this(i.e reference Object) when executing callback.

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Jjm0QdGKYPOpOYCKN7bS0","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Tlw4l-1XNgQbN43y0J4kT","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w30qcbKFEP_ErKyo0aDok","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the Child at the specified index

                            ","params":[{"identifier":"index","optional":false,"description":"

                            The index of the child

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the child at the specified index

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vrv_F-gTUHgUD_FCTb46c","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the specified GUID
                            \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                            child GUID

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            corresponding child or null

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GNuTmz9_FsfhYjaSJ8v6e","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified name
                            \nas defined in Tiled (Name field of the Object Properties)
                            \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                            child name

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"LSlMdjRCu60qDa8XfL2Z5","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                            return the child corresponding to the given property and value.
                            \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                            Property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            Value of the property

                            ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                            Array of childs

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"U9z2-foSOWAr3EWN9wpsy","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the list of childs with the specified class type

                            ","params":[{"identifier":"classType","optional":false,"description":"

                            Class type

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Array of children

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"mBgnq_hbP9evrNHpk-7G7","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the index of the given Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WhIrDEHhzh4pBXZhwwmY8","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return all child in this container

                            ","params":[],"returns":[{"description":"

                            an array of renderable object

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"9_0YTqHxU02exsIQEon_v","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"jDxoPyOJbpOKvZ79dHSHd","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the next child within the container or undefined if none

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                            child

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H4lFOmHo3frlJHYjHASAX","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XhPZTLR4hy5NEPAd9KVTv","name":"getRandomPointX","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a random point on the x axis within the bounds of this emitter

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wVEhP__TKGhiYXOcNxn5Y","name":"getRandomPointY","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a random point on the y axis within the bounds this emitter

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZzepaoHZpYRhV4MYjjsu6","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the instance of the root container (i.e. the current application World container).

                            ","params":[],"returns":[{"description":"

                            root container

                            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3day1K7QHkm8eNEHZUmVG","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if contains the specified Child

                            ","params":[{"identifier":"child","optional":false,"description":"

                            The child object

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"u-e1cD1fwt3oXno6yCJwV","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Checks if this container is root or if it's attached to the root container.

                            ","params":[],"returns":[{"description":"

                            true if this container is root or if it's attached to the root container

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WmKMM6nFfQ0zOODbUL52N","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xuy7lBtEJF96S8rIKxP1l","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WFK_q2RIUz7tnQ5Qju0Ty","name":"isRunning","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Emitter is of type stream and is launching particles

                            ","params":[],"returns":[{"description":"

                            Emitter is Stream and is launching particles

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9005miY467O-jZYmX7jnN","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7zbHAkMKTri0z0HXqaw5O","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step backward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"4oH1bh1yJ1y1fiyeqxAlE","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child the bottom (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"IpG828LMHopMCEAVrrLIV","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the specified child to the top(z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"qrPyXvjCh5z4Bi6YBHHth","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Move the child in the group one step forward (z depth).

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be moved

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"M_D3M7eDSCBVjDeKPgsSN","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                            a callback to be extended, triggered after a child has been added or removed

                            ","params":[{"identifier":"index","optional":false,"description":"

                            added or removed child index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"UogAOLmSYFuXoCs6zl7va","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7qPq6Bp-V3RMT_sN7u8az","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A4GRAAWMYKS68ANW8dxFb","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"gyXr5ovYsGfkItkZj_jZD","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"UPVYzFTmqwkjHDzqZllyU","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"mPKMq7nqW0WxrwdNOmZIQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H3fAWkLjWwUh1hZ9MEwfS","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                            true to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"IB97QEhEdjOCuos3hKxs0","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Removes (and optionally destroys) a child from the container.
                            \n(removal is immediate and unconditional)
                            \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                            Child to be removed

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                            True to prevent calling child.destroy()

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"lX-CIv_ikTIbPpiJk3rqW","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Reset the emitter with particle emitter settings.

                            ","params":[{"identifier":"settings","optional":false,"description":"

                            [optional] object with emitter settings. See {@link ParticleEmitterSettings}

                            ","dataType":{"tokens":[{"value":"ParticleEmitterSettings","kind":"canonical"},{"value":"ParticleEmitterSettings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6S_a6rObaRyRIkcQcfK94","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Nw5qWrnK3XxShVCu5C_xp","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jXilzvKx7VQwuIsdo4JhS","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"59RAhqyk-5uGYQlqTjPLw","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_EBEk8VWeZnd1sduWqpTc","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Automatically set the specified property of all childs to the given value

                            ","params":[{"identifier":"prop","optional":false,"description":"

                            property name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                            property value

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively apply the value to child containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"PrG9YroLs5cmXTJrmlXKc","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"TUSMqBToQXA8aiU1nw6u5","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0hYdpnDUu3zGEZbdYy3Wh","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HCjodFqtqDzPwuB9sjtgc","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vKEWPMMcr4nPQYF1CTzJA","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Manually trigger the sort of all the childs in the container

                            ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                            recursively sort all containers if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"a-IW69XXCQsJ4vrTdFS5s","name":"stopStream","brief":"

                            Stop the emitter from generating new particles (used only if emitter is Stream)

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mw6WlN1PKarKIq18U0IAK","name":"streamParticles","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Launch particles from emitter constantly (e.g. for stream)

                            ","params":[{"identifier":"duration","optional":true,"description":"

                            time that the emitter releases particles in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"S-dPKT34eZXSvpjHGofxr","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Swaps the position (z-index) of 2 children

                            ","params":[{"identifier":"child","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                            Child to be added

                            ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"v1r4TgnENaLSKPVxuSu_m","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"krvQU0mAjyvC7Vhj6W6jN","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kHEHWXKbpTEp30UxFLSPs","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HuG2CUOq7hJ6UqLlirORu","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I7FpZabPBF9rVIFF9REjO","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CErFtrR84XEBBQdmG2znq","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m5uhXRpcp__LzcLAyFrI_","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this container.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this container bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hNkOtg2f3c1CNHZYcM3lB","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this renderable (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"38vy9FOTg1_ZNwvcvBVaT","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            container update function.
                            \nautomatically called by the application update loop {@link Application}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Container is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"WYTETC48VYSiX6uMlZI1a","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"CCdI08SoA6avLxreZTbPL","name":"Path2D","brief":"","type":"ClassDoc","description":"

                            a simplified path2d implementation, supporting only one path

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"fsi-MEldppFK-0inV7KiI","name":"arcResolution","brief":"","defaultValue":"5","scope":"instance","type":"PropertyDoc","description":"

                            space between interpolated points for quadratic and bezier curve approx. in pixels.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3SeJB1cQBxi01WRrgV1lu","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the points defining the current path

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U2nepfcFR6orlBLe5adla","name":"arc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds an arc to the current path which is centered at (x, y) position with the given radius,\nstarting at startAngle and end...","params":[{"identifier":"x","optional":false,"description":"

                            the horizontal coordinate of the arc's center.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the vertical coordinate of the arc's center.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                            the arc's radius. Must be positive.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

                            the angle at which the arc starts in radians, measured from the positive x-axis.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

                            the angle at which the arc ends in radians, measured from the positive x-axis.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

                            an optional boolean value. If true, draws the arc counter-clockwise between the start and end angles.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"-5ds-SRVs5CuOMQ77Wv8a","name":"arcTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight li...","params":[{"identifier":"x1","optional":false,"description":"

                            the x-axis coordinate of the first control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                            the y-axis coordinate of the first control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x2","optional":false,"description":"

                            the x-axis coordinate of the second control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y2","optional":false,"description":"

                            the y-axis coordinate of the second control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                            the arc's radius. Must be positive.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NtGqx4DvfpGYzEMZRdGL4","name":"beginPath","brief":"

                            begin a new path

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"emcA6RdLQt4YJXL-aUwHS","name":"bezierCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Adds a cubic Bézier curve to the path.

                            ","params":[{"identifier":"cp1X","optional":false,"description":"

                            The x-coordinate of the first control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp1Y","optional":false,"description":"

                            The y-coordinate of the first control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2X","optional":false,"description":"

                            The x-coordinate of the second control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cp2Y","optional":false,"description":"

                            The y-coordinate of the second control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                            The x-coordinate of the end point of the curve.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            The y-coordinate of the end point of the curve.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_beuo5xl2mhdIgnbTbJWD","name":"closePath","brief":"","scope":"instance","type":"MethodDoc","description":"

                            causes the point of the pen to move back to the start of the current path.\nIt tries to draw a straight line from the curre...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JqaNLXVTlzSyg4bNqufaX","name":"ellipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusX and radiusY\nstarting at sta...","params":[{"identifier":"x","optional":false,"description":"

                            the x-axis (horizontal) coordinate of the ellipse's center.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y-axis (vertical) coordinate of the ellipse's center.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusX","optional":false,"description":"

                            the ellipse's major-axis radius. Must be non-negative.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radiusY","optional":false,"description":"

                            the ellipse's minor-axis radius. Must be non-negative.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rotation","optional":false,"description":"

                            the rotation of the ellipse, expressed in radians.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startAngle","optional":false,"description":"

                            the angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endAngle","optional":false,"description":"

                            the angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"anticlockwise","optional":true,"default":"false","description":"

                            an optional boolean value which, if true, draws the ellipse counterclockwise (anticlockwise).

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"kb98jlPYxP2CTkGusjUsi","name":"lineTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            connects the last point in the current path to the (x, y) coordinates with a straight line.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x-axis coordinate of the line's end point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y-axis coordinate of the line's end point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DDLrzW8CfIcXCs34uT5s_","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            moves the starting point of the current path to the (x, y) coordinates.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x-axis (horizontal) coordinate of the point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y-axis (vertical) coordinate of the point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4jceCxQY34dGqeq9YHfIn","name":"parseSVGPath","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Parses an SVG path string and adds the points to the current path.

                            ","params":[{"identifier":"svgPath","optional":false,"description":"

                            The SVG path string to parse.

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"W2Wub6usFK2BHAyD7rgbj","name":"quadraticCurveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Adds a quadratic Bézier curve to the path.

                            ","params":[{"identifier":"cpX","optional":false,"description":"

                            The x-coordinate of the control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"cpY","optional":false,"description":"

                            The y-coordinate of the control point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                            The x-coordinate of the end point of the curve.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            The y-coordinate of the end point of the curve.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZMqi7oi3oJubtpVwVthC6","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            creates a path for a rectangle at position (x, y) with a size that is determined by width and height.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x-axis coordinate of the rectangle's starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y-axis coordinate of the rectangle's starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            the rectangle's width. Positive values are to the right, and negative to the left.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            the rectangle's height. Positive values are down, and negative are up.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Jto73Hxpcgug5gWjyI2Av","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                            adds an rounded rectangle to the current path.

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x-axis coordinate of the rectangle's starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y-axis coordinate of the rectangle's starting point.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            the rectangle's width. Positive values are to the right, and negative to the left.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            the rectangle's height. Positive values are down, and negative are up.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                            the arc's radius to draw the borders. Must be positive.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rBDXPlFzBnDiUsMXtbsw4","name":"triangulatePath","brief":"","scope":"instance","type":"MethodDoc","description":"

                            triangulate the shape defined by this path into an array of triangles

                            ","params":[],"returns":[{"description":"

                            an array of vertices representing the triangulated path or shape

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]}]},{"id":"MnSJjOwio0D4gYS0F2Sff","name":"Point","brief":"","type":"ClassDoc","description":"

                            represents a point in a 2d space

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"u8RcpoXOrUDBCPqLjywdZ","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vAKIMevcG-7fjNP0fZZiI","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            the position of the point on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DbEDx1mI1QxR0IezcwZEW","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            the position of the point on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wlZn6lhN0RC_M0OPyL37m","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this Point

                            ","params":[],"returns":[{"description":"

                            new Point

                            ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WOrNwOR111uik6q2hwkRN","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if this point is equal to the given point

                            ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Point | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Point","kind":"link"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"uJckGJOIVKLBV0QdIQZZx","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the Point x and y properties to the given values

                            ","params":[{"identifier":"x","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Point","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"WH9MhKord_MzJyHL4nyyZ","name":"Pointer","brief":"","type":"ClassDoc","description":"

                            a pointer object, representing a single finger on a touch enabled device.

                            ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"j0Myi8XTwO-dBZsR7UV9m","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PKMlazcTW81TYYsVOiD1I","name":"button","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button"],"type":"PropertyDoc","description":"

                            the button property indicates which button was pressed on the mouse to trigger the event.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ekUXxoia-AA3nNFYAYcvL","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            return the center position of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mWOFa5xD1KPouJTdSauHx","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            center position of the bound on the x axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JM2UWIIVQTFgZyoCeM7nV","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            center position of the bound on the y axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQOFzYHBD6TjgGVRXAYgY","name":"clientX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX"],"type":"PropertyDoc","description":"

                            the horizontal coordinate within the application's client area at which the event occurred

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wG0KQ-_Me-AIl1AwR1p4E","name":"clientY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY"],"type":"PropertyDoc","description":"

                            the vertical coordinate within the application's client area at which the event occurred

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wzhEDEufgvWkErHEWDp7b","name":"deltaMode","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode"],"type":"PropertyDoc","description":"

                            an unsigned long representing the unit of the delta values scroll amount

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"14yRdUkaE2Ex52dLQtvEX","name":"deltaX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX"],"type":"PropertyDoc","description":"

                            a double representing the horizontal scroll amount in the Wheel Event deltaMode unit.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a2QaMjz8QBrOcvQ-OBdcl","name":"deltaY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY"],"type":"PropertyDoc","description":"

                            a double representing the vertical scroll amount in the Wheel Event deltaMode unit.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l_7hSe5m29TFILalvelSi","name":"deltaZ","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ"],"type":"PropertyDoc","description":"

                            a double representing the scroll amount in the z-axis, in the Wheel Event deltaMode unit.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5f9QdJcAVRg0yFx72O30v","name":"event","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent","https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent","https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent"],"type":"PropertyDoc","description":"

                            the originating Event Object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pqR0FgxGkZhzkIZnW2Ecj","name":"gameLocalX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event X coordinate relative to the holding container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dSdnqipkhK0-FVvzPnH3y","name":"gameLocalY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event Y coordinate relative to the holding container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9yxZTpLDen_BF_vHTS56_","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event X coordinate relative to the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u6uFy0EUQYW8JouwR5Kx7","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event Y coordinate relative to the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GrSHpInzyQro-ZMjO0lgd","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event X coordinate relative to the map

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b4fFsipqiCcUbF46WxUV0","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event Y coordinate relative to the map

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mGyFDxSKM_Jwy0HMEb8CX","name":"gameX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event normalized X coordinate within the game canvas itself
                            \n

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vY1z_0TfxyKgaEXfCFdKh","name":"gameY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            Event normalized Y coordinate within the game canvas itself
                            \n

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CdTLFZpAzjnbaKZx8YbTD","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V9Vx249Vwpq1HRfnwy4y2","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if not originally a pointer event

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U5aHKR_3tmiEslaDg8gKF","name":"isPrimary","brief":"","access":"public","defaultValue":"false","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary"],"type":"PropertyDoc","description":"

                            indicates whether or not the pointer device that created the event is the primary pointer.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9yitGEyRdtuyk3YcwRCN8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7fwdkV9FYBQk2YE1M9I8s","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            constant for left button

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pvFjXiaeq_sYtmxEtHmjg","name":"locked","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if the pointer is currently locked

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-oZ9poLHjdzL658Jsbn0p","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                            constant for middle button

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dSzjFTUZmOUFjGEy4T3fS","name":"movementX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX"],"type":"PropertyDoc","description":"

                            the difference in the X coordinate of the pointer since the previous move event

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wF4s6cpbzpO1fq0Kcg7eZ","name":"movementY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY"],"type":"PropertyDoc","description":"

                            the difference in the Y coordinate of the pointer since the previous move event

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RpAnw4n8f1Ngf396lJYSh","name":"pageX","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX"],"type":"PropertyDoc","description":"

                            the horizontal coordinate at which the event occurred, relative to the left edge of the entire document.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xPnY4ZMFh8nO-gAMW7U59","name":"pageY","brief":"","access":"public","defaultValue":"0","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY"],"type":"PropertyDoc","description":"

                            the vertical coordinate at which the event occurred, relative to the left edge of the entire document.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UA6_tl9cJOn09tC1-REpI","name":"pointerId","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId"],"type":"PropertyDoc","description":"

                            The unique identifier of the contact for a touch, mouse or pen

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-N7l6gGUCFLhADE7ksJRL","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FNHO3rtdbePCno2i5c2vo","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

                            constant for right button

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tCx6CYdc26qt-5czE0Ao4","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tKjoLf2Ece3HYnroDbSWW","name":"type","brief":"","access":"public","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/Event/type"],"type":"PropertyDoc","description":"

                            a string containing the event's type.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"77vAOUdtJE1GnTxWCdO5p","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1Vi4Buxs3uo0OkH1GM7ZK","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            x position of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zozh7R0W48FZkjRwMMl53","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            y position of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cPnOOkfLrU667pcURflNg","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given vertices to the bounds definition.

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            an array of Vector2d or Point

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                            either to reset the bounds before adding the new vertices

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"CE_EyBPrFFrD54Q6NUISH","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given bounds to the bounds definition.

                            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                            either to reset the bounds before adding the new vertices

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"DUVosB0jwHC6YnnAvFwNO","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given quad coordinates to this bound definition, multiplied by the given matrix

                            ","params":[{"identifier":"x0","optional":false,"description":"

                            left X coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                            top Y coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                            right X coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                            bottom y coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                            an optional transform to apply to the given frame coordinates

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1BrikhR2icfd7N5N4jE3w","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given point to the bounds definition.

                            ","params":[{"identifier":"point","optional":false,"description":"

                            the vector or point to be added to the bounds

                            ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                            an optional transform to apply to the given point (if the given point is a Vector2d)

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FbAAOq6v-3NXp6Lv9CAHB","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the bounds position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this bounds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this bounds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"toG-S038-63BSKx31uTh4","name":"clear","brief":"

                            reset the bound

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cL9fJb0sSu-M_1BLdgzyG","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this bounds

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ixd9YOr7IR3U9DphovIGF","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the bounds contains the given point.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to check

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the bounds contain the point, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rG4AL3jVEg5b561Z0DFrS","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this bounds are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"02nck1qYzAEi1Ej4lQPbE","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the two bounds intersect.

                            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            True if the bounds overlap, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AVgVdh9Izp4TgRYJ1MMwv","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                            sets the bounds to the given min and max value

                            ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"w0Q4OrSQz2LdeYMRXijhl","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the bounds to the given x, y position.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xY6tEh_rK9n74LaN0OFfI","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this bounds.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this bounds.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1n4NaUNnOTla2jAW14gud","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Translates the bounds by the given point

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"cMwvbxIDYZaZ7jHdeuCP_","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Updates bounds using the given vertices

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            an array of Vector2d or Point

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"Dcmq6kNDyafjNIfbRURJz","name":"set","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            initialize the Pointer object using the given Event Object

                            ","params":[{"identifier":"event","optional":false,"description":"

                            the original Event object

                            ","dataType":{"tokens":[{"value":"Event","kind":"canonical"},{"value":"Event","kind":"canonical"}],"template":"%1"}},{"identifier":"pageX","optional":true,"default":"0","description":"

                            the horizontal coordinate at which the event occurred, relative to the left edge of the entire document

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pageY","optional":true,"default":"0","description":"

                            the vertical coordinate at which the event occurred, relative to the left edge of the entire document

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientX","optional":true,"default":"0","description":"

                            the horizontal coordinate within the application's client area at which the event occurred

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"clientY","optional":true,"default":"0","description":"

                            the vertical coordinate within the application's client area at which the event occurred

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pointerId","optional":true,"default":"1","description":"

                            the Pointer, Touch or Mouse event Id (1)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DgzpZKMatrYb64wgQGGR0","name":"Polygon","brief":"","type":"ClassDoc","description":"

                            a polygon Object.
                            \nPlease do note that melonJS implements a simple Axis-Aligned Boxes collision algorithm, which requir...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"CS2aLXYAwfzUmFJdB0o7T","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bMInOjOuW7w6mk9mS73Z6","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            origin point of the Polygon

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m02BXTXVGSizI-E2WqULd","name":"type","brief":"","defaultValue":"\"Polygon\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r8wsQOPujZ2RgFzr1ZajT","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this Polygon

                            ","params":[],"returns":[{"description":"

                            new Polygon

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wSODW0nqe0s5XTQMi0mC-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                            origin point of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                            origin point of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                            array of vector defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[],"extends":[],"implements":[]},{"id":"1l7kifc3Sim9r1rf5z_oq","name":"contains","brief":"","examples":[{"caption":"","code":"if (polygon.contains(10, 10)) {\n // do something\n}\n// or\nif (polygon.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the polygon contains the given point.
                            \n(Note: it is highly recommended to first do a hit test on the c...","params":[{"identifier":"x","optional":false,"variadic":true,"description":"

                            x coordinate or a vector point to check

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the polygon contain the point, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"VYuqPHIiCVqU8pVt-EXR8","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jwCq1iHNLVg4HzcXF3te_","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-Y6RoUByXuWeP_dnpqk5c","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"J49i_zTsLv1HrSBW7O5YT","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SM4wMukeOK2LdAvW9f25O","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GWDk93WjHC2dG8EwRYziN","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given scalar.

                            ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QCsAbMq33t2lyIIB4pthT","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IZ5-c_F8l1-TIhnzjn0Hj","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the Polygon

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Polygon

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"points","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2> | %3<%4>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QvDtDTlmwor4IfuPG91e_","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c_8vjnIVUGeDocxTT83FF","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Zvus2A4coYHbzhrldIXi_","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sA7ZT-M3olmetc3G8YB4B","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3tt1Z6Z7Xk_fcEbQLELMl","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the given transformation matrix to this Polygon

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mJtOnJqDe58Dle7MzNnC-","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w1XjKDe-yYw_5TgZLJ2X7","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"MhpA2eVSvvcbf8VCm6eyP","name":"PrimitiveCompositor","type":"ClassDoc","description":"

                            A WebGL Compositor object. This class handles all of the WebGL state
                            \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"rNT4tx6zSXjfxaU5rM8ib","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            an array of vertex attribute properties

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"34RmXQoJ6LHqFrixJ55PD","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the shader currently used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"up44LCm3FnyGST8OgkeDy","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the default shader created by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NhE7XdNBxQYgK6HmFqyX9","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cmlRaIkcbhSq1E0lRexbX","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NYxHv9I6y4MdtUDpGmCJY","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            the vertex data buffer used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vLgRd7SEyuAgrLa2N_Oug","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HHjpJoX2N2u6f_uoVHtzX","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add vertex attribute property definition to the compositor

                            ","params":[{"identifier":"name","optional":false,"description":"

                            name of the attribute in the vertex shader

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                            number of components per vertex attribute. Must be 1, 2, 3, or 4.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                            data type of each component in the array

                            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                            whether integer data values should be normalized into a certain range when being cast to a float

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                            offset in bytes of the first component in the vertex attribute array

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RPNlAgpDEsMK3LfOPPjB6","name":"bind","brief":"

                            called by the WebGL renderer when a compositor become the current one

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t1JjWHSgcONx8HutrHYWg","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"VDMVdUonGJriqUD8_PDAj","name":"drawVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Draw an array of vertices

                            ","params":[{"identifier":"mode","optional":false,"description":"

                            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"verts","optional":false,"description":"

                            an array of vertices

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2>"}},{"identifier":"vertexCount","optional":true,"default":"verts.length","description":"

                            amount of points defined in the points array

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"INO-LFLlAe_E3zb1FMX9s","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Flush batched vertex data to the GPU

                            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                            the GL drawing mode

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"4RzI9-Ox0I0Duj7sj-ybO","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix

                            ","params":[{"identifier":"matrix","optional":false,"description":"

                            the new projection matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_1-D3EZHusTahIUKYbQ1e","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                            Select the shader to use for compositing

                            ","params":[{"identifier":"shader","optional":false,"description":"

                            a reference to a GLShader instance

                            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"m1uCuNfxj-Z3KJSRf0uB-","name":"QuadCompositor","type":"ClassDoc","description":"

                            A WebGL Compositor object. This class handles all of the WebGL state
                            \nPushes texture regions or shape geometry into Web...","params":[],"returns":[],"extends":["Compositor"],"implements":[],"members":[{"id":"75BPaIVEi5jVAIstSl6D1","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            an array of vertex attribute properties

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8jf_fjLjGCvUOqAp15_Mo","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the shader currently used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"shl5j5mjdtH87KXnqdl3h","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the default shader created by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DJcEE-S7OE5VN8z-HwSUC","name":"mode","brief":"","defaultValue":"gl.TRIANGLES","scope":"instance","type":"PropertyDoc","description":"

                            primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGL...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D1qCyITixEy76ql1G_8ze","name":"vertexByteSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in bytes\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G1oQlsdXSfy6V_kVCRqT9","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            the vertex data buffer used by this compositor

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u-qzJkq4DWibByZP8v_bU","name":"vertexSize","brief":"","defaultValue":"0","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                            the size of a single vertex in floats\n(will automatically be calculated as attributes definitions are added)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ewjJRxx5gjrwvtJpdQhk","name":"addAttribute","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add vertex attribute property definition to the compositor

                            ","params":[{"identifier":"name","optional":false,"description":"

                            name of the attribute in the vertex shader

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":false,"description":"

                            number of components per vertex attribute. Must be 1, 2, 3, or 4.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"type","optional":false,"description":"

                            data type of each component in the array

                            ","dataType":{"tokens":[{"value":"GLenum","kind":"canonical"},{"value":"GLenum","kind":"canonical"}],"template":"%1"}},{"identifier":"normalized","optional":false,"description":"

                            whether integer data values should be normalized into a certain range when being cast to a float

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"offset","optional":false,"description":"

                            offset in bytes of the first component in the vertex attribute array

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QtjqVKUnaEYH4BLCs4OS8","name":"addQuad","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Add a textured quad

                            ","params":[{"identifier":"texture","optional":false,"description":"

                            Source texture atlas

                            ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                            Destination x-coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            Destination y-coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            Destination width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            Destination height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u0","optional":false,"description":"

                            Texture UV (u0) value.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v0","optional":false,"description":"

                            Texture UV (v0) value.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"u1","optional":false,"description":"

                            Texture UV (u1) value.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v1","optional":false,"description":"

                            Texture UV (v1) value.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tint","optional":false,"description":"

                            tint color to be applied to the texture in UINT32 (argb) format

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"reupload","optional":false,"default":"false","description":"

                            Force the texture to be reuploaded even if already bound

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"yNNGDv36SFJNf1EAnXIVT","name":"bind","brief":"

                            called by the WebGL renderer when a compositor become the current one

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_jy6_ZY369-Wd3Ylh1pkH","name":"bindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                            assign the given WebGL texture to the current batch

                            ","params":[{"identifier":"texture","optional":false,"description":"

                            a WebGL texture

                            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":false,"description":"

                            Texture unit to which the given texture is bound

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ts9kZm-f_iy1o-yomekPV","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"Ck6eM7Qa5bbGdFPgufV1C","name":"createTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Create a WebGL texture from an image

                            ","params":[{"identifier":"unit","optional":false,"description":"

                            Destination texture unit

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pixels","optional":true,"default":"null","description":"

                            Source image

                            ","dataType":{"tokens":[{"value":"Image | HTMLCanvasElement | ImageData | Array | Array","kind":"canonical"},{"value":"Image","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageData","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Uint8Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1 | %2 | %3 | %4<%5> | %6<%7>"}},{"identifier":"filter","optional":false,"description":"

                            gl.LINEAR or gl.NEAREST

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"repeat","optional":true,"default":"\"no-repeat\"","description":"

                            Image repeat behavior (see {@link ImageLayer#repeat})

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"w","optional":true,"default":"pixels.width","description":"

                            Source image width (Only use with UInt8Array[] or Float32Array[] source image)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":true,"default":"pixels.height","description":"

                            Source image height (Only use with UInt8Array[] or Float32Array[] source image)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"premultipliedAlpha","optional":true,"default":"true","description":"

                            Multiplies the alpha channel into the other color channels

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"mipmap","optional":true,"default":"true","description":"

                            Whether mipmap levels should be generated for this texture

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            a WebGL texture

                            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AvvPM6EipyRMWDdHhf3Wp","name":"deleteTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                            delete the given WebGL texture

                            ","params":[{"identifier":"texture","optional":true,"description":"

                            a WebGL texture to delete

                            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nahx61uj3icNaPepjEGsf","name":"flush","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Flush batched vertex data to the GPU

                            ","params":[{"identifier":"mode","optional":true,"default":"gl.TRIANGLES","description":"

                            the GL drawing mode

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"AO41RoXJBeD6Zsyj8PJ6G","name":"getTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the WebGL texture associated to the given texture unit

                            ","params":[{"identifier":"unit","optional":false,"description":"

                            Texture unit to which a texture is bound

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            texture a WebGL texture

                            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YXa7DP4yZqGpCumTATexl","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix

                            ","params":[{"identifier":"matrix","optional":false,"description":"

                            the new projection matrix

                            ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LxkmnJyedYS65tpEN5BJG","name":"unbindTexture2D","brief":"","scope":"instance","type":"MethodDoc","description":"

                            unbind the given WebGL texture, forcing it to be reuploaded

                            ","params":[{"identifier":"texture","optional":true,"description":"

                            a WebGL texture

                            ","dataType":{"tokens":[{"value":"WebGLTexture","kind":"canonical"},{"value":"WebGLTexture","kind":"canonical"}],"template":"%1"}},{"identifier":"unit","optional":true,"description":"

                            a WebGL texture

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            unit the unit number that was associated with the given texture

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DwP1Dn4UqLvDhjG20rVwO","name":"useShader","brief":"","scope":"instance","see":["GLShader"],"type":"MethodDoc","description":"

                            Select the shader to use for compositing

                            ","params":[{"identifier":"shader","optional":false,"description":"

                            a reference to a GLShader instance

                            ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"Et-IpH8J4V5dM4CY0SMLI","name":"QuadTree","brief":"","see":["game.world.broadphase"],"type":"ClassDoc","description":"

                            a QuadTree implementation in JavaScript, a 2d spatial subdivision algorithm.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xT6TOkA4WETyccbIH-Zr9","name":"clear","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clear the quadtree

                            ","params":[{"identifier":"bounds","optional":true,"default":"this.bounds","description":"

                            the bounds to be cleared

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"v4SzR_Qp8E8_YDEw2FvG6","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"world","optional":false,"description":"

                            the physic world this QuadTree belongs to

                            ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}},{"identifier":"bounds","optional":false,"description":"

                            bounds of the node

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"max_objects","optional":true,"default":"4","description":"

                            max objects a node can hold before splitting into 4 subnodes

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"max_levels","optional":true,"default":"4","description":"

                            total max levels inside root Quadtree

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"level","optional":true,"default":"0","description":"

                            deepth level, required for subnodes

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sAKr_Lu8ZwR1BTtMULpmg","name":"hasChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the node has any children

                            ","params":[],"returns":[{"description":"

                            true if the node has any children

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ZyTm8c-8gogNCvtFx6cGY","name":"insert","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Insert the given object into the node. If the node\nexceeds the capacity, it will split and add all\nobjects to their corres...","params":[{"identifier":"item","optional":false,"description":"

                            object to be added

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"hdgvCPMhfbsQ4VSxk3_u6","name":"insertContainer","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Insert the given object container into the node.

                            ","params":[{"identifier":"container","optional":false,"description":"

                            group of objects to be added

                            ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"88dps2VR8qZYufFIvWhPi","name":"isPrunable","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return true if the node is prunable

                            ","params":[],"returns":[{"description":"

                            true if the node is prunable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"LJb5JuFoHWGhk7sc_jjzo","name":"remove","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Remove the given item from the quadtree.\n(this function won't recalculate the impacted node)

                            ","params":[{"identifier":"item","optional":false,"description":"

                            object to be removed

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            true if the item was found and removed.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yrvrhYbbVMGJzJgJr8daj","name":"retrieve","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Return all objects that could collide with the given object

                            ","params":[{"identifier":"item","optional":false,"description":"

                            object to be checked against

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"fn","optional":true,"description":"

                            a sorting function for the returned array

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            array with all detected objects

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"3V28lfzPGSA-lDxHkrEs9","name":"Rect","brief":"","type":"ClassDoc","description":"

                            a rectangle Object

                            ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"EtDzONxs8MLcwhvvFcbQ3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JBfAfPO0sBJGuOw8TXOrX","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nOFeoYbHVi33AuiesESE5","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9wCHxLbErT68BIqyBWu7a","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QntttUYXEl3mGGYSMs9TR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nBtDSjbFijwLp-IZpZCmK","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wJEqMefHKRST51gfzarGz","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            origin point of the Polygon

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n7WbSjMCJ87FmXmAHWy4j","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ofywjq_0IbmrxekD5Bduw","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DpijU81RfaSt1f-XVHSkI","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TZ-qAXC3X0fsfYewUr2n4","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JvwbOURQyygpfce1ZtHGD","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BYmsnhNfRv22YmjyrIaJD","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QX0IQSQ7oc_3pMfzkg5Me","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LYf7zEX0TOvpE5SB0TaaV","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"4jG6_hCpUJVVkhA45ahqT","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"f17mTix_LLp5GiEQCx9sE","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zwhyN29t0aHPhgHpl9uDs","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0bl7nw7tq03Axm_N6PyIu","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-4Db5PRyKvANpVGQ1W--j","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zbsflfRNtjDhAn9B4Rjeh","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"t7tIK5dQDufUQB3pDEOqx","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UHqqC_-i1i7TAYgLHENyJ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zlc6KYAVyhory6QiBaU18","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lHvhmAfMNAVIjTu_HIdKB","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wP47lrOLI390uDeRRTzCy","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the rectangle

                            ","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i-k-qkaSyuFJrMGAOz2ch","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bZrzenne6BUQ64OK_N069","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7wBRVsnl7wuWt5YgoNOMW","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uLbYJIq4yym5-WaTIyOFz","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wuXie2SVzXl2fC6RhIpo3","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uBrGLRG4s46PMXYv4KHBv","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E_-u0gqTjPZ_pVHK_gSYd","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3AHWlNmAoFaOEnd2L159C","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the given transformation matrix to this Polygon

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"guJgNWxbfEUiOKL6inX3P","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"968_NpYFmKhIwYNnf_0De","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NN6RTdHajvbTMR7h4pWKJ","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"De0fT_WHf1v_S9dyfnJB0","name":"Renderable","brief":"","type":"ClassDoc","description":"

                            A base class for renderable objects.

                            ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"AczKrkSCp2hn94mYTYATq","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IhOkiZSK4kkO3UgmgRewi","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yWEBH_37b5ALTQTSuCZbE","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"totmIl0cDRqH_D4pATkn0","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"86nRsk_p2Q6Qkb2bJLTze","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dxBHr3CPgm5uOZFtD-fYi","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GGwXEuTMIaxue43ZATusq","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E8HjUdGQTFz64vhb1d0tH","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FNL25q6KE9dhwUzPSs4y0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mskb-onTjxlfB6e4PziQC","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_kKjj5Xi1wjKJUBgyMgv9","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vX-QLGT3jd0nzE9dkXLJ_","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FSa4yBbGOYoRp5xg76V3h","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jgyPgT6fiRvwbdLivl0qU","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D0Mmcy143GwDjMrHSBfjN","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q6T-7lK7yYAS-2yl6jT1x","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ol2Rwy4bp93irFtkeG7p3","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mrck-vge9QK0m6IH063kq","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nvuo0DIP4XnrcITaQ9jEA","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D1TvR26eNsLQA598dgsU8","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fjUjIv7AIWLQemEwBATSW","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YQ-fNvOEiCWNL1fSTq1xr","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SoROTIFDb4blSmOSdVrT3","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_mgIEiF1QiVTcVKilQ2J","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TC7NRTdRyC7-eHtjHapqM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xS5sontMxSWKyn2rhc5me","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GbPTU8EOneIdpTzns40o6","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uHl0GooktFhzXSETfnMoo","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JAUjUEpXytfithkbKNLLG","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ROj7WazQFx-54m1jlB3t","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gcby_hL2y2n5XJz98yX_V","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ebkn3hbQ6LBohOGAE-Ro0","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_ghbmHuu7kSGqgKGiZETs","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"az1TEKq0Yapkh70VSBXP7","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UdPU_PlviUhVlblhBomyH","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o2BCRiRoO8A0P035IGIGJ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YKmwkVYqWeD8Rgzh7bP-7","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Zr2oh0LhA9a0jo2OgbC2A","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"q3K4iivLdMR6PBfsd-QTG","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5EjVBNH6tg6_c9rwduAXO","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            position of the renderable object (accessible through inherited pos.x property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the renderable object (accessible through inherited pos.y property)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            object width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            object height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Wa4DZPKzvfg4fyFqdoHUh","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"AKROQkTNSnp1fhHx3Kh4S","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GrTFi1eldW5sDFkGNeeic","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wPICCHh6m0BzyJeyAmYds","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"K1NEmzFzHjZLjPYvM4ec7","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Lyw-qgqx5cCJik4CH-Zjb","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"L4UOYbVHo6L_esVVBG5uQ","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SlJ4p3nbGvr46xNGU4Tco","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nBYNmZ3Leu8hR7AMvKmh9","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1wnMy_H-tdB0_IFa7Fv0r","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"zaN-mWw3uOCJHZGcXWSKY","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SvWpi3BeChIpk1NKsVSvW","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yM3C4jYnoRE--7vnJkpQY","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nN7H2TpdBal03xGFZdJkz","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sk-t5FYQt81AG0zk39CJV","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6VQYIVoiZnhco9rpbQfnT","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xbAldr8kR26cOaRYlIxua","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"nxSo2mWScqN8TjIRFMQUK","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"0Jq6hyBp7CQc1smmS-lHm","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"XwqJNAt8sUrfVn1i2DkNU","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6rucE7lm5D0NwtZciekYt","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fsij9ZmGdLBvAHgw-LmNt","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zLItLxRxptxlSue06h8IN","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zOt2UWE6qTNYv4NGXYMhX","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZdixSWVVSlzbng0xEGUpf","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tXJ0HqEBfiC8pfJTJk30i","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j8Gk6BSOZK8pQTKMKhduO","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a3TF9NHQSAACJqMMcvLE-","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"65vxmqQlWJvFqcFYw8mM7","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bSjgJ3K8HORltiuWZR24B","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jh3XVlkxkDk6Z1U-utvIA","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J1kQzTfc-MVPK7_-4YG9D","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_Ak7K1GV7Ou4anepXFeB4","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4ruRPGTyKQMyaSS6CYLXI","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AGxiui7L6aFieN9lK4aAe","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"txLiDsIZuAp2d3jt1ZrMf","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CNqeOHlinHjo4dnJ7nfEm","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"yg0J7Z3z9eFT18C9t3eky","name":"Renderer","brief":"","type":"ClassDoc","description":"

                            a base renderer object

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"UfCHIuNqzpmwNwnk0nzmZ","name":"getHeight","brief":"","access":"public","deprecated":"since 15.12.0","see":["height"],"type":"ClassDoc","description":"

                            return the height of the system Canvas

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"X4pIxyIoaDMJZdIvaboQj","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"yAKryoq-q7YLwV8PUdCXp","name":"getWidth","brief":"","access":"public","deprecated":"since 15.12.0","see":["width"],"type":"ClassDoc","description":"

                            return the width of the system Canvas

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"crWuklVCApxvQoOaQCQId","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"VPUDU24ZRKsdBLaR5kxmy","name":"Texture","brief":"","access":"public","deprecated":"since 10.4.0","see":["TextureAtlas"],"type":"ClassDoc","description":"

                            Alias of {@link TextureAtlas}

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"DL67XzDiX5w20E9Falcon","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"Rx-CENHjafhX09MXknIRw","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                            the default method to sort object ("sorting", "z-buffer")

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5OrfP7gLGoIP087rsHNNY","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            the requested video size ratio

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rvfiDgOlp46--wnspceDb","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            return the height of the canvas which this renderer draws to

                            ","params":[],"returns":[{"description":"

                            height of the system Canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OHIeqAWPF-zSEu1DH9FWf","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            true if the current rendering context is valid

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P9lJBwPNJFAiQlfTpemac","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            The Path2D instance used by the renderer to draw primitives

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TLOS8qO5O6dyYlQaS_7d4","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                            the scaling ratio to be applied to the main canvas

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gg72HGRA0aBjvLzGGV4ut","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The given constructor options

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_lI_v6ZR0RyzXoknfaNub","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                            The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8n_va2S2UrGXnafAKreBZ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            return the width of the canvas which this renderer draws to

                            ","params":[],"returns":[{"description":"

                            width of the system Canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QYQPFAopJYHkwlYhI6D3A","name":"clear","brief":"

                            prepare the framebuffer for drawing a new frame

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9w0QX8h8bmC5P3F4uqyV3","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

                            disable (remove) the rendering mask set through setMask.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qzAataY0d10hJFjigQmm_","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                            clear the rendering tint set through setTint.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9lRHwCoBDa3nZLuASKJOP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                            optional parameters for the renderer

                            ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"s2E9d6JBrLC2NrOO5NKOL","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                            fill the given shape

                            ","params":[{"identifier":"shape","optional":false,"description":"

                            a shape object to fill

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"eJc2917qd9grixIjxuR4H","name":"flush","brief":"

                            render the main framebuffer on screen

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jNHr-Wbej9F2ra3QTs6Br","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the current blend mode for this renderer

                            ","params":[],"returns":[{"description":"

                            blend mode

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"-wZqqG-UWHAHu2F5h2yps","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a reference to the canvas which this renderer draws to

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wm2jfbovK1VAW6LveFbwr","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the current fill & stroke style color.

                            ","params":[],"returns":[{"description":"

                            current global color

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jqb3LqnPClbXUq4-AOtwB","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return a reference to this renderer canvas corresponding Context

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D | WebGLRenderingContext","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"El8PLLFvUkryJ7bOTFzis","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the 2D Context object of the given Canvas
                            \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

                            use false to disable transparency

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XarZcz40Tl7rY2jDJuvRI","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                            return a reference to the screen canvas

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BD8HbLQVBS4Z-CHXhNPq8","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                            return a reference to the screen canvas corresponding 2d Context
                            \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bVjylEgn4Iy4nkrpMpNFW","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current global alpha

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cXV4gEjcUdqoY9R4T4Rto","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if the given rect or bounds overlaps with the renderer screen coordinates

                            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ns8f9DErqWFsLXE2vmcn1","name":"reset","brief":"

                            Reset context state

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2wMSsJYP4aGOHB1iKK0vy","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resizes the system canvas

                            ","params":[{"identifier":"width","optional":false,"description":"

                            new width of the canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            new height of the canvas

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pGx70UeY-7shcutdreHFU","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                            enable/disable image smoothing (scaling interpolation) for the given context

                            ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z-T3x3pEUasMILb4QJkGT","name":"setMask","brief":"","scope":"instance","type":"MethodDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[{"identifier":"mask","optional":true,"description":"

                            the shape defining the mask to be applied

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                            either the given shape should define what is visible (default) or the opposite

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"TUQW4J5O55PTlNMsJR_EF","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set/change the current projection matrix (WebGL only)

                            ","params":[{"identifier":"matrix","optional":false,"dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"c_YxkjC5RcuTIFAx9stZe","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set a coloring tint for sprite based renderables

                            ","params":[{"identifier":"tint","optional":false,"description":"

                            the tint color

                            ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                            an alpha value to be applied to the tint

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G1k8DUktlTJ5rEpB2tU2O","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                            stroke the given shape

                            ","params":[{"identifier":"shape","optional":false,"description":"

                            a shape object to stroke

                            ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                            fill the shape with the current color if true

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"80Pg9NiUbg4ZIfPngMNwS","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            tint the given image or canvas using the given color

                            ","params":[{"identifier":"src","optional":false,"description":"

                            the source image to be tinted

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                            the color that will be used to tint the image

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                            the composition mode used to tint the image

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            a new canvas element representing the tinted image

                            ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"9IvQ-4Km3wdGzLuVpQGtV","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates a Blob object representing the last rendered frame

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a Blob object representing the last rendered frame

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0HQ-yr3YSMI3iUI39iTEO","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                            returns a data URL containing a representation of the last frame rendered

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning a string containing the requested data URL.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yWDSZM2rZ412bSh7y5GQR","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                            creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                            ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                            A string indicating the image format

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                            A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            A Promise returning an ImageBitmap.

                            ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"yUOLxl-0M_wlIO3LKWX7f","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

                            An object representing the result of an intersection.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Q8-MbKj7ussL13M7maAfy","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The first object participating in the intersection

                            "},{"id":"EY82KMBA_A5lbuNbril8U","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Whether the first object is entirely inside the second

                            "},{"id":"v2NjLwnUvgfQU8MuaYxc-","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The second object participating in the intersection

                            "},{"id":"sN1S60V7rhgwuereavE_A","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Whether the second object is entirely inside the first

                            "},{"id":"Ofp3kKjPs5a9X16NwgaVt","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The index of the colliding shape for the object a body

                            "},{"id":"bH9yg4aCDpT0pLcuQp7Zb","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The index of the colliding shape for the object b body

                            "},{"id":"NSSGKiKVdTCpy6krnNd0k","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Magnitude of the overlap on the shortest colliding axis

                            "},{"id":"HFKXISKiUK8sIx5U7fCMn","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The shortest colliding axis (unit-vector)

                            "},{"id":"xegI6MnmVeZLjzdDuwjMT","name":"overlapV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The overlap vector (i.e. overlapN.scale(overlap, overlap)). If this vector is subtracted from the position of..."},{"id":"V97vz8cKnExtAbXrZtGrz","name":"clear","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                            Set some values of the response back to their defaults.
                            \nCall this between tests if you are going to reuse a single this object for chaining

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]}]},{"id":"8LXt8zMJxVb-FCE7mcWq7","name":"RoundRect","brief":"","type":"ClassDoc","description":"

                            a rectangle object with rounded corners

                            ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"kCRYBSyAPFx4oBZ5TMbQ_","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X2G-z2ipKKhZlpUev3Kkl","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wmq8nO4i0BpFs6LCG_Mz2","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"enlitriSPQjX1x_t3rOKD","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l6bCPX1iSDy2RrZNfVBxk","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_2JTucQ6J6xc94fd0VR12","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Si93bT7-3SbzYVw3XxqHY","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            origin point of the Polygon

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4vzBUh46p6HCVFBnNFpeY","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

                            the radius of the rounded corner

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S9-otrsLAHZYOjYEY8Cla","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3yYhMTQ6G-KCxISCcPX95","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_DjXdFuFuOVKZjatPAfJO","name":"type","brief":"","defaultValue":"\"RoundRect\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PUuzHBCgg3vKhYR9S06u8","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wB681WZ6E9SVMO4qJWbGq","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PzVitP9-pWOwVM6XgQEIp","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this RoundRect

                            ","params":[],"returns":[{"description":"

                            new RoundRect

                            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Wadf1ycLENb6cRxmTbZn-","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            position of the rounded rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the rounded rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                            the rectangle width

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                            the rectangle height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":true,"default":"20","description":"

                            the radius of the rounded corner

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_HqoefNpyrtQNw9O_4m_C","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rounded rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a Rect to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rounded rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"9vx_sUTz9eFH0f3ychAiH","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position, size and radius of the given rounded rectangle into this one

                            ","params":[{"identifier":"rrect","optional":false,"description":"

                            source rounded rectangle

                            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"O4reekeCjAat4lwxzNQhD","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this RoundRect is identical to the specified one

                            ","params":[{"identifier":"rrect","optional":false,"dataType":{"tokens":[{"value":"RoundRect","kind":"canonical"},{"value":"RoundRect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tLL_h4XVYQdVH3R1cYYfJ","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this shape, the smallest Rectangle object completely containing this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1Fr2pjBSq-6alpQ-dn6qD","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Mvls-JZuU2PI1xugV6UbY","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"aqG5QJ-7DdM98xF-U5soZ","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3jzEeKjCZKZa8x07tZ8m5","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PX7gJUdJCBi20AEQ9t9nu","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kD5dg7tj5byb_rJMUYIBo","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6nBTA4LWjv-VIMn0PK4C_","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this Polygon (counter-clockwise) by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Id-JUorhZaz4lh7JWpTIO","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the rectangle

                            ","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bgSkYgxF-4qNxZqxCG-6E","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Scale this Polygon by the given vector

                            ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hpD6Q3tiQuFC3DrwNTjpT","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BxN6qzdpH88wsDeyiu-Tp","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E9VIrsVeu2w-1j98YazVe","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NpoTr_pG-iQk261obSaRU","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UIBNC1lpaE9OWMNrrwMwo","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZXo0iIB2KVOK0O5NSLpy1","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KgTVwK4b2n1bcsQIV3Olz","name":"transform","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply the given transformation matrix to this Polygon

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oaNLSJb8LdG3GubhL89rq","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mgb_uhp39uue0jEkMtHhH","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ck355aVPZZ_vC-8-PLss8","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"3r2EAupFtkBPnF8gwdR6n","name":"Sprite","brief":"","type":"ClassDoc","description":"

                            An object to display a fixed or animated sprite on screen.

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"v3iwHBtievLFH265w7k9V","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7q9buvE3O-tc_dP0e54IN","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hatDUN1E8mFuCL8BSW2Z3","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sLEmNVdladaOssm9ARAB1","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OVkOwkDG9QX3g9ZMomXJ-","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IzP3BtborgaOl_vpD2gte","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                            animation cycling speed (delay between frame in ms)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ck7YTAU0sYZjBfSHVJAOv","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D7KcV3Yxmki86scp_nDu1","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d2HMEX0ZMH7HXBbrLCv9O","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fzmKVIf-wv5S6-9i7vG0N","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"boLyHlr30eOtBk0b95sEV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uicRzqioLQr7eYwy1xLPi","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GafpO3BEjMVD1mPZQf7vG","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lDEz-HKftxADIFe1ghtJI","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O5KjqCmNC2EYQrlqvgS71","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_q3QrnELWC2zqGdBc3ipv","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Iv5kqgsqxDTQlfxWYztqd","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aiBL7e9fUmooncZvGabKN","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CovXZ0RLXWud_uAwEklzs","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B4XuDj8tJrOo0T3Px295L","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-N7F5y4d3KH9Mllz6QNi1","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vz2iBJz3E02BCqYa5JD89","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YGAv8PPdZ4nfSbda_oLVF","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbWzSeOztdoPouTR_eyAT","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E8jti5snWwFuMoQuOZlth","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h1n54ErMtcchY79K2ApoY","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EAdPnebSZgRhBGKDi2O9T","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4GfAAH8dPq9-XUYZQtKXM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NRc10jaZI9bz0b4s4CxF2","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                            global offset for the position to draw from on the source image.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6j6y6T8sObImsIZ1rNVgL","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UOhv01t9JLJkyoj65wK2W","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y_i9789tGUqHqUN3VGUfZ","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cCWntGyeOCxi0p3Djqiog","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dMoute78e_8ASBLKVmnI9","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zaZiW-YTGquvSmenqdRQr","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ebx908f2PPHIGMQbp-YIX","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            The source texture object this sprite object is using

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YK5_nZNu5NvVFmlDXSbSG","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"706Q0KdZQd-u2vPy43Ctu","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hJGdI6EzRLd7cETGJGxVy","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dOgsrv4ks-AQMTCjEq_ge","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9U_iSYKYeOjoZWjUvjAlG","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tsu2cpMkkVQKqhKAe6M0Z","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            add an animation
                            \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                            list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                            ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                            cycling speed for animation in ms

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            frame amount of frame added to the animation (delay between each frame).

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"33tZbrmS0Ya9_8jBDNHCg","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JvOumUwcUi56wtAa9H0sV","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gVE-JrcjMUu0FbCt1RzYq","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"17lMT74_EUJ2Dnprx0YQ9","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a single sprite from a standalone image, with anchor in the center\n let sprite = new me.Sprite(0, 0, {\n image : \"PlayerTexture\",\n framewidth : 64,\n frameheight : 64,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n\n // create a single sprite from a packed texture\n mytexture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n let sprite = new me.Sprite(0, 0, {\n image : mytexture,\n region : \"npc2.png\",\n });\n\n // create a video sprite\n let videoSprite = new me.Sprite(0, 0, {\n image : me.loader.getVideo(\"bigbunny\"),\n anchorPoint : new me.Vector2d(0.5, 0.5)\n });\n // scale the video sprite\n videoSprite.currentTransform.scale(2);\n // start playing the video (if video is preloaded with `autoplay` set to false)\n videoSprite.play();"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinates of the sprite object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinates of the sprite object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            Configuration parameters for the Sprite object

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.image","description":"

                            reference to spritesheet image, a texture atlas, a video element, or to a texture atlas

                            ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | TextureAtlas | string","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1 | %2 | %3 | %4 | string"}},{"identifier":"settings.name","optional":true,"default":"\"\"","description":"

                            name of this object

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.region","optional":true,"description":"

                            region name of a specific region to use when using a texture atlas, see {@link TextureAtlas}

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.framewidth","optional":true,"description":"

                            Width of a single frame within the spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.frameheight","optional":true,"description":"

                            Height of a single frame within the spritesheet

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.tint","optional":true,"description":"

                            a tint to be applied to this sprite

                            ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.flipX","optional":true,"description":"

                            flip the sprite on the horizontal axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.flipY","optional":true,"description":"

                            flip the sprite on the vertical axis

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.5, y:0.5}","description":"

                            Anchor point to draw the frame at (defaults to the center of the frame).

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"U-7wRNvERFmNXLEvJekp5","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lo_i18UoXlLjKNMP7-FOX","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fC2InEWUvpImwy6Z053k0","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7jKPcVEYs8ITU2sidIcUC","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"8KLyR8V0NKyP1TaYyLYDA","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                            make the object flicker

                            ","params":[{"identifier":"duration","optional":false,"description":"

                            expressed in milliseconds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                            Function to call when flickering ends

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DWFKFwAaseoAs6EBWpZ7J","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3lmZLIAgExPakFqDVtOYt","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xlTQnS9tIuhRse2kdIp5Y","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bR1aQIJX13GBERA-v5YFs","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M_kLS-zAQV7Q5oJ4x7aVt","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the current animation frame index.

                            ","params":[],"returns":[{"description":"

                            current animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qWOW1RWiymYasdELaqC4G","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"HpzQyNt-yr0IiRt8V-ApB","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1OVybjL2Osx1soJPdmesx","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"p9aShWaFt-tpRu0PxcJ78","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            return true if the specified animation is the current one.

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kZSNZAWFZOeeY0mfBM-W_","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"m_45FJ9ojNinryc4xiZnG","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the flickering state of the object

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XZE3aAM-cadG_iA1ttgia","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BC-P-cwtBH6uLElgt6Qzy","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"eGR0TOGBM6EKruonKg7kM","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TpDsuR-2AHxIQlOtOS3hK","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"blFnihRlrRuIFfou3loYw","name":"pause","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7xYqdiF7BQB9vr-4H7OLC","name":"play","brief":"

                            play or resume the current animation or video

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tpzojCd3-Miaw0CiPN1v5","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"OKWxM0tDbZvs_aoMf8w6K","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"JCeB88UaNzvTtCU9uhC93","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J33-T7vIKhmzfiu9BUrqs","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fZW6wAlI6vQGlmX7cpfzP","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                            reverse the given or current animation if none is specified

                            ","params":[{"identifier":"name","optional":true,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qRx3F9W0lttUGNeRq5OyU","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qGSpw024UfQksovIJsbce","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"e0H6Y1ltRgzqohAaF649W","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HIxprkffKUOPf-8YiBLEo","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                            force the current animation frame index.

                            ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                            animation frame index

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ziLc-KK--Yo4zMk3oatPm","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                            set the current animation\nthis will always change the animation & set the frame to zero

                            ","params":[{"identifier":"name","optional":false,"description":"

                            animation id

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                            animation id to switch to when complete, or callback

                            ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                            if false will reset the elapsed time counter since last frame

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hKrKkxTnqi8FHqzE1zDFe","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"NnrkQFqGqbwwzpBClpXzQ","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                            change the current texture atlas region for this sprite

                            ","params":[{"identifier":"region","optional":false,"description":"

                            typically returned through me.Texture.getRegion()

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x5mMkpoPi81PC9_yZwAZ0","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AIsYajuA5FEqXpLVit72y","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H2USSXm3JCtE_dg6QDluF","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9K37RXcpu-i5vmLDquqOt","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-2zK9Qq6uwwLvVjpSnj7W","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wK1Tcjfqp63fobA1u_3Ir","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"dvb2ZyUDhlzRepgk2rUWG","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OGU85bXuiE-kssBbyDM9d","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Mhu8r1Kl_JR8AqWjHKEyA","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FIcjwq5fq3OmEEmTYEeP8","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d-DuyhLBA3xCxPpNA-H_b","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            draw this srite (automatically called by melonJS)

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                            the viewport to (re)draw

                            ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HY3qV6wHx-gtH0-jUeg1R","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                            update function.
                            \nautomatically called by the game manager {@link game}

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the Sprite is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yx1Kl3hLSmZ47Dkp5cL8Z","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"SiBcRsN5FAPfv014o1hu9","name":"Stage","brief":"","see":["state"],"type":"ClassDoc","description":"

                            a default "Stage" object.\nevery "stage" object (title screen, credits, ingame, etc...) to be managed\nt...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xWLidsZiGCvJBYW_R_vjj","name":"ambientLight","brief":"","access":"public","defaultValue":"\"#000000\"","scope":"instance","see":["Light2d"],"type":"PropertyDoc","description":"

                            an ambient light that will be added to the stage rendering

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9K8IN_n-kxapQvMYUPPzu","name":"cameras","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The list of active cameras in this stage.\nCameras will be renderered based on this order defined in this list.\nOnly the &q...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jWdscR099zfypuryUHOCq","name":"lights","brief":"","access":"public","examples":[{"caption":"","code":"// create a white spot light\nlet whiteLight = new me.Light2d(0, 0, 140, \"#fff\", 0.7);\n// and add the light to this current stage\nthis.lights.set(\"whiteLight\", whiteLight);\n// set a dark ambient light\nthis.ambientLight.parseCSS(\"#1117\");\n// make the light follow the mouse\nme.input.registerPointerEvent(\"pointermove\", me.game.viewport, (event) => {\n whiteLight.centerOn(event.gameX, event.gameY);\n});"}],"scope":"instance","see":["Light2d","Stage.ambientLight"],"type":"PropertyDoc","description":"

                            The list of active lights in this stage.\n(Note: Canvas Renderering mode will only properly support one light per stage)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nca3LdA0XxY6k4I0ojEbY","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            The given constructor options

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R3ypB9NOQMdqoSUOhee_r","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"settings","optional":true,"description":"

                            The stage` parameters

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.cameras","optional":true,"default":"[new me.Camera2d()]","description":"

                            a list of cameras (experimental)

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1<%2>"}},{"identifier":"settings.onResetEvent","optional":true,"description":"

                            called by the state manager when reseting the object

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.onDestroyEvent","optional":true,"description":"

                            called by the state manager before switching to another state

                            ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[],"extends":[],"implements":[]},{"id":"UdIes3MTkeAR-OyXqdKj9","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            onDestroyEvent function
                            \ncalled by the state manager before switching to another state

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5M7FJM6cJ4et8ljb1qFRE","name":"onResetEvent","brief":"","scope":"instance","see":["state#change"],"type":"MethodDoc","description":"

                            onResetEvent function
                            \ncalled by the state manager when reseting the object\nthis is typically where you will load a lev...","params":[{"identifier":"...arguments","optional":true,"variadic":true,"description":"

                            optional arguments passed when switching state

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"mZEMibu_TlPa7oLUT7Sk9","name":"Text","brief":"","type":"ClassDoc","description":"

                            a generic system font object.

                            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"tWcM3XpdJOgT8xYB5moZb","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                            Define the renderable opacity
                            \nSet to zero if you do not wish an object to be drawn

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_fcJlh4KnqUzkHpiNbPCk","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object will always update, even when outside of the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kMVxrb0-pJW3gZnIGB9VP","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AMujGR_0g5niZ_8TNGwFs","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                            The anchor point is used for attachment behavior, and/or when applying transformations.
                            \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"35LTgYJjEGpg1jw36HzxB","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                            When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JQ6Fp4lc60qLZ0JWADSmW","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                            the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sOcIoisrYC0toKiJhqhDW","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                            the renderable physic body

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYhBuoLOtM_t6UBBuz46J","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KkDjckLc3mLZDTYskgmco","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aQWQM9KCGYT9TvaCzFTmY","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YXQ9HoHl1U0YQSguzdJpi","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mK5FOpRWSJeQCnfIrhiUj","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LfuzbfUEAc5G2nsLEerOw","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                            defines the color used to draw the font.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IpATyKM2Y4ptSch1Iw0uO","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yPsG1lfdh1u3lGnA3YkFU","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

                            the font size (in px)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MZciFB4XOtYEZwcazs1ii","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            (G)ame (U)nique (Id)entifier"
                            \na GUID will be allocated for any renderable object added
                            \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qLop2wE_zt4H1X9PIyNlh","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tTgujURcUqKqKVFRfkXfO","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether the renderable object is visible and within the viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aRmSCRx_wGnICyezO13G5","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            when true the renderable will be redrawn during the next update cycle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wSsRdQC4Utjqbv2-l8z2O","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eQGY3ZHkTwNwnoqacTqjs","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                            returns true if this renderable is flipped on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C0OI8G6kbcp10n3sJOYvQ","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                            Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c--WjNQP7L-gbl8ohYzhQ","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                            If true then physic collision and input events will not impact this renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a2wFFKVduWIVNNZIini-X","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OA_ooJb392Zw6b0M_bhWc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_yEEzuRidcx6Y2hrQELsN","name":"lineHeight","brief":"","defaultValue":"1.0","scope":"instance","type":"PropertyDoc","description":"

                            Set the line spacing height (when displaying multi-line strings).
                            \nCurrent font height will be multiplied with this va...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eAamA38B1JFwUuW55LU8Z","name":"lineWidth","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                            sets the current line width, in pixels, when drawing stroke

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cg3u8_U_EbZD1JlCpqPWb","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                            A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GFclksKyfMPhzJirpfihk","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wtWSFJ2SWKMdpxTy2gg5u","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                            an event handler that is called when the renderable leave or enter a camera viewport

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dGFouICMMA1No521prTjp","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            returns the parent application (or game) to which this renderable is attached to

                            ","params":[],"returns":[{"description":"

                            the parent application or undefined if not attached to any container/app

                            ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-jKwXzUPaVcUYxFKXbio2","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            Array of points defining the Polygon
                            \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0zRqqgB7oQMMvr-PoKnJL","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2-J_E78yHsuIlQdwiXVyW","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bu3u_YW6QJ_kP3oIIu58X","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XrXfcJ4Nqs4Yrteri-hLV","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                            defines the color used to draw the font stroke.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rqDDkWVTys0SFau1N1j5i","name":"textAlign","brief":"","defaultValue":"\"left\"","scope":"instance","type":"PropertyDoc","description":"

                            Set the default text alignment (or justification),
                            \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T9QOjV-7DTZeG6nxoXkZj","name":"textBaseline","brief":"","defaultValue":"\"top\"","scope":"instance","type":"PropertyDoc","description":"

                            Set the text baseline (e.g. the Y-coordinate for the draw operation),
                            \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1fzhu82-iRf4fUXZvm6U5","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                            define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sgOJi38-vU3AlKabk9Ehd","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IK0Elm7ojayPv0YpBwi1s","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ar0FEFVdZ2UKkW59HQtGA","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            Whether to update this object when the game is paused.

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xd8f-xVN7VoyxfG4-ln05","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nYNSofm6D2KPBVN81Ns8m","name":"wordWrapWidth","brief":"","defaultValue":"-1","scope":"instance","type":"PropertyDoc","description":"

                            the maximum length in CSS pixel for a single segment of text.\n(use -1 to disable word wrapping)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1zbm8Dp3rsaJq-NDXlwL-","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                            the text to be displayed

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qql0VUGFr3u2ssGMj1wDV","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the angle to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            angle in radians

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"haWA6eJFGP62HS0lptXRL","name":"bold","brief":"","scope":"instance","type":"MethodDoc","description":"

                            make the font bold

                            ","params":[],"returns":[{"description":"

                            this object for chaining

                            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WYBGXUyqODujriUoXDnoO","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the rectangle position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vp8-xDTsE2XuB7x_5RWgx","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this rectangle

                            ","params":[],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sc4OUuxOm9nlkk4pTujh3","name":"constructor","brief":"","examples":[{"caption":"","code":"let font = new me.Text(0, 0, {font: \"Arial\", size: 8, fillStyle: this.color});"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                            position of the text object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the text object

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                            the text configuration

                            ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"settings.font","description":"

                            a CSS family font name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","description":"

                            size, or size + suffix (px, em, pt)

                            ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}},{"identifier":"settings.fillStyle","optional":true,"default":"\"#000000\"","description":"

                            a CSS color value

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.strokeStyle","optional":true,"default":"\"#000000\"","description":"

                            a CSS color value

                            ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"settings.lineWidth","optional":true,"default":"0","description":"

                            line width, in pixels, when drawing stroke

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.textAlign","optional":true,"default":"\"left\"","description":"

                            horizontal text alignment

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"top\"","description":"

                            the text baseline

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.lineHeight","optional":true,"default":"1.0","description":"

                            line spacing height

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.anchorPoint","optional":true,"default":"{x:0.0, y:0.0}","description":"

                            anchor point to draw the text at

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"settings.wordWrapWidth","optional":true,"description":"

                            the maximum length in CSS pixel for a single segment of text

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"default":"\"\"","description":"

                            a string, or an array of strings

                            ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}}],"returns":[],"extends":[],"implements":[]},{"id":"-Dgert8v9wF4sg1GwhXvX","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the rectangle contains the given point or rectangle

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point, or a rectangle to test

                            ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the rectangle contain the given point or rectangle, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sXI2o5Bmq164-PCNBVCdD","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                            copy the position and size of the given rectangle into this one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            Source rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            new rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CZfluXplCGFYaC019APon","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the distance to the specified target

                            ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            distance

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SaSvGH0c2Tl5AsrtDCWMq","name":"draw","brief":"","scope":"instance","type":"MethodDoc","description":"

                            draw a text at the specified coord

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            Reference to the destination renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"d-N0cTDWbqlmHHyOANcIU","name":"drawStroke","brief":"","deprecated":"since 15.0.0","scope":"instance","type":"MethodDoc","description":"

                            draw a stroke text at the specified coord, as defined by the lineWidth and fillStroke properties...","params":[{"identifier":"renderer","optional":false,"description":"

                            Reference to the destination renderer instance

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":false,"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"M5S3F6chlxySPDzJju0jq","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is identical to the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if equals

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"I10WLgcgJ9Fed1rcdFTHD","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                            flip the renderable on the horizontal axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nz4TcfQS2CG8pVLHRDjHW","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                            flip the renderable on the vertical axis (around the center of the renderable)

                            ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                            true to flip this renderable.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KFlABayPtEta7ZXM-lgmg","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                            return the renderable absolute position in the game world

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XcH6kWPcxdeRBeEWtThD3","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns the bounding box for this renderable

                            ","params":[],"returns":[{"description":"

                            bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GJ9Jp0flMm33v1GETEER0","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            returns a list of indices for all triangles defined in this polygon

                            ","params":[],"returns":[{"description":"

                            an array of vertex indices for all triangles forming this polygon.

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"G1rtjJN_gTqw1cU_ARuRU","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            get the renderable alpha channel value

                            ","params":[],"returns":[{"description":"

                            current opacity value between 0 and 1

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OEZ3JmQz9QtoIuDPqSemC","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                            ","params":[],"returns":[{"description":"

                            true if the vertices are convex, false if not, null if not computable

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QEbHhcEFYK7wbS5kMMDl9","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this rectangle are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YxDuB72uOxzxei_TbBfec","name":"italic","brief":"","scope":"instance","type":"MethodDoc","description":"

                            make the font italic

                            ","params":[],"returns":[{"description":"

                            this object for chaining

                            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zxUKMxoBchpohLL_p9hrG","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable towards the given target.

                            ","params":[{"identifier":"target","optional":false,"description":"

                            the renderable or position to look at

                            ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"137HEZ8_LgiSzbsJRl1Le","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                            measure the given text size in pixels

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            reference to the active renderer

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"text","optional":true,"description":"

                            the text to be measured

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                            a TextMetrics object defining the dimensions of the given piece of text

                            ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9ew9UTltllR63UMXDSU4X","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                            onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                            ","params":[{"identifier":"response","optional":false,"description":"

                            the collision response object

                            ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                            the other renderable touching this one (a reference to response.a or response.b)

                            ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                            true if the object should respond to the collision (its position and velocity will be corrected)

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"NuV5fDU-FNYQRx-NmNIyp","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oCJIv2xHCUyBA4X57OVv4","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            check if this rectangle is intersecting with the specified one

                            ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            true if overlaps

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BLSS_4HWufjR78V_CrgI1","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                            restore the rendering context after drawing (automatically called by melonJS).

                            ","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"pdZEGA8hxrU6f1qr3WVMp","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                            Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                            a renderer object

                            ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q7CsnsNEx2WTJJ--C1IfR","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ikOohl3HQIaYWA23KtRRa","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                            resize the rectangle

                            ","params":[{"identifier":"w","optional":false,"description":"

                            new width of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                            new height of the rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"sODvYW5iZnaFzx05h82kO","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Rotate this renderable by the specified angle (in radians).

                            ","params":[{"identifier":"angle","optional":false,"description":"

                            The angle to rotate (in radians)

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                            an optional point to rotate around

                            ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QUlPfEN4I-PJDXVH2A7mg","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                            a number representing the abscissa of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                            a number representing the ordinate of the scaling vector.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-VTOuYKPYZSztffDG7ZSP","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                            scale the renderable around his anchor point

                            ","params":[{"identifier":"v","optional":false,"description":"

                            scaling vector

                            ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pdC1AlDX-FpoMVu3_oRHm","name":"setFont","brief":"","examples":[{"caption":"","code":"font.setFont(\"Arial\", 20);\nfont.setFont(\"Arial\", \"1.5em\");"}],"scope":"instance","type":"MethodDoc","description":"

                            set the font family and size

                            ","params":[{"identifier":"font","optional":false,"description":"

                            a CSS font name

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"size","optional":true,"default":"10","description":"

                            size in px, or size + suffix (px, em, pt)

                            ","dataType":{"tokens":[{"value":"number | string","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | string"}}],"returns":[{"description":"

                            this object for chaining

                            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wcuTFHF--Svf9lhGi51QT","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the renderable alpha channel value

                            ","params":[{"identifier":"alpha","optional":false,"description":"

                            opacity value between 0.0 and 1.0

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z4rUYRDkMztvtw78k4hSN","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set new value to the rectangle shape

                            ","params":[{"identifier":"x","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            position of the Rectangle

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                            width of the rectangle, or an array of vector defining the rectangle

                            ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                            height of the rectangle, if a numeral width parameter is specified

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vF3-6VxyX-e7F57tHtWq-","name":"setText","brief":"","scope":"instance","type":"MethodDoc","description":"

                            change the text to be displayed

                            ","params":[{"identifier":"value","optional":false,"default":"\"\"","description":"

                            a string, or an array of strings

                            ","dataType":{"tokens":[{"value":"number | string | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | string | %2"}}],"returns":[{"description":"

                            this object for chaining

                            ","dataType":{"tokens":[{"value":"Text","kind":"canonical"},{"value":"Text","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3gec8Fb32VgGNuoDCp-TB","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                            set the vertices defining this Polygon

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            array of vector or vertice defining the Polygon

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                            this instance for objecf chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ol_uZQ6AjtHKnaB1Yg9YD","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the Polygon to the given position vector.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sVkccSYv4jrnqrbJuk0jS","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply a 2d projection to this shapen

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"06J1M5Dg8s-HbAhYf-0mB","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                            apply an isometric projection to this shape

                            ","params":[],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9lxenuzMY7QoOzruDAXwm","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this box.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this rectangle.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t5A-rXZQIjSdNoDRkxI_Z","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                            multiply the renderable currentTransform with the given matrix

                            ","params":[{"identifier":"m","optional":false,"description":"

                            the transformation matrix

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"14jLwbQWP7KTPsWu5hh1k","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            translate the Polygon by the specified offset

                            ","params":[{"identifier":"x","description":"

                            x offset or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y offset

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            Reference to this object for method chaining

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZTiOx41EcQA2_jX_U2stk","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                            merge this rectangle with another one

                            ","params":[{"identifier":"rect","optional":false,"description":"

                            other rectangle to union with

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                            the union(ed) rectangle

                            ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"83JnVQK1YJktphulbjaa0","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update function (automatically called by melonJS).

                            ","params":[{"identifier":"dt","optional":false,"description":"

                            time since the last update in milliseconds.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            true if the renderable is dirty

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Llg3GHdbtirDx3dX7iPts","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            update the bounding box for this shape.

                            ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                            update the bounds size and position in (world) absolute coordinates

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                            this shape bounding box Rectangle object

                            ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Okw1kpfZ2X7UtUMoY3wI5","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                            called when the anchor point value is changed

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the new X value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the new Y value to be set for the anchor

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"irxzK9XywQKZSudCE44lA","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

                            a Text Metrics object that contains helper for text manipulation

                            ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"I4raND6kCAOADoc7u7nHF","name":"ancestor","brief":"","access":"public","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                            a reference to the parent object that contains this TextMetrics object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h-npZFvHhLuodgzdnYeL2","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i-PagWNuDPMxFSjbLLx0P","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            return the center position of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b4uubJUcfWX1OePhvsdm0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            center position of the bound on the x axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gXYwNfYEmsWYKbRrJ_Nmh","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            center position of the bound on the y axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0BX_5Q3UyHMQ2f4iGvpzf","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D3fhlCckTsNkxXlhB-trq","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FU-qRweEBCtrfPZG1I8dc","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JtMQmjNplArujjkujByBE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zzlD73eOA86bhFBvnI7Ug","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                            the object type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o5br_TXRF8RMitsE4O7Db","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U1LljaD5ltVqkPHn2Abzh","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            x position of the bound

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EVBR50fcubn1nm-4v7QdH","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            y position of the bounds

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"auyjiU0rNQH6RADuIb5kN","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given vertices to the bounds definition.

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            an array of Vector2d or Point

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                            either to reset the bounds before adding the new vertices

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"61YX9uUQoU0MqRTcxApbu","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given bounds to the bounds definition.

                            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                            either to reset the bounds before adding the new vertices

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"AKbXou7sSbZ36H6YCwaVO","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given quad coordinates to this bound definition, multiplied by the given matrix

                            ","params":[{"identifier":"x0","optional":false,"description":"

                            left X coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                            top Y coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                            right X coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                            bottom y coordinates of the quad

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                            an optional transform to apply to the given frame coordinates

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8mZFwvIbRIKaNSdNhNQNH","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                            add the given point to the bounds definition.

                            ","params":[{"identifier":"point","optional":false,"description":"

                            the vector or point to be added to the bounds

                            ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                            an optional transform to apply to the given point (if the given point is a Vector2d)

                            ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"G7Bhwew0wNuYFGGii2I7N","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                            center the bounds position around the given coordinates

                            ","params":[{"identifier":"x","optional":false,"description":"

                            the x coordinate around which to center this bounds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                            the y coordinate around which to center this bounds

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mpRNCtA75jNufwNSxesvI","name":"clear","brief":"

                            reset the bound

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QQ2rGhkOEk2J2BpIf3W8w","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                            clone this bounds

                            ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"G62zUD4QAG_SeRNjQJW-M","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"ancestor","optional":false,"description":"

                            the parent object that contains this TextMetrics object

                            ","dataType":{"tokens":[{"value":"Text | BitmapText","kind":"canonical"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"CVuPzskMgUks8rOUuL76_","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                            Returns true if the bounds contains the given point.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to check

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                            y coordinate

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            True if the bounds contain the point, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qkGvJsVEN8QPRg53H_JSh","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                            determines whether all coordinates of this bounds are finite numbers.

                            ","params":[],"returns":[{"description":"

                            false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"lUQoRGKqmg1IYLFfZndVn","name":"lineHeight","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the height of a segment of inline text in CSS pixels.

                            ","params":[],"returns":[{"description":"

                            the height of a segment of inline text in CSS pixels.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BzLzOmmba2ctpBe6wXXCA","name":"lineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns the width of the given segment of inline text in CSS pixels.

                            ","params":[{"identifier":"text","optional":false,"description":"

                            the text to be measured

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

                            reference to an active 2d context for canvas rendering

                            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            the width of the given segment of inline text in CSS pixels.

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IRXbPhMi2AErtCQwnprWa","name":"measureText","brief":"","scope":"instance","type":"MethodDoc","description":"

                            measure the given text size in CSS pixels

                            ","params":[{"identifier":"text","optional":false,"description":"

                            the text to be measured

                            ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"context","optional":true,"description":"

                            reference to an active 2d context for canvas rendering

                            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            this

                            ","dataType":{"tokens":[{"value":"TextMetrics","kind":"canonical"},{"value":"TextMetrics","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2qhaDP8CsKCvK6FlX_oYJ","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns true if the two bounds intersect.

                            ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                            True if the bounds overlap, otherwise false

                            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"paDrukncKdAUYATNDBkcS","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                            sets the bounds to the given min and max value

                            ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IHqLTAO9keNOpTdoiScm4","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Shifts the bounds to the given x, y position.

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to shift to

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"DaBJ2byHlV4Ay598aYkIs","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Returns a polygon whose edges are the same as this bounds.

                            ","params":[],"returns":[{"description":"

                            a new Polygon that represents this bounds.

                            ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Ue_jVIBF7YjEsZ1UVDKB","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                            Translates the bounds by the given point

                            ","params":[{"identifier":"x","description":"

                            x coordinate or a vector point to translate by

                            ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CWID8tKZCN4YkHDhpFMsB","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Updates bounds using the given vertices

                            ","params":[{"identifier":"vertices","optional":false,"description":"

                            an array of Vector2d or Point

                            ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]},{"id":"d_IcJEBrTVSKx3E2BSvtX","name":"wordWrap","brief":"","scope":"instance","type":"MethodDoc","description":"

                            wrap the given text based on the given width

                            ","params":[{"identifier":"text","optional":false,"description":"

                            the text to be wrapped

                            ","dataType":{"tokens":[{"value":"string | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"string | %1"}},{"identifier":"width","optional":false,"description":"

                            maximum width of one segment of text in css pixel

                            ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"context","optional":true,"description":"

                            reference to an active 2d context for canvas rendering

                            ","dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                            an array of string representing wrapped text

                            ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"JUxmEn7oRlkv0cfmujig9","name":"TextureAtlas","brief":"","type":"ClassDoc","description":"

                            A Texture atlas class, currently supports :

                            \n
                              \n
                            • [TexturePacker]{@link http://www.codeandweb.com/texturepacke...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"uW6d09xFT6k9ZSlYIwPi3","name":"addRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add a region to the atlas

                              ","params":[{"identifier":"name","optional":false,"description":"

                              region mame

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"x","optional":false,"description":"

                              x origin of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y origin of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              height of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the created region

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"SbHD_0A6mC0VBobvNA-jR","name":"addUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add uvs mapping for the given region

                              ","params":[{"identifier":"atlas","optional":false,"description":"

                              the atlas dictionnary where the region is define

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"name","optional":false,"description":"

                              region (or frame) name

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"w","optional":false,"description":"

                              the width of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              the height of the region

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the created region UVs

                              ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gG8UtSgWCz9mDTQ0NcN80","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a texture atlas from a JSON Object\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\")\n );\n\n // create a texture atlas from a multipack JSON Object\n game.texture = new me.TextureAtlas([\n me.loader.getJSON(\"texture-0\"),\n me.loader.getJSON(\"texture-1\"),\n me.loader.getJSON(\"texture-2\")\n ]);\n\n // create a texture atlas for a spritesheet with an anchorPoint in the center of each frame\n game.texture = new me.TextureAtlas(\n {\n framewidth : 32,\n frameheight : 32,\n anchorPoint : new me.Vector2d(0.5, 0.5)\n },\n me.loader.getImage(\"spritesheet\")"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"atlases","optional":false,"description":"

                              atlas information. See {@link loader.getJSON}

                              ","dataType":{"tokens":[{"value":"object | Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"object | %1"}},{"identifier":"src","optional":true,"default":"atlas.meta.image","description":"

                              Image source

                              ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | string | Array | Array | Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1 | %2 | string | %3<%4> | %5<%6> | %7"}},{"identifier":"cache","optional":true,"default":"false","description":"

                              Use true to skip caching this Texture

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"GwkTdoPtNy-xbILTVG89J","name":"createAnimationFromName","brief":"","examples":[{"caption":"","code":" // create a new texture object under the `game` namespace\n game.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n );\n\n // create a new Animated Sprite\n let sprite = game.texture.createAnimationFromName([\n \"walk0001.png\", \"walk0002.png\", \"walk0003.png\",\n \"walk0004.png\", \"walk0005.png\", \"walk0006.png\",\n \"walk0007.png\", \"walk0008.png\", \"walk0009.png\",\n \"walk0010.png\", \"walk0011.png\"\n ]);\n\n // define an additional basic walking animation\n sprite.addAnimation (\"simple_walk\", [0,2,1]);\n // you can also use frame name to define your animation\n sprite.addAnimation (\"speed_walk\", [\"walk0007.png\", \"walk0008.png\", \"walk0009.png\", \"walk0010.png\"]);\n // set the default animation\n sprite.setCurrentAnimation(\"simple_walk\");\n // set the renderable position to bottom center\n sprite.anchorPoint.set(0.5, 1.0);"}],"scope":"instance","type":"MethodDoc","description":"

                              Create an animation object using the first region found using all specified names

                              ","params":[{"identifier":"names","optional":false,"description":"

                              list of names for each sprite\n(when manually creating a Texture out of a spritesheet, only numeric values are authorized)

                              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1 | %3<%2>"}},{"identifier":"settings","optional":true,"description":"

                              Additional settings passed to the {@link Sprite} contructor

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7kjXe9eejxXTOhdUXGT2B","name":"createSpriteFromName","brief":"","examples":[{"caption":"","code":"// create a new texture object under the `game` namespace\ngame.texture = new me.TextureAtlas(\n me.loader.getJSON(\"texture\"),\n me.loader.getImage(\"texture\")\n);\n...\n...\n// create a new \"coin\" sprite\nlet sprite = game.texture.createSpriteFromName(\"coin.png\");\n// set the renderable position to bottom center\nsprite.anchorPoint.set(0.5, 1.0);\n...\n...\n// create a 9-slice sprite\nlet dialogPanel = game.texture.createSpriteFromName(\n \"rpg_dialo.png\",\n // width & height are mandatory for 9-slice sprites\n { width: this.width, height: this.height },\n true\n);"}],"scope":"instance","type":"MethodDoc","description":"

                              Create a sprite object using the first region found using the specified name

                              ","params":[{"identifier":"name","optional":false,"description":"

                              name of the sprite

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings","optional":true,"description":"

                              Additional settings passed to the {@link Sprite} contructor

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"nineSlice","optional":true,"default":"false","description":"

                              if true returns a 9-slice sprite

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"Sprite | NineSliceSprite","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"Gq9lRF7qsd7ALmJ8LXQJ8","name":"getAtlas","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the default or specified atlas dictionnary

                              ","params":[{"identifier":"name","optional":true,"description":"

                              atlas name in case of multipack textures

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"mnIhSFJFK0f9VkrTR2E-y","name":"getFormat","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the format of the atlas dictionnary

                              ","params":[],"returns":[{"description":"

                              will return "texturepacker", or "ShoeBox", or "melonJS", or "Spritesheet (fixed cell si...","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"BexZqnTaAqzU_SAOZzX5c","name":"getRegion","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a normalized region (or frame) information for the specified sprite name

                              ","params":[{"identifier":"name","optional":false,"description":"

                              name of the sprite

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"atlas","optional":true,"description":"

                              name of a specific atlas where to search for the region

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"voYIAaHSE1H2hBF-BZznn","name":"getTexture","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the source texture for the given region (or default one if none specified)

                              ","params":[{"identifier":"region","optional":true,"description":"

                              region name in case of multipack textures

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"qV0badKrJApOz2qwKYfkK","name":"getUVs","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the uvs mapping for the given region

                              ","params":[{"identifier":"name","optional":false,"description":"

                              region (or frame) name

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                              region Uvs

                              ","dataType":{"tokens":[{"value":"Float32Array","kind":"canonical"},{"value":"Float32Array","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"wvwvYUtKqo2pAMnoyXXTR","name":"Tile","brief":"","type":"ClassDoc","description":"

                              a basic tile object

                              ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"IzKqR1SuJtEcMJPzET-5b","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gljkk6XK4UKRYmBmlxs-u","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              return the center position of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cQ9SX55GIDfWxleky2tYr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              center position of the bound on the x axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pe794RAkT2zJoxrrU6URW","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              center position of the bound on the y axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d9vFcc4TMxuVRZQmDZ2KI","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Global flag that indicates if the tile is flipped

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Fam29VhBROEWvqe_0LQS","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              True if the tile is flipped anti-diagonally

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tRQHaxaFWIB-hXrCXjDzd","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              True if the tile is flipped horizontally

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nVUQ6vsfmj57do0TM-2OO","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              True if the tile is flipped vertically

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LTGJ8mlt2wlj-KkPPb8fj","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the bounds

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pP5IX_Ji6qEH6T7G7mGYN","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hn0kjxCWGb2OSmtFZY5JB","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SZq_QpGDm99crzCJ-8b8l","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              tileId

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MfjvY9GNJCgW4rzjDEaQT","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              tileset

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TNBc2WJN4j85O-8vRxB1C","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tds8p38cerxd8xy8Njtdt","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                              the object type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvSPPeVjyGWlJ9IGk7hUv","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the bounds

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_YMboIzQMnMx_RgLPeNV0","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              x position of the bound

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hD0T1OKZu4Lxekyz9x2GI","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              y position of the bounds

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VH8KvHk6q_73BRhIh3R8i","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add the given vertices to the bounds definition.

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              an array of Vector2d or Point

                              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}},{"identifier":"clear","optional":true,"default":"false","description":"

                              either to reset the bounds before adding the new vertices

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"YkCpdyRp_PKWJ0vd2FzSr","name":"addBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add the given bounds to the bounds definition.

                              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}},{"identifier":"clear","optional":true,"default":"false","description":"

                              either to reset the bounds before adding the new vertices

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"_cOmiDo6cd1rPEJrlfMhG","name":"addFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add the given quad coordinates to this bound definition, multiplied by the given matrix

                              ","params":[{"identifier":"x0","optional":false,"description":"

                              left X coordinates of the quad

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y0","optional":false,"description":"

                              top Y coordinates of the quad

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x1","optional":false,"description":"

                              right X coordinates of the quad

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y1","optional":false,"description":"

                              bottom y coordinates of the quad

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"m","optional":true,"description":"

                              an optional transform to apply to the given frame coordinates

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XuRtbcKJu1PD6WgJiaa2w","name":"addPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add the given point to the bounds definition.

                              ","params":[{"identifier":"point","optional":false,"description":"

                              the vector or point to be added to the bounds

                              ","dataType":{"tokens":[{"value":"Vector2d | Point","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Point","kind":"link"}],"template":"%1 | %2"}},{"identifier":"m","optional":true,"description":"

                              an optional transform to apply to the given point (if the given point is a Vector2d)

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8TIDk9nj0znWg0jbMHhfI","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the bounds position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this bounds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this bounds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"en2iQKVCgsqjSnr2FwIyV","name":"clear","brief":"

                              reset the bound

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jsocimYT41fsb-Om_ovz8","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this bounds

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mqmrxhWxO2Q1AyBFuvOep","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                              x index of the Tile in the map

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y index of the Tile in the map

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"gid","optional":false,"description":"

                              tile gid

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileset","optional":false,"description":"

                              the corresponding tileset object

                              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XU1oBhjG5LyOUoSi1XkzZ","name":"contains","brief":"","examples":[{"caption":"","code":"if (bounds.contains(10, 10)) {\n // do something\n}\n// or\nif (bounds.contains(myVector2d)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the bounds contains the given point.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to check

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the bounds contain the point, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CjvlU2t8Alf3s8K4BnkB8","name":"getRenderable","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a renderable object for this Tile object

                              ","params":[{"identifier":"settings","optional":true,"description":"

                              see {@link Sprite}

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                              a me.Sprite object

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rvbp0tfq0sOALUS69V4iO","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this bounds are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"F_7XfQmQZ253fWB8B2IRs","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the two bounds intersect.

                              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Bounds | Rect","kind":"canonical"},{"value":"Bounds","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              True if the bounds overlap, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TbUQLromsTrFKtiho6se9","name":"setMinMax","brief":"","scope":"instance","type":"MethodDoc","description":"

                              sets the bounds to the given min and max value

                              ","params":[{"identifier":"minX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"minY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxX","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"maxY","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nek_8QkF3JVU3LAVlcret","name":"shift","brief":"","examples":[{"caption":"","code":"bounds.shift(10, 10);\n// or\nbounds.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the bounds to the given x, y position.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"a2WqpjF8gqLgw10Lqsfsp","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this bounds.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this bounds.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YWpap2_prHUmrhizl0ehx","name":"translate","brief":"","examples":[{"caption":"","code":"bounds.translate(10, 10);\n// or\nbounds.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Translates the bounds by the given point

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"HQeK_bHJBWY8eIG6B5TL-","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Updates bounds using the given vertices

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              an array of Vector2d or Point

                              ","dataType":{"tokens":[{"value":"Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Point","kind":"link"}],"template":"%1<%2> | %3<%4>"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"pUfsHVt8S5XmR1Vzw3qKb","name":"Timer","brief":"","see":["{@link timer} the default global timer instance"],"type":"ClassDoc","description":"

                              a Timer class to manage timing related function (FPS, Game Tick, Time...)

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"N7m0WBoGL8TIM3b0wKf4z","name":"fps","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                              Last measured fps rate.
                              \nThis feature is disabled by default, unless the debugPanel is enabled/visible.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8S3TvojvCRbj3Y-9O3LGk","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                              Enable/disable frame interpolation

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kvJZt608fG1-SYxxjIJoM","name":"maxfps","brief":"","access":"public","defaultValue":"60","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                              Set the maximum target display frame per second

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IJXp8uOiZE0o4vhzZpfR5","name":"tick","brief":"","access":"public","defaultValue":"1","scope":"instance","see":["interpolation"],"type":"PropertyDoc","description":"

                              Last game tick value.
                              \nUse this value to scale velocities during frame drops due to slow hardware or when setting an F...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TFXqy5KY6WYu3uFFJYT3t","name":"clearInterval","brief":"","scope":"instance","type":"MethodDoc","description":"

                              cancels the timed, repeating action which was previously established by a call to setInterval().

                              ","params":[{"identifier":"intervalID","optional":false,"description":"

                              ID of the interval to be cleared

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eTcfa2bUW2exZ_wkf6GXs","name":"clearTimeout","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Cancels a timeout previously established by calling setTimeout().

                              ","params":[{"identifier":"timeoutID","optional":false,"description":"

                              ID of the timeout to be cancelled

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"8ns4Vlnt9hdfpX4L_iQt5","name":"getDelta","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return elapsed time in milliseconds since the last update

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"D4EpgEQi7neB3N5qC7Fnc","name":"getTime","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return the current timestamp in milliseconds
                              \nsince the game has started or since linux epoch (based on browser suppor...","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vNX3ZKYAytNoOEJTddYIV","name":"setInterval","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" every 1000ms\nme.timer.setInterval(myFunction, 1000);\n// set a timer to call \"myFunction\" every 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setInterval(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                              Calls a function continously at the specified interval. See setTimeout to call function a single time.

                              ","params":[{"identifier":"fn","optional":false,"description":"

                              the function to execute

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                              the number of milliseconds (thousandths of a second) on how often to execute the function

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                              respects the pause state of the engine.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                              optional parameters which are passed through to the function specified by fn once the timer expires.

                              ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                              a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_a4CwYC8Jn5D6NDlqwwUC","name":"setTimeout","brief":"","examples":[{"caption":"","code":"// set a timer to call \"myFunction\" after 1000ms\nme.timer.setTimeout(myFunction, 1000);\n// set a timer to call \"myFunction\" after 1000ms (respecting the pause state) and passing param1 and param2\nme.timer.setTimeout(myFunction, 1000, true, param1, param2);"}],"scope":"instance","type":"MethodDoc","description":"

                              Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.

                              ","params":[{"identifier":"fn","optional":false,"description":"

                              the function you want to execute after delay milliseconds.

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"delay","optional":false,"description":"

                              the number of milliseconds (thousandths of a second) that the function call should be delayed by.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"pauseable","optional":true,"default":"true","description":"

                              respects the pause state of the engine.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"args","optional":false,"variadic":true,"description":"

                              optional parameters which are passed through to the function specified by fn once the timer expires.

                              ","dataType":{"tokens":[{"value":"unknown","kind":"canonical"}],"template":"unknown"}}],"returns":[{"description":"

                              a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.t...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"k8djpWrY6o9CvCsUUUGGu","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

                              an Hexagonal Map Renderder

                              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"zECXEVQqKR1FT4XX5WLUc","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the renderer can render the specified map or layer

                              ","params":[{"identifier":"component","optional":false,"description":"

                              TMX Map or Layer

                              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Lc0DYW5-ZGiTSIVS6iyRe","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                              the TMX map

                              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6r6yayfdZBbFtbZ9x4o4A","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given tile at the specified layer

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                              X coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                              the tile object to draw

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"6gQU1g-4epO_GuyDhiKlG","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given TMX Layer for the given area

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                              a TMX Layer object

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                              the area of the layer to draw

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"em2fDSpInkH6kRsWscPtv","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the bounding rect for this map renderer

                              ","params":[{"identifier":"layer","optional":true,"description":"

                              calculate the bounding rect for a specific layer (will return a new bounds object)

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IfZ_SE134I2_OI_b9bkzk","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile position corresponding to the specified pixel

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9NF98PmsibH-llFo4xIxR","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the pixel position corresponding of the specified tile

                              ","params":[{"identifier":"col","optional":false,"description":"

                              tile horizontal position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                              tile vertical position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"55FRg3tKSiI7RPtB2MT2D","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

                              an Isometric Map Renderder

                              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"L_tKLbG8DOXfdUHb_LHGi","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the renderer can render the specified map or layer

                              ","params":[{"identifier":"component","optional":false,"description":"

                              TMX Map or Layer

                              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"1kfOkO-nrvo8j6oRLBWIV","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                              the TMX map

                              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"BQ054yQ3IiHmhe1UC1VQU","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given tile at the specified layer

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                              X coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                              the tile object to draw

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IZERQXlosVy1DgU2gUkiv","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given TMX Layer for the given area

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                              a TMX Layer object

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                              the area of the layer to draw

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"m362matGcGDZ2RNzzIwML","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the bounding rect for this map renderer

                              ","params":[{"identifier":"layer","optional":true,"description":"

                              calculate the bounding rect for a specific layer (will return a new bounds object)

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nEj-jALeTSCu-LQoHeesp","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile position corresponding to the specified pixel

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1D3IY36njvjJiplUf6DyE","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the pixel position corresponding of the specified tile

                              ","params":[{"identifier":"col","optional":false,"description":"

                              tile horizontal position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                              tile vertical position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"d1y6fOhj4Z5H3B6aXrW11","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

                              a TMX Tile Layer Object\nTiled QT 0.7.x format

                              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"tW4rFGt9GErBKPYjgc0n6","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                              Define the renderable opacity
                              \nSet to zero if you do not wish an object to be drawn

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yA9TN64nbZUjwRPVNNeu9","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object will always update, even when outside of the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ObuzFsNJWQbOQMlZDrfVd","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the parent object that contains this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IGihQlkIZYZ73TeD_xs3Q","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                              The anchor point is used for attachment behavior, and/or when applying transformations.
                              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"36NjYn7ULlUhtPvGm7XuJ","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              All animated tilesets in this layer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oP_QGTGcqMaOwtpuppskP","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ozj-kgtQL6WduTroy0Jtq","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m7LrqkOxwVFtt97lS9LQv","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                              the renderable physic body

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hQHwyK5kd8AngmQmhQAJ_","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eG6ZI1eBLBMeEM_fYGeoP","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y-0RSFff8qcRVRa285jpN","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v9oALU3W0wwBj_KX7yAnG","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the layer class

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sJDYs9gjSfS6Eo6EO9PrD","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the renderable default transformation matrix

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_iC56S9kr3hcCEE2q3mrn","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the depth of this renderable on the z axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BLA5LWEveDBf5E4AGzYfA","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O-q5X4gEXpQ83Lqmz2NIO","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              (G)ame (U)nique (Id)entifier"
                              \na GUID will be allocated for any renderable object added
                              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4KpKIwZQ4fMc6dwXTRMBf","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              height of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sOG_ZI9XBkR6hp_qi8pTj","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object is visible and within the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C60jMEbsMrHBqmIJ7rO4q","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Layer contains tileset animations

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r9Olfr-D8tr-M9bWok3s8","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              when true the renderable will be redrawn during the next update cycle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QXTeS4Tw5Vesjbg_YIwwN","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q0FJbXteO7gQsWbRknnfx","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"meJosZVherIFAdp64eMRy","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7nuH64Qj2-dVR1OKBOvZj","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              If true then physic collision and input events will not impact this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TO-Qas3ZIoC0vdYZrzgKx","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              make the renderable object persistent over level changes

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6svuBfEgkpJzR122lXMWc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KiS9HeDnwVca710EWdywa","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0sItwL_ZcG1oTrL7-B0D8","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                              The name of the renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q9c0LMdpYCTxpsMKh4QJB","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                              an event handler that is called when the renderable leave or enter a camera viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uqAXVlZUVKDIKVtHn5uVX","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              returns the parent application (or game) to which this renderable is attached to

                              ","params":[],"returns":[{"description":"

                              the parent application or undefined if not attached to any container/app

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SXEptethEvoSPciOMHBKC","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Array of points defining the Polygon
                              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fHrg2yA8V2kO-JVky2MA6","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              Position of the Renderable relative to its parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OfKQ9CPpL0bRRAFCkOTFV","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                              the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NvcZk1k78R4KPLGj1htgZ","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aOM2GJ2CPf_3KqM1iyZwT","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wd2WVlCoff0P0YO_484KV","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The Layer corresponding Tilesets

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AQA37met7VOEwi1igMlpg","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wHdHOSgHTJvroqWE382gw","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F0I4VkVYaqh8-rfcBopmx","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                              the shape type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t87Mb9px7dGeP2OuYDvaL","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether to update this object when the game is paused.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bl6kBEjAZX41RtFU11zs6","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uZ8ptVCuHv_5GAP6x_545","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                              Horizontal layer offset in tiles

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n98qM5kR1M-ZlxeONTNdO","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                              Vertical layer offset in tiles

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mibwxUivDOCHeIvxusewA","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FU_9DpHz7cEkRDLOx2nLf","name":"cellAt","brief":"","examples":[{"caption":"","code":"// return the first tile at offset 0, 0\nlet tile = layer.cellAt(0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                              Return the Tile object at the specified tile coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              x position of the tile (in Tile unit)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              x position of the tile (in Tile unit)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"boundsCheck","optional":true,"default":"true","description":"

                              check first if within the layer bounds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              corresponding tile or null if there is no defined tile at the position or if outside of the layer bounds

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NNKNQhtCQOgWfAeyWf1TV","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the rectangle position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jkEglGm13ntzBIGF7xUtJ","name":"clearTile","brief":"","examples":[{"caption":"","code":"me.game.world.getChildByType(me.TMXLayer).forEach(function(layer) {\n // clear all tiles at the given x,y coordinates\n layer.clearTile(x, y);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                              clear the tile at the specified position

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate (in map coordinates: row/column)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate (in map coordinates: row/column)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aTGkEA2J8vMzJsIaCXGux","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this rectangle

                              ","params":[],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qZuVuFik5K8sirT0308Qw","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                              layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"data","optional":false,"description":"

                              layer data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#layer})

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"tilewidth","optional":false,"description":"

                              width of each tile in pixels

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                              height of each tile in pixels

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"orientation","optional":false,"description":"

                              "isometric" or "orthogonal"

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"tilesets","optional":false,"description":"

                              tileset as defined in Tiled

                              ","dataType":{"tokens":[{"value":"TMXTilesetGroup","kind":"canonical"},{"value":"TMXTilesetGroup","kind":"link"}],"template":"%1"}},{"identifier":"z","optional":false,"description":"

                              z-index position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"32KNS35zJ9fY5gg_gt9nq","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the rectangle contains the given point or rectangle

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point, or a rectangle to test

                              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the rectangle contain the given point or rectangle, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fslp1XxZFtUk-5GWc79nk","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              copy the position and size of the given rectangle into this one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              Source rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nRUW0a2ESMtIbxSnjTPel","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              distance

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zaTN4g3k2K_JSXPzmxSpe","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer instance

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                              the viewport to (re)draw

                              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CNQSfJWGVodsQqqM0uYVW","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is identical to the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if equals

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"ydqa9NrglLecRajP7pUxR","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                              flip the renderable on the horizontal axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ddhq4w3Ga8W2J1POzALSo","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                              flip the renderable on the vertical axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"734IYMRvVH7QGjAFByi5M","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the renderable absolute position in the game world

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vCPLDCuTNvSMdsL8zB8JN","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the bounding box for this renderable

                              ","params":[],"returns":[{"description":"

                              bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Y7YfyQlbRSe6MFMKSatQU","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns a list of indices for all triangles defined in this polygon

                              ","params":[],"returns":[{"description":"

                              an array of vertex indices for all triangles forming this polygon.

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"DywfuoCpVNZDcfFD3LIGB","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the renderable alpha channel value

                              ","params":[],"returns":[{"description":"

                              current opacity value between 0 and 1

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yMQHDQt94S5Yx3AuTo1PI","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return the layer current renderer object

                              ","params":[],"returns":[{"description":"

                              renderer

                              ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"d84RT8GLJgUbjfyBqq8sj","name":"getTile","brief":"","examples":[{"caption":"","code":"// get the TMX Map Layer called \"Front layer\"\nlet layer = me.game.world.getChildByName(\"Front Layer\")[0];\n// get the tile object corresponding to the latest pointer position\nlet tile = layer.getTile(me.input.pointer.x, me.input.pointer.y);"}],"scope":"instance","type":"MethodDoc","description":"

                              Return the Tile object at the specified position

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              corresponding tile or null if there is no defined tile at the coordinate or if outside of the layer bounds

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0mtUI_88mygh6JG8WKyAu","name":"getTileById","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a new the Tile object corresponding to the given tile id

                              ","params":[{"identifier":"tileId","optional":false,"description":"

                              tileId

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                              X coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the tile object

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4qYBRgd-xATaznEyEcFAU","name":"getTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return the TileId of the Tile at the specified position

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              TileId or null if there is no Tile at the given position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PJlGYmr_-ZNRJBxmbEs98","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                              ","params":[],"returns":[{"description":"

                              true if the vertices are convex, false if not, null if not computable

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MGl9eNfWUrUNYLlu3Uz4W","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this rectangle are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"r9w_6g-yKLVYYEdKoFlvG","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable towards the given target.

                              ","params":[{"identifier":"target","optional":false,"description":"

                              the renderable or position to look at

                              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"c98JY99y2VgFrKkmWKK6H","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                              ","params":[{"identifier":"response","optional":false,"description":"

                              the collision response object

                              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                              the other renderable touching this one (a reference to response.a or response.b)

                              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                              true if the object should respond to the collision (its position and velocity will be corrected)

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"zArtpf0W0UigRGgftxiAS","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                              OnDestroy Notification function
                              \nCalled by engine before deleting the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vUXi25GS4DwxNwy9I6yow","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is intersecting with the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"yrnVVaPaFlULHj7GvdPV2","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                              restore the rendering context after drawing (automatically called by melonJS).

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"iKkn0YC5WVzAbdPvp0iis","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"tvKadBMMSaAuN96JKXuf_","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9i036S04wQ85ZcRqXkNKL","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resize the rectangle

                              ","params":[{"identifier":"w","optional":false,"description":"

                              new width of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              new height of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NdD0cCdF8WJP591NGhtNS","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yyfx1yeaItq-9JKI7sKuQ","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                              a number representing the abscissa of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                              a number representing the ordinate of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Pz78ZKaeQinrWYfCcM_B1","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point

                              ","params":[{"identifier":"v","optional":false,"description":"

                              scaling vector

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P1r5MzTGZwHfffZ2BwjRz","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the renderable alpha channel value

                              ","params":[{"identifier":"alpha","optional":false,"description":"

                              opacity value between 0.0 and 1.0

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"074IhdkkuvBWjcnBv5Mve","name":"setRenderer","brief":"","examples":[{"caption":"","code":"// use the parent map default renderer\nlet layer = new me.TMXLayer(...);\nlayer.setRenderer(map.getRenderer());"}],"scope":"instance","type":"MethodDoc","description":"

                              Set the TMX renderer for this layer object

                              ","params":[{"identifier":"renderer","optional":false,"dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JdKzdM2p8Ea_z62fj_oyl","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set new value to the rectangle shape

                              ","params":[{"identifier":"x","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the rectangle, or an array of vector defining the rectangle

                              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                              height of the rectangle, if a numeral width parameter is specified

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eQ8lX3en8cCHJVkIysW0i","name":"setTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              assign the given Tile object to the specified position

                              ","params":[{"identifier":"tile","optional":false,"description":"

                              the tile object to be assigned

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                              x coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y coordinate (in world/pixels coordinates)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the tile object

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"aRTCc7p2lJ5p-pxj1xz91","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the vertices defining this Polygon

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              array of vector or vertice defining the Polygon

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                              this instance for objecf chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"b08O0xstrFdP8ViLqFe7X","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the Polygon to the given position vector.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CKtGBdDNOzIr399BOSyIF","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply a 2d projection to this shapen

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"K6s3HGHssIpPU-OWnX1XO","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply an isometric projection to this shape

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"a_H0rIJoFcK23bPPLhlsu","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this box.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this rectangle.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fpOzlSJo5FdD1QVvV_-5t","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                              multiply the renderable currentTransform with the given matrix

                              ","params":[{"identifier":"m","optional":false,"description":"

                              the transformation matrix

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wMFs4WzzkLTpk2bAt_7I3","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              translate the Polygon by the specified offset

                              ","params":[{"identifier":"x","description":"

                              x offset or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y offset

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N_uxzhZcrLnAgr6ePrhT0","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                              merge this rectangle with another one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              other rectangle to union with

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              the union(ed) rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FC0IKbCJWarAjcA97TZAN","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update function (automatically called by melonJS).

                              ","params":[{"identifier":"dt","optional":false,"description":"

                              time since the last update in milliseconds.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              true if the renderable is dirty

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_8yjkXB5xKWTflgTHvD1n","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update the bounding box for this shape.

                              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                              update the bounds size and position in (world) absolute coordinates

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this shape bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-Z2fCTnEIzr-e3qcBVvFq","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                              called when the anchor point value is changed

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the new X value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the new Y value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"mzYrnHD-Jxv3dBelfYP0m","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

                              an Orthogonal Map Renderder

                              ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"Zq2t8qe2N1n7Xj8TNFafL","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the renderer can render the specified map or layer

                              ","params":[{"identifier":"component","optional":false,"description":"

                              TMX Map or Layer

                              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0WhOTO19wXeyMTPm-3gSf","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"map","optional":false,"description":"

                              the TMX map

                              ","dataType":{"tokens":[{"value":"TMXTileMap","kind":"canonical"},{"value":"TMXTileMap","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"A2F5xj2QcVb9YTnjfGMbS","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given tile at the specified layer

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                              X coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                              the tile object to draw

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"masFtfAlI-pYGxiSCTWns","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given TMX Layer for the given area

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                              a TMX Layer object

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                              the area of the layer to draw

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"bbX_zUUGlUZIaGfbZ7KZ-","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the bounding rect for this map renderer

                              ","params":[{"identifier":"layer","optional":true,"description":"

                              calculate the bounding rect for a specific layer (will return a new bounds object)

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E2ogWzubVxrY_1oWVELqv","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile position corresponding to the specified pixel

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PafENxWNQMmSFPxUoyi8u","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the pixel position corresponding of the specified tile

                              ","params":[{"identifier":"col","optional":false,"description":"

                              tile horizontal position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                              tile vertical position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"pj2Lsfy9Qw2eWOy-iA4Ug","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

                              The map renderer base class

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"zh3BFQQZqrTQdeLnpkZKh","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the renderer can render the specified map or layer

                              ","params":[{"identifier":"component","optional":false,"description":"

                              TMX Map or Layer

                              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sJElXveiAagRX5nZghQLP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"cols","optional":false,"description":"

                              width of the tilemap in tiles

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"rows","optional":false,"description":"

                              height of the tilemap in tiles

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tilewidth","optional":false,"description":"

                              width of each tile in pixels

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tileheight","optional":false,"description":"

                              height of each tile in pixels

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"K1C7MaPw27F2XC9Tl8oJM","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given tile at the specified layer

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                              X coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                              the tile object to draw

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PRBSeKxqcGR1hiUvNtmuc","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given TMX Layer for the given area

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                              a TMX Layer object

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                              the area of the layer to draw

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"l9wk2zrUBlYlnsv7u7Y4Z","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the bounding rect for this map renderer

                              ","params":[{"identifier":"layer","optional":true,"description":"

                              calculate the bounding rect for a specific layer (will return a new bounds object)

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JMtEiEPGvs0ksDlMVxXRY","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile position corresponding to the specified pixel

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tuPcrJSIkSLGJSfm-PR_i","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the pixel position corresponding of the specified tile

                              ","params":[{"identifier":"col","optional":false,"description":"

                              tile horizontal position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                              tile vertical position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"Fv2OxarQBBu8IBP23fqsL","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

                              a Staggered Map Renderder

                              ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"hdPiBZGG6xB_8IRFC0AmR","name":"canRender","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the renderer can render the specified map or layer

                              ","params":[{"identifier":"component","optional":false,"description":"

                              TMX Map or Layer

                              ","dataType":{"tokens":[{"value":"TMXTileMap | TMXLayer","kind":"canonical"},{"value":"TMXTileMap","kind":"link"},{"value":"TMXLayer","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rX7qgKHM0HQf8Bpru6Tnk","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"NDxmZAfWqo0y753PqSKc4","name":"drawTile","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given tile at the specified layer

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"x","optional":false,"description":"

                              X coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate where to draw the tile

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"tile","optional":false,"description":"

                              the tile object to draw

                              ","dataType":{"tokens":[{"value":"Tile","kind":"canonical"},{"value":"Tile","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"xUDaK9zq4yM6A7X5RnXVm","name":"drawTileLayer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              draw the given TMX Layer for the given area

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"layer","optional":false,"description":"

                              a TMX Layer object

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}},{"identifier":"rect","optional":false,"description":"

                              the area of the layer to draw

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"VGT7zrHqiC_mMHATG2-dv","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the bounding rect for this map renderer

                              ","params":[{"identifier":"layer","optional":true,"description":"

                              calculate the bounding rect for a specific layer (will return a new bounds object)

                              ","dataType":{"tokens":[{"value":"TMXLayer","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mn4GNphcu11E43nQ5GOeo","name":"pixelToTileCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile position corresponding to the specified pixel

                              ","params":[{"identifier":"x","optional":false,"description":"

                              X coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5uDeyWt925VMc5p4CXcrZ","name":"tileToPixelCoords","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the pixel position corresponding of the specified tile

                              ","params":[{"identifier":"col","optional":false,"description":"

                              tile horizontal position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"row","optional":false,"description":"

                              tile vertical position

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional vector object where to put the return values

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"wYWJw9C8SfEG3QrF5NaX6","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

                              a TMX Tile Map Object\nTiled QT +0.7.x format

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"7D0yP3t-picS8VN9X8Eno","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The map class.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eY6tptcS6EiC29p19lsSS","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                              width of the tilemap in tiles

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XEcoQMcodcrWsA6r6T7-l","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                              is the map an infinite map

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UknIZS4Osmr-lyLYzK3ir","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              name of the tilemap

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RS_vpX4xx8AyY07jFU72v","name":"orientation","brief":"","defaultValue":"\"orthogonal\"","scope":"instance","type":"PropertyDoc","description":"

                              the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “hexagonal”.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R14Ucd7DO_pFEscsYknvM","name":"renderorder","brief":"","defaultValue":"\"right-down\"","scope":"instance","type":"PropertyDoc","description":"

                              the order in which tiles on orthogonal tile layers are rendered.\n(valid values are "left-down", "left-up&qu...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z1RrJ9HSYcu6s7yLGkCk7","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                              height of the tilemap in tiles

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fgEKz00vLMrNIpJkeN-Kr","name":"tiledversion","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The Tiled version used to save the file (since Tiled 1.0.1).

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P5ea5f_Ho60HWkJkICg5l","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                              Tile height

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IAFX1QsFBMaEgjfPW21Qs","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                              Tile width

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YOGEtbgr9GpQht5TiBVLR","name":"version","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the TMX format version

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WeX30ulB5ghvkQBZS1prK","name":"addTo","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true, true);"}],"scope":"instance","type":"MethodDoc","description":"

                              add all the map layers and objects to the given container.\nnote : this will not automatically update the camera viewport

                              ","params":[{"identifier":"container","optional":false,"description":"

                              target container

                              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}},{"identifier":"flatten","optional":true,"default":"true","description":"

                              if true, flatten all objects into the given container, else a me.Container object will be created for each co...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"setViewportBounds","optional":true,"default":"false","description":"

                              if true, set the viewport bounds to the map size, this should be set to true especially if adding a level to the game worl...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"O_-F79x2J6QQh6hCPex-2","name":"constructor","brief":"","examples":[{"caption":"","code":"// create a new level object based on the TMX JSON object\nlet level = new me.TMXTileMap(levelId, me.loader.getTMX(levelId));\n// add the level to the game world container\nlevel.addTo(me.game.world, true);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"levelId","optional":false,"description":"

                              name of TMX map

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"data","optional":false,"description":"

                              TMX map in JSON format

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Phb97tMB4jDMPdvmJZ37h","name":"destroy","brief":"

                              destroy function, clean all allocated objects

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P6ZbMCYSBBqksdu9VLjZU","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the map bounding rect

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"eavycQn440PtKRykUAdYf","name":"getLayers","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return all the existing layers

                              ","params":[],"returns":[{"description":"

                              Array of Layers

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"TMXLayer","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"4H0hL9qGrU-YkSaIOxfJT","name":"getObjects","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return an Array of instantiated objects, based on the map object definition

                              ","params":[{"identifier":"flatten","optional":true,"default":"true","description":"

                              if true, flatten all objects into the returned array.\nwhen false, a me.Container object will be created for e...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Array of Objects

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"BSWaq2-yX1yfMXqmccQoP","name":"getRenderer","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return the map default renderer

                              ","params":[],"returns":[{"description":"

                              a TMX renderer

                              ","dataType":{"tokens":[{"value":"TMXRenderer","kind":"canonical"},{"value":"TMXRenderer","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"zEeSnHsPDXPyQUWsTEJW2","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

                              a TMX Tile Set Object

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"_9YZGjaoUzvu6JgpL8vl-","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the tileset class

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N2kTlExUBYCwTCj014slD","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Tileset contains animated tiles

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lXwORP5O73nPcXCpCBayL","name":"isCollection","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              true if the tileset is a "Collection of Image" Tileset

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9PdKLm9GCC16voTmOEXtz","name":"_lastUpdate","brief":"","access":"private","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                              Remember the last update timestamp to prevent too many animation updates

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HQKikht5ZzrJQJhHUiG1H","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                              Tileset animations

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QoXkuPYVO3cjm1UiKEA33","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"tileset","optional":false,"description":"

                              tileset data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset})

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"Uxji-YiXhKNfhBobfJ1n-","name":"contains","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if the gid belongs to the tileset

                              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"IQgTJ0V9fSMeZGVFTDFde","name":"getTileImage","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tile image from a "Collection of Image" tileset

                              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              corresponding image or undefined

                              ","dataType":{"tokens":[{"value":"Image","kind":"canonical"},{"value":"Image","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"436tCInuw3WlBfumnn0nn","name":"getTileProperties","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the properties of the specified tile

                              ","params":[{"identifier":"tileId","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"extends":[],"implements":[]},{"id":"jRaIQbzsncwCwiQRzIKmV","name":"getViewTileId","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Get the view (local) tile ID from a GID, with animations applied

                              ","params":[{"identifier":"gid","optional":false,"description":"

                              Global tile ID

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              View tile ID

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"L0zI8YecPemS3Z9D7Qq1o","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

                              an object containing all tileset

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"P_3ZvsMEVFCiazL_9z683","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add a tileset to the tileset group

                              ","params":[{"identifier":"tileset","optional":false,"dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RHwEn2MKDTQF7dkad_veM","name":"getTilesetByGid","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tileset corresponding to the specified id
                              \nwill throw an exception if no matching tileset is found

                              ","params":[{"identifier":"gid","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              corresponding tileset

                              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gpIogvsTp5fqeMp6uGaLA","name":"getTilesetByIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the tileset at the specified index

                              ","params":[{"identifier":"i","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              corresponding tileset

                              ","dataType":{"tokens":[{"value":"TMXTileset","kind":"canonical"},{"value":"TMXTileset","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"WxvxmBnbXub2CAMrfYazJ","name":"Trigger","brief":"","type":"ClassDoc","description":"

                              trigger an event when colliding with another object

                              ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"BzIR15sGpWET86zY4-bGE","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                              Define the renderable opacity
                              \nSet to zero if you do not wish an object to be drawn

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_hq-FvnmP7tJk9MVEyQxQ","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object will always update, even when outside of the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JhYwb32XKwY51S1_Z4BJ","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the parent object that contains this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0Q59fenLfOqh-gAnwqcAV","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                              The anchor point is used for attachment behavior, and/or when applying transformations.
                              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vGqt0OEQYeDIaiH9eEgjs","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aBeyi5yoRO7H5mXyQ9LSI","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O28vvGrm2XipjkJII_eMO","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                              the renderable physic body

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XcR69oj0qTvAutsD5G2Qj","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HahHuhS6b_OypEh3VlFGJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4uCICWYb8n52W_gIB9NTh","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BGjFRZMJ5surgHkfkaR7Z","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the renderable default transformation matrix

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ungzImgEVs4RxJtnZz2c0","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the depth of this renderable on the z axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lpgu7olCLlxrkVHUhnMlq","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gSGE9tmYWFr35_MDtbeG6","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              (G)ame (U)nique (Id)entifier"
                              \na GUID will be allocated for any renderable object added
                              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pO0g9W90dDS72sScfZZL8","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              height of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xuycy6fKk5zseJ4Pxe1MP","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object is visible and within the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A8nBZoxqv-Kx5J73JbQ90","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              when true the renderable will be redrawn during the next update cycle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0GOjWWrO7LBSnqBxfosTK","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"joW79UghtY6r9q5Zaudpo","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IfXpR4BsaH-wUaP73n5uB","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2LaOG7tA8gCjmotIJDalj","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              If true then physic collision and input events will not impact this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yGBax4dbp6fqCB1m8aE3-","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              make the renderable object persistent over level changes

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_asn3YJxmesTVBYBxvx0h","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g1mjNzfv7XxE-NBFGjVyW","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qdAvGJZ8KYnWp-nsAVREv","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                              The name of the renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rws6vj6Szb-1FDPkO5dCZ","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                              an event handler that is called when the renderable leave or enter a camera viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RHX8C56u2_EOyUB83Z6eH","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              returns the parent application (or game) to which this renderable is attached to

                              ","params":[],"returns":[{"description":"

                              the parent application or undefined if not attached to any container/app

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6my3FlW2sfH2NuL0hayzV","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Array of points defining the Polygon
                              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5SNY4Mt-5H_L4qqqyYJM","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              Position of the Renderable relative to its parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3rSdY2OGTkyrfq4LFVJiy","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QyPcHELKuyhK6c0sfme20","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fa788wYX9c4Rs14cjt6Fm","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tuVjsXlTPLL81tZVC5kRc","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ddjOJQab4e4YEKmJk4M3r","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                              the shape type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lY5VxHZmMecQ3Ok4GCnJc","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether to update this object when the game is paused.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SBbZ3Imn0IT6DZZgsbqvn","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tTGYX3ubwfMQVDB_4EeOh","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_c8Lr-jQ0njjlS0XjzjaU","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the rectangle position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WGuH8Ha46k9q522nNtf9G","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this rectangle

                              ","params":[],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5rwJK_5Fj8dy6HttqH_A-","name":"constructor","brief":"","examples":[{"caption":"","code":"world.addChild(new me.Trigger(\n x, y, {\n shapes: [new me.Rect(0, 0, 100, 100)],\n \"duration\" : 250,\n \"color\" : \"#000\",\n \"to\" : \"mymap2\"\n }\n));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinates of the trigger area

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinates of the trigger area

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.width","optional":true,"description":"

                              width of the trigger area

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.height","optional":true,"description":"

                              height of the trigger area

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.shapes","optional":true,"description":"

                              collision shape(s) that will trigger the event

                              ","dataType":{"tokens":[{"value":"Array | Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Polygon","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Line","kind":"link"},{"value":"Array","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1<%2> | %3<%4> | %5<%6> | %7<%8>"}},{"identifier":"settings.duration","optional":true,"description":"

                              Fade duration (in ms)

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.color","optional":true,"description":"

                              Fade color

                              ","dataType":{"tokens":[{"value":"string | Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.event","optional":true,"default":"\"level\"","description":"

                              the type of event to trigger (only "level" supported for now)

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.to","optional":true,"description":"

                              level to load if level trigger

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.container","optional":true,"description":"

                              Target container. See {@link level.load}

                              ","dataType":{"tokens":[{"value":"string | Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"string | %1"}},{"identifier":"settings.onLoaded","optional":true,"description":"

                              Level loaded callback. See {@link level.load}

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"settings.flatten","optional":true,"description":"

                              Flatten all objects into the target container. See {@link level.load}

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"settings.setViewportBounds","optional":true,"description":"

                              Resize the viewport to match the level. See {@link level.load}

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"B1DYB1-udJTnKYAo9ENpT","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the rectangle contains the given point or rectangle

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point, or a rectangle to test

                              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the rectangle contain the given point or rectangle, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"tOmMAEVwW74klW1OyaTSx","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              copy the position and size of the given rectangle into this one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              Source rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZobshtDpjDLV9xkrAwTYm","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              distance

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"j27qI1CFZv8AKE6QpYflZ","name":"draw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Draw this renderable (automatically called by melonJS).\nAll draw operations for renderable are made respectively\nto the po...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer instance

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                              the viewport to (re)draw

                              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"WW0gP0f_fCsBQKGF5_bIl","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is identical to the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if equals

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"BbYPMq7JSNvgKJ8QLFCx6","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                              flip the renderable on the horizontal axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nXfO9kB1CAtDvORvUCZBA","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                              flip the renderable on the vertical axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yN_a6HK0PKqCYANPEuEz3","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the renderable absolute position in the game world

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"N_xw0WHnVJStFTKhgy_2T","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the bounding box for this renderable

                              ","params":[],"returns":[{"description":"

                              bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"uOhLnB_-Qfw3IIYbWjfUY","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns a list of indices for all triangles defined in this polygon

                              ","params":[],"returns":[{"description":"

                              an array of vertex indices for all triangles forming this polygon.

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"r3kgJkd-d9g2J0tRw2qbB","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the renderable alpha channel value

                              ","params":[],"returns":[{"description":"

                              current opacity value between 0 and 1

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"RGmvhOXlcon4b8jzDJm_4","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                              ","params":[],"returns":[{"description":"

                              true if the vertices are convex, false if not, null if not computable

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Q0-SJQccPL7pff7JbshU-","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this rectangle are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hfiuq1UgvkGCepzNtHaF-","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable towards the given target.

                              ","params":[{"identifier":"target","optional":false,"description":"

                              the renderable or position to look at

                              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i8G10YwzsMuPFCRVyKD88","name":"onCollision","brief":"","scope":"instance","type":"MethodDoc","description":"

                              onCollision callback, triggered in case of collision with this trigger

                              ","params":[{"identifier":"response","optional":false,"description":"

                              the collision response object

                              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                              the other renderable touching this one (a reference to response.a or response.b)

                              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                              true if the object should respond to the collision (its position and velocity will be corrected)

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"CY-jhFVv2V0rb_73Sm0nh","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                              OnDestroy Notification function
                              \nCalled by engine before deleting the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IrmrDsxq9pcMVY7y2uxux","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is intersecting with the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"TIVIi2IE1378Tejdd6Ns2","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                              restore the rendering context after drawing (automatically called by melonJS).

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"_MZ5eFXMQPI0-JXcuUk4U","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"T2Knu6aJCTFUnLTx0oKPU","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WXWR__snEskMCMDvOCGNs","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resize the rectangle

                              ","params":[{"identifier":"w","optional":false,"description":"

                              new width of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              new height of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JviGJNYDVZ92g42-E5law","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6wLLkMHtne1jvOrhA8vA9","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                              a number representing the abscissa of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                              a number representing the ordinate of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SJa3d8XyglwFq0ATGv_k9","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point

                              ","params":[{"identifier":"v","optional":false,"description":"

                              scaling vector

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OFll706_4EuNHS2sZA2S6","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the renderable alpha channel value

                              ","params":[{"identifier":"alpha","optional":false,"description":"

                              opacity value between 0.0 and 1.0

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"9Rqt57EouW5Lk1kd9EfZH","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set new value to the rectangle shape

                              ","params":[{"identifier":"x","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the rectangle, or an array of vector defining the rectangle

                              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                              height of the rectangle, if a numeral width parameter is specified

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YLBxw5j4DGBRvdhoaZNu5","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the vertices defining this Polygon

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              array of vector or vertice defining the Polygon

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                              this instance for objecf chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gIU9w8haswH1QDvG6NQpt","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the Polygon to the given position vector.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vRQaJyL-jq5K-ouOOaGkv","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply a 2d projection to this shapen

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UT1iZXFXu924cf4dAnba0","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply an isometric projection to this shape

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DjxlA-mK8bWClAXdBw7S7","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this box.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this rectangle.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"chTBLRKtj3iUTjzUx4WEu","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                              multiply the renderable currentTransform with the given matrix

                              ","params":[{"identifier":"m","optional":false,"description":"

                              the transformation matrix

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bgy1RormoLgTzTcAxsLv7","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              translate the Polygon by the specified offset

                              ","params":[{"identifier":"x","description":"

                              x offset or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y offset

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"74OFk_5VbHkh156RLhRiy","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                              merge this rectangle with another one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              other rectangle to union with

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              the union(ed) rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FBF9Ji_eoRPu6Z8B0JFyQ","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update function (automatically called by melonJS).

                              ","params":[{"identifier":"dt","optional":false,"description":"

                              time since the last update in milliseconds.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              true if the renderable is dirty

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HN0QgBqIhz4Jv_ULvhcFY","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update the bounding box for this shape.

                              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                              update the bounds size and position in (world) absolute coordinates

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this shape bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UG1Mz64D0Om8yyWdr1KWV","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              trigger this event

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hgjDHHAzS4nGuUnxWT9cn","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                              called when the anchor point value is changed

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the new X value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the new Y value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"PjQXzMtJ98eqB_lKCtDqP","name":"Tween","brief":"","type":"ClassDoc","description":"

                              Javascript Tweening Engine

                              \nSuper simple, fast and easy to use tweening engine which incorporates optimised Robert Penne...","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"UhtdJeRMMo8OoaEzkrouA","name":"Easing","brief":"","access":"public","type":"EnumDoc","description":"

                              Easing Function :

                              \n

                              \n Easing.Linear.None
                              \n Easing.Quadratic.In
                              \n Easing.Quadratic.Out
                              \n Easing.Quadrati...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"290JERxfVJaN71bRBZ920","name":"Interpolation","brief":"","access":"public","type":"EnumDoc","description":"

                              Interpolation Function :

                              \n

                              \n Interpolation.Linear
                              \n Interpolation.Bezier
                              \n Interpolation.CatmullRom\n

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9rhRFQgSpoNdU2jselfS7","name":"chain","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              chain the tween

                              ","params":[{"identifier":"chainedTween","description":"

                              Tween(s) to be chained

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"upwm7wKaI53UAkuATg_qN","name":"constructor","brief":"","examples":[{"caption":"","code":"// add a tween to change the object pos.x and pos.y variable to 200 in 3 seconds\ntween = new me.Tween(myObject.pos).to({\n x: 200,\n y: 200,\n }, {\n duration: 3000,\n easing: me.Tween.Easing.Bounce.Out,\n autoStart : true\n}).onComplete(myFunc);"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"object","optional":false,"description":"

                              object on which to apply the tween

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"z6GcWpcdhQQKwxUrqTYHy","name":"delay","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              delay the tween

                              ","params":[{"identifier":"amount","optional":false,"description":"

                              delay amount expressed in milliseconds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"wGNPMWXM_0kKmn3hzdNEg","name":"easing","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              set the easing function

                              ","params":[{"identifier":"easing","optional":false,"description":"

                              easing function

                              ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l1K1LUm7cevPAX0PuFjal","name":"interpolation","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              set the interpolation function

                              ","params":[{"identifier":"interpolation","optional":false,"description":"

                              interpolation function

                              ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"m8Gr1HA4XYtnknbStTh5N","name":"onComplete","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              onComplete callback

                              ","params":[{"identifier":"onCompleteCallback","optional":false,"description":"

                              callback

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bPN1lbXz0I0AOQZWWC5xq","name":"onStart","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              onStart callback

                              ","params":[{"identifier":"onStartCallback","optional":false,"description":"

                              callback

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KFpz_8V1vytBHOqH35EYY","name":"onUpdate","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              onUpdate callback

                              ","params":[{"identifier":"onUpdateCallback","optional":false,"description":"

                              callback

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7v4So7K5Z4shhMpn0eZ7R","name":"repeat","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              Repeat the tween

                              ","params":[{"identifier":"times","optional":false,"description":"

                              amount of times the tween should be repeated

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"2Aq6RvU8rwI9ne2xA5mBJ","name":"start","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              start the tween

                              ","params":[{"identifier":"time","optional":true,"description":"

                              the current time when the tween was started

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zMBKkb7-gk3SmSroLp4az","name":"stop","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              stop the tween

                              ","params":[],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"LylKHvmTlGHiBaPxTn6DX","name":"to","brief":"","access":"public","scope":"instance","type":"MethodDoc","description":"

                              object properties to be updated and duration

                              ","params":[{"identifier":"properties","optional":false,"description":"

                              hash of properties

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"options","optional":true,"description":"

                              object of tween properties, or a duration if a numeric value is passed

                              ","dataType":{"tokens":[{"value":"object | number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"object | %1"}},{"identifier":"options.duration","optional":true,"description":"

                              tween duration

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.easing","optional":true,"description":"

                              easing function

                              ","dataType":{"tokens":[{"value":"Tween.Easing","kind":"canonical"},{"value":"Easing","kind":"link"}],"template":"%1"}},{"identifier":"options.delay","optional":true,"description":"

                              delay amount expressed in milliseconds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.yoyo","optional":true,"description":"

                              allows the tween to bounce back to their original value when finished. To be used together with repeat to create endless l...","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"options.repeat","optional":true,"description":"

                              amount of times the tween should be repeated

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"options.interpolation","optional":true,"description":"

                              interpolation function

                              ","dataType":{"tokens":[{"value":"Tween.Interpolation","kind":"canonical"},{"value":"Interpolation","kind":"link"}],"template":"%1"}},{"identifier":"options.autoStart","optional":true,"description":"

                              allow this tween to start automatically. Otherwise call me.Tween.start().

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"htop9GnV4a2UVVY9LnLYp","name":"yoyo","brief":"","access":"public","scope":"instance","see":["Tween#repeat"],"type":"MethodDoc","description":"

                              Allows the tween to bounce back to their original value when finished.\nTo be used together with repeat to create endless l...","params":[{"identifier":"yoyo","optional":false,"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this instance for object chaining

                              ","dataType":{"tokens":[{"value":"Tween","kind":"canonical"},{"value":"Tween","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]}]},{"id":"taiS7_QK1C5N6wklbxguf","name":"UIBaseElement","brief":"","type":"ClassDoc","description":"

                              This is a basic clickable and draggable container which you can use in your game UI.\nUse this for example if you want to d...","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"ESkYe2sqR2CHvad1DJC1x","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                              Define the renderable opacity
                              \nSet to zero if you do not wish an object to be drawn

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zGAV6H0JYCHRAN9kaXgLQ","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object will always update, even when outside of the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RkoaQQcWn7ml3M8U8LGER","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the parent object that contains this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T6WB9WikNYliln8qDfu02","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                              The anchor point is used for attachment behavior, and/or when applying transformations.
                              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZgrnA7FueDgi9-QzlUrHb","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the children z index should automatically be managed by the parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AqOgNJn3kgb1kHzw7r-PA","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the children list should be automatically sorted when adding a new child

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WDe83qUpAPv4sPWdE4G2n","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9F2sjYpbK8Cpaq__r_rO7","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a background color for this container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o3-araSTmnJslVNW8E89q","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EPMGHxbsrYMk-CH9o0okp","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                              the renderable physic body

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XkDgT259FpYRAaixJeSKY","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QEa44-EtZGiv_exQWJYpV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GpluXRsLoggUQ2IPw6VUX","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uTa59ZeUeTVGPGZeLPd_m","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the container draw operation should clip his children to its own bounds

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hi0LVlje11e0IrjnoBcqX","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the renderable default transformation matrix

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tKwhscGogxqnjNWXFuIc8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the depth of this renderable on the z axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sGPz9NLBtY-0o4djKz6x_","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v_6uVgjBQp-Sn-Qe39N_Q","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                              UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ySFQwEmtkxeqTvo--P9NL","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              (G)ame (U)nique (Id)entifier"
                              \na GUID will be allocated for any renderable object added
                              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wtFChcELdjbNHJ_jI5cQT","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              height of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4Fo5JvpcLzEH48WM6Wa9I","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                              Tap and hold threshold timeout in ms

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yvssQ0BNsHTVqUuUxXqVL","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              true if the pointer is over the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sGUiqNqglnneOzP8r8hkl","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object is visible and within the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DBDV8auIT9CvZZzSkfNX6","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              object can be clicked or not

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r5923UYJ1ScvuWJYJ4YTX","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              when true the renderable will be redrawn during the next update cycle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CIiNuPA30xYbsk5XKRQAM","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              object can be clicked or not

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2SxemMbFScrpDC_77GoT1","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uneRkxOdjWaC0jf8q8NRT","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9QqqL_8Q1-U4l9EHd9Fw-","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hmkocP3VSSpetvHp8JSCN","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              object can be tap and hold

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TpUKewpn-uDwwExB558C2","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              If true then physic collision and input events will not impact this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AVm8ztBGbFzA7SalIvuQV","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              make the renderable object persistent over level changes

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KuZfbk48VnkWqJUyqStlz","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wb7uBpZ9YuqSyhA8KDQwR","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uc0G_9SVwkOo1Blc5kSyH","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                              The name of the renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xt2ssEtrZI7FyrE3naTSk","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                              an event handler that is called when the renderable leave or enter a camera viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SRnARF8vdHqYI-lxzCda6","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              returns the parent application (or game) to which this renderable is attached to

                              ","params":[],"returns":[{"description":"

                              the parent application or undefined if not attached to any container/app

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NTGdX2qTc8Hj-JeA6KhUD","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Array of points defining the Polygon
                              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NHp5WdZYmNC55sCYRDvzZ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              Position of the Renderable relative to its parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TEqV47fWgHBuFhI0ye2P8","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              false if the pointer is down, or true when the pointer status is up

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UVdL_BrH80aOyiMSoN3PN","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Crlxu8uxQQ0fWmpFBrmse","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              whether the container is the root of the scene

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dB7gMBmaho4Wobzgq2XIL","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NaHFsN3tU2cCL8-a63CMX","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RAWylctgNr-4gT-4_f4NP","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fPRrvbQwpg4qsi8wYHX-c","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XcpJ1ssS8gVMGgZoTopJh","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                              the shape type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-IFnDPBzQIp37iLry8CVz","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether to update this object when the game is paused.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F8BYAtTOv0WExLweLj8FL","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0rz9QcHkjvuWBy72oOHA2","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add a child to the container
                              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                              forces the z index of the child to the specified value

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the added child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ky5TvgfhrZVXEmkMwQ4B7","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add a child to the container at the specified index
                              \n(the list won't be sorted after insertion)

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                              The index at which to insert the child

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the added child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w7Vberr88YJLOEwbjLG-0","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M29714mL1n32suE3LfM6t","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the rectangle position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rv4W5G7VMzLDMnUX00Fmg","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this rectangle

                              ","params":[],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"oXVFvVj654R4lrMy9zzPP","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                              The x position of the container

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              The y position of the container

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the container

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              height of the container

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"PzDExleDprHugspp4KNsj","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the rectangle contains the given point or rectangle

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point, or a rectangle to test

                              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the rectangle contain the given point or rectangle, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"sgAIrgKEx_fvblE6GbdNi","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              copy the position and size of the given rectangle into this one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              Source rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3NCFaq6a_OZpyaQxqmSUR","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              distance

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qi9rtE83xzUAWz9Xlfr4-","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is identical to the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if equals

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Ufi_0cVq5Lh4l3v-QbSh6","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                              flip the renderable on the horizontal axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"MDszBUmLD9XcGvBMtgdNS","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                              flip the renderable on the vertical axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_lFmRUA4syrxgw55E2ZzL","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                              The forEach() method executes a provided function once per child element.
                              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                              fnction to execute on each element

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                              value to use as this(i.e reference Object) when executing callback.

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"7mML2RWk14IL4y_eIBNYq","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the renderable absolute position in the game world

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k8Nq1uL8KHQ1goni6iV22","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the bounding box for this renderable

                              ","params":[],"returns":[{"description":"

                              bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sj3MdYnHN6GaZAhljUBsg","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the Child at the specified index

                              ","params":[{"identifier":"index","optional":false,"description":"

                              The index of the child

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the child at the specified index

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qOMd7efwHeKRsC4jQqlrM","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the child corresponding to the specified GUID
                              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                              child GUID

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              corresponding child or null

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Vq-Top6eRbjcMyInUtQCS","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the list of childs with the specified name
                              \nas defined in Tiled (Name field of the Object Properties)
                              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                              child name

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              Array of children

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"kD-UN8nKG4UQoXmZE_Bek","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                              return the child corresponding to the given property and value.
                              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                              Property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                              Value of the property

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              Array of childs

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"_k3KPLvj2whGfx5Zihd_d","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the list of childs with the specified class type

                              ","params":[{"identifier":"classType","optional":false,"description":"

                              Class type

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                              Array of children

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"hSDBAqQH3Y3UQzvb3smOw","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the index of the given Child

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                              index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HeSpx4yqcXrQwsYE09Kt3","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return all child in this container

                              ","params":[],"returns":[{"description":"

                              an array of renderable object

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"b0OJCdrsNmO1kpHrlpsrx","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns a list of indices for all triangles defined in this polygon

                              ","params":[],"returns":[{"description":"

                              an array of vertex indices for all triangles forming this polygon.

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"PeNNQdWWJygKBls6MkIg9","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the next child within the container or undefined if none

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                              child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FXWa4RgdmkxNdt5xW12JY","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the renderable alpha channel value

                              ","params":[],"returns":[{"description":"

                              current opacity value between 0 and 1

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7P_VIVJDJxhU_lrdDHN7_","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the instance of the root container (i.e. the current application World container).

                              ","params":[],"returns":[{"description":"

                              root container

                              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_hhcBvkl5ZaR7AIJC62i9","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if contains the specified Child

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"6usK30BSrJfXM-wyjnTjl","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Checks if this container is root or if it's attached to the root container.

                              ","params":[],"returns":[{"description":"

                              true if this container is root or if it's attached to the root container

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"7jipVUdtcNbJQ4JdaWVRO","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                              ","params":[],"returns":[{"description":"

                              true if the vertices are convex, false if not, null if not computable

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"hTd26xDQd0_sRtiIPNHlv","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this rectangle are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"EImXfvIDlYBQ-YL1c4NGv","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable towards the given target.

                              ","params":[{"identifier":"target","optional":false,"description":"

                              the renderable or position to look at

                              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P1qYzM-IgpgHEb17oe3lt","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the child in the group one step backward (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"TK924RtLMj2cOdCP67aj4","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the specified child the bottom (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"4EGvXyqPTnOIu_7YbnfCv","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the specified child to the top(z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"Jh51a7u0DpxVsKM4Y06Tk","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the child in the group one step forward (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"HzjUWu77HJp6Skt68iMBh","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                              a callback to be extended, triggered after a child has been added or removed

                              ","params":[{"identifier":"index","optional":false,"description":"

                              added or removed child index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"LB9MhXwH4sT_qfH1pv8TG","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed (to be extended)

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"pFWJd3MvcbkhQusi0mHUD","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                              ","params":[{"identifier":"response","optional":false,"description":"

                              the collision response object

                              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                              the other renderable touching this one (a reference to response.a or response.b)

                              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                              true if the object should respond to the collision (its position and velocity will be corrected)

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a8wcY6KnpUhZby3N0ucML","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                              OnDestroy Notification function
                              \nCalled by engine before deleting the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0C8NBwWQq-jcB0KpoC2Kz","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and held
                              \nto be extended

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KqmuSkBqZWvO2NEjawLjT","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is moved over the object

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_Yskx6PNHup8BxLXe0rKQ","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is leaving the object area

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Z_tdA6YECU5lMpuZOw8NY","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is over the object

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"GvTWGA50kWbQYw0QGHqeP","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and released (to be extended)

                              ","params":[],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"rqEaVZrr6r4o26IE4zA4e","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is intersecting with the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"Xj6NZBJn8hW9deSCj5k4_","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                              restore the rendering context after drawing (automatically called by melonJS).

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"PVOdln68GWxaYq93SBCGM","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"da6pZGQeuakIu1pADLHWZ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"o20csDAqpRpq1CadmeEL7","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be removed

                              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                              true to prevent calling child.destroy()

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"LxB6FKlF5Am8FwsyglkNF","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Removes (and optionally destroys) a child from the container.
                              \n(removal is immediate and unconditional)
                              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be removed

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                              True to prevent calling child.destroy()

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"TnReP4tPjAxGRUfuklDu-","name":"reset","brief":"

                              reset the container, removing all childrens, and reseting transforms.

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AFZG-SziQyNtdsF6Nft-q","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resize the rectangle

                              ","params":[{"identifier":"w","optional":false,"description":"

                              new width of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              new height of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nHvqy-HT8IXWTEpTrN9AL","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5AUeXdHjaIG29G7FJuO1F","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                              a number representing the abscissa of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                              a number representing the ordinate of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8U39NekU9x9cB9rw2yJX-","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point

                              ","params":[{"identifier":"v","optional":false,"description":"

                              scaling vector

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WVlLwobiTr3DNFoDAFFNd","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Automatically set the specified property of all childs to the given value

                              ","params":[{"identifier":"prop","optional":false,"description":"

                              property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                              property value

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                              recursively apply the value to child containers if true

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"IdI_NPvGjNlGOR_vsB66b","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the renderable alpha channel value

                              ","params":[{"identifier":"alpha","optional":false,"description":"

                              opacity value between 0.0 and 1.0

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"M0peoFV8vPQa8PmSAoWiT","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set new value to the rectangle shape

                              ","params":[{"identifier":"x","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the rectangle, or an array of vector defining the rectangle

                              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                              height of the rectangle, if a numeral width parameter is specified

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"t4gwntKSmOAlYdv5wItOB","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the vertices defining this Polygon

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              array of vector or vertice defining the Polygon

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                              this instance for objecf chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Xdvr9g3pCQr4sNE2BXR96","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the Polygon to the given position vector.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"dIoyG5cIk7wcTMk2Y1jW9","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Manually trigger the sort of all the childs in the container

                              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                              recursively sort all containers if true

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"7FYYobFuzTHlWha6Ziue8","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Swaps the position (z-index) of 2 children

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"IftO-7kt3whB4kdfo3DK4","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply a 2d projection to this shapen

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"H9X5KbGAw5rbMb8KqFAd1","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply an isometric projection to this shape

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"cZDmDcQUD2hW2PasVqbUM","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this box.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this rectangle.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jwcSXX1jPQcieIEutvtG2","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                              multiply the renderable currentTransform with the given matrix

                              ","params":[{"identifier":"m","optional":false,"description":"

                              the transformation matrix

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9dW7U9TPgHoUm748uULxL","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              translate the Polygon by the specified offset

                              ","params":[{"identifier":"x","description":"

                              x offset or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y offset

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E6VJDV1TJVktTmRwHNTf8","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                              merge this rectangle with another one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              other rectangle to union with

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              the union(ed) rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OgXwhjVNWDIIwzkzFDxP2","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update the bounding box for this container.

                              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                              update the bounds size and position in (world) absolute coordinates

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this container bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7h9FRJayP1dgW6ru4juDV","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              draw this renderable (automatically called by melonJS)

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer instance

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                              the viewport to (re)draw

                              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"FnRe2VTmEkBNmcpzJZ__q","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              container update function.
                              \nautomatically called by the application update loop {@link Application}

                              ","params":[{"identifier":"dt","optional":false,"description":"

                              time since the last update in milliseconds.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              true if the Container is dirty

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"MWhbI7ZiYycIHb9tTBH2Z","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                              called when the anchor point value is changed

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the new X value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the new Y value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"RhdbDcf4Iv2T_nBjJcl-B","name":"UISpriteElement","brief":"","type":"ClassDoc","description":"

                              This is a basic sprite based button which you can use in your Game UI.

                              ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"nOpK6oc6xW6oYuaLJ3cpJ","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                              Define the renderable opacity
                              \nSet to zero if you do not wish an object to be drawn

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C4gVaGXXjL7ZPdcltvLal","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object will always update, even when outside of the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QBDNwJ035qM7pRuZWLyKX","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the parent object that contains this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o6tEGHmLZw11T89I_O1L1","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                              The anchor point is used for attachment behavior, and/or when applying transformations.
                              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gPfemL1wuAfpckIKKTBZ5","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U_ZhkFTcu1TgIn08jX-Zv","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                              animation cycling speed (delay between frame in ms)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LYzCw__H4nlt7-b9FcDCm","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jxP6hquGyKLpED0QOMYm-","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dH8uJhh9F7LQUyTr1fefg","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                              the renderable physic body

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fiuxCYB3bl-8yIWCmdGNw","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RERJq6edfR-LmP3QjIiIz","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YDtjpEJX5NnVbYfZoLV5T","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X19qRBA9pTTUOwzOEKCJu","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the renderable default transformation matrix

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IfIWPODOrusrTp4e81lRm","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the depth of this renderable on the z axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hO1wW7PACXNwDT_OZu3VR","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                              if this UISpriteElement should use screen coordinates or local coordinates\n(Note: any UISpriteElement elements added to a ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vB1d9FhCrVKL4HAo2EQb8","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              (G)ame (U)nique (Id)entifier"
                              \na GUID will be allocated for any renderable object added
                              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5_aXCRDxQ59ne-Q-9oV8M","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              height of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9-gT3Y6U18SV_62ssPmkz","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                              Tap and hold threshold timeout in ms

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zTnWazyJsSm668VaNWVQK","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              true if the pointer is over the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dz_wC4CFxHTq1ylJ9of-R","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object is visible and within the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oCT9CCrccDT1TzVZQWwyS","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              object can be clicked or not

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o5FljW8o2J1nd_6kN6_v9","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              when true the renderable will be redrawn during the next update cycle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IHMW3nQqsWP8OU0H2kYMI","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gc17t-wK9CAWaliSL0Fm4","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"34BUPrjxeHGLy9iHYGM2K","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GMGFeI16rupRi4iVwBXP1","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              object can be tap and hold

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kjqsIFr3zaoqjBDbZhSWV","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              If true then physic collision and input events will not impact this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"73ePuSCvh5UVrkamQ1d-q","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              make the renderable object persistent over level changes

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lAdhub9ng-1t-65qLuF4p","name":"isVideo","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              true if this is a video sprite (e.g. a HTMLVideoElement was passed as as source)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5aeU_5GwxfdmiOM4sx2dC","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qyht3YhlJgGjp7cEo1w9V","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fza_3NptnTMkiPaGtEmep","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                              The name of the renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JWr2U0CgBL5CVI_IkeYF0","name":"offset","brief":"","defaultValue":"<0.0,0.0>","scope":"instance","type":"PropertyDoc","description":"

                              global offset for the position to draw from on the source image.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q_RfTDgC7uwMSlGDo9cVF","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                              an event handler that is called when the renderable leave or enter a camera viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pDg9O7qE8LHf4i7n3gp75","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              returns the parent application (or game) to which this renderable is attached to

                              ","params":[],"returns":[{"description":"

                              the parent application or undefined if not attached to any container/app

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Cz9JK0PRJyW-dt0hpUgve","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Array of points defining the Polygon
                              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dTN9aLlTei5UY7s0snUKr","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              Position of the Renderable relative to its parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hQo_Zg-3TQKCoFjubxEPY","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gWUjunckAmepISXkAuPmL","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wXI7H1Ti_AU9TfZs1a29A","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              The source texture object this sprite object is using

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d_GWXKb69X2FfsmCK0hj5","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dmJ0bu75DbRxeoWzlvASR","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SyQOIw2SpoXgETQ1GmVbR","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                              the shape type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8YzDRCYGOIOtKVqH2FU5o","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether to update this object when the game is paused.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Dy_S1JnxRzmpBWSU42rY","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KBVv6-uTxpW4NNu9jhO7I","name":"addAnimation","brief":"","examples":[{"caption":"","code":"// walking animation\nthis.addAnimation(\"walk\", [ 0, 1, 2, 3, 4, 5 ]);\n// standing animation\nthis.addAnimation(\"stand\", [ 11, 12 ]);\n// eating animation\nthis.addAnimation(\"eat\", [ 6, 6 ]);\n// rolling animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ]);\n// slower animation\nthis.addAnimation(\"roll\", [ 7, 8, 9, 10 ], 200);\n// or get more specific with delay for each frame. Good solution instead of repeating:\nthis.addAnimation(\"turn\", [{ name: 0, delay: 200 }, { name: 1, delay: 100 }])\n// can do this with atlas values as well:\nthis.addAnimation(\"turn\", [{ name: \"turnone\", delay: 200 }, { name: \"turntwo\", delay: 100 }])\n// define an dying animation that stop on the last frame\nthis.addAnimation(\"die\", [{ name: 3, delay: 200 }, { name: 4, delay: 100 }, { name: 5, delay: Infinity }])\n// set the standing animation as default\nthis.setCurrentAnimation(\"stand\");"}],"scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                              add an animation
                              \nFor fixed-sized cell sprite sheet, the index list must follow the\nlogic as per the following example...","params":[{"identifier":"name","optional":false,"description":"

                              animation id

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"index","optional":false,"description":"

                              list of sprite index or name defining the animation. Can also use objects to specify delay for each frame, see below

                              ","dataType":{"tokens":[{"value":"Array | Array | Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"}],"template":"%1<%2> | %3 | %4"}},{"identifier":"animationspeed","optional":true,"description":"

                              cycling speed for animation in ms

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              frame amount of frame added to the animation (delay between each frame).

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rlaxN6w750RkHplfnZ_gK","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7xMshWMDCYC2WHXSft5UU","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the rectangle position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KgxLAoCcLm3deWfolITHP","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this rectangle

                              ","params":[],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xDkxBmdt9ELXlxDW4_RZr","name":"constructor","brief":"","examples":[{"caption":"","code":" // create a basic GUI Object\n class myButton extends UISpriteElement {\n constructor(x, y) {\n // call the UISpriteElement parent constructor\n super(x, y, {\n image: \"button\",\n framewidth: 100,\n frameheight: 50\n });\n }\n\n // output something in the console\n // when the object is clicked\n onClick(event) {\n console.log(\"clicked!\");\n // don't propagate the event\n return false;\n }\n });\n\n // add the object at pos (10,10)\n world.addChild(new myButton(10,10));"}],"scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate of the UISpriteElement Object

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate of the UISpriteElement Object

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings","optional":false,"description":"

                              See {@link Sprite}

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"rkZ9TDtWdHPNm-ZaLllth","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the rectangle contains the given point or rectangle

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point, or a rectangle to test

                              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the rectangle contain the given point or rectangle, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"QwRQbmF9IrRIbGEtVZOFt","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              copy the position and size of the given rectangle into this one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              Source rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"fLpsSh9XhjU5KYalkrL1e","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              distance

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jNVo1vyVwAv8xAZ1PP2SJ","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is identical to the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if equals

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"iVOqxayjaKQuFmadFCfuN","name":"flicker","brief":"","examples":[{"caption":"","code":"// make the object flicker for 1 second\n// and then remove it\nthis.flicker(1000, function () {\n world.removeChild(this);\n});"}],"scope":"instance","type":"MethodDoc","description":"

                              make the object flicker

                              ","params":[{"identifier":"duration","optional":false,"description":"

                              expressed in milliseconds

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"callback","optional":false,"description":"

                              Function to call when flickering ends

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hkDHV9i5_ZSCIZwm1LNYz","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                              flip the renderable on the horizontal axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5X3uB88vjNDeI50BZJX4E","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                              flip the renderable on the vertical axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JaNA7CkTTI45UtlmeaR23","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the renderable absolute position in the game world

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KYbJkWSsaaBtVpBpWW6Rc","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the bounding box for this renderable

                              ","params":[],"returns":[{"description":"

                              bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KGfAgekl0NM6VcrWtwriZ","name":"getCurrentAnimationFrame","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the current animation frame index.

                              ","params":[],"returns":[{"description":"

                              current animation frame index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WanQwUDpVKFESKD9jRW23","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns a list of indices for all triangles defined in this polygon

                              ","params":[],"returns":[{"description":"

                              an array of vertex indices for all triangles forming this polygon.

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"j-kNtAb9Dg9nQqbeEvNyV","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the renderable alpha channel value

                              ","params":[],"returns":[{"description":"

                              current opacity value between 0 and 1

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"UXinkhxqJdl-gCaFuZCYW","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                              ","params":[],"returns":[{"description":"

                              true if the vertices are convex, false if not, null if not computable

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_rVV5RJkQ5SaPJp8B8qft","name":"isCurrentAnimation","brief":"","examples":[{"caption":"","code":"if (!this.isCurrentAnimation(\"walk\")) {\n // do something funny...\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              return true if the specified animation is the current one.

                              ","params":[{"identifier":"name","optional":false,"description":"

                              animation id

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0hF-V88yYUrK7CD7h8M0x","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this rectangle are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"kG11UTJZpvx8t-ZLwsPSe","name":"isFlickering","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the flickering state of the object

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"YxDT4A5mFJ0KNubP2Hlgk","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable towards the given target.

                              ","params":[{"identifier":"target","optional":false,"description":"

                              the renderable or position to look at

                              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tMfxwzumDFMvn4RH_tHCd","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed (to be extended)

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0WDj7KCUaUmqZE6L0xOAe","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                              ","params":[{"identifier":"response","optional":false,"description":"

                              the collision response object

                              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                              the other renderable touching this one (a reference to response.a or response.b)

                              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                              true if the object should respond to the collision (its position and velocity will be corrected)

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"wtYHnkyiN8kZSH-hRexzJ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                              OnDestroy Notification function
                              \nCalled by engine before deleting the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_sW23KpImThStCiZUoK0_","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and held
                              \nto be extended

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JRaN1kzzcz_g0IvFD6bs","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is leaving the object area

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2ST_zS-VkTpl24cTtYQVX","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is over the object

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"JdFtC-rengvqpOXKTN8MW","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and released (to be extended)

                              ","params":[],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qNfxUNq7TS1Ir1v0av6g5","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is intersecting with the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"24NZ0zEAVZALqDKyhwNuw","name":"pause","brief":"

                              play or resume the current animation or video

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LuDZ3-kEmfKjnG1mY1dP-","name":"play","brief":"

                              play or resume the current animation or video

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tbQHP5OYXJQloHKaU2IYI","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                              restore the rendering context after drawing (automatically called by melonJS).

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"jk7UFiDRjJM0EroQq9F3w","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"mMJjLR7A_GA8tB_G6TGvi","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BbKRWmASKWvvssoxmFoXb","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resize the rectangle

                              ","params":[{"identifier":"w","optional":false,"description":"

                              new width of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              new height of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"CHNPC7yuY9w09zDloMzef","name":"reverseAnimation","brief":"","scope":"instance","see":["Sprite#animationspeed"],"type":"MethodDoc","description":"

                              reverse the given or current animation if none is specified

                              ","params":[{"identifier":"name","optional":true,"description":"

                              animation id

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mQYdioTZPkl5fv7BOn6B7","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"thsy6uQizqdLTtGCBgtZe","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                              a number representing the abscissa of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                              a number representing the ordinate of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6asu0RgY8RKA1duBlmQFj","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point

                              ","params":[{"identifier":"v","optional":false,"description":"

                              scaling vector

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NnXWrCeTmEyEPYxqLDZzZ","name":"setAnimationFrame","brief":"","examples":[{"caption":"","code":"// reset the current animation to the first frame\nthis.setAnimationFrame();"}],"scope":"instance","type":"MethodDoc","description":"

                              force the current animation frame index.

                              ","params":[{"identifier":"index","optional":true,"default":"0","description":"

                              animation frame index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ihkfa7CmPdnoJlaJ7bQdH","name":"setCurrentAnimation","brief":"","examples":[{"caption":"","code":" // set \"walk\" animation\n this.setCurrentAnimation(\"walk\");\n\n // set \"walk\" animation if it is not the current animation\n if (this.isCurrentAnimation(\"walk\")) {\n this.setCurrentAnimation(\"walk\");\n }\n\n // set \"eat\" animation, and switch to \"walk\" when complete\n this.setCurrentAnimation(\"eat\", \"walk\");\n\n // set \"die\" animation, and remove the object when finished\n this.setCurrentAnimation(\"die\", () => {\n world.removeChild(this);\n return false; // do not reset to first frame\n });\n\n // set \"attack\" animation, and pause for a short duration\n this.setCurrentAnimation(\"die\", () => {\n this.animationpause = true;\n\n // back to \"standing\" animation after 1 second\n setTimeout(function () {\n this.setCurrentAnimation(\"standing\");\n }, 1000);\n\n return false; // do not reset to first frame\n });"}],"scope":"instance","type":"MethodDoc","description":"

                              set the current animation\nthis will always change the animation & set the frame to zero

                              ","params":[{"identifier":"name","optional":false,"description":"

                              animation id

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"resetAnim","optional":true,"description":"

                              animation id to switch to when complete, or callback

                              ","dataType":{"tokens":[{"value":"string | Function","kind":"canonical"}],"template":"string | Function"}},{"identifier":"preserve_dt","optional":true,"default":"false","description":"

                              if false will reset the elapsed time counter since last frame

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HV24xIkhEyKIfxGo2gaYM","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the renderable alpha channel value

                              ","params":[{"identifier":"alpha","optional":false,"description":"

                              opacity value between 0.0 and 1.0

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"topEo1ZUlJNhdxz_gG9Md","name":"setRegion","brief":"","examples":[{"caption":"","code":"// change the sprite to \"shadedDark13.png\";\nmySprite.setRegion(mytexture.getRegion(\"shadedDark13.png\"));"}],"scope":"instance","see":["Texture.getRegion"],"type":"MethodDoc","description":"

                              change the current texture atlas region for this sprite

                              ","params":[{"identifier":"region","optional":false,"description":"

                              typically returned through me.Texture.getRegion()

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Sprite","kind":"canonical"},{"value":"Sprite","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JiJsX6isKh5XLB6BAUryO","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set new value to the rectangle shape

                              ","params":[{"identifier":"x","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the rectangle, or an array of vector defining the rectangle

                              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                              height of the rectangle, if a numeral width parameter is specified

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KuIaNw0KtoSnKolYZCSfF","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the vertices defining this Polygon

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              array of vector or vertice defining the Polygon

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                              this instance for objecf chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y_y6NT15oeny4Sr_SRftx","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the Polygon to the given position vector.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2clboGqipA6y1r3ClmOjo","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply a 2d projection to this shapen

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ygT7st4QCNyZRQbJwfKqJ","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply an isometric projection to this shape

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hxNd7WorzSXs4Gf_bUz7-","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this box.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this rectangle.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"J-t4q7mQ43K11WhUVWa9k","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                              multiply the renderable currentTransform with the given matrix

                              ","params":[{"identifier":"m","optional":false,"description":"

                              the transformation matrix

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mZ_HZhmtv9QWkXoHOqpRy","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              translate the Polygon by the specified offset

                              ","params":[{"identifier":"x","description":"

                              x offset or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y offset

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mhi1zTRS5KzqoTQrwgj-d","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                              merge this rectangle with another one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              other rectangle to union with

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              the union(ed) rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3AxFt3Gh1jBE_2hRgWRnl","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update the bounding box for this shape.

                              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                              update the bounds size and position in (world) absolute coordinates

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this shape bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FItEZHyOkt7HarWnBckPR","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              draw this srite (automatically called by melonJS)

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer instance

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                              the viewport to (re)draw

                              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pCIpVg3CBArEmwsloXLvz","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              update function.
                              \nautomatically called by the game manager {@link game}

                              ","params":[{"identifier":"dt","optional":false,"description":"

                              time since the last update in milliseconds.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              true if the Sprite is dirty

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"l4b6Udh_iwc5s4oQaEm8N","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                              called when the anchor point value is changed

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the new X value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the new Y value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"DJeiMvdrPFHKQxMkREHv1","name":"UITextButton","brief":"","type":"ClassDoc","description":"

                              This is a basic base text button which you can use in your Game UI.

                              ","params":[],"returns":[],"extends":["UIBaseElement"],"implements":[],"members":[{"id":"Ptxv0aNjX1eG7dQ5Gczj2","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                              Define the renderable opacity
                              \nSet to zero if you do not wish an object to be drawn

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oRbX6NJ9UGQCpvKV8vNHY","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object will always update, even when outside of the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WmJGwrQYdOt9dlZb5hKzK","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the parent object that contains this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9C7Lwk6er2U_9BU2xjtjY","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                              The anchor point is used for attachment behavior, and/or when applying transformations.
                              \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lHCC1MQdQinVaPBnk16Yv","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the children z index should automatically be managed by the parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"imi5ssMuH88EElu6VlNTR","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the children list should be automatically sorted when adding a new child

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jj-uH3ouCc6MUg8mC1W4W","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                              When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F-IIr1nY32rU58RW_p8ZI","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a background color for this container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DPGoyhk31ZW1gBq9J1Vx3","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The key to bind the action to

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KmTze76a8oTVj68GrxrfS","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the bitmapText used by the UITextButton class

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WBuy2JD2M20ra4fuJoE9g","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                              the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sqXjBHPxlUpYgRQuG4kM2","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                              the renderable physic body

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P_ZCCajFM9nCDVJsD_znd","name":"borderStrokeColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The css value of a color to be used to draw the border

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m3kxQ6_E3Fobc7PAU9FOW","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              bottom coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AHCzbhRKMz0BwYox9orWi","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yrhAw4Tud8HJsHBupT0pp","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              absolute center of this rectangle on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ihKpBa6TUbM0lEHF2gvj","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the container draw operation should clip his children to its own bounds

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8RiblDNcUNA749JFOQ9ay","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the renderable default transformation matrix

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kFciEXXnRTBxbdfpNSNMW","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the depth of this renderable on the z axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QSxnVz9_KJ1pMdZKwfKjI","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dV4DGRIQyAMQHNBoAsQ26","name":"floating","brief":"","defaultValue":"true","scope":"instance","see":["Renderable.floating"],"type":"PropertyDoc","description":"

                              UI base elements use screen coordinates by default\n(Note: any child elements added to a UIBaseElement should have their fl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4rLFKjpVbnZ1hU5UZaUry","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              (G)ame (U)nique (Id)entifier"
                              \na GUID will be allocated for any renderable object added
                              \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PBOWHNPufUQZZpgqHhi7C","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              height of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DpAKk2WgXZ0Ly_RrTJhmo","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                              Tap and hold threshold timeout in ms

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lxl17ojT2MfaEIvxZ0-_X","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              true if the pointer is over the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YeBALS1jvP5R09iAG9XXi","name":"hoverOffColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The css value of a color to be used if the pointer is nothovering over the button

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RcQRURi_Ow1VCIRY1EVDe","name":"hoverOnColor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The css value of a color to be used if the pointer hovers over the button

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5WT9AOyE8uM4dIg88xf2F","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether the renderable object is visible and within the viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VU74kv6Xoc57jrrrFi4Zm","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              object can be clicked or not

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5e1jYy_wZQK0KEYYETS10","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              when true the renderable will be redrawn during the next update cycle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rac5Ee50V5dG2-HWHl_hU","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              object can be clicked or not

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SHOcQVRDkr2vFQqSD44P1","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the horizontal axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HPpgjvVKREfDO0c_8O19I","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                              returns true if this renderable is flipped on the vertical axis

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hrsUwQ-QKgcptxHvHUPe2","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                              Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vMbTdvW87PKrKuA9TYlbo","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              object can be tap and hold

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K6HyvB6pkLoWZCXrqSzhf","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              If true then physic collision and input events will not impact this renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i4rIvB23lKsZqnl-gGxPC","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              make the renderable object persistent over level changes

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UeGJ5ug42BMyWUaTNBXa3","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              left coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0AS24Z_v5LPXiMzvwXWdu","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                              A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2aDV9zZP2Ih3UVZ3bsEDM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                              The name of the renderable

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sC5_KSjmM9QHlRzEH_hQm","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                              an event handler that is called when the renderable leave or enter a camera viewport

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t9kdxvcbxhHN_OmSNjQtX","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              returns the parent application (or game) to which this renderable is attached to

                              ","params":[],"returns":[{"description":"

                              the parent application or undefined if not attached to any container/app

                              ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"g7bKaL8XZ775xj-L4s5Z7","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              Array of points defining the Polygon
                              \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A7fXwZ5vHbGgkEzOJ5uRa","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              Position of the Renderable relative to its parent container

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EVUhF9Lgv6HPeiOpHr9GZ","name":"released","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              false if the pointer is down, or true when the pointer status is up

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A4D5OaNqLtLszflxY9l17","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              right coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VxzoBxq9Abksney0AJIDU","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              whether the container is the root of the scene

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rs1ZjexL5sITXiv84OYRV","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                              (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dsdWctWMCw4i6h5lm-BHd","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                              The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MpMv84jwgWi5ZDK6X47JZ","name":"textAlign","brief":"","access":"public","defaultValue":"\"center\"","scope":"instance","type":"PropertyDoc","description":"

                              Set the default text alignment (or justification),
                              \npossible values are "left", "right", and "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_eH-kUOe-JfGbmDo_2fWn","name":"textBaseline","brief":"","access":"public","defaultValue":"\"middle\"","scope":"instance","type":"PropertyDoc","description":"

                              Set the text baseline (e.g. the Y-coordinate for the draw operation),
                              \npossible values are "top", "hang...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iQx_pvgyEc8inVsSqD1VF","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                              define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f2maplzpyLzvwv6ieQ2hN","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              top coordinate of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BOLJjwUU7PUZ6MAYEykvF","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                              the shape type (used internally)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xrXJVoDF5HPmbVUDE1sUS","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                              Whether to update this object when the game is paused.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5meZeLpozwNdCBnWetqS3","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              width of the Rectangle

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nmnDoxUKYOhQzWLlCy9e2","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add a child to the container
                              \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                              forces the z index of the child to the specified value

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the added child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"M9l6p9RChBk2P_Y8eds9N","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add a child to the container at the specified index
                              \n(the list won't be sorted after insertion)

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                              The index at which to insert the child

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the added child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gEhNsw9EyhV7oO-nbOcNC","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1zLiIcjdfmQUbpTGQwAJL","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                              center the rectangle position around the given coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the x coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the y coordinate around which to center this rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6lH0X-tDvwmMvvvkGEXyq","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clone this rectangle

                              ","params":[],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"x_3rYoehy3_z-J4Ux9oke","name":"constructor","brief":"","examples":[{"caption":"","code":" // Create a new Button\n class PlayButton extends UITextButton {\n constructor(x,y) {\n super(x,y, {\n font: 'my-font',\n text: 'Play',\n // if you omit the next two, size is calculated by the size of the text\n borderWidth: 200,\n borderHeight: 20,\n backgroundColor: '#00aa0080',\n hoverColor: '#00ff00ff'\n });\n }\n\n onClick(){\n state.change(state.PLAY);\n }\n }\n\n world.addChild(new PlayButton(15,200));"}],"scope":"instance","type":"MethodDoc","description":"

                              A Bitmap Text Button with an outlined background border, filled with background color.\nIt uses a RoundRect as background a...","params":[{"identifier":"x","optional":false,"description":"

                              x pos of the button

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y pos of the button

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.font","optional":true,"description":"

                              The name of the BitmapText font to use

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.size","optional":true,"default":"1","description":"

                              The scale factor of the BitmapText

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.text","optional":true,"description":"

                              The text to display

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.bindKey","optional":true,"description":"

                              The key to bind the action to (default: none)

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOffColor","optional":true,"default":"\"#00aa0080\"","description":"

                              The css value of a color to be used if the pointer is not hovering over the button

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.hoverOnColor","optional":true,"default":"\"#00ff00ff\"","description":"

                              The css value of a color to be used if the pointer hovers over the button

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderStrokeColor","optional":true,"default":"\"#000000\"","description":"

                              The css value of a color to be used to draw the border

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.fillStyle","optional":true,"description":"

                              The css value of a tint color to be used to tint the BitmapText

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textAlign","optional":true,"default":"\"center\"","description":"

                              horizontal text alignment

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.textBaseline","optional":true,"default":"\"middle\"","description":"

                              the text baseline

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"settings.borderWidth","optional":true,"description":"

                              Width of the button

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"settings.borderHeight","optional":true,"description":"

                              Height of the button

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"vVr8yJk8Ro0AxDREzaFy6","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                              Returns true if the rectangle contains the given point or rectangle

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point, or a rectangle to test

                              ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                              y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              True if the rectangle contain the given point or rectangle, otherwise false

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"GpUYDeGCBDCnH3w4pKEwV","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              copy the position and size of the given rectangle into this one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              Source rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              new rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tMwBhI8fR_lFUZsoAbIAm","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance to the specified target

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              distance

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5GRQ5xVtx_4SRa1i1pkjG","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is identical to the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if equals

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"3xSUmVrfatFiHWicWjPDP","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                              flip the renderable on the horizontal axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XaVuGXUV5-TYxIOPmvi9m","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                              flip the renderable on the vertical axis (around the center of the renderable)

                              ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                              true to flip this renderable.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gwwSn6eI8BYbG6s7ceIZF","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                              The forEach() method executes a provided function once per child element.
                              \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                              fnction to execute on each element

                              ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                              value to use as this(i.e reference Object) when executing callback.

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"PmNh8c-xFUU0hTYuC7iZ5","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the renderable absolute position in the game world

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mAvSed99ul5R-qaHLcDQk","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the bounding box for this renderable

                              ","params":[],"returns":[{"description":"

                              bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Rt7WOluk8Xr3i819amtJh","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the Child at the specified index

                              ","params":[{"identifier":"index","optional":false,"description":"

                              The index of the child

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              the child at the specified index

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qLU17FH-tRVRhDQe6qnxc","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the child corresponding to the specified GUID
                              \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                              child GUID

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              corresponding child or null

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"FZdAowDDIdUJ53GyPopsS","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the list of childs with the specified name
                              \nas defined in Tiled (Name field of the Object Properties)
                              \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                              child name

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              Array of children

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"NJmakL7YuqkAcCoTcbGUZ","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                              return the child corresponding to the given property and value.
                              \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                              Property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                              Value of the property

                              ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                              Array of childs

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"tsCd-yEayJyJE6gPQeG1l","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the list of childs with the specified class type

                              ","params":[{"identifier":"classType","optional":false,"description":"

                              Class type

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                              Array of children

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"Rqf_I_Mh5cJajAmPaiGqA","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the index of the given Child

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                              index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DTHrDda6CWI3MOo0VNEXZ","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return all child in this container

                              ","params":[],"returns":[{"description":"

                              an array of renderable object

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"7j1DTaRUPfQXveOpbEm0x","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns a list of indices for all triangles defined in this polygon

                              ","params":[],"returns":[{"description":"

                              an array of vertex indices for all triangles forming this polygon.

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"OxSTDO5mQWCAt_c2KAdRm","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the next child within the container or undefined if none

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                              child

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mGZZM6gXKLpDWinf6GCA0","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the renderable alpha channel value

                              ","params":[],"returns":[{"description":"

                              current opacity value between 0 and 1

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6GO6BvNYhmUrdHwrCL-Tr","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the instance of the root container (i.e. the current application World container).

                              ","params":[],"returns":[{"description":"

                              root container

                              ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AbvJqOQstTG48tn5fYf_I","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if contains the specified Child

                              ","params":[{"identifier":"child","optional":false,"description":"

                              The child object

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"KO4zog_16hAIafH6P4RHi","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Checks if this container is root or if it's attached to the root container.

                              ","params":[],"returns":[{"description":"

                              true if this container is root or if it's attached to the root container

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"5i7vM6enbR33zcezoaBVp","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                              ","params":[],"returns":[{"description":"

                              true if the vertices are convex, false if not, null if not computable

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_UPZL1F34Zkon2C7k5_Pg","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                              determines whether all coordinates of this rectangle are finite numbers.

                              ","params":[],"returns":[{"description":"

                              false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PKHKY835SAa5JKXQ0BQYV","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable towards the given target.

                              ","params":[{"identifier":"target","optional":false,"description":"

                              the renderable or position to look at

                              ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"qlVcH22Jj0Zje2GMLpQUw","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the child in the group one step backward (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"R-Cbr1MNZCPkJbCzmaq9q","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the specified child the bottom (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"4JibiRuvNFJ3g9JdB-mXt","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the specified child to the top(z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"uVy3JWiV-cfvn0m8SAbgk","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Move the child in the group one step forward (z depth).

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be moved

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"S2x-qTcnh3EtKdRvjt1Ai","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                              a callback to be extended, triggered after a child has been added or removed

                              ","params":[{"identifier":"index","optional":false,"description":"

                              added or removed child index

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"XOxUUJI4TdAj7hHssaWC1","name":"onClick","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed (to be extended)

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qbfkAnVNi9tX787GLg__Z","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                              onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                              ","params":[{"identifier":"response","optional":false,"description":"

                              the collision response object

                              ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                              the other renderable touching this one (a reference to response.a or response.b)

                              ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                              true if the object should respond to the collision (its position and velocity will be corrected)

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"JH_Mq2-0EOenpnHnEx1DS","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                              OnDestroy Notification function
                              \nCalled by engine before deleting the object

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G_J58jHXiWjYs9eAwenik","name":"onHold","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and held
                              \nto be extended

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kGdgiQjIyQwWAj9pkLOKW","name":"onMove","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is moved over the object

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"jf5287jT2VlZHhD-5hiby","name":"onOut","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is leaving the object area

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"y9yn5frpG82ibDiCkd5eR","name":"onOver","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the pointer is over the object

                              ","params":[{"identifier":"event","optional":false,"description":"

                              the event object

                              ","dataType":{"tokens":[{"value":"Pointer","kind":"canonical"},{"value":"Pointer","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"R9pgbxO4_DbJNLocGEnE0","name":"onRelease","brief":"","scope":"instance","type":"MethodDoc","description":"

                              function called when the object is pressed and released (to be extended)

                              ","params":[],"returns":[{"description":"

                              return false if we need to stop propagating the event

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"qHetiO7AnxZD6gFKXOIVf","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if this rectangle is intersecting with the specified one

                              ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_9xP8RRayD7Uf-G5cNIb6","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                              restore the rendering context after drawing (automatically called by melonJS).

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"Xl4tYT50e6Nc8nRdrtxMJ","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                              Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer object

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"-ei8nzIFytcj16QIaktRQ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"tyD8Ni1f5DxR6cDmtAEsY","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be removed

                              ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                              true to prevent calling child.destroy()

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"Ah5U4hTqgO3t3mH5hWarj","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Removes (and optionally destroys) a child from the container.
                              \n(removal is immediate and unconditional)
                              \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                              Child to be removed

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                              True to prevent calling child.destroy()

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"biQaPvlC147ryS6Mdr16h","name":"reset","brief":"

                              reset the container, removing all childrens, and reseting transforms.

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UDWTCAxXjjlVOvtdGxDVE","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resize the rectangle

                              ","params":[{"identifier":"w","optional":false,"description":"

                              new width of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              new height of the rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KPd-AXK-XHUYyoIOb4EBn","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this renderable by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Jsa6_O8qYyIaDCv5lsb1o","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                              a number representing the abscissa of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                              a number representing the ordinate of the scaling vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"5AfBLlcgPrY2s6d6oEaxz","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              scale the renderable around his anchor point

                              ","params":[{"identifier":"v","optional":false,"description":"

                              scaling vector

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nJVaednArk2y5wslk6_f8","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Automatically set the specified property of all childs to the given value

                              ","params":[{"identifier":"prop","optional":false,"description":"

                              property name

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                              property value

                              ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                              recursively apply the value to child containers if true

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"VytI_qRWZbMpvXpWRkgaM","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the renderable alpha channel value

                              ","params":[{"identifier":"alpha","optional":false,"description":"

                              opacity value between 0.0 and 1.0

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"aUeZu5nScz_ZZ9SrD6Jrf","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set new value to the rectangle shape

                              ","params":[{"identifier":"x","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              position of the Rectangle

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              width of the rectangle, or an array of vector defining the rectangle

                              ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                              height of the rectangle, if a numeral width parameter is specified

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              this rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7lE4qk4vM0wTr9l1yTnUJ","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the vertices defining this Polygon

                              ","params":[{"identifier":"vertices","optional":false,"description":"

                              array of vector or vertice defining the Polygon

                              ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                              this instance for objecf chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ATDj9eteRf8iLZXeZMzhE","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              Shifts the Polygon to the given position vector.

                              ","params":[{"identifier":"x","description":"

                              x coordinate or a vector point to shift to

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"b84XtlCuc_rCpji6a2Inl","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Manually trigger the sort of all the childs in the container

                              ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                              recursively sort all containers if true

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"LhlB0nlfvhZC8Hl0B3VJQ","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Swaps the position (z-index) of 2 children

                              ","params":[{"identifier":"child","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                              Child to be added

                              ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"x1GKfOEyNsqoi5Os8F-I_","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply a 2d projection to this shapen

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ECiwwcsW1PDVvDd-b7coY","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              apply an isometric projection to this shape

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nyKrdTp_NqTmO5z5KhVpC","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns a polygon whose edges are the same as this box.

                              ","params":[],"returns":[{"description":"

                              a new Polygon that represents this rectangle.

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"mQGg1ujcMOPxuYPYnBuiu","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                              multiply the renderable currentTransform with the given matrix

                              ","params":[{"identifier":"m","optional":false,"description":"

                              the transformation matrix

                              ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"p2jgdmGQtukpdw56cWF0R","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                              translate the Polygon by the specified offset

                              ","params":[{"identifier":"x","description":"

                              x offset or a vector point to translate by

                              ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                              y offset

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rvLPNdrz_Co7cB56S0417","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                              merge this rectangle with another one

                              ","params":[{"identifier":"rect","optional":false,"description":"

                              other rectangle to union with

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              the union(ed) rectangle

                              ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_b2cEif4DBACkFjT-cIbP","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                              update the bounding box for this container.

                              ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                              update the bounds size and position in (world) absolute coordinates

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              this container bounding box Rectangle object

                              ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6uUaD9v3RYSjeq-Qjk-zE","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              draw this renderable (automatically called by melonJS)

                              ","params":[{"identifier":"renderer","optional":false,"description":"

                              a renderer instance

                              ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                              the viewport to (re)draw

                              ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sZFLpp2cibCq6igLaAJJj","name":"update","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                              container update function.
                              \nautomatically called by the application update loop {@link Application}

                              ","params":[{"identifier":"dt","optional":false,"description":"

                              time since the last update in milliseconds.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              true if the Container is dirty

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"_JHQLhPKzQJPXXa6S83dH","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                              called when the anchor point value is changed

                              ","params":[{"identifier":"x","optional":false,"description":"

                              the new X value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              the new Y value to be set for the anchor

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"C9S5OXuaKBNuXrYCYu16S","name":"Vector2d","brief":"","type":"ClassDoc","description":"

                              a generic 2D Vector Object

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Pd78D3EWjYoctFeyySQFC","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              x value of the vector

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ND76jsgwt4T3cHEpdYgyz","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              y value of the vector

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fq-IX6cBsgF8fwjYsem23","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector values to absolute values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rHUSUwk_edrf-UXRXGahD","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add the passed vector to this vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lx42hKpGWSj1kg2bOe0OL","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle between this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DSdR4TWwu_jSXHWb4uVzJ","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Ceil the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector2d

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"nCqo3PWxmyiYS70ngoLmp","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Ceil this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zx5x0P3N8Rset0V8BvR5m","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Clamp the vector value within the specified value range

                              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              new me.Vector2d

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"I4gjKBrP2PBiVQb4gRbU0","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Clamp this vector value within the specified value range

                              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ZtdL1ouLum9Rm-J0j38go","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a clone copy of this vector

                              ","params":[],"returns":[{"description":"

                              new me.Vector2d

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"v2NtCWAr24cgEn6Avlbf1","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                              x value of the vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                              y value of the vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"hiJlZ9-GH3kabOGD_GOvu","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Copy the x,y values of the passed vector to this one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jAVIy7lHFuhEaeBn2sWud","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the cross product of this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              The cross product.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rO5mNi3qHFwAne7v9Ig8p","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance between this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6OBImEbIdZCBV5cDaXib3","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Divide this vector values by the passed value

                              ","params":[{"identifier":"n","optional":false,"description":"

                              the value to divide the vector by

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"onH18Ip0fPvJBzNsr8lUn","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the dot product of this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              The dot product.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vo7UeoLzu8oxh0nnIT2t5","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if this vector is equal to the given values or vector

                              ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"0OGosbZCYnU7ngs3q1k8S","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Floor the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector2d

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hPpqbK-V_PQ14biR_6eoX","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Floor this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AM7M83XwnthWtfEWtrWuj","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the length (magnitude) of this vector

                              ","params":[],"returns":[{"description":"

                              the length of this vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HO22qETKTe7pFJlCgcvJx","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the square length of this vector

                              ","params":[],"returns":[{"description":"

                              The length^2 of this vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4xzyjO3Q7l5A0FUVBhrJH","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Linearly interpolate between this vector and the given one.

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TrNm1JS-oCam8Q8ztfuan","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector with the maximum value between this and the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l8D8GYr6ZafBRSnxiN2mg","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector with the minimum value between this and the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X1scNb4h-VIBEHtsamxmm","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                              interpolate the position of this vector towards the given one by the given maximum step.

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}},{"identifier":"step","optional":false,"description":"

                              the maximum step per iteration (Negative values will push the vector away from the target)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1aXp7nt1v6099Of8y0aAG","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Negate the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector2d

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0J6R5rSCtHxg_4pUTKwSD","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Negate this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"iX-e0rYvmbljpofobdTnv","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              normalize this vector (scale the vector so that its magnitude is 1)

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7_Xjoce-SvaGvGYQ6ykRj","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              change this vector to be perpendicular to what it was before.
                              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_7ebYLQzI-YMDiP18AdcC","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                              project this vector on to another vector.

                              ","params":[{"identifier":"v","optional":false,"description":"

                              The vector to project onto.

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i5XSJhR99MM_DidIQqsM-","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Project this vector onto a vector of unit length.
                              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                              The unit vector to project onto.

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"60G5zWZc9Nc6nO6P8oPfF","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this vector (counter-clockwise) by the specified angle (in radians).

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zVq6lvQooMLUYcEZlSAa_","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Multiply this vector values by the given scalar

                              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"DThVtPFrrvmBPYdsbDlbt","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Multiply this vector values by the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"PNiRp3HbebPJ-5BTOth5a","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties to the given values

                              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Bi2H_rbHfoTRbHbuiTFYF","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties using the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"EcjC4WuY_dSlbBujE9gl7","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties to 0

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"IEsn2JHxjRR624jv_rwpV","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Substract the passed vector to this vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6Q7BDo3xYwBjxh3IFblgf","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Convert this vector into 2d coordinate space

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1NNPRcEo8UsfeH7pxPl9Z","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Convert this vector into isometric coordinate space

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YScGiQWqwFgdpwFs90ZWU","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                              convert the object to a string representation

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"0AWivno-80ezil8g6VPuO","name":"Vector3d","brief":"","type":"ClassDoc","description":"

                              a generic 3D Vector Object

                              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"qzmGy-6Hbvdu_Jod2yiDA","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              x value of the vector

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"25mEQ58bA3UiN0C7ujzuz","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              y value of the vector

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w35IoyipCT2Etu0O6XEEf","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              z value of the vector

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jDDXTXCGNzgNPDafyB8EE","name":"abs","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector values to absolute values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"jkdDu0_K3YnHODhtI6hOo","name":"add","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Add the passed vector to this vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"6BJbpmdJ7Kf_JvdgiBgrG","name":"angle","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the angle between this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GZ7HMalxbFzZhWohZ9cIz","name":"ceil","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Ceil the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector3d

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pYP_i3YEv2E7DGXmZntWw","name":"ceilSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Ceil this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KnhBRuBO37fuL8Zo66tot","name":"clamp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Clamp the vector value within the specified value range

                              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              new me.Vector3d

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"QlVUQZFpdw-0pTDga8383","name":"clampSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Clamp this vector value within the specified value range

                              ","params":[{"identifier":"low","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"high","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"pmCAPO_9-m73IChhxnnVa","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a clone copy of this vector

                              ","params":[],"returns":[{"description":"

                              new me.Vector3d

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0JDx1N8ETgrsS1ebnbqQk","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                              x value of the vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                              y value of the vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","description":"

                              z value of the vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"n73MzgfomrWISlfI0c020","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Copy the components of the given vector into this one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0rEs3vvklf1KonXEoecgq","name":"cross","brief":"","scope":"instance","type":"MethodDoc","description":"

                              calculate the cross product of this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"naWAusyPiygeSX-QYdMLz","name":"distance","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the distance between this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Ap3GPlujkXodM05fL0FXX","name":"div","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Divide this vector values by the passed value

                              ","params":[{"identifier":"n","optional":false,"description":"

                              the value to divide the vector by

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"no2dB6aOn4aAancSTttkp","name":"dot","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the dot product of this vector and the passed one

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              The dot product.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"u8uNin3Du7Xrd1-hqqd0S","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return true if this vector is equal to the given values or vector

                              ","params":[{"identifier":"x","optional":false,"variadic":true,"dataType":{"tokens":[{"value":"number | Vector2d | ObservableVector2d | Vector3d | ObservableVector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"},{"value":"Vector3d","kind":"link"},{"value":"ObservableVector3d","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"duE2OVlb3ZyYPond_TT43","name":"floor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Floor the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector3d

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XlAt1V76y6eIVUrrlevwQ","name":"floorSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Floor this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yEZ9B9iquEnEGWJDZXSFL","name":"length","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the length (magnitude) of this vector

                              ","params":[],"returns":[{"description":"

                              the length of this vector

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"8uF-L9NAc0btE00BYFhq_","name":"length2","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the square length of this vector

                              ","params":[],"returns":[{"description":"

                              The length^2 of this vector.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9hJ4j1p3vvZZV_nmWoDcQ","name":"lerp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Linearly interpolate between this vector and the given one.

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":false,"description":"

                              distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NLhhvbrA4UKGVrP6ADYyd","name":"maxV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector with the maximum value between this and the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ijmnEsUXuq8cbmwkBBtvW","name":"minV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Update this vector with the minimum value between this and the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"OkLX-MfrOG_sik1tlttnb","name":"moveTowards","brief":"","scope":"instance","type":"MethodDoc","description":"

                              interpolate the position of this vector on the x and y axis towards the given one by the given maximum step.

                              ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"step","optional":false,"description":"

                              the maximum step per iteration (Negative values will push the vector away from the target)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GZP_D5-GCRi46qVN638xk","name":"negate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Negate the vector values

                              ","params":[],"returns":[{"description":"

                              new me.Vector3d

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"VKZM0hRabo_lD5SKqtpw3","name":"negateSelf","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Negate this vector values

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BpZikiZF45vKCk82CcAL2","name":"normalize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              normalize this vector (scale the vector so that its magnitude is 1)

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GHP6d_FhRLpqg0lAL_cPz","name":"perp","brief":"","scope":"instance","type":"MethodDoc","description":"

                              change this vector to be perpendicular to what it was before.
                              \n(Effectively rotates it 90 degrees in a clockwise direct...","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TK08icQUjwiIErUM-BIdm","name":"project","brief":"","scope":"instance","type":"MethodDoc","description":"

                              project this vector on to another vector.

                              ","params":[{"identifier":"v","optional":false,"description":"

                              The vector to project onto.

                              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"TJtS_1ro_SLDWo26Rqtms","name":"projectN","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Project this vector onto a vector of unit length.
                              \nThis is slightly more efficient than project when deali...","params":[{"identifier":"v","optional":false,"description":"

                              The unit vector to project onto.

                              ","dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"XTPMaNGXuzUUpBDxcXMeo","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Rotate this vector (counter-clockwise) by the specified angle (in radians) around the z axis

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              The angle to rotate (in radians)

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                              an optional point to rotate around (on the same z axis)

                              ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"itp7bj7jeHUXGGYP0YmwP","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Multiply this vector values by the given scalar

                              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"1","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lvWWa3f7QDXxP0Mzzy9CZ","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Multiply this vector values by the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X3WbTDMSjCv2ZEn5s-p9-","name":"set","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties to the given values

                              ","params":[{"identifier":"x","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"z","optional":true,"default":"0","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GJ5h14ujoQzqf4Y4E_Gzi","name":"setV","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties using the passed vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"SjHd6aTN1SdYlqOzbXboD","name":"setZero","brief":"","scope":"instance","type":"MethodDoc","description":"

                              set the Vector x and y properties to 0

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kx3_omdr1uoYIxrnVc3O3","name":"sub","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Substract the passed vector to this vector

                              ","params":[{"identifier":"v","optional":false,"dataType":{"tokens":[{"value":"Vector2d | Vector3d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"03Br17ACM-IQ4hbJrJwDf","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Convert this vector into 2d coordinate space

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1FNezFLyO4rZG9Z8kUKNH","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Convert this vector into isometric coordinate space

                              ","params":[],"returns":[{"description":"

                              Reference to this object for method chaining

                              ","dataType":{"tokens":[{"value":"Vector3d","kind":"canonical"},{"value":"Vector3d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"92o679ekxP2XatMFXsgG9","name":"toString","brief":"","scope":"instance","type":"MethodDoc","description":"

                              convert the object to a string representation

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]}]},{"id":"MitX1qj9QuZKAsg3ypS90","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

                              a WebGL renderer object

                              ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"jvcUA7aSH-42bkA4TOOh7","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The list of active compositors

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pOzJAXsEr6TxXa_Asq16n","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The current compositor used by the renderer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3h1mfc2_sFZzjuPAEvJTl","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              a reference to the current shader program used by the renderer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C5Nqy9Bq_RsZeJKcYWd_Q","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The current transformation matrix used for transformations on the overall scene

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZoXG5bacVq180_JjHdi2Q","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                              the default method to sort object ("sorting", "z-buffer")

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g9sWt2KMoBYUOP3PChJQz","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              the requested video size ratio

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xQVr9vK5S4AwkOigUBtWX","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The WebGL context

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p5M6zP8n0251YBOx9h1lE","name":"GPURenderer","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                              The renderer string of the underlying graphics driver.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0taJFBQIJMHnyANWU7Ezd","name":"GPUVendor","brief":"","defaultValue":"undefined","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                              The vendor string of the underlying graphics driver.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tfRclvqmHfdD6L8zyscls","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              return the height of the canvas which this renderer draws to

                              ","params":[],"returns":[{"description":"

                              height of the system Canvas

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"Sp35TvnSvRKbkLN1f6Ex6","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                              true if the current rendering context is valid

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a9kZF1ZmLcOJqkt5s_WPI","name":"maxTextures","brief":"","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                              Maximum number of texture unit supported under the current context

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qnu_bGT3pzubZc2GhJeX7","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              The Path2D instance used by the renderer to draw primitives

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Y9mGBwOgUKEpD0yhuDT0","name":"scaleRatio","brief":"","defaultValue":"<1,1>","scope":"instance","type":"PropertyDoc","description":"

                              the scaling ratio to be applied to the main canvas

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e7Of2Ol_cSIqDu0py4Aeb","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                              The given constructor options

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EgZaC87Jkrh3BQcmr47Av","name":"type","brief":"","defaultValue":"\"Generic\"","scope":"instance","type":"PropertyDoc","description":"

                              The renderer type : Canvas, WebGL, etc...\n(override this property with a specific value when implementing a custom rendere...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"57vM2v3ovAsSNhmsalF6Q","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              the vertex buffer used by this WebGL Renderer

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2aegQsQh10d9gRrOBpXdn","name":"WebGLVersion","brief":"","defaultValue":"1","readonly":true,"scope":"instance","type":"PropertyDoc","description":"

                              The WebGL version used by this renderer (1 or 2)

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IJZabdSOhl1JqpAlwMbSn","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                              return the width of the canvas which this renderer draws to

                              ","params":[],"returns":[{"description":"

                              width of the system Canvas

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bqAV7Z_c9rc8dKdKX4tue","name":"addCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              add a new compositor to this renderer

                              ","params":[{"identifier":"compositor","optional":false,"description":"

                              a compositor instance

                              ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}},{"identifier":"name","optional":false,"default":"\"default\"","description":"

                              a name uniquely identifying this compositor

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"activate","optional":true,"default":"false","description":"

                              true if the given compositor should be set as the active one

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"EqVBdbQUBizYvkkYG5Cmc","name":"beginPath","brief":"","examples":[{"caption":"","code":"// First path\nrenderer.beginPath();\nrenderer.setColor(\"blue\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(200, 20);\nrenderer.stroke();\n// Second path\nrenderer.beginPath();\nrenderer.setColor(\"green\");\nrenderer.moveTo(20, 20);\nrenderer.lineTo(120, 120);\nrenderer.stroke();"}],"scope":"instance","type":"MethodDoc","description":"

                              starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5NEn5XmS6l_E2zBqStgdF","name":"clear","brief":"

                              Clear the frame buffer

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pgXRxTUAfhlz5ZfHrLBzb","name":"clearColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Clears the gl context with the given color.

                              ","params":[{"identifier":"color","optional":true,"default":"\"#000000\"","description":"

                              CSS color.

                              ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"opaque","optional":true,"default":"false","description":"

                              Allow transparency [default] or clear the surface completely [true]

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"osETTpiexcy9nRqMQShLx","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

                              disable (remove) the rendering mask set through setMask.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Na2hhW5cT5-UMas0HXlS","name":"clearRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Erase the pixels in the given rectangular area by setting them to transparent black (rgba(0,0,0,0)).

                              ","params":[{"identifier":"x","optional":false,"description":"

                              x axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              The rectangle's width.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              The rectangle's height.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"3RDb8OXvwTRi-ArQXPHfb","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                              clear the rendering tint set through setTint.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BV_JLJqMQLXKe4dU8GnRI","name":"clipRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              clip the given region from the original canvas. Once a region is clipped,\nall future drawing will be limited to the clippe...","params":[{"identifier":"x","optional":false,"description":"

                              x axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y axis of the coordinate for the upper-left corner of the rectangle to start clipping from.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              the width of the rectangle to start clipping from.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              the height of the rectangle to start clipping from.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"nAM6Y8dht_CX_EErcICa6","name":"closePath","brief":"

                              add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HMbLiKGQVaQPoAlvclAOr","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"options","optional":true,"description":"

                              optional parameters for the renderer

                              ","dataType":{"tokens":[{"value":"Application.Settings","kind":"canonical"},{"value":"Application.Settings","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"a74x7Mh5RqYniDsW4Ythx","name":"createPattern","brief":"","examples":[{"caption":"","code":"let tileable = renderer.createPattern(image, \"repeat\");\nlet horizontal = renderer.createPattern(image, \"repeat-x\");\nlet vertical = renderer.createPattern(image, \"repeat-y\");\nlet basic = renderer.createPattern(image, \"no-repeat\");"}],"scope":"instance","see":["ImageLayer#repeat"],"type":"MethodDoc","description":"

                              Create a pattern with the specified repetition

                              ","params":[{"identifier":"image","optional":false,"description":"

                              Source image to be used as the pattern's image

                              ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"repeat","optional":false,"description":"

                              Define how the pattern should be repeated

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                              the patterned texture created

                              ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"0FKRLsr7yaIP6SKflNFM4","name":"drawImage","brief":"","examples":[{"caption":"","code":"// Position the image on the canvas:\nrenderer.drawImage(image, dx, dy);\n// Position the image on the canvas, and specify width and height of the image:\nrenderer.drawImage(image, dx, dy, dWidth, dHeight);\n// Clip the image and position the clipped part on the canvas:\nrenderer.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);"}],"scope":"instance","type":"MethodDoc","description":"

                              Draw an image to the gl context

                              ","params":[{"identifier":"image","optional":false,"description":"

                              An element to draw into the context.

                              ","dataType":{"tokens":[{"value":"HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"SVGImageElement","kind":"canonical"},{"value":"HTMLVideoElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"ImageBitmap","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"},{"value":"VideoFrame","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7"}},{"identifier":"sx","optional":false,"description":"

                              The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sy","optional":false,"description":"

                              The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sw","optional":false,"description":"

                              The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rect...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"sh","optional":false,"description":"

                              The height of the sub-rectangle of the source image to draw into the destination context.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dx","optional":false,"description":"

                              The X coordinate in the destination canvas at which to place the top-left corner of the source image.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dy","optional":false,"description":"

                              The Y coordinate in the destination canvas at which to place the top-left corner of the source image.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dw","optional":false,"description":"

                              The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"dh","optional":false,"description":"

                              The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the imag...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wd9UuCfCkymSsNwtfxk9K","name":"drawPattern","brief":"","scope":"instance","see":["WebGLRenderer#createPattern"],"type":"MethodDoc","description":"

                              Draw a pattern within the given rectangle.

                              ","params":[{"identifier":"pattern","optional":false,"description":"

                              Pattern object

                              ","dataType":{"tokens":[{"value":"TextureAtlas","kind":"canonical"},{"value":"TextureAtlas","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                              x position where to draw the pattern

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y position where to draw the pattern

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              width of the pattern

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              height of the pattern

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"ExcHlnGx51ZzSqvlR_8E0","name":"fill","brief":"","scope":"instance","type":"MethodDoc","description":"

                              fill the given shape or the current defined path

                              ","params":[{"identifier":"shape","optional":true,"description":"

                              a shape object to fill

                              ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[],"extends":[],"implements":[]},{"id":"dwO76AtbKra7qWxPh6bkU","name":"fillArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Fill an arc at the specified coordinates with given radius, start and end points

                              ","params":[{"identifier":"x","optional":false,"description":"

                              arc center point x-axis

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              arc center point y-axis

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                              arc radius

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                              start angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                              end angle in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                              draw arc anti-clockwise

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"77S1Y5RruYakBNzaxijXt","name":"fillEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Fill an ellipse at the specified coordinates with given radius

                              ","params":[{"identifier":"x","optional":false,"description":"

                              ellipse center point x-axis

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              ellipse center point y-axis

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                              horizontal radius of the ellipse

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                              vertical radius of the ellipse

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"psI75VhrhPHdj04FwZeaS","name":"fillLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Fill a line of the given two points

                              ","params":[{"identifier":"startX","optional":false,"description":"

                              the start x coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                              the start y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                              the end x coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                              the end y coordinate

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"1mVCbz45hWdyhirmD6hLV","name":"fillPoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Draw a a point at the specified coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              x axis of the coordinate for the point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y axis of the coordinate for the point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"sLtl_i1tUT2rhl-jsGDGE","name":"fillPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Fill a me.Polygon on the screen

                              ","params":[{"identifier":"poly","optional":false,"description":"

                              the shape to draw

                              ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"feOnWay8sf-sTA3duzL2M","name":"fillRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Draw a filled rectangle at the specified coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              x axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              The rectangle's width.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              The rectangle's height.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yh2S9VFJcynEf00oyYq1h","name":"fillRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Draw a rounded filled rectangle at the specified coordinates

                              ","params":[{"identifier":"x","optional":false,"description":"

                              x axis of the coordinate for the rounded rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              y axis of the coordinate for the rounded rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              The rounded rectangle's width.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              The rounded rectangle's height.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                              The rounded corner's radius.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"IrTS3y-ioib8LMeBNmmHv","name":"flush","brief":"

                              Flush the compositor to the frame buffer

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L5udJzSpfjNhzk6T-o3XW","name":"getBlendMode","brief":"","scope":"instance","type":"MethodDoc","description":"

                              returns the current blend mode for this renderer

                              ","params":[],"returns":[{"description":"

                              blend mode

                              ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"extends":[],"implements":[]},{"id":"IxS8WyFpqDDjwnVI5LvOc","name":"getCanvas","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return a reference to the canvas which this renderer draws to

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"_CQIR0tyOmuVmq1ijv6OG","name":"getColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                              get the current fill & stroke style color.

                              ","params":[],"returns":[{"description":"

                              current global color

                              ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"KIXATW3Tp1qtP2gKb7BGP","name":"getContext","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the WebGLContext instance for the renderer\nreturn a reference to the system 2d Context

                              ","params":[],"returns":[{"description":"

                              the current WebGL context

                              ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P_ij6RAHjIBVe0VDVPJ48","name":"getContext2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the 2D Context object of the given Canvas
                              \nAlso configures anti-aliasing and blend modes based on constructor o...","params":[{"identifier":"canvas","optional":false,"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"true","description":"

                              use false to disable transparency

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"-tW7imBLACj8k2WhEs-Sk","name":"getContextGL","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Returns the WebGL Context object of the given canvas element

                              ","params":[{"identifier":"canvas","optional":false,"description":"

                              the canvas element

                              ","dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}},{"identifier":"transparent","optional":true,"default":"false","description":"

                              use true to enable transparency

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"depth","optional":true,"default":"false","description":"

                              use true to enable depth buffer testing

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                              the WebGL Context object

                              ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1RxTpVM9kwyLwmFg4Ycl_","name":"getGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                              Return the global alpha

                              ","params":[],"returns":[{"description":"

                              global alpha value

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ftL2A2xHdxK4PhGHvnojL","name":"getScreenCanvas","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getCanvas();"],"type":"MethodDoc","description":"

                              return a reference to the screen canvas

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kgVDdje0tstI_cjfqhe0n","name":"getScreenContext","brief":"","deprecated":"since 13.1.0","scope":"instance","see":["getContext();"],"type":"MethodDoc","description":"

                              return a reference to the screen canvas corresponding 2d Context
                              \n(will return buffered context if double buffering is ...","params":[],"returns":[{"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"yQRt1pzZ3_TviwP6PBiFf","name":"globalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                              return the current global alpha

                              ","params":[],"returns":[{"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"noB0WiFjfF5H7F3Ct72LU","name":"lineTo","brief":"

                              adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.

                              ","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":false},{"identifier":"y","optional":false}],"returns":[],"extends":[],"implements":[]},{"id":"245wAhRfU9FbLVCXPcxBQ","name":"moveTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                              begins a new sub-path at the point specified by the given (x, y) coordinates.

                              ","params":[{"identifier":"x","optional":false,"description":"

                              The x axis of the point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              The y axis of the point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"eusgj8xVrGhVYFwBArCIp","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                              check if the given rect or bounds overlaps with the renderer screen coordinates

                              ","params":[{"identifier":"bounds","optional":false,"dataType":{"tokens":[{"value":"Rect | Bounds","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"Bounds","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                              true if overlaps

                              ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"XoDFJr6MyL5sYdJo3vTZu","name":"rect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.

                              ","params":[{"identifier":"x","optional":false,"description":"

                              The x axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              The y axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              The rectangle's width.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              The rectangle's height.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"_gHmfj8AEcCbIIXJRyOH9","name":"reset","brief":"

                              Reset context state

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qVHd7g2zXpV9xPrE8LpHO","name":"resetTransform","brief":"

                              Reset the gl transform to identity

                              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yCyv-62Vk41f7UIuGHCT7","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                              resizes the system canvas

                              ","params":[{"identifier":"width","optional":false,"description":"

                              new width of the canvas

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              new height of the canvas

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wvzJIAWCe0tFP0cKMQKf5","name":"restore","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                              restores the most recently saved renderer state by popping the top entry in the drawing state stack

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zuEN2RC7pYtQvmpKEJbxx","name":"rotate","brief":"","examples":[{"caption":"","code":" // Rotated rectangle\n renderer.rotate((45 * Math.PI) / 180);\n renderer.setColor(\"red\");\n renderer.fillRect(10, 10, 100, 100);\n\n // Reset transformation matrix to the identity matrix\n renderer.setTransform(1, 0, 0, 1, 0, 0);"}],"scope":"instance","type":"MethodDoc","description":"

                              adds a rotation to the transformation matrix.

                              ","params":[{"identifier":"angle","optional":false,"description":"

                              the rotation angle, clockwise in radians

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q6rF1p4SGvF97iYh-8ypV","name":"roundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                              adds a rounded rectangle to the current path.

                              ","params":[{"identifier":"x","optional":false,"description":"

                              The x axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              The y axis of the coordinate for the rectangle starting point.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                              The rectangle's width.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                              The rectangle's height.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                              The corner radius.

                              ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"V3uBUNSjRKgpoxYW1D6GN","name":"save","brief":"","examples":[{"caption":"","code":" // Save the current state\n renderer.save();\n\n // apply a transform and draw a rect\n renderer.tranform(matrix);\n renderer.fillRect(10, 10, 100, 100);\n\n // Restore to the state saved by the most recent call to save()\n renderer.restore();"}],"scope":"instance","type":"MethodDoc","description":"

                              saves the entire state of the renderer by pushing the current state onto a stack.

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MD6QGNXgUJbRrEwiiW5nV","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                              adds a scaling transformation to the renderer units horizontally and/or vertically

                              ","params":[{"identifier":"x","optional":false,"description":"

                              Scaling factor in the horizontal direction. A negative value flips pixels across the vertical axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                              Scaling factor in the vertical direction. A negative value flips pixels across the horizontal axis. A value of 1 results i...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"yYLEmCTEi-bazH9D8rIki","name":"setAntiAlias","brief":"","scope":"instance","type":"MethodDoc","description":"

                              enable/disable image smoothing (scaling interpolation) for the given context

                              ","params":[{"identifier":"context","optional":false,"dataType":{"tokens":[{"value":"CanvasRenderingContext2D","kind":"canonical"},{"value":"CanvasRenderingContext2D","kind":"canonical"}],"template":"%1"}},{"identifier":"enable","optional":true,"default":"false","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"diLZ1tqmWIvXiuJv7VBCo","name":"setBlendMode","brief":"","scope":"instance","see":["https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation"],"type":"MethodDoc","description":"

                              set a blend mode for the given context.
                              \nSupported blend mode between Canvas and WebGL remderer :

                              \n
                                \n
                              • &q...","params":[{"identifier":"mode","optional":true,"default":"\"normal\"","description":"

                                blend mode : "normal", "multiply", "lighter", "additive", "screen"

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"gl","optional":true,"description":"

                                a WebGL context

                                ","dataType":{"tokens":[{"value":"WebGLRenderingContext","kind":"canonical"},{"value":"WebGLRenderingContext","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"pX1IW9B_ddERSmEToC7O9","name":"setColor","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Set the current fill & stroke style color.\nBy default, or upon reset, the value is set to #000000.

                                ","params":[{"identifier":"color","optional":false,"description":"

                                css color string.

                                ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}}],"returns":[],"extends":[],"implements":[]},{"id":"tF-C9RIsiGuKrgT6tdvUE","name":"setCompositor","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set the active compositor for this renderer

                                ","params":[{"identifier":"name","optional":false,"default":"\"default\"","description":"

                                a compositor name

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"shader","optional":true,"description":"

                                an optional shader program to be used, instead of the default one, when activating the compositor

                                ","dataType":{"tokens":[{"value":"GLShader","kind":"canonical"},{"value":"GLShader","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                an instance to the current active compositor

                                ","dataType":{"tokens":[{"value":"Compositor","kind":"canonical"},{"value":"Compositor","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"4UxQO4X1g6QXNMuM0Cmqr","name":"setGlobalAlpha","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Set the global alpha

                                ","params":[{"identifier":"alpha","optional":false,"description":"

                                0.0 to 1.0 values accepted.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"2DCTXdwAFYOhi6Smet7r7","name":"setLineWidth","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Set the line width

                                ","params":[{"identifier":"width","optional":false,"description":"

                                Line width

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"wtkC9N0_RiecaU1nNuogi","name":"setMask","brief":"","scope":"instance","see":["CanvasRenderer#clearMask"],"type":"MethodDoc","description":"

                                A mask limits rendering elements to the shape and position of the given mask object.\nIf the drawing or rendering area is l...","params":[{"identifier":"mask","optional":true,"description":"

                                a shape defining the mask to be applied

                                ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"invert","optional":true,"default":"false","description":"

                                either the given shape should define what is visible (default) or the opposite

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"v_Udo1FndQF6-tx6chfMP","name":"setProjection","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set/change the current projection matrix (WebGL only)

                                ","params":[{"identifier":"matrix","optional":false,"description":"

                                the new projection matrix

                                ","dataType":{"tokens":[{"value":"Matrix3d","kind":"canonical"},{"value":"Matrix3d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"x7zrS_dkgs3DNGSIM9vEb","name":"setTint","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set a coloring tint for sprite based renderables

                                ","params":[{"identifier":"tint","optional":false,"description":"

                                the tint color

                                ","dataType":{"tokens":[{"value":"Color","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1"}},{"identifier":"alpha","optional":true,"description":"

                                an alpha value to be applied to the tint

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"qMZcuNqUDMGbjbHCoSmOt","name":"setTransform","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Reset (overrides) the renderer transformation matrix to the\nidentity one, and then apply the given transformation matrix.

                                ","params":[{"identifier":"a","optional":false,"description":"

                                a matrix2d to transform by, or a the a component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                                the b component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                                the c component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                                the d component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                                the e component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                                the f component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"7vRruvrLboAfU85dLCPxZ","name":"setViewport","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Sets the WebGL viewport, which specifies the affine transformation of x and y from normalized device coordinates to window...","params":[{"identifier":"x ","optional":true,"default":" 0","description":"

                                x the horizontal coordinate for the lower left corner of the viewport origin

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y ","optional":true,"default":" 0","description":"

                                y the vertical coordinate for the lower left corner of the viewport origin

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w ","optional":true,"default":" width of the canvas","description":"

                                the width of viewport

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h ","optional":true,"default":" height of the canvas","description":"

                                the height of viewport

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"g3RQCIDdn8q-cJKQblmt5","name":"stroke","brief":"","scope":"instance","type":"MethodDoc","description":"

                                stroke the given shape or the current defined path

                                ","params":[{"identifier":"shape","optional":true,"description":"

                                a shape object to stroke

                                ","dataType":{"tokens":[{"value":"Rect | RoundRect | Polygon | Line | Ellipse","kind":"canonical"},{"value":"Rect","kind":"link"},{"value":"RoundRect","kind":"link"},{"value":"Polygon","kind":"link"},{"value":"Line","kind":"link"},{"value":"Ellipse","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"ZvpxUQNFdlQKAGTaqq6mu","name":"strokeArc","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke an arc at the specified coordinates with given radius, start and end points

                                ","params":[{"identifier":"x","optional":false,"description":"

                                arc center point x-axis

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                arc center point y-axis

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                                arc radius

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"start","optional":false,"description":"

                                start angle in radians

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"end","optional":false,"description":"

                                end angle in radians

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"antiClockwise","optional":true,"default":"false","description":"

                                draw arc anti-clockwise

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                also fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"db1cjFFYy9PTSRRv-Nb1d","name":"strokeEllipse","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke an ellipse at the specified coordinates with given radius

                                ","params":[{"identifier":"x","optional":false,"description":"

                                ellipse center point x-axis

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                ellipse center point y-axis

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                                horizontal radius of the ellipse

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                                vertical radius of the ellipse

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                also fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"fjRWbApeXRg6AahvcHuBG","name":"strokeLine","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke a line of the given two points

                                ","params":[{"identifier":"startX","optional":false,"description":"

                                the start x coordinate

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"startY","optional":false,"description":"

                                the start y coordinate

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endX","optional":false,"description":"

                                the end x coordinate

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"endY","optional":false,"description":"

                                the end y coordinate

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"bztFJ9Si6K9uDQYvgBjxD","name":"strokePoint","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke a Point at the specified coordinates

                                ","params":[{"identifier":"x","optional":false,"description":"

                                x axis of the coordinate for the point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                y axis of the coordinate for the point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"C77D_Hz1Mc_WUAjzUEln8","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke a me.Polygon on the screen with a specified color

                                ","params":[{"identifier":"poly","optional":false,"description":"

                                the shape to draw

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                also fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"LOZdpXwVStA_avuqnH17G","name":"strokeRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Draw a stroke rectangle at the specified coordinates

                                ","params":[{"identifier":"x","optional":false,"description":"

                                x axis of the coordinate for the rectangle starting point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                y axis of the coordinate for the rectangle starting point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                                The rectangle's width.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                                The rectangle's height.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                also fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"v5PcqPiBrTxttquJtnegS","name":"strokeRoundRect","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Stroke a rounded rectangle at the specified coordinates

                                ","params":[{"identifier":"x","optional":false,"description":"

                                x axis of the coordinate for the rounded rectangle starting point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                y axis of the coordinate for the rounded rectangle starting point.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":false,"description":"

                                The rounded rectangle's width.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":false,"description":"

                                The rounded rectangle's height.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"radius","optional":false,"description":"

                                The rounded corner's radius.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"fill","optional":true,"default":"false","description":"

                                also fill the shape with the current color if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"dbHJFzsy-szk0kMsZ6Xqw","name":"tint","brief":"","scope":"instance","type":"MethodDoc","description":"

                                tint the given image or canvas using the given color

                                ","params":[{"identifier":"src","optional":false,"description":"

                                the source image to be tinted

                                ","dataType":{"tokens":[{"value":"HTMLImageElement | HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLImageElement","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2 | %3"}},{"identifier":"color","optional":false,"description":"

                                the color that will be used to tint the image

                                ","dataType":{"tokens":[{"value":"Color | string","kind":"canonical"},{"value":"Color","kind":"link"}],"template":"%1 | string"}},{"identifier":"mode","optional":true,"default":"\"multiply\"","description":"

                                the composition mode used to tint the image

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                                a new canvas element representing the tinted image

                                ","dataType":{"tokens":[{"value":"HTMLCanvasElement | OffscreenCanvas","kind":"canonical"},{"value":"HTMLCanvasElement","kind":"canonical"},{"value":"OffscreenCanvas","kind":"canonical"}],"template":"%1 | %2"}}],"extends":[],"implements":[]},{"id":"jtkTdb1ITPtYf_DaiCPNL","name":"toBlob","brief":"","examples":[{"caption":"","code":"renderer.convertToBlob().then((blob) => console.log(blob));"}],"scope":"instance","type":"MethodDoc","description":"

                                creates a Blob object representing the last rendered frame

                                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                                A string indicating the image format

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                A Promise returning a Blob object representing the last rendered frame

                                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"HcmBDLM2LparP6XpFSKpM","name":"toDataURL","brief":"","examples":[{"caption":"","code":"renderer.toDataURL().then((dataURL) => console.log(dataURL));"}],"scope":"instance","type":"MethodDoc","description":"

                                returns a data URL containing a representation of the last frame rendered

                                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                                A string indicating the image format

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                A Promise returning a string containing the requested data URL.

                                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lVQCMakAXJ0Qc02Kx2m8S","name":"toImageBitmap","brief":"","examples":[{"caption":"","code":"renderer.transferToImageBitmap().then((image) => console.log(image));"}],"scope":"instance","type":"MethodDoc","description":"

                                creates an ImageBitmap object of the last frame rendered\n(not supported by standard Canvas)

                                ","params":[{"identifier":"type","optional":true,"default":"\"image/png\"","description":"

                                A string indicating the image format

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"quality","optional":true,"description":"

                                A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support loss...","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                A Promise returning an ImageBitmap.

                                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"rbTH9VzSGbN35D7kcws71","name":"transform","brief":"","scope":"instance","see":["{@link WebGLRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation"],"type":"MethodDoc","description":"

                                Multiply given matrix into the renderer tranformation matrix

                                ","params":[{"identifier":"a","optional":false,"description":"

                                a matrix2d to transform by, or a the a component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"Matrix2d | number","kind":"canonical"},{"value":"Matrix2d","kind":"link"},{"value":"number","kind":"canonical"}],"template":"%1 | %2"}},{"identifier":"b","optional":false,"description":"

                                the b component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"c","optional":false,"description":"

                                the c component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"d","optional":false,"description":"

                                the d component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"e","optional":false,"description":"

                                the e component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"f","optional":false,"description":"

                                the f component to multiply the current matrix by

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"CqeudGjNdfTQFzgvT9226","name":"translate","brief":"","scope":"instance","type":"MethodDoc","description":"

                                adds a translation transformation to the current matrix.

                                ","params":[{"identifier":"x","optional":false,"description":"

                                Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                Distance to move in the vertical direction. Positive values are down, and negative are up.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"EpQRZQ5tUlk-Zq6sDzfK_","name":"World","brief":"","type":"ClassDoc","description":"

                                an object representing the physic world, and responsible for managing and updating all childs and physics

                                ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"ceojAAXJkkvvBFQGSjPK8","name":"alpha","brief":"","defaultValue":"1.0","scope":"instance","see":["Renderable#setOpacity","Renderable#getOpacity"],"type":"PropertyDoc","description":"

                                Define the renderable opacity
                                \nSet to zero if you do not wish an object to be drawn

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ayNfFL-N-kvMrAc-v2e43","name":"alwaysUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Whether the renderable object will always update, even when outside of the viewport

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xoOR7BRPkXPgSGr0Ey4JI","name":"ancestor","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                                a reference to the parent object that contains this renderable

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y-n1nwVG5y2hGRaP43uBF","name":"anchorPoint","brief":"","defaultValue":"<0.5,0.5>","scope":"instance","type":"PropertyDoc","description":"

                                The anchor point is used for attachment behavior, and/or when applying transformations.
                                \nThe coordinate system places t...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7R9jW7NgQR7OcIQmP-euY","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the application (game) this physic world belong to

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nA7JnccsK6g-tTgwlaL0i","name":"autoDepth","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                                Specify if the children z index should automatically be managed by the parent container

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j-RmRYfaQxmtZ1EeU75TH","name":"autoSort","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                                Specify if the children list should be automatically sorted when adding a new child

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FnwRyNOeKsdOIXzUKz1gV","name":"autoTransform","brief":"","defaultValue":"true","examples":[{"caption":"","code":"// enable \"automatic\" transformation when the object is activated\nonActivateEvent: function () {\n // reset the transformation matrix\n this.currentTransform.identity();\n // ensure the anchor point is the renderable center\n this.anchorPoint.set(0.5, 0.5);\n // enable auto transform\n this.autoTransform = true;\n ....\n}"}],"scope":"instance","type":"PropertyDoc","description":"

                                When enabled, an object container will automatically apply\nany defined transformation before calling the child draw method...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6RY6jH0P_L7qOAUYxxOOg","name":"backgroundColor","brief":"","defaultValue":"(0, 0, 0, 0.0)","examples":[{"caption":"","code":"// add a red background color to this container\nthis.backgroundColor.setColor(255, 0, 0);"}],"scope":"instance","type":"PropertyDoc","description":"

                                define a background color for this container

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZCtISwq7f_wqlAIoLIzyV","name":"blendMode","brief":"","defaultValue":"\"normal\"","scope":"instance","see":["CanvasRenderer#setBlendMode","WebGLRenderer#setBlendMode"],"type":"PropertyDoc","description":"

                                the blend mode to be applied to this renderable (see renderer setBlendMode for available blend mode)

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V2Ha7XJQssnUmzLvTt9gW","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the active physic bodies in this simulation

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z5lCJJmoVClaWVJw1ub7_","name":"body","brief":"","examples":[{"caption":"","code":" // define a new Player Class\n class PlayerEntity extends me.Sprite {\n // constructor\n constructor(x, y, settings) {\n // call the parent constructor\n super(x, y , settings);\n\n // define a basic walking animation\n this.addAnimation(\"walk\", [...]);\n // define a standing animation (using the first frame)\n this.addAnimation(\"stand\", [...]);\n // set the standing animation as default\n this.setCurrentAnimation(\"stand\");\n\n // add a physic body\n this.body = new me.Body(this);\n // add a default collision shape\n this.body.addShape(new me.Rect(0, 0, this.width, this.height));\n // configure max speed, friction, and initial force to be applied\n this.body.setMaxVelocity(3, 15);\n this.body.setFriction(0.4, 0);\n this.body.force.set(3, 0);\n this.isKinematic = false;\n\n // set the display to follow our position on both axis\n me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);\n }\n\n ...\n\n }"}],"scope":"instance","type":"PropertyDoc","description":"

                                the renderable physic body

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_GTzvrWGHszIlIZCLVhYT","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                bottom coordinate of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ri6P9veWLeeVUp8j9MGlf","name":"broadphase","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the instance of the game world quadtree used for broadphase (used by the builtin physic and pointer event implementation)

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"No3cIPkAFofhkZ7hdCb-u","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                absolute center of this rectangle on the horizontal axis

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NJvVS6CriD25GeVkPXZmF","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                absolute center of this rectangle on the vertical axis

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sTRVonXYzx5unuVj24-mf","name":"clipping","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Specify if the container draw operation should clip his children to its own bounds

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rYGkMvExEh32Z8n_47f9c","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the renderable default transformation matrix

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PRGVcwNQfsAhQJlPITQXg","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the depth of this renderable on the z axis

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ie3yc8OYSwstU7pHSdzhu","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                the collision detector instance used by this world instance

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m2yNdSZdQLENQwQ0Mh5kF","name":"enableChildBoundsUpdate","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Specify if the container bounds should automatically take in account\nall child bounds when updated (this is expensive and ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"heTZ8PCgHDCbT-xCVpXkD","name":"floating","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                If true, this renderable will be rendered using screen coordinates,\nas opposed to world coordinates. Use this, for example...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zTiOJsyAMkkdXufqXDg-8","name":"fps","brief":"","defaultValue":"60","scope":"instance","see":["timer.maxfps"],"type":"PropertyDoc","description":"

                                the rate at which the game world is updated,\nmay be greater than or lower than the display fps

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SJABhCxQKs6tOZX3-Uxwp","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

                                world gravity

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JMQJE8YOSCHIFtiIWyqR","name":"GUID","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                (G)ame (U)nique (Id)entifier"
                                \na GUID will be allocated for any renderable object added
                                \nto an object contain...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VXB2VFtiFaw6ho6tbQM-Z","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                height of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vkt2aH4H6umNmqpQ7o1C5","name":"inViewport","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Whether the renderable object is visible and within the viewport

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6kJTkoQyyrFmK8KsDJXri","name":"isDirty","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                                when true the renderable will be redrawn during the next update cycle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AD6upQDcquJA_Nr0-gtpG","name":"isFlippedX","brief":"","access":"public","scope":"instance","see":["Renderable#flipX"],"type":"PropertyDoc","description":"

                                returns true if this renderable is flipped on the horizontal axis

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EolKqH-mCjbtDli-La8EN","name":"isFlippedY","brief":"","access":"public","scope":"instance","see":["Renderable#flipY"],"type":"PropertyDoc","description":"

                                returns true if this renderable is flipped on the vertical axis

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S5FL27j15ghVHxD4b4eAa","name":"isFloating","brief":"","scope":"instance","see":["Renderable#floating"],"type":"PropertyDoc","description":"

                                Whether the renderable object is floating (i.e. used screen coordinates), or contained in a floating parent container

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9xMe5_awW66mkYYuf2dmQ","name":"isKinematic","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                                If true then physic collision and input events will not impact this renderable

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1TzcVCEqUmJ-JaY9-xOWM","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                make the renderable object persistent over level changes

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8qV-c4vS5iq7LspO8g1GP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                left coordinate of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iDDPgjIeUCheLjt2K_eIM","name":"mask","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"// apply a mask in the shape of a Star\nmyNPCSprite.mask = new me.Polygon(myNPCSprite.width / 2, 0, [\n // draw a star\n {x: 0, y: 0},\n {x: 14, y: 30},\n {x: 47, y: 35},\n {x: 23, y: 57},\n {x: 44, y: 90},\n {x: 0, y: 62},\n {x: -44, y: 90},\n {x: -23, y: 57},\n {x: -47, y: 35},\n {x: -14, y: 30}\n]);"}],"scope":"instance","type":"PropertyDoc","description":"

                                A mask limits rendering elements to the shape and position of the given mask object.\nSo, if the renderable is larger than ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2grJwf2LtklBWYdOTPWL1","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                                The name of the renderable

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s1dXF8pLKQjW4EzWPyz06","name":"onVisibilityChange","brief":"","defaultValue":"undefined","examples":[{"caption":"","code":"this.onVisibilityChange = function(inViewport) {\n if (inViewport === true) {\n console.log(\"object has entered the in a camera viewport!\");\n }\n};"}],"scope":"instance","type":"PropertyDoc","description":"

                                an event handler that is called when the renderable leave or enter a camera viewport

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2nn1WX21JxgnMKG2GQGhe","name":"parentApp","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                returns the parent application (or game) to which this renderable is attached to

                                ","params":[],"returns":[{"description":"

                                the parent application or undefined if not attached to any container/app

                                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"E2msLB3G4ovlFj952nNH2","name":"physic","brief":"","defaultValue":"\"builtin\"","examples":[{"caption":"","code":"// disable builtin physic\nme.game.world.physic = \"none\";"}],"scope":"instance","see":["Application.Settings.physic"],"type":"PropertyDoc","description":"

                                the physic engine used by melonJS

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"chb3v8T5U8Y7O6aSINfTH","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                Array of points defining the Polygon
                                \nNote: If you manually change points, you must call...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ok34TM6H6btutzp8ilnqq","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                                Position of the Renderable relative to its parent container

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OHLLiIeWZZzWCOqh7-wKA","name":"preRender","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Enabled pre-rendering for all tile layers.
                                \nIf false layers are rendered dynamically, if true layers are first fully r...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yHuAh5U-MFyyS3Wg_bcSa","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                right coordinate of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BO2JtIz0up5V4Pz0AEIw_","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                whether the container is the root of the scene

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QwaozTjQ8hzXL4HnOodeb","name":"shader","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                                (Experimental) an optional shader, to be used instead of the default built-in one, when drawing this renderable (WebGL onl...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eNEeun0b_CMyFWGldzK5b","name":"sortOn","brief":"","defaultValue":"\"z\"","scope":"instance","type":"PropertyDoc","description":"

                                The property of the child object that should be used to sort on this container\nvalue : "x", "y", "...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y5HV_WDpAzCav8e1OexbW","name":"tint","brief":"","defaultValue":"(255, 255, 255)","examples":[{"caption":"","code":"// add a red tint to this renderable\nthis.tint.setColor(255, 128, 128);\n// remove the tint\nthis.tint.setColor(255, 255, 255);"}],"scope":"instance","type":"PropertyDoc","description":"

                                define a tint for this renderable. a (255, 255, 255) r, g, b value will remove the tint effect.

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"605yIMKg9cSvaapvOBXmL","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                top coordinate of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7Tx7oJ9p9kKqIaKmPyvYs","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                                the shape type (used internally)

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dAYc6G924LsTpk8KBppP6","name":"updateWhenPaused","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                                Whether to update this object when the game is paused.

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VEKx83gTgmYZgb4FjYWCv","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                                width of the Rectangle

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yIXOZMoEqVbuiV34TlvKL","name":"addBody","brief":"","scope":"instance","see":["Container.addChild"],"type":"MethodDoc","description":"

                                Add a physic body to the game world

                                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                this game world

                                ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"imEBy_h0FrS85Nw8HF53x","name":"addChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Add a child to the container
                                \nif auto-sort is disable, the object will be appended at the bottom of the list.\nAdding a...","params":[{"identifier":"child","optional":false,"description":"

                                Child to be added

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"z","optional":true,"description":"

                                forces the z index of the child to the specified value

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                the added child

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hz-PNjKInubLA99e9M6M-","name":"addChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Add a child to the container at the specified index
                                \n(the list won't be sorted after insertion)

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be added

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"index","optional":false,"description":"

                                The index at which to insert the child

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                the added child

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"l31fZJkbh6jNP0Z2AsNcZ","name":"angleTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                                return the angle to the specified target

                                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                                angle in radians

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"gckUm6d6bEyl8-im-o2-n","name":"centerOn","brief":"","scope":"instance","type":"MethodDoc","description":"

                                center the rectangle position around the given coordinates

                                ","params":[{"identifier":"x","optional":false,"description":"

                                the x coordinate around which to center this rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                the y coordinate around which to center this rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                this rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"xJwDtvxNJbkHGPlPCv_VW","name":"clone","brief":"","scope":"instance","type":"MethodDoc","description":"

                                clone this rectangle

                                ","params":[],"returns":[{"description":"

                                new rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"k8M6dDnx22qkxsljh2w7H","name":"constructor","brief":"","scope":"instance","type":"MethodDoc","params":[{"identifier":"x","optional":true,"default":"0","description":"

                                position of the container (accessible via the inherited pos.x property)

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"0","description":"

                                position of the container (accessible via the inherited pos.y property)

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"width","optional":true,"default":"game.viewport.width","description":"

                                width of the container

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"height","optional":true,"default":"game.viewport.height","description":"

                                height of the container

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"rYCb6NNdJ0-2Sd1qH0oxz","name":"contains","brief":"","examples":[{"caption":"","code":"if (rect.contains(10, 10)) {\n // do something\n}\n// or\nif (rect.contains(myVector2d)) {\n // do something\n}\nif (rect.contains(myRect)) {\n // do something\n}"}],"scope":"instance","type":"MethodDoc","description":"

                                Returns true if the rectangle contains the given point or rectangle

                                ","params":[{"identifier":"x","description":"

                                x coordinate or a vector point, or a rectangle to test

                                ","dataType":{"tokens":[{"value":"number | Vector2d | Rect","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Rect","kind":"link"}],"template":"%1 | %2 | %3"}},{"identifier":"y","optional":true,"description":"

                                y coordinate

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                True if the rectangle contain the given point or rectangle, otherwise false

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"fKbSYeY5NX627p6FfeXj2","name":"copy","brief":"","scope":"instance","type":"MethodDoc","description":"

                                copy the position and size of the given rectangle into this one

                                ","params":[{"identifier":"rect","optional":false,"description":"

                                Source rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                new rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"brimhOXZ4CrlKGaTgXvDT","name":"distanceTo","brief":"","scope":"instance","type":"MethodDoc","description":"

                                return the distance to the specified target

                                ","params":[{"identifier":"target","optional":false,"dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                                distance

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"06pnGpyWcnma6L4_hv6O9","name":"equals","brief":"","scope":"instance","type":"MethodDoc","description":"

                                check if this rectangle is identical to the specified one

                                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                true if equals

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"a7jv8jphVFqf8Kf5fiY0K","name":"flipX","brief":"","scope":"instance","see":["Matrix2d#scaleX"],"type":"MethodDoc","description":"

                                flip the renderable on the horizontal axis (around the center of the renderable)

                                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                                true to flip this renderable.

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"NDnEi-WWTdCQ2genPqnio","name":"flipY","brief":"","scope":"instance","see":["Matrix2d#scaleY"],"type":"MethodDoc","description":"

                                flip the renderable on the vertical axis (around the center of the renderable)

                                ","params":[{"identifier":"flip","optional":true,"default":"true","description":"

                                true to flip this renderable.

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"y9MJii2fLSEXyucbvc1Tw","name":"forEach","brief":"","examples":[{"caption":"","code":"// iterate through all children of this container\ncontainer.forEach((child) => {\n // do something with the child\n child.doSomething();\n});\ncontainer.forEach((child, index) => { ... });\ncontainer.forEach((child, index, array) => { ... });\ncontainer.forEach((child, index, array) => { ... }, thisArg);"}],"scope":"instance","type":"MethodDoc","description":"

                                The forEach() method executes a provided function once per child element.
                                \nthe callback function is invoked with three...","params":[{"identifier":"callback","optional":false,"description":"

                                fnction to execute on each element

                                ","dataType":{"tokens":[{"value":"Function","kind":"canonical"}],"template":"Function"}},{"identifier":"thisArg","optional":true,"description":"

                                value to use as this(i.e reference Object) when executing callback.

                                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[],"extends":[],"implements":[]},{"id":"o4888L1xw6jgVgjN9q-lv","name":"getAbsolutePosition","brief":"","scope":"instance","type":"MethodDoc","description":"

                                return the renderable absolute position in the game world

                                ","params":[],"returns":[{"dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"vBvfkbiNz9R7HoY6ljOBG","name":"getBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                                returns the bounding box for this renderable

                                ","params":[],"returns":[{"description":"

                                bounding box Rectangle object

                                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"GTOrC6-yb49ubPNea679u","name":"getChildAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns the Child at the specified index

                                ","params":[{"identifier":"index","optional":false,"description":"

                                The index of the child

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                the child at the specified index

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"kY8hjHfhk8ArDK2nH7Qf9","name":"getChildByGUID","brief":"","scope":"instance","type":"MethodDoc","description":"

                                return the child corresponding to the specified GUID
                                \nnote : avoid calling this function every frame since\nit parses th...","params":[{"identifier":"guid","optional":false,"description":"

                                child GUID

                                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                                corresponding child or null

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lrAFmxtOJ-pCD0d5NWd4a","name":"getChildByName","brief":"","scope":"instance","type":"MethodDoc","description":"

                                returns the list of childs with the specified name
                                \nas defined in Tiled (Name field of the Object Properties)
                                \nnote ...","params":[{"identifier":"name","optional":false,"description":"

                                child name

                                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                                Array of children

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"27u4pFTnXvMKhnt5xMXpM","name":"getChildByProp","brief":"","examples":[{"caption":"","code":" // get the first child object called \"mainPlayer\" in a specific container :\n let ent = myContainer.getChildByProp(\"name\", \"mainPlayer\");\n\n // or query the whole world :\n let ent = container.getChildByProp(\"name\", \"mainPlayer\");\n\n // partial property matches are also allowed by using a RegExp.\n // the following matches \"redCOIN\", \"bluecoin\", \"bagOfCoins\", etc :\n let allCoins = container.getChildByProp(\"name\", /coin/i);\n\n // searching for numbers or other data types :\n let zIndex10 = container.getChildByProp(\"z\", 10);\n let inViewport = container.getChildByProp(\"inViewport\", true);"}],"scope":"instance","type":"MethodDoc","description":"

                                return the child corresponding to the given property and value.
                                \nnote : avoid calling this function every frame since\ni...","params":[{"identifier":"prop","optional":false,"description":"

                                Property name

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                                Value of the property

                                ","dataType":{"tokens":[{"value":"string | RegExp | number | boolean","kind":"canonical"},{"value":"RegExp","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"string | %1 | %2 | boolean"}}],"returns":[{"description":"

                                Array of childs

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"YGSU8gIlex22OrjpGDSk_","name":"getChildByType","brief":"","scope":"instance","type":"MethodDoc","description":"

                                returns the list of childs with the specified class type

                                ","params":[{"identifier":"classType","optional":false,"description":"

                                Class type

                                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}}],"returns":[{"description":"

                                Array of children

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"OqqF7FcrKEJfXyOIzNPwz","name":"getChildIndex","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns the index of the given Child

                                ","params":[{"identifier":"child","optional":false,"description":"

                                The child object

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                                index

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JD3R8iW3w10FoFNTr4ZS0","name":"getChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                                return all child in this container

                                ","params":[],"returns":[{"description":"

                                an array of renderable object

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"vNmGEyBvPYtNaULrRoUlK","name":"getIndices","brief":"","scope":"instance","type":"MethodDoc","description":"

                                returns a list of indices for all triangles defined in this polygon

                                ","params":[],"returns":[{"description":"

                                an array of vertex indices for all triangles forming this polygon.

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1<%2>"}}],"extends":[],"implements":[]},{"id":"-DGDXNArdMsH3CzU3mVxZ","name":"getNextChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns the next child within the container or undefined if none

                                ","params":[{"identifier":"child","optional":false,"description":"

                                The child object

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"description":"

                                child

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ol4lm7PT6ymqsdvKhklR_","name":"getOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                                get the renderable alpha channel value

                                ","params":[],"returns":[{"description":"

                                current opacity value between 0 and 1

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"YEd4niSeibZds2bhkZzYH","name":"getRootAncestor","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns the instance of the root container (i.e. the current application World container).

                                ","params":[],"returns":[{"description":"

                                root container

                                ","dataType":{"tokens":[{"value":"Container","kind":"canonical"},{"value":"Container","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"BLSwTmfthkiAw1GhfCqOl","name":"hasChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns true if contains the specified Child

                                ","params":[{"identifier":"child","optional":false,"description":"

                                The child object

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"phV1KEgJa6uRoybgzA0GR","name":"isAttachedToRoot","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Checks if this container is root or if it's attached to the root container.

                                ","params":[],"returns":[{"description":"

                                true if this container is root or if it's attached to the root container

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"FA1zUVMDNxXuZa_M1DYWL","name":"isConvex","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns true if the vertices composing this polygon form a convex shape (vertices must be in clockwise order).

                                ","params":[],"returns":[{"description":"

                                true if the vertices are convex, false if not, null if not computable

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"UOW1uhJ-pfFq1zb_A5E6R","name":"isFinite","brief":"","scope":"instance","type":"MethodDoc","description":"

                                determines whether all coordinates of this rectangle are finite numbers.

                                ","params":[],"returns":[{"description":"

                                false if all coordinates are positive or negative Infinity or NaN; otherwise, true.

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"vYCIH6vEX-30YeknmdunV","name":"lookAt","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Rotate this renderable towards the given target.

                                ","params":[{"identifier":"target","optional":false,"description":"

                                the renderable or position to look at

                                ","dataType":{"tokens":[{"value":"Renderable | Vector2d | Vector3d","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ttmSihQ0wdrd85CDYWb7N","name":"moveDown","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Move the child in the group one step backward (z depth).

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be moved

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"GjkX4FHBJpwTNCmxH5V-h","name":"moveToBottom","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Move the specified child the bottom (z depth).

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be moved

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"PVrnUNsQKJKtE3MBX2YRe","name":"moveToTop","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Move the specified child to the top(z depth).

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be moved

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"gq1jPywOPo1eJS2op_rrw","name":"moveUp","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Move the child in the group one step forward (z depth).

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be moved

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"MNU8snaGC2L9dINm-w4oU","name":"onChildChange","brief":"","scope":"instance","type":"MethodDoc","description":"

                                a callback to be extended, triggered after a child has been added or removed

                                ","params":[{"identifier":"index","optional":false,"description":"

                                added or removed child index

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mWYhNMB6CLqEdTJ6SYxB5","name":"onCollision","brief":"","examples":[{"caption":"","code":"// colision handler\nonCollision(response) {\n if (response.b.body.collisionType === me.collision.types.ENEMY_OBJECT) {\n // makes the other object solid, by substracting the overlap vector to the current position\n this.pos.sub(response.overlapV);\n this.hurt();\n // not solid\n return false;\n }\n // Make the object solid\n return true;\n},"}],"scope":"instance","type":"MethodDoc","description":"

                                onCollision callback, triggered in case of collision,\nwhen this renderable body is colliding with another one

                                ","params":[{"identifier":"response","optional":false,"description":"

                                the collision response object

                                ","dataType":{"tokens":[{"value":"ResponseObject","kind":"canonical"},{"value":"ResponseObject","kind":"link"}],"template":"%1"}},{"identifier":"other","optional":false,"description":"

                                the other renderable touching this one (a reference to response.a or response.b)

                                ","dataType":{"tokens":[{"value":"Renderable | Container | Entity | Sprite | NineSliceSprite","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Container","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"NineSliceSprite","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5"}}],"returns":[{"description":"

                                true if the object should respond to the collision (its position and velocity will be corrected)

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"B7tHWNsIRjZSdo8gGvQsm","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                                OnDestroy Notification function
                                \nCalled by engine before deleting the object

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oAr7peXFVJx-1XtwcBeyW","name":"overlaps","brief":"","scope":"instance","type":"MethodDoc","description":"

                                check if this rectangle is intersecting with the specified one

                                ","params":[{"identifier":"rect","optional":false,"dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                true if overlaps

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"M0DwSPXs63y36Zfu5PhaJ","name":"postDraw","brief":"","scope":"instance","see":["Renderable#preDraw","Renderable#draw"],"type":"MethodDoc","description":"

                                restore the rendering context after drawing (automatically called by melonJS).

                                ","params":[{"identifier":"renderer","optional":false,"description":"

                                a renderer object

                                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"nHHwEeJ_aSHKXF7GSlajW","name":"preDraw","brief":"","scope":"instance","see":["Renderable#draw","Renderable#postDraw"],"type":"MethodDoc","description":"

                                Prepare the rendering context before drawing (automatically called by melonJS).\nThis will apply any defined transforms, an...","params":[{"identifier":"renderer","optional":false,"description":"

                                a renderer object

                                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}}],"returns":[],"extends":[],"implements":[]},{"id":"busI5oBWjYpl7niPC5tkZ","name":"recalc","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Computes the calculated collision polygon.\nThis must be called if the points array, an...","params":[],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"i_5NRlpjzhLqT3poo-RQP","name":"removeBody","brief":"","scope":"instance","see":["Container.removeChild"],"type":"MethodDoc","description":"

                                Remove a physic body from the game world

                                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                this game world

                                ","dataType":{"tokens":[{"value":"World","kind":"canonical"},{"value":"World","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ar_Szr_5Dp2v_C08vfSIr","name":"removeChild","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has complet...","params":[{"identifier":"child","optional":false,"description":"

                                Child to be removed

                                ","dataType":{"tokens":[{"value":"RendRenderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapTexterable","kind":"canonical"},{"value":"RendRenderable","kind":"canonical"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapTexterable","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15"}},{"identifier":"keepalive","optional":true,"default":"false","description":"

                                true to prevent calling child.destroy()

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"w1iwXqtw1OgtvZK4CRSLj","name":"removeChildNow","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Removes (and optionally destroys) a child from the container.
                                \n(removal is immediate and unconditional)
                                \nNever use k...","params":[{"identifier":"child","optional":false,"description":"

                                Child to be removed

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"keepalive","optional":true,"default":"False","description":"

                                True to prevent calling child.destroy()

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"HjuWf83CXTJPmO_gW9yJi","name":"reset","brief":"

                                reset the game world

                                ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nag3Tpn8U3bEWwJXBF865","name":"resize","brief":"","scope":"instance","type":"MethodDoc","description":"

                                resize the rectangle

                                ","params":[{"identifier":"w","optional":false,"description":"

                                new width of the rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"h","optional":false,"description":"

                                new height of the rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                this rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"P8L0XtdKMdsS-QYNc2PhQ","name":"rotate","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Rotate this renderable by the specified angle (in radians).

                                ","params":[{"identifier":"angle","optional":false,"description":"

                                The angle to rotate (in radians)

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"v","optional":true,"description":"

                                an optional point to rotate around

                                ","dataType":{"tokens":[{"value":"Vector2d | ObservableVector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"ObservableVector2d","kind":"link"}],"template":"%1 | %2"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"abYVg2XNpPwcs9DGYyA-c","name":"scale","brief":"","scope":"instance","type":"MethodDoc","description":"

                                scale the renderable around his anchor point. Scaling actually applies changes\nto the currentTransform member wich is use...","params":[{"identifier":"x","optional":false,"description":"

                                a number representing the abscissa of the scaling vector.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":true,"default":"x","description":"

                                a number representing the ordinate of the scaling vector.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"AGQ-37zE2VLmRKvSyRPEF","name":"scaleV","brief":"","scope":"instance","type":"MethodDoc","description":"

                                scale the renderable around his anchor point

                                ","params":[{"identifier":"v","optional":false,"description":"

                                scaling vector

                                ","dataType":{"tokens":[{"value":"Vector2d","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"zdPYZQgFHOR968ZE2e0PJ","name":"setChildsProperty","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Automatically set the specified property of all childs to the given value

                                ","params":[{"identifier":"prop","optional":false,"description":"

                                property name

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"value","optional":false,"description":"

                                property value

                                ","dataType":{"tokens":[{"value":"object","kind":"canonical"}],"template":"object"}},{"identifier":"recursive","optional":true,"default":"false","description":"

                                recursively apply the value to child containers if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"j6KW_hKQgMHwR5P9t0E9C","name":"setOpacity","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set the renderable alpha channel value

                                ","params":[{"identifier":"alpha","optional":false,"description":"

                                opacity value between 0.0 and 1.0

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"mn5xlPM_LkwgMzIhjNWga","name":"setShape","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set new value to the rectangle shape

                                ","params":[{"identifier":"x","optional":false,"description":"

                                position of the Rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                position of the Rectangle

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"w","optional":false,"description":"

                                width of the rectangle, or an array of vector defining the rectangle

                                ","dataType":{"tokens":[{"value":"number | Array","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %3<%2>"}},{"identifier":"h","optional":true,"description":"

                                height of the rectangle, if a numeral width parameter is specified

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                this rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"3RdWZyZ2ofZGxPG9upKKT","name":"setVertices","brief":"","scope":"instance","type":"MethodDoc","description":"

                                set the vertices defining this Polygon

                                ","params":[{"identifier":"vertices","optional":false,"description":"

                                array of vector or vertice defining the Polygon

                                ","dataType":{"tokens":[{"value":"Array","kind":"canonical"},{"value":"Array","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1<%2>"}}],"returns":[{"description":"

                                this instance for objecf chaining

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"lnGH5SU7T4qiXj7cqJTi_","name":"shift","brief":"","examples":[{"caption":"","code":"polygon.shift(10, 10);\n// or\npolygon.shift(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                                Shifts the Polygon to the given position vector.

                                ","params":[{"identifier":"x","description":"

                                x coordinate or a vector point to shift to

                                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"RG-ibvOPtwj-mch1oiBnv","name":"sort","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Manually trigger the sort of all the childs in the container

                                ","params":[{"identifier":"recursive","optional":true,"default":"false","description":"

                                recursively sort all containers if true

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[],"extends":[],"implements":[]},{"id":"odpicFMNU0HbQNIj3jCXw","name":"step","brief":"","scope":"instance","type":"MethodDoc","description":"

                                update the builtin physic simulation by one step (called by the game world update method)

                                ","params":[{"identifier":"dt","optional":false,"description":"

                                the time passed since the last frame update

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"lxDNq24oFcR4wr30Gbeev","name":"swapChildren","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Swaps the position (z-index) of 2 children

                                ","params":[{"identifier":"child","optional":false,"description":"

                                Child to be added

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}},{"identifier":"child2","optional":false,"description":"

                                Child to be added

                                ","dataType":{"tokens":[{"value":"Renderable | Entity | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","kind":"link"},{"value":"Entity","kind":"link"},{"value":"Sprite","kind":"link"},{"value":"Collectable","kind":"link"},{"value":"Trigger","kind":"link"},{"value":"Draggable","kind":"link"},{"value":"DropTarget","kind":"link"},{"value":"NineSliceSprite","kind":"link"},{"value":"ImageLayer","kind":"link"},{"value":"ColorLayer","kind":"link"},{"value":"Light2d","kind":"link"},{"value":"UIBaseElement","kind":"link"},{"value":"UISpriteElement","kind":"link"},{"value":"UITextButton","kind":"link"},{"value":"Text","kind":"link"},{"value":"BitmapText","kind":"link"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8 | %9 | %10 | %11 | %12 | %13 | %14 | %15 | %16"}}],"returns":[],"extends":[],"implements":[]},{"id":"bLMdSrwAw385S_PIEXR4P","name":"to2d","brief":"","scope":"instance","type":"MethodDoc","description":"

                                apply a 2d projection to this shapen

                                ","params":[],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"bYN3JMFT4UQuVLjx47-BE","name":"toIso","brief":"","scope":"instance","type":"MethodDoc","description":"

                                apply an isometric projection to this shape

                                ","params":[],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"WFxG9zGui33NfKhJv4o17","name":"toPolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                                Returns a polygon whose edges are the same as this box.

                                ","params":[],"returns":[{"description":"

                                a new Polygon that represents this rectangle.

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"ctTdWqTst1zJIXyIh_7ht","name":"transform","brief":"","scope":"instance","see":["Renderable#currentTransform"],"type":"MethodDoc","description":"

                                multiply the renderable currentTransform with the given matrix

                                ","params":[{"identifier":"m","optional":false,"description":"

                                the transformation matrix

                                ","dataType":{"tokens":[{"value":"Matrix2d","kind":"canonical"},{"value":"Matrix2d","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Renderable","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"7R3YjbYEF6jPzLA_3pNbK","name":"translate","brief":"","examples":[{"caption":"","code":"polygon.translate(10, 10);\n// or\npolygon.translate(myVector2d);"}],"scope":"instance","type":"MethodDoc","description":"

                                translate the Polygon by the specified offset

                                ","params":[{"identifier":"x","description":"

                                x offset or a vector point to translate by

                                ","dataType":{"tokens":[{"value":"number | Vector2d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"}],"template":"%1 | %2"}},{"identifier":"y","optional":true,"description":"

                                y offset

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                Reference to this object for method chaining

                                ","dataType":{"tokens":[{"value":"Polygon","kind":"canonical"},{"value":"Polygon","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"JuG5A0JD2Q9cbVn0zZGSp","name":"union","brief":"","scope":"instance","type":"MethodDoc","description":"

                                merge this rectangle with another one

                                ","params":[{"identifier":"rect","optional":false,"description":"

                                other rectangle to union with

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"returns":[{"description":"

                                the union(ed) rectangle

                                ","dataType":{"tokens":[{"value":"Rect","kind":"canonical"},{"value":"Rect","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"w8FeusBX8MJiVmG1M4Iuy","name":"update","brief":"","scope":"instance","type":"MethodDoc","description":"

                                update the game world

                                ","params":[{"identifier":"dt","optional":false,"description":"

                                the time passed since the last frame update

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                true if the world is dirty

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"HfULvI73zpKNS6qwf7Vcs","name":"updateBounds","brief":"","scope":"instance","type":"MethodDoc","description":"

                                update the bounding box for this container.

                                ","params":[{"identifier":"absolute","optional":true,"default":"true","description":"

                                update the bounds size and position in (world) absolute coordinates

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"returns":[{"description":"

                                this container bounding box Rectangle object

                                ","dataType":{"tokens":[{"value":"Bounds","kind":"canonical"},{"value":"Bounds","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"hY8kVO3vVoiI3iBfB8hJq","name":"draw","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                                draw this renderable (automatically called by melonJS)

                                ","params":[{"identifier":"renderer","optional":false,"description":"

                                a renderer instance

                                ","dataType":{"tokens":[{"value":"CanvasRenderer | WebGLRenderer","kind":"canonical"},{"value":"CanvasRenderer","kind":"link"},{"value":"WebGLRenderer","kind":"link"}],"template":"%1 | %2"}},{"identifier":"viewport","optional":true,"description":"

                                the viewport to (re)draw

                                ","dataType":{"tokens":[{"value":"Camera2d","kind":"canonical"},{"value":"Camera2d","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"tVKE-FuGP-G1l_VFQSr2w","name":"bodyApplyGravity","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                                Apply gravity to the given body

                                ","params":[{"identifier":"body","optional":false,"dataType":{"tokens":[{"value":"Body","kind":"canonical"},{"value":"Body","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"YmDdrNloZASMjvVKbvtBX","name":"onAnchorUpdate","brief":"","access":"private","scope":"instance","type":"MethodDoc","description":"

                                called when the anchor point value is changed

                                ","params":[{"identifier":"x","optional":false,"description":"

                                the new X value to be set for the anchor

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                the new Y value to be set for the anchor

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},{"id":"iWF9t8rN3nGkkoTEkTsGn","name":"AUTO","brief":"","defaultValue":"2","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                                constant to auto-select the renderer (Attempt WebGL first, with fallback to Canvas)

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UHY88bqZsXALKgfe39SpS","name":"CANVAS","brief":"","defaultValue":"0","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                                constant to select the HTML5 Canvas renderer

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lUs9Igp9WzL6auRYt1h2-","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                                current melonJS version

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e0JpHKKUfK0eQFDRJ0SdZ","name":"WEBGL","brief":"","defaultValue":"1","readonly":true,"scope":"static","see":["Application"],"type":"PropertyDoc","description":"

                                constant to select select the WebGL renderer

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"helbAhwicC3cNXgD3cedW","name":"failureLoadedAssets","brief":"

                                Assets uploaded with an error

                                ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-prh4jsfDFnXZRM5PUoyq","name":"imgList","brief":"

                                where all preloaded content is cached

                                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oG9g3RztLtaeMFbftBLBZ","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                                a flag indicating that melonJS is fully initialized

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lG7IOgfDYyM_jJ36rTDzS","name":"parserInitialized","brief":"

                                keep track if parsers were registered

                                ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HOFX8rlPB0LiCj3GHTntB","name":"parsers","brief":"

                                list of parser function for supported format type

                                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EHNuFndyj8DxqvpD9hePA","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                                disable melonJS auto-initialization

                                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gNUpmWNBSDEI9klUwx62P","name":"boot","brief":"","access":"public","see":["skipAutoInit"],"type":"FunctionDoc","description":"

                                initialize the melonJS library.\nthis is automatically called unless me.skipAutoInit is set to true,\nto allow asynchronous ...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cuA96eaGfGZNgZu4XLRut","name":"consoleHeader","brief":"","type":"FunctionDoc","description":"

                                display information

                                ","params":[{"identifier":"app","optional":false,"description":"

                                the game application instance calling this function

                                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"Q3MR4pRdEoSK9yE66I6RX","name":"fetchData","brief":"","examples":[{"caption":"","code":"fetchData('https://api.example.com/data', 'json')\n .then(data => {\n // Handle the fetched JSON data\n })\n .catch(error => {\n // Handle the error\n });"}],"type":"FunctionDoc","description":"

                                Fetches data from the specified URL.

                                ","params":[{"identifier":"url","optional":false,"description":"

                                The URL to fetch the data from.

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"responseType","optional":false,"description":"

                                The type of response expected ('json', 'text', 'blob', 'arrayBuffer').

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[{"description":"

                                A promise that resolves with the fetched data or rejects with an error.

                                ","dataType":{"tokens":[{"value":"Promise","kind":"canonical"},{"value":"Promise","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"9VMp685vmkqyaE0uXwhxe","name":"hasVideoFormat","brief":"","type":"FunctionDoc","description":"

                                detect if the given video format is supported

                                ","params":[{"identifier":"codec","optional":false,"description":"

                                the video format to check for support

                                ","dataType":{"tokens":[{"value":"\"h264\" | \"h265\" | \"ogg\" | \"mp4\" | \"m4v\" | \"webm\" | \"vp9\" | \"hls\"","kind":"canonical"},{"value":"\"h264\"","kind":"canonical"},{"value":"\"h265\"","kind":"canonical"},{"value":"\"ogg\"","kind":"canonical"},{"value":"\"mp4\"","kind":"canonical"},{"value":"\"m4v\"","kind":"canonical"},{"value":"\"webm\"","kind":"canonical"},{"value":"\"vp9\"","kind":"canonical"},{"value":"\"hls\"","kind":"canonical"}],"template":"%1 | %2 | %3 | %4 | %5 | %6 | %7 | %8"}}],"returns":[{"description":"

                                return true if the given video format is supported

                                ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"B2HldnRS4fluf7kvMynf9","name":"pow","brief":"","type":"FunctionDoc","description":"

                                Calculates the power of a number.

                                ","params":[{"identifier":"n","optional":false,"description":"

                                The number to be raised to the power of 2.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                                The result of raising the number to the power of 2.

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"1SWcwbhW2dm6oGsEBGvsw","name":"warning","brief":"","type":"FunctionDoc","description":"

                                display a deprecation warning in the console

                                ","params":[{"identifier":"deprecated","optional":false,"description":"

                                deprecated class,function or property name

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"replacement","optional":false,"description":"

                                the replacement class, function, or property name

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"identifier":"version","optional":false,"description":"

                                the version since when the lass,function or property is deprecated

                                ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}}],"returns":[],"extends":[],"implements":[]},{"id":"oHAF5RYaKNGNOcdwhQ5Lz","name":"onresize","brief":"","access":"private","type":"FunctionDoc","description":"

                                callback for window resize event

                                ","params":[{"identifier":"game","optional":false,"description":"

                                the game application instance triggering the resize

                                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]},{"id":"QglOxWNf0DYTfYmhJ6J64","name":"scale","brief":"","access":"private","type":"FunctionDoc","description":"

                                scale the "displayed" canvas by the given scalar.\nthis will modify the size of canvas element directly.\nOnly use...","params":[{"identifier":"game","optional":false,"description":"

                                the game application instance triggering the resize

                                ","dataType":{"tokens":[{"value":"Application","kind":"canonical"},{"value":"Application","kind":"link"}],"template":"%1"}},{"identifier":"x","optional":false,"description":"

                                x scaling multiplier

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}},{"identifier":"y","optional":false,"description":"

                                y scaling multiplier

                                ","dataType":{"tokens":[{"value":"number","kind":"canonical"},{"value":"number","kind":"canonical"}],"template":"%1"}}],"returns":[],"extends":[],"implements":[]}]},"registry":{"pkg-0hXYhXZGYFRr_e-QzHQoy":{"uri":"/melonJS/docs/melonjs.html"},"liMI_6KYTLpP_0KjOvsEU":{"uri":"/melonJS/docs/melonjs/audio.html"},"3sZIPjFeRt3KxZ98ZNyuw":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"qoDWnPKlAMt_9eK9mo96h":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"CCRR5pepQ-i9IDFnfvZ5u":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"3z2z9ig55xFILKN3JN60Y":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"qRIAWT4k2Ed6tSSTqKalG":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"IPTYTrTUne3LP8SexUYYY":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"ZfI7x0iFmOM_zZzxk9CLO":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"aPevG6Ys35LTaUnFJRIed":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"2ziPTowmn17aO_OctSXov":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"uL4H9vIOQhmIG9GIrH1xN":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"Sva77drwXuH_LpKVZtN2O":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"4rm5z2iprde7D8cwXhwEC":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"zZgnqxIx95hNB5IVRHPEe":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"kz2iqNYA8wXrAFE5w26CY":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"N93M_RXJLxXgRz_yp4SNc":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"mwTogKLjNil5HL3V_TL1_":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"Tdj8TWsv-MNAXeiZwRUg-":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"CXLvqrocQOR5IiFryf0S1":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"frI5tLKRGINmlilEQqcDe":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"Ry-R2v9wOAYmqebJRKlyq":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"U8Je6tiE7ZpXQfURiy1k4":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"XvXk8BVjoG0AZ7kaexwf8":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"E-cNeHdmDOJYpUtlaQkdt":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"hwmGMYCnaSCjRmwjenhG5":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"GBPoWhpEl_-yW5V5ONAT1":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"BNMML841JQ9Latf_v2DrO":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"dLe5ln_D4k-CQj2DNgSWk":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"xapu6Zu-zg6gSyTUXfHT-":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"n2lVqS8NegC2pz--jhZRI":{"uri":"/melonJS/docs/melonjs/collision.html"},"xDVI8clvezCKnWm81jCnh":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"V1C0D3_4CFgehp-pq1Hgo":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"UeK6_PZkaw_TvPoyikiHP":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"rPsOpEdSccZer5eC9okDp":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"aF_v33yQwCHdJblNmDSM3":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"CdzYJjmZ2cctsfwG2SUQh":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"5TzbHITjZ3TtslWsj3qUL":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"vBalrE1Riznl9DY-LQ_83":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"Nro46Wq5o_NNdeUpCtInJ":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"BE-rQqgr24DYnpA-6UqhF":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"FWGmaY4jcKYrxt1F8LXkr":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"2eGh2R638PFhx7fX01Fsh":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"dgjyCOw_O6xbwtm-askfF":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"ZAoNTgwgboEBE9o5bXy7R":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"H-h7U-cknsgGfhIaB9i09":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"spiXJEeppebxKODQSEom5":{"uri":"/melonJS/docs/melonjs/device.html"},"8FxgbhYd32XcG1u5B_rPy":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"qQoFoBOKsL811NxWXD2Ui":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"mqrX2UPfg_SV5lqGGWHNR":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"euTxZicLXNprgsWSx1mp4":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"4bR1PXnJHg3UEqZ3NyYFb":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"h8CFR-uGpfaw4JY3HPcZ6":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"2uVqHDl5s-W6Kcu3jXdrY":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"6mqWlXg47JBgy6dw-Dza7":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"e1-W7o8Bhts-3LLVeAD8P":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"Aek_VsUjt1Z4YMZtdVVGs":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"XHa418MQMZJE45iW6e_St":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"ps8BMaUmsEx3cNWK-AqPz":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"DwNU0Kfqqc9s74wLphTiK":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"oNdzW534B5wMG23--M5AN":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"TOh9VcfNypOz3KgZH0Bkz":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"InzI8mJhzQAaT3oQ110r8":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"EOUwYfQ6E6aCYkpmjoDPT":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"sTM5svomtzo5lAdjjC0q4":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"yJys_WmwbFGblJuRVHJJ8":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"OEi3rC5LRKiotGahMbZqy":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"vY3BJSIlFkA9GY-DLwffe":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"iKeSm9SlEAmnicmoFQ5lK":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"XF_VWK_c-ufIUyVT-A_3J":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"o_dg220mALIbRH1oN5JKj":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"LwB0QtKD7N7OTLEbYetGD":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"4tgOh3RqPQoUw7PMRunmh":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"NJnrBvM9covhs54o_7xHC":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"qXZ85U3sZkYUKwdppHNy4":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"DsqD9jAcOpUIzxEQbHXaK":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"OCkzSxcS2VoAwsPSDTs8Y":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"WJgC9nvZCKqVsCwCmCe2u":{"uri":"/melonJS/docs/melonjs/device.html#language"},"jAyyNubQ7H13LSb_tWSNp":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"iN6L8tPpJ3h-kkLDgau2B":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"DVsoz44BziYGJdIb2A4hl":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"r-rAsUw3uyXrsSZbMykAG":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"TpVDlJV2oZc_1-kH_JHEH":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"zinwXyV0WYHq0fpPwipJi":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"-M8olIUrbmFW_A6kgADG5":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"NV5AHmO0cZUFDvWGSGRcV":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"xMolKZdlm1QuGFphnaClz":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"tDSciiSkoukbyTkq7P2eF":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"c9wa3KOl90Q2_9KyZxspf":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"oi_nMVdCNJjQEwXdEIdB7":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"OW47a3SoGG0yZ8TvoMnku":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"IPakbKEs0ltIgKxEkbB3w":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"xVUXIwoNFDNzhgPq_Kw5y":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"77Je7KCZTGMau2oLcPsMb":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"L9L_vpcHGBgo9H2-GRWbX":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"NMYtnW4quZwPZVA-2ZBX6":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"1zMoLnF6Ry_XQkDT_SlzG":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"wHShpr37_9cGfxwBF-VEt":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"Y-bEZrlYH0pFkHYynoQcv":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"1FA2U1K1QnjUOGQdGfj15":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"h_gGJhyT8GiR3Qaq66n-d":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"VKu36TF7Nk9wgjMXrkMXy":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"BE5V0ZRbjMcAz3QZewhWy":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"u0mOoQ_yTF8zXxVvkJFfU":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"HMImWI1tZcKMn0qkL9fj8":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"o5X6x_PCPK2_at6m_N0Ly":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"7w1dmPE7BZFy1Dxvrn_y8":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"SZd6Qo_lDuh5AjIwx0yrv":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"5khOk98HTj3DkWKVH_5CS":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"XsVqFxjzTB_09O9qkbuK0":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"lm43_S_2A0yZfgEYBvuRf":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"BXv6MczFBZhXNP7klzh3N":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"qqtE9wV2QLnp-t7ksbnU4":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"ey-Cg3VyYm9m5n_Y5Jyxu":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"gClSnucaAFwJz0_ZaRyeG":{"uri":"/melonJS/docs/melonjs/event.html"},"LX7Qk4TkWpq38hCeC-96n":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"aFQ7WczcIWSySjBx1oeMZ":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"tPeHkv_yRnu7zUJMax4_4":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"_BzlnQGtIDhTwrOqKd2-Y":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"ibxUn11DgyFJumW9cuCBT":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"RH6CxxA6ex4GeSQfZAJLP":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"3FwduoEtOAsdxSMb6iksz":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"XetTB-XR5wVVlxaS6NFIT":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"JCyoKHkHSTjjqowFRqdI6":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"AczxnaCsaB2v4c5cVyh3L":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"uvrvcntmo6v0JN9gJ5PeD":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"xa-DNdCDF1pUzIKJsenED":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"twfy974c2WHdVwnUM--0M":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"yRS3iRvcn23q_SRjG_Xpd":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"iFBSWBr5v4Mra4evD3EQ8":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"ItVrCr2ZSVR97teDXUT-q":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"TGaAr5gw5iXhlCz9kDPlU":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"_oE_r49at8PK0afTHiMtM":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"ITaNydu_mMX2tky43-vw-":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"tY2cK0e5iEOrVVz5pcovr":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"sUKI_Z0gOxTVeroFsK8pT":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"5pBnPocArk1YvTgadyn_w":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"LbBTy_9aB_ygJ1nc3P9iu":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"dMAYQYZveTQZjmRrV0n5Y":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"5feKm6nkdEEnTTdC76Ftp":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"p0KJbXWDW5re-xSKCDl5M":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"Ki8Z9cDNs4P1kfeXOcHEU":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"tvYk7yG-zRKY_RL3K2zcU":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"_rdUuEOiYPn-ZETZkcmoo":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"hktbjQ0XUucjJnltD3t3q":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"CaWJXHGLQjZZclvTNQ3DZ":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"VVmHtrgTVg-SdClXZoE20":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"xXMeBaUo48w1VCdRANpGv":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"sGy7B6aBmLp_qa4H2po9l":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"xGTFhModUJBgqqOqZdc03":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"K4Pgg-c7LVnojgJwIrg_-":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"PLdsRWTIKAlWDUbZmteBa":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"W5-bhMwIA3t6LnVZcHNGn":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"WgB5Zz_TQHgKklxHogMkM":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"5AxTCxhjvjaGyzx7KI3Rl":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"W51VSMn6tJe2puWXdF65L":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"Ulf2Vsa32S__EwAguR4Zt":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"NwqgOck-0Hj8EMIrhcC3_":{"uri":"/melonJS/docs/melonjs/event/off.html"},"OiUe-0cm7PCDWUB0Y_Tt3":{"uri":"/melonJS/docs/melonjs/event/on.html"},"hcw1tOrVgFXjroiMZdctI":{"uri":"/melonJS/docs/melonjs/event/once.html"},"AlukIS9aNe0sPAEamYwaV":{"uri":"/melonJS/docs/melonjs/game.html"},"b_J_egx94EarKPBNLlWqR":{"uri":"/melonJS/docs/melonjs/input.html"},"Zs_8Lcx3hFORw4JFN5wdg":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"C02mbPIwaG2Vg_FiaysFk":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"Yg2SvFChwvx5JmSln-KcA":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"NXo3qTs-FeJuFb7FHDvH-":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"n9iwJMq8KDoO5aam8Crwl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"nezM3Tb12mnE5gA8B2xj1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"0MdkdXYBuaCbD_jerzupW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"TEAcGJibQ1q4qv_vDbbdm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"Dy4OHcUoSpv1e86IelQhq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"IW-7i6KBWnvPH_XxN8oWz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"PmXjq1UynuVSVoykzFugT":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"TYR1tMA62Q6sL5BiWPzgC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"x_hILKiXWgQ6zN_7_SE-a":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"xsKPUdEGQf_KzuiHD9ZDJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"qtL9et6YKfZpjNBJk3-wu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"gUbBC-t2mvwP7ZWQ9TE0T":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"wUerGTT3vABmeLsWl5vuY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"IAMfokYSnvkkXVFJ8zepZ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"89pl1jwFUNp2zZPuMWXUd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"b1YEja-AjYNLuJbZSNv6A":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"ienOfh27FjLEWfcNPNKxt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"CyoEX4fowoWD0RrGLkqCo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"S1RSoPqmiwFO8Cjbdiz_W":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"tL8aBtSjtBJzU68EtrZv9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"vad3_9O8YpfNzqGJbt6sB":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"oew5f-14-3x2F3sKeHuII":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"r302Ewb9pOsmAm_gGHRCv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"jFn_Koius-tYuuWqehouL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"DQq6qjQtBZ4-8ozxH6fWQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"Gx2ODapQZxyhzaMNlwCvU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"htIA_4CLPZD4YeQgktgXw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"SWAyTirAc2_PPdbz0qEac":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"br6RvzAl8KigvD0ZVsB30":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"W37EB4Tn7rKQk7h--T1Ca":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"a-VQIxc1xZXdvRjq8e8aR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"Z5qzzv0ZqbiQvofbfHJAk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"QvA_qi58jkWeNKPnk2fIg":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"7G8QHhSh3VdertYqC_AMW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"yEKB9mBbwU5L51dI0KGjF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"nigCL7aKjqBgmvfUeRGKR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"nS4GBXSqyj_Hwu-scpba2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"L3gcWT9t7-rPJNsQwAjmn":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"4cEJoa1nZUvlS2tAodD14":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"-QbpEGI17DnwozcexlMll":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"C8DUkZl1LVMEAx3bxQJer":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"0VBbRiyl8v5Uxv7nE23cH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"csmLd_SwESiOCqzEtjKeS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"XsPkDicF-8iYvfbCM6mQY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"Yy8dDNIf_tdKrQ-g-Kp3C":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"nC-q8phHiAfVYI3lx7ocR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"aLyzYbXIU-i9ZyLK9Zjag":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"WEjExNOad3rkGNCuOio_Z":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"jwUPEbdc-7sHbo-9IfSsw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"dKekT51-Z2heypu2DPqTh":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"oJo2lTxaKdBSfT5KoZlj8":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"mNYqoRkja6tsU22tCCxtX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"rmfOVIw3iaV1XH8rR4ub6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"1IUZmWQUCxpT3Qi8YC9bm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"R5GQpvGTY7Z15dp9kRbVD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"8ekZPu8jR1Gmr8_2JpWYR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"2UjbEP8zuD5VD-KaZ8Dy-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"xU-KcA9Me_9VfL6pzBUgj":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"CxTNHNUcQUhLOBlu5Z-9s":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"sTIc1jnKpIOP6ADyqh3Cm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"ut3ryqcKPjQYOcq1X0Cqc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"pF5g0BUT2B0x_dguY7cuR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"UEna8NIq0Kj5l_LGDReOW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"S-6osWskzpVvQlPLRMyC7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"WpJb7RsWEquJyp-zl5p63":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"9VtekhNilQxfsJnl4GZvf":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"A0kOzmoIgsF_JRHohjGDM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"3216LlDcacURACc1S9GRF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"GUESkKHN3QOP2kSPCleOQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"D5NAaeszcvIHTdYiLjELE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"_0mIX-fXvvYjdUmNGmdPE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"trLyXrvM9_ElPsJfdXWSV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"9wXmWVDVCXT63b9r-7Z9o":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"PlP8HJxznRDQaW3tGao7F":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"QdIs0HfhSw07alM0v97Mr":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"0YRoLIzKQLlqGKHf4MT0h":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"rcnTA7CNPmyRZxwG-BXtt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"ZrItOZY1-4UiO5-sHUYm7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"ySyIGhGMUWZWbOEW9g-AM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"tuKHTNRHGAjBe2GvVDgf-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"yDp8PWHVfrOCqaXS8XB5F":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"iVwbRq9Nt8fdZQ9ewAuZH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"osSV8Y0l_7Na7raxRNhgB":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"EKgk25N4dk8ZD67fO3JCq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"sAqt59sk4xc45MbJxQbs6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"IwymZIzrenmsKdHifQgC-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"xGU_w01MfcRc6X0vDo4t_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"c0_Txass_lrgf81ksCXmn":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"hazU5D4OY0uUuI-MPV2gJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"AXCdiVwspQXz5yCRUg--7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"J4RbKof4V-yzcTBthqmc_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"8JmXCUwC724K1wXTxdcAy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"DB6XcWfK-ojQbL4_0cQ6w":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"zqBKacdgVCfBFOqloWuZ8":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"qXW7b5fKlX-WOQQgUmbKP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"rgruBciS6rPolHqREkjMG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"4Xq3K3DKvorDY7o4NCWCo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"69A8GR5r3JL8rQt46ZPmw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"3ljGGOy1mDk0kcjNUtq9e":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"xPk-owXb_KEqh9ZhR1qG6":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"zGpFnZZ35CotplZ0DFwci":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"SuDq3oF8s13UJ9z0azDGh":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"zw7Hol1Drf6e0XAOCpdSp":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"4lz6sdUA5EXrFbF6dy1pk":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"QDQVBvXM2UWNjASZs3zQP":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"U_3CIcrWni2P4XpUuK9LR":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"WENzOEKpDQIqJFoshVDi4":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"Okmk3D6czrlqXbJQxCEz2":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"27ITPlo7UxNSgeTxSw1xW":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"q_F8TWr3Q96dZnhIZPgj_":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"SVjD1_3k5vUa9aTnYU72y":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"wodbpoThUX66JpyYQ1YxA":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"cVDJPn9Djw3AwJ4dTw8aS":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"RJTphLSo3F7B69nAlLfgp":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"MDS57zInwRhNnt-8aev5v":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"WBxL5yMAhB_OF4eMS1Eoh":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"R32vZykyOni_pHH3zvrLk":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"1A3FsffnSsXVfMGaGulWb":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"oe7yKzexT2iyHqyj0Dup5":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"7Us2_bGJ4G9-XfYuh2kaC":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"SFgJHPMlTuJWf3PdiKjxg":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"V9Qj84f4GpL9LTRYqlYkc":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"EqYs6B_PyYQb20Kb4txQp":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"HRmWvuPqBxxBAoHDKzG55":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"NoY5HNV34i8Fv00zO1qCD":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"F26S1oKZqS4oNuiLVMIzj":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"OY1-893Ree0x5ko9ptkXC":{"uri":"/melonJS/docs/melonjs/level.html"},"05ijcyF66yl4H_wW_Hq8i":{"uri":"/melonJS/docs/melonjs/level.html#add"},"_1porQ9F9OL9_8_CZRFob":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"INUbIDljuge3se2mhcEZQ":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"Maza6AiuHlBcmuehhnJp7":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"AdhIO4f1rUldLySdNOq1p":{"uri":"/melonJS/docs/melonjs/level.html#load"},"zKYjhX82aeItdEoKA2zRm":{"uri":"/melonJS/docs/melonjs/level.html#next"},"sHg29B3sZk2V6QsgshH2E":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"mqn8IVaDfzm130loU7ph6":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"JxDFuCFxxmPBTna8n9hbO":{"uri":"/melonJS/docs/melonjs/loader.html"},"2Wf5grXJcTJbaCeitTY-5":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"77xH4aCfMSQ39xU7onWAm":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"DHKb8IUm78iiNiGWlcrsR":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"TvsLIJDNuKoJNsbUSCSC9":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"j7TqJLbT8IdY0TVz6K5dL":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"auYL-BRw6-KW_Ax0-4COg":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"jFAoh1R2bQHC15HQ0N73K":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"iGsFCUub3AAplXvwxiqUr":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"WUS3DxmjOOqE1fyfIUchv":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"L727pDqbJ1iV7S9znNXT_":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"3-MpqZNIQKRg3sHK7XjWi":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"YAnhurZEq72r6_IBVCfUw":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"8DvT7IXpEOX5n4Chxu_rB":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"SIyPEb0U773dFyl2Ntk7j":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"V6QoOdKZkmguAe-GiIp0l":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"-SmesipqEULQccMyPJHSQ":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"_MT041ofDON0MFdL71b3u":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"ZjXlx7Qo1tKxSo8_ffGn-":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"4AcpkhKFukLJczo95BVwK":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"ye1jnTH9jnLgC3O_aTdjn":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"vjU9VAMrIyEyMchdEDZRj":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"73-J6miZe3biBPS60XLAc":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"prco7KOepZRZEoceMsaxa":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"Pwdacet3HBdl5CJB21Ybv":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"uFHSra0sh3CLcri1b-e9s":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"9qO0P-KOjjI0eQPsoYRi-":{"uri":"/melonJS/docs/melonjs/Math.html"},"8zT8q8KZuT2U-fpMwUjqr":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"YGVBDFpSSK4OaWVMPj6uK":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"KHrhlme_bfL80TUNGyxky":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"pbd-xv1kDg-yyboFUgB4A":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"TSaemEhhu6LVEpWnBu_PH":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"Ctiw3zoPOikynmNSmlnNj":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"4uP_FOsfH9R-LW51F5Hvc":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"sUuZaV8C71EliustLwUCd":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"2EABAUB83BD1nWo2lGw3U":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"z_szS-FSzRtYuTjKVFK40":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"YdIeN39o4U1Dq3_x9rYQ_":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"s2juTnxBTEvzA7WjzDQn-":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"5gRlu6Q77i1XNVSlzBweF":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"CThXV9YbUjHkbNdIOMDJ4":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"6uPHKlWctbf_wn5RO2BwY":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"eJpdfho_0pwlUeguAlOIP":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"b8rn84D3smeWDr-O2lkOl":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"j8B6XxUzWHSDYbl7cbVyW":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"kuhybxE-MRgLH7A9UWISP":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"2vWIWlzvSq9--PsUvCuwl":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"ft2wrrJMejwxGQjMKfKif":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"mOU5jzh_iqOxdIpKJzIB9":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"rF9fHSkGBdqAmWeVCPSkQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"zHd8oJi1uQZcO1aGmInzE":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"FuI7gIfOjtG5tJq2S5hFl":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"nmH8ROKEjuOv2GP-mMz9n":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"zy8fPTC1U2bar3tcXxtUa":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"7bcpDaXuEtoiHKcAmrf8J":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"yA7deQ8PHzZqtMMjQ5_ta":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"euqe4mLTYNoayh9z-3uXS":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"y2t56zPP-DM1wlnnyy55M":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"VK4XCHhzrHVLcfXf4mdhX":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"SkU5HgIMJDg8WlhWjcKpP":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"JxSdoHzH2FkTuw_mcw29u":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"6-DSXKywdXX9PBD-mxDrB":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"-ijsfW8fSvdEXcLI9VrMv":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"Gaxj2hNiMmb0sDu6f1T_i":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"WhgVSflJ8-3J2PWc5JM4M":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"OM2quUBCDcL6S7PxQm3NM":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"GLVA5WOGZfiwMHFdT9kZw":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"qG6D8GcqPaMvsVd2NmhNi":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"yaSbhhN-CmuyHcUw2rFL6":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"OcBUkTFj4_T1QVpsWF0Qi":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"IGBK_I23Yp3wfETXjXegC":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"CQIbgmvWd9ZmesnExcESp":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"kkHxy-js8_IxhLeXjKviJ":{"uri":"/melonJS/docs/melonjs/plugin.html"},"RnjX9SlxX75kDn-y9UnCc":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"WFGveZ7KGTILZCIP1YzDZ":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"XPBlnKWilsPILJUxjF8DC":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"SR0dGaM6sVSeci--ArLYP":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"ICqP0Gp3vGqoFByh0jdXV":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"zYXlI0sWO90ECYZfNmhvi":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"w9nlRfEVPbDq5MLRhxQnC":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"-I6epVD_1L_5qYb5wJqpy":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"3pK0BI2UAgV1kdFxKnO0E":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"KaCjPJ8lLvhMJNYqTmEE1":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"C3x7s0xvhJ0Rn_Df8u-b0":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"U7e6hqiNgEYZaN2h6lpGi":{"uri":"/melonJS/docs/melonjs/pool.html"},"p1N8zrOg4Z8Y-5yqXtGu2":{"uri":"/melonJS/docs/melonjs/save.html"},"pscwpqOxA2LfxQSRdKLg9":{"uri":"/melonJS/docs/melonjs/save.html#add"},"f5USn7WFh6Z3fHPpEJDNr":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"7z8ZW2jlPeS75y4CPscvd":{"uri":"/melonJS/docs/melonjs/state.html"},"JbGB6oIab7aow7HqnXM9d":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"bX2-kVTbSoTrWBcayP9Hk":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"p1h8xzH3IV6Kvx_4ECP8Q":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"LMFLB6ya-IMtaDGR7B6lf":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"Z3_-iS4ELfKBER5pAu2Tr":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"-Ee1TxEDwDmq_Lomcim9b":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"CNY2xTtOiUlCx0KqTIhfr":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"t_ISQeRjsScTr6Xb0A8d-":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"sZQpd_qQBg1jH6rUO-Ytc":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"DPsB4CMZSUj3DWRSjzdcD":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"vcuNEfKZXW5XlEDWMWsXn":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"yvm9Oy6nl3GxIfFdfBPNW":{"uri":"/melonJS/docs/melonjs/state.html#change"},"Yhuk1T9zBGN7xjLEU20HD":{"uri":"/melonJS/docs/melonjs/state.html#current"},"h2OkQEg15xwURbbL7MECd":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"S_sVmYhIRkxB_4ngixgvq":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"dtGMeY25VUF0M6yFzw2YK":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"CNvOjKQpkw-6vqzA0hftU":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"HFe_4ZJ_uKHL5D0-jU51Y":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"z8tLVQeEF0kr-lnv1bwnJ":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"-lmj-CslD1FRXI3xkz8dW":{"uri":"/melonJS/docs/melonjs/state.html#set"},"6y4_jIYv4sRvRiOgcYFxq":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"AwXJpm4hjoRt3W8YjNJnn":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"lKRNS6uhALuHMNkO4UmLA":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"hwyTcPaCWxmRwhvurf8Mq":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"SlK-zYfk_KuTknvzJjYIz":{"uri":"/melonJS/docs/melonjs/timer.html"},"094ym-a7yp4T8hhN9qZsm":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"jd1Q4CaaU4mrF30-70mFU":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"9AMe5VKYrGlGaJwzP9d7E":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"4p33jtMAa7NBdQfEfG8kw":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"DzwlRondCfIvmnLI-m5YI":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"4PPbOlll011q6ZcBPKtvu":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"bqcimikCAjdg_aTR59cYz":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"9XVWspi-iyDdciS4I1u5B":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"Q04AD5lim2YieuD2xN_mp":{"uri":"/melonJS/docs/melonjs/utils.html"},"wXiWMRqyOr6TStdG8TyvX":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"TEM8YKkV4iXiyrQrVoTLU":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"ZlqpQQ58ClrUa5RPCUIRk":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"a7Qzucog54gKaeQIQrqMk":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"kQxkju0_v2-DrhY234d6a":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"pmYMbjDdUX90PFIHCW0iT":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"QIUayBecav2X81sAyCA1e":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"yIlSO3cCwzYmTRMkwgeBr":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"zWwrUVL2UpsAd0JxtwnXz":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"cR5Zzl8Myi67iqcpr6W9U":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"QJFPMuIqrGE9IZLfy76o7":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"OC0K6y-Hi4m-nr5W11PAG":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"3_8LqHYNMEC__KuW2oWy9":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"xMpJMwxMtZrIrG0msqp9r":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"lPoqW26zzYvP5IShXJo6I":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"TVRumLIWGkmfz8H2x7yZ9":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"5YQ76DlaVDUYi7PXjDYwe":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"G5IcEqANEtOTsaCDcDEvj":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"Z5IhgE2x971L31Wt6VV93":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"Z74j6HqIBrDSxmcpfdZcy":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"5LodgJ9XH89Alb9vn2gKB":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"o8jDZ3NuD8eiT_UnDbIqQ":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"hUpBMBdyHIpSmZE1UbFKz":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"4M1fAJXI99nIR_T8HWgtC":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"jhT-AVnBgoNd2bj9zpYZ4":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"_R-NBxjJb9kkFUfp35eQO":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"St6U9B_-Wj8UOeLH-GMay":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"FOpx3iRJbd6YorD-Yn3CM":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"94iXwQcDw1XCI2WAvOTtI":{"uri":"/melonJS/docs/melonjs/video.html"},"k8-9cC6dj9mtz4XQKKKGa":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"cUEUtsr9_5WfxbnysJUDE":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"k-5Z7pQaaLovykjMKmydX":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"eqGtXrvL9oz9a5l-oJ-RP":{"uri":"/melonJS/docs/melonjs/video/init.html"},"Jf_raImAKzGZWkczAx8J9":{"uri":"/melonJS/docs/melonjs/Application.html"},"4PX5lPVXJO8PJLr2yPfcQ":{"uri":"/melonJS/docs/melonjs/Application/Settings.html"},"ZkhR5ixHk92TAxA6FdMpL":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#antiAlias"},"NtOSqRz1akaZZY755T3Eb":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#canvas"},"9cMcorAbFxSd5GAbk0BpQ":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#consoleHeader"},"oQxhoTroFMO-_srSdInzb":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#depthTest"},"14egDsqUFvLWuEmx8yBLQ":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#parent"},"jzf3YoKIuLKZuvJZmDUsl":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#powerPreference"},"y4OBRBl2qE08rocXP5VSl":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#preferWebGL1"},"w9t4tLtgNrHYHoQg3fw_k":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#renderer"},"p3lqBz8hC5DiZskoYqerq":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scale"},"jJ0WMhE9ddAsGErlegDHX":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleMethod"},"EHZvGYpk5YL4UEitky-8-":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#scaleTarget"},"oaOwIcGhpsCYyVjfxvvmd":{"uri":"/melonJS/docs/melonjs/Application/Settings.html#transparent"},"cZeBddFNW6BhJVyjK4axO":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"cYQlb4GKY44GTTCQmnBqd":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"mqMGCLln0FKH4UZJTIUos":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"HZC5682bHx7CQan6VBoAx":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"dnRIE6pUU5UMF1HbCMHrh":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"3PGmuVd_UWZAT9HeXVNkN":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"YNyHLqDxTDtvkqDRJOUEf":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"pV5G4JwlvffvpR4eTHp1Q":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"pkhIdYawki0jmLtP3aXf8":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"hoTkPyGRdcPU_pVnbci4P":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"ZKZWmvruRY7hdw1hHcn9C":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"mzlVjhqRrEIw1NpEw-9X-":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"qmMTlnzSJ7H2aNJdnxjOZ":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"jOpwpZ1YLtBdXr3ERYoKa":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"o2QfinZdHASBqfJdk9FYr":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"gfHUuD0iPssI5MbNrAALj":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"t55PPpxt9OVS_CGRZQ5O6":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"UKZuImK8E6804PnwZYLON":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"vSRie6ZixezSOzgG-dQEl":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"64AHjnlcdR4n1DgYSqZNM":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"m9JXR8eZ4FqnKmEvFprhn":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"tB3PeGMsNNYPDDXjM_jjY":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"9yT9rk0LsaVl7QZkF_YLW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"18t9-vvLtpiKSZoB-PNQQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"roBu6j3AZBntv6tv_kveY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"PYMY0or8a0TZ4AvTx5agh":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"nErat08-fUUbZezPNZ2o8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"DIUQ76q43FrbbjsBtv3J2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"ZCNxE_1MSE09GPriVXpwS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"gT3itVkEDvSlAhUxfbBF0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"aIC-YS3DShWUDu5JLmPjm":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"Aeuno8aEnRaJ_1TbAgo2m":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"CXj5GipeHm2_DqH1KkYEa":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"PncmS2j507UCpQnAeNtGl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"g_uajAm31f8xCGYlcd9Bz":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"zWYS7oqXbXD7HhxhLa3i7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"ys_uHatWt7NFed8zV4HVu":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"zUs7R6jnm8Uljt0EG9eJA":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"yQ85Ywx5xtiImxENmsH-p":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"oDY91FjnC9-s5VqM6HGgQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"t0E6808ShFB4w3Ejceg3z":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"huVmi27nDlnvbi-nZ6Rja":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"PCbmYK33BvApjqoiumHrF":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"5ndWLC8F9tlZYkYWk5KgM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"VIgHhnmAMoYtm6PGEWoyh":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"V6ITA9GVHp6m5Ws2NdpKF":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"6jnI9QNSshW0yeQw9FtEQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"ygRx7lzsvVh9uAI1d8j0s":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"8biRP1MN2BxYnIStToI8U":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"ZivjCOUB0C-i0LFN3HdGK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"LqC5_OPe45SDqaXz4Ni--":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"kXSQXccqT0OGtB_J1ZefG":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"fmABNRkYDCWvL7cida8gZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"pFnLfpnzqO5tZZ_XC-nH-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"3gnh5aguTf_5leSNLH-bc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"jxUzzigIrwJXygvISJpKW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"ljt9DaJ8mG779n9qxMZoq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"Hiih4TafuCII0DDKzRaRT":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"kUR50_6PAYZEonCIzclu2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"XBEJgpxIJxud6T9_nnCif":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"3uYbgXDKH6VG2wSUFZklH":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"a-UpsEneMnIBcRjXf2QG8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"xsyqhFBfqmDJ5SNuUfBcd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"SeCfYwQN420VCRE7wcGls":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"TDp8iVI7T4J4Gj3bDMxBI":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"5cij0WxWDeT0TzUG4F1s-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"7kg52uYONCqLmfF-PVUU_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"5amANHYO4QvLrCUQVajqb":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"uirjFQUSo0nlLkPLPoqO8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"3JkIXNTfYebz5OFeGH6ty":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"N6mDR7P-_9HfM-GBnD_1q":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"QKsesOftRwjL5sx0XkbhR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"X2wYOu80hnz2PbSxanyDm":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"wAPBcnvYOrrAM8OTbeEeW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"RxSDtinWMRo0u_ChcBigR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"ZaJ13mHmvw2e5NavniYBn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"YJqFfzg_kYR9hNZqQwZcG":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"dcCk3ZDvWchK8xom562pg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"KHQQkJeobhge3FzqwaU4G":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"5mLW-d2eA5xKIEyafoEMp":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"w8px2tSDDA2d5fpqmRE5-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"_96cNVUSMmwEILqQf-44D":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"4tss22QgypMjhqdfMjSYP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"2ZrUqr1M5I-BeNegTlnmK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"gKPsi_kEcJDdMa3x4hBMR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"b3QQjh9mJUu8pib_3rTSd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"5biglcnJU9sfS1tOfXzhd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"dCc-poTHiQEehwmAKT8X3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"EladmIXhb_X-iqI7k5hlA":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"duueTNXRfgFO_N1zYbBHe":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"LO9wVGnF4hAMIORpfrlmm":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"AaicEoWFdKuJw_acx5Dtj":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"EvDODNV5LXG2BaShlSFJq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"YA5lVeG1MTzGaxEilAemM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"8yUDzeHZZeAvIkNFj6kdl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"mOjusq-lrsyuHYjZ0W9Kd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"yGxDPhZOqFdjwXCcT2pBt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"8ld8pj2ETYbjp--Xv7m3F":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"cqxljktPbpkUz8QkL0UMK":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"z9-KPxUzOxb9MFi0hIg6o":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"KkZ8dCgAtagMIJwZkbbJP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"mvltmFmQjMSWwV7G6OlHn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"ARo0YLkyj2nwwvfUUjw-S":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"Fa7quKDg_Hn6Iqkd5sJW7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"6lgnIN_AhuGW8pmbllo3f":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"ry25SQWdZ-VexG_ZJBUzH":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"FrwMO-FjuLqFSJ4WWvW4F":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"7Sr8N4RXtH9C-x5yuA4rE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"u1GpRWheuqVQAKx46iet8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"h7Z8p-9i6PdloNZqjwd7V":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"csxIWUnD1Y3mwe9E-UCnP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"Kdlfm9avwIcAY1YS__Dyh":{"uri":"/melonJS/docs/melonjs/Body.html"},"Ac9YOG8cPsUh1Jm0FWEW5":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"muWEO1UfF-eV-mic4iB5K":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"PP4TiU5bgNISEmW80m4yn":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"8QLSnZ4YoZW6F-NDOwSq9":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"glFOkHf594DsGNJnDtaXy":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"2C3lX-UssClVsSJWwCI4P":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"1GLDQBnHudQoXcD6hwOjc":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"4RVpgyPz3cV_1iiod8wxX":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"3sBXGNp9cnFBPdshjhkXq":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"LYMeEawNpfqgNJtT1d9ap":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"YwDs3JoGO7x0GqYbJ01il":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"_PG76GVpWAUNUiV70G_le":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"93y3xi_1yO27eIuiYipBQ":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"2E7tTk6lcOyE4yBk06-NW":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"9bA0EVxyHZ6UMvXvjWDyB":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"-wj7nIgXQbctn8RuwbZwd":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"BeEM5uLn9icimGQCe_lvf":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"GO63wS7jHnxBfM1W7sK_f":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"TpwkRBwcXkvQxLdZMJpNZ":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"R3hy347m4UH4Mb8uCF1C_":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"WN9lRe0p8w3Ybvq12aiiO":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"HOW8_NiQjBhI4E8Wzb4Sa":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"05AgJRn9Zpn2P8JMIqKpu":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"HefoeM5-6CSwOvh6VWy-2":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"BUTy1E2RYEb46WE2Jz_Sd":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"J-07NR9ccji04awKtwwvH":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"sb5CYw-cPeOFRRU50fMDm":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"J_ZwiD7LjesGa_pgUCHU3":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"Kh1npH72jmOiiK1mWAI5t":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"9AlYZE6n1DYPsFCHCp6VF":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"BnHxru6tYbMMcs-JPG6lo":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"56gaYc5J4dwQILFlZ0uLm":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"zhGHnTBOkwNZMPSSCjIGw":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"c1x7hUqFdOHLG5m2bXXyY":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"1dRuvilA6XnSLOfpHbOkD":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"nC-qV1K0DJEWCmj9zxOGF":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"jqVcSB7dguLYhqHVkkbAt":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"HX_MN0LQ-_UKIDzqYPWa_":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"DllySBzcwmnTlpzxOZ_3O":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"Wb9evITAkaGbLCsS_-C-B":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"szRYUlKtw1tj2CpLiCKlX":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"tchfGKAU0ODFqdY9myfoi":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"qe34X_AIBCj4l5qgzUY0R":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"aUxVGO-DqfBfTi8wrpYkd":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"2a5bpNJ0uXHj3UBRkeSQf":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"rYqo3RkyOUxXYH6UWGSD2":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"DOY-2-dYwqqneQiU3DzGF":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"JmOg-uTHOiCGIBHQQjQO6":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"y-wr0ZKzRSyrZ0yJcjnRA":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"1Bz2-fTrjOgeoTwFEFhTh":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"Ytc96C7Hvwf4xNycJTbFs":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"6c9U-LCXFWokfMhZnQNfJ":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"WpmazKQ6GFVwUL_klHebP":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"mqK831f8gCJJKsuUt5KMh":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"BqyqdjFiLglgt4WajHT7P":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"fyK42S3WFFQ9vXfH068_v":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"LrZwTbPC_NjTPwn8vsJeB":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"ViSH0pOQYGfZLSO9Hfnvc":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"x-Yg7IU53XR_MUYiP1eKN":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"inSfB-cd9_fbnQ4L3bzQv":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"uJVXmQz-p1YbRra6A4ZUa":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"w6Lno1KM23bRlgeCxKABT":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"78atrQxvlfbIwZZBzSz87":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"9p7e-DMG_rRWtmEyQh29T":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"ivqZP_UvS5Kb7ehDyiaYG":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"D_WpJb1RNYxRSfjW10aR0":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"cuAKlGLJJEZ1Rkdt4JdSA":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"sxLy5JWYdQksplJfOvZb1":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"HuytYK2qf7ZSLS-rElfKG":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"L71WWJdqRn1qNzUmedZQ2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"rWhz6qeVed2E9jrMbk6v8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"UemmRhufgzQvUymivU3DN":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"MJkMquO3UzQV_evzfglZb":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"_xvgk3d4AsNfKkz5IQflF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"39S9dmw4Vi37TaIV8Shep":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"Ns2cn-vnD_jM8gOQCIkbi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"9wf-Xyav5AwZzNBUmkyR-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"59wyDTWCYlaDfYOMBNTer":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"9UXj3fmSsoMm7KNyWkyZZ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"OuHg7N3GCH9SY0q3c4so8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"HeKDFR4guCu6-5wXvHz1r":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"hjfwzX1JUHfJX2KLK6wB8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"ZkW3UO1q0Ea5eQ18SBEkd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"E6P4au0KcwSO9ORUyARvM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"EQZ4p28JczqGY8ON8l8Xo":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"466xMgxSI7H0rom76udoD":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"M9oCsXANxKML77qb4L1Of":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"waUKUycmdaKmJkeH0PIew":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"NVlX34kEEe7FOTtmmthu7":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"9CRZs7STyaqMyOiJgdWOA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"aidOuL3iq7j6jrqc3chBf":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"gUyGNqXjii81MFX98ZEvw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"EDdwLYNQKeaXggTk4yGIe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"WrUDprQlwk9zFrx4CZ7s6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"-ck8edLyEMdNbdOUBiq2L":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"1__OJKvYodV5EhV-cjos6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"wulLfCpk3cwzdWZuFC_dM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"zqGwUCEFCNOqNhIc1SOC0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"66ETx0RqYD72u85sWiP6D":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"osG2i0s_0igOr8VOv0OxW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"4J3M_l3uuFqN-ay_6wQnY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"brsm49bv2RSw6VHM3T33r":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"rByh3f4VjxbqIQHSLvOre":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"hZe0lgxgjxjz19HdBmiAW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"dhkMlQpopF9sglnW4judy":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"XbwiHKk1Uimcd4S7FtrKx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"rXxapubf2ulObyjFLB6HI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"rXi7Ne-soWSMh9Qpkw-Le":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"3S2rmz9PpK1HEH4nv2i1-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"YjgP0plpppbZCnIjKOb9H":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"FvLYzMB7P-94ip-dKq58D":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"PenrAaCxRR5JAnKffnuDr":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"uNJTSV5VmKTbuGcAdRotD":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"ckaTsxEQ1bcEkdYIw0_kD":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"PP45s914EdWH5PNI7dysy":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"aI1DGqdPBgPCFVEYLcQYO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"S6e2UHwydmvsVHS9QSVGr":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"DNgbDWEwzOUImDacXg4UH":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"8QXBTXvNlGgWhW4_NLktC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"Gk9RPbR1yvQ1GOLxBFW-f":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"smYuw_ajzBcLW26vT0cNC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"nJ7KEdMLkEGKBtDkXbASr":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"25R1CypbKsU14RXW25Wxk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"vBE3BINf1RJCFLIkfYNLp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"htX5wSubrPmRJ7sJKYN4M":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"9bYaszRBKT3sS4pLNhq_-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"YIo5_nO61sDwWPOzLmwMv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"gpmQbu1nFkO9LBjMo2Afm":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"Fbu8Fiu_eAnPOSwiu0SEe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"yiEgdYmbtNbhYjsHG8g98":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"Nb-sNfVry11VIC8HYWnoL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"QOGeAEr5V4BssXGwcqBC1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"gUBbo9M5ZIpFFuVOOBRYF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"bSGOHJeQfccGVPgSVC380":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"Vm99fw0hPS0vCzdEmGvqi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"vWrVGcpVVQ6JsvyeM9026":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"N0LPk_8PYbV7Jiu-OLSBa":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"n_jELsOjtFTVM62o4ib-8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"LZn4oAayZEAJAnt2O17DB":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"avhUpVkZXX4pGP5XuDGOU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"JWIDnyJJUWJ0nUG7PlqnK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"Sh5PmaeQaLdxtUpKLVm3U":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"wf50nP3eIuwq5wDIFWrje":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"nVfQh2kYWDC1a9zm1WiZ5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"hPA06fc9wJvKxxOKdGPQ7":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"akhpIIODKVczBKc13S9b6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"S1fs--1iU86BIgC-H90Ge":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"Rrea4mQW0u8VKYQCNxCvw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"nPFVlBXWAtAUG7rBuM6sd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"1KG7JQt7rZoOXI5PXEqHT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"dAiTnavvlMv--fi14rTpp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"InVtLJWOZjVsr07B6bwKy":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"nsidT7c5u0QFPxQryrOtb":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"Q_dQeJdCQP1BRsGK-pfkl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"JntvFuMiqK8fxP37QbEmY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"69K7LTA-cDavG6taTKm7K":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"5h6bLzvYm4FHloHBdakdj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"frzlA55C5dkl5nVWlWZvf":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"D5hfk-l4vERX7PmHGYtAt":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"awPZ0MGKMWAM8XdNMsM_w":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"4U1us_x6pDe4TlDaCEtpT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"u35p_OOh2vsGMoBkBtrC2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"mLGzJUYzRZbNRa442GnAV":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"SBXlv-ofpcaT8vPCbamUe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"1qjakg89gcU_Cp8Ka4Fg3":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"K6wDn8x9eXMFyMh5NBzbD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"QitYrL1fdS51APi0eoXUj":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"w3T3HtmIgZPvKqqB7w16f":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"tW-veZEPRu3nkADrw2KVg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"ea4Tbw45YFkA5SF--rrYU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"x89cstwG1wFV1DWjmxjqY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"lZmaVO7i3NvBorNy6mdOJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"YzQSqEFso6mHKcA2M7i0T":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"T-KgyUh0P_mSUjmBUMC9L":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"fXc3KQEPqes2aKwpxXpIN":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"Xjapa_VyGTOMSwte96F9A":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"86C4UU5LQseCPLklMGpU8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"DsdGmIHBWabY1H2kxgm36":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"eeK4YE1o_G6kCbN0vhOao":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"vCcxewgrJkzNeaLwNBWjH":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"din1F7hVGZo0AqHGe6F3s":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"6KLz5buXucRzjTxV1V50q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"Q2Ix9f7kVGzSkM6t5wb-A":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"UWXhfWmoLK7sz4K_GPNMR":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"BpjLYmgSbP0fiXeOn4Yxn":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"KVaJmI3HN0HiM8-oSBREs":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"FHLkbTrgC1HL0E9IQm-TL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"W-vHXvAolC9WZzTWu_Ao5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"459vMuZd2lWGCVs1IAzIp":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"GuT2NSpcACzm60Hzml6VA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"Y1Vu344je2EvZJ_W2oYDc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"89nF7wYO25jqUdzXXryjo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"AuePEf6GM4WFQx6rddicT":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"-rp9UqiSu4mH7r4yC5yaa":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"KRCtmTXI4SwMs3kSd9_uJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"0TsEg7kosH1fBvbWpGdnv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"pVKv0GS2RNbOScNja_s0W":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"F9p9C7iQh3QRGx62T35mO":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"ihaj1myoIlUx_GfTroeLI":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"kZtEbLGkg-7HqGVnoaN1h":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"E2IJzMlQf3xSzbFDFy2ku":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext2d"},"vo46FkFJx0YBZoRoL2AtG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"Qu_3m4OB-QxycjWyGMdLK":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"4LgqPsBwpNaO9e_6l4ulN":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"4UrOTgeUHPrXXXwSg1wDZ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"uCaONT_vyTlJ1ModgbE1o":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"-6YYDXcWO-8PemDpNupWL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"CntdrPxzfDqpZM37aOknx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"GAOzzZa2IwKnm7POx5geq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"n8xFBGzJfZenyiX1KDXJB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"_FTthunurSUmeBmtz2Km4":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"iz1hARdFLcNmFTaip3T9q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"lecptkB1vrVT8Lo2KFEEB":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"gjgyzoJKZf3CYGLNo0W3a":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"ysylteyhZVtlYOEA6F7SC":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"iZ44p7iZQobONxATvhXYM":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"3QjhDfgFwnlUiaCa_JJPm":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"0sbRN_aeCWYovFsxY341O":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"OPXrvwF8VIjWmha9V0Os_":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"5Y83l-hPpCaKyJYJ_UFWc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"vPeveNYg94JA1-81MjRpQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"NWny5_H3paEdM6oHKG8qF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"h9MF8XBJ0fdhSJWa0zjE0":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"-8yYJq3QvvpF8gIfiUlIn":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"OkEjRWY3Aphgm8NPW2dXG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"N0dTralG3ljvZ6XRKcu_9":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"DHJ64LlKrwXFoUM5-s0Z_":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"7U29kxcUNXyZr8eovXJD9":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"-zfX55-duqZ_PvYGdR667":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"KWTHtsUWZuYp228UfpM36":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"P21UgshetuELt2jbr3CsN":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"iqlHg36iCVFjbFdiwPpQW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"FTyA8t17a6CEwOBfh33vm":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"uYd7IpshhEhgZgv2ioDAe":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"2lwnhFT00pWCzjZQpgJ2w":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"9HCxT1A-IiAUpSLn3i64V":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"Qqqz0ITZvX2jV5fHUCOxP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"KdX96w4779MktHtJJ9fII":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"6fqXjZgYHsv4i47C4F1-c":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"S7t0pkfPhlOMmnNLukA9a":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"VFi3W5sUhzm9X-z9KjZt6":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"Uugk_RJBeuiT8YQvJ4_kH":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#canvas"},"0sqUxtaYCdzfDRKAiXuQz":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#context"},"ibWCe0Le6gK6AB10-_R8m":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"jF5buneFPc3PXsfw9fwiW":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"dVorkny2mG0QgwJHxMmmt":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"P_ogNCuKi3WHG6BaMNMdQ":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"Dw271JuUuYnvVpSjcUBd6":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"w65HZmZAE7k3Qub9IIfzH":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"YRAqeZ7UCgBeijNTAWFgO":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"p3JIhka3xVqih6bhgvnoX":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"ow2BBsZaPqd3u-PbtPfXL":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"nqbBcrI5egghA_uLTIUv5":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"_ix7qknS43EvajtBFue-g":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"yWLwDbUccegv8U4YKDfOM":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"cu9M30ZoFQn38oj03Q5_a":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"CQakb79RU1y4i0ihCR8qx":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"Cf6YC5_hIBMXhKHQawaxL":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"99kqMeI1LJrWRs_PaVzdm":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"aCBP_5ad8avOZb61uUOGV":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"uUvI94fV6xQhbtFrTRkko":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"u9r0RRYegA6J9dBRWPvZj":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"SBdD1a5qth2qRyWCY-iWY":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"O8eC3MKCOEBwZ0jJbTkpV":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"zwHOmgw97k-U6GoL0mx81":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"CJKYJwop94vx4uERKfSdg":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"7ZGo_MzrUGOgsO7b3lqsv":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"5jJP-gbf80wPeU-W0RfH2":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"MEwIRL2TXzsZqFn5cE1Fz":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"A3_j4lJCUytQEDadMczwB":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"-y3BpCZMmWHrkSYpZroLm":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"2fFBs7PWnJUDirzwNhz0v":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"OBduZ-7TXi5aw_uK90_Sj":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"VWvqDk2GIh_0bd3B9jUJf":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"3xy7WOEXBcujiFfrm39rv":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"Hsqf9HuLYrxvkTifK584h":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"MiVCBd9juoDTfeAJzfh9O":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"1wX5NcCMY1iYZ1cBXUQYM":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"p8DgkpR8vUTn2ORaeBgg2":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"4v4Kmcs1e3qVzz38gtNMD":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"uyb6q5VEmB9shFQ9iD26X":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"G4jCwZ4MbEQ3sOEnqljcb":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"W9eE_maWRLNOlaZiXEZyr":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"8Yxst7SvrniwsQ3ZjSI0n":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"r4xRKHcJaaApkunYRNU6B":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"jBD6OamhrY7Svpro1-zbG":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"UNjxX-Da4QQvrmKY3AWN6":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"m9zQkLkl4UtNfH0CxFwSw":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"YqaNXB15eoyuOu-_zQUDX":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"24XxAJ850OAzv_Arov2hy":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"YypVKYRtMiZZuMEKFUt_6":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"lxYKQUQNPQseEOR2S0ZuT":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"Y9ZqFIQriH14zar37WjdJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"eibqqBmJY7LG3UvEkPTWr":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"pKgzkgB1izFKQo4sNAE47":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"D-hB8T1BjIkIiQ-PRvYJC":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"ZwIxl9eVweKLxwDoSC_EV":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"JMQsQTc7QjEVyho3Vu50b":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"JXnG2bC6Y3WK-yz6hCeUm":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"iy7aQsCwhW6QipHF5KmE1":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"M2eNff1BUIWpsJrjhs0ff":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"c5nFdyrRDjRLqpw2IKvtT":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"stkwlsewBBALztUZzUjX8":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"o9Tqvfglo2diHnmOP2F6T":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"fzUyx5o1cvfpVGlYftNRd":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"0S6heBOAizYODF9Nh21hP":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"tb8p57REdfcr1Un8472rp":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"5QPU6nHfZhrdseNuNY8ft":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"kD8dHvicMQUlo3WggBR-W":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"6-Xap1YPWxfNOKMDO3m-m":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"mY4aTSlpkVyTkGnqwntL2":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"qVUGBTND-OZnOMzechzPs":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"93frHp0tJOEye8eTsPcHN":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"zyzI98ZNapyI9NlD_ILvN":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"5elzajjuB729BwtSuviWt":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"_-fHpZDRW6ioop4E_ZbHg":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"NWiE4RBVPWjWDNhrqvEJS":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"yP5l1ygVxNi9lrjbhSQRi":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"n3xfqxesNbZpiIyskyWKr":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"30Ptko6t77YH9xtfSfFpW":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"-Q3uv_dtai-JNl07AwkqK":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"8vtD5DZcxqm7nfoWh7Va_":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"MmLgJYTNqhbBaI5k_HQxt":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"CcuBV5bk8z-_kTVSDPiha":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"k-zoVB5L0hSGDAgAH2zCW":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"BqtHjZ_YwCmZm6w8tl382":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"HsPzFBbS6mQ6UlYs4YlAx":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"WM7igPggPjPLR342QfH-W":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"HAUAmn9nGUN5Uqr_pGMHV":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"7Mgl4pfQBS7dprVHo0xy1":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"rEjvy_R7cKaW12Pdp4rJr":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"bkEaEq3C15b0tKRT8icd8":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"Jzwaz8_ZHWuGq2wLAPP8w":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"LH1RexaPAyi4asZvCiC9B":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"lo5pbsbUcZeUKQtvBzmPq":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"LPt7B2KHGkjLs18RhXQLc":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"FWm4iAkoUxy7v-DWdgp8U":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"zHEAOKSZ_5KmGZIFFYsYQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"5oEq0mk3gB4IgvFwWizll":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"ZU1-1yN1Ct6DqlSkuem4A":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"d9Zh6bXU0NWj7Us7f0Kvy":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"Dkp9ua_QV2r4NuClYd3qB":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"VajoZ04Jd3OA30xFQaJ2z":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"ax6IQiEZZrnt6BeymbevI":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"2Du9Ffzn9QDtaxzYb0ZBZ":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"rTPSw7OlkLISGp9xvNXDC":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"rN9Rtbuswm3fybimL2tC2":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"M-JIY4_NKK4fisJT7q6zd":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"DD_LzKQjLAqfd1rY18Yry":{"uri":"/melonJS/docs/melonjs/Color.html"},"vRbd--FnDgz5fiUha2kIV":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"lyHZoHw5XcSflxQbPije0":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"p_wnbk7YAwToCGVPFNYT5":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"JJ1kFvmJ3pTTA4UJ9K5Qw":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"SKCFkP0PBI4nASGdvblYx":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"A-KMlF66ObNeq1GtCla4d":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"yaw5Ynh4zcqr6qst6W9su":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"DGAC4g0-0hMQyEpSOF-vo":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"iXnllCiO8WR0GZxN0GeqP":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"53wHfQ2bA0nCT6_jq8kXq":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"3PcdTRatWoFTx5t1W9Vsw":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"NKQ8nhCsklSJADPPY6ZMt":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"XNPHxoywyGJ-rc7ZJi1h7":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"8qwVCxlaHMvpu_LsIP4Ew":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"rk_ViLNpguULOBVtFhWHE":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"P7Ix3vAwORa0vENPEahht":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"O4LVoLPdbMfzVA6aUSN9f":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"lNUmEr2emooNgviJfnDt7":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"zkiFD4gvFsovubPNmCBbG":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"ztx_bvh4mOfyOs9fqur9C":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"RMJUf3rOmmwa-Sn-eicNo":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"Mvkwd1CXXITOLhl2axkUf":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"DeV9G87R14BBonacglDZ0":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"QNYznZdUu2Thi8nYoky6x":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"DDPkMEY12VCFGzE4unMdp":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"COxhyNl_H6wLiXzjFOxX5":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"W1cuM7DwnY8B20QpI5hwY":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"q3UQjQjL9Ade87b3-vHi6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"x2nK430-11GJmNkMxG0VG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"9zZKhLzL9lHLkRwHzik_a":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"qjNwQVoUQdxHBZhUNtsPk":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"-nbdLSwCcYtH7hK-fCuRv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"m-ncny9E-432ybiBWmUZa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"TZdEZ8kdpjoHMqxMhE9kY":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"mGwogRCGXP8zrpTuvBzTw":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"qtKvVNyx3mbbuxh5HCDnY":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"2aLOlFJodN0zlBW8d_npB":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"HkXxq-FRQFhvBc5qjXVLX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"WVrFrW0cMBeUd-XR3gXKv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"NNQQEW9G_vooh2MNg7TQt":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"bTqvmie2VKLrgnR8TMqlp":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"OkobpPJzov8JNDXCvFr4M":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"sN8-HGIw_9StaGxn7cQH4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"qem4wwNLTtPMWFbh75hYy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"jz3_7_kWEA_FQzy09slRb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"di51tM-7_JLCdkd_3LdMx":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"mwL0uFkc7gwMWBm2RyRmg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"bciWeMF6LzCo7B-xeTJg3":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"dGwLcbh59ywzoWMjWCfTn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"jihBybE6w63eyC7jQ_th5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"JpgBkCi7jSjuDNEqFgKoN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"YR2bLI3c3My1EuGbIbtpf":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"gbIniJThPByQx0djd0S88":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"OIBb8DzD0GGF9k7ehih--":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"kpdlXMeSW9Nlsa2nPwWFf":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"VRYbjWerxF2sQWMIpXoe8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"pp05By5tA4U-B4hqt1Ftc":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"YXEKegrik3NLp1jjb4_6b":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"w7buaCFP0zrWUFVmFFr2y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"Xm-V3iUhSFxzt4bF07YF1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"QKet2D20N-scosL09FUO4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"i-Ovi7dKwaHae9kI76UYV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"47yfMNOO1cY4Y6GXCgy97":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"gMJiG_Hu7lNn3_qnGgoIQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"YxS1o2aTTDNlSLcByEC3f":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"sUYXYA7d07nN4tywuYIZy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"7SSSRDeZ6l-oAlpd6v84a":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"UWyKVOowMmqu1Dh89yhq-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"qT9Bg9wY0spaDLlmAgo-p":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"O5ma5kH-_VyKm3PaSi7S2":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"Y4KA_d-kleXWj_3ZHPuSX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"7wB3AwiZHJe57j4rhgQ9D":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"ZsOzveaHozfFYVPrhSVzz":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"nDyGehfduDDAFjnDihv3V":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"ceEZVIZHwzLM16q4-Z_j1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"-kYZh9rviOPq7fyeJeypm":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"aKW4--VwXYvaShEeLGj__":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"zkwBm6JORxh48JeyIv6lK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"tPbOvRaIWWJZEwVOgE8xa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"0lanQ5zGvlpMF2A82NtoN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"VesbJ1rAfqCfRcmOvKNJL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"o0k4Td31JZojsJMHryI_z":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"U20E1KMKdsxTDqHjyOLtB":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"dkeH0mdE-9dbtDRRTKZSd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"UF7H0io-gO55TAQyBS8Do":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"1Zl0knRIzRJvTfmHaUn2V":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"wSIX2sHZn75py-TBG8qaa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"8jDbSx2ykGbj4ebmfpen3":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"YBD8Dtg2lyvLCPaCSs4XQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"5NY2WWTuK4AqfhfKabKag":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"QZL_G85zHhKS8cDLcAVqD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"UOqFYfM1-3qmHKJSOlEcP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"4FKwy2QWYyIZeNSCp_gYz":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"1XusvMSniXM8zGmA0EIyb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"NRvJs8X95MKSQjTFLQgBT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"hT_lEVFEzc8MCCNp2M2ay":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"HeFSYVQANitNqCQuoTb3n":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"JRCPp43aT-DGwYzNq4zzi":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"pqDlONgaUawGLOSCgkMQ_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"w_g4h1HCLOmQo5JiZ_5cv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"zrd-tJxvcxy7S8WjodPyp":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"oSWqHMg05jY2BVe89Gf0F":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"2s8PMhWTQXgbzX_y_FCS_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"FkrAaoAqy3b0sbkdpWqUr":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"u94CL4eAdKjHIsEremCuy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"boPaxtX09afhkJxnIoj_y":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"BBYXkxyYq3Ue6CXO4yBUx":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"fVgo6ULOvJWCW1t4N_d09":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"LvSQ0aPBdVSHxo2Q2vUce":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"suM7JWxgRGXzZfP9O5tbz":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"eY5bM_0Zw2bRdzM7qM78r":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"tiWvJGUFhGBdxayEaExrZ":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"DSdJJA0G6TCJpyjEg1dWV":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"tvrdbF3ZrJHmOp4ubIg0J":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"XZy4p-zncgrrfx8AjdC9c":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"IwDgihcquImC1JbLUIG3z":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"SHAB8UFiP-_jCiBCCXIF1":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"3g3oyOonjkdIybH-IEyqq":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"EAEWFpCBsG_urK3xHwYzQ":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"-XCAc4006OvxbF9UORRw7":{"uri":"/melonJS/docs/melonjs/Container.html"},"WGwWswVpYZCZEWHGOJLiQ":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"YMh4Z_IqJC2i5CrLxZFBI":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"z-tFR-x-opMaR2OVCmLxl":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"dnJrUM3tzv2Kt-MOchZxv":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"kJAT9dUgjE4RAfZVD4x2Q":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"77Qy8EYt5XPx7P1absf6B":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"8voBxanJyqH90OqCGjy6U":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"I4jmWQ-PWMcuxJdnFCYEa":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"XM09RkyrcJsL2va-MoHQB":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"LeTLaktEU3y7BKJNbPa31":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"mWEjAfKjSPiulcLQbEf1a":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"zSCDwaltdCgI3HSaD4EwJ":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"YCL9sUq9JCfpbxhdpB5j0":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"_C2nl6Sgz3GeOA6PE7hmo":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"zThCe8xC3w9XCxR6oUm2m":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"qxm__ihE0kCpcNmAmq9x-":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"Dkd2nFI6iBXt1KTLJRSGT":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"JWZ2LmLt0qXBNiTDx3-P4":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"60UcZ74Lmp63_hjp2CSIW":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"V_pEYsiYPnlJtOp2ZHKBp":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"Bl6bnH3n43o56A_9lT5Ce":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"FWvCsMqnymnXU_vUzhH-7":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"Zc-VLhbJihoJKcMuaf2eD":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"tXz0bUeoYXwZMKKk0UTQv":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"2HGM-xpOoYpoVZ412w0HR":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"kdb94SX1tN77tLBetuBAB":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"3qQH0HMhfnLUWacm_h1Gq":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"NfVKkeoNS3zDgnua0rm12":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"LwZyNTXLMIN1jiOJl6cNC":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"d1esvHTECqFQHyK-PN6sz":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"2inUabSkUWjct1v742je4":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"SlYDcWm9g80wFr1Xamx2_":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"xLqxl0BZuSTN80nJTeGv_":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"OzBo7d8J8Km1BpQFoxqZT":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"B-r0_p3jlswRJglwxTATI":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"zzsIZMWsyouY62U32atrJ":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"cul_FdHkRzEYeVCw4lLFn":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"5HHCqL92fa_9EDysK3PFA":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"vRDyoD1go4sTcm0V-c3Gb":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"uLSftLj3lL12qR7TJi_ZE":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"hBwggc8qnoG7wIzNTLHkF":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"zRpRIaR9i4xHM9MJ1AYcu":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"QOm3-5XYl0mTKsNDzsaqt":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"-8Ze4XQMSvns-jCsGhotu":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"aYwwsCGjNqX_1hBU0Avwd":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"_28KH5uBDVHPcIAJB1xAA":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"NyDfgcpPv4oB0-E88MKzu":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"sLXuonEqEAmzYc9cxGZwq":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"2Z7bW7X8Z3PTWmIkKQ8Qo":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"rh8Hz5LFuQerRYTZ71wrK":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"m3-w9f4lNa_StaRjnxv-P":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"QGDkiXGWCUwg2tp9loHVE":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"njL_nTUoRJIpKwWSqIwjk":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"USkjFpKMOk3VFwxwxlq0H":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"64zZLslowpX-oz8lcjw7u":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"KSnZxVqm_BTQ8XjJhzX-1":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"szZ7Dkjc3BSOeq_LVAjCT":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"b11qr-8y0zquGrb28tuJ3":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"Fbz6Cm78xSlJhtOtazARs":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"AOtRIHCuTlBT7zbJTG6Ww":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"-iS-JWcpyc1g_tgPCuNiy":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"vLa9mUV-cPKpaSpBQGhvN":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"WdXme5cH_9FS7bORRcUOv":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"rpFnsQtBSPhyYnDyXHGwA":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"WqGBBznvapUmDAkSFd7hR":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"VC999SoWgSidR3Do8xYF1":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"H90CO36Na32MQCDo3Ytiw":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"WQWciCYfUYSCr7XliV_FT":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"Y7elzIiMEZ0rn9hEF8_up":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"ZngorXVGYNJbdrmFVlnzS":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"2ziTlKXC28f7yWZOUrLPn":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"dpX6gKgwaV4mXIsDOtkr4":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"wNlIUACB-ito_iYNLK-p_":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"kGm28pXF0RFiADcXWJbEt":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"-A74hVICfVC_Y1DMtWNyV":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"Z97TcwSQs2zsgREuUOWZh":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"d_-z0IwviVxwI-TNOG0uJ":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"4EqMEnca1wY5clsj09srw":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"5c7Q33E7pLWtALoEVmUBN":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"k5ka8hAB-9FwXlP_r302A":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"cxtJWEBRwSrtBe0bR3GQc":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"se8S0rmYBXYgsGP7jNr7V":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"aTgcLDfa-UnbT-0sIrm3S":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"NqiEfn2ex3tQS9GWDPOyB":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"RLUfL06wXAtiZ6XdeJ0EO":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"o4hhwTSgZVOdpsdcSMBro":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"hafQyogeafifB9CnYnWiT":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"7AyENGNycDsZ1hQjQxaKD":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"eYocuwRL_ecflpVGOHm8U":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"eH1k4wG2g_uaBYb2mIrWW":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"46WckfK1aMEDYxWxAAkjG":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"gqhE8SvW7MFI28zuMRpEa":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"IOtLDKq-sZNZ_NkV31djv":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"fTOeECgAcFiNfFc82EV8F":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"A_C0m6kSK908Ux8okp5cd":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"2A4jG0NYa9-aXHBXo347Y":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"Yn7wuChDqjtBWdi_-oeOc":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"4avcEyo0h36uCOAOaKRUB":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"PNmM2KsalM9jeH-XrNK3s":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"fcR3BRq_Se5HHY7Op3sey":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"3sPGVH8Nv1pdfEIRlmAZE":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"OzK-DjAi2t-_SLjEPoOij":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"kqcL-Db4puK6hARfKpPz8":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"WTny6YFbFu_JZu5DteuZ9":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"ShaCYCUmnvPWQE3xzNgYu":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"2qAYH4OkjAZj2FB7yMPYH":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"KpBsRT9oMZ7JeejsH_Lf2":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"73-b1jPcrTb865nuneTTU":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"C_g-IQjY92nyVKkpExOWQ":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"ZGPR-hN_p27Ybwy8RbVhM":{"uri":"/melonJS/docs/melonjs/Detector.html"},"ASPUDnLfPNG9UebtjkrKG":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"YUgAln7bALRtScJocozKu":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"3G7KnU3dLRCB-7s65zOZT":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"4ujt2vQBdGMRcNF9Ysd09":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"I7tBe1Jzwj485CjQRw4ba":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"sz1C7iSJfvNfZAy3S6HVn":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"18LOXKwl8WpyWOCvi27op":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"W5TystW962EKFEbkdIMVL":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"UpMPv4eA-lyBsp1A48m4R":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"WEHCPqWf35Tw4CeDidkgh":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"RqPLe1K3q6KgqmecwwgP5":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"94BoiaNlKdxwjPFn0mJN8":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"u6fg7w71sqMzg_TIk3Apo":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"BMZ6wUXiUSOFqOhAxO1uh":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"DhzvPYQSbdJa3hxFfx3Q0":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"y99SnYiSe7bvsXtUyOjRN":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"7D6BUlJUSm_6zBUH2suLx":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"o5UraDPgvYrhZg6Js3wy_":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"OGOUH4L0mv9ljZVwPzZRS":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"ReWWLMwm9_OHflxJ6IKNW":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"UvL6wzeW_5_QD8eb606yb":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"YCYLWswpR9cDG0v1CaXhl":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"7w-H_jQydraBm_gMjL6vl":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"HtlUqn-gmtibq-HtgMUah":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"frMYcRYABjSq6SN8h8wJt":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"OVrdXFH49uFNsgyxKqJME":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"ORZFrFlFR37aLsmLvBeX8":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"Xe3GsXAVOmPgsuDz5Jz83":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"kAhvocQkV8KtjbH5qa9dN":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"KDt593BFKAgw43L9hb4VH":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"XLTsUHyoWut47erLyOGlO":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"55IAuGlTChuJv8rzBLeTL":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"Y4B7kfX0N4oJBTB2SxfxO":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"Rp5bYDWX-MgTt60OBA4-W":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"ThXiWWHda6lxDgQGtbUs9":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"f7eZtqz-v6hIL1JW6pFbf":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"IGHEeQcIlTmBuvnUjAqhy":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"oGMPcWO7UsOe-ET3HJONA":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"ccI8Zl8G6qJu2r4cKR475":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"Tqcgx1uOxBEbmask2U3sh":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"0jjGv95pIzNi_zsBKsV67":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"cZx6ir5hvtkGxFMlnVaHK":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"sQciZgt-XoSWYn-Ih3Weo":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"uxVFpkdAtsK3Kz-iGmat3":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"rpoDcjGpUaOAYs3FCCrUp":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"h250ksumn_2uFmKgC32_Z":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"0v3Xx8BHko2kZqu88s6Xv":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"Oj-mJTOQCKVyRPVd8ud_5":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"y49LmVnJfWbLEJbyoIW3L":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"RV2AgWH6u1DPw67nsxzVR":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"pBhASEKKYpletWvkuKbOP":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"dDCl5io_bwQUV1ck6GG27":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"MPpOyu-5pACmhLsXhqe98":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"q8hLvkqvdpkAs_xPwnd4K":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"2VhYnJgGdmZYWyf2Gt5lM":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"fi7U-C6ZeunUdF6QFjyC3":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"V1LuxmRN17T3HyEz2wsJa":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"cUYzJQXBPzUhAW-PHFQAB":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"u1NU7xBazmgEKeY1Y6bXS":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"EiREDtsYj_EuGsh8C3IJw":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"JZEcNUZZ_LLACKD4a5VkT":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"tpzcqHLgIzmxCKqve7uoA":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"IhNRByuJOAgef5aQqbHMg":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"5gdhxep43K3D822U8Hes8":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"0HZHkAM2sRrVf9rJmBI2U":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"IQrVvqQQ_GAL7G1dLvRwj":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"mfLc4fpw9lnWW6qs0yI9E":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"uiTFe1Xit29BQk_xYatLJ":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"CorPEx0L9WNe526rD8OyI":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"Fkpo8POeFjSJ1G3S2pD0D":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"x093S6xRVpjVVCKfN5msZ":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"PtPZ8SBXa71HjzcOx5LYk":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"vcdULyRlsgVGa1GAYjGOW":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"KjzmL2JE4WBG7FWQIojaE":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"CjCwkVQnMWhjLZbOP64AB":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"FvaMQfmoLPEm7QPQlnH6i":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"LlL021ZmNO_oPUSQhwebl":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"AwO0wY77jPvViuWdAe3Cx":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"ZzKRPKNjPUt_ZtQy3FRyI":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"VaWrUKV1jlQxlFbUcPtcY":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"PPGS8BhRrp2mfEKflIxjO":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"Eul15xASJHQ1FfpUWtUpF":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"Qy3lK69_a-e_DJ5ByNEDR":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"ydYDoM9_DMJ_U_XXd8fyZ":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"F4O2YCo7suDecHSH2bzBv":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"G5N4puquQ890v8WiF0yNr":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"TSoN4Bt8cMw_LnvDHG85q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"vRomU6ahAMd1iL0om64wu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"sS8pJCTb7ylEwWCbMtYQz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"BMnkfIZ38hsQcWNEtFSCK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"F9zoBW-LJCPiPhrSD2DAj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"K6IDS6Vq96tPwp4d9n3jp":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"-cupR6jNc720kCtxzYXm4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"hkByAfF76CB4kXUzkgT33":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"SynuliLXuayYxn8BdYvL5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"MRAKfiVR_PtF-cL6I_agn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"mVQQoGqo2gQ7z_U1svIMn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"qH7iyY_5_pJxhc7CAqq65":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"o3iW9M_pUhRFhNsI-XUtw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"6GhsfgUN2KNFYlh1JXnw2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"dPTFEIfRkJVsV3yBcgaGS":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"DtTXQCTge3i98Cbettnax":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"SBrW1ysk1mQtxAE3ViNX4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"WV4geJL02U__Rg30Bfvxm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"laj6M_F1IfulSZDyDYsk3":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"t05koUj6T7Gxt68eJIRcn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"P63I8jhNiz9AuEhTX79hv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"hgbB1uy63o_PBOZTWKB4_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"LsvEvetp2hhmEhdrNLdor":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"4ktTaTErMdQ8EB-4S6t5V":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"nIrnSMWxccTq3lFMDpbN5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"CEJss16BbVxJoRM3M73v7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"gwgWfDLdZICr36_0ueqOw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"PQWya-iqD_ZzOmUnWyR6Q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"vM2b2b9nGYok4h5_W1ejn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"oE2zo9Akrc7JhNU4oSbnd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"AsBAmKY-e9JyeZ9AZOO8G":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"jgN6cnUHngaptcwIIn5RS":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"VClu_WstoDs2vTPxW6GNW":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"I9y8hh7UmPLa4kRn75-sY":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"47edyrEhNku3MmnKsU5qq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"8tp_kPZQnRZXvqNPK1Zy1":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"XVa7xMU1SkxzhWSfGNsZ2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"xPkpDwvE0VgpW6GUDagU4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"oQ6p8-8d36dJVe7Oj7ACz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"yvNCyqgiktUeMlrvhBZE5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"Fr6K2DZ0MvOBY7RaMMSTv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"fJNc-qap0SeBVAn8v6XUd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"p9LZCemoEcbVZNtmsTp8I":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"t3pYYiCEgRhBu0s9vJBdD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"dN9uHoMR3k6JdoPzvMgAr":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"dCgrOlhVRAzpxZO1o6AjP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"Z2kil3CXWY1D-qnetZEuu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"hZ-WOmDlGCxfEBQUmycoI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"wIpDPwyOpTHZpit1JbfFd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"Ls9Umt0rIWk_2QZxb9B47":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"35hFnpDW9pufM8GSE2-Wh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"WdoTD3oD5RXHbz6FqzW21":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"kO6dNIe1YyEjPUFtExZGV":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"FKJYMz-ny7U0yN6ivX0VK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"rT6Ra-yPtoSx4xowVBdF5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"HI5EwNqKa-6bI076RM0DP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"aKKqknvLyTYZ5FQ_y4qm-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"2b8A12w4LIOVuyF6oQS9L":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"5bXHi6pTcY6zMUW97-1I2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"LYBWpzWJ0XRCWgAgQvvjw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"NJmDI5WcudeOGkXwRMr2_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"7bkUE36vvU0SHCOoiD_xV":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"chm_06PgK9WI7DTPRLaWn":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"K3Wkr6QWGubRsW0wyxWG0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"XRbBv75ZYsnkBdjgZJpeK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"Y_XfJOKL_CEgejE41OTgk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"bpmzeX-8GT95SsrMI0sbj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"Hilt5jocyslDNhzn7FLhT":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"o9L88GMXRVseiMb1mmwPK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"HFvjDNhZHBpUaVOm4X-yf":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"-Zg7XFpQweABTJDecsdHQ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"xlb_8lZWj42RpOmFzjkrk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"gPlQ6UuJnQEwihp8ic7Q0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"g_BY5SXMcoTqSREWNMtST":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"9-s-YdQ92V7G-eL1F2qBF":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"ad-Lx9EbBLqF6OpX17TF1":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"Py5shH5DyTiN2DIMWOxQZ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"WbkbEEj-BH0kYBNwbJbof":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"m-la_HSLlntlD35iir-19":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"cjqjzlw38odFwRh0iyiHJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"Yr-myoL8MHJIQjazzBq7P":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"edYQhabXsqEZL0zbBNEOE":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"9sMQpffXf8tzC6OVu26gN":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"iQMFYOeperlmue3N9F4XX":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"JD1FGZPVq8VHUZGVFZ4WI":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"y18r2jB2-Fxq5BV8WK7H0":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"eBKLpXlq7v2D71-RiMzMQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"Wwut59g7QenFRQaU3SLFy":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"doOH9vQUYmGHaJZihdpWn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"BMCJzdcF2459wlM_rBk8c":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"FpHGScrXe1iliNjNYs6i4":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"FPedjDFbM7WBS-1ZFXhkS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"Otos9MQinoKhXSZcKDIQA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"k_2DngaFf_cenYpLbMNU5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"adzS9K87qomcCHhGd9lYO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"QcBQC-bUwZbgqO-T4v583":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"unL5DuwMqYO5J4CSntpw7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"Ol-vHMFceK18HrhYujYIK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"irUalR52wvUXUn05gPc65":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"w0PqBrj77_pXeSp9xQyRU":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"Tma3Iz1aGBp9EmrPPvDwB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"w6KkiBxa3hEw2Jga15PZF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"QXPhIuf9_cmEl9gVTs_6w":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"xeFFfvXgNQtqy3yxqekfM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"JPYYuhXM8oHNTRBV_VIXX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"2UOtpnKifdhuac-BWEwSX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"7TYwsDZrY3cis_f5ERIDw":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"W6R4kzUCfY_1Z0addcZeO":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"nsxA24fn7dw-nPR6cL7sv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"tDHzPip2Lmxz8N9nHtcmd":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"BL-xkQ5w1VDJzAL0tNPUM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"rBKshQxC-V17P_iiiqJ6z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"GkQ05QXlvlRJFDWK9X3_a":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"JkClXZUjQ__PxzkGTTpAD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"ZUsBXf0fNxaAhF4le9gAg":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"gpqN4sW4K7IenIUwmQi2c":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"VW6s1j4M_5VCKp7_9LRX_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"q4VPOV1g-BcK9rmHITicX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"a9YN1fsVTiVB3q3L_13xu":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"utxOgF_vrVbtBQdY3u9Vx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"EvSVSLVBJ2g0GQXTIIGBJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"zpeq7sv5hpi7KNa1WaBvA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"0lZSQ16ilHfCA_AGfVoNK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"ynWYszsaQppqtu8V_ZD-a":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"Ed3j6DTvypb1lMhS6hCRa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"4cCDchd2d9UZm1wKWupwb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"6s256fuDROVd067ZrbLWW":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"fY3nPsTG93kGgULQaRUoL":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"SpVDumKix_LCvkHkvH937":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"6t-ROc3jsPD3s2-UwfqCb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"UtbSb74VfrPixCuGOsvkB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"YWyuTAbMPp7yGip0E_vW_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"sFHuBxtkwb9aQgxusojDr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"R3Sw6QyLBMgi1iImvEtkx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"omk2TphHrOyZkfzskrp_9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"InMmOGkm13NzCXnpQ29Mn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"Yt5j5PHqSdNrTcd1_yqbH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"wGHtBMvE5qgas6ObPg2ca":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"_qdCqMYoxwRdPF7dJl7mA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"30klMyTRxjx8aVx3647jb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"a0tMelerivO7xjjTN1VOQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"k4X4PEhpOelByGjqhiLdc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"ydq6ItX4oxwlVi8sqYOVd":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"FLDVuXw4fqj1EZC9Fop6Z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"HKLuxew2I_oVaFRiVvi7e":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"_5BX8NrGxuT4jxUIB0WXw":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"v1j5CUi2q3VLHBQr68Gff":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"_NFSPvua9HQMYlr5FF7dR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"t2OpLbhhNSSL3u7zkPT0W":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"HRvHxGiq8sKLTWjo5q1MA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"jBHgFE2xXFqE6O4oubgKJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"r3R0BSoetsDXs73GMMjjz":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"d7ItoJ_sA5E3r_CGrchl5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"cTHy9tGpDiHYv_MElldAA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"OsTQ57R1g_NdfLi81IQMi":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"MGoykymbkFC2XD-CHhAgr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"W2Hbr5y8AX3RYScYVccPP":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"jLfYeg7fLdI6MWlmzV2VG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"XHY8LPjyyxNGI2Nvron3Z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"F3sr1pOPqCae3PejUsvxM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"DdvHu0x0qs4gT9_kxL-30":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"itf2u649pxhJFziC2iRkL":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"lbN-42MnQFosMDkJDgAzZ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"C2KS9ojVasN6TSWYScFeG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"Y1g979Yulu63TLPSkwwgn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"3p5JjAcVc-NT14qJEHpcp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"YNPeUUXm5E7VzFXTmoLyc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"lUOge6kq6iM0jXcxWy890":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"6cqVcX4jEn-7mb-MlKjXT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"v2JIzFK9wrSth8Z6EYOgl":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"vHOcw1f7QqSxWEwogAVd_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"N3hag7hdcRVeXIUMdlBHV":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"whyV87TJUlKg0FGCO3Fva":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"cfIz7kzX0Bgb0D_fK9vMc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"D8h5FuE98Wjihw44vYx6M":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"AfP9lfKNP34atd-1FpITL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"mOAht6GxeypuOinEFLpAX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"YX5yfltDSXIjxniWBPSh8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"qIhiyCffvglaNyuk2KsT7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"Bf848DnVIyyXTtpzgKjJF":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"S4Agtc32hoEeyiDyAM3Wv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"ZAk2gnVP-EBmgSNVOs_yd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"eZw6oCdc5ZutXtiRRJlVM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"afrvHEeFCDj1fkZIaw2Bo":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"zIAR8MQrg4OnRPc2BVX1Y":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"H2Eq7U-zOlhgsK_XevY7k":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"OAQydWkGfjyA7SsNNdQpz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"uOluTDzUVA-7d7lIptVzR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"H8tbbpdkk2jhCJ0Bs7nST":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"8YTkz3C_16LgXJAWaHzJA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"BDBurDgEaDCk2YkEWKONt":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"XZ2s-iITp1VOP0AALtsWR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"MZZeb6UMDB_nLuk6oauqh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"p985lovThPEe2-ujymWbp":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"wGwjyVr7o4-anlqjHH_uq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"B5YqjWl23XQX3miiOr18F":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"ZeoQ-HtgkcRL4A87jXbGm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"iCzGYcn5cGDCq_PsC93Ld":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"Pz7QsaUUMwhFfzIlIc5BR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"hifMETETQ0UD1BjJ7zXH-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"CwEYjD5q0gqzeaUXdjQzN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"x9wHC-M402OSO79f2J1cP":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"wp2b04eBp0tW9xgy2WMHc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"ixjwvoSs8F9mQHEdQsXsN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"UVrUlOwZfRB8A3TPQ6bTz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"oC_Ck71AgBL69j4_8nQgM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"LHaSXgFGpuGs7Mi-TCrvA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"jIRWvjS-NVHwPnQAgjFT_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"wOql6ggplkDbbr5UqV3CE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"wHTF72YT_JYqmDz5Xdq7R":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"H_hwbPI9VylNu2Al-EBjz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"2nSDOyBlYPpkbcaWYkSvT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"JKg_Ct8rncKsI1Ob9Je-S":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"l15iiVyJr9FgRZzZ9QqVM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"bc5I7qRl-AqMk1023LT_K":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"yMEDFnpmg6o5wVRNG_7uw":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"rrmo7py6yoBcXJmjKl524":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"UF2WFZjCwwCMTY7los_m5":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"Wy6KBzPi5V1eXREWqP-II":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"Jbqq2OBJ2qJkZhdagKRZj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"-tBJBpYYPUZkOkyilyxBT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"iV4KVdPEt9hkaK2UUuKDz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"tNz4t4I_ukcPJfSEBQOgu":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"S6LjNb8StVX-1UA87wGWM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"JOX_yPtVDjZcZhT3_YeG_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"eEsCVg6IFKTj4GPhzpnDE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"qpLtU1XgIhMk4SIugypUH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"FbPWLZ1zSeYwi4SdM9Azr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"J_SkzoHCBRwL0iNua_swC":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"ihNET2vAoxWTWvggAAiRE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"hG6S62E3viEPk-2qO0hIQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"eHKCNLnXQDgj_-nDCORz3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"b0UZFUcBJD2mpEI0p5x2C":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"MUOZ5zu6MawKKY6jWZKqx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"WqZivhL9gId3kzegQiaYX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"-tj3tPlH5KpwsptfVTSs8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"1TlVj54PoWTFdDkPYP-GO":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"8UmW15s9TkVyo1gQBECl_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"R0gRPHGPxUFyzrEoizZvy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"f8DBvOKMF3INV-2i7QZpD":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"f81BfoZvJZJyKHKYFRHoy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"M9XbHhpuEanB8F2rVw9-3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"uinwMA0aprCVl9pBCtryH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"HnxopiFSoeyQVn3GxH087":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"8LANllLzZ9vm8-73MF9Hi":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"UgpMcE4XfFiewNMDd3we5":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"wW375FohyBjPxSF5MPHgb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"QxoTRVnhYb3txXCgbWXkp":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"LZf09_dKwTVqscOJS-suz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"t9CNo6Lkz0RLURqJJMkRv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"62vG0VM-OtZQDFpjoS954":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"tbYb5qYpoc3wMvfZwgJ53":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"Klrdqec3uVrcOAleQRW5-":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"KSTZvkZ4MI4w2rpKVo9E1":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"sloNCfa1jBcTRST3SN9UI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"YMso34I-Z5UphWK5j1WTW":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"YfOtxmE0hLQ_1c9z1gllE":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"7NFG4pR7r-7Js_GGxpZbW":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"MU8SoCWJPOQy3iQfJw2sT":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"ZgdaQLSpSRhU-_SYsLYOI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"az4o6BgYc6VFvRsgmOarH":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"71I0ZAci-DpTCJADQCL77":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"VYSFzTv1KlDNUokEXq2qI":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"FLjkU3_10GLHTFkgY9-2h":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"1z5GdMmds2pxyP6R9bH0S":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"YvksA7H_xO5yWI4NSpM6Q":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"5VZY858W_I7KfOenRbXwo":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"C5U3noMN-G8O5tYc2uR7m":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"YpMQoqmaTVoP-aRgH8_qg":{"uri":"/melonJS/docs/melonjs/Entity.html"},"bqg-VM1l_PAU_iXPYReKA":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"ro1uVjTFQo71P87xgjY4z":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"_cmMbR2fmB25AP7hy2btg":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"_IcogyuiLRH1bI0ikvOXM":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"hF8FMqL8xkrYgYplqwWbn":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"rUpEM8vAhnFKUpg3e9QaW":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"uBI2hDOMIO9KnibwgfhnL":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"ztWaZTqWZUxqN3DBzME9d":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"-KQDoJddZEUFLqST-HxgG":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"lpe7NzYTtMvO-QCmHytpN":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"mSD01fdobvVSHJ3Vb11PX":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"TWsAKQ3Wi_I-t1d49AwDD":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"gV22omFvcAc--5dVN7Nzl":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"lnLpP-lrawC6CGNwGETSN":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"t7l38ZIT0UZiX143tPrCz":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"WhFC3O3klsIgs-FU4skty":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"QYdnl0qzCpe0_Q5bNhEgi":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"ke7WWBfmMrcVAlUL7eO5w":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"4gKzgksJOnFN5opeBukEY":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"1QOfRtdq7MkxJ-GEQ6XYF":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"Sid7lbxIgWJWtlC65ZaGB":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"m4npIEQY6ZNzxqfQyumkB":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"kYsGvPHthQ_k3mwdAXmhP":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"F_mJCE01n83EJ0FCBfD9h":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"wjGOHhD02__EEQJK9RChX":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"bGoyvHmJ6ilUDYp3grO2l":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"XmxyfvTJltFiQogs5-fBl":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"xgX-84Uh821h6bQi7-cSX":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"v9q0t3nju9EznDH2m-ccB":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"Jwa9O5yPNuA804OY1FonP":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"pSP-harAMB04NwzhYR2oz":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"T1RwMwvV9YDiwxATT77lg":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"FZr1VxWlIStweZmfVODYD":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"ZaSbTwDcdngVzzwO3732D":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"98Uj7cnMo8O7AomLcR4dw":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"wp6g-X-77js18HOuvlRK8":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"7_DbUa0zRANDbJBO4vMyg":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"le9Dcf5X_IJbK6XVtXs0-":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"6zW0pCa4N06N_t_4qthfG":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"x2keBUtcwllGC5eWnrCOQ":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"m8gxqO18j0CT1mJtzmDRC":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"q3-rYTTuIOpeijpURNcv8":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"4M4zIf7mH1QV5rIz3dhqX":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"SXFtPS9O3crRtjErnTgvU":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"C7qoc5jidWdUGqMsRAYa8":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"9A1QGLNj67fjiedveacwb":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"nL8qYMrbcTAt5Gc-2lz3y":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"BFSCwCOhDAtMHmg2MXfzU":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"crML9ErCi7un5s8dxBLMI":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"z0uSg5iaIpLtBUL62KKDv":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"ux4c49bG7aMgMgpVV_xsE":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"PMHXShCzBv5vOaFckIyXF":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"eA186o35iTO0r4ifeMV7L":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"XMC5vlp9IR5EA2Elw54uq":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"LMdStydH70MikdF3MXR4O":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"zj3fNL2FIAC7IZG6HrPuK":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"avuGAMI7rmiWy7QIHqPc_":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"JP8B-FruzaesePp0txyYF":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"onjOtWTp9_jwvkDvLr2lm":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"u2t8mXOTKz_Ts57AhaulT":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"nOEjSd7TSL4MEpVAiWQcX":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"PRr1VWT1Nviz2W3PjJlBu":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"3--ctwe9khAu4iOWVigHL":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"n8kg83YQYVv_9PeBC2rBN":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"HNPUknuUu5n0LHBpopA2b":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"50qlwECBN6I3gH95xub_H":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"bpXCRZyV19fAhqgRTtLuU":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"1GBnH7RFTAqoMDDliZbfT":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"oQW84KZs6p9MXeMyKawQq":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"786nt8uOQ2LfhAxcaEZ2_":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"8LPJ6FhwIuPd53dcTo1g-":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"yBttirozcViwNkngTFKRO":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"LaC6HnSRPfoYkKyXyc0FR":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"B_puFoijzPxhrvDQ7FtQq":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"Yi1_q3QzlHWALYcWF5Omx":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"m1ncL7we7ip_FFX5Z4w5b":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"8CZa0dP0SXfvXBlgC_b8m":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"CT8VXw5bYLx1HpzRa_3d6":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"tCkxHouUCTxTFIX-7hv2J":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"44QXLbOQiagEc5GXpn7AK":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"ZsTNJnrIjb0gawSZrhuSE":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"jr-ZOqX439mXo3UsLc1Dy":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"qXGNd_4YvoU2HFmUxdW5Z":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"1TxjXUTv6BWvITsIa79Up":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"us77wEAeawdh5r0mEZP0q":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"n789S2RqXypv1YtftjqfA":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"lxvCDDjB_bQVKhMRt628i":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"SCPPiX-9bkwNVVxHumBGy":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"dDfcqEMrdXUzs_Xs-8Tps":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"S5WftMhYg1pBjLAChu4Bl":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"E1vT7PRNFiMEIrF7btHjC":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"7SsizvrV8LOC7TM_bweSu":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"RGVcha1rywnQCBV580A5z":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"vMIS6wBewADsj5LhrDYDH":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"o3iT_bHdw2d5eDgBcdmW9":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"vpszRFD8ZWnBBuThrAYNL":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"q2KsY1ewVxgqLieKuNMQE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"5VAeG0CMw4IiPcfb0Eonh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"Xq64Ue5cZHpxdBZTDCOJC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"FNKOCW7LtFwJG8PBSWi5V":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"VOUe-9IksHKtVGwq5dqoI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"qA8_BC4R-f9hgvZUz7z0j":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"J0Tv6s_W_bc75B_WDE_il":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"clfv2mMHgKUDa9oJnXaq8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"iqi-YGpLxWJWZAMjMfxvx":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"sZEhxAEkmnS9I-DY4aACo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"XCZNLpx5krrh34SsdXH4r":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"bRqdhvE7QpkyDsED5XMie":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"yZbZAdojZ8ekkLUwoIqYz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"2XlxGTtOBDUUlhv_fkjLI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"EQXfK-8PL5zHae3O2LnZH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"tfX-fEHSPn3WXWd_lPsCb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"1uZBGkaUvENoH175y6H1j":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"ToI4ZJqWGpUlBM-suvHg7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"lubn8lVOKHg7M317F_Fce":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"TYKBd8eC8i6h0nbZ1hgld":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"yYfTHr5ysU7qYNHpIQ95n":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"VvQF4e8zgPICh0qn3qMfz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"1eyjPH0ijBjeVTLXtxb8n":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"IF1C5pX1k3OUxqJl7XtR_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"uGh2sfFHR9VgDez5xQprh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"NkGtH42R9V56e4nfMeAGK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"LefijSw9csrpusyAsdsxg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"EqN-UjkaiIFUGn11aXKJF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"zTRV17h-i13nQhP9Q8dYK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"Vyrh8n6qmM6Q6I6hXaLur":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"UeMQE-7DCOmATOFTml3za":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"KZM-cM_CkXk08RtslmefC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"KtOPswZkUfkWY3PWPCWKx":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"2OUmrKAkcuUsLWkPloJq7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"5HaBlRKIkVkk6m42WdcHG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"2OVWG6RYdt097a8n5h-Tg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"MGg0dUduQHJF5a7PVNzE_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"DdsDiT-WYeVrWeQ0zxk43":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"CKIbRAYvGAGinmDMR5rKA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"fkYvvr5xpJaDe_TgddMrU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"PbmG7Gz43AxIvBdfL6DWf":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"vIdi5x5hjjwkNV7f5xaiK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"TZRZcTSKtT2Jar8MZNOJp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"r6wSJfeNP4JnmBEVyNcm5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"tuk_9AGqczefty0Ie5EMo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"j5Es3z8ldqIPctGazTKha":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"QmNkCcKzBGvixwllZtzXi":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"g8Sh4l8XYzhMiQyoxPTKU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"jI2YIX1orG6A_M5aOiCxc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"PkOg_nbT78Gf641PKUx3S":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"du9oRuclD1CLMzkzSd7PW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"eTL21p1MkVbRofDwVd66P":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"_d0Jx0NTKt4TnwQd16Jql":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"987aZb2J_3BguGwPLzSof":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"YUdBGCkqg1DZkejUutxIu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"IJsDzbKx3Hiba_H7Pe-Uh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"3OHTL9Op3p9MI8Yvp2Xt3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"07P4kBJu1h9Y3A7dkl6ey":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"_I0br3YW7_IAJ12u_kZfg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"PA-RBHGMhoF9X8jOSiKQE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"z7Dg6DY0Yw2Gdn3ZU03vO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"P3YPlTTy9gcgvLtSb8krq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"lkS95nnqzdScZW-mJlI68":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"QsaJbDLUfKjtVhMwHQB4i":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"-w1sffbADK1JN_KTL9laG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"s8eg-_9c3ZVH-ocN8GB1F":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"WIq_8spC4WKfXbL1nrw6C":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"Hrzs5zjeGu_-lMobQFzxm":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"OrSbmy5zX6MTIBFiGjTZC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"h_afFp9k_UNt-aPD33BZK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"AOkqr07VWzRH5VJ4zP9Qp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"xGqmFchlmRsdDwHm1P8gr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"vAdaUWqvbB4q0IdGcbYo3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"bmTmnwrIT0lYZwBKqoeiW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"uO_nAUIJ8c5lqxgq4RpeH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"578hprLm4ccrEjYM8xSwQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"VRlxW_jaT7R9isX8W2S70":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"Ekpgk_mnvnguiaQ33_SvS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"p6PDt0MIE3tP1A0JAF9fS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"FfTmM_vv8HywSABRiJZhE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"3RMVuReHKaf10iw03zsYi":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"TQ6vC558HztVlA7TVLcpF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"_Zl1MvK5QKiECcnf1UVjW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"UCsyTJfijLYUtRg_3zW0f":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"CjWaYXjS_dwO8FlZe7Jbo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"K-4Ryxbdw-fwyY4HzfkUn":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"HgX8_oiETy8G-XxW84ddN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"ZokUGqkPDDEJXGNlZ_CYb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"DyYivsnO1esA-SMYWQ1vD":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"L5uhYTFJeld9haXUcJswd":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"DZLcCuad8RMib-ql3qAkj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"wPOCoAcHg7OGfXVyEDv-p":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"dTSlBryiStQ45xhXGGpeq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"4Wplzr3j0_82u2xB_-ZSL":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"PcRjNT7o3WZtI9SCLdlqh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"nTK9BNH4jENyoStX7lxYL":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"oMKipEaH7P-NdwrGpij2h":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"wBgMpX4kda6simpj3SsNi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"T9Nl2ZZtPJ9kz3F_vzsBY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"mkNMeCNO6l2K1EgQqUxo7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"MNcey5xZCGZHs2wfZSNMf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"q9n4AyLqKJ2_rB0PZ3Qfg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"W4BKBcwC9VT6iKEiAQNsd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"YTgbN04KQXQV23J0sGRfh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"-qlIxhBbJZMZ9ejQ6mXsx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"SeT4VYF86gAUGukInek9_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"lJY8yY4SANZvNLiHDO-yZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"u9t9_MaWT9l8KDRH5XgCY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"X99WMs9Ye8RPwJ-t4TK5s":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"5FzuFIhHzc-Pv17cRZBwx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"LsJLr-fdyrDo4udRjmTP-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"2UnleK7RY438PRH8ZGWZ9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"CoFboymerWOBSC0QJ08QU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"DDJWTFjnMIGvoHkJiiM3c":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"IIKhZVhf1fl0UnUqjy2hp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"psdq0SfZUS_TBdd0QLYHp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"kAaiFyQWHjUjvTb5Z2BPi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"CiMwTahRXs-Jc61i3Zbze":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"whvzAzeY-2EL_rn7CPjP5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"0cRvsnT6Bei5SBWNiiy3h":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"a5SEePNr1BJGj5IJmAGBb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"C4cr8XcChqkCZdIC9pFtP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"J8fc8GM20Kpp0hKs1xfDR":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"bp9rwQ3qVmNAa2AgJj_gX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"LZYenbFMWU1gkHIJiEAMy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"wlpufCu9Xo1hVsB9OmoBM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"2Ga3coLzTUuSIh9xAjDbh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"rKWeRzwTW1tGli6wTWvRb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"wO_Iljr_KyLhD93TVOlN3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"BCD7Nef8ESdWhjVQAOlgF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"M2U-z907qw9b1jEYoWZ2_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"uckVGpBB80t58J08pxb4G":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"YVVy7TbAaLr1wlExrRzo5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"kRbCuHbZjg4s4RGqSws6S":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"g_1_BxAvJfEX1U5KSVmW3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"YUrHXpKvL9El2eYNQuM5l":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"8l6indHwX_KY8aXgOa2GB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"OjtiGKkMzLSHlZCpzcdYk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"6CKw_f98HyF8kDNVLCHQP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"LRq0FvzGWaUt0An48jmO-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"JrDbPxBPfqQYucz9f-B7H":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"isEFPq5lTveX0e53CXmHM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"_z6zXnhZN_7q88C6PzwX9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"77cgmmATSesGopXJWGyAz":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"uBm66P6PFzCtLJlCqcJfU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"tCurjB020R8HJBEENZ5tg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"7ufaP1aoJ1nwtfkhHS_Ok":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"srChAaot20sQpvCzWrXFH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"LYAQs6pBa4kuPPTFTnLV1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"V6zjwfdzrFG369D-CEFP1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"t3MzKsQ76xQ91JgxawXNX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"hFEoz1w9mgLzpYdLZ6Mmt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"JXiw6k92xXPdHZ-seM2tl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"i3MXNeOIYcZCdSoAeMuzP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"jrz7jKMkFDI7qj8dxAzrD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"-7ZQ5iY7CmkY2GUUW4RK-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"881qvQpmWtwK8ZOIhOMNe":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"6Fkn80GtS9n4Nwa2JGjk0":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"8770W2V35s2c6k5gidFeF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"QA7-ap7MJJKhKQ7GUwhZh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"_s4QtHw0ClPepGA__hJ6g":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"UFftMs46jCF7ihGHSeIOE":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"oq_nCTnSbGsiNqPSPm42d":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"OWUL3cVSQ9IZdASpsHLyK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"RUmLBxNzG4c_7GSJjfo4V":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"4MeWCYAJ-4emi-fhEsGcs":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"3HGN19eQncRE-oQ9u4WIy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"1SURbvRnajXGJ6SkVq0ZH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"eREFg3cec7fjnUVLCD5BP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"Hcf-LyeCFVaMoCmtkLz07":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"mkbCvUUlLSuF-k8UH3v7u":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"6bvj5BB4nkOPMjcFqAzZi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"gOgy5n0uYJ67iGIKcI5JS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"8Dmb8eIIe9Kozi2ecDuS3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"WDK0qomz_hsFUg5QgnBQf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"WpDOs3LmaEFDQeYujKtP4":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"99ud22ebSJvriaNrRPsOW":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"aNYYWGQwtBS33dTXl7zDl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"Jt4g4yFjnX2sOc83cn0IR":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"OtjDLnZgI4sps7sgAtCrw":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"iZLWFegtycpR-0D7lKLLk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"Mla7SdO6u1KFBE2SdEvvS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"_dmjINIJ_EVqxyITjBvVM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"noCGRn0A_irT4v_YezuH_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"kVma1S5ZyupHdeeCFOo2d":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"HsBHc3IRGQ38OKurbbDfH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"lIDtUNEodr5oSylhKMtBQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"DLZZjnytnoEuva1SqF0OT":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"6K2YzPqVY95JpE2d8cZQg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"DYMPUfYJaPlEcoZjQIvFf":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"RebgYvrCfpzv51d_ydzG9":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"0BcYfkLB1HHJGWgEMXfij":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"dMcnxGAeWXQ7EysETRWto":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"dLlywPXvXJgJfuVJryfqb":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"f82Lc-CDZSC3b5XP0gAbp":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"7fruDRZ2oGPzgn8DIqTRu":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"NnNvzLdMdcvPgMMAEFuyo":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"yc3Gvg3DhZVVnFVVMr-Ic":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"oxzmyKL5rQdoXhP4MV6aq":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"06-EEYI2VTAxh9vmIZtZs":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"p4IRhi5_-HkD-qBWBkzjg":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"9E7pFaVf5Z5RS76wrYXB_":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"dF19QUwKCOlyCQH-JXawK":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"RJF1R2hFp6OH8jT7hhRrG":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"-HwM-Ib1lpVR5iN0zbloD":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"5Hnbxc6B_KRWedHiDwbCi":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"TWPMtwUnlKvjHwBZakmVM":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"qyLRHfPtLENwcXijOaZoC":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"ChBJhpUZB8Q6q80P2Flwr":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"XbttvZiGj6A6alPpaKNOC":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"EOBUAAlGy5fsCgDqenIdq":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"vluyWl2SkY1QJyyOpYBsL":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"vwYs8VeGKJrp4VrczlChC":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"EWWmx_7b4o6RqSE1DnD63":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"E8P8TbS6PBILumKIk1bjT":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"xeht-OH9wCle2qxGc6g2h":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"FBDu4S6hKeRbJA6TCfkZv":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"imm47VSsOUVaLG5A50mOU":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"VbfF6fx0pdlRNVZfig8TV":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"myyvMQ6flOiGgNeIy2pu8":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"mbxu_ABdBs3EFaviyYgqo":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"z1Ryp45anIQ2d-tO-a64K":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"GL-5EWRWbtUSt5noeYJDE":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"6JYd5WoEwNOKec8sV_j4x":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"9YPC0x5KqtbEMCEmUj-ZA":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"y9pLwnMRxdD7dXXZ4vYKb":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"r6Kkurp59JDzz7I8HXlBb":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"9flxG-6b-VixGUtFiU_Ix":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"vx0Y74dGCPLVKipdF4e1C":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"u1KOtRaI-lhaNYrNWIPOx":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"kUlKqFVqlXnIog5C61Znd":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"TB6zhuAYfoGTDdh_ZmYSj":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"YYKRJWvWiTU7RJQiCiXmi":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"6KnGRLRpBGrfbzGHINekT":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"Oq4PF0K-qmyFr1RX3iWpg":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"xFooM_y671qS0wWvQcmoZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"Ud70yYEgiaTsWzW2Cngzr":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"UX8-C1JftsDCrIu2i8G1x":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"5iuEUs1-bLcKSdYvEAQ_n":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"NQEE1MGtONWd4Z8XHXSxO":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"MVHDbxeei_S-J8geLk9fL":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"_0bQUc4pvBhF5_cdTh_wZ":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"rDusukJP3O71kphtFpOVj":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"bJ0jcs7LHDvpAB88o_QkL":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"exzc4jD-XaiCRmIB8tLkX":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"K-Rar5nMSQyQumKnvxFXd":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"x36fiVOk3RUBSWuHLPlim":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"44hHXTMJ_y0XrChTr-zUO":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"s5YOlWT8Fp2DycCs59ga5":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"saWSPzvjCr0S2ekVZ8-G7":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"bnf0RXdkpP5el5G_twVKs":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"MBg8aIyYkpXBuUYG8G5zp":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"emPZUDd0PF6tCKeMGl0Pq":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"sLhGwXQZVuQJvKkUFc1h8":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"5izLmN4wPDs_lOfjyp6dp":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"PWKkabRpbGyNCmclaRDyJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"nTE2jWpEEIl93Hdt7Dn6A":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"nMycJZTbgmy58tu_YmIiV":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"1o7AUQ22V-7qQdabstFVh":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"ENus8IKAjBPfMA8it6kJA":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"OMAz5GgyEe_PgLBQKmcv8":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"Msay27YV4uGKv2mGTbuhv":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"CA67-MhJW3dpi6M7SopYc":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"hZ_zXPQIjWnhqXA6_Z42W":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"l-UMcMbtexachirJ1tRRp":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"ymxwlpq1kAWYb6fs73YVr":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"19qBAS4GtSAjpiTCYP7x2":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"hF79RvBsi6pFKo0xJhM5t":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"rnjBH43pwvqBWBDxkk7Jj":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"dzXP6yFx9kDxLpzWuJq-g":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"MgBE8bZi516uJaD19BUKh":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"H3GWmRdbZw6PC_zqxBw7l":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"j0fEeKVmrL4yUzpwQNbZl":{"uri":"/melonJS/docs/melonjs/Line.html"},"YkEOq5uhrg5iE8l6gqfKT":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"HIPC6NaDlZknbERIL10y1":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"N4JaL7GleMLjo-gnP-7Vr":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"u_Wl52e8u9DpC4e3qAxVQ":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"1OXTax-QeFzrA_oinDuRb":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"4WEMqfiZJvkite6LfFIRP":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"z1vTfnbc2QVpK3yf5Dt7n":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"Eq-u25Bn3CCYtAmRnYzDX":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"Dk8UrRD0ApECP_Hc1JYCw":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"14lUAtyXmEdtiWFJLQ53N":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"Bush2nO1eHzsiaY-mRCrX":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"7ujTRioY-JQaIpiqrruUz":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"zHioFyvs71Vbr5MbuJiv8":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"WBG1lI3xm2EBo1s2qlDMS":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"yix_i1ucuaan1d4y-rQmA":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"_jtElNgDYB9CHTJOQ4h4H":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"PdXktlHntsJolpjMm-rBu":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"HkFBFLq2nxzu7Wlj4UdBt":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"vE7RmBn6tWwgp95tm1oEq":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"5H4Bf4QPVdXuBmmzZsd21":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"nJIdl69Tj0smK-7bZ5JUm":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"V7oVFdYgBtQHsDsnV74aC":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"CHSuHj_bC1Z7Bzy9q5-Wu":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"-9OpxLrpVxuXxiFaNHgjk":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"r5P_lzHBWT846wkbGdl1f":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"2lSYkCzAB8E1kad5yHMbw":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"e9mK6ezyWJqws1mefut5L":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"CFN_rfs_fYFhwDiW4G8HO":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"jqu40_bVoCqEtC672WDTw":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"vEe3veYkr991IIso-oCjF":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"R1kKH916a1Te15KnEbe7N":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"RK5iA_hFSqsfyKKFLfL-6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"1kK17u0XiN9-qcnI0-Wp0":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"-nYs76mzVhRPlqYpP5RbO":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"jtxQe8ycWRBUYOs-C9KbF":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"bsipBZmpkMxHg8RgozBSh":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"w2yLZD3QMu6RtdKIAjS3N":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"XrJNE5uSLHkF7JDqx219C":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"TnZRXk85hbuCeRyGjgtmu":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"xUzjz3Gb6jJ8kw5usQcsw":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"v6SQ6z3WfDT_wtjvpn8tz":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"9uRSVN0dbq318si5rbGU6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"6anlFE_nGgTP2aCUk_mg8":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"KXjma-d_4YJQnMDycEyxS":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"Nz0A2NKcZ3wIyVCFIS5qK":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"TTvxXleN8AHhw-aMlz8mk":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"3tkV4keAFRnv2imNnQ2qZ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"uzW2miRvPRfkPzZGLe-61":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"EfH9wjjSvmEK--BLn9sQ0":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"B-kXCIEIoYd6ozY2Z-mQp":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"wt6XP_pMrLOahRH-eG4Ur":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"loHV1z0fyzuhyc80hAaPS":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"nAXTxup4UG7IKYRJgVlYh":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"kj-tyzwJgM3MkXETYSbqh":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"HZVVHNoNNORl1yqoL8n4M":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"rQ80Y_NwHzrQ-ZRlwu0Jf":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"ODZD4FerhZlSJw8h_oiTs":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"Vj-accebk-A1spFnzgC3O":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"F3YgnUxS0SjiUYfpxU3Mr":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"lAr46ZP4-ie4oOa23fZMy":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"-MhaAz03B2lJiaATppudp":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"19WPpZz4zOxyOvIdWAUuA":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"Npo5BZxTWu0ktsyEzhC5Z":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"2EozApq6e-J4xJ3v2HCxw":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"i9Y3r76azYmbu5tSZUtdH":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"Xss3oYNwHrxMTUuygPVc-":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"_SAO76DIpNg-eYAq2_cyM":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"QcfCW_hI4xjZXD6XWzct4":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"VpMz7OhZCTkQkIdz2_EM5":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"o7gIV3MOE3I7B248LMz6r":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"-3z-dE2-lKRfmD2gPqg3u":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"PkjaXBkM38vCMvE-36KeG":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"t8dZ4N0xxvjk52b4fMbUj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"yebYCsk6VOIG1RAqcph6m":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"2YoJmZj26i66h0XeQ1Cdo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"Wdhtay0aP657f-CEp8rsz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"uQLK7tbOEy_zD0k8jPbqI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"BMcc3A8zyHtfoJbF_AIlJ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"zaC9l0w2byXQxvRC3r8H5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"IC0c2kI0vSPWpWKUyeeXK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"oE3j1_ANQ6R_T2kSlc8OZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"jNiHuLAamSxZBq5sx-BB2":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"GuyMC-zXty1PEF652iau9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"QM6IG2QjaK9ZmQnrBCw6l":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"U5JKqEzdX-x_KBuLzsBub":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"D8q6zbcqvdjUk8Ox83GDZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"oWHmC9M0FW-1cxCyPQG4G":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"vSRF0899VqrVQLgZ1g71Z":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"AiVTb8B1Uy_lelNiTZH74":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"mYsOgXllSqLv7JPrypu5B":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"5hJlHi1vw9Bm4_TVklwzp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"VFWAzCG1kFAWVRPkPQg9D":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"ShUKb5-Iyc-wdlbXrYJhN":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"Yn1KmyyXHlG8miI5BsXrp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"D2iE0L5E9ElHCR3YqzO2g":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"5Zs6Z3VWFrhZUuVNxtYD6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"rrr2uVCzDGl4_m2dWl_dk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"eQ2VofkTO2NuDkhx4RBFV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"_X0E38SogiHjkmNi23UvS":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"iZKR0wsjfmDdH3xOswC12":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"mh2ah2Anci916EzRmmYvQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"LLSHoUPAjXKrP5dyj2xxN":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"hz6Y6zTtYm--5qDtaqvEY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"YnBKunJS7t2egSQKZWQZo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"JN_XGTLzz0D5HT-lShuzv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"wehzq62-f7dJQzaSCTZg4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"8TQ0doP79RrO_uu8ecmlz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"8kLTFc59lqkwpFsTx8J13":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"lhJLvyfAraeDvcoD2nnLa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"8iB5NKimtU3f6Y0XXYL-k":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"6gppghqztJje8UhsU9Coa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"9t5_aJjPXa9VlKOFQeFWm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"pzcHGcyrqI0OOZZhvRlYy":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"eNWDOFKWmulS5f9KvGjeO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"zZjpDPt0ZTuKeiT-Fvsox":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"dVaSnn-UWIEf8x2_YDM4K":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"_thvrN7o4n-hvMIKYWwpw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"k-mrQfoJ1U0QEun9N-ay6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"wGNGa4f2yxWRV17PnspsA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"z-BhXOk4dSCIfipJ3L9fd":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"i8Labp3OpB8f2G3lI1WaU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"ARbdSN0X7APNLNGZUZlPx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"H2kSSkaYLCUPV1_KNfB9g":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"fggvmOFl6S9RXjwOAFEAa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"GvfPwtJmGKrk-NO1MF2lM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"P5wzmVEQFL1dmRKBMdWai":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"SF0fUrS7xM8Ws9HfJgyHw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"LzI7dRAfUY5DWM6vqhHjQ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"O4CBUQBDqqVGOl6Q2kN7F":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"Fg-AysNh9j2-wfCcF4aRZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"Fdt6MWPUKTS0_iflf4Tli":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"Ye-Da3gSRs8W_sroJxGge":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"ZGMAXPR3dVKrfixy5ZYrp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"_KYDNBrEgf-A1lwRuK1Sl":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"et25pZThGDklFzN2Lbyua":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"PBi2L0zhf7V0UiPoV3Rwj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"9Cp9b59_RffhxSey3FWca":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"BrAxTY6ME6FUvVLiRza55":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"aRu2ELWxUenqig3Y3awl9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"rkLtAvzKckAPTn0MSYjKp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"IFtgMD0qkKVDbExYjEh8H":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"b7O0R3HGd100lR1uPAFET":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"6nbHP11B8_ilT3WUHcwZX":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"nHWPNfzywcHZFhrYN1pA1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"dW3OLAE5K5QvEkHvXMQ-a":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"OQJckClj0dyDf4SLTZ_MH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"Zm5ftunJRVweDTgztGhTT":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"zsJIJun4eLZAP9Tu9-8vp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"jznK4COP5P0m1yRE6R-S6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"pQgcMBLBSBW8hshD5mcN0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"6iOjwdX6nxr_TeswzZxlD":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"qpgEpX8K6PuOl6g5GWt5L":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"7aGHv--Abxbyj5s7UcT99":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"Lg8X4t1rIWuO3w30NmkGk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"Oa0Q_Tnl5ZbtVvktRkn7L":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"xt11SRjbmByP5kgyjnEeI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"SqB4v_4DwV7UiVcRO7MyC":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"NQ1etP8Q2np4CzQ7w6vxY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"IXT98V1J9XQrWLwLffPjd":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"pegXggAGwjaRa3sD6_BXq":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"cZJ486Ww33t1yy5ne15zE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"wlNf_5xZ1-6gJa6FgWz_5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"vIRAMLtjplHjOKNhX7RJG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"8gGU3LrLFUIVRDRu2jG54":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"Xcuj4RRYZfaznr6ucERFE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"Eki9I3NLJNe8EOjcvwSXr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"ZwKrFgQK9y2atL0SyLK2u":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"GeHzMNJ_wPclGOObQKeNa":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"OFijDeNP6VTqRESQl3ud-":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"T_pAs4dwXeXoJ7owbnATE":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"0388kz-645s8KWj0HbAKJ":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"DrVSAcXmGcO3zO8aDoaBJ":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"V53zkQgeG4GONG1GC0jqh":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"gfypW9sl7hhwAiGnlVdSn":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"4pPtN-Jpb_Lg548sGC8Eo":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"e5uzC4Yv9iCJpRLNfd7pT":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"-dh5Xujo3WIG4fG9LD311":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"iiSF2Kj3wiOgA3xsHi6GP":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"NgF5gfDyBMvMJk95S5nWW":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"D7qpZOGCHPEvDP-opT4uS":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"pR_cHEdi0y5j5ZOwxAGrb":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"XWWsYGzFGCbt1XGguQCwG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"HKoEESeIy5nZWggB5DaCG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"waqbRTWAO1dl8XrkvML2E":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"jCwgYC4JlRFwTgnIwXwon":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"O1mtZDfo0k_NM6tK_xQL9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"li3iR3O0YMuJbs62rSAIQ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"eg1boua3ACkU5DVVE_gJ4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"mUNxwzUVsyS7uiTyj2Nc9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"ewvp0HG8-zmzEM-pKxdja":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"3_UH5nN5jRXf4Sze1407g":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"aq8-jqeTwl0goB0zdDeNG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"cQUckQQKaMFtBGXm56Dkm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"8DCzlNyoq_h6cMBJ4GKI1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"3GM0VcFL9ed57xusjnykE":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"oa5NwUByHpDWBN2HFOttS":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"3u5NaYzvURqk_vWrkc5aP":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"gwQcEf0VsL-50AokIvjJ8":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"TtvjndUDjOtMU9cgq37oQ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"HuHdw0Csct2HxS_qNzjeJ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"iLMpcLPBayAWM4kmw_IwB":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"d6leJ-HDH1-d81oGG36AY":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"dgWWmZdC5uqCUJ_NXA74J":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"wyK6ryOK1bT_oZ83OlIOK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"GpV5nXxxtYL07aDxhCkMR":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"qcuWsqDH3eVplD16u3W9r":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"rub59xTCwurIMSv9dttPP":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"t8W_Zk5F4wEaDD292QyBz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"Xh9DadKvHiOfXTdrztnKQ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"xzVpFMJQgzKsOFDlOWoT7":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"aizOgolR8dXsCcrOMC4g7":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"hPgEUIbAjGiUBZsTEKb5L":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"RTFOLTuLjM-fyWvDOL0_1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"uMnY-NvAJUWvMSwTxbjVF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"pf8vO3jT30zYy1H84UG-C":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"p5tFvnWzXAKh8Nw3ttpbG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"AuVE0dXjaqNAc01BWXz73":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"6EoUhkMq8NBIBXd5F61yY":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"B_2Z8gXqkSWUSsDcMhlVe":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"WIuitUFGP4FTvQTu8o0Ej":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"HA8vgbxHaX8HRCQhUUM7s":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"koX4HhL70iqsh8x_q1HqP":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"_NdG-20Z7VQu9MxBRTWTG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"97Ssl8Mk6QsH9JeFoeYaR":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"y6CBR1kpfKzNReX28WPTX":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"ojc7sLNR8zXlbXVEfPalH":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"EufyqCxMvCAAX4m9CUUtn":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"dUDPfWMuY0dGRHAO3WFzp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"0ltHRsbM8DAEOAJ6qrMZF":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"HbCtk2bRuZJCSBBwe3aP5":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"LTx_-tsw27_9FYs5PJgCS":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"jJOd5UOk77-ao0pHYAall":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"Oh1t6nE8GAQhSjtkC5hYt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"vQUKlVxbOi8sx1PYE_msz":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"S65C6B-1N_kvn9PhREkYU":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"ZnSjbIYbkKtUnGZ89lc2h":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"1z4eUjttOJ1tlAVOAK6uO":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"rA8CqL7nxvOunD7dZPDaP":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"VwquiAfdPnbc9VPTWsK9s":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"mtlZWJvxzTG1gOdThbJmz":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"MOpUtTGkFgpO8cBrsJo7x":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"sNT5dDCQmNSmT_NeO9pJi":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"bgsG8BV3Z4wN-9Z3rKrzi":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"FVLBCK_qwEruF3AahMcMc":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"IYuURKePPttJ5ANj1Rfaf":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"0YfaiI40WajMRh2xZBTP6":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"pJDmZnOXzfP1g96VxKOPw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"eLhP5yMYlHtkbtdp1JfkB":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"HKDURmsnpiD97cTa9FgL0":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"OHBHfrW6ZRGQ2qL9qVBv0":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"ZduHCdamgfcY4dhoAZTm-":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"5OzBt_7_uk4R2O--pp3BO":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"aqPVLoo3UnjD78u0GaXS5":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"zTXYuX1TQAwEdR7lWGYQ5":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"HK92-zNOBc-PEWnLZRskI":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"i9BXp1F1ReaaH7tq95m0o":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"p15ATzGsU3KjJ6yqlFpru":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"McChXuBlee_9FzFxWjcSl":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"GNY4VbGbfM-iH6ecxoJUz":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"IV_7_l8Dnc8Xq1yCIlGb9":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"6QjAxfoytUnHOwFBd2vbM":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"njYpObLdf6trlBCeP23Uc":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"i-2CRBraNtbXpd5zAd_Ej":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"WWMPZfNhrOY2GSoXB2bAs":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"_2OK4pGiU0fzo4SQ-Z1P8":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"sse8Gpk9moyFx2xFjUSMJ":{"uri":"/melonJS/docs/melonjs/Particle.html"},"jZEBuezp6JcmidhJsuulN":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"9mrbOlDADM3IT3Xng05RO":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"UvtcCBPVajYhSO0SpGtPL":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"Qi1bDg75nQ6nYXsvyfcfU":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"eLgFnZOJLhxfp1XPX3QKI":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"Nf0zrue_GiHwTNdcXtLx2":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"54tCCLpmAsSBz7-xukrM0":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"3OWMANyNsA4x29e6AgkLV":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"YrLWoNCKgQ11S4zDd00Ze":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"Q54MSCzsNSO_N1fYigG2j":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"HEvPfwX14br8MitKyYcW5":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"CdScRgOrQCKexQG8HULca":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"ZFohSesK68pX7KdvAtZzm":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"7DmyqLyC3gJfweioTrSGM":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"LWnn3grnE5Lntkdf26S6m":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"SVLIrMhiHpBjUtEGRQDZ7":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"b8Y1vUO_5adNyfFokBSQQ":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"pZMaMJrEa-2Ezf-cGC1kn":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"naWYRHbTmEgk7-JgngRwi":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"42PVpAdZjyxBGlzxUSqSB":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"XjFDjWu0aHQa82hWVla84":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"HyAfbxdzrcMAmxcI5120C":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"ZnIxun_G53qV3F4MCR3Q2":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"8HeVxzay6Bidb8aqPDZKs":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"Qa3e47N7q-HAnGb_OaHVv":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"k-f3a7abceExBOiT7JxA6":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"Chaujl9MPItCPMlURstAG":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"15pkZySobE7c4xCnbl-72":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"IoPsoDItIpx6Qh4pxAwXi":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"nqetfM8zig8EMpUPaA-K3":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"jDU2Pmq1yRG2oEqgi4LrV":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"YVhzYFMc7ysja3fOSRwAE":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"QFkFVwu-w3rHaO4ymFoZP":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"zmeqyS08RPNMabODr7dbv":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"RU2tD2VPdx-0tE3JCKAjp":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"0GjAr4KENYR2d3kRes-45":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"Wx1OPHRp0x5lv76AHOj13":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"VXlZP3m0qh6tz3JoSmMJj":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"on6BOzkw9TkXIlwtzKEvu":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"SKx2G1IzUn-x51gugMLrf":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"2OEqqExA6-7YjUQOoGnII":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"Li79X7jqUJC8MKuO6ocBm":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"wEI_VxJyynHLpumC92qnP":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"dm7ixaHfRkNQs92CVnzzP":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"meydq2y-OxyskYT5JH7f3":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"ghXunEdz6tv33KcIedFTN":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"SZ-MCU4VTGBlbwGny5FFX":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"hjftfyDEUetRtYSqAukhI":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"JZVujgr9ohoBWThsuq9qJ":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"Cj_D6VBFZ_KZmiJXM1TVi":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"2l159WJQONW_kvdoxNkpe":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"-ocHBGrb3UNUGBs21dWd2":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"8p42fGoujpt-vhu67DEcJ":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"Ajetogy_LM41RK6LoDzsd":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"dmbq8rjG2YDZcLMyS9_G-":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"J-eZ9vPgvVJz3fWYOpF7p":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"fBnasAD307Sh-gr-v2mB9":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"dolnkdffSjynRZ4BUAfrE":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"OkzS-YRKu3_0Png5bnRpQ":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"GoRXJrrv5plQXRHEXjErN":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"h5hyHUxqyo1xTEADVGgij":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"_7iuGSep_4vyBOd0b4_B2":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"rfu2jKGWj5L4rtr5aOYgI":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"DM0DISFMYhBRe9JFhLiVZ":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"-NW4zV_1_mcoQepip_Etn":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"EsyEAp0yu29cEyuFlj71g":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"GLUk3m-qWETayhtUiUvy7":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"1fXLox15ltDspZpN_5mmJ":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"oijkwVe8Q8j3AL8drVw9g":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"fHkFio9of0Jg8Sk3Uf8A1":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"roFSlowoY-F-hr03yIskr":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"LeL_hcdFp19o3y4JdN0vX":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"GRGncsNFlkeLb6YHatbUl":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"TqL2HrMKn7yd3CowzuUZE":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"iD1s0ejI4M0Bx8lfB-6lA":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"azoTzUsCbpGCPob5s4zmy":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"IBkciHaBKzGl-J_5J8s9s":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"QWbaKi2Z9B29xAWP64i2_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"NzzPFHFqSc4IYwte0fJIJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"vk8WTlLQHwEHOfuKmDwtA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"mwQs0IvFf7zl4lk0in-aD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"dMIaaaE9lqEm0TpeaaH0Y":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"yszQIUfMeUKmauf7HIopR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"TVmdUMqiWPavXiZ3V2Fwm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"R_Ofu9DZA-vCFXacvMb1n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"StftSJhN2DxOixq1tyCTF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"JjNVuMP5vszErf3e6ULF_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"gCMy0En69gGIawKCvDdOB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"ZKEhTDHR1wvb_dqmHCMIO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"Ky-eHCTdoG5S0azCsvKcu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"QO6X9qH5ZwDbGPOkD6GHV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"TQVWW1SaVB9mX7rueBxse":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"po7toO7nT0zhwcDVuPU2_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"lkAwlU1MVYF3jrIg4BbYM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"_Jkziijw3tb7kDBwqhvyu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"Jiyh1jKeCv0WlJ3ZAdKoU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"UlxtyC7iGl6p_XTXpOqnZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"ylMsqa0XpL4TV1SR-4xa2":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"T7G_yxDNKYrHsP31fOUaN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"IhIgJupsS2-xVLQIvQhHi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"YvnSal0-X2wATEJIbR_yA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"ojXpGX71SM2MzcwAHOkgI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"hFXuJHuEjCeEdCeZuh0R-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"w8gmMl4u1sa63I9awtsQh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"zBMUM8Lq64oCX9r-r7y5d":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"ofWz-EYvpoXh2i6EGM_JX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"u1CKUynki2TyQdx3q5MZr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"3zYKGiKYnxXUH2WSxD74P":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"K42rr9RDDEiPKaWqVi4lo":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"IPDqhj8nz8gVS4gDaD5OC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"I0uztEWVxdHlOnU71wmfs":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"FEk88ef2uu7V78MlwJuly":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"qAv9SQgUtPnFGCc8g8LQ5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"aJrUnzdfUPdBL8XtOIP4n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"3Boz7mSo1P7Rr_KUht9IA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"HTUeiuWQSDUfA0jcFWtJU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"KHzCbJv8cSnEXAWeMHqhU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"hPCYBVJlA0cCWqoG0o91g":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"_p6u38kuKAd8OlGvJGqVm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"5Ih7GF-7FJdUb6vW33AfO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"sxzdwj17HBtTs2oOHDtXn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"ehEe_gZiUKrgvP4us3FUu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"fV-_FKyxRVFl3kuRaxxc6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"6ZSfSEI6Ff5Dj5z85ZMAG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"8rlviDjz3vNHDPzmQ7dp4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"aASIF4VIzDWiS3od5_qVJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"XPEEsX1AAJu8gvEtDctHD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"fWT0jn2Gio6jaPE-_AgLm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"y05Fc1hzrDuyaBZDgZWV5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"hy3ElRPaxSH2MTZzv49ff":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"oHJ6EQoGSAYqeJB1PhS2b":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"Ie64D6uoVUI-01f7-6wu8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"1_HHpv-4sW8uMTRcmTNit":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"onXTKhlnfAJhrq2mMfiY_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"MwtyvGfgPY_n8_C7_2tLA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"g1nAaabbskcMDsAOssAws":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"Jjm0QdGKYPOpOYCKN7bS0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"Tlw4l-1XNgQbN43y0J4kT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"w30qcbKFEP_ErKyo0aDok":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"Vrv_F-gTUHgUD_FCTb46c":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"GNuTmz9_FsfhYjaSJ8v6e":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"LSlMdjRCu60qDa8XfL2Z5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"U9z2-foSOWAr3EWN9wpsy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"mBgnq_hbP9evrNHpk-7G7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"WhIrDEHhzh4pBXZhwwmY8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"9_0YTqHxU02exsIQEon_v":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"jDxoPyOJbpOKvZ79dHSHd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"H4lFOmHo3frlJHYjHASAX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"XhPZTLR4hy5NEPAd9KVTv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"wVEhP__TKGhiYXOcNxn5Y":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"ZzepaoHZpYRhV4MYjjsu6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"3day1K7QHkm8eNEHZUmVG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"u-e1cD1fwt3oXno6yCJwV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"WmKMM6nFfQ0zOODbUL52N":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"xuy7lBtEJF96S8rIKxP1l":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"WFK_q2RIUz7tnQ5Qju0Ty":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"9005miY467O-jZYmX7jnN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"7zbHAkMKTri0z0HXqaw5O":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"4oH1bh1yJ1y1fiyeqxAlE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"IpG828LMHopMCEAVrrLIV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"qrPyXvjCh5z4Bi6YBHHth":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"M_D3M7eDSCBVjDeKPgsSN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"UogAOLmSYFuXoCs6zl7va":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"7qPq6Bp-V3RMT_sN7u8az":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"A4GRAAWMYKS68ANW8dxFb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"gyXr5ovYsGfkItkZj_jZD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"UPVYzFTmqwkjHDzqZllyU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"mPKMq7nqW0WxrwdNOmZIQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"H3fAWkLjWwUh1hZ9MEwfS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"IB97QEhEdjOCuos3hKxs0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"lX-CIv_ikTIbPpiJk3rqW":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"6S_a6rObaRyRIkcQcfK94":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"Nw5qWrnK3XxShVCu5C_xp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"jXilzvKx7VQwuIsdo4JhS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"59RAhqyk-5uGYQlqTjPLw":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"_EBEk8VWeZnd1sduWqpTc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"PrG9YroLs5cmXTJrmlXKc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"TUSMqBToQXA8aiU1nw6u5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"0hYdpnDUu3zGEZbdYy3Wh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"HCjodFqtqDzPwuB9sjtgc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"vKEWPMMcr4nPQYF1CTzJA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"a-IW69XXCQsJ4vrTdFS5s":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"Mw6WlN1PKarKIq18U0IAK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"S-dPKT34eZXSvpjHGofxr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"v1r4TgnENaLSKPVxuSu_m":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"krvQU0mAjyvC7Vhj6W6jN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"kHEHWXKbpTEp30UxFLSPs":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"HuG2CUOq7hJ6UqLlirORu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"I7FpZabPBF9rVIFF9REjO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"CErFtrR84XEBBQdmG2znq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"m5uhXRpcp__LzcLAyFrI_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"hNkOtg2f3c1CNHZYcM3lB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"38vy9FOTg1_ZNwvcvBVaT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"WYTETC48VYSiX6uMlZI1a":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"CCdI08SoA6avLxreZTbPL":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"fsi-MEldppFK-0inV7KiI":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"3SeJB1cQBxi01WRrgV1lu":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"U2nepfcFR6orlBLe5adla":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"-5ds-SRVs5CuOMQ77Wv8a":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"NtGqx4DvfpGYzEMZRdGL4":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"emcA6RdLQt4YJXL-aUwHS":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"_beuo5xl2mhdIgnbTbJWD":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"JqaNLXVTlzSyg4bNqufaX":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"kb98jlPYxP2CTkGusjUsi":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"DDLrzW8CfIcXCs34uT5s_":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"4jceCxQY34dGqeq9YHfIn":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"W2Wub6usFK2BHAyD7rgbj":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"ZMqi7oi3oJubtpVwVthC6":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"Jto73Hxpcgug5gWjyI2Av":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"rBDXPlFzBnDiUsMXtbsw4":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"MnSJjOwio0D4gYS0F2Sff":{"uri":"/melonJS/docs/melonjs/Point.html"},"u8RcpoXOrUDBCPqLjywdZ":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"vAKIMevcG-7fjNP0fZZiI":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"DbEDx1mI1QxR0IezcwZEW":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"wlZn6lhN0RC_M0OPyL37m":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"WOrNwOR111uik6q2hwkRN":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"uJckGJOIVKLBV0QdIQZZx":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"WH9MhKord_MzJyHL4nyyZ":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"j0Myi8XTwO-dBZsR7UV9m":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"PKMlazcTW81TYYsVOiD1I":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"ekUXxoia-AA3nNFYAYcvL":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"mWOFa5xD1KPouJTdSauHx":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"JM2UWIIVQTFgZyoCeM7nV":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"pQOFzYHBD6TjgGVRXAYgY":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"wG0KQ-_Me-AIl1AwR1p4E":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"wzhEDEufgvWkErHEWDp7b":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"14yRdUkaE2Ex52dLQtvEX":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"a2QaMjz8QBrOcvQ-OBdcl":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"l_7hSe5m29TFILalvelSi":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"5f9QdJcAVRg0yFx72O30v":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"pqR0FgxGkZhzkIZnW2Ecj":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"dSdnqipkhK0-FVvzPnH3y":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"9yxZTpLDen_BF_vHTS56_":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"u6uFy0EUQYW8JouwR5Kx7":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"GrSHpInzyQro-ZMjO0lgd":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"b4fFsipqiCcUbF46WxUV0":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"mGyFDxSKM_Jwy0HMEb8CX":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"vY1z_0TfxyKgaEXfCFdKh":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"CdTLFZpAzjnbaKZx8YbTD":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"V9Vx249Vwpq1HRfnwy4y2":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"U5aHKR_3tmiEslaDg8gKF":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"9yitGEyRdtuyk3YcwRCN8":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"7fwdkV9FYBQk2YE1M9I8s":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"pvFjXiaeq_sYtmxEtHmjg":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"-oZ9poLHjdzL658Jsbn0p":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"dSzjFTUZmOUFjGEy4T3fS":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"wF4s6cpbzpO1fq0Kcg7eZ":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"RpAnw4n8f1Ngf396lJYSh":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"xPnY4ZMFh8nO-gAMW7U59":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"UA6_tl9cJOn09tC1-REpI":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"-N7l6gGUCFLhADE7ksJRL":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"FNHO3rtdbePCno2i5c2vo":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"tCx6CYdc26qt-5czE0Ao4":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"tKjoLf2Ece3HYnroDbSWW":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"77vAOUdtJE1GnTxWCdO5p":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"1Vi4Buxs3uo0OkH1GM7ZK":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"zozh7R0W48FZkjRwMMl53":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"cPnOOkfLrU667pcURflNg":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"CE_EyBPrFFrD54Q6NUISH":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"DUVosB0jwHC6YnnAvFwNO":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"1BrikhR2icfd7N5N4jE3w":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"FbAAOq6v-3NXp6Lv9CAHB":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"toG-S038-63BSKx31uTh4":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"cL9fJb0sSu-M_1BLdgzyG":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"ixd9YOr7IR3U9DphovIGF":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"rG4AL3jVEg5b561Z0DFrS":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"02nck1qYzAEi1Ej4lQPbE":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"AVgVdh9Izp4TgRYJ1MMwv":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"w0Q4OrSQz2LdeYMRXijhl":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"xY6tEh_rK9n74LaN0OFfI":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"1n4NaUNnOTla2jAW14gud":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"cMwvbxIDYZaZ7jHdeuCP_":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"Dcmq6kNDyafjNIfbRURJz":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"DgzpZKMatrYb64wgQGGR0":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"CS2aLXYAwfzUmFJdB0o7T":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"bMInOjOuW7w6mk9mS73Z6":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"m02BXTXVGSizI-E2WqULd":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"r8wsQOPujZ2RgFzr1ZajT":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"wSODW0nqe0s5XTQMi0mC-":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"1l7kifc3Sim9r1rf5z_oq":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"VYuqPHIiCVqU8pVt-EXR8":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"jwCq1iHNLVg4HzcXF3te_":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"-Y6RoUByXuWeP_dnpqk5c":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"J49i_zTsLv1HrSBW7O5YT":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"SM4wMukeOK2LdAvW9f25O":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"GWDk93WjHC2dG8EwRYziN":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"QCsAbMq33t2lyIIB4pthT":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"IZ5-c_F8l1-TIhnzjn0Hj":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"QvDtDTlmwor4IfuPG91e_":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"c_8vjnIVUGeDocxTT83FF":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"Zvus2A4coYHbzhrldIXi_":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"sA7ZT-M3olmetc3G8YB4B":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"3tt1Z6Z7Xk_fcEbQLELMl":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"mJtOnJqDe58Dle7MzNnC-":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"w1XjKDe-yYw_5TgZLJ2X7":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"MhpA2eVSvvcbf8VCm6eyP":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"rNT4tx6zSXjfxaU5rM8ib":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"34RmXQoJ6LHqFrixJ55PD":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"up44LCm3FnyGST8OgkeDy":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"NhE7XdNBxQYgK6HmFqyX9":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"cmlRaIkcbhSq1E0lRexbX":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"NYxHv9I6y4MdtUDpGmCJY":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"vLgRd7SEyuAgrLa2N_Oug":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"HHjpJoX2N2u6f_uoVHtzX":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"RPNlAgpDEsMK3LfOPPjB6":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"t1JjWHSgcONx8HutrHYWg":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"VDMVdUonGJriqUD8_PDAj":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"INO-LFLlAe_E3zb1FMX9s":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"4RzI9-Ox0I0Duj7sj-ybO":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"_1-D3EZHusTahIUKYbQ1e":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"m1uCuNfxj-Z3KJSRf0uB-":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"75BPaIVEi5jVAIstSl6D1":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"8jf_fjLjGCvUOqAp15_Mo":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"shl5j5mjdtH87KXnqdl3h":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"DJcEE-S7OE5VN8z-HwSUC":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"D1qCyITixEy76ql1G_8ze":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"G1oQlsdXSfy6V_kVCRqT9":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"u-qzJkq4DWibByZP8v_bU":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"7ewjJRxx5gjrwvtJpdQhk":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"QtjqVKUnaEYH4BLCs4OS8":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"yNNGDv36SFJNf1EAnXIVT":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"_jy6_ZY369-Wd3Ylh1pkH":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"ts9kZm-f_iy1o-yomekPV":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"Ck6eM7Qa5bbGdFPgufV1C":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"AvvPM6EipyRMWDdHhf3Wp":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"nahx61uj3icNaPepjEGsf":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"AO41RoXJBeD6Zsyj8PJ6G":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"YXa7DP4yZqGpCumTATexl":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"LxkmnJyedYS65tpEN5BJG":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"DwP1Dn4UqLvDhjG20rVwO":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"Et-IpH8J4V5dM4CY0SMLI":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"xT6TOkA4WETyccbIH-Zr9":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"v4SzR_Qp8E8_YDEw2FvG6":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"sAKr_Lu8ZwR1BTtMULpmg":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"ZyTm8c-8gogNCvtFx6cGY":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"hdgvCPMhfbsQ4VSxk3_u6":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"88dps2VR8qZYufFIvWhPi":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"LJb5JuFoHWGhk7sc_jjzo":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"yrvrhYbbVMGJzJgJr8daj":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"3V28lfzPGSA-lDxHkrEs9":{"uri":"/melonJS/docs/melonjs/Rect.html"},"EtDzONxs8MLcwhvvFcbQ3":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"JBfAfPO0sBJGuOw8TXOrX":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"nOFeoYbHVi33AuiesESE5":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"9wCHxLbErT68BIqyBWu7a":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"QntttUYXEl3mGGYSMs9TR":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"nBtDSjbFijwLp-IZpZCmK":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"wJEqMefHKRST51gfzarGz":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"n7WbSjMCJ87FmXmAHWy4j":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"ofywjq_0IbmrxekD5Bduw":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"DpijU81RfaSt1f-XVHSkI":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"TZ-qAXC3X0fsfYewUr2n4":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"JvwbOURQyygpfce1ZtHGD":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"BYmsnhNfRv22YmjyrIaJD":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"QX0IQSQ7oc_3pMfzkg5Me":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"LYf7zEX0TOvpE5SB0TaaV":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"4jG6_hCpUJVVkhA45ahqT":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"f17mTix_LLp5GiEQCx9sE":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"zwhyN29t0aHPhgHpl9uDs":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"0bl7nw7tq03Axm_N6PyIu":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"-4Db5PRyKvANpVGQ1W--j":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"zbsflfRNtjDhAn9B4Rjeh":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"t7tIK5dQDufUQB3pDEOqx":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"UHqqC_-i1i7TAYgLHENyJ":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"zlc6KYAVyhory6QiBaU18":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"lHvhmAfMNAVIjTu_HIdKB":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"wP47lrOLI390uDeRRTzCy":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"i-k-qkaSyuFJrMGAOz2ch":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"bZrzenne6BUQ64OK_N069":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"7wBRVsnl7wuWt5YgoNOMW":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"uLbYJIq4yym5-WaTIyOFz":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"wuXie2SVzXl2fC6RhIpo3":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"uBrGLRG4s46PMXYv4KHBv":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"E_-u0gqTjPZ_pVHK_gSYd":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"3AHWlNmAoFaOEnd2L159C":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"guJgNWxbfEUiOKL6inX3P":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"968_NpYFmKhIwYNnf_0De":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"NN6RTdHajvbTMR7h4pWKJ":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"De0fT_WHf1v_S9dyfnJB0":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"AczKrkSCp2hn94mYTYATq":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"IhOkiZSK4kkO3UgmgRewi":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"yWEBH_37b5ALTQTSuCZbE":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"totmIl0cDRqH_D4pATkn0":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"86nRsk_p2Q6Qkb2bJLTze":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"dxBHr3CPgm5uOZFtD-fYi":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"GGwXEuTMIaxue43ZATusq":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"E8HjUdGQTFz64vhb1d0tH":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"FNL25q6KE9dhwUzPSs4y0":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"mskb-onTjxlfB6e4PziQC":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"_kKjj5Xi1wjKJUBgyMgv9":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"vX-QLGT3jd0nzE9dkXLJ_":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"FSa4yBbGOYoRp5xg76V3h":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"jgyPgT6fiRvwbdLivl0qU":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"D0Mmcy143GwDjMrHSBfjN":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"Q6T-7lK7yYAS-2yl6jT1x":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"Ol2Rwy4bp93irFtkeG7p3":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"mrck-vge9QK0m6IH063kq":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"nvuo0DIP4XnrcITaQ9jEA":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"D1TvR26eNsLQA598dgsU8":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"fjUjIv7AIWLQemEwBATSW":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"YQ-fNvOEiCWNL1fSTq1xr":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"SoROTIFDb4blSmOSdVrT3":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"o_mgIEiF1QiVTcVKilQ2J":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"TC7NRTdRyC7-eHtjHapqM":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"xS5sontMxSWKyn2rhc5me":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"GbPTU8EOneIdpTzns40o6":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"uHl0GooktFhzXSETfnMoo":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"JAUjUEpXytfithkbKNLLG":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"7ROj7WazQFx-54m1jlB3t":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"Gcby_hL2y2n5XJz98yX_V":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"ebkn3hbQ6LBohOGAE-Ro0":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"_ghbmHuu7kSGqgKGiZETs":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"az1TEKq0Yapkh70VSBXP7":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"UdPU_PlviUhVlblhBomyH":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"o2BCRiRoO8A0P035IGIGJ":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"YKmwkVYqWeD8Rgzh7bP-7":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"Zr2oh0LhA9a0jo2OgbC2A":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"q3K4iivLdMR6PBfsd-QTG":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"5EjVBNH6tg6_c9rwduAXO":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"Wa4DZPKzvfg4fyFqdoHUh":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"AKROQkTNSnp1fhHx3Kh4S":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"GrTFi1eldW5sDFkGNeeic":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"wPICCHh6m0BzyJeyAmYds":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"K1NEmzFzHjZLjPYvM4ec7":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"Lyw-qgqx5cCJik4CH-Zjb":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"L4UOYbVHo6L_esVVBG5uQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"SlJ4p3nbGvr46xNGU4Tco":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"nBYNmZ3Leu8hR7AMvKmh9":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"1wnMy_H-tdB0_IFa7Fv0r":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"zaN-mWw3uOCJHZGcXWSKY":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"SvWpi3BeChIpk1NKsVSvW":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"yM3C4jYnoRE--7vnJkpQY":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"nN7H2TpdBal03xGFZdJkz":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"Sk-t5FYQt81AG0zk39CJV":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"6VQYIVoiZnhco9rpbQfnT":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"xbAldr8kR26cOaRYlIxua":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"nxSo2mWScqN8TjIRFMQUK":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"0Jq6hyBp7CQc1smmS-lHm":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"XwqJNAt8sUrfVn1i2DkNU":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"6rucE7lm5D0NwtZciekYt":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"fsij9ZmGdLBvAHgw-LmNt":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"zLItLxRxptxlSue06h8IN":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"zOt2UWE6qTNYv4NGXYMhX":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"ZdixSWVVSlzbng0xEGUpf":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"tXJ0HqEBfiC8pfJTJk30i":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"j8Gk6BSOZK8pQTKMKhduO":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"a3TF9NHQSAACJqMMcvLE-":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"65vxmqQlWJvFqcFYw8mM7":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"bSjgJ3K8HORltiuWZR24B":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"Jh3XVlkxkDk6Z1U-utvIA":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"J1kQzTfc-MVPK7_-4YG9D":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"_Ak7K1GV7Ou4anepXFeB4":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"4ruRPGTyKQMyaSS6CYLXI":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"AGxiui7L6aFieN9lK4aAe":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"txLiDsIZuAp2d3jt1ZrMf":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"CNqeOHlinHjo4dnJ7nfEm":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"yg0J7Z3z9eFT18C9t3eky":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"UfCHIuNqzpmwNwnk0nzmZ":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html"},"X4pIxyIoaDMJZdIvaboQj":{"uri":"/melonJS/docs/melonjs/Renderer/getHeight.html#constructor"},"yAKryoq-q7YLwV8PUdCXp":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"crWuklVCApxvQoOaQCQId":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"VPUDU24ZRKsdBLaR5kxmy":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"DL67XzDiX5w20E9Falcon":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"Rx-CENHjafhX09MXknIRw":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"5OrfP7gLGoIP087rsHNNY":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"rvfiDgOlp46--wnspceDb":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"OHIeqAWPF-zSEu1DH9FWf":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"P9lJBwPNJFAiQlfTpemac":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"TLOS8qO5O6dyYlQaS_7d4":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"Gg72HGRA0aBjvLzGGV4ut":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"_lI_v6ZR0RyzXoknfaNub":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"8n_va2S2UrGXnafAKreBZ":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"QYQPFAopJYHkwlYhI6D3A":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"9w0QX8h8bmC5P3F4uqyV3":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"qzAataY0d10hJFjigQmm_":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"9lRHwCoBDa3nZLuASKJOP":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"s2E9d6JBrLC2NrOO5NKOL":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"eJc2917qd9grixIjxuR4H":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"jNHr-Wbej9F2ra3QTs6Br":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"-wZqqG-UWHAHu2F5h2yps":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"wm2jfbovK1VAW6LveFbwr":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"Jqb3LqnPClbXUq4-AOtwB":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"El8PLLFvUkryJ7bOTFzis":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext2d"},"XarZcz40Tl7rY2jDJuvRI":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"BD8HbLQVBS4Z-CHXhNPq8":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"bVjylEgn4Iy4nkrpMpNFW":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"cXV4gEjcUdqoY9R4T4Rto":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"Ns8f9DErqWFsLXE2vmcn1":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"2wMSsJYP4aGOHB1iKK0vy":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"pGx70UeY-7shcutdreHFU":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"Z-T3x3pEUasMILb4QJkGT":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"TUQW4J5O55PTlNMsJR_EF":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"c_YxkjC5RcuTIFAx9stZe":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"G1k8DUktlTJ5rEpB2tU2O":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"80Pg9NiUbg4ZIfPngMNwS":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"9IvQ-4Km3wdGzLuVpQGtV":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"0HQ-yr3YSMI3iUI39iTEO":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"yWDSZM2rZ412bSh7y5GQR":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"yUOLxl-0M_wlIO3LKWX7f":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"Q8-MbKj7ussL13M7maAfy":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"EY82KMBA_A5lbuNbril8U":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"v2NjLwnUvgfQU8MuaYxc-":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"sN1S60V7rhgwuereavE_A":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"Ofp3kKjPs5a9X16NwgaVt":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"bH9yg4aCDpT0pLcuQp7Zb":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"NSSGKiKVdTCpy6krnNd0k":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"HFKXISKiUK8sIx5U7fCMn":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"xegI6MnmVeZLjzdDuwjMT":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"V97vz8cKnExtAbXrZtGrz":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"8LXt8zMJxVb-FCE7mcWq7":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"kCRYBSyAPFx4oBZ5TMbQ_":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"X2G-z2ipKKhZlpUev3Kkl":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"Wmq8nO4i0BpFs6LCG_Mz2":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"enlitriSPQjX1x_t3rOKD":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"l6bCPX1iSDy2RrZNfVBxk":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"_2JTucQ6J6xc94fd0VR12":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"Si93bT7-3SbzYVw3XxqHY":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"4vzBUh46p6HCVFBnNFpeY":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"S9-otrsLAHZYOjYEY8Cla":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"3yYhMTQ6G-KCxISCcPX95":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"_DjXdFuFuOVKZjatPAfJO":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"PUuzHBCgg3vKhYR9S06u8":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"wB681WZ6E9SVMO4qJWbGq":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"PzVitP9-pWOwVM6XgQEIp":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"Wadf1ycLENb6cRxmTbZn-":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"_HqoefNpyrtQNw9O_4m_C":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"9vx_sUTz9eFH0f3ychAiH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"O4reekeCjAat4lwxzNQhD":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"tLL_h4XVYQdVH3R1cYYfJ":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"1Fr2pjBSq-6alpQ-dn6qD":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"Mvls-JZuU2PI1xugV6UbY":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"aqG5QJ-7DdM98xF-U5soZ":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"3jzEeKjCZKZa8x07tZ8m5":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"PX7gJUdJCBi20AEQ9t9nu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"kD5dg7tj5byb_rJMUYIBo":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"6nBTA4LWjv-VIMn0PK4C_":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"Id-JUorhZaz4lh7JWpTIO":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"bgSkYgxF-4qNxZqxCG-6E":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"hpD6Q3tiQuFC3DrwNTjpT":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"BxN6qzdpH88wsDeyiu-Tp":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"E9VIrsVeu2w-1j98YazVe":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"NpoTr_pG-iQk261obSaRU":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"UIBNC1lpaE9OWMNrrwMwo":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"ZXo0iIB2KVOK0O5NSLpy1":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"KgTVwK4b2n1bcsQIV3Olz":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"oaNLSJb8LdG3GubhL89rq":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"mgb_uhp39uue0jEkMtHhH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"ck355aVPZZ_vC-8-PLss8":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"3r2EAupFtkBPnF8gwdR6n":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"v3iwHBtievLFH265w7k9V":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"7q9buvE3O-tc_dP0e54IN":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"hatDUN1E8mFuCL8BSW2Z3":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"sLEmNVdladaOssm9ARAB1":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"OVkOwkDG9QX3g9ZMomXJ-":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"IzP3BtborgaOl_vpD2gte":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"ck7YTAU0sYZjBfSHVJAOv":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"D7KcV3Yxmki86scp_nDu1":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"d2HMEX0ZMH7HXBbrLCv9O":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"fzmKVIf-wv5S6-9i7vG0N":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"boLyHlr30eOtBk0b95sEV":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"uicRzqioLQr7eYwy1xLPi":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"GafpO3BEjMVD1mPZQf7vG":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"lDEz-HKftxADIFe1ghtJI":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"O5KjqCmNC2EYQrlqvgS71":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"_q3QrnELWC2zqGdBc3ipv":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"Iv5kqgsqxDTQlfxWYztqd":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"aiBL7e9fUmooncZvGabKN":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"CovXZ0RLXWud_uAwEklzs":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"B4XuDj8tJrOo0T3Px295L":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"-N7F5y4d3KH9Mllz6QNi1":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"Vz2iBJz3E02BCqYa5JD89":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"YGAv8PPdZ4nfSbda_oLVF":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"gbWzSeOztdoPouTR_eyAT":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"E8jti5snWwFuMoQuOZlth":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"h1n54ErMtcchY79K2ApoY":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"EAdPnebSZgRhBGKDi2O9T":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"4GfAAH8dPq9-XUYZQtKXM":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"NRc10jaZI9bz0b4s4CxF2":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"6j6y6T8sObImsIZ1rNVgL":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"UOhv01t9JLJkyoj65wK2W":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"y_i9789tGUqHqUN3VGUfZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"cCWntGyeOCxi0p3Djqiog":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"dMoute78e_8ASBLKVmnI9":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"zaZiW-YTGquvSmenqdRQr":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"Ebx908f2PPHIGMQbp-YIX":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"YK5_nZNu5NvVFmlDXSbSG":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"706Q0KdZQd-u2vPy43Ctu":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"hJGdI6EzRLd7cETGJGxVy":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"dOgsrv4ks-AQMTCjEq_ge":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"9U_iSYKYeOjoZWjUvjAlG":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"tsu2cpMkkVQKqhKAe6M0Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"33tZbrmS0Ya9_8jBDNHCg":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"JvOumUwcUi56wtAa9H0sV":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"gVE-JrcjMUu0FbCt1RzYq":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"17lMT74_EUJ2Dnprx0YQ9":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"U-7wRNvERFmNXLEvJekp5":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"lo_i18UoXlLjKNMP7-FOX":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"fC2InEWUvpImwy6Z053k0":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"7jKPcVEYs8ITU2sidIcUC":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"8KLyR8V0NKyP1TaYyLYDA":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"DWFKFwAaseoAs6EBWpZ7J":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"3lmZLIAgExPakFqDVtOYt":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"xlTQnS9tIuhRse2kdIp5Y":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"bR1aQIJX13GBERA-v5YFs":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"M_kLS-zAQV7Q5oJ4x7aVt":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"qWOW1RWiymYasdELaqC4G":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"HpzQyNt-yr0IiRt8V-ApB":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"1OVybjL2Osx1soJPdmesx":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"p9aShWaFt-tpRu0PxcJ78":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"kZSNZAWFZOeeY0mfBM-W_":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"m_45FJ9ojNinryc4xiZnG":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"XZE3aAM-cadG_iA1ttgia":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"BC-P-cwtBH6uLElgt6Qzy":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"eGR0TOGBM6EKruonKg7kM":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"TpDsuR-2AHxIQlOtOS3hK":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"blFnihRlrRuIFfou3loYw":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"7xYqdiF7BQB9vr-4H7OLC":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"tpzojCd3-Miaw0CiPN1v5":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"OKWxM0tDbZvs_aoMf8w6K":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"JCeB88UaNzvTtCU9uhC93":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"J33-T7vIKhmzfiu9BUrqs":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"fZW6wAlI6vQGlmX7cpfzP":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"qRx3F9W0lttUGNeRq5OyU":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"qGSpw024UfQksovIJsbce":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"e0H6Y1ltRgzqohAaF649W":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"HIxprkffKUOPf-8YiBLEo":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"ziLc-KK--Yo4zMk3oatPm":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"hKrKkxTnqi8FHqzE1zDFe":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"NnrkQFqGqbwwzpBClpXzQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"x5mMkpoPi81PC9_yZwAZ0":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"AIsYajuA5FEqXpLVit72y":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"H2USSXm3JCtE_dg6QDluF":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"9K37RXcpu-i5vmLDquqOt":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"-2zK9Qq6uwwLvVjpSnj7W":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"wK1Tcjfqp63fobA1u_3Ir":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"dvb2ZyUDhlzRepgk2rUWG":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"OGU85bXuiE-kssBbyDM9d":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"Mhu8r1Kl_JR8AqWjHKEyA":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"FIcjwq5fq3OmEEmTYEeP8":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"d-DuyhLBA3xCxPpNA-H_b":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"HY3qV6wHx-gtH0-jUeg1R":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"yx1Kl3hLSmZ47Dkp5cL8Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"SiBcRsN5FAPfv014o1hu9":{"uri":"/melonJS/docs/melonjs/Stage.html"},"xWLidsZiGCvJBYW_R_vjj":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"9K8IN_n-kxapQvMYUPPzu":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"jWdscR099zfypuryUHOCq":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"nca3LdA0XxY6k4I0ojEbY":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"R3ypB9NOQMdqoSUOhee_r":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"UdIes3MTkeAR-OyXqdKj9":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"5M7FJM6cJ4et8ljb1qFRE":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"mZEMibu_TlPa7oLUT7Sk9":{"uri":"/melonJS/docs/melonjs/Text.html"},"tWcM3XpdJOgT8xYB5moZb":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"_fcJlh4KnqUzkHpiNbPCk":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"kMVxrb0-pJW3gZnIGB9VP":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"AMujGR_0g5niZ_8TNGwFs":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"35LTgYJjEGpg1jw36HzxB":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"JQ6Fp4lc60qLZ0JWADSmW":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"sOcIoisrYC0toKiJhqhDW":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"cYhBuoLOtM_t6UBBuz46J":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"KkDjckLc3mLZDTYskgmco":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"aQWQM9KCGYT9TvaCzFTmY":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"YXQ9HoHl1U0YQSguzdJpi":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"mK5FOpRWSJeQCnfIrhiUj":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"LfuzbfUEAc5G2nsLEerOw":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"IpATyKM2Y4ptSch1Iw0uO":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"yPsG1lfdh1u3lGnA3YkFU":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"MZciFB4XOtYEZwcazs1ii":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"qLop2wE_zt4H1X9PIyNlh":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"tTgujURcUqKqKVFRfkXfO":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"aRmSCRx_wGnICyezO13G5":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"wSsRdQC4Utjqbv2-l8z2O":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"eQGY3ZHkTwNwnoqacTqjs":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"C0OI8G6kbcp10n3sJOYvQ":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"c--WjNQP7L-gbl8ohYzhQ":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"a2wFFKVduWIVNNZIini-X":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"OA_ooJb392Zw6b0M_bhWc":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"_yEEzuRidcx6Y2hrQELsN":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"eAamA38B1JFwUuW55LU8Z":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"cg3u8_U_EbZD1JlCpqPWb":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"GFclksKyfMPhzJirpfihk":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"wtWSFJ2SWKMdpxTy2gg5u":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"dGFouICMMA1No521prTjp":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"-jKwXzUPaVcUYxFKXbio2":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"0zRqqgB7oQMMvr-PoKnJL":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"2-J_E78yHsuIlQdwiXVyW":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"bu3u_YW6QJ_kP3oIIu58X":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"XrXfcJ4Nqs4Yrteri-hLV":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"rqDDkWVTys0SFau1N1j5i":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"T9QOjV-7DTZeG6nxoXkZj":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"1fzhu82-iRf4fUXZvm6U5":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"sgOJi38-vU3AlKabk9Ehd":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"IK0Elm7ojayPv0YpBwi1s":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"ar0FEFVdZ2UKkW59HQtGA":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"Xd8f-xVN7VoyxfG4-ln05":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"nYNSofm6D2KPBVN81Ns8m":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"1zbm8Dp3rsaJq-NDXlwL-":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"Qql0VUGFr3u2ssGMj1wDV":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"haWA6eJFGP62HS0lptXRL":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"WYBGXUyqODujriUoXDnoO":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"Vp8-xDTsE2XuB7x_5RWgx":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"Sc4OUuxOm9nlkk4pTujh3":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"-Dgert8v9wF4sg1GwhXvX":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"sXI2o5Bmq164-PCNBVCdD":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"CZfluXplCGFYaC019APon":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"SaSvGH0c2Tl5AsrtDCWMq":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"d-N0cTDWbqlmHHyOANcIU":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"M5S3F6chlxySPDzJju0jq":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"I10WLgcgJ9Fed1rcdFTHD":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"nz4TcfQS2CG8pVLHRDjHW":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"KFlABayPtEta7ZXM-lgmg":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"XcH6kWPcxdeRBeEWtThD3":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"GJ9Jp0flMm33v1GETEER0":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"G1rtjJN_gTqw1cU_ARuRU":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"OEZ3JmQz9QtoIuDPqSemC":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"QEbHhcEFYK7wbS5kMMDl9":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"YxDuB72uOxzxei_TbBfec":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"zxUKMxoBchpohLL_p9hrG":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"137HEZ8_LgiSzbsJRl1Le":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"9ew9UTltllR63UMXDSU4X":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"NuV5fDU-FNYQRx-NmNIyp":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"oCJIv2xHCUyBA4X57OVv4":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"BLSS_4HWufjR78V_CrgI1":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"pdZEGA8hxrU6f1qr3WVMp":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"Q7CsnsNEx2WTJJ--C1IfR":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"ikOohl3HQIaYWA23KtRRa":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"sODvYW5iZnaFzx05h82kO":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"QUlPfEN4I-PJDXVH2A7mg":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"-VTOuYKPYZSztffDG7ZSP":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"pdC1AlDX-FpoMVu3_oRHm":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"wcuTFHF--Svf9lhGi51QT":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"Z4rUYRDkMztvtw78k4hSN":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"vF3-6VxyX-e7F57tHtWq-":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"3gec8Fb32VgGNuoDCp-TB":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"Ol_uZQ6AjtHKnaB1Yg9YD":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"sVkccSYv4jrnqrbJuk0jS":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"06J1M5Dg8s-HbAhYf-0mB":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"9lxenuzMY7QoOzruDAXwm":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"t5A-rXZQIjSdNoDRkxI_Z":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"14jLwbQWP7KTPsWu5hh1k":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"ZTiOx41EcQA2_jX_U2stk":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"83JnVQK1YJktphulbjaa0":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"Llg3GHdbtirDx3dX7iPts":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"Okw1kpfZ2X7UtUMoY3wI5":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"irxzK9XywQKZSudCE44lA":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"I4raND6kCAOADoc7u7nHF":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"h-npZFvHhLuodgzdnYeL2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"i-PagWNuDPMxFSjbLLx0P":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"b4uubJUcfWX1OePhvsdm0":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"gXYwNfYEmsWYKbRrJ_Nmh":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"0BX_5Q3UyHMQ2f4iGvpzf":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"D3fhlCckTsNkxXlhB-trq":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"FU-qRweEBCtrfPZG1I8dc":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"JtMQmjNplArujjkujByBE":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"zzlD73eOA86bhFBvnI7Ug":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"o5br_TXRF8RMitsE4O7Db":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"U1LljaD5ltVqkPHn2Abzh":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"EVBR50fcubn1nm-4v7QdH":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"auyjiU0rNQH6RADuIb5kN":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"61YX9uUQoU0MqRTcxApbu":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"AKbXou7sSbZ36H6YCwaVO":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"8mZFwvIbRIKaNSdNhNQNH":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"G7Bhwew0wNuYFGGii2I7N":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"mpRNCtA75jNufwNSxesvI":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"QQ2rGhkOEk2J2BpIf3W8w":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"G62zUD4QAG_SeRNjQJW-M":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"CVuPzskMgUks8rOUuL76_":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"qkGvJsVEN8QPRg53H_JSh":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"lUQoRGKqmg1IYLFfZndVn":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"BzLzOmmba2ctpBe6wXXCA":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"IRXbPhMi2AErtCQwnprWa":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"2qhaDP8CsKCvK6FlX_oYJ":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"paDrukncKdAUYATNDBkcS":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"IHqLTAO9keNOpTdoiScm4":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"DaBJ2byHlV4Ay598aYkIs":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"2Ue_jVIBF7YjEsZ1UVDKB":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"CWID8tKZCN4YkHDhpFMsB":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"d_IcJEBrTVSKx3E2BSvtX":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"JUxmEn7oRlkv0cfmujig9":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"uW6d09xFT6k9ZSlYIwPi3":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"SbHD_0A6mC0VBobvNA-jR":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"gG8UtSgWCz9mDTQ0NcN80":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"GwkTdoPtNy-xbILTVG89J":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"7kjXe9eejxXTOhdUXGT2B":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"Gq9lRF7qsd7ALmJ8LXQJ8":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"mnIhSFJFK0f9VkrTR2E-y":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"BexZqnTaAqzU_SAOZzX5c":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"voYIAaHSE1H2hBF-BZznn":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"qV0badKrJApOz2qwKYfkK":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"wvwvYUtKqo2pAMnoyXXTR":{"uri":"/melonJS/docs/melonjs/Tile.html"},"IzKqR1SuJtEcMJPzET-5b":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"gljkk6XK4UKRYmBmlxs-u":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"cQ9SX55GIDfWxleky2tYr":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"Pe794RAkT2zJoxrrU6URW":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"d9vFcc4TMxuVRZQmDZ2KI":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"7Fam29VhBROEWvqe_0LQS":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"tRQHaxaFWIB-hXrCXjDzd":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"nVUQ6vsfmj57do0TM-2OO":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"LTGJ8mlt2wlj-KkPPb8fj":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"pP5IX_Ji6qEH6T7G7mGYN":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"Hn0kjxCWGb2OSmtFZY5JB":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"SZq_QpGDm99crzCJ-8b8l":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"MfjvY9GNJCgW4rzjDEaQT":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"TNBc2WJN4j85O-8vRxB1C":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"tds8p38cerxd8xy8Njtdt":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"BvSPPeVjyGWlJ9IGk7hUv":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"_YMboIzQMnMx_RgLPeNV0":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"hD0T1OKZu4Lxekyz9x2GI":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"VH8KvHk6q_73BRhIh3R8i":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"YkCpdyRp_PKWJ0vd2FzSr":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"_cOmiDo6cd1rPEJrlfMhG":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"XuRtbcKJu1PD6WgJiaa2w":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"8TIDk9nj0znWg0jbMHhfI":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"en2iQKVCgsqjSnr2FwIyV":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"jsocimYT41fsb-Om_ovz8":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"mqmrxhWxO2Q1AyBFuvOep":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"XU1oBhjG5LyOUoSi1XkzZ":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"CjvlU2t8Alf3s8K4BnkB8":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"rvbp0tfq0sOALUS69V4iO":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"F_7XfQmQZ253fWB8B2IRs":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"TbUQLromsTrFKtiho6se9":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"nek_8QkF3JVU3LAVlcret":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"a2WqpjF8gqLgw10Lqsfsp":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"YWpap2_prHUmrhizl0ehx":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"HQeK_bHJBWY8eIG6B5TL-":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"pUfsHVt8S5XmR1Vzw3qKb":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"N7m0WBoGL8TIM3b0wKf4z":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"8S3TvojvCRbj3Y-9O3LGk":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"kvJZt608fG1-SYxxjIJoM":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"IJXp8uOiZE0o4vhzZpfR5":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"TFXqy5KY6WYu3uFFJYT3t":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"eTcfa2bUW2exZ_wkf6GXs":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"8ns4Vlnt9hdfpX4L_iQt5":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"D4EpgEQi7neB3N5qC7Fnc":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"vNX3ZKYAytNoOEJTddYIV":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"_a4CwYC8Jn5D6NDlqwwUC":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"k8djpWrY6o9CvCsUUUGGu":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"zECXEVQqKR1FT4XX5WLUc":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"Lc0DYW5-ZGiTSIVS6iyRe":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"6r6yayfdZBbFtbZ9x4o4A":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"6gQU1g-4epO_GuyDhiKlG":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"em2fDSpInkH6kRsWscPtv":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"IfZ_SE134I2_OI_b9bkzk":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"9NF98PmsibH-llFo4xIxR":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"55FRg3tKSiI7RPtB2MT2D":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"L_tKLbG8DOXfdUHb_LHGi":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"1kfOkO-nrvo8j6oRLBWIV":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"BQ054yQ3IiHmhe1UC1VQU":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"IZERQXlosVy1DgU2gUkiv":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"m362matGcGDZ2RNzzIwML":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"nEj-jALeTSCu-LQoHeesp":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"1D3IY36njvjJiplUf6DyE":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"d1y6fOhj4Z5H3B6aXrW11":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"tW4rFGt9GErBKPYjgc0n6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"yA9TN64nbZUjwRPVNNeu9":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"ObuzFsNJWQbOQMlZDrfVd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"IGihQlkIZYZ73TeD_xs3Q":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"36NjYn7ULlUhtPvGm7XuJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"oP_QGTGcqMaOwtpuppskP":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"Ozj-kgtQL6WduTroy0Jtq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"m7LrqkOxwVFtt97lS9LQv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"hQHwyK5kd8AngmQmhQAJ_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"eG6ZI1eBLBMeEM_fYGeoP":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"Y-0RSFff8qcRVRa285jpN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"v9oALU3W0wwBj_KX7yAnG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"sJDYs9gjSfS6Eo6EO9PrD":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"_iC56S9kr3hcCEE2q3mrn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"BLA5LWEveDBf5E4AGzYfA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"O-q5X4gEXpQ83Lqmz2NIO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"4KpKIwZQ4fMc6dwXTRMBf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"sOG_ZI9XBkR6hp_qi8pTj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"C60jMEbsMrHBqmIJ7rO4q":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"r9Olfr-D8tr-M9bWok3s8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"QXTeS4Tw5Vesjbg_YIwwN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"Q0FJbXteO7gQsWbRknnfx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"meJosZVherIFAdp64eMRy":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"7nuH64Qj2-dVR1OKBOvZj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"TO-Qas3ZIoC0vdYZrzgKx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"6svuBfEgkpJzR122lXMWc":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"KiS9HeDnwVca710EWdywa":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"0sItwL_ZcG1oTrL7-B0D8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"q9c0LMdpYCTxpsMKh4QJB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"uqAXVlZUVKDIKVtHn5uVX":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"SXEptethEvoSPciOMHBKC":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"fHrg2yA8V2kO-JVky2MA6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"OfKQ9CPpL0bRRAFCkOTFV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"NvcZk1k78R4KPLGj1htgZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"aOM2GJ2CPf_3KqM1iyZwT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"wd2WVlCoff0P0YO_484KV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"AQA37met7VOEwi1igMlpg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"wHdHOSgHTJvroqWE382gw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"F0I4VkVYaqh8-rfcBopmx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"t87Mb9px7dGeP2OuYDvaL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"bl6kBEjAZX41RtFU11zs6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"uZ8ptVCuHv_5GAP6x_545":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"n98qM5kR1M-ZlxeONTNdO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"mibwxUivDOCHeIvxusewA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"FU_9DpHz7cEkRDLOx2nLf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"NNKNQhtCQOgWfAeyWf1TV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"jkEglGm13ntzBIGF7xUtJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"aTGkEA2J8vMzJsIaCXGux":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"qZuVuFik5K8sirT0308Qw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"32KNS35zJ9fY5gg_gt9nq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"fslp1XxZFtUk-5GWc79nk":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"nRUW0a2ESMtIbxSnjTPel":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"zaTN4g3k2K_JSXPzmxSpe":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"CNQSfJWGVodsQqqM0uYVW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"ydqa9NrglLecRajP7pUxR":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"Ddhq4w3Ga8W2J1POzALSo":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"734IYMRvVH7QGjAFByi5M":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"vCPLDCuTNvSMdsL8zB8JN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"Y7YfyQlbRSe6MFMKSatQU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"DywfuoCpVNZDcfFD3LIGB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"yMQHDQt94S5Yx3AuTo1PI":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"d84RT8GLJgUbjfyBqq8sj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"0mtUI_88mygh6JG8WKyAu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"4qYBRgd-xATaznEyEcFAU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"PJlGYmr_-ZNRJBxmbEs98":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"MGl9eNfWUrUNYLlu3Uz4W":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"r9w_6g-yKLVYYEdKoFlvG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"c98JY99y2VgFrKkmWKK6H":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"zArtpf0W0UigRGgftxiAS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"vUXi25GS4DwxNwy9I6yow":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"yrnVVaPaFlULHj7GvdPV2":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"iKkn0YC5WVzAbdPvp0iis":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"tvKadBMMSaAuN96JKXuf_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"9i036S04wQ85ZcRqXkNKL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"NdD0cCdF8WJP591NGhtNS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"yyfx1yeaItq-9JKI7sKuQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"Pz78ZKaeQinrWYfCcM_B1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"P1r5MzTGZwHfffZ2BwjRz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"074IhdkkuvBWjcnBv5Mve":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"JdKzdM2p8Ea_z62fj_oyl":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"eQ8lX3en8cCHJVkIysW0i":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"aRTCc7p2lJ5p-pxj1xz91":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"b08O0xstrFdP8ViLqFe7X":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"CKtGBdDNOzIr399BOSyIF":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"K6s3HGHssIpPU-OWnX1XO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"a_H0rIJoFcK23bPPLhlsu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"fpOzlSJo5FdD1QVvV_-5t":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"wMFs4WzzkLTpk2bAt_7I3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"N_uxzhZcrLnAgr6ePrhT0":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"FC0IKbCJWarAjcA97TZAN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"_8yjkXB5xKWTflgTHvD1n":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"-Z2fCTnEIzr-e3qcBVvFq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"mzYrnHD-Jxv3dBelfYP0m":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"Zq2t8qe2N1n7Xj8TNFafL":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"0WhOTO19wXeyMTPm-3gSf":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"A2F5xj2QcVb9YTnjfGMbS":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"masFtfAlI-pYGxiSCTWns":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"bbX_zUUGlUZIaGfbZ7KZ-":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"E2ogWzubVxrY_1oWVELqv":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"PafENxWNQMmSFPxUoyi8u":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"pj2Lsfy9Qw2eWOy-iA4Ug":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"zh3BFQQZqrTQdeLnpkZKh":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"sJElXveiAagRX5nZghQLP":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"K1C7MaPw27F2XC9Tl8oJM":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"PRBSeKxqcGR1hiUvNtmuc":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"l9wk2zrUBlYlnsv7u7Y4Z":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"JMtEiEPGvs0ksDlMVxXRY":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"tuPcrJSIkSLGJSfm-PR_i":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"Fv2OxarQBBu8IBP23fqsL":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"hdPiBZGG6xB_8IRFC0AmR":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"rX7qgKHM0HQf8Bpru6Tnk":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"NDxmZAfWqo0y753PqSKc4":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"xUDaK9zq4yM6A7X5RnXVm":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"VGT7zrHqiC_mMHATG2-dv":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"mn4GNphcu11E43nQ5GOeo":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"5uDeyWt925VMc5p4CXcrZ":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"wYWJw9C8SfEG3QrF5NaX6":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"7D0yP3t-picS8VN9X8Eno":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"eY6tptcS6EiC29p19lsSS":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"XEcoQMcodcrWsA6r6T7-l":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"UknIZS4Osmr-lyLYzK3ir":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"RS_vpX4xx8AyY07jFU72v":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"R14Ucd7DO_pFEscsYknvM":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"z1RrJ9HSYcu6s7yLGkCk7":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"fgEKz00vLMrNIpJkeN-Kr":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"P5ea5f_Ho60HWkJkICg5l":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"IAFX1QsFBMaEgjfPW21Qs":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"YOGEtbgr9GpQht5TiBVLR":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"WeX30ulB5ghvkQBZS1prK":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"O_-F79x2J6QQh6hCPex-2":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"Phb97tMB4jDMPdvmJZ37h":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"P6ZbMCYSBBqksdu9VLjZU":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"eavycQn440PtKRykUAdYf":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"4H0hL9qGrU-YkSaIOxfJT":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"BSWaq2-yX1yfMXqmccQoP":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"zEeSnHsPDXPyQUWsTEJW2":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"_9YZGjaoUzvu6JgpL8vl-":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"N2kTlExUBYCwTCj014slD":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"lXwORP5O73nPcXCpCBayL":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"9PdKLm9GCC16voTmOEXtz":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"HQKikht5ZzrJQJhHUiG1H":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"QoXkuPYVO3cjm1UiKEA33":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"Uxji-YiXhKNfhBobfJ1n-":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"IQgTJ0V9fSMeZGVFTDFde":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"436tCInuw3WlBfumnn0nn":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"jRaIQbzsncwCwiQRzIKmV":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"L0zI8YecPemS3Z9D7Qq1o":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"P_3ZvsMEVFCiazL_9z683":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"RHwEn2MKDTQF7dkad_veM":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"gpIogvsTp5fqeMp6uGaLA":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"WxvxmBnbXub2CAMrfYazJ":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"BzIR15sGpWET86zY4-bGE":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"_hq-FvnmP7tJk9MVEyQxQ":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"4JhYwb32XKwY51S1_Z4BJ":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"0Q59fenLfOqh-gAnwqcAV":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"vGqt0OEQYeDIaiH9eEgjs":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"aBeyi5yoRO7H5mXyQ9LSI":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"O28vvGrm2XipjkJII_eMO":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"XcR69oj0qTvAutsD5G2Qj":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"HahHuhS6b_OypEh3VlFGJ":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"4uCICWYb8n52W_gIB9NTh":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"BGjFRZMJ5surgHkfkaR7Z":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"ungzImgEVs4RxJtnZz2c0":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"lpgu7olCLlxrkVHUhnMlq":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"gSGE9tmYWFr35_MDtbeG6":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"pO0g9W90dDS72sScfZZL8":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"Xuycy6fKk5zseJ4Pxe1MP":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"A8nBZoxqv-Kx5J73JbQ90":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"0GOjWWrO7LBSnqBxfosTK":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"joW79UghtY6r9q5Zaudpo":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"IfXpR4BsaH-wUaP73n5uB":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"2LaOG7tA8gCjmotIJDalj":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"yGBax4dbp6fqCB1m8aE3-":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"_asn3YJxmesTVBYBxvx0h":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"g1mjNzfv7XxE-NBFGjVyW":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"qdAvGJZ8KYnWp-nsAVREv":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"Rws6vj6Szb-1FDPkO5dCZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"RHX8C56u2_EOyUB83Z6eH":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"6my3FlW2sfH2NuL0hayzV":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"C5SNY4Mt-5H_L4qqqyYJM":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"3rSdY2OGTkyrfq4LFVJiy":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"QyPcHELKuyhK6c0sfme20":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"fa788wYX9c4Rs14cjt6Fm":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"tuVjsXlTPLL81tZVC5kRc":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"ddjOJQab4e4YEKmJk4M3r":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"lY5VxHZmMecQ3Ok4GCnJc":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"SBbZ3Imn0IT6DZZgsbqvn":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"tTGYX3ubwfMQVDB_4EeOh":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"_c8Lr-jQ0njjlS0XjzjaU":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"WGuH8Ha46k9q522nNtf9G":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"5rwJK_5Fj8dy6HttqH_A-":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"B1DYB1-udJTnKYAo9ENpT":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"tOmMAEVwW74klW1OyaTSx":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"ZobshtDpjDLV9xkrAwTYm":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"j27qI1CFZv8AKE6QpYflZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"WW0gP0f_fCsBQKGF5_bIl":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"BbYPMq7JSNvgKJ8QLFCx6":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"nXfO9kB1CAtDvORvUCZBA":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"yN_a6HK0PKqCYANPEuEz3":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"N_xw0WHnVJStFTKhgy_2T":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"uOhLnB_-Qfw3IIYbWjfUY":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"r3kgJkd-d9g2J0tRw2qbB":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"RGmvhOXlcon4b8jzDJm_4":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"Q0-SJQccPL7pff7JbshU-":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"hfiuq1UgvkGCepzNtHaF-":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"i8G10YwzsMuPFCRVyKD88":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"CY-jhFVv2V0rb_73Sm0nh":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"IrmrDsxq9pcMVY7y2uxux":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"TIVIi2IE1378Tejdd6Ns2":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"_MZ5eFXMQPI0-JXcuUk4U":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"T2Knu6aJCTFUnLTx0oKPU":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"WXWR__snEskMCMDvOCGNs":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"JviGJNYDVZ92g42-E5law":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"6wLLkMHtne1jvOrhA8vA9":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"SJa3d8XyglwFq0ATGv_k9":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"OFll706_4EuNHS2sZA2S6":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"9Rqt57EouW5Lk1kd9EfZH":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"YLBxw5j4DGBRvdhoaZNu5":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"gIU9w8haswH1QDvG6NQpt":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"vRQaJyL-jq5K-ouOOaGkv":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"UT1iZXFXu924cf4dAnba0":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"DjxlA-mK8bWClAXdBw7S7":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"chTBLRKtj3iUTjzUx4WEu":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"Bgy1RormoLgTzTcAxsLv7":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"74OFk_5VbHkh156RLhRiy":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"FBF9Ji_eoRPu6Z8B0JFyQ":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"HN0QgBqIhz4Jv_ULvhcFY":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"UG1Mz64D0Om8yyWdr1KWV":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"hgjDHHAzS4nGuUnxWT9cn":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"PjQXzMtJ98eqB_lKCtDqP":{"uri":"/melonJS/docs/melonjs/Tween.html"},"UhtdJeRMMo8OoaEzkrouA":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"290JERxfVJaN71bRBZ920":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"9rhRFQgSpoNdU2jselfS7":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"upwm7wKaI53UAkuATg_qN":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"z6GcWpcdhQQKwxUrqTYHy":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"wGNPMWXM_0kKmn3hzdNEg":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"l1K1LUm7cevPAX0PuFjal":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"m8Gr1HA4XYtnknbStTh5N":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"bPN1lbXz0I0AOQZWWC5xq":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"KFpz_8V1vytBHOqH35EYY":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"7v4So7K5Z4shhMpn0eZ7R":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"2Aq6RvU8rwI9ne2xA5mBJ":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"zMBKkb7-gk3SmSroLp4az":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"LylKHvmTlGHiBaPxTn6DX":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"htop9GnV4a2UVVY9LnLYp":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"taiS7_QK1C5N6wklbxguf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"ESkYe2sqR2CHvad1DJC1x":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"zGAV6H0JYCHRAN9kaXgLQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"RkoaQQcWn7ml3M8U8LGER":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"T6WB9WikNYliln8qDfu02":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"ZgrnA7FueDgi9-QzlUrHb":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"AqOgNJn3kgb1kHzw7r-PA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"WDe83qUpAPv4sPWdE4G2n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"9F2sjYpbK8Cpaq__r_rO7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"o3-araSTmnJslVNW8E89q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"EPMGHxbsrYMk-CH9o0okp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"XkDgT259FpYRAaixJeSKY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"QEa44-EtZGiv_exQWJYpV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"GpluXRsLoggUQ2IPw6VUX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"uTa59ZeUeTVGPGZeLPd_m":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"Hi0LVlje11e0IrjnoBcqX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"tKwhscGogxqnjNWXFuIc8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"sGPz9NLBtY-0o4djKz6x_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"v_6uVgjBQp-Sn-Qe39N_Q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"ySFQwEmtkxeqTvo--P9NL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"wtFChcELdjbNHJ_jI5cQT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"4Fo5JvpcLzEH48WM6Wa9I":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"yvssQ0BNsHTVqUuUxXqVL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"sGUiqNqglnneOzP8r8hkl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"DBDV8auIT9CvZZzSkfNX6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"r5923UYJ1ScvuWJYJ4YTX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"CIiNuPA30xYbsk5XKRQAM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"2SxemMbFScrpDC_77GoT1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"uneRkxOdjWaC0jf8q8NRT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"9QqqL_8Q1-U4l9EHd9Fw-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"hmkocP3VSSpetvHp8JSCN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"TpUKewpn-uDwwExB558C2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"AVm8ztBGbFzA7SalIvuQV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"KuZfbk48VnkWqJUyqStlz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"wb7uBpZ9YuqSyhA8KDQwR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"uc0G_9SVwkOo1Blc5kSyH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"xt2ssEtrZI7FyrE3naTSk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"SRnARF8vdHqYI-lxzCda6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"NTGdX2qTc8Hj-JeA6KhUD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"NHp5WdZYmNC55sCYRDvzZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"TEqV47fWgHBuFhI0ye2P8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"UVdL_BrH80aOyiMSoN3PN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"Crlxu8uxQQ0fWmpFBrmse":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"dB7gMBmaho4Wobzgq2XIL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"NaHFsN3tU2cCL8-a63CMX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"RAWylctgNr-4gT-4_f4NP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"fPRrvbQwpg4qsi8wYHX-c":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"XcpJ1ssS8gVMGgZoTopJh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"-IFnDPBzQIp37iLry8CVz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"F8BYAtTOv0WExLweLj8FL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"0rz9QcHkjvuWBy72oOHA2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"ky5TvgfhrZVXEmkMwQ4B7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"w7Vberr88YJLOEwbjLG-0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"M29714mL1n32suE3LfM6t":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"Rv4W5G7VMzLDMnUX00Fmg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"oXVFvVj654R4lrMy9zzPP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"PzDExleDprHugspp4KNsj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"sgAIrgKEx_fvblE6GbdNi":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"3NCFaq6a_OZpyaQxqmSUR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"qi9rtE83xzUAWz9Xlfr4-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"Ufi_0cVq5Lh4l3v-QbSh6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"MDszBUmLD9XcGvBMtgdNS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"_lFmRUA4syrxgw55E2ZzL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"7mML2RWk14IL4y_eIBNYq":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"k8Nq1uL8KHQ1goni6iV22":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"Sj3MdYnHN6GaZAhljUBsg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"qOMd7efwHeKRsC4jQqlrM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"Vq-Top6eRbjcMyInUtQCS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"kD-UN8nKG4UQoXmZE_Bek":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"_k3KPLvj2whGfx5Zihd_d":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"hSDBAqQH3Y3UQzvb3smOw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"HeSpx4yqcXrQwsYE09Kt3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"b0OJCdrsNmO1kpHrlpsrx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"PeNNQdWWJygKBls6MkIg9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"FXWa4RgdmkxNdt5xW12JY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"7P_VIVJDJxhU_lrdDHN7_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"_hhcBvkl5ZaR7AIJC62i9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"6usK30BSrJfXM-wyjnTjl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"7jipVUdtcNbJQ4JdaWVRO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"hTd26xDQd0_sRtiIPNHlv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"EImXfvIDlYBQ-YL1c4NGv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"P1qYzM-IgpgHEb17oe3lt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"TK924RtLMj2cOdCP67aj4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"4EGvXyqPTnOIu_7YbnfCv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"Jh51a7u0DpxVsKM4Y06Tk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"HzjUWu77HJp6Skt68iMBh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"LB9MhXwH4sT_qfH1pv8TG":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"pFWJd3MvcbkhQusi0mHUD":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"a8wcY6KnpUhZby3N0ucML":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"0C8NBwWQq-jcB0KpoC2Kz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"KqmuSkBqZWvO2NEjawLjT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"_Yskx6PNHup8BxLXe0rKQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"Z_tdA6YECU5lMpuZOw8NY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"GvTWGA50kWbQYw0QGHqeP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"rqEaVZrr6r4o26IE4zA4e":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"Xj6NZBJn8hW9deSCj5k4_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"PVOdln68GWxaYq93SBCGM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"da6pZGQeuakIu1pADLHWZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"o20csDAqpRpq1CadmeEL7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"LxB6FKlF5Am8FwsyglkNF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"TnReP4tPjAxGRUfuklDu-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"AFZG-SziQyNtdsF6Nft-q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"nHvqy-HT8IXWTEpTrN9AL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"5AUeXdHjaIG29G7FJuO1F":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"8U39NekU9x9cB9rw2yJX-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"WVlLwobiTr3DNFoDAFFNd":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"IdI_NPvGjNlGOR_vsB66b":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"M0peoFV8vPQa8PmSAoWiT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"t4gwntKSmOAlYdv5wItOB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"Xdvr9g3pCQr4sNE2BXR96":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"dIoyG5cIk7wcTMk2Y1jW9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"7FYYobFuzTHlWha6Ziue8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"IftO-7kt3whB4kdfo3DK4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"H9X5KbGAw5rbMb8KqFAd1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"cZDmDcQUD2hW2PasVqbUM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"jwcSXX1jPQcieIEutvtG2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"9dW7U9TPgHoUm748uULxL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"E6VJDV1TJVktTmRwHNTf8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"OgXwhjVNWDIIwzkzFDxP2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"7h9FRJayP1dgW6ru4juDV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"FnRe2VTmEkBNmcpzJZ__q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"MWhbI7ZiYycIHb9tTBH2Z":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"RhdbDcf4Iv2T_nBjJcl-B":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"nOpK6oc6xW6oYuaLJ3cpJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"C4gVaGXXjL7ZPdcltvLal":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"QBDNwJ035qM7pRuZWLyKX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"o6tEGHmLZw11T89I_O1L1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"gPfemL1wuAfpckIKKTBZ5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"U_ZhkFTcu1TgIn08jX-Zv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"LYzCw__H4nlt7-b9FcDCm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"jxP6hquGyKLpED0QOMYm-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"dH8uJhh9F7LQUyTr1fefg":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"fiuxCYB3bl-8yIWCmdGNw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"RERJq6edfR-LmP3QjIiIz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"YDtjpEJX5NnVbYfZoLV5T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"X19qRBA9pTTUOwzOEKCJu":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"IfIWPODOrusrTp4e81lRm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"hO1wW7PACXNwDT_OZu3VR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"vB1d9FhCrVKL4HAo2EQb8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"5_aXCRDxQ59ne-Q-9oV8M":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"9-gT3Y6U18SV_62ssPmkz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"zTnWazyJsSm668VaNWVQK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"Dz_wC4CFxHTq1ylJ9of-R":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"oCT9CCrccDT1TzVZQWwyS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"o5FljW8o2J1nd_6kN6_v9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"IHMW3nQqsWP8OU0H2kYMI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"Gc17t-wK9CAWaliSL0Fm4":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"34BUPrjxeHGLy9iHYGM2K":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"GMGFeI16rupRi4iVwBXP1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"kjqsIFr3zaoqjBDbZhSWV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"73ePuSCvh5UVrkamQ1d-q":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"lAdhub9ng-1t-65qLuF4p":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"5aeU_5GwxfdmiOM4sx2dC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"qyht3YhlJgGjp7cEo1w9V":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"fza_3NptnTMkiPaGtEmep":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"JWr2U0CgBL5CVI_IkeYF0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"q_RfTDgC7uwMSlGDo9cVF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"pDg9O7qE8LHf4i7n3gp75":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"Cz9JK0PRJyW-dt0hpUgve":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"dTN9aLlTei5UY7s0snUKr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"hQo_Zg-3TQKCoFjubxEPY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"gWUjunckAmepISXkAuPmL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"wXI7H1Ti_AU9TfZs1a29A":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"d_GWXKb69X2FfsmCK0hj5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"dmJ0bu75DbRxeoWzlvASR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"SyQOIw2SpoXgETQ1GmVbR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"8YzDRCYGOIOtKVqH2FU5o":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"_Dy_S1JnxRzmpBWSU42rY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"KBVv6-uTxpW4NNu9jhO7I":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"rlaxN6w750RkHplfnZ_gK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"7xMshWMDCYC2WHXSft5UU":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"KgxLAoCcLm3deWfolITHP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"xDkxBmdt9ELXlxDW4_RZr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"rkZ9TDtWdHPNm-ZaLllth":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"QwRQbmF9IrRIbGEtVZOFt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"fLpsSh9XhjU5KYalkrL1e":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"jNVo1vyVwAv8xAZ1PP2SJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"iVOqxayjaKQuFmadFCfuN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"hkDHV9i5_ZSCIZwm1LNYz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"5X3uB88vjNDeI50BZJX4E":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"JaNA7CkTTI45UtlmeaR23":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"KYbJkWSsaaBtVpBpWW6Rc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"KGfAgekl0NM6VcrWtwriZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"WanQwUDpVKFESKD9jRW23":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"j-kNtAb9Dg9nQqbeEvNyV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"UXinkhxqJdl-gCaFuZCYW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"_rVV5RJkQ5SaPJp8B8qft":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"0hF-V88yYUrK7CD7h8M0x":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"kG11UTJZpvx8t-ZLwsPSe":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"YxDT4A5mFJ0KNubP2Hlgk":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"tMfxwzumDFMvn4RH_tHCd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"0WDj7KCUaUmqZE6L0xOAe":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"wtYHnkyiN8kZSH-hRexzJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"_sW23KpImThStCiZUoK0_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"4JRaN1kzzcz_g0IvFD6bs":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"2ST_zS-VkTpl24cTtYQVX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"JdFtC-rengvqpOXKTN8MW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"qNfxUNq7TS1Ir1v0av6g5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"24NZ0zEAVZALqDKyhwNuw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"LuDZ3-kEmfKjnG1mY1dP-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"tbQHP5OYXJQloHKaU2IYI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"jk7UFiDRjJM0EroQq9F3w":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"mMJjLR7A_GA8tB_G6TGvi":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"BbKRWmASKWvvssoxmFoXb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"CHNPC7yuY9w09zDloMzef":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"mQYdioTZPkl5fv7BOn6B7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"thsy6uQizqdLTtGCBgtZe":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"6asu0RgY8RKA1duBlmQFj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"NnXWrCeTmEyEPYxqLDZzZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"Ihkfa7CmPdnoJlaJ7bQdH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"HV24xIkhEyKIfxGo2gaYM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"topEo1ZUlJNhdxz_gG9Md":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"JiJsX6isKh5XLB6BAUryO":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"KuIaNw0KtoSnKolYZCSfF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"y_y6NT15oeny4Sr_SRftx":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"2clboGqipA6y1r3ClmOjo":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"ygT7st4QCNyZRQbJwfKqJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"hxNd7WorzSXs4Gf_bUz7-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"J-t4q7mQ43K11WhUVWa9k":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"mZ_HZhmtv9QWkXoHOqpRy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"mhi1zTRS5KzqoTQrwgj-d":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"3AxFt3Gh1jBE_2hRgWRnl":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"FItEZHyOkt7HarWnBckPR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"pCIpVg3CBArEmwsloXLvz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"l4b6Udh_iwc5s4oQaEm8N":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"DJeiMvdrPFHKQxMkREHv1":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"Ptxv0aNjX1eG7dQ5Gczj2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"oRbX6NJ9UGQCpvKV8vNHY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"WmJGwrQYdOt9dlZb5hKzK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"9C7Lwk6er2U_9BU2xjtjY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"lHCC1MQdQinVaPBnk16Yv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"imi5ssMuH88EElu6VlNTR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"Jj-uH3ouCc6MUg8mC1W4W":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"F-IIr1nY32rU58RW_p8ZI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"DPGoyhk31ZW1gBq9J1Vx3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"KmTze76a8oTVj68GrxrfS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"WBuy2JD2M20ra4fuJoE9g":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"sqXjBHPxlUpYgRQuG4kM2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"P_ZCCajFM9nCDVJsD_znd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"m3kxQ6_E3Fobc7PAU9FOW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"AHCzbhRKMz0BwYox9orWi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"yrhAw4Tud8HJsHBupT0pp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"4ihKpBa6TUbM0lEHF2gvj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"8RiblDNcUNA749JFOQ9ay":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"kFciEXXnRTBxbdfpNSNMW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"QSxnVz9_KJ1pMdZKwfKjI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"dV4DGRIQyAMQHNBoAsQ26":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"4rLFKjpVbnZ1hU5UZaUry":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"PBOWHNPufUQZZpgqHhi7C":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"DpAKk2WgXZ0Ly_RrTJhmo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"lxl17ojT2MfaEIvxZ0-_X":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"YeBALS1jvP5R09iAG9XXi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"RcQRURi_Ow1VCIRY1EVDe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"5WT9AOyE8uM4dIg88xf2F":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"VU74kv6Xoc57jrrrFi4Zm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"5e1jYy_wZQK0KEYYETS10":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"Rac5Ee50V5dG2-HWHl_hU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"SHOcQVRDkr2vFQqSD44P1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"HPpgjvVKREfDO0c_8O19I":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"hrsUwQ-QKgcptxHvHUPe2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"vMbTdvW87PKrKuA9TYlbo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"K6HyvB6pkLoWZCXrqSzhf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"i4rIvB23lKsZqnl-gGxPC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"UeGJ5ug42BMyWUaTNBXa3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"0AS24Z_v5LPXiMzvwXWdu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"2aDV9zZP2Ih3UVZ3bsEDM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"sC5_KSjmM9QHlRzEH_hQm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"t9kdxvcbxhHN_OmSNjQtX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"g7bKaL8XZ775xj-L4s5Z7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"A7fXwZ5vHbGgkEzOJ5uRa":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"EVUhF9Lgv6HPeiOpHr9GZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"A4D5OaNqLtLszflxY9l17":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"VxzoBxq9Abksney0AJIDU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"Rs1ZjexL5sITXiv84OYRV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"dsdWctWMCw4i6h5lm-BHd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"MpMv84jwgWi5ZDK6X47JZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"_eH-kUOe-JfGbmDo_2fWn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"iQx_pvgyEc8inVsSqD1VF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"f2maplzpyLzvwv6ieQ2hN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"BOLJjwUU7PUZ6MAYEykvF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"xrXJVoDF5HPmbVUDE1sUS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"5meZeLpozwNdCBnWetqS3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"nmnDoxUKYOhQzWLlCy9e2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"M9l6p9RChBk2P_Y8eds9N":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"gEhNsw9EyhV7oO-nbOcNC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"1zLiIcjdfmQUbpTGQwAJL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"6lH0X-tDvwmMvvvkGEXyq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"x_3rYoehy3_z-J4Ux9oke":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"vVr8yJk8Ro0AxDREzaFy6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"GpUYDeGCBDCnH3w4pKEwV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"tMwBhI8fR_lFUZsoAbIAm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"5GRQ5xVtx_4SRa1i1pkjG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"3xSUmVrfatFiHWicWjPDP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"XaVuGXUV5-TYxIOPmvi9m":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"gwwSn6eI8BYbG6s7ceIZF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"PmNh8c-xFUU0hTYuC7iZ5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"mAvSed99ul5R-qaHLcDQk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"Rt7WOluk8Xr3i819amtJh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"qLU17FH-tRVRhDQe6qnxc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"FZdAowDDIdUJ53GyPopsS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"NJmakL7YuqkAcCoTcbGUZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"tsCd-yEayJyJE6gPQeG1l":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"Rqf_I_Mh5cJajAmPaiGqA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"DTHrDda6CWI3MOo0VNEXZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"7j1DTaRUPfQXveOpbEm0x":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"OxSTDO5mQWCAt_c2KAdRm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"mGZZM6gXKLpDWinf6GCA0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"6GO6BvNYhmUrdHwrCL-Tr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"AbvJqOQstTG48tn5fYf_I":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"KO4zog_16hAIafH6P4RHi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"5i7vM6enbR33zcezoaBVp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"_UPZL1F34Zkon2C7k5_Pg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"PKHKY835SAa5JKXQ0BQYV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"qlVcH22Jj0Zje2GMLpQUw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"R-Cbr1MNZCPkJbCzmaq9q":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"4JibiRuvNFJ3g9JdB-mXt":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"uVy3JWiV-cfvn0m8SAbgk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"S2x-qTcnh3EtKdRvjt1Ai":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"XOxUUJI4TdAj7hHssaWC1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"qbfkAnVNi9tX787GLg__Z":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"JH_Mq2-0EOenpnHnEx1DS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"G_J58jHXiWjYs9eAwenik":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"kGdgiQjIyQwWAj9pkLOKW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"jf5287jT2VlZHhD-5hiby":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"y9yn5frpG82ibDiCkd5eR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"R9pgbxO4_DbJNLocGEnE0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"qHetiO7AnxZD6gFKXOIVf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"_9xP8RRayD7Uf-G5cNIb6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"Xl4tYT50e6Nc8nRdrtxMJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"-ei8nzIFytcj16QIaktRQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"tyD8Ni1f5DxR6cDmtAEsY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"Ah5U4hTqgO3t3mH5hWarj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"biQaPvlC147ryS6Mdr16h":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"UDWTCAxXjjlVOvtdGxDVE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"KPd-AXK-XHUYyoIOb4EBn":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"Jsa6_O8qYyIaDCv5lsb1o":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"5AfBLlcgPrY2s6d6oEaxz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"nJVaednArk2y5wslk6_f8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"VytI_qRWZbMpvXpWRkgaM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"aUeZu5nScz_ZZ9SrD6Jrf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"7lE4qk4vM0wTr9l1yTnUJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"ATDj9eteRf8iLZXeZMzhE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"b84XtlCuc_rCpji6a2Inl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"LhlB0nlfvhZC8Hl0B3VJQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"x1GKfOEyNsqoi5Os8F-I_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"ECiwwcsW1PDVvDd-b7coY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"nyKrdTp_NqTmO5z5KhVpC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"mQGg1ujcMOPxuYPYnBuiu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"p2jgdmGQtukpdw56cWF0R":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"rvLPNdrz_Co7cB56S0417":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"_b2cEif4DBACkFjT-cIbP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"6uUaD9v3RYSjeq-Qjk-zE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"sZFLpp2cibCq6igLaAJJj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"_JHQLhPKzQJPXXa6S83dH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"C9S5OXuaKBNuXrYCYu16S":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"Pd78D3EWjYoctFeyySQFC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"ND76jsgwt4T3cHEpdYgyz":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"fq-IX6cBsgF8fwjYsem23":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"rHUSUwk_edrf-UXRXGahD":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"lx42hKpGWSj1kg2bOe0OL":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"DSdR4TWwu_jSXHWb4uVzJ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"nCqo3PWxmyiYS70ngoLmp":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"zx5x0P3N8Rset0V8BvR5m":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"I4gjKBrP2PBiVQb4gRbU0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"ZtdL1ouLum9Rm-J0j38go":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"v2NtCWAr24cgEn6Avlbf1":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"hiJlZ9-GH3kabOGD_GOvu":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"jAVIy7lHFuhEaeBn2sWud":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"rO5mNi3qHFwAne7v9Ig8p":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"6OBImEbIdZCBV5cDaXib3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"onH18Ip0fPvJBzNsr8lUn":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"vo7UeoLzu8oxh0nnIT2t5":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"0OGosbZCYnU7ngs3q1k8S":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"hPpqbK-V_PQ14biR_6eoX":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"AM7M83XwnthWtfEWtrWuj":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"HO22qETKTe7pFJlCgcvJx":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"4xzyjO3Q7l5A0FUVBhrJH":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"TrNm1JS-oCam8Q8ztfuan":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"l8D8GYr6ZafBRSnxiN2mg":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"X1scNb4h-VIBEHtsamxmm":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"1aXp7nt1v6099Of8y0aAG":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"0J6R5rSCtHxg_4pUTKwSD":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"iX-e0rYvmbljpofobdTnv":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"7_Xjoce-SvaGvGYQ6ykRj":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"_7ebYLQzI-YMDiP18AdcC":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"i5XSJhR99MM_DidIQqsM-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"60G5zWZc9Nc6nO6P8oPfF":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"zVq6lvQooMLUYcEZlSAa_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"DThVtPFrrvmBPYdsbDlbt":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"PNiRp3HbebPJ-5BTOth5a":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"Bi2H_rbHfoTRbHbuiTFYF":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"EcjC4WuY_dSlbBujE9gl7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"IEsn2JHxjRR624jv_rwpV":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"6Q7BDo3xYwBjxh3IFblgf":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"1NNPRcEo8UsfeH7pxPl9Z":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"YScGiQWqwFgdpwFs90ZWU":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"0AWivno-80ezil8g6VPuO":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"qzmGy-6Hbvdu_Jod2yiDA":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"25mEQ58bA3UiN0C7ujzuz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"w35IoyipCT2Etu0O6XEEf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"jDDXTXCGNzgNPDafyB8EE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"jkdDu0_K3YnHODhtI6hOo":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"6BJbpmdJ7Kf_JvdgiBgrG":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"GZ7HMalxbFzZhWohZ9cIz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"pYP_i3YEv2E7DGXmZntWw":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"KnhBRuBO37fuL8Zo66tot":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"QlVUQZFpdw-0pTDga8383":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"pmCAPO_9-m73IChhxnnVa":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"0JDx1N8ETgrsS1ebnbqQk":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"n73MzgfomrWISlfI0c020":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"0rEs3vvklf1KonXEoecgq":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"naWAusyPiygeSX-QYdMLz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"Ap3GPlujkXodM05fL0FXX":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"no2dB6aOn4aAancSTttkp":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"u8uNin3Du7Xrd1-hqqd0S":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"duE2OVlb3ZyYPond_TT43":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"XlAt1V76y6eIVUrrlevwQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"yEZ9B9iquEnEGWJDZXSFL":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"8uF-L9NAc0btE00BYFhq_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"9hJ4j1p3vvZZV_nmWoDcQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"NLhhvbrA4UKGVrP6ADYyd":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"ijmnEsUXuq8cbmwkBBtvW":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"OkLX-MfrOG_sik1tlttnb":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"GZP_D5-GCRi46qVN638xk":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"VKZM0hRabo_lD5SKqtpw3":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"BpZikiZF45vKCk82CcAL2":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"GHP6d_FhRLpqg0lAL_cPz":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"TK08icQUjwiIErUM-BIdm":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"TJtS_1ro_SLDWo26Rqtms":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"XTPMaNGXuzUUpBDxcXMeo":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"itp7bj7jeHUXGGYP0YmwP":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"lvWWa3f7QDXxP0Mzzy9CZ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"X3WbTDMSjCv2ZEn5s-p9-":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"GJ5h14ujoQzqf4Y4E_Gzi":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"SjHd6aTN1SdYlqOzbXboD":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"kx3_omdr1uoYIxrnVc3O3":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"03Br17ACM-IQ4hbJrJwDf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"1FNezFLyO4rZG9Z8kUKNH":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"92o679ekxP2XatMFXsgG9":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"MitX1qj9QuZKAsg3ypS90":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"jvcUA7aSH-42bkA4TOOh7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"pOzJAXsEr6TxXa_Asq16n":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"3h1mfc2_sFZzjuPAEvJTl":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"C5Nqy9Bq_RsZeJKcYWd_Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"ZoXG5bacVq180_JjHdi2Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"g9sWt2KMoBYUOP3PChJQz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"xQVr9vK5S4AwkOigUBtWX":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"p5M6zP8n0251YBOx9h1lE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"0taJFBQIJMHnyANWU7Ezd":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"tfRclvqmHfdD6L8zyscls":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"Sp35TvnSvRKbkLN1f6Ex6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"a9kZF1ZmLcOJqkt5s_WPI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"Qnu_bGT3pzubZc2GhJeX7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"2Y9mGBwOgUKEpD0yhuDT0":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"e7Of2Ol_cSIqDu0py4Aeb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"EgZaC87Jkrh3BQcmr47Av":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"57vM2v3ovAsSNhmsalF6Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"2aegQsQh10d9gRrOBpXdn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"IJZabdSOhl1JqpAlwMbSn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"bqAV7Z_c9rc8dKdKX4tue":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"EqVBdbQUBizYvkkYG5Cmc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"5NEn5XmS6l_E2zBqStgdF":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"pgXRxTUAfhlz5ZfHrLBzb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"osETTpiexcy9nRqMQShLx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"7Na2hhW5cT5-UMas0HXlS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"3RDb8OXvwTRi-ArQXPHfb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"BV_JLJqMQLXKe4dU8GnRI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"nAM6Y8dht_CX_EErcICa6":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"HMbLiKGQVaQPoAlvclAOr":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"a74x7Mh5RqYniDsW4Ythx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"0FKRLsr7yaIP6SKflNFM4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"wd9UuCfCkymSsNwtfxk9K":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"ExcHlnGx51ZzSqvlR_8E0":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"dwO76AtbKra7qWxPh6bkU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"77S1Y5RruYakBNzaxijXt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"psI75VhrhPHdj04FwZeaS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"1mVCbz45hWdyhirmD6hLV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"sLtl_i1tUT2rhl-jsGDGE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"feOnWay8sf-sTA3duzL2M":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"yh2S9VFJcynEf00oyYq1h":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"IrTS3y-ioib8LMeBNmmHv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"L5udJzSpfjNhzk6T-o3XW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"IxS8WyFpqDDjwnVI5LvOc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"_CQIR0tyOmuVmq1ijv6OG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"KIXATW3Tp1qtP2gKb7BGP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"P_ij6RAHjIBVe0VDVPJ48":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext2d"},"-tW7imBLACj8k2WhEs-Sk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContextGL"},"1RxTpVM9kwyLwmFg4Ycl_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"ftL2A2xHdxK4PhGHvnojL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"kgVDdje0tstI_cjfqhe0n":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"yQRt1pzZ3_TviwP6PBiFf":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"noB0WiFjfF5H7F3Ct72LU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"245wAhRfU9FbLVCXPcxBQ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"eusgj8xVrGhVYFwBArCIp":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"XoDFJr6MyL5sYdJo3vTZu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"_gHmfj8AEcCbIIXJRyOH9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"qVHd7g2zXpV9xPrE8LpHO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"yCyv-62Vk41f7UIuGHCT7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"wvzJIAWCe0tFP0cKMQKf5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"zuEN2RC7pYtQvmpKEJbxx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"Q6rF1p4SGvF97iYh-8ypV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"V3uBUNSjRKgpoxYW1D6GN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"MD6QGNXgUJbRrEwiiW5nV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"yYLEmCTEi-bazH9D8rIki":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"diLZ1tqmWIvXiuJv7VBCo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"pX1IW9B_ddERSmEToC7O9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"tF-C9RIsiGuKrgT6tdvUE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"4UxQO4X1g6QXNMuM0Cmqr":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"2DCTXdwAFYOhi6Smet7r7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setLineWidth"},"wtkC9N0_RiecaU1nNuogi":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"v_Udo1FndQF6-tx6chfMP":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"x7zrS_dkgs3DNGSIM9vEb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"qMZcuNqUDMGbjbHCoSmOt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"7vRruvrLboAfU85dLCPxZ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"g3RQCIDdn8q-cJKQblmt5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"ZvpxUQNFdlQKAGTaqq6mu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"db1cjFFYy9PTSRRv-Nb1d":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"fjRWbApeXRg6AahvcHuBG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"bztFJ9Si6K9uDQYvgBjxD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"C77D_Hz1Mc_WUAjzUEln8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"LOZdpXwVStA_avuqnH17G":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"v5PcqPiBrTxttquJtnegS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"dbHJFzsy-szk0kMsZ6Xqw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"jtkTdb1ITPtYf_DaiCPNL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"HcmBDLM2LparP6XpFSKpM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"lVQCMakAXJ0Qc02Kx2m8S":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"rbTH9VzSGbN35D7kcws71":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"CqeudGjNdfTQFzgvT9226":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"EpQRZQ5tUlk-Zq6sDzfK_":{"uri":"/melonJS/docs/melonjs/World.html"},"ceojAAXJkkvvBFQGSjPK8":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"ayNfFL-N-kvMrAc-v2e43":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"xoOR7BRPkXPgSGr0Ey4JI":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"y-n1nwVG5y2hGRaP43uBF":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"7R9jW7NgQR7OcIQmP-euY":{"uri":"/melonJS/docs/melonjs/World.html#app"},"nA7JnccsK6g-tTgwlaL0i":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"j-RmRYfaQxmtZ1EeU75TH":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"FnwRyNOeKsdOIXzUKz1gV":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"6RY6jH0P_L7qOAUYxxOOg":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"ZCtISwq7f_wqlAIoLIzyV":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"V2Ha7XJQssnUmzLvTt9gW":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"z5lCJJmoVClaWVJw1ub7_":{"uri":"/melonJS/docs/melonjs/World.html#body"},"_GTzvrWGHszIlIZCLVhYT":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"ri6P9veWLeeVUp8j9MGlf":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"No3cIPkAFofhkZ7hdCb-u":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"NJvVS6CriD25GeVkPXZmF":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"sTRVonXYzx5unuVj24-mf":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"rYGkMvExEh32Z8n_47f9c":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"PRGVcwNQfsAhQJlPITQXg":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"Ie3yc8OYSwstU7pHSdzhu":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"m2yNdSZdQLENQwQ0Mh5kF":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"heTZ8PCgHDCbT-xCVpXkD":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"zTiOJsyAMkkdXufqXDg-8":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"SJABhCxQKs6tOZX3-Uxwp":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"4JMQJE8YOSCHIFtiIWyqR":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"VXB2VFtiFaw6ho6tbQM-Z":{"uri":"/melonJS/docs/melonjs/World.html#height"},"Vkt2aH4H6umNmqpQ7o1C5":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"6kJTkoQyyrFmK8KsDJXri":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"AD6upQDcquJA_Nr0-gtpG":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"EolKqH-mCjbtDli-La8EN":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"S5FL27j15ghVHxD4b4eAa":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"9xMe5_awW66mkYYuf2dmQ":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"1TzcVCEqUmJ-JaY9-xOWM":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"8qV-c4vS5iq7LspO8g1GP":{"uri":"/melonJS/docs/melonjs/World.html#left"},"iDDPgjIeUCheLjt2K_eIM":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"2grJwf2LtklBWYdOTPWL1":{"uri":"/melonJS/docs/melonjs/World.html#name"},"s1dXF8pLKQjW4EzWPyz06":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"2nn1WX21JxgnMKG2GQGhe":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"E2msLB3G4ovlFj952nNH2":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"chb3v8T5U8Y7O6aSINfTH":{"uri":"/melonJS/docs/melonjs/World.html#points"},"Ok34TM6H6btutzp8ilnqq":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"OHLLiIeWZZzWCOqh7-wKA":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"yHuAh5U-MFyyS3Wg_bcSa":{"uri":"/melonJS/docs/melonjs/World.html#right"},"BO2JtIz0up5V4Pz0AEIw_":{"uri":"/melonJS/docs/melonjs/World.html#root"},"QwaozTjQ8hzXL4HnOodeb":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"eNEeun0b_CMyFWGldzK5b":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"Y5HV_WDpAzCav8e1OexbW":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"605yIMKg9cSvaapvOBXmL":{"uri":"/melonJS/docs/melonjs/World.html#top"},"7Tx7oJ9p9kKqIaKmPyvYs":{"uri":"/melonJS/docs/melonjs/World.html#type"},"dAYc6G924LsTpk8KBppP6":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"VEKx83gTgmYZgb4FjYWCv":{"uri":"/melonJS/docs/melonjs/World.html#width"},"yIXOZMoEqVbuiV34TlvKL":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"imEBy_h0FrS85Nw8HF53x":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"hz-PNjKInubLA99e9M6M-":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"l31fZJkbh6jNP0Z2AsNcZ":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"gckUm6d6bEyl8-im-o2-n":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"xJwDtvxNJbkHGPlPCv_VW":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"k8M6dDnx22qkxsljh2w7H":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"rYCb6NNdJ0-2Sd1qH0oxz":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"fKbSYeY5NX627p6FfeXj2":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"brimhOXZ4CrlKGaTgXvDT":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"06pnGpyWcnma6L4_hv6O9":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"a7jv8jphVFqf8Kf5fiY0K":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"NDnEi-WWTdCQ2genPqnio":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"y9MJii2fLSEXyucbvc1Tw":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"o4888L1xw6jgVgjN9q-lv":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"vBvfkbiNz9R7HoY6ljOBG":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"GTOrC6-yb49ubPNea679u":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"kY8hjHfhk8ArDK2nH7Qf9":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"lrAFmxtOJ-pCD0d5NWd4a":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"27u4pFTnXvMKhnt5xMXpM":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"YGSU8gIlex22OrjpGDSk_":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"OqqF7FcrKEJfXyOIzNPwz":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"JD3R8iW3w10FoFNTr4ZS0":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"vNmGEyBvPYtNaULrRoUlK":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"-DGDXNArdMsH3CzU3mVxZ":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"ol4lm7PT6ymqsdvKhklR_":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"YEd4niSeibZds2bhkZzYH":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"BLSwTmfthkiAw1GhfCqOl":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"phV1KEgJa6uRoybgzA0GR":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"FA1zUVMDNxXuZa_M1DYWL":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"UOW1uhJ-pfFq1zb_A5E6R":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"vYCIH6vEX-30YeknmdunV":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"ttmSihQ0wdrd85CDYWb7N":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"GjkX4FHBJpwTNCmxH5V-h":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"PVrnUNsQKJKtE3MBX2YRe":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"gq1jPywOPo1eJS2op_rrw":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"MNU8snaGC2L9dINm-w4oU":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"mWYhNMB6CLqEdTJ6SYxB5":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"B7tHWNsIRjZSdo8gGvQsm":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"oAr7peXFVJx-1XtwcBeyW":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"M0DwSPXs63y36Zfu5PhaJ":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"nHHwEeJ_aSHKXF7GSlajW":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"busI5oBWjYpl7niPC5tkZ":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"i_5NRlpjzhLqT3poo-RQP":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"ar_Szr_5Dp2v_C08vfSIr":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"w1iwXqtw1OgtvZK4CRSLj":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"HjuWf83CXTJPmO_gW9yJi":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"Nag3Tpn8U3bEWwJXBF865":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"P8L0XtdKMdsS-QYNc2PhQ":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"abYVg2XNpPwcs9DGYyA-c":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"AGQ-37zE2VLmRKvSyRPEF":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"zdPYZQgFHOR968ZE2e0PJ":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"j6KW_hKQgMHwR5P9t0E9C":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"mn5xlPM_LkwgMzIhjNWga":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"3RdWZyZ2ofZGxPG9upKKT":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"lnGH5SU7T4qiXj7cqJTi_":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"RG-ibvOPtwj-mch1oiBnv":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"odpicFMNU0HbQNIj3jCXw":{"uri":"/melonJS/docs/melonjs/World.html#step"},"lxDNq24oFcR4wr30Gbeev":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"bLMdSrwAw385S_PIEXR4P":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"bYN3JMFT4UQuVLjx47-BE":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"WFxG9zGui33NfKhJv4o17":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"ctTdWqTst1zJIXyIh_7ht":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"7R3YjbYEF6jPzLA_3pNbK":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"JuG5A0JD2Q9cbVn0zZGSp":{"uri":"/melonJS/docs/melonjs/World.html#union"},"w8FeusBX8MJiVmG1M4Iuy":{"uri":"/melonJS/docs/melonjs/World.html#update"},"HfULvI73zpKNS6qwf7Vcs":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"hY8kVO3vVoiI3iBfB8hJq":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"tVKE-FuGP-G1l_VFQSr2w":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"YmDdrNloZASMjvVKbvtBX":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"iWF9t8rN3nGkkoTEkTsGn":{"uri":"global.html#AUTO"},"UHY88bqZsXALKgfe39SpS":{"uri":"global.html#CANVAS"},"lUs9Igp9WzL6auRYt1h2-":{"uri":"global.html#version"},"e0JpHKKUfK0eQFDRJ0SdZ":{"uri":"global.html#WEBGL"},"helbAhwicC3cNXgD3cedW":{"uri":"global.html#failureLoadedAssets"},"-prh4jsfDFnXZRM5PUoyq":{"uri":"global.html#imgList"},"oG9g3RztLtaeMFbftBLBZ":{"uri":"global.html#initialized"},"lG7IOgfDYyM_jJ36rTDzS":{"uri":"global.html#parserInitialized"},"HOFX8rlPB0LiCj3GHTntB":{"uri":"global.html#parsers"},"EHNuFndyj8DxqvpD9hePA":{"uri":"global.html#skipAutoInit"},"gNUpmWNBSDEI9klUwx62P":{"uri":"/melonJS/docs/melonjs/boot.html"},"cuA96eaGfGZNgZu4XLRut":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"Q3MR4pRdEoSK9yE66I6RX":{"uri":"/melonJS/docs/melonjs/fetchData.html"},"9VMp685vmkqyaE0uXwhxe":{"uri":"/melonJS/docs/melonjs/hasVideoFormat.html"},"B2HldnRS4fluf7kvMynf9":{"uri":"/melonJS/docs/melonjs/pow.html"},"1SWcwbhW2dm6oGsEBGvsw":{"uri":"/melonJS/docs/melonjs/warning.html"},"oHAF5RYaKNGNOcdwhQ5Lz":{"uri":"/melonJS/docs/melonjs/onresize.html"},"QglOxWNf0DYTfYmhJ6J64":{"uri":"/melonJS/docs/melonjs/scale.html"}}} \ No newline at end of file diff --git a/docs/docs/melonjs.api.json.md5 b/docs/docs/melonjs.api.json.md5 index 5682df0da..dc047d8e5 100644 --- a/docs/docs/melonjs.api.json.md5 +++ b/docs/docs/melonjs.api.json.md5 @@ -1 +1 @@ -f7f8315ce92922d4e5cc3b21d626a61b \ No newline at end of file +7dd666ec5bfd2f791a795a77f54ff2bd \ No newline at end of file diff --git a/docs/docs/melonjs.html b/docs/docs/melonjs.html index 82fc0773c..fe34c3cac 100644 --- a/docs/docs/melonjs.html +++ b/docs/docs/melonjs.html @@ -1,5 +1,5 @@ - + @@ -177,6 +177,7 @@

                                Demos

                              • Primitive Drawing Demo (source)
                              • UI Demo (source)
                              • Tiled Map Loader Demo (source)
                              • +
                              • Video Demo (source)

                              More examples are available here


                              diff --git a/docs/docs/melonjs/Application.html b/docs/docs/melonjs/Application.html index ac1fc12d2..6d79f7532 100644 --- a/docs/docs/melonjs/Application.html +++ b/docs/docs/melonjs/Application.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Application/Settings.html b/docs/docs/melonjs/Application/Settings.html index 24eab5d3d..f21f54150 100644 --- a/docs/docs/melonjs/Application/Settings.html +++ b/docs/docs/melonjs/Application/Settings.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/BitmapText.html b/docs/docs/melonjs/BitmapText.html index 81b4a7cc7..55b47b2d8 100644 --- a/docs/docs/melonjs/BitmapText.html +++ b/docs/docs/melonjs/BitmapText.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Body.html b/docs/docs/melonjs/Body.html index 5317a987c..7dfc86e7c 100644 --- a/docs/docs/melonjs/Body.html +++ b/docs/docs/melonjs/Body.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Bounds.html b/docs/docs/melonjs/Bounds.html index 06bf9c90a..3f804b7c9 100644 --- a/docs/docs/melonjs/Bounds.html +++ b/docs/docs/melonjs/Bounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Camera2d.html b/docs/docs/melonjs/Camera2d.html index a94742124..ffc572943 100644 --- a/docs/docs/melonjs/Camera2d.html +++ b/docs/docs/melonjs/Camera2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Camera2d/AXIS.html b/docs/docs/melonjs/Camera2d/AXIS.html index 30ffa5ad5..6e4aab05e 100644 --- a/docs/docs/melonjs/Camera2d/AXIS.html +++ b/docs/docs/melonjs/Camera2d/AXIS.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/CanvasRenderer.html b/docs/docs/melonjs/CanvasRenderer.html index 82db57aff..2be1f1515 100644 --- a/docs/docs/melonjs/CanvasRenderer.html +++ b/docs/docs/melonjs/CanvasRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/CanvasTexture.html b/docs/docs/melonjs/CanvasTexture.html index 0f795877e..a445c3b4a 100644 --- a/docs/docs/melonjs/CanvasTexture.html +++ b/docs/docs/melonjs/CanvasTexture.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Collectable.html b/docs/docs/melonjs/Collectable.html index 791f118c5..35eef0c76 100644 --- a/docs/docs/melonjs/Collectable.html +++ b/docs/docs/melonjs/Collectable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Color.html b/docs/docs/melonjs/Color.html index f1e693710..89eec7ddd 100644 --- a/docs/docs/melonjs/Color.html +++ b/docs/docs/melonjs/Color.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ColorLayer.html b/docs/docs/melonjs/ColorLayer.html index 6dfb44bd2..ab42adf66 100644 --- a/docs/docs/melonjs/ColorLayer.html +++ b/docs/docs/melonjs/ColorLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Compositor.html b/docs/docs/melonjs/Compositor.html index 22a4ea717..1882b9cd0 100644 --- a/docs/docs/melonjs/Compositor.html +++ b/docs/docs/melonjs/Compositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Container.html b/docs/docs/melonjs/Container.html index 6632e022b..590c85bcc 100644 --- a/docs/docs/melonjs/Container.html +++ b/docs/docs/melonjs/Container.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Detector.html b/docs/docs/melonjs/Detector.html index 11d7501f3..92e882a9c 100644 --- a/docs/docs/melonjs/Detector.html +++ b/docs/docs/melonjs/Detector.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Draggable.html b/docs/docs/melonjs/Draggable.html index 58ab65869..8de4498f2 100644 --- a/docs/docs/melonjs/Draggable.html +++ b/docs/docs/melonjs/Draggable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DraggableEntity.html b/docs/docs/melonjs/DraggableEntity.html index b4ca867e5..4cd0c8601 100644 --- a/docs/docs/melonjs/DraggableEntity.html +++ b/docs/docs/melonjs/DraggableEntity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DropTarget.html b/docs/docs/melonjs/DropTarget.html index baf2e656c..11ae88f27 100644 --- a/docs/docs/melonjs/DropTarget.html +++ b/docs/docs/melonjs/DropTarget.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/DroptargetEntity.html b/docs/docs/melonjs/DroptargetEntity.html index 634fbde0e..52b172af5 100644 --- a/docs/docs/melonjs/DroptargetEntity.html +++ b/docs/docs/melonjs/DroptargetEntity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Ellipse.html b/docs/docs/melonjs/Ellipse.html index 93d7116e4..0183434dd 100644 --- a/docs/docs/melonjs/Ellipse.html +++ b/docs/docs/melonjs/Ellipse.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Entity.html b/docs/docs/melonjs/Entity.html index 0f680120d..06b907290 100644 --- a/docs/docs/melonjs/Entity.html +++ b/docs/docs/melonjs/Entity.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/GLShader.html b/docs/docs/melonjs/GLShader.html index 90f719eee..69c8011b7 100644 --- a/docs/docs/melonjs/GLShader.html +++ b/docs/docs/melonjs/GLShader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/GUI_Object.html b/docs/docs/melonjs/GUI_Object.html index 85f9e7ddf..2c2ce9621 100644 --- a/docs/docs/melonjs/GUI_Object.html +++ b/docs/docs/melonjs/GUI_Object.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ImageLayer.html b/docs/docs/melonjs/ImageLayer.html index 61577a1e6..b67cbeab7 100644 --- a/docs/docs/melonjs/ImageLayer.html +++ b/docs/docs/melonjs/ImageLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Light2d.html b/docs/docs/melonjs/Light2d.html index 63ab079f3..efac01274 100644 --- a/docs/docs/melonjs/Light2d.html +++ b/docs/docs/melonjs/Light2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Line.html b/docs/docs/melonjs/Line.html index 253d8e8cf..a01353b19 100644 --- a/docs/docs/melonjs/Line.html +++ b/docs/docs/melonjs/Line.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math.html b/docs/docs/melonjs/Math.html index 15c7ff969..a151b16ed 100644 --- a/docs/docs/melonjs/Math.html +++ b/docs/docs/melonjs/Math.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/clamp.html b/docs/docs/melonjs/Math/clamp.html index 24b796351..9198a0a4c 100644 --- a/docs/docs/melonjs/Math/clamp.html +++ b/docs/docs/melonjs/Math/clamp.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/degToRad.html b/docs/docs/melonjs/Math/degToRad.html index f0f0cb337..edcdae540 100644 --- a/docs/docs/melonjs/Math/degToRad.html +++ b/docs/docs/melonjs/Math/degToRad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/isPowerOfTwo.html b/docs/docs/melonjs/Math/isPowerOfTwo.html index 9cb68b2b8..272e96e69 100644 --- a/docs/docs/melonjs/Math/isPowerOfTwo.html +++ b/docs/docs/melonjs/Math/isPowerOfTwo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/nextPowerOfTwo.html b/docs/docs/melonjs/Math/nextPowerOfTwo.html index ecda2586b..6649e0cb1 100644 --- a/docs/docs/melonjs/Math/nextPowerOfTwo.html +++ b/docs/docs/melonjs/Math/nextPowerOfTwo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/radToDeg.html b/docs/docs/melonjs/Math/radToDeg.html index b38f3cd13..af37e0651 100644 --- a/docs/docs/melonjs/Math/radToDeg.html +++ b/docs/docs/melonjs/Math/radToDeg.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/random.html b/docs/docs/melonjs/Math/random.html index 5afd61de4..a012b5a9b 100644 --- a/docs/docs/melonjs/Math/random.html +++ b/docs/docs/melonjs/Math/random.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/randomFloat.html b/docs/docs/melonjs/Math/randomFloat.html index a4d81016b..c40db5f37 100644 --- a/docs/docs/melonjs/Math/randomFloat.html +++ b/docs/docs/melonjs/Math/randomFloat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/round.html b/docs/docs/melonjs/Math/round.html index 1b8f785ac..9f1e33b2b 100644 --- a/docs/docs/melonjs/Math/round.html +++ b/docs/docs/melonjs/Math/round.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/toBeCloseTo.html b/docs/docs/melonjs/Math/toBeCloseTo.html index b54600f62..6782b7308 100644 --- a/docs/docs/melonjs/Math/toBeCloseTo.html +++ b/docs/docs/melonjs/Math/toBeCloseTo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Math/weightedRandom.html b/docs/docs/melonjs/Math/weightedRandom.html index f508e0a49..18111d974 100644 --- a/docs/docs/melonjs/Math/weightedRandom.html +++ b/docs/docs/melonjs/Math/weightedRandom.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Matrix2d.html b/docs/docs/melonjs/Matrix2d.html index 26ba88d6d..18055aefa 100644 --- a/docs/docs/melonjs/Matrix2d.html +++ b/docs/docs/melonjs/Matrix2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Matrix3d.html b/docs/docs/melonjs/Matrix3d.html index d5ea3d769..e88387862 100644 --- a/docs/docs/melonjs/Matrix3d.html +++ b/docs/docs/melonjs/Matrix3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/NineSliceSprite.html b/docs/docs/melonjs/NineSliceSprite.html index c815c93a0..4065858cf 100644 --- a/docs/docs/melonjs/NineSliceSprite.html +++ b/docs/docs/melonjs/NineSliceSprite.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObjectPool.html b/docs/docs/melonjs/ObjectPool.html index 93dd1fb32..53d48ae28 100644 --- a/docs/docs/melonjs/ObjectPool.html +++ b/docs/docs/melonjs/ObjectPool.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObservableVector2d.html b/docs/docs/melonjs/ObservableVector2d.html index 66318cd83..633609a18 100644 --- a/docs/docs/melonjs/ObservableVector2d.html +++ b/docs/docs/melonjs/ObservableVector2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ObservableVector3d.html b/docs/docs/melonjs/ObservableVector3d.html index e7eb2bc68..da46426ea 100644 --- a/docs/docs/melonjs/ObservableVector3d.html +++ b/docs/docs/melonjs/ObservableVector3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Particle.html b/docs/docs/melonjs/Particle.html index 39ce50c70..eb3367063 100644 --- a/docs/docs/melonjs/Particle.html +++ b/docs/docs/melonjs/Particle.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ParticleEmitter.html b/docs/docs/melonjs/ParticleEmitter.html index 31b126b54..53effe5a7 100644 --- a/docs/docs/melonjs/ParticleEmitter.html +++ b/docs/docs/melonjs/ParticleEmitter.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ParticleEmitterSettings.html b/docs/docs/melonjs/ParticleEmitterSettings.html index 7ecae63ef..330262adf 100644 --- a/docs/docs/melonjs/ParticleEmitterSettings.html +++ b/docs/docs/melonjs/ParticleEmitterSettings.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Path2D.html b/docs/docs/melonjs/Path2D.html index 5e79c3401..0ebe8228b 100644 --- a/docs/docs/melonjs/Path2D.html +++ b/docs/docs/melonjs/Path2D.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Point.html b/docs/docs/melonjs/Point.html index b1771ccbe..d4a7591e3 100644 --- a/docs/docs/melonjs/Point.html +++ b/docs/docs/melonjs/Point.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Pointer.html b/docs/docs/melonjs/Pointer.html index 3f94a4a9c..9321ea595 100644 --- a/docs/docs/melonjs/Pointer.html +++ b/docs/docs/melonjs/Pointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Polygon.html b/docs/docs/melonjs/Polygon.html index acc26c57e..c199cab74 100644 --- a/docs/docs/melonjs/Polygon.html +++ b/docs/docs/melonjs/Polygon.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/PrimitiveCompositor.html b/docs/docs/melonjs/PrimitiveCompositor.html index 4d6b3f832..b8c14c7c6 100644 --- a/docs/docs/melonjs/PrimitiveCompositor.html +++ b/docs/docs/melonjs/PrimitiveCompositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/QuadCompositor.html b/docs/docs/melonjs/QuadCompositor.html index 9c03c9543..ce9c70926 100644 --- a/docs/docs/melonjs/QuadCompositor.html +++ b/docs/docs/melonjs/QuadCompositor.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/QuadTree.html b/docs/docs/melonjs/QuadTree.html index 856296f49..f7065d738 100644 --- a/docs/docs/melonjs/QuadTree.html +++ b/docs/docs/melonjs/QuadTree.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Rect.html b/docs/docs/melonjs/Rect.html index ee24fdce9..455b5e400 100644 --- a/docs/docs/melonjs/Rect.html +++ b/docs/docs/melonjs/Rect.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderable.html b/docs/docs/melonjs/Renderable.html index cc37373cb..6189e43b4 100644 --- a/docs/docs/melonjs/Renderable.html +++ b/docs/docs/melonjs/Renderable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer.html b/docs/docs/melonjs/Renderer.html index 924156141..9648ded1f 100644 --- a/docs/docs/melonjs/Renderer.html +++ b/docs/docs/melonjs/Renderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer/Texture.html b/docs/docs/melonjs/Renderer/Texture.html index 59ef07a81..32d592939 100644 --- a/docs/docs/melonjs/Renderer/Texture.html +++ b/docs/docs/melonjs/Renderer/Texture.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer/getHeight.html b/docs/docs/melonjs/Renderer/getHeight.html index 5805f6a8c..1d4856d61 100644 --- a/docs/docs/melonjs/Renderer/getHeight.html +++ b/docs/docs/melonjs/Renderer/getHeight.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer/getWidth.html b/docs/docs/melonjs/Renderer/getWidth.html index ddd96d3a5..b1db5bc5f 100644 --- a/docs/docs/melonjs/Renderer/getWidth.html +++ b/docs/docs/melonjs/Renderer/getWidth.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/ResponseObject.html b/docs/docs/melonjs/ResponseObject.html index 19df0da59..2fdd94c00 100644 --- a/docs/docs/melonjs/ResponseObject.html +++ b/docs/docs/melonjs/ResponseObject.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/RoundRect.html b/docs/docs/melonjs/RoundRect.html index 53f778036..e109dd4f7 100644 --- a/docs/docs/melonjs/RoundRect.html +++ b/docs/docs/melonjs/RoundRect.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Sprite.html b/docs/docs/melonjs/Sprite.html index 6f18c220d..6d634fcba 100644 --- a/docs/docs/melonjs/Sprite.html +++ b/docs/docs/melonjs/Sprite.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Stage.html b/docs/docs/melonjs/Stage.html index c48e7ef4c..9cf99603e 100644 --- a/docs/docs/melonjs/Stage.html +++ b/docs/docs/melonjs/Stage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXHexagonalRenderer.html b/docs/docs/melonjs/TMXHexagonalRenderer.html index 9ee9c349b..64e7668ca 100644 --- a/docs/docs/melonjs/TMXHexagonalRenderer.html +++ b/docs/docs/melonjs/TMXHexagonalRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXIsometricRenderer.html b/docs/docs/melonjs/TMXIsometricRenderer.html index a808462a6..3b64ed5de 100644 --- a/docs/docs/melonjs/TMXIsometricRenderer.html +++ b/docs/docs/melonjs/TMXIsometricRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXLayer.html b/docs/docs/melonjs/TMXLayer.html index de0be11df..bb118c5f1 100644 --- a/docs/docs/melonjs/TMXLayer.html +++ b/docs/docs/melonjs/TMXLayer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXOrthogonalRenderer.html b/docs/docs/melonjs/TMXOrthogonalRenderer.html index 6e82b2d1e..25475e5cd 100644 --- a/docs/docs/melonjs/TMXOrthogonalRenderer.html +++ b/docs/docs/melonjs/TMXOrthogonalRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXRenderer.html b/docs/docs/melonjs/TMXRenderer.html index 9ed9311a8..e8a569207 100644 --- a/docs/docs/melonjs/TMXRenderer.html +++ b/docs/docs/melonjs/TMXRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXStaggeredRenderer.html b/docs/docs/melonjs/TMXStaggeredRenderer.html index fe5b6dcd5..110711bf3 100644 --- a/docs/docs/melonjs/TMXStaggeredRenderer.html +++ b/docs/docs/melonjs/TMXStaggeredRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTileMap.html b/docs/docs/melonjs/TMXTileMap.html index 9ee02eae2..1239a859c 100644 --- a/docs/docs/melonjs/TMXTileMap.html +++ b/docs/docs/melonjs/TMXTileMap.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTileset.html b/docs/docs/melonjs/TMXTileset.html index 1f87e6e01..64cee43fa 100644 --- a/docs/docs/melonjs/TMXTileset.html +++ b/docs/docs/melonjs/TMXTileset.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXTilesetGroup.html b/docs/docs/melonjs/TMXTilesetGroup.html index d0115e415..350362715 100644 --- a/docs/docs/melonjs/TMXTilesetGroup.html +++ b/docs/docs/melonjs/TMXTilesetGroup.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils.html b/docs/docs/melonjs/TMXUtils.html index 2d99e06ea..926676b05 100644 --- a/docs/docs/melonjs/TMXUtils.html +++ b/docs/docs/melonjs/TMXUtils.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/applyTMXProperties.html b/docs/docs/melonjs/TMXUtils/applyTMXProperties.html index 9950f4716..3f570dcd4 100644 --- a/docs/docs/melonjs/TMXUtils/applyTMXProperties.html +++ b/docs/docs/melonjs/TMXUtils/applyTMXProperties.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decode.html b/docs/docs/melonjs/TMXUtils/decode.html index d50ea43b6..bd0cd015b 100644 --- a/docs/docs/melonjs/TMXUtils/decode.html +++ b/docs/docs/melonjs/TMXUtils/decode.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html b/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html index 084247ae4..1dd4ab96c 100644 --- a/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html +++ b/docs/docs/melonjs/TMXUtils/decodeBase64AsArray.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decodeCSV.html b/docs/docs/melonjs/TMXUtils/decodeCSV.html index a2bab2e44..e89b4b625 100644 --- a/docs/docs/melonjs/TMXUtils/decodeCSV.html +++ b/docs/docs/melonjs/TMXUtils/decodeCSV.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/decompress.html b/docs/docs/melonjs/TMXUtils/decompress.html index a5073e2ad..d3619fadc 100644 --- a/docs/docs/melonjs/TMXUtils/decompress.html +++ b/docs/docs/melonjs/TMXUtils/decompress.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/parse.html b/docs/docs/melonjs/TMXUtils/parse.html index 5e5932a42..d752fb2a8 100644 --- a/docs/docs/melonjs/TMXUtils/parse.html +++ b/docs/docs/melonjs/TMXUtils/parse.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TMXUtils/setInflateFunction.html b/docs/docs/melonjs/TMXUtils/setInflateFunction.html index 1fd945ada..00cd39254 100644 --- a/docs/docs/melonjs/TMXUtils/setInflateFunction.html +++ b/docs/docs/melonjs/TMXUtils/setInflateFunction.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Text.html b/docs/docs/melonjs/Text.html index 71cf97d38..77be16254 100644 --- a/docs/docs/melonjs/Text.html +++ b/docs/docs/melonjs/Text.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TextMetrics.html b/docs/docs/melonjs/TextMetrics.html index 2f227164b..24486fe92 100644 --- a/docs/docs/melonjs/TextMetrics.html +++ b/docs/docs/melonjs/TextMetrics.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/TextureAtlas.html b/docs/docs/melonjs/TextureAtlas.html index b27f05b16..bbd4d95a2 100644 --- a/docs/docs/melonjs/TextureAtlas.html +++ b/docs/docs/melonjs/TextureAtlas.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tile.html b/docs/docs/melonjs/Tile.html index 14a5bb29c..02feb9ef7 100644 --- a/docs/docs/melonjs/Tile.html +++ b/docs/docs/melonjs/Tile.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Timer_.html b/docs/docs/melonjs/Timer_.html index 8a9126d8e..a4361b80a 100644 --- a/docs/docs/melonjs/Timer_.html +++ b/docs/docs/melonjs/Timer_.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Trigger.html b/docs/docs/melonjs/Trigger.html index c1b6686b6..8e1ad95dd 100644 --- a/docs/docs/melonjs/Trigger.html +++ b/docs/docs/melonjs/Trigger.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween.html b/docs/docs/melonjs/Tween.html index 6b5f96a1f..69c920485 100644 --- a/docs/docs/melonjs/Tween.html +++ b/docs/docs/melonjs/Tween.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween/Easing.html b/docs/docs/melonjs/Tween/Easing.html index a899bc75b..9ec293765 100644 --- a/docs/docs/melonjs/Tween/Easing.html +++ b/docs/docs/melonjs/Tween/Easing.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Tween/Interpolation.html b/docs/docs/melonjs/Tween/Interpolation.html index 0f315074c..8d2baea1c 100644 --- a/docs/docs/melonjs/Tween/Interpolation.html +++ b/docs/docs/melonjs/Tween/Interpolation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UIBaseElement.html b/docs/docs/melonjs/UIBaseElement.html index 4ab6c35d9..9640912bf 100644 --- a/docs/docs/melonjs/UIBaseElement.html +++ b/docs/docs/melonjs/UIBaseElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UISpriteElement.html b/docs/docs/melonjs/UISpriteElement.html index 19a6a1f69..4019299bf 100644 --- a/docs/docs/melonjs/UISpriteElement.html +++ b/docs/docs/melonjs/UISpriteElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/UITextButton.html b/docs/docs/melonjs/UITextButton.html index 0d8b1a396..493103b5d 100644 --- a/docs/docs/melonjs/UITextButton.html +++ b/docs/docs/melonjs/UITextButton.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Vector2d.html b/docs/docs/melonjs/Vector2d.html index 6f5d60f64..78b540e7c 100644 --- a/docs/docs/melonjs/Vector2d.html +++ b/docs/docs/melonjs/Vector2d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Vector3d.html b/docs/docs/melonjs/Vector3d.html index 718cc7426..ae04a5ae4 100644 --- a/docs/docs/melonjs/Vector3d.html +++ b/docs/docs/melonjs/Vector3d.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/WebGLRenderer.html b/docs/docs/melonjs/WebGLRenderer.html index d51a92b30..2fd8ba8b9 100644 --- a/docs/docs/melonjs/WebGLRenderer.html +++ b/docs/docs/melonjs/WebGLRenderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/World.html b/docs/docs/melonjs/World.html index 89c3475e9..5755f88ca 100644 --- a/docs/docs/melonjs/World.html +++ b/docs/docs/melonjs/World.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio.html b/docs/docs/melonjs/audio.html index 1c6e5f2ca..1b0826ee8 100644 --- a/docs/docs/melonjs/audio.html +++ b/docs/docs/melonjs/audio.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/disable.html b/docs/docs/melonjs/audio/disable.html index d9041295b..52588761d 100644 --- a/docs/docs/melonjs/audio/disable.html +++ b/docs/docs/melonjs/audio/disable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/enable.html b/docs/docs/melonjs/audio/enable.html index c9c844a33..7e75df581 100644 --- a/docs/docs/melonjs/audio/enable.html +++ b/docs/docs/melonjs/audio/enable.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/fade.html b/docs/docs/melonjs/audio/fade.html index 672673ca0..0617184f3 100644 --- a/docs/docs/melonjs/audio/fade.html +++ b/docs/docs/melonjs/audio/fade.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/getCurrentTrack.html b/docs/docs/melonjs/audio/getCurrentTrack.html index 35a2dc37b..0198b532a 100644 --- a/docs/docs/melonjs/audio/getCurrentTrack.html +++ b/docs/docs/melonjs/audio/getCurrentTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/getVolume.html b/docs/docs/melonjs/audio/getVolume.html index d78e86e18..4f8c95ca2 100644 --- a/docs/docs/melonjs/audio/getVolume.html +++ b/docs/docs/melonjs/audio/getVolume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/hasAudio.html b/docs/docs/melonjs/audio/hasAudio.html index 573c460b9..ed30196da 100644 --- a/docs/docs/melonjs/audio/hasAudio.html +++ b/docs/docs/melonjs/audio/hasAudio.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/hasFormat.html b/docs/docs/melonjs/audio/hasFormat.html index fc1471f24..c5f7d898f 100644 --- a/docs/docs/melonjs/audio/hasFormat.html +++ b/docs/docs/melonjs/audio/hasFormat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/init.html b/docs/docs/melonjs/audio/init.html index 95586396c..dc2c550c2 100644 --- a/docs/docs/melonjs/audio/init.html +++ b/docs/docs/melonjs/audio/init.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/load.html b/docs/docs/melonjs/audio/load.html index 5d7d0bd58..40a340f5e 100644 --- a/docs/docs/melonjs/audio/load.html +++ b/docs/docs/melonjs/audio/load.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/mute.html b/docs/docs/melonjs/audio/mute.html index 389d30cbc..87e7aee51 100644 --- a/docs/docs/melonjs/audio/mute.html +++ b/docs/docs/melonjs/audio/mute.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/muteAll.html b/docs/docs/melonjs/audio/muteAll.html index 38a9204d7..bb8448449 100644 --- a/docs/docs/melonjs/audio/muteAll.html +++ b/docs/docs/melonjs/audio/muteAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/muted.html b/docs/docs/melonjs/audio/muted.html index ab2c0c5c3..5cd2b2021 100644 --- a/docs/docs/melonjs/audio/muted.html +++ b/docs/docs/melonjs/audio/muted.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/pause.html b/docs/docs/melonjs/audio/pause.html index 86d861578..9a4150a12 100644 --- a/docs/docs/melonjs/audio/pause.html +++ b/docs/docs/melonjs/audio/pause.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/pauseTrack.html b/docs/docs/melonjs/audio/pauseTrack.html index 6c9e2792f..320047a65 100644 --- a/docs/docs/melonjs/audio/pauseTrack.html +++ b/docs/docs/melonjs/audio/pauseTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/play.html b/docs/docs/melonjs/audio/play.html index 4147360b9..7f218dc57 100644 --- a/docs/docs/melonjs/audio/play.html +++ b/docs/docs/melonjs/audio/play.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/playTrack.html b/docs/docs/melonjs/audio/playTrack.html index adceeefe7..cbcc193fe 100644 --- a/docs/docs/melonjs/audio/playTrack.html +++ b/docs/docs/melonjs/audio/playTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/rate.html b/docs/docs/melonjs/audio/rate.html index 0e39427d6..d4ec8652b 100644 --- a/docs/docs/melonjs/audio/rate.html +++ b/docs/docs/melonjs/audio/rate.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/resume.html b/docs/docs/melonjs/audio/resume.html index 88b746a3b..e2aef4c8f 100644 --- a/docs/docs/melonjs/audio/resume.html +++ b/docs/docs/melonjs/audio/resume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/resumeTrack.html b/docs/docs/melonjs/audio/resumeTrack.html index c6c73e33f..820ec1503 100644 --- a/docs/docs/melonjs/audio/resumeTrack.html +++ b/docs/docs/melonjs/audio/resumeTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/seek.html b/docs/docs/melonjs/audio/seek.html index ffefc6f56..f004db7c4 100644 --- a/docs/docs/melonjs/audio/seek.html +++ b/docs/docs/melonjs/audio/seek.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/setVolume.html b/docs/docs/melonjs/audio/setVolume.html index 6ec1b53b6..48444bf37 100644 --- a/docs/docs/melonjs/audio/setVolume.html +++ b/docs/docs/melonjs/audio/setVolume.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/stop.html b/docs/docs/melonjs/audio/stop.html index 44674b49c..1c724ce9f 100644 --- a/docs/docs/melonjs/audio/stop.html +++ b/docs/docs/melonjs/audio/stop.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/stopTrack.html b/docs/docs/melonjs/audio/stopTrack.html index 0aed13ff3..1f627c87f 100644 --- a/docs/docs/melonjs/audio/stopTrack.html +++ b/docs/docs/melonjs/audio/stopTrack.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unload.html b/docs/docs/melonjs/audio/unload.html index 6dfae776a..825237101 100644 --- a/docs/docs/melonjs/audio/unload.html +++ b/docs/docs/melonjs/audio/unload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unloadAll.html b/docs/docs/melonjs/audio/unloadAll.html index 1a2e14993..c066dd162 100644 --- a/docs/docs/melonjs/audio/unloadAll.html +++ b/docs/docs/melonjs/audio/unloadAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unmute.html b/docs/docs/melonjs/audio/unmute.html index a1e65ed47..13954fb75 100644 --- a/docs/docs/melonjs/audio/unmute.html +++ b/docs/docs/melonjs/audio/unmute.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio/unmuteAll.html b/docs/docs/melonjs/audio/unmuteAll.html index a8d53054e..aba3cac74 100644 --- a/docs/docs/melonjs/audio/unmuteAll.html +++ b/docs/docs/melonjs/audio/unmuteAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/boot.html b/docs/docs/melonjs/boot.html index b17d6393d..d3a231b0c 100644 --- a/docs/docs/melonjs/boot.html +++ b/docs/docs/melonjs/boot.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/collision.html b/docs/docs/melonjs/collision.html index 18b08a882..99af46339 100644 --- a/docs/docs/melonjs/collision.html +++ b/docs/docs/melonjs/collision.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/collision/types.html b/docs/docs/melonjs/collision/types.html index 268c541fe..bbd3b9314 100644 --- a/docs/docs/melonjs/collision/types.html +++ b/docs/docs/melonjs/collision/types.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/consoleHeader.html b/docs/docs/melonjs/consoleHeader.html index 2780cbbd4..f461e21f8 100644 --- a/docs/docs/melonjs/consoleHeader.html +++ b/docs/docs/melonjs/consoleHeader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device.html b/docs/docs/melonjs/device.html index 5e9b6b44f..2dc3335b3 100644 --- a/docs/docs/melonjs/device.html +++ b/docs/docs/melonjs/device.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/enableSwipe.html b/docs/docs/melonjs/device/enableSwipe.html index 2f0ed25c0..9529cede9 100644 --- a/docs/docs/melonjs/device/enableSwipe.html +++ b/docs/docs/melonjs/device/enableSwipe.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/exitFullscreen.html b/docs/docs/melonjs/device/exitFullscreen.html index 0cc7440f9..573eeb8de 100644 --- a/docs/docs/melonjs/device/exitFullscreen.html +++ b/docs/docs/melonjs/device/exitFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/focus.html b/docs/docs/melonjs/device/focus.html index 32afb1356..17e309a99 100644 --- a/docs/docs/melonjs/device/focus.html +++ b/docs/docs/melonjs/device/focus.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getElement.html b/docs/docs/melonjs/device/getElement.html index 89acc383f..1d7659399 100644 --- a/docs/docs/melonjs/device/getElement.html +++ b/docs/docs/melonjs/device/getElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getElementBounds.html b/docs/docs/melonjs/device/getElementBounds.html index f55f6f262..96f579097 100644 --- a/docs/docs/melonjs/device/getElementBounds.html +++ b/docs/docs/melonjs/device/getElementBounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getParentBounds.html b/docs/docs/melonjs/device/getParentBounds.html index 876fa98a2..9ab457216 100644 --- a/docs/docs/melonjs/device/getParentBounds.html +++ b/docs/docs/melonjs/device/getParentBounds.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getParentElement.html b/docs/docs/melonjs/device/getParentElement.html index 1b51e5f4c..d8ecee0d7 100644 --- a/docs/docs/melonjs/device/getParentElement.html +++ b/docs/docs/melonjs/device/getParentElement.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getScreenOrientation.html b/docs/docs/melonjs/device/getScreenOrientation.html index 745a2beed..c413d3111 100644 --- a/docs/docs/melonjs/device/getScreenOrientation.html +++ b/docs/docs/melonjs/device/getScreenOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/getStorage.html b/docs/docs/melonjs/device/getStorage.html index 04edc75af..e378d8116 100644 --- a/docs/docs/melonjs/device/getStorage.html +++ b/docs/docs/melonjs/device/getStorage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isFullscreen.html b/docs/docs/melonjs/device/isFullscreen.html index 5b1589028..fc8e534f8 100644 --- a/docs/docs/melonjs/device/isFullscreen.html +++ b/docs/docs/melonjs/device/isFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isLandscape.html b/docs/docs/melonjs/device/isLandscape.html index 1f87a42e6..5b76532cb 100644 --- a/docs/docs/melonjs/device/isLandscape.html +++ b/docs/docs/melonjs/device/isLandscape.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isPortrait.html b/docs/docs/melonjs/device/isPortrait.html index ad3dc4a87..9f4aa3611 100644 --- a/docs/docs/melonjs/device/isPortrait.html +++ b/docs/docs/melonjs/device/isPortrait.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/isWebGLSupported.html b/docs/docs/melonjs/device/isWebGLSupported.html index 2da0f2ff5..67c95560a 100644 --- a/docs/docs/melonjs/device/isWebGLSupported.html +++ b/docs/docs/melonjs/device/isWebGLSupported.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/lockOrientation.html b/docs/docs/melonjs/device/lockOrientation.html index a0d0fa355..cd40141a4 100644 --- a/docs/docs/melonjs/device/lockOrientation.html +++ b/docs/docs/melonjs/device/lockOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/onReady.html b/docs/docs/melonjs/device/onReady.html index 992be1abb..406aa7a7b 100644 --- a/docs/docs/melonjs/device/onReady.html +++ b/docs/docs/melonjs/device/onReady.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/platform.html b/docs/docs/melonjs/device/platform.html index ac0f442e5..67551c7fb 100644 --- a/docs/docs/melonjs/device/platform.html +++ b/docs/docs/melonjs/device/platform.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/requestFullscreen.html b/docs/docs/melonjs/device/requestFullscreen.html index 33eeeb263..45c7eba34 100644 --- a/docs/docs/melonjs/device/requestFullscreen.html +++ b/docs/docs/melonjs/device/requestFullscreen.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unlockOrientation.html b/docs/docs/melonjs/device/unlockOrientation.html index eb509bce7..5cd35a526 100644 --- a/docs/docs/melonjs/device/unlockOrientation.html +++ b/docs/docs/melonjs/device/unlockOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unwatchAccelerometer.html b/docs/docs/melonjs/device/unwatchAccelerometer.html index b700c72f5..889d2f1a6 100644 --- a/docs/docs/melonjs/device/unwatchAccelerometer.html +++ b/docs/docs/melonjs/device/unwatchAccelerometer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/unwatchDeviceOrientation.html b/docs/docs/melonjs/device/unwatchDeviceOrientation.html index 24d345e90..d79670f07 100644 --- a/docs/docs/melonjs/device/unwatchDeviceOrientation.html +++ b/docs/docs/melonjs/device/unwatchDeviceOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/vibrate.html b/docs/docs/melonjs/device/vibrate.html index 7869442b3..a7350d74c 100644 --- a/docs/docs/melonjs/device/vibrate.html +++ b/docs/docs/melonjs/device/vibrate.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/watchAccelerometer.html b/docs/docs/melonjs/device/watchAccelerometer.html index 0f842a409..040d61b6c 100644 --- a/docs/docs/melonjs/device/watchAccelerometer.html +++ b/docs/docs/melonjs/device/watchAccelerometer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/device/watchDeviceOrientation.html b/docs/docs/melonjs/device/watchDeviceOrientation.html index 48cd3c4de..9f3206bd8 100644 --- a/docs/docs/melonjs/device/watchDeviceOrientation.html +++ b/docs/docs/melonjs/device/watchDeviceOrientation.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event.html b/docs/docs/melonjs/event.html index be04d5f79..2c2ad11f1 100644 --- a/docs/docs/melonjs/event.html +++ b/docs/docs/melonjs/event.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/emit.html b/docs/docs/melonjs/event/emit.html index 75b1a6505..868f8f49c 100644 --- a/docs/docs/melonjs/event/emit.html +++ b/docs/docs/melonjs/event/emit.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/off.html b/docs/docs/melonjs/event/off.html index 25d54d30e..bed10fb69 100644 --- a/docs/docs/melonjs/event/off.html +++ b/docs/docs/melonjs/event/off.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/on.html b/docs/docs/melonjs/event/on.html index 422243a21..ea2255922 100644 --- a/docs/docs/melonjs/event/on.html +++ b/docs/docs/melonjs/event/on.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/event/once.html b/docs/docs/melonjs/event/once.html index e2a706e4e..392380938 100644 --- a/docs/docs/melonjs/event/once.html +++ b/docs/docs/melonjs/event/once.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/fetchData.html b/docs/docs/melonjs/fetchData.html index 02d74ff0d..ba766e42f 100644 --- a/docs/docs/melonjs/fetchData.html +++ b/docs/docs/melonjs/fetchData.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/game.html b/docs/docs/melonjs/game.html index efd8d7365..63e98c657 100644 --- a/docs/docs/melonjs/game.html +++ b/docs/docs/melonjs/game.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/hasVideoFormat.html b/docs/docs/melonjs/hasVideoFormat.html index e8bc82104..74242b788 100644 --- a/docs/docs/melonjs/hasVideoFormat.html +++ b/docs/docs/melonjs/hasVideoFormat.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input.html b/docs/docs/melonjs/input.html index c13850e25..eefd733a4 100644 --- a/docs/docs/melonjs/input.html +++ b/docs/docs/melonjs/input.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD.html b/docs/docs/melonjs/input/GAMEPAD.html index 3ebc42d8c..439f98ee0 100644 --- a/docs/docs/melonjs/input/GAMEPAD.html +++ b/docs/docs/melonjs/input/GAMEPAD.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD/AXES.html b/docs/docs/melonjs/input/GAMEPAD/AXES.html index c8d7d97b2..0c640130b 100644 --- a/docs/docs/melonjs/input/GAMEPAD/AXES.html +++ b/docs/docs/melonjs/input/GAMEPAD/AXES.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html b/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html index 68fec3414..a953053bd 100644 --- a/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html +++ b/docs/docs/melonjs/input/GAMEPAD/BUTTONS.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/KEY.html b/docs/docs/melonjs/input/KEY.html index 7b2fa13b9..9cd869744 100644 --- a/docs/docs/melonjs/input/KEY.html +++ b/docs/docs/melonjs/input/KEY.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindGamepad.html b/docs/docs/melonjs/input/bindGamepad.html index 1bca3f9d2..16d134a0f 100644 --- a/docs/docs/melonjs/input/bindGamepad.html +++ b/docs/docs/melonjs/input/bindGamepad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindKey.html b/docs/docs/melonjs/input/bindKey.html index 0375fc714..244dbef56 100644 --- a/docs/docs/melonjs/input/bindKey.html +++ b/docs/docs/melonjs/input/bindKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/bindPointer.html b/docs/docs/melonjs/input/bindPointer.html index 615045316..19331593f 100644 --- a/docs/docs/melonjs/input/bindPointer.html +++ b/docs/docs/melonjs/input/bindPointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/exitPointerLock.html b/docs/docs/melonjs/input/exitPointerLock.html index 8ec78bb6d..7eb7658e4 100644 --- a/docs/docs/melonjs/input/exitPointerLock.html +++ b/docs/docs/melonjs/input/exitPointerLock.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/getBindingKey.html b/docs/docs/melonjs/input/getBindingKey.html index d77e5e252..fb6033071 100644 --- a/docs/docs/melonjs/input/getBindingKey.html +++ b/docs/docs/melonjs/input/getBindingKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/globalToLocal.html b/docs/docs/melonjs/input/globalToLocal.html index 7e8e3a8a8..b73c839f1 100644 --- a/docs/docs/melonjs/input/globalToLocal.html +++ b/docs/docs/melonjs/input/globalToLocal.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/hasActiveEvents.html b/docs/docs/melonjs/input/hasActiveEvents.html index 14ea073c4..57252fd4c 100644 --- a/docs/docs/melonjs/input/hasActiveEvents.html +++ b/docs/docs/melonjs/input/hasActiveEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/hasRegisteredEvents.html b/docs/docs/melonjs/input/hasRegisteredEvents.html index 268168af3..678b9ab15 100644 --- a/docs/docs/melonjs/input/hasRegisteredEvents.html +++ b/docs/docs/melonjs/input/hasRegisteredEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/isKeyPressed.html b/docs/docs/melonjs/input/isKeyPressed.html index 43e85579a..2488852fe 100644 --- a/docs/docs/melonjs/input/isKeyPressed.html +++ b/docs/docs/melonjs/input/isKeyPressed.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/keyStatus.html b/docs/docs/melonjs/input/keyStatus.html index 81b351b2d..bdf429537 100644 --- a/docs/docs/melonjs/input/keyStatus.html +++ b/docs/docs/melonjs/input/keyStatus.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/registerPointerEvent.html b/docs/docs/melonjs/input/registerPointerEvent.html index 4f44d6ebe..abd9dfe1d 100644 --- a/docs/docs/melonjs/input/registerPointerEvent.html +++ b/docs/docs/melonjs/input/registerPointerEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/releaseAllPointerEvents.html b/docs/docs/melonjs/input/releaseAllPointerEvents.html index 728245290..dfe2c18b8 100644 --- a/docs/docs/melonjs/input/releaseAllPointerEvents.html +++ b/docs/docs/melonjs/input/releaseAllPointerEvents.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/releasePointerEvent.html b/docs/docs/melonjs/input/releasePointerEvent.html index 1f64fedb4..1c4732951 100644 --- a/docs/docs/melonjs/input/releasePointerEvent.html +++ b/docs/docs/melonjs/input/releasePointerEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/requestPointerLock.html b/docs/docs/melonjs/input/requestPointerLock.html index 3f9fef577..f59938a57 100644 --- a/docs/docs/melonjs/input/requestPointerLock.html +++ b/docs/docs/melonjs/input/requestPointerLock.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/setGamepadDeadzone.html b/docs/docs/melonjs/input/setGamepadDeadzone.html index 1e6c2ca51..6a9f7b4fe 100644 --- a/docs/docs/melonjs/input/setGamepadDeadzone.html +++ b/docs/docs/melonjs/input/setGamepadDeadzone.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/setTouchAction.html b/docs/docs/melonjs/input/setTouchAction.html index 2977aaef9..7c3769e81 100644 --- a/docs/docs/melonjs/input/setTouchAction.html +++ b/docs/docs/melonjs/input/setTouchAction.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/triggerKeyEvent.html b/docs/docs/melonjs/input/triggerKeyEvent.html index 8d22a2457..11e0324b7 100644 --- a/docs/docs/melonjs/input/triggerKeyEvent.html +++ b/docs/docs/melonjs/input/triggerKeyEvent.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindGamepad.html b/docs/docs/melonjs/input/unbindGamepad.html index ebf9dd05d..40f255ff3 100644 --- a/docs/docs/melonjs/input/unbindGamepad.html +++ b/docs/docs/melonjs/input/unbindGamepad.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindKey.html b/docs/docs/melonjs/input/unbindKey.html index 21d8b9ec8..71417cf6e 100644 --- a/docs/docs/melonjs/input/unbindKey.html +++ b/docs/docs/melonjs/input/unbindKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unbindPointer.html b/docs/docs/melonjs/input/unbindPointer.html index a6b278189..4f57592ea 100644 --- a/docs/docs/melonjs/input/unbindPointer.html +++ b/docs/docs/melonjs/input/unbindPointer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/input/unlockKey.html b/docs/docs/melonjs/input/unlockKey.html index 0bf7262b0..1c61da35a 100644 --- a/docs/docs/melonjs/input/unlockKey.html +++ b/docs/docs/melonjs/input/unlockKey.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/level.html b/docs/docs/melonjs/level.html index 023b4a428..061cae3bd 100644 --- a/docs/docs/melonjs/level.html +++ b/docs/docs/melonjs/level.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader.html b/docs/docs/melonjs/loader.html index c3d6f45be..f08456170 100644 --- a/docs/docs/melonjs/loader.html +++ b/docs/docs/melonjs/loader.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/Asset.html b/docs/docs/melonjs/loader/Asset.html index 3d969b77b..7c83d0599 100644 --- a/docs/docs/melonjs/loader/Asset.html +++ b/docs/docs/melonjs/loader/Asset.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getBinary.html b/docs/docs/melonjs/loader/getBinary.html index 2fee4c687..b1e6bb1c2 100644 --- a/docs/docs/melonjs/loader/getBinary.html +++ b/docs/docs/melonjs/loader/getBinary.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getImage.html b/docs/docs/melonjs/loader/getImage.html index d3448b33a..2faefd440 100644 --- a/docs/docs/melonjs/loader/getImage.html +++ b/docs/docs/melonjs/loader/getImage.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getJSON.html b/docs/docs/melonjs/loader/getJSON.html index 2ed8b1a24..809efa94b 100644 --- a/docs/docs/melonjs/loader/getJSON.html +++ b/docs/docs/melonjs/loader/getJSON.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getTMX.html b/docs/docs/melonjs/loader/getTMX.html index f5e941130..dd8eff3c1 100644 --- a/docs/docs/melonjs/loader/getTMX.html +++ b/docs/docs/melonjs/loader/getTMX.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/getVideo.html b/docs/docs/melonjs/loader/getVideo.html index 711807c89..c45eeac24 100644 --- a/docs/docs/melonjs/loader/getVideo.html +++ b/docs/docs/melonjs/loader/getVideo.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/load.html b/docs/docs/melonjs/loader/load.html index 4770c396e..ad17b88ce 100644 --- a/docs/docs/melonjs/loader/load.html +++ b/docs/docs/melonjs/loader/load.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/preload.html b/docs/docs/melonjs/loader/preload.html index 4d1330882..0ac9396fc 100644 --- a/docs/docs/melonjs/loader/preload.html +++ b/docs/docs/melonjs/loader/preload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/reload.html b/docs/docs/melonjs/loader/reload.html index 507598e59..bc3f6dab7 100644 --- a/docs/docs/melonjs/loader/reload.html +++ b/docs/docs/melonjs/loader/reload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/setBaseURL.html b/docs/docs/melonjs/loader/setBaseURL.html index 0ee8a973e..051cadc69 100644 --- a/docs/docs/melonjs/loader/setBaseURL.html +++ b/docs/docs/melonjs/loader/setBaseURL.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/setParser.html b/docs/docs/melonjs/loader/setParser.html index ed96e41be..7b8593df1 100644 --- a/docs/docs/melonjs/loader/setParser.html +++ b/docs/docs/melonjs/loader/setParser.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/unload.html b/docs/docs/melonjs/loader/unload.html index f621f940c..2a7a8b078 100644 --- a/docs/docs/melonjs/loader/unload.html +++ b/docs/docs/melonjs/loader/unload.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/loader/unloadAll.html b/docs/docs/melonjs/loader/unloadAll.html index 4e3cf4f50..ffbb0f394 100644 --- a/docs/docs/melonjs/loader/unloadAll.html +++ b/docs/docs/melonjs/loader/unloadAll.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/onresize.html b/docs/docs/melonjs/onresize.html index 1f54170a6..679b338fb 100644 --- a/docs/docs/melonjs/onresize.html +++ b/docs/docs/melonjs/onresize.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin.html b/docs/docs/melonjs/plugin.html index 1306ba3e9..c9a4514f4 100644 --- a/docs/docs/melonjs/plugin.html +++ b/docs/docs/melonjs/plugin.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/Base.html b/docs/docs/melonjs/plugin/Base.html index 38158deed..9048f451c 100644 --- a/docs/docs/melonjs/plugin/Base.html +++ b/docs/docs/melonjs/plugin/Base.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/BasePlugin.html b/docs/docs/melonjs/plugin/BasePlugin.html index 120c985ca..8c912b9a2 100644 --- a/docs/docs/melonjs/plugin/BasePlugin.html +++ b/docs/docs/melonjs/plugin/BasePlugin.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/get.html b/docs/docs/melonjs/plugin/get.html index 89d6dc3d6..1e3749eef 100644 --- a/docs/docs/melonjs/plugin/get.html +++ b/docs/docs/melonjs/plugin/get.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/patch.html b/docs/docs/melonjs/plugin/patch.html index 56f9bc648..ee161914e 100644 --- a/docs/docs/melonjs/plugin/patch.html +++ b/docs/docs/melonjs/plugin/patch.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/plugin/register.html b/docs/docs/melonjs/plugin/register.html index c2ba6ad55..c03c464ca 100644 --- a/docs/docs/melonjs/plugin/register.html +++ b/docs/docs/melonjs/plugin/register.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/pool.html b/docs/docs/melonjs/pool.html index b4390e0f6..6904728ce 100644 --- a/docs/docs/melonjs/pool.html +++ b/docs/docs/melonjs/pool.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/pow.html b/docs/docs/melonjs/pow.html index b463b450d..4982a71de 100644 --- a/docs/docs/melonjs/pow.html +++ b/docs/docs/melonjs/pow.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/save.html b/docs/docs/melonjs/save.html index 18b119f13..e470adcde 100644 --- a/docs/docs/melonjs/save.html +++ b/docs/docs/melonjs/save.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/scale.html b/docs/docs/melonjs/scale.html index 92f9827f0..dd50e6bcf 100644 --- a/docs/docs/melonjs/scale.html +++ b/docs/docs/melonjs/scale.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/application.js.html b/docs/docs/melonjs/src/application/application.js.html index 779d10845..2460e47e3 100644 --- a/docs/docs/melonjs/src/application/application.js.html +++ b/docs/docs/melonjs/src/application/application.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/header.js.html b/docs/docs/melonjs/src/application/header.js.html index c332b1c70..6abbd8d48 100644 --- a/docs/docs/melonjs/src/application/header.js.html +++ b/docs/docs/melonjs/src/application/header.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/resize.js.html b/docs/docs/melonjs/src/application/resize.js.html index d298a9663..0d4c2436b 100644 --- a/docs/docs/melonjs/src/application/resize.js.html +++ b/docs/docs/melonjs/src/application/resize.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/application/settings.js.html b/docs/docs/melonjs/src/application/settings.js.html index ce00b2bed..565000590 100644 --- a/docs/docs/melonjs/src/application/settings.js.html +++ b/docs/docs/melonjs/src/application/settings.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/audio/audio.js.html b/docs/docs/melonjs/src/audio/audio.js.html index bd8cda74c..288a7ae3e 100644 --- a/docs/docs/melonjs/src/audio/audio.js.html +++ b/docs/docs/melonjs/src/audio/audio.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/camera/camera2d.js.html b/docs/docs/melonjs/src/camera/camera2d.js.html index 4eb1171bb..c7c05e676 100644 --- a/docs/docs/melonjs/src/camera/camera2d.js.html +++ b/docs/docs/melonjs/src/camera/camera2d.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/const.js.html b/docs/docs/melonjs/src/const.js.html index 627c8632a..2f9381112 100644 --- a/docs/docs/melonjs/src/const.js.html +++ b/docs/docs/melonjs/src/const.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/ellipse.js.html b/docs/docs/melonjs/src/geometries/ellipse.js.html index 08c267bcc..025c8c8e8 100644 --- a/docs/docs/melonjs/src/geometries/ellipse.js.html +++ b/docs/docs/melonjs/src/geometries/ellipse.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/line.js.html b/docs/docs/melonjs/src/geometries/line.js.html index cfdcb2995..98c0937c9 100644 --- a/docs/docs/melonjs/src/geometries/line.js.html +++ b/docs/docs/melonjs/src/geometries/line.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/path2d.js.html b/docs/docs/melonjs/src/geometries/path2d.js.html index d3b3abd90..45287c27a 100644 --- a/docs/docs/melonjs/src/geometries/path2d.js.html +++ b/docs/docs/melonjs/src/geometries/path2d.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/point.js.html b/docs/docs/melonjs/src/geometries/point.js.html index b0ce476ca..7b6168a65 100644 --- a/docs/docs/melonjs/src/geometries/point.js.html +++ b/docs/docs/melonjs/src/geometries/point.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/poly.js.html b/docs/docs/melonjs/src/geometries/poly.js.html index 02c6a3660..cb8bd73f2 100644 --- a/docs/docs/melonjs/src/geometries/poly.js.html +++ b/docs/docs/melonjs/src/geometries/poly.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/rectangle.js.html b/docs/docs/melonjs/src/geometries/rectangle.js.html index 78e24fe57..d7fa2755c 100644 --- a/docs/docs/melonjs/src/geometries/rectangle.js.html +++ b/docs/docs/melonjs/src/geometries/rectangle.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/roundrect.js.html b/docs/docs/melonjs/src/geometries/roundrect.js.html index 6da574862..683ebaae3 100644 --- a/docs/docs/melonjs/src/geometries/roundrect.js.html +++ b/docs/docs/melonjs/src/geometries/roundrect.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/geometries/toarccanvas.js.html b/docs/docs/melonjs/src/geometries/toarccanvas.js.html index 37e460de5..c10fede7d 100644 --- a/docs/docs/melonjs/src/geometries/toarccanvas.js.html +++ b/docs/docs/melonjs/src/geometries/toarccanvas.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/index.js.html b/docs/docs/melonjs/src/index.js.html index d0a3a35f3..d0cbaaf2d 100644 --- a/docs/docs/melonjs/src/index.js.html +++ b/docs/docs/melonjs/src/index.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/gamepad.js.html b/docs/docs/melonjs/src/input/gamepad.js.html index beaacc0f2..a89294cae 100644 --- a/docs/docs/melonjs/src/input/gamepad.js.html +++ b/docs/docs/melonjs/src/input/gamepad.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/input.js.html b/docs/docs/melonjs/src/input/input.js.html index a044113aa..4a3e20351 100644 --- a/docs/docs/melonjs/src/input/input.js.html +++ b/docs/docs/melonjs/src/input/input.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/keyboard.js.html b/docs/docs/melonjs/src/input/keyboard.js.html index 865277c0b..d40a17471 100644 --- a/docs/docs/melonjs/src/input/keyboard.js.html +++ b/docs/docs/melonjs/src/input/keyboard.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/pointer.js.html b/docs/docs/melonjs/src/input/pointer.js.html index 5f723a52b..fe3a81cb8 100644 --- a/docs/docs/melonjs/src/input/pointer.js.html +++ b/docs/docs/melonjs/src/input/pointer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/input/pointerevent.js.html b/docs/docs/melonjs/src/input/pointerevent.js.html index 3214b8e52..1d5b138b6 100644 --- a/docs/docs/melonjs/src/input/pointerevent.js.html +++ b/docs/docs/melonjs/src/input/pointerevent.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/lang/console.js.html b/docs/docs/melonjs/src/lang/console.js.html index 85999f3e1..79613b5d5 100644 --- a/docs/docs/melonjs/src/lang/console.js.html +++ b/docs/docs/melonjs/src/lang/console.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/lang/deprecated.js.html b/docs/docs/melonjs/src/lang/deprecated.js.html index d8e9eeb02..ca525775c 100644 --- a/docs/docs/melonjs/src/lang/deprecated.js.html +++ b/docs/docs/melonjs/src/lang/deprecated.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/level.js.html b/docs/docs/melonjs/src/level/level.js.html index 225afb3f4..4c24a3f47 100644 --- a/docs/docs/melonjs/src/level/level.js.html +++ b/docs/docs/melonjs/src/level/level.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html b/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html index bbee6eab9..afea05b1d 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXGroup.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html b/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html index f04e7cb4e..97ae0eee9 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXLayer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXObject.js.html b/docs/docs/melonjs/src/level/tiled/TMXObject.js.html index 7955820cc..8a1d733a8 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXObject.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXObject.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTile.js.html b/docs/docs/melonjs/src/level/tiled/TMXTile.js.html index 998749669..5209e309b 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTile.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTile.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html b/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html index 8616c8ab5..1e266885b 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTileMap.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html b/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html index b1adca0a9..c02d6736a 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTileset.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html b/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html index 1678bad12..b07fa6949 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXTilesetGroup.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html b/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html index da05d1a51..9a13b09e0 100644 --- a/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html +++ b/docs/docs/melonjs/src/level/tiled/TMXUtils.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/constants.js.html b/docs/docs/melonjs/src/level/tiled/constants.js.html index 07bea4ba7..212550bb8 100644 --- a/docs/docs/melonjs/src/level/tiled/constants.js.html +++ b/docs/docs/melonjs/src/level/tiled/constants.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html index cf593aa78..1e1e5fd14 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXHexagonalRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html index 17ecd706d..e03ad9cf4 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXIsometricRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html index cae130f34..4241cc791 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXOrthogonalRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html index 4ade4d0a8..5fa764adf 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html b/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html index a4bea4a6e..ef93a4549 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/TMXStaggeredRenderer.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html b/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html index 33d20a9c7..ab9ce6a79 100644 --- a/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html +++ b/docs/docs/melonjs/src/level/tiled/renderer/autodetect.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/cache.js.html b/docs/docs/melonjs/src/loader/cache.js.html index c1f882403..d2344b9a8 100644 --- a/docs/docs/melonjs/src/loader/cache.js.html +++ b/docs/docs/melonjs/src/loader/cache.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/loader.js.html b/docs/docs/melonjs/src/loader/loader.js.html index b8b182f75..1c75b45cd 100644 --- a/docs/docs/melonjs/src/loader/loader.js.html +++ b/docs/docs/melonjs/src/loader/loader.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/loadingscreen.js.html b/docs/docs/melonjs/src/loader/loadingscreen.js.html index 83052d10d..a56cac153 100644 --- a/docs/docs/melonjs/src/loader/loadingscreen.js.html +++ b/docs/docs/melonjs/src/loader/loadingscreen.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/binary.js.html b/docs/docs/melonjs/src/loader/parsers/binary.js.html index 0cc46095a..f6a4350a1 100644 --- a/docs/docs/melonjs/src/loader/parsers/binary.js.html +++ b/docs/docs/melonjs/src/loader/parsers/binary.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html b/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html index be90e06e1..f34a5a315 100644 --- a/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html +++ b/docs/docs/melonjs/src/loader/parsers/fetchdata.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/fontface.js.html b/docs/docs/melonjs/src/loader/parsers/fontface.js.html index 1ecc7a6c6..d2a31de01 100644 --- a/docs/docs/melonjs/src/loader/parsers/fontface.js.html +++ b/docs/docs/melonjs/src/loader/parsers/fontface.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/image.js.html b/docs/docs/melonjs/src/loader/parsers/image.js.html index 4ddff9cdb..3b805f03b 100644 --- a/docs/docs/melonjs/src/loader/parsers/image.js.html +++ b/docs/docs/melonjs/src/loader/parsers/image.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/json.js.html b/docs/docs/melonjs/src/loader/parsers/json.js.html index 540793db0..160ada92b 100644 --- a/docs/docs/melonjs/src/loader/parsers/json.js.html +++ b/docs/docs/melonjs/src/loader/parsers/json.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/script.js.html b/docs/docs/melonjs/src/loader/parsers/script.js.html index 557421f89..4211c940c 100644 --- a/docs/docs/melonjs/src/loader/parsers/script.js.html +++ b/docs/docs/melonjs/src/loader/parsers/script.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/tmx.js.html b/docs/docs/melonjs/src/loader/parsers/tmx.js.html index 9aed5728d..e04008ef3 100644 --- a/docs/docs/melonjs/src/loader/parsers/tmx.js.html +++ b/docs/docs/melonjs/src/loader/parsers/tmx.js.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/src/loader/parsers/video.js.html b/docs/docs/melonjs/src/loader/parsers/video.js.html index 31f9b1984..b48ba662c 100644 --- a/docs/docs/melonjs/src/loader/parsers/video.js.html +++ b/docs/docs/melonjs/src/loader/parsers/video.js.html @@ -1,5 +1,5 @@ - + @@ -432,6 +432,10 @@ 90 +
                            • + 91 +
                            • +
                              import { videoList } from "../cache.js";
                               import { fetchData } from "./fetchdata.js";
                              @@ -497,7 +501,8 @@
                                   }
                               
                                   if (typeof onload === "function") {
                              -        if (data.stream === true) {
                              +        // some mobile browser (e.g. safari) won't emit the canplay event if autoplay is disabled
                              +        if (data.stream === true || data.autoplay === false) {
                                           videoElement.onloadedmetadata = () => {
                                               if (typeof onload === "function") {
                                                   onload();
                              diff --git a/docs/docs/melonjs/src/loader/settings.js.html b/docs/docs/melonjs/src/loader/settings.js.html
                              index f6e04dff5..0c2482788 100644
                              --- a/docs/docs/melonjs/src/loader/settings.js.html
                              +++ b/docs/docs/melonjs/src/loader/settings.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/color.js.html b/docs/docs/melonjs/src/math/color.js.html
                              index fc9b43c4a..f5d22b6e5 100644
                              --- a/docs/docs/melonjs/src/math/color.js.html
                              +++ b/docs/docs/melonjs/src/math/color.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/math.js.html b/docs/docs/melonjs/src/math/math.js.html
                              index 265b8da0d..6cf9bf079 100644
                              --- a/docs/docs/melonjs/src/math/math.js.html
                              +++ b/docs/docs/melonjs/src/math/math.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/matrix2.js.html b/docs/docs/melonjs/src/math/matrix2.js.html
                              index 8b5dbc679..790969373 100644
                              --- a/docs/docs/melonjs/src/math/matrix2.js.html
                              +++ b/docs/docs/melonjs/src/math/matrix2.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/matrix3.js.html b/docs/docs/melonjs/src/math/matrix3.js.html
                              index e3032a9ff..62b403f2e 100644
                              --- a/docs/docs/melonjs/src/math/matrix3.js.html
                              +++ b/docs/docs/melonjs/src/math/matrix3.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/observable_vector2.js.html b/docs/docs/melonjs/src/math/observable_vector2.js.html
                              index 38afbedc8..800d049fb 100644
                              --- a/docs/docs/melonjs/src/math/observable_vector2.js.html
                              +++ b/docs/docs/melonjs/src/math/observable_vector2.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/observable_vector3.js.html b/docs/docs/melonjs/src/math/observable_vector3.js.html
                              index 140e428d9..ab0defedc 100644
                              --- a/docs/docs/melonjs/src/math/observable_vector3.js.html
                              +++ b/docs/docs/melonjs/src/math/observable_vector3.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/vector2.js.html b/docs/docs/melonjs/src/math/vector2.js.html
                              index cb316521e..0904b8935 100644
                              --- a/docs/docs/melonjs/src/math/vector2.js.html
                              +++ b/docs/docs/melonjs/src/math/vector2.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/math/vector3.js.html b/docs/docs/melonjs/src/math/vector3.js.html
                              index 88eb3a88a..e71a73838 100644
                              --- a/docs/docs/melonjs/src/math/vector3.js.html
                              +++ b/docs/docs/melonjs/src/math/vector3.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/particles/emitter.js.html b/docs/docs/melonjs/src/particles/emitter.js.html
                              index 013d7d852..d9850976e 100644
                              --- a/docs/docs/melonjs/src/particles/emitter.js.html
                              +++ b/docs/docs/melonjs/src/particles/emitter.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/particles/particle.js.html b/docs/docs/melonjs/src/particles/particle.js.html
                              index fbe577218..33885e35d 100644
                              --- a/docs/docs/melonjs/src/particles/particle.js.html
                              +++ b/docs/docs/melonjs/src/particles/particle.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/particles/settings.js.html b/docs/docs/melonjs/src/particles/settings.js.html
                              index 7dfcf3537..d437bc3b0 100644
                              --- a/docs/docs/melonjs/src/particles/settings.js.html
                              +++ b/docs/docs/melonjs/src/particles/settings.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/body.js.html b/docs/docs/melonjs/src/physics/body.js.html
                              index a298858d0..30519c077 100644
                              --- a/docs/docs/melonjs/src/physics/body.js.html
                              +++ b/docs/docs/melonjs/src/physics/body.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/bounds.js.html b/docs/docs/melonjs/src/physics/bounds.js.html
                              index ba1e6a95b..1d17d802f 100644
                              --- a/docs/docs/melonjs/src/physics/bounds.js.html
                              +++ b/docs/docs/melonjs/src/physics/bounds.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/collision.js.html b/docs/docs/melonjs/src/physics/collision.js.html
                              index 9f527b20f..692155e3c 100644
                              --- a/docs/docs/melonjs/src/physics/collision.js.html
                              +++ b/docs/docs/melonjs/src/physics/collision.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/detector.js.html b/docs/docs/melonjs/src/physics/detector.js.html
                              index cf1598f4e..6fff1aa36 100644
                              --- a/docs/docs/melonjs/src/physics/detector.js.html
                              +++ b/docs/docs/melonjs/src/physics/detector.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/quadtree.js.html b/docs/docs/melonjs/src/physics/quadtree.js.html
                              index b573bb17b..0fe2621ea 100644
                              --- a/docs/docs/melonjs/src/physics/quadtree.js.html
                              +++ b/docs/docs/melonjs/src/physics/quadtree.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/response.js.html b/docs/docs/melonjs/src/physics/response.js.html
                              index 288242569..fc72b573c 100644
                              --- a/docs/docs/melonjs/src/physics/response.js.html
                              +++ b/docs/docs/melonjs/src/physics/response.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/sat.js.html b/docs/docs/melonjs/src/physics/sat.js.html
                              index 71a41fa16..24f31d7eb 100644
                              --- a/docs/docs/melonjs/src/physics/sat.js.html
                              +++ b/docs/docs/melonjs/src/physics/sat.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/physics/world.js.html b/docs/docs/melonjs/src/physics/world.js.html
                              index 5bd3a0325..7e5909374 100644
                              --- a/docs/docs/melonjs/src/physics/world.js.html
                              +++ b/docs/docs/melonjs/src/physics/world.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/plugin/plugin.js.html b/docs/docs/melonjs/src/plugin/plugin.js.html
                              index 16ddaf90b..24f8a9d25 100644
                              --- a/docs/docs/melonjs/src/plugin/plugin.js.html
                              +++ b/docs/docs/melonjs/src/plugin/plugin.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/polyfill/console.js.html b/docs/docs/melonjs/src/polyfill/console.js.html
                              index 9f658d6cf..bcb34ace1 100644
                              --- a/docs/docs/melonjs/src/polyfill/console.js.html
                              +++ b/docs/docs/melonjs/src/polyfill/console.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/polyfill/index.js.html b/docs/docs/melonjs/src/polyfill/index.js.html
                              index d665306e1..bd5020756 100644
                              --- a/docs/docs/melonjs/src/polyfill/index.js.html
                              +++ b/docs/docs/melonjs/src/polyfill/index.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/polyfill/roundrect.js.html b/docs/docs/melonjs/src/polyfill/roundrect.js.html
                              index 1696d52f3..5dfc254c2 100644
                              --- a/docs/docs/melonjs/src/polyfill/roundrect.js.html
                              +++ b/docs/docs/melonjs/src/polyfill/roundrect.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/collectable.js.html b/docs/docs/melonjs/src/renderable/collectable.js.html
                              index ff8be46a9..5c13c344a 100644
                              --- a/docs/docs/melonjs/src/renderable/collectable.js.html
                              +++ b/docs/docs/melonjs/src/renderable/collectable.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/colorlayer.js.html b/docs/docs/melonjs/src/renderable/colorlayer.js.html
                              index 66f31e112..dcc2c876b 100644
                              --- a/docs/docs/melonjs/src/renderable/colorlayer.js.html
                              +++ b/docs/docs/melonjs/src/renderable/colorlayer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/container.js.html b/docs/docs/melonjs/src/renderable/container.js.html
                              index 6bb2d086f..44f05b7fe 100644
                              --- a/docs/docs/melonjs/src/renderable/container.js.html
                              +++ b/docs/docs/melonjs/src/renderable/container.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/draggable.js.html b/docs/docs/melonjs/src/renderable/draggable.js.html
                              index 50c20c95e..4ee58b8dc 100644
                              --- a/docs/docs/melonjs/src/renderable/draggable.js.html
                              +++ b/docs/docs/melonjs/src/renderable/draggable.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/dragndrop.js.html b/docs/docs/melonjs/src/renderable/dragndrop.js.html
                              index 69e8b940d..368fd8d9d 100644
                              --- a/docs/docs/melonjs/src/renderable/dragndrop.js.html
                              +++ b/docs/docs/melonjs/src/renderable/dragndrop.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/entity/entity.js.html b/docs/docs/melonjs/src/renderable/entity/entity.js.html
                              index b596d146a..7901daa25 100644
                              --- a/docs/docs/melonjs/src/renderable/entity/entity.js.html
                              +++ b/docs/docs/melonjs/src/renderable/entity/entity.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/imagelayer.js.html b/docs/docs/melonjs/src/renderable/imagelayer.js.html
                              index 93e5f141f..f0bef70a1 100644
                              --- a/docs/docs/melonjs/src/renderable/imagelayer.js.html
                              +++ b/docs/docs/melonjs/src/renderable/imagelayer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/light2d.js.html b/docs/docs/melonjs/src/renderable/light2d.js.html
                              index 16036a8c5..7ab9d3908 100644
                              --- a/docs/docs/melonjs/src/renderable/light2d.js.html
                              +++ b/docs/docs/melonjs/src/renderable/light2d.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                              index 9be2e3e9f..63a5ce971 100644
                              --- a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                              +++ b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/renderable.js.html b/docs/docs/melonjs/src/renderable/renderable.js.html
                              index 6d18cfd42..2be34c8b0 100644
                              --- a/docs/docs/melonjs/src/renderable/renderable.js.html
                              +++ b/docs/docs/melonjs/src/renderable/renderable.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/sprite.js.html b/docs/docs/melonjs/src/renderable/sprite.js.html
                              index 45fa612cd..927fb9e86 100644
                              --- a/docs/docs/melonjs/src/renderable/sprite.js.html
                              +++ b/docs/docs/melonjs/src/renderable/sprite.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html b/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
                              index 2017d9c0d..688661760 100644
                              --- a/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html b/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
                              index 00f3dfd8a..fe42494e8 100644
                              --- a/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/bitmaptextdata.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/glyph.js.html b/docs/docs/melonjs/src/renderable/text/glyph.js.html
                              index 46b7ea775..41488d0a6 100644
                              --- a/docs/docs/melonjs/src/renderable/text/glyph.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/glyph.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/text.js.html b/docs/docs/melonjs/src/renderable/text/text.js.html
                              index 3e2ba3224..0418f0c70 100644
                              --- a/docs/docs/melonjs/src/renderable/text/text.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/text.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/textmetrics.js.html b/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
                              index 9b95b154b..959dba92e 100644
                              --- a/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/textmetrics.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/text/textstyle.js.html b/docs/docs/melonjs/src/renderable/text/textstyle.js.html
                              index a0b2363a6..1c46825ed 100644
                              --- a/docs/docs/melonjs/src/renderable/text/textstyle.js.html
                              +++ b/docs/docs/melonjs/src/renderable/text/textstyle.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/trigger.js.html b/docs/docs/melonjs/src/renderable/trigger.js.html
                              index f86167eae..869baca9e 100644
                              --- a/docs/docs/melonjs/src/renderable/trigger.js.html
                              +++ b/docs/docs/melonjs/src/renderable/trigger.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html b/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
                              index ec61df96d..cd39d5678 100644
                              --- a/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
                              +++ b/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html b/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
                              index faa1b7bef..dc5444e30 100644
                              --- a/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
                              +++ b/docs/docs/melonjs/src/renderable/ui/uispriteelement.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html b/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
                              index 8dae440a6..e8c1a2182 100644
                              --- a/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
                              +++ b/docs/docs/melonjs/src/renderable/ui/uitextbutton.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/state/stage.js.html b/docs/docs/melonjs/src/state/stage.js.html
                              index 6f0b27f7f..c3ec7da18 100644
                              --- a/docs/docs/melonjs/src/state/stage.js.html
                              +++ b/docs/docs/melonjs/src/state/stage.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/state/state.js.html b/docs/docs/melonjs/src/state/state.js.html
                              index 7dec02307..449aa5462 100644
                              --- a/docs/docs/melonjs/src/state/state.js.html
                              +++ b/docs/docs/melonjs/src/state/state.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/device.js.html b/docs/docs/melonjs/src/system/device.js.html
                              index 9b1cd48dd..534735c48 100644
                              --- a/docs/docs/melonjs/src/system/device.js.html
                              +++ b/docs/docs/melonjs/src/system/device.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/dom.js.html b/docs/docs/melonjs/src/system/dom.js.html
                              index 58c93832c..d8fa069fb 100644
                              --- a/docs/docs/melonjs/src/system/dom.js.html
                              +++ b/docs/docs/melonjs/src/system/dom.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/event.js.html b/docs/docs/melonjs/src/system/event.js.html
                              index 3bb0e6112..d25134658 100644
                              --- a/docs/docs/melonjs/src/system/event.js.html
                              +++ b/docs/docs/melonjs/src/system/event.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/platform.js.html b/docs/docs/melonjs/src/system/platform.js.html
                              index b85d5aa78..6a054e591 100644
                              --- a/docs/docs/melonjs/src/system/platform.js.html
                              +++ b/docs/docs/melonjs/src/system/platform.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/pooling.js.html b/docs/docs/melonjs/src/system/pooling.js.html
                              index 6ed6cfdf7..b5f3ba430 100644
                              --- a/docs/docs/melonjs/src/system/pooling.js.html
                              +++ b/docs/docs/melonjs/src/system/pooling.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/save.js.html b/docs/docs/melonjs/src/system/save.js.html
                              index 98ed22558..05cb537bb 100644
                              --- a/docs/docs/melonjs/src/system/save.js.html
                              +++ b/docs/docs/melonjs/src/system/save.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/system/timer.js.html b/docs/docs/melonjs/src/system/timer.js.html
                              index cfffe9fd7..c3457559f 100644
                              --- a/docs/docs/melonjs/src/system/timer.js.html
                              +++ b/docs/docs/melonjs/src/system/timer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/tweens/easing.js.html b/docs/docs/melonjs/src/tweens/easing.js.html
                              index fa2f729e2..3f0caf103 100644
                              --- a/docs/docs/melonjs/src/tweens/easing.js.html
                              +++ b/docs/docs/melonjs/src/tweens/easing.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/tweens/interpolation.js.html b/docs/docs/melonjs/src/tweens/interpolation.js.html
                              index 2fa3a4885..2ba96003f 100644
                              --- a/docs/docs/melonjs/src/tweens/interpolation.js.html
                              +++ b/docs/docs/melonjs/src/tweens/interpolation.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/tweens/tween.js.html b/docs/docs/melonjs/src/tweens/tween.js.html
                              index c29f3969d..0d6c54251 100644
                              --- a/docs/docs/melonjs/src/tweens/tween.js.html
                              +++ b/docs/docs/melonjs/src/tweens/tween.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/agent.js.html b/docs/docs/melonjs/src/utils/agent.js.html
                              index 489fce99d..d4040b6f0 100644
                              --- a/docs/docs/melonjs/src/utils/agent.js.html
                              +++ b/docs/docs/melonjs/src/utils/agent.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/array.js.html b/docs/docs/melonjs/src/utils/array.js.html
                              index ec163ac60..da508c4ce 100644
                              --- a/docs/docs/melonjs/src/utils/array.js.html
                              +++ b/docs/docs/melonjs/src/utils/array.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/file.js.html b/docs/docs/melonjs/src/utils/file.js.html
                              index 36ecc8880..b607090b8 100644
                              --- a/docs/docs/melonjs/src/utils/file.js.html
                              +++ b/docs/docs/melonjs/src/utils/file.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/function.js.html b/docs/docs/melonjs/src/utils/function.js.html
                              index dfa48844e..2356fd677 100644
                              --- a/docs/docs/melonjs/src/utils/function.js.html
                              +++ b/docs/docs/melonjs/src/utils/function.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/string.js.html b/docs/docs/melonjs/src/utils/string.js.html
                              index 04a773e14..b75d1bd58 100644
                              --- a/docs/docs/melonjs/src/utils/string.js.html
                              +++ b/docs/docs/melonjs/src/utils/string.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/utils/utils.js.html b/docs/docs/melonjs/src/utils/utils.js.html
                              index 87aacc345..5753ded22 100644
                              --- a/docs/docs/melonjs/src/utils/utils.js.html
                              +++ b/docs/docs/melonjs/src/utils/utils.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html b/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
                              index 01a2fe9f9..3db9be769 100644
                              --- a/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
                              +++ b/docs/docs/melonjs/src/video/canvas/canvas_renderer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/renderer.js.html b/docs/docs/melonjs/src/video/renderer.js.html
                              index 06ce1468f..a79eeaaed 100644
                              --- a/docs/docs/melonjs/src/video/renderer.js.html
                              +++ b/docs/docs/melonjs/src/video/renderer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/texture/atlas.js.html b/docs/docs/melonjs/src/video/texture/atlas.js.html
                              index c90a02f44..1a4b140f4 100644
                              --- a/docs/docs/melonjs/src/video/texture/atlas.js.html
                              +++ b/docs/docs/melonjs/src/video/texture/atlas.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/texture/cache.js.html b/docs/docs/melonjs/src/video/texture/cache.js.html
                              index 3eb6b86e3..d31c7ed91 100644
                              --- a/docs/docs/melonjs/src/video/texture/cache.js.html
                              +++ b/docs/docs/melonjs/src/video/texture/cache.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/texture/canvas_texture.js.html b/docs/docs/melonjs/src/video/texture/canvas_texture.js.html
                              index 0c1de6062..79d5a7f7a 100644
                              --- a/docs/docs/melonjs/src/video/texture/canvas_texture.js.html
                              +++ b/docs/docs/melonjs/src/video/texture/canvas_texture.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/utils/autodetect.js.html b/docs/docs/melonjs/src/video/utils/autodetect.js.html
                              index 6ed22ec88..249254687 100644
                              --- a/docs/docs/melonjs/src/video/utils/autodetect.js.html
                              +++ b/docs/docs/melonjs/src/video/utils/autodetect.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/video.js.html b/docs/docs/melonjs/src/video/video.js.html
                              index 420eae067..ab3e936fe 100644
                              --- a/docs/docs/melonjs/src/video/video.js.html
                              +++ b/docs/docs/melonjs/src/video/video.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html b/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
                              index 039976ae0..e7e023aa1 100644
                              --- a/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/buffer/vertex.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
                              index b2b5b0693..da39faf5f 100644
                              --- a/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/compositors/compositor.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
                              index 32d273ebc..735327154 100644
                              --- a/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/compositors/primitive_compositor.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html b/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
                              index af9386bcc..1f15d0dcf 100644
                              --- a/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/compositors/quad_compositor.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/glshader.js.html b/docs/docs/melonjs/src/video/webgl/glshader.js.html
                              index d5d84f882..a6c288c80 100644
                              --- a/docs/docs/melonjs/src/video/webgl/glshader.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/glshader.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html b/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
                              index 076bb56df..f255fd445 100644
                              --- a/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/utils/attributes.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/utils/precision.js.html b/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
                              index a1693f1ba..d0497008c 100644
                              --- a/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/utils/precision.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/utils/program.js.html b/docs/docs/melonjs/src/video/webgl/utils/program.js.html
                              index d9a7cf743..49e63eb72 100644
                              --- a/docs/docs/melonjs/src/video/webgl/utils/program.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/utils/program.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/utils/string.js.html b/docs/docs/melonjs/src/video/webgl/utils/string.js.html
                              index 4df81537c..9ec246f04 100644
                              --- a/docs/docs/melonjs/src/video/webgl/utils/string.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/utils/string.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html b/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
                              index 371b294bc..fcc76cfcd 100644
                              --- a/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/utils/uniforms.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html b/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
                              index 229a16d37..ae427ee32 100644
                              --- a/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
                              +++ b/docs/docs/melonjs/src/video/webgl/webgl_renderer.js.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/state.html b/docs/docs/melonjs/state.html
                              index 97b1f0d86..b080ce140 100644
                              --- a/docs/docs/melonjs/state.html
                              +++ b/docs/docs/melonjs/state.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/timer.html b/docs/docs/melonjs/timer.html
                              index de0587204..7d872218f 100644
                              --- a/docs/docs/melonjs/timer.html
                              +++ b/docs/docs/melonjs/timer.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils.html b/docs/docs/melonjs/utils.html
                              index 025dab53d..2b1f3f9c2 100644
                              --- a/docs/docs/melonjs/utils.html
                              +++ b/docs/docs/melonjs/utils.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/agent.html b/docs/docs/melonjs/utils/agent.html
                              index 0d9b76a61..dc4793c6b 100644
                              --- a/docs/docs/melonjs/utils/agent.html
                              +++ b/docs/docs/melonjs/utils/agent.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/agent/prefixed.html b/docs/docs/melonjs/utils/agent/prefixed.html
                              index e2e36144b..339e32ed0 100644
                              --- a/docs/docs/melonjs/utils/agent/prefixed.html
                              +++ b/docs/docs/melonjs/utils/agent/prefixed.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/agent/setPrefixed.html b/docs/docs/melonjs/utils/agent/setPrefixed.html
                              index a91af0079..eb1ff9d07 100644
                              --- a/docs/docs/melonjs/utils/agent/setPrefixed.html
                              +++ b/docs/docs/melonjs/utils/agent/setPrefixed.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/array.html b/docs/docs/melonjs/utils/array.html
                              index 6672f001b..62361e5f6 100644
                              --- a/docs/docs/melonjs/utils/array.html
                              +++ b/docs/docs/melonjs/utils/array.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/array/random.html b/docs/docs/melonjs/utils/array/random.html
                              index 09b86c3ff..229d76aff 100644
                              --- a/docs/docs/melonjs/utils/array/random.html
                              +++ b/docs/docs/melonjs/utils/array/random.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/array/remove.html b/docs/docs/melonjs/utils/array/remove.html
                              index 8b704cb12..5493c9ef5 100644
                              --- a/docs/docs/melonjs/utils/array/remove.html
                              +++ b/docs/docs/melonjs/utils/array/remove.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/array/weightedRandom.html b/docs/docs/melonjs/utils/array/weightedRandom.html
                              index dbe9c19b3..43e02408d 100644
                              --- a/docs/docs/melonjs/utils/array/weightedRandom.html
                              +++ b/docs/docs/melonjs/utils/array/weightedRandom.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/checkVersion.html b/docs/docs/melonjs/utils/checkVersion.html
                              index e6800e9f7..cfff4668e 100644
                              --- a/docs/docs/melonjs/utils/checkVersion.html
                              +++ b/docs/docs/melonjs/utils/checkVersion.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/file.html b/docs/docs/melonjs/utils/file.html
                              index d1d1eec58..e1ecfa711 100644
                              --- a/docs/docs/melonjs/utils/file.html
                              +++ b/docs/docs/melonjs/utils/file.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/file/getBasename.html b/docs/docs/melonjs/utils/file/getBasename.html
                              index fc812aff9..20a90fb8a 100644
                              --- a/docs/docs/melonjs/utils/file/getBasename.html
                              +++ b/docs/docs/melonjs/utils/file/getBasename.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/file/getExtension.html b/docs/docs/melonjs/utils/file/getExtension.html
                              index a627c3f7f..1a6e1e91d 100644
                              --- a/docs/docs/melonjs/utils/file/getExtension.html
                              +++ b/docs/docs/melonjs/utils/file/getExtension.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/file/getPath.html b/docs/docs/melonjs/utils/file/getPath.html
                              index b0510c808..2248bf396 100644
                              --- a/docs/docs/melonjs/utils/file/getPath.html
                              +++ b/docs/docs/melonjs/utils/file/getPath.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/function.html b/docs/docs/melonjs/utils/function.html
                              index 214532575..fcdfee000 100644
                              --- a/docs/docs/melonjs/utils/function.html
                              +++ b/docs/docs/melonjs/utils/function.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/function/defer.html b/docs/docs/melonjs/utils/function/defer.html
                              index 0f582509a..916322153 100644
                              --- a/docs/docs/melonjs/utils/function/defer.html
                              +++ b/docs/docs/melonjs/utils/function/defer.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/function/throttle.html b/docs/docs/melonjs/utils/function/throttle.html
                              index a8801f11d..cf3c839dc 100644
                              --- a/docs/docs/melonjs/utils/function/throttle.html
                              +++ b/docs/docs/melonjs/utils/function/throttle.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/getUriFragment.html b/docs/docs/melonjs/utils/getUriFragment.html
                              index 59b2efe7c..86c8b3701 100644
                              --- a/docs/docs/melonjs/utils/getUriFragment.html
                              +++ b/docs/docs/melonjs/utils/getUriFragment.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string.html b/docs/docs/melonjs/utils/string.html
                              index 3e45a784f..0dd680035 100644
                              --- a/docs/docs/melonjs/utils/string.html
                              +++ b/docs/docs/melonjs/utils/string.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string/capitalize.html b/docs/docs/melonjs/utils/string/capitalize.html
                              index f8d58f903..91f68322d 100644
                              --- a/docs/docs/melonjs/utils/string/capitalize.html
                              +++ b/docs/docs/melonjs/utils/string/capitalize.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string/isBoolean.html b/docs/docs/melonjs/utils/string/isBoolean.html
                              index 8f2bd05b1..34f205d1b 100644
                              --- a/docs/docs/melonjs/utils/string/isBoolean.html
                              +++ b/docs/docs/melonjs/utils/string/isBoolean.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string/isDataUrl.html b/docs/docs/melonjs/utils/string/isDataUrl.html
                              index 802bf8dad..d32e97a26 100644
                              --- a/docs/docs/melonjs/utils/string/isDataUrl.html
                              +++ b/docs/docs/melonjs/utils/string/isDataUrl.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string/isNumeric.html b/docs/docs/melonjs/utils/string/isNumeric.html
                              index 77def5797..248490abe 100644
                              --- a/docs/docs/melonjs/utils/string/isNumeric.html
                              +++ b/docs/docs/melonjs/utils/string/isNumeric.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/utils/string/toHex.html b/docs/docs/melonjs/utils/string/toHex.html
                              index 85e28f907..5a5bea01c 100644
                              --- a/docs/docs/melonjs/utils/string/toHex.html
                              +++ b/docs/docs/melonjs/utils/string/toHex.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/video.html b/docs/docs/melonjs/video.html
                              index dd4f83976..499993fac 100644
                              --- a/docs/docs/melonjs/video.html
                              +++ b/docs/docs/melonjs/video.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/video/createCanvas.html b/docs/docs/melonjs/video/createCanvas.html
                              index e058ed7c3..b4c5b9ba3 100644
                              --- a/docs/docs/melonjs/video/createCanvas.html
                              +++ b/docs/docs/melonjs/video/createCanvas.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/video/getParent.html b/docs/docs/melonjs/video/getParent.html
                              index ad806c3d1..78a37d238 100644
                              --- a/docs/docs/melonjs/video/getParent.html
                              +++ b/docs/docs/melonjs/video/getParent.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/video/init.html b/docs/docs/melonjs/video/init.html
                              index 37d6787ef..a7c3e996d 100644
                              --- a/docs/docs/melonjs/video/init.html
                              +++ b/docs/docs/melonjs/video/init.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/melonjs/warning.html b/docs/docs/melonjs/warning.html
                              index 10b34e3f6..5e1cbeb7c 100644
                              --- a/docs/docs/melonjs/warning.html
                              +++ b/docs/docs/melonjs/warning.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +
                               
                               
                                 
                              diff --git a/docs/docs/settings.html b/docs/docs/settings.html
                              index e4bf92c53..dfeef90a2 100644
                              --- a/docs/docs/settings.html
                              +++ b/docs/docs/settings.html
                              @@ -1,5 +1,5 @@
                               
                              -
                              +