From 9d9fd06392e0ddae4ad2d6a7764a882113672b6a Mon Sep 17 00:00:00 2001 From: photonstorm Date: Mon, 24 Feb 2014 12:14:30 +0000 Subject: [PATCH] Tidying up the repo, moving old wip stuff out, clearing up the docs. --- docs/Animation.js.html | 2 +- docs/AnimationManager.js.html | 2 +- docs/AnimationParser.js.html | 2 +- docs/ArcadePhysics.js.html | 2 +- docs/BitmapData.js.html | 4 +- docs/BitmapFont.js.html | 2 +- docs/BitmapText.js.html | 2 +- docs/Body.js.html | 10 +- docs/Button.js.html | 2 +- docs/Cache.js.html | 67 +- docs/Camera.js.html | 2 +- docs/Canvas.js.html | 2 +- docs/Circle.js.html | 2 +- docs/CollisionGroup.js.html | 2 +- docs/Color.js.html | 2 +- docs/ContactMaterial.js.html | 2 +- docs/DOMSprite.js.html | 601 - docs/Debug.js.html | 21 +- docs/Device.js.html | 2 +- docs/Easing.js.html | 2 +- docs/Ellipse.js.html | 2 +- docs/Emitter.js.html | 2 +- docs/Events.js.html | 2 +- docs/Filter.js.html | 2 +- docs/Frame.js.html | 2 +- docs/FrameData.js.html | 2 +- docs/Game.js.html | 11 +- docs/GameObjectCreator.js.html | 2 +- docs/GameObjectFactory.js.html | 2 +- docs/Gamepad.js.html | 2 +- docs/GamepadButton.js.html | 4 +- docs/Graphics.js.html | 2 +- docs/Group.js.html | 2 +- docs/Image.js.html | 2 +- docs/Input.js.html | 18 +- docs/InputHandler.js.html | 2 +- docs/IntroDocs.js.html | 540 - docs/InversePointProxy.js.html | 2 +- docs/Key.js.html | 4 +- docs/Keyboard.js.html | 2 +- docs/Line.js.html | 2 +- docs/LinkedList.js.html | 2 +- docs/Loader.js.html | 49 +- docs/LoaderParser.js.html | 2 +- docs/MSPointer.js.html | 2 +- docs/Material.js.html | 2 +- docs/Math.js.html | 2 +- docs/Mouse.js.html | 4 +- docs/Net.js.html | 2 +- docs/Particles.js.html | 2 +- docs/Phaser.Animation.html | 2 +- docs/Phaser.AnimationManager.html | 2 +- docs/Phaser.AnimationParser.html | 2 +- docs/Phaser.BitmapData.html | 2 +- docs/Phaser.BitmapFont.html | 2 +- docs/Phaser.BitmapText.html | 2 +- docs/Phaser.Button.html | 2 +- docs/Phaser.Cache.html | 609 +- docs/Phaser.Camera.html | 2 +- docs/Phaser.Canvas.html | 2 +- docs/Phaser.Circle.html | 2 +- docs/Phaser.Color.html | 2 +- docs/Phaser.DOMSprite.html | 1510 - docs/Phaser.Device.html | 2 +- docs/Phaser.Easing.Back.html | 2 +- docs/Phaser.Easing.Bounce.html | 2 +- docs/Phaser.Easing.Circular.html | 2 +- docs/Phaser.Easing.Cubic.html | 2 +- docs/Phaser.Easing.Elastic.html | 2 +- docs/Phaser.Easing.Exponential.html | 2 +- docs/Phaser.Easing.Linear.html | 2 +- docs/Phaser.Easing.Quadratic.html | 2 +- docs/Phaser.Easing.Quartic.html | 2 +- docs/Phaser.Easing.Quintic.html | 2 +- docs/Phaser.Easing.Sinusoidal.html | 2 +- docs/Phaser.Easing.html | 2 +- docs/Phaser.Ellipse.html | 2 +- docs/Phaser.Events.html | 2 +- docs/Phaser.Filter.html | 2 +- docs/Phaser.Frame.html | 2 +- docs/Phaser.FrameData.html | 2 +- docs/Phaser.Game.html | 18 +- docs/Phaser.GameObjectCreator.html | 2 +- docs/Phaser.GameObjectFactory.html | 2 +- docs/Phaser.Gamepad.html | 2 +- docs/Phaser.GamepadButton.html | 4 +- docs/Phaser.Graphics.html | 2 +- docs/Phaser.Group.html | 2 +- docs/Phaser.Image.html | 2 +- docs/Phaser.Input.html | 16 +- docs/Phaser.InputHandler.html | 2 +- docs/Phaser.Key.html | 4 +- docs/Phaser.Keyboard.html | 2 +- docs/Phaser.Line.html | 2 +- docs/Phaser.LinkedList.html | 2 +- docs/Phaser.Loader.html | 296 +- docs/Phaser.LoaderParser.html | 2 +- docs/Phaser.MSPointer.html | 2 +- docs/Phaser.Math.html | 2 +- docs/Phaser.Mouse.html | 2 +- docs/Phaser.Net.html | 2 +- docs/Phaser.Particles.Arcade.Emitter.html | 2 +- docs/Phaser.Particles.html | 2 +- docs/Phaser.Physics.Arcade.Body.html | 10195 ----- docs/Phaser.Physics.Arcade.html | 2 +- docs/Phaser.Physics.Body.html | 2 +- docs/Phaser.Physics.CollisionGroup.html | 2 +- docs/Phaser.Physics.ContactMaterial.html | 2 +- docs/Phaser.Physics.InversePointProxy.html | 2 +- docs/Phaser.Physics.Material.html | 2 +- docs/Phaser.Physics.PointProxy.html | 2 +- docs/Phaser.Physics.Spring.html | 2 +- docs/Phaser.Physics.World.html | 2 +- docs/Phaser.Physics.html | 2 +- docs/Phaser.Plugin.html | 2 +- docs/Phaser.PluginManager.html | 2 +- docs/Phaser.Point.html | 2 +- docs/Phaser.Pointer.html | 2 +- docs/Phaser.Polygon.html | 2 +- docs/Phaser.QuadTree.html | 1709 - docs/Phaser.RandomDataGenerator.html | 2 +- docs/Phaser.Rectangle.html | 2 +- docs/Phaser.RenderTexture.html | 2 +- docs/Phaser.RequestAnimationFrame.html | 2 +- docs/Phaser.Signal.html | 2 +- docs/Phaser.SinglePad.html | 2 +- docs/Phaser.Sound.html | 2 +- docs/Phaser.SoundManager.html | 47 +- docs/Phaser.Sprite.html | 2 +- docs/Phaser.SpriteBatch.html | 2 +- docs/Phaser.Stage.html | 87 +- docs/Phaser.StageScaleMode.html | 2 +- docs/Phaser.State.html | 2 +- docs/Phaser.StateManager.html | 132 +- docs/Phaser.Text.html | 2 +- docs/Phaser.Tile.html | 2 +- docs/Phaser.TileSprite.html | 242 +- docs/Phaser.Tilemap.html | 2 +- docs/Phaser.TilemapLayer.html | 2 +- docs/Phaser.TilemapParser.html | 2 +- docs/Phaser.Tileset.html | 2 +- docs/Phaser.Time.html | 2 +- docs/Phaser.Timer.html | 2 +- docs/Phaser.TimerEvent.html | 2 +- docs/Phaser.Touch.html | 2 +- docs/Phaser.Tween.html | 2 +- docs/Phaser.TweenManager.html | 2 +- docs/Phaser.Utils.Debug.html | 32 +- docs/Phaser.Utils.html | 2 +- docs/Phaser.World.html | 2 +- docs/Phaser.html | 2 +- docs/Phaser.js.html | 2 +- docs/Plugin.js.html | 2 +- docs/PluginManager.js.html | 2 +- docs/Point.js.html | 2 +- docs/PointProxy.js.html | 2 +- docs/Pointer.js.html | 2 +- docs/Polygon.js.html | 2 +- docs/QuadTree.js.html | 808 - docs/RandomDataGenerator.js.html | 2 +- docs/Rectangle.js.html | 2 +- docs/RenderTexture.js.html | 2 +- docs/RequestAnimationFrame.js.html | 2 +- docs/SAT.js.html | 1374 - docs/Signal.js.html | 2 +- docs/SignalBinding.html | 2 +- docs/SignalBinding.js.html | 2 +- docs/SinglePad.js.html | 2 +- docs/Sound.js.html | 6 +- docs/SoundManager.js.html | 7 +- docs/Spring.js.html | 2 +- docs/Sprite.js.html | 2 +- docs/SpriteBatch.js.html | 2 +- docs/Stage.js.html | 46 +- docs/StageScaleMode.js.html | 2 +- docs/State.js.html | 2 +- docs/StateManager.js.html | 16 +- docs/Text.js.html | 2 +- docs/Tile.js.html | 2 +- docs/TileSprite.js.html | 43 +- docs/Tilemap.js.html | 2 +- docs/TilemapLayer.js.html | 2 +- docs/TilemapParser.js.html | 11 +- docs/Tileset.js.html | 2 +- docs/Time.js.html | 2 +- docs/Timer.js.html | 2 +- docs/TimerEvent.js.html | 2 +- docs/Touch.js.html | 2 +- docs/Tween.js.html | 2 +- docs/TweenManager.js.html | 2 +- docs/Utils.js.html | 2 +- docs/World.js.html | 4 +- docs/World.js_.html | 2 +- docs/classes.list.html | 2 +- docs/global.html | 2 +- docs/index.html | 48 +- docs/namespaces.list.html | 2 +- resources/wip/01_phaser-arcade.jpg | Bin 248637 -> 0 bytes resources/wip/02_phaser-newsletter.jpg | Bin 214912 -> 0 bytes resources/wip/32x32_t.png | Bin 106 -> 0 bytes resources/wip/Degree-Radian_Conversion.svg | 3631 -- resources/wip/Physics Comparison.xlsx | Bin 10692 -> 0 bytes resources/wip/phaser-manual_2013-08-27.pdf | Bin 555723 -> 0 bytes resources/wip/phaser_copy.doc | Bin 30208 -> 0 bytes .../wip/phaser_onscreen-controls_1-arcade.png | Bin 1045753 -> 0 bytes .../wip/phaser_onscreen-controls_2-dpad.png | Bin 1033879 -> 0 bytes .../phaser_onscreen-controls_3-generic.png | Bin 1046638 -> 0 bytes resources/wip/rotations.png | Bin 4545 -> 0 bytes resources/wip/sprites/avoid-digits.png | Bin 1263 -> 0 bytes resources/wip/sprites/avoid-panel.png | Bin 1434 -> 0 bytes resources/wip/sprites/avoid-sheet.png | Bin 2823 -> 0 bytes resources/wip/sprites/avoidmock4x2.png | Bin 9416 -> 0 bytes resources/wip/sprites/box-01.png | Bin 1909 -> 0 bytes resources/wip/sprites/box-02.png | Bin 1648 -> 0 bytes resources/wip/sprites/breakout2c.png | Bin 2739 -> 0 bytes resources/wip/sprites/orbit/1 logo.png | Bin 5070 -> 0 bytes resources/wip/sprites/orbit/2 menu.png | Bin 3466 -> 0 bytes resources/wip/sprites/orbit/3 bg.png | Bin 1161 -> 0 bytes resources/wip/sprites/orbit/breakout4logo.gif | Bin 5885 -> 0 bytes resources/wip/sprites/orbit/brick-bgtiles.png | Bin 325 -> 0 bytes resources/wip/sprites/orbit/brick-bricks.png | Bin 1039 -> 0 bytes resources/wip/sprites/orbit/brick-frame.png | Bin 1722 -> 0 bytes resources/wip/sprites/orbit/brick-score.png | Bin 274 -> 0 bytes resources/wip/sprites/orbit/brick-sprites.png | Bin 653 -> 0 bytes resources/wip/sprites/phaser checkboxes.gif | Bin 12552 -> 0 bytes resources/wip/sprites/phaser power tools.gif | Bin 4223 -> 0 bytes resources/wip/sprites/phaser sprites10.gif | Bin 63399 -> 0 bytes resources/wip/sprites/phaser sprites11.gif | Bin 71284 -> 0 bytes wip/Body-Debug.js | 1626 - wip/CameraFX/Border.ts | 49 - wip/CameraFX/Fade.ts | 93 - wip/CameraFX/Flash.ts | 92 - wip/CameraFX/Mirror.ts | 129 - wip/CameraFX/Scanlines.ts | 38 - wip/CameraFX/Shadow.ts | 81 - wip/CameraFX/Shake.ts | 114 - wip/TS Source/Game.ts | 703 - wip/TS Source/Phaser.ts | 27 - wip/TS Source/Stage.ts | 415 - wip/TS Source/State.ts | 162 - wip/TS Source/Statics.ts | 141 - wip/TS Source/World.ts | 181 - wip/TS Source/_definitions.ts | 153 - wip/TS Source/animation/Animation.ts | 278 - wip/TS Source/animation/AnimationManager.ts | 306 - wip/TS Source/animation/Frame.ts | 171 - wip/TS Source/animation/FrameData.ts | 195 - wip/TS Source/cameras/Camera.ts | 531 - wip/TS Source/cameras/CameraManager.ts | 240 - wip/TS Source/core/Group.ts | 1096 - wip/TS Source/core/Plugin.ts | 117 - wip/TS Source/core/PluginManager.ts | 221 - wip/TS Source/core/Signal.ts | 330 - wip/TS Source/core/SignalBinding.ts | 184 - wip/TS Source/display/CSS3Filters.ts | 170 - wip/TS Source/display/DynamicTexture.ts | 331 - wip/TS Source/display/Texture.ts | 343 - wip/TS Source/gameobjects/Events.ts | 112 - .../gameobjects/GameObjectFactory.ts | 276 - wip/TS Source/gameobjects/IGameObject.ts | 85 - wip/TS Source/gameobjects/ScrollRegion.ts | 206 - wip/TS Source/gameobjects/ScrollZone.ts | 147 - wip/TS Source/gameobjects/Sprite.ts | 447 - wip/TS Source/gameobjects/TransformManager.ts | 357 - wip/TS Source/geom/Circle.ts | 316 - wip/TS Source/geom/Line.ts | 307 - wip/TS Source/geom/Point.ts | 76 - wip/TS Source/geom/Rectangle.ts | 335 - wip/TS Source/input/InputHandler.ts | 732 - wip/TS Source/input/InputManager.ts | 840 - wip/TS Source/input/Keyboard.ts | 325 - wip/TS Source/input/MSPointer.ts | 139 - wip/TS Source/input/Mouse.ts | 152 - wip/TS Source/input/Pointer.ts | 698 - wip/TS Source/input/Touch.ts | 277 - wip/TS Source/loader/AnimationLoader.ts | 153 - wip/TS Source/loader/Cache.ts | 431 - wip/TS Source/loader/Loader.ts | 641 - wip/TS Source/math/GameMath.ts | 1012 - wip/TS Source/math/LinkedList.ts | 51 - wip/TS Source/math/Mat3.ts | 275 - wip/TS Source/math/Mat3Utils.ts | 187 - wip/TS Source/math/QuadTree.ts | 660 - wip/TS Source/math/RandomDataGenerator.ts | 284 - wip/TS Source/math/Vec2.ts | 298 - wip/TS Source/math/Vec2Utils.ts | 371 - wip/TS Source/net/Net.ts | 135 - wip/TS Source/particles/Emitter.js | 288 - wip/TS Source/particles/Emitter.js.map | 1 - wip/TS Source/particles/Emitter.ts | 333 - .../particles/NumericalIntegration.js | 30 - .../particles/NumericalIntegration.js.map | 1 - .../particles/NumericalIntegration.ts | 33 - wip/TS Source/particles/Particle.js | 151 - wip/TS Source/particles/Particle.js.map | 1 - wip/TS Source/particles/Particle.ts | 173 - wip/TS Source/particles/ParticleManager.js | 122 - .../particles/ParticleManager.js.map | 1 - wip/TS Source/particles/ParticleManager.ts | 151 - wip/TS Source/particles/ParticlePool.js | 62 - wip/TS Source/particles/ParticlePool.js.map | 1 - wip/TS Source/particles/ParticlePool.ts | 92 - wip/TS Source/particles/ParticleUtils.js | 146 - wip/TS Source/particles/ParticleUtils.js.map | 1 - wip/TS Source/particles/ParticleUtils.ts | 201 - wip/TS Source/particles/Polar2D.js | 63 - wip/TS Source/particles/Polar2D.js.map | 1 - wip/TS Source/particles/Polar2D.ts | 82 - wip/TS Source/particles/Span.js | 39 - wip/TS Source/particles/Span.js.map | 1 - wip/TS Source/particles/Span.ts | 57 - .../particles/behaviours/Behaviour.js | 118 - .../particles/behaviours/Behaviour.js.map | 1 - .../particles/behaviours/Behaviour.ts | 140 - .../particles/behaviours/RandomDrift.js | 45 - .../particles/behaviours/RandomDrift.js.map | 1 - .../particles/behaviours/RandomDrift.ts | 49 - .../particles/initialize/Initialize.js | 27 - .../particles/initialize/Initialize.js.map | 1 - .../particles/initialize/Initialize.ts | 28 - wip/TS Source/particles/initialize/Life.js | 31 - .../particles/initialize/Life.js.map | 1 - wip/TS Source/particles/initialize/Life.ts | 32 - wip/TS Source/particles/initialize/Mass.js | 27 - .../particles/initialize/Mass.js.map | 1 - wip/TS Source/particles/initialize/Mass.ts | 21 - .../particles/initialize/Position.js | 40 - .../particles/initialize/Position.js.map | 1 - .../particles/initialize/Position.ts | 45 - wip/TS Source/particles/initialize/Radius.ts | 33 - wip/TS Source/particles/initialize/Rate.js | 51 - .../particles/initialize/Rate.js.map | 1 - wip/TS Source/particles/initialize/Rate.ts | 60 - .../particles/initialize/Velocity.js | 44 - .../particles/initialize/Velocity.js.map | 1 - .../particles/initialize/Velocity.ts | 46 - wip/TS Source/particles/zone/PointZone.js | 36 - wip/TS Source/particles/zone/PointZone.js.map | 1 - wip/TS Source/particles/zone/PointZone.ts | 31 - wip/TS Source/particles/zone/Zone.js | 20 - wip/TS Source/particles/zone/Zone.js.map | 1 - wip/TS Source/particles/zone/Zone.ts | 20 - wip/TS Source/physics/AABB.ts | 511 - wip/TS Source/physics/Body.ts | 215 - wip/TS Source/physics/Circle.ts | 286 - wip/TS Source/physics/PhysicsManager.ts | 161 - wip/TS Source/physics/TileMapCell.ts | 492 - wip/TS Source/physics/aabb/ProjAABB22Deg.ts | 128 - wip/TS Source/physics/aabb/ProjAABB45Deg.ts | 54 - wip/TS Source/physics/aabb/ProjAABB67Deg.ts | 124 - wip/TS Source/physics/aabb/ProjAABBConcave.ts | 60 - wip/TS Source/physics/aabb/ProjAABBConvex.ts | 50 - wip/TS Source/physics/aabb/ProjAABBFull.ts | 23 - wip/TS Source/physics/aabb/ProjAABBHalf.ts | 60 - .../physics/circle/ProjCircle22Deg.ts | 597 - .../physics/circle/ProjCircle45Deg.ts | 271 - .../physics/circle/ProjCircle67Deg.ts | 591 - .../physics/circle/ProjCircleConcave.ts | 235 - .../physics/circle/ProjCircleConvex.ts | 242 - .../physics/circle/ProjCircleFull.ts | 112 - .../physics/circle/ProjCircleHalf.ts | 234 - wip/TS Source/renderers/HeadlessRenderer.ts | 31 - wip/TS Source/renderers/IRenderer.ts | 22 - .../renderers/canvas/CameraRenderer.ts | 187 - .../renderers/canvas/CanvasRenderer.ts | 77 - .../renderers/canvas/GeometryRenderer.ts | 87 - .../renderers/canvas/GroupRenderer.ts | 163 - .../renderers/canvas/ScrollZoneRenderer.ts | 161 - .../renderers/canvas/SpriteRenderer.ts | 191 - .../renderers/canvas/TilemapRenderer.ts | 153 - wip/TS Source/sound/Sound.ts | 553 - wip/TS Source/sound/SoundManager.ts | 371 - wip/TS Source/system/Device.ts | 552 - wip/TS Source/system/RequestAnimationFrame.ts | 185 - wip/TS Source/system/StageScaleMode.ts | 536 - wip/TS Source/system/screens/BootScreen.ts | 131 - .../system/screens/OrientationScreen.ts | 67 - wip/TS Source/system/screens/PauseScreen.ts | 143 - wip/TS Source/tilemap/Tile.ts | 204 - wip/TS Source/tilemap/Tilemap.ts | 520 - wip/TS Source/tilemap/TilemapLayer.ts | 544 - wip/TS Source/time/TimeManager.ts | 278 - wip/TS Source/tweens/Tween.ts | 448 - wip/TS Source/tweens/TweenManager.ts | 183 - wip/TS Source/tweens/easing/Back.ts | 64 - wip/TS Source/tweens/easing/Bounce.ts | 76 - wip/TS Source/tweens/easing/Circular.ts | 34 - wip/TS Source/tweens/easing/Cubic.ts | 61 - wip/TS Source/tweens/easing/Elastic.ts | 76 - wip/TS Source/tweens/easing/Exponential.ts | 63 - wip/TS Source/tweens/easing/Linear.ts | 34 - wip/TS Source/tweens/easing/Quadratic.ts | 61 - wip/TS Source/tweens/easing/Quartic.ts | 61 - wip/TS Source/tweens/easing/Quintic.ts | 61 - wip/TS Source/tweens/easing/Sinusoidal.ts | 60 - wip/TS Source/ui/Button.ts | 210 - wip/TS Source/utils/CanvasUtils.ts | 172 - wip/TS Source/utils/CircleUtils.ts | 184 - wip/TS Source/utils/ColorUtils.ts | 586 - wip/TS Source/utils/DebugUtils.ts | 441 - wip/TS Source/utils/PointUtils.ts | 225 - wip/TS Source/utils/RectangleUtils.ts | 211 - wip/TS Source/utils/SpriteUtils.ts | 355 - wip/TS Tests/audio/audio sprites 1.ts | 58 - wip/TS Tests/audio/play sound 1.ts | 70 - wip/TS Tests/buttons/basic button 2.ts | 49 - wip/TS Tests/buttons/basic button.ts | 50 - wip/TS Tests/buttons/camera buttons.ts | 46 - wip/TS Tests/buttons/rotated buttons.ts | 56 - wip/TS Tests/camera fx/fade.ts | 0 wip/TS Tests/camera fx/mirror.ts | 67 - wip/TS Tests/camera fx/scanlines.ts | 57 - wip/TS Tests/cameras/basic camera 1.ts | 70 - wip/TS Tests/cameras/basic follow.ts | 64 - wip/TS Tests/cameras/camera alpha.ts | 88 - wip/TS Tests/cameras/camera fx 1.ts | 45 - wip/TS Tests/cameras/camera fx 2.ts | 46 - wip/TS Tests/cameras/camera fx 3.ts | 46 - wip/TS Tests/cameras/camera rotation.ts | 65 - wip/TS Tests/cameras/camera scale.ts | 73 - wip/TS Tests/cameras/camera texture.ts | 19 - wip/TS Tests/cameras/follow styles.ts | 102 - wip/TS Tests/cameras/hide from camera.ts | 66 - wip/TS Tests/cameras/multi camera.ts | 70 - wip/TS Tests/cameras/scrollfactor 1.ts | 58 - wip/TS Tests/cameras/scrollfactor 2.ts | 55 - wip/TS Tests/cameras/scrollfactor compare.ts | 44 - wip/TS Tests/cameras/world sprite.ts | 85 - wip/TS Tests/display/render crisp.ts | 37 - wip/TS Tests/groups/add to group 1.ts | 40 - wip/TS Tests/groups/add to group 2.ts | 41 - wip/TS Tests/groups/bring to top 1.ts | 92 - wip/TS Tests/groups/bring to top.ts | 30 - wip/TS Tests/groups/call all.ts | 37 - wip/TS Tests/groups/create group 1.ts | 43 - wip/TS Tests/groups/direct render.ts | 38 - wip/TS Tests/groups/display order.ts | 52 - wip/TS Tests/groups/for each.ts | 35 - wip/TS Tests/groups/get first 1.ts | 45 - wip/TS Tests/groups/get first 2.ts | 50 - wip/TS Tests/groups/get first 3.ts | 60 - wip/TS Tests/groups/group as layer.ts | 74 - wip/TS Tests/groups/group transform 1.ts | 70 - wip/TS Tests/groups/group transform 2.ts | 52 - wip/TS Tests/groups/group transform 3.ts | 55 - wip/TS Tests/groups/recycle 1.ts | 50 - wip/TS Tests/groups/recycle 2.ts | 53 - wip/TS Tests/groups/remove.ts | 65 - wip/TS Tests/groups/replace.ts | 66 - wip/TS Tests/groups/set all.ts | 31 - wip/TS Tests/groups/sort 1.ts | 48 - wip/TS Tests/groups/sort 2.ts | 57 - wip/TS Tests/groups/sub groups.ts | 60 - wip/TS Tests/groups/swap children.ts | 38 - wip/TS Tests/input/bring to top.ts | 40 - wip/TS Tests/input/drag sprite 1.ts | 38 - wip/TS Tests/input/drag sprite 2.ts | 38 - wip/TS Tests/input/drag sprite 3.ts | 38 - wip/TS Tests/input/drop limitation.ts | 46 - wip/TS Tests/input/game scale 1.ts | 62 - wip/TS Tests/input/keyboard 1.ts | 81 - wip/TS Tests/input/keyboard 2.ts | 110 - wip/TS Tests/input/motion lock 2.ts | 43 - wip/TS Tests/input/motion lock.ts | 43 - wip/TS Tests/input/multitouch.ts | 16 - wip/TS Tests/input/over sprite 1.ts | 33 - wip/TS Tests/input/over sprite 2.ts | 42 - wip/TS Tests/input/point in rotated sprite.ts | 60 - wip/TS Tests/input/rotated sprites.ts | 49 - wip/TS Tests/input/snap 1.ts | 49 - wip/TS Tests/input/touch priority.ts | 41 - wip/TS Tests/input/world coordinates.ts | 54 - wip/TS Tests/input/world drag.ts | 72 - wip/TS Tests/misc/boot screen.ts | 8 - wip/TS Tests/misc/color utils 1.ts | 52 - wip/TS Tests/misc/color utils 2.ts | 60 - wip/TS Tests/misc/color utils 3.ts | 153 - wip/TS Tests/misc/dynamic texture 1.ts | 25 - wip/TS Tests/misc/dynamic texture 2.ts | 27 - wip/TS Tests/misc/dynamic texture 3.ts | 32 - wip/TS Tests/misc/point1.ts | 71 - wip/TS Tests/misc/point2.ts | 68 - wip/TS Tests/misc/point3.ts | 71 - wip/TS Tests/misc/rectangle utils 1.ts | 53 - wip/TS Tests/misc/rectangle utils 2.ts | 130 - wip/TS Tests/mobile/fullscreen.html | 62 - wip/TS Tests/mobile/sprite test 1.js | 59 - wip/TS Tests/mobile/sprite test 1.ts | 74 - wip/TS Tests/mobile/test1.html | 62 - wip/TS Tests/particles/graphic emitter.ts | 25 - wip/TS Tests/particles/mousetrail.ts | 46 - wip/TS Tests/particles/multiple streams.ts | 73 - wip/TS Tests/particles/sprite emitter.ts | 52 - .../particles/when particles collide.ts | 46 - wip/TS Tests/physics/circle 1.ts | 222 - wip/TS Tests/physics/sprite bounds.ts | 53 - wip/TS Tests/scrollzones/ballscroller.ts | 41 - wip/TS Tests/scrollzones/blasteroids.ts | 156 - wip/TS Tests/scrollzones/parallax.ts | 53 - wip/TS Tests/scrollzones/region demo.ts | 37 - wip/TS Tests/scrollzones/scroll window.ts | 31 - wip/TS Tests/scrollzones/simple scrollzone.ts | 27 - wip/TS Tests/scrollzones/skewed scroller.ts | 34 - wip/TS Tests/sprites/alpha.ts | 25 - wip/TS Tests/sprites/animate by framename.ts | 42 - wip/TS Tests/sprites/animation 1.ts | 37 - wip/TS Tests/sprites/animation 2.ts | 36 - wip/TS Tests/sprites/create sprite 1.ts | 23 - wip/TS Tests/sprites/origin 5.ts | 291 - wip/TS Tests/sprites/out of screen.ts | 30 - wip/TS Tests/sprites/rotate around.ts | 41 - wip/TS Tests/sprites/scale sprite 1.ts | 33 - wip/TS Tests/sprites/scale sprite 2.ts | 33 - wip/TS Tests/sprites/scale sprite 3.ts | 29 - wip/TS Tests/sprites/scale sprite 4.ts | 31 - wip/TS Tests/sprites/scale sprite 5.ts | 60 - wip/TS Tests/sprites/sprite origin 1.ts | 30 - wip/TS Tests/sprites/sprite origin 2.ts | 33 - wip/TS Tests/sprites/sprite origin 3.ts | 33 - wip/TS Tests/sprites/sprite origin 4.ts | 56 - wip/TS Tests/stage/blur filter.ts | 47 - wip/TS Tests/stage/brightness filter.ts | 47 - wip/TS Tests/stage/contrast filter.ts | 47 - wip/TS Tests/stage/grayscale filter.ts | 47 - wip/TS Tests/stage/hue rotate filter.ts | 47 - wip/TS Tests/stage/sepia filter.ts | 47 - wip/TS Tests/states/javascript/FakeGame.js | 63 - wip/TS Tests/states/javascript/MainMenu.js | 72 - wip/TS Tests/states/javascript/index.html | 26 - wip/TS Tests/states/typescript/FakeGame.ts | 64 - wip/TS Tests/states/typescript/MainMenu.ts | 73 - wip/TS Tests/states/typescript/index.html | 26 - wip/TS Tests/template_breakout/Boot.js | 41 - wip/TS Tests/template_breakout/Boot.ts | 32 - wip/TS Tests/template_breakout/GameState.js | 151 - wip/TS Tests/template_breakout/GameState.ts | 184 - wip/TS Tests/template_breakout/Main.js | 15 - wip/TS Tests/template_breakout/Main.ts | 18 - wip/TS Tests/template_breakout/MainMenu.js | 31 - wip/TS Tests/template_breakout/MainMenu.ts | 24 - wip/TS Tests/template_breakout/Preloader.js | 45 - wip/TS Tests/template_breakout/Preloader.ts | 35 - .../template_breakout/assets/breakout.json | 236 - .../template_breakout/assets/breakout.png | Bin 2423 -> 0 bytes .../template_breakout/assets/main_menu.mp3 | Bin 566796 -> 0 bytes .../template_breakout/assets/main_menu.ogg | Bin 462648 -> 0 bytes .../template_breakout/assets/play_button.png | Bin 9748 -> 0 bytes .../assets/preloader_background.gif | Bin 3589 -> 0 bytes .../template_breakout/assets/preloadr_bar.png | Bin 5452 -> 0 bytes .../template_breakout/assets/starfield.jpg | Bin 131072 -> 0 bytes .../template_breakout/assets/title.gif | Bin 2340 -> 0 bytes wip/TS Tests/template_breakout/phaser.d.ts | 1824 - wip/TS Tests/template_breakout/phaser.js | 37938 ---------------- wip/TS Tests/textures/dynamic texture 1.ts | 78 - wip/TS Tests/textures/dynamic texture 2.ts | 66 - wip/TS Tests/textures/filter test.ts | 61 - .../textures/starling texture atlas.ts | 51 - wip/TS Tests/textures/texture atlas 1.ts | 33 - wip/TS Tests/textures/texture atlas 2.ts | 143 - wip/TS Tests/textures/texture atlas 3.ts | 40 - wip/TS Tests/textures/texture atlas 4.ts | 50 - wip/TS Tests/tilemaps/csv tilemap.ts | 54 - wip/TS Tests/tilemaps/map draw.ts | 60 - wip/TS Tests/tilemaps/tiled layers.ts | 58 - wip/TS Tests/tilemaps/tiled tilemap.ts | 54 - wip/TS Tests/tweens/bounce.ts | 36 - wip/TS Tests/tweens/easing example 1.ts | 29 - wip/TS Tests/tweens/easing example 2.ts | 27 - wip/TS Tests/tweens/easing example 3.ts | 28 - wip/TS Tests/tweens/easing example 4.ts | 38 - wip/TS Tests/tweens/easing example 5.ts | 40 - wip/TS Tests/tweens/easing example 6.ts | 53 - wip/TS Tests/tweens/pause test.ts | 21 - wip/TS Tests/tweens/tween loop 1.ts | 32 - wip/TS Tests/tweens/tween loop 2.ts | 33 - wip/examples/consoleBanner.php | 84 - wip/examples/consoleBanner2.php | 86 - wip/examples/consoleBanner3.php | 81 - wip/examples/flow.php | 50 - wip/examples/flow2.php | 53 - wip/examples/flow3.php | 48 - wip/examples/flow4.php | 49 - wip/examples/flow5.php | 57 - wip/examples/flow6.php | 59 - wip/examples/mariocombo/assets/mario1.json | 39 - wip/examples/mariocombo/assets/mario1.png | Bin 3181 -> 0 bytes wip/examples/mariocombo/assets/phaser.png | Bin 809 -> 0 bytes .../mariocombo/assets/smb_level1.json | 39 - wip/examples/mariocombo/assets/smb_tiles.png | Bin 3740 -> 0 bytes wip/examples/mariocombo/index.php | 65 - wip/examples/mariocombo/ohballs.php | 69 - wip/examples/mariocombo/particles.php | 103 - wip/examples/net.html | 42 - wip/examples/outofbounds.php | 65 - wip/examples/particles.php | 76 - wip/examples/pixelpick.php | 66 - wip/examples/pixelpick2.php | 69 - wip/examples/pixelpick3.php | 118 - wip/examples/plugin1.php | 44 - wip/examples/state/Game.js | 40 - wip/examples/state/MainMenu.js | 30 - wip/examples/state/Preloader.js | 28 - wip/examples/state/index.php | 30 - wip/examples/state/js.php | 109 - wip/examples/supermario.php | 62 - wip/examples/supermario2.php | 77 - wip/old_Sprite.js | 1211 - wip/phaser clean up/GeomSprite.ts | 645 - wip/phaser clean up/N_tutorialAsrc.zip | Bin 62238 -> 0 bytes .../N_tutorialAsrc/tutA_demo05.fla | Bin 267264 -> 0 bytes .../N_tutorialAsrc/tutA_demo05.swf | Bin 22013 -> 0 bytes .../N_tutorialBsrc/tutB_demo04.fla | Bin 240640 -> 0 bytes .../N_tutorialBsrc/tutB_demo04.swf | Bin 28061 -> 0 bytes wip/phaser clean up/SAT.zip | Bin 15391 -> 0 bytes .../fitc/FITC_beyondHittest.txt | 715 - .../fitc/FITC_beyondHittest07.swf | Bin 440515 -> 0 bytes .../fitc/media/N_tutorial_diagrams05.swf | Bin 8369 -> 0 bytes ..._tutorial_diagrams05_boxbox_projection.swf | Bin 8700 -> 0 bytes .../media/N_tutorial_diagrams05_boxcells.swf | Bin 8294 -> 0 bytes .../N_tutorial_diagrams05_boxprojection.swf | Bin 8660 -> 0 bytes .../media/N_tutorial_diagrams05_circlebox.swf | Bin 8996 -> 0 bytes .../N_tutorial_diagrams05_frictionbounce.swf | Bin 8369 -> 0 bytes .../N_tutorial_diagrams05_projdotprod.swf | Bin 8448 -> 0 bytes .../N_tutorial_diagrams05_rawdotprod.swf | Bin 8362 -> 0 bytes .../N_tutorial_diagrams05_unitdotprod.swf | Bin 8455 -> 0 bytes .../N_tutorial_diagrams05_unitvector.swf | Bin 8161 -> 0 bytes .../media/N_tutorial_diagrams05_vector.swf | Bin 8101 -> 0 bytes .../N_tutorial_diagrams05_vectornormals.swf | Bin 8307 -> 0 bytes ...N_tutorial_diagrams05_vectorprojection.swf | Bin 8391 -> 0 bytes wip/phaser clean up/temp1.ts | 200 - wip/phaser clean up/temp2.ts | 2091 - wip/phaser tests/camera fx/fade.js | 46 - wip/phaser tests/camera fx/fade.ts | 77 - wip/phaser tests/camera fx/flash.js | 46 - wip/phaser tests/camera fx/flash.ts | 77 - wip/phaser tests/camera fx/shake.js | 50 - wip/phaser tests/camera fx/shake.ts | 85 - wip/phaser tests/cameras/camera alpha.js | 38 - wip/phaser tests/cameras/camera alpha.ts | 63 - wip/phaser tests/cameras/camera bounds.js | 33 - wip/phaser tests/cameras/camera bounds.ts | 60 - wip/phaser tests/cameras/camera position.js | 40 - wip/phaser tests/cameras/camera position.ts | 66 - wip/phaser tests/cameras/camera rotation.js | 34 - wip/phaser tests/cameras/camera rotation.ts | 61 - wip/phaser tests/cameras/camera scale.js | 45 - wip/phaser tests/cameras/camera scale.ts | 71 - wip/phaser tests/cameras/camera shadow.js | 47 - wip/phaser tests/cameras/camera shadow.ts | 73 - wip/phaser tests/cameras/camera texture.js | 46 - wip/phaser tests/cameras/camera texture.ts | 72 - wip/phaser tests/cameras/focus on.js | 36 - wip/phaser tests/cameras/focus on.ts | 62 - wip/phaser tests/cameras/follow deadzone.js | 36 - wip/phaser tests/cameras/follow deadzone.ts | 61 - wip/phaser tests/cameras/follow sprite.js | 34 - wip/phaser tests/cameras/follow sprite.ts | 62 - wip/phaser tests/cameras/follow topdown.js | 34 - wip/phaser tests/cameras/follow topdown.ts | 59 - wip/phaser tests/cameras/multicam1.js | 44 - wip/phaser tests/cameras/multicam1.ts | 70 - wip/phaser tests/cameras/scroll factor.js | 37 - wip/phaser tests/cameras/scroll factor.ts | 63 - wip/phaser tests/collision/collide sprites.js | 35 - wip/phaser tests/collision/collide sprites.ts | 61 - wip/phaser tests/collision/falling balls.js | 45 - wip/phaser tests/collision/falling balls.ts | 72 - .../collision/mask animation 1.js | 31 - .../collision/mask animation 1.ts | 50 - wip/phaser tests/collision/mask test 1.js | 38 - wip/phaser tests/collision/mask test 1.ts | 64 - wip/phaser tests/collision/mask test 2.js | 35 - wip/phaser tests/collision/mask test 2.ts | 62 - wip/phaser tests/geometry/circle.js | 19 - wip/phaser tests/geometry/circle.ts | 30 - wip/phaser tests/geometry/line.js | 27 - wip/phaser tests/geometry/line.ts | 40 - wip/phaser tests/geometry/multi rotate.js | 31 - wip/phaser tests/geometry/multi rotate.ts | 49 - wip/phaser tests/geometry/point.js | 21 - wip/phaser tests/geometry/point.ts | 33 - wip/phaser tests/geometry/rect vs rect.js | 22 - wip/phaser tests/geometry/rect vs rect.ts | 41 - wip/phaser tests/geometry/rectangle.js | 24 - wip/phaser tests/geometry/rectangle.ts | 43 - wip/phaser tests/geometry/rope bridge.js | 34 - wip/phaser tests/geometry/rope bridge.ts | 55 - wip/phaser tests/geometry/rotate point 1.js | 21 - wip/phaser tests/geometry/rotate point 1.ts | 36 - wip/phaser tests/geometry/rotate point 2.js | 43 - wip/phaser tests/geometry/rotate point 2.ts | 62 - wip/phaser tests/geometry/rotate point 3.js | 71 - wip/phaser tests/geometry/rotate point 3.ts | 95 - wip/phaser tests/geometry/rotate point 4.js | 54 - wip/phaser tests/geometry/rotate point 4.ts | 82 - wip/phaser tests/geometry/verlet 1.js | 26 - wip/phaser tests/geometry/verlet 1.ts | 33 - wip/phaser tests/geometry/verlet sprites.js | 34 - wip/phaser tests/geometry/verlet sprites.ts | 53 - wip/phaser tests/mini games/formula 1.js | 36 - wip/phaser tests/mini games/formula 1.ts | 59 - wip/phaser tests/misc/multi game.js | 58 - wip/phaser tests/misc/multi game.ts | 104 - wip/phaser tests/misc/time.js | 33 - wip/phaser tests/misc/time.ts | 58 - wip/phaser tests/mobile/bunny mobile.js | 58 - wip/phaser tests/mobile/bunny mobile.ts | 94 - wip/phaser tests/mobile/fullscreen.html | 62 - wip/phaser tests/mobile/sprite test 1.js | 46 - wip/phaser tests/mobile/sprite test 1.ts | 73 - wip/phaser tests/particles/basic emitter.js | 11 - wip/phaser tests/particles/basic emitter.ts | 18 - wip/phaser tests/particles/graphic emitter.js | 14 - wip/phaser tests/particles/graphic emitter.ts | 25 - wip/phaser tests/particles/mousetrail.js | 23 - wip/phaser tests/particles/mousetrail.ts | 38 - .../particles/multiple streams.js | 49 - .../particles/multiple streams.ts | 73 - wip/phaser tests/particles/sprite emitter.js | 46 - wip/phaser tests/particles/sprite emitter.ts | 52 - .../particles/when particles collide.js | 30 - .../particles/when particles collide.ts | 47 - wip/phaser tests/physics/temp1.js | 113 - wip/phaser tests/physics/temp1.ts | 200 - wip/phaser tests/physics/temp2.js | 1413 - wip/phaser tests/physics/temp2.ts | 1934 - wip/phaser tests/sprites/animation 1.js | 32 - wip/phaser tests/sprites/animation 1.ts | 55 - wip/phaser tests/sprites/dynamic texture 2.js | 78 - wip/phaser tests/sprites/dynamic texture 2.ts | 109 - wip/phaser tests/sprites/flipped.js | 42 - wip/phaser tests/sprites/flipped.ts | 64 - wip/phaser tests/sprites/mark of the bunny.js | 56 - wip/phaser tests/sprites/mark of the bunny.ts | 89 - wip/phaser tests/sprites/rotation.js | 22 - wip/phaser tests/sprites/rotation.ts | 39 - wip/phaser tests/sprites/velocity.js | 33 - wip/phaser tests/sprites/velocity.ts | 58 - wip/phaser tests/tilemap/basic tilemap.js | 50 - wip/phaser tests/tilemap/basic tilemap.ts | 82 - wip/phaser tests/tilemap/collide with tile.js | 66 - wip/phaser tests/tilemap/collide with tile.ts | 96 - wip/phaser tests/tilemap/collision.js | 63 - wip/phaser tests/tilemap/collision.ts | 88 - wip/phaser tests/tilemap/fill tiles.js | 54 - wip/phaser tests/tilemap/fill tiles.ts | 86 - wip/phaser tests/tilemap/get tile.js | 49 - wip/phaser tests/tilemap/get tile.ts | 78 - wip/phaser tests/tilemap/map draw.js | 39 - wip/phaser tests/tilemap/map draw.ts | 58 - wip/phaser tests/tilemap/put tile.js | 52 - wip/phaser tests/tilemap/put tile.ts | 83 - wip/phaser tests/tilemap/random tiles.js | 60 - wip/phaser tests/tilemap/random tiles.ts | 85 - wip/phaser tests/tilemap/replace tiles.js | 53 - wip/phaser tests/tilemap/replace tiles.ts | 85 - wip/phaser tests/tilemap/small map.js | 42 - wip/phaser tests/tilemap/small map.ts | 66 - wip/phaser tests/tilemap/sprite draw tiles.js | 36 - wip/phaser tests/tilemap/sprite draw tiles.ts | 59 - wip/phaser tests/tilemap/swap tiles.js | 53 - wip/phaser tests/tilemap/swap tiles.ts | 85 - wip/verlet/AngleConstraint.js | 59 - wip/verlet/AngleConstraint.ts | 74 - wip/verlet/Composite.js | 144 - wip/verlet/Composite.ts | 203 - wip/verlet/DistanceConstraint.js | 52 - wip/verlet/DistanceConstraint.ts | 70 - wip/verlet/Particle.js | 36 - wip/verlet/Particle.ts | 44 - wip/verlet/PinConstraint.js | 39 - wip/verlet/PinConstraint.ts | 48 - wip/verlet/VerletManager.js | 271 - wip/verlet/VerletManager.ts | 411 - 774 files changed, 1717 insertions(+), 123045 deletions(-) delete mode 100644 docs/DOMSprite.js.html delete mode 100644 docs/IntroDocs.js.html delete mode 100644 docs/Phaser.DOMSprite.html delete mode 100644 docs/Phaser.Physics.Arcade.Body.html delete mode 100644 docs/Phaser.QuadTree.html delete mode 100644 docs/QuadTree.js.html delete mode 100644 docs/SAT.js.html delete mode 100644 resources/wip/01_phaser-arcade.jpg delete mode 100644 resources/wip/02_phaser-newsletter.jpg delete mode 100644 resources/wip/32x32_t.png delete mode 100644 resources/wip/Degree-Radian_Conversion.svg delete mode 100644 resources/wip/Physics Comparison.xlsx delete mode 100644 resources/wip/phaser-manual_2013-08-27.pdf delete mode 100644 resources/wip/phaser_copy.doc delete mode 100644 resources/wip/phaser_onscreen-controls_1-arcade.png delete mode 100644 resources/wip/phaser_onscreen-controls_2-dpad.png delete mode 100644 resources/wip/phaser_onscreen-controls_3-generic.png delete mode 100644 resources/wip/rotations.png delete mode 100644 resources/wip/sprites/avoid-digits.png delete mode 100644 resources/wip/sprites/avoid-panel.png delete mode 100644 resources/wip/sprites/avoid-sheet.png delete mode 100644 resources/wip/sprites/avoidmock4x2.png delete mode 100644 resources/wip/sprites/box-01.png delete mode 100644 resources/wip/sprites/box-02.png delete mode 100644 resources/wip/sprites/breakout2c.png delete mode 100644 resources/wip/sprites/orbit/1 logo.png delete mode 100644 resources/wip/sprites/orbit/2 menu.png delete mode 100644 resources/wip/sprites/orbit/3 bg.png delete mode 100644 resources/wip/sprites/orbit/breakout4logo.gif delete mode 100644 resources/wip/sprites/orbit/brick-bgtiles.png delete mode 100644 resources/wip/sprites/orbit/brick-bricks.png delete mode 100644 resources/wip/sprites/orbit/brick-frame.png delete mode 100644 resources/wip/sprites/orbit/brick-score.png delete mode 100644 resources/wip/sprites/orbit/brick-sprites.png delete mode 100644 resources/wip/sprites/phaser checkboxes.gif delete mode 100644 resources/wip/sprites/phaser power tools.gif delete mode 100644 resources/wip/sprites/phaser sprites10.gif delete mode 100644 resources/wip/sprites/phaser sprites11.gif delete mode 100644 wip/Body-Debug.js delete mode 100644 wip/CameraFX/Border.ts delete mode 100644 wip/CameraFX/Fade.ts delete mode 100644 wip/CameraFX/Flash.ts delete mode 100644 wip/CameraFX/Mirror.ts delete mode 100644 wip/CameraFX/Scanlines.ts delete mode 100644 wip/CameraFX/Shadow.ts delete mode 100644 wip/CameraFX/Shake.ts delete mode 100644 wip/TS Source/Game.ts delete mode 100644 wip/TS Source/Phaser.ts delete mode 100644 wip/TS Source/Stage.ts delete mode 100644 wip/TS Source/State.ts delete mode 100644 wip/TS Source/Statics.ts delete mode 100644 wip/TS Source/World.ts delete mode 100644 wip/TS Source/_definitions.ts delete mode 100644 wip/TS Source/animation/Animation.ts delete mode 100644 wip/TS Source/animation/AnimationManager.ts delete mode 100644 wip/TS Source/animation/Frame.ts delete mode 100644 wip/TS Source/animation/FrameData.ts delete mode 100644 wip/TS Source/cameras/Camera.ts delete mode 100644 wip/TS Source/cameras/CameraManager.ts delete mode 100644 wip/TS Source/core/Group.ts delete mode 100644 wip/TS Source/core/Plugin.ts delete mode 100644 wip/TS Source/core/PluginManager.ts delete mode 100644 wip/TS Source/core/Signal.ts delete mode 100644 wip/TS Source/core/SignalBinding.ts delete mode 100644 wip/TS Source/display/CSS3Filters.ts delete mode 100644 wip/TS Source/display/DynamicTexture.ts delete mode 100644 wip/TS Source/display/Texture.ts delete mode 100644 wip/TS Source/gameobjects/Events.ts delete mode 100644 wip/TS Source/gameobjects/GameObjectFactory.ts delete mode 100644 wip/TS Source/gameobjects/IGameObject.ts delete mode 100644 wip/TS Source/gameobjects/ScrollRegion.ts delete mode 100644 wip/TS Source/gameobjects/ScrollZone.ts delete mode 100644 wip/TS Source/gameobjects/Sprite.ts delete mode 100644 wip/TS Source/gameobjects/TransformManager.ts delete mode 100644 wip/TS Source/geom/Circle.ts delete mode 100644 wip/TS Source/geom/Line.ts delete mode 100644 wip/TS Source/geom/Point.ts delete mode 100644 wip/TS Source/geom/Rectangle.ts delete mode 100644 wip/TS Source/input/InputHandler.ts delete mode 100644 wip/TS Source/input/InputManager.ts delete mode 100644 wip/TS Source/input/Keyboard.ts delete mode 100644 wip/TS Source/input/MSPointer.ts delete mode 100644 wip/TS Source/input/Mouse.ts delete mode 100644 wip/TS Source/input/Pointer.ts delete mode 100644 wip/TS Source/input/Touch.ts delete mode 100644 wip/TS Source/loader/AnimationLoader.ts delete mode 100644 wip/TS Source/loader/Cache.ts delete mode 100644 wip/TS Source/loader/Loader.ts delete mode 100644 wip/TS Source/math/GameMath.ts delete mode 100644 wip/TS Source/math/LinkedList.ts delete mode 100644 wip/TS Source/math/Mat3.ts delete mode 100644 wip/TS Source/math/Mat3Utils.ts delete mode 100644 wip/TS Source/math/QuadTree.ts delete mode 100644 wip/TS Source/math/RandomDataGenerator.ts delete mode 100644 wip/TS Source/math/Vec2.ts delete mode 100644 wip/TS Source/math/Vec2Utils.ts delete mode 100644 wip/TS Source/net/Net.ts delete mode 100644 wip/TS Source/particles/Emitter.js delete mode 100644 wip/TS Source/particles/Emitter.js.map delete mode 100644 wip/TS Source/particles/Emitter.ts delete mode 100644 wip/TS Source/particles/NumericalIntegration.js delete mode 100644 wip/TS Source/particles/NumericalIntegration.js.map delete mode 100644 wip/TS Source/particles/NumericalIntegration.ts delete mode 100644 wip/TS Source/particles/Particle.js delete mode 100644 wip/TS Source/particles/Particle.js.map delete mode 100644 wip/TS Source/particles/Particle.ts delete mode 100644 wip/TS Source/particles/ParticleManager.js delete mode 100644 wip/TS Source/particles/ParticleManager.js.map delete mode 100644 wip/TS Source/particles/ParticleManager.ts delete mode 100644 wip/TS Source/particles/ParticlePool.js delete mode 100644 wip/TS Source/particles/ParticlePool.js.map delete mode 100644 wip/TS Source/particles/ParticlePool.ts delete mode 100644 wip/TS Source/particles/ParticleUtils.js delete mode 100644 wip/TS Source/particles/ParticleUtils.js.map delete mode 100644 wip/TS Source/particles/ParticleUtils.ts delete mode 100644 wip/TS Source/particles/Polar2D.js delete mode 100644 wip/TS Source/particles/Polar2D.js.map delete mode 100644 wip/TS Source/particles/Polar2D.ts delete mode 100644 wip/TS Source/particles/Span.js delete mode 100644 wip/TS Source/particles/Span.js.map delete mode 100644 wip/TS Source/particles/Span.ts delete mode 100644 wip/TS Source/particles/behaviours/Behaviour.js delete mode 100644 wip/TS Source/particles/behaviours/Behaviour.js.map delete mode 100644 wip/TS Source/particles/behaviours/Behaviour.ts delete mode 100644 wip/TS Source/particles/behaviours/RandomDrift.js delete mode 100644 wip/TS Source/particles/behaviours/RandomDrift.js.map delete mode 100644 wip/TS Source/particles/behaviours/RandomDrift.ts delete mode 100644 wip/TS Source/particles/initialize/Initialize.js delete mode 100644 wip/TS Source/particles/initialize/Initialize.js.map delete mode 100644 wip/TS Source/particles/initialize/Initialize.ts delete mode 100644 wip/TS Source/particles/initialize/Life.js delete mode 100644 wip/TS Source/particles/initialize/Life.js.map delete mode 100644 wip/TS Source/particles/initialize/Life.ts delete mode 100644 wip/TS Source/particles/initialize/Mass.js delete mode 100644 wip/TS Source/particles/initialize/Mass.js.map delete mode 100644 wip/TS Source/particles/initialize/Mass.ts delete mode 100644 wip/TS Source/particles/initialize/Position.js delete mode 100644 wip/TS Source/particles/initialize/Position.js.map delete mode 100644 wip/TS Source/particles/initialize/Position.ts delete mode 100644 wip/TS Source/particles/initialize/Radius.ts delete mode 100644 wip/TS Source/particles/initialize/Rate.js delete mode 100644 wip/TS Source/particles/initialize/Rate.js.map delete mode 100644 wip/TS Source/particles/initialize/Rate.ts delete mode 100644 wip/TS Source/particles/initialize/Velocity.js delete mode 100644 wip/TS Source/particles/initialize/Velocity.js.map delete mode 100644 wip/TS Source/particles/initialize/Velocity.ts delete mode 100644 wip/TS Source/particles/zone/PointZone.js delete mode 100644 wip/TS Source/particles/zone/PointZone.js.map delete mode 100644 wip/TS Source/particles/zone/PointZone.ts delete mode 100644 wip/TS Source/particles/zone/Zone.js delete mode 100644 wip/TS Source/particles/zone/Zone.js.map delete mode 100644 wip/TS Source/particles/zone/Zone.ts delete mode 100644 wip/TS Source/physics/AABB.ts delete mode 100644 wip/TS Source/physics/Body.ts delete mode 100644 wip/TS Source/physics/Circle.ts delete mode 100644 wip/TS Source/physics/PhysicsManager.ts delete mode 100644 wip/TS Source/physics/TileMapCell.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABB22Deg.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABB45Deg.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABB67Deg.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABBConcave.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABBConvex.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABBFull.ts delete mode 100644 wip/TS Source/physics/aabb/ProjAABBHalf.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircle22Deg.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircle45Deg.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircle67Deg.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircleConcave.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircleConvex.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircleFull.ts delete mode 100644 wip/TS Source/physics/circle/ProjCircleHalf.ts delete mode 100644 wip/TS Source/renderers/HeadlessRenderer.ts delete mode 100644 wip/TS Source/renderers/IRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/CameraRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/CanvasRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/GeometryRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/GroupRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/ScrollZoneRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/SpriteRenderer.ts delete mode 100644 wip/TS Source/renderers/canvas/TilemapRenderer.ts delete mode 100644 wip/TS Source/sound/Sound.ts delete mode 100644 wip/TS Source/sound/SoundManager.ts delete mode 100644 wip/TS Source/system/Device.ts delete mode 100644 wip/TS Source/system/RequestAnimationFrame.ts delete mode 100644 wip/TS Source/system/StageScaleMode.ts delete mode 100644 wip/TS Source/system/screens/BootScreen.ts delete mode 100644 wip/TS Source/system/screens/OrientationScreen.ts delete mode 100644 wip/TS Source/system/screens/PauseScreen.ts delete mode 100644 wip/TS Source/tilemap/Tile.ts delete mode 100644 wip/TS Source/tilemap/Tilemap.ts delete mode 100644 wip/TS Source/tilemap/TilemapLayer.ts delete mode 100644 wip/TS Source/time/TimeManager.ts delete mode 100644 wip/TS Source/tweens/Tween.ts delete mode 100644 wip/TS Source/tweens/TweenManager.ts delete mode 100644 wip/TS Source/tweens/easing/Back.ts delete mode 100644 wip/TS Source/tweens/easing/Bounce.ts delete mode 100644 wip/TS Source/tweens/easing/Circular.ts delete mode 100644 wip/TS Source/tweens/easing/Cubic.ts delete mode 100644 wip/TS Source/tweens/easing/Elastic.ts delete mode 100644 wip/TS Source/tweens/easing/Exponential.ts delete mode 100644 wip/TS Source/tweens/easing/Linear.ts delete mode 100644 wip/TS Source/tweens/easing/Quadratic.ts delete mode 100644 wip/TS Source/tweens/easing/Quartic.ts delete mode 100644 wip/TS Source/tweens/easing/Quintic.ts delete mode 100644 wip/TS Source/tweens/easing/Sinusoidal.ts delete mode 100644 wip/TS Source/ui/Button.ts delete mode 100644 wip/TS Source/utils/CanvasUtils.ts delete mode 100644 wip/TS Source/utils/CircleUtils.ts delete mode 100644 wip/TS Source/utils/ColorUtils.ts delete mode 100644 wip/TS Source/utils/DebugUtils.ts delete mode 100644 wip/TS Source/utils/PointUtils.ts delete mode 100644 wip/TS Source/utils/RectangleUtils.ts delete mode 100644 wip/TS Source/utils/SpriteUtils.ts delete mode 100644 wip/TS Tests/audio/audio sprites 1.ts delete mode 100644 wip/TS Tests/audio/play sound 1.ts delete mode 100644 wip/TS Tests/buttons/basic button 2.ts delete mode 100644 wip/TS Tests/buttons/basic button.ts delete mode 100644 wip/TS Tests/buttons/camera buttons.ts delete mode 100644 wip/TS Tests/buttons/rotated buttons.ts delete mode 100644 wip/TS Tests/camera fx/fade.ts delete mode 100644 wip/TS Tests/camera fx/mirror.ts delete mode 100644 wip/TS Tests/camera fx/scanlines.ts delete mode 100644 wip/TS Tests/cameras/basic camera 1.ts delete mode 100644 wip/TS Tests/cameras/basic follow.ts delete mode 100644 wip/TS Tests/cameras/camera alpha.ts delete mode 100644 wip/TS Tests/cameras/camera fx 1.ts delete mode 100644 wip/TS Tests/cameras/camera fx 2.ts delete mode 100644 wip/TS Tests/cameras/camera fx 3.ts delete mode 100644 wip/TS Tests/cameras/camera rotation.ts delete mode 100644 wip/TS Tests/cameras/camera scale.ts delete mode 100644 wip/TS Tests/cameras/camera texture.ts delete mode 100644 wip/TS Tests/cameras/follow styles.ts delete mode 100644 wip/TS Tests/cameras/hide from camera.ts delete mode 100644 wip/TS Tests/cameras/multi camera.ts delete mode 100644 wip/TS Tests/cameras/scrollfactor 1.ts delete mode 100644 wip/TS Tests/cameras/scrollfactor 2.ts delete mode 100644 wip/TS Tests/cameras/scrollfactor compare.ts delete mode 100644 wip/TS Tests/cameras/world sprite.ts delete mode 100644 wip/TS Tests/display/render crisp.ts delete mode 100644 wip/TS Tests/groups/add to group 1.ts delete mode 100644 wip/TS Tests/groups/add to group 2.ts delete mode 100644 wip/TS Tests/groups/bring to top 1.ts delete mode 100644 wip/TS Tests/groups/bring to top.ts delete mode 100644 wip/TS Tests/groups/call all.ts delete mode 100644 wip/TS Tests/groups/create group 1.ts delete mode 100644 wip/TS Tests/groups/direct render.ts delete mode 100644 wip/TS Tests/groups/display order.ts delete mode 100644 wip/TS Tests/groups/for each.ts delete mode 100644 wip/TS Tests/groups/get first 1.ts delete mode 100644 wip/TS Tests/groups/get first 2.ts delete mode 100644 wip/TS Tests/groups/get first 3.ts delete mode 100644 wip/TS Tests/groups/group as layer.ts delete mode 100644 wip/TS Tests/groups/group transform 1.ts delete mode 100644 wip/TS Tests/groups/group transform 2.ts delete mode 100644 wip/TS Tests/groups/group transform 3.ts delete mode 100644 wip/TS Tests/groups/recycle 1.ts delete mode 100644 wip/TS Tests/groups/recycle 2.ts delete mode 100644 wip/TS Tests/groups/remove.ts delete mode 100644 wip/TS Tests/groups/replace.ts delete mode 100644 wip/TS Tests/groups/set all.ts delete mode 100644 wip/TS Tests/groups/sort 1.ts delete mode 100644 wip/TS Tests/groups/sort 2.ts delete mode 100644 wip/TS Tests/groups/sub groups.ts delete mode 100644 wip/TS Tests/groups/swap children.ts delete mode 100644 wip/TS Tests/input/bring to top.ts delete mode 100644 wip/TS Tests/input/drag sprite 1.ts delete mode 100644 wip/TS Tests/input/drag sprite 2.ts delete mode 100644 wip/TS Tests/input/drag sprite 3.ts delete mode 100644 wip/TS Tests/input/drop limitation.ts delete mode 100644 wip/TS Tests/input/game scale 1.ts delete mode 100644 wip/TS Tests/input/keyboard 1.ts delete mode 100644 wip/TS Tests/input/keyboard 2.ts delete mode 100644 wip/TS Tests/input/motion lock 2.ts delete mode 100644 wip/TS Tests/input/motion lock.ts delete mode 100644 wip/TS Tests/input/multitouch.ts delete mode 100644 wip/TS Tests/input/over sprite 1.ts delete mode 100644 wip/TS Tests/input/over sprite 2.ts delete mode 100644 wip/TS Tests/input/point in rotated sprite.ts delete mode 100644 wip/TS Tests/input/rotated sprites.ts delete mode 100644 wip/TS Tests/input/snap 1.ts delete mode 100644 wip/TS Tests/input/touch priority.ts delete mode 100644 wip/TS Tests/input/world coordinates.ts delete mode 100644 wip/TS Tests/input/world drag.ts delete mode 100644 wip/TS Tests/misc/boot screen.ts delete mode 100644 wip/TS Tests/misc/color utils 1.ts delete mode 100644 wip/TS Tests/misc/color utils 2.ts delete mode 100644 wip/TS Tests/misc/color utils 3.ts delete mode 100644 wip/TS Tests/misc/dynamic texture 1.ts delete mode 100644 wip/TS Tests/misc/dynamic texture 2.ts delete mode 100644 wip/TS Tests/misc/dynamic texture 3.ts delete mode 100644 wip/TS Tests/misc/point1.ts delete mode 100644 wip/TS Tests/misc/point2.ts delete mode 100644 wip/TS Tests/misc/point3.ts delete mode 100644 wip/TS Tests/misc/rectangle utils 1.ts delete mode 100644 wip/TS Tests/misc/rectangle utils 2.ts delete mode 100644 wip/TS Tests/mobile/fullscreen.html delete mode 100644 wip/TS Tests/mobile/sprite test 1.js delete mode 100644 wip/TS Tests/mobile/sprite test 1.ts delete mode 100644 wip/TS Tests/mobile/test1.html delete mode 100644 wip/TS Tests/particles/graphic emitter.ts delete mode 100644 wip/TS Tests/particles/mousetrail.ts delete mode 100644 wip/TS Tests/particles/multiple streams.ts delete mode 100644 wip/TS Tests/particles/sprite emitter.ts delete mode 100644 wip/TS Tests/particles/when particles collide.ts delete mode 100644 wip/TS Tests/physics/circle 1.ts delete mode 100644 wip/TS Tests/physics/sprite bounds.ts delete mode 100644 wip/TS Tests/scrollzones/ballscroller.ts delete mode 100644 wip/TS Tests/scrollzones/blasteroids.ts delete mode 100644 wip/TS Tests/scrollzones/parallax.ts delete mode 100644 wip/TS Tests/scrollzones/region demo.ts delete mode 100644 wip/TS Tests/scrollzones/scroll window.ts delete mode 100644 wip/TS Tests/scrollzones/simple scrollzone.ts delete mode 100644 wip/TS Tests/scrollzones/skewed scroller.ts delete mode 100644 wip/TS Tests/sprites/alpha.ts delete mode 100644 wip/TS Tests/sprites/animate by framename.ts delete mode 100644 wip/TS Tests/sprites/animation 1.ts delete mode 100644 wip/TS Tests/sprites/animation 2.ts delete mode 100644 wip/TS Tests/sprites/create sprite 1.ts delete mode 100644 wip/TS Tests/sprites/origin 5.ts delete mode 100644 wip/TS Tests/sprites/out of screen.ts delete mode 100644 wip/TS Tests/sprites/rotate around.ts delete mode 100644 wip/TS Tests/sprites/scale sprite 1.ts delete mode 100644 wip/TS Tests/sprites/scale sprite 2.ts delete mode 100644 wip/TS Tests/sprites/scale sprite 3.ts delete mode 100644 wip/TS Tests/sprites/scale sprite 4.ts delete mode 100644 wip/TS Tests/sprites/scale sprite 5.ts delete mode 100644 wip/TS Tests/sprites/sprite origin 1.ts delete mode 100644 wip/TS Tests/sprites/sprite origin 2.ts delete mode 100644 wip/TS Tests/sprites/sprite origin 3.ts delete mode 100644 wip/TS Tests/sprites/sprite origin 4.ts delete mode 100644 wip/TS Tests/stage/blur filter.ts delete mode 100644 wip/TS Tests/stage/brightness filter.ts delete mode 100644 wip/TS Tests/stage/contrast filter.ts delete mode 100644 wip/TS Tests/stage/grayscale filter.ts delete mode 100644 wip/TS Tests/stage/hue rotate filter.ts delete mode 100644 wip/TS Tests/stage/sepia filter.ts delete mode 100644 wip/TS Tests/states/javascript/FakeGame.js delete mode 100644 wip/TS Tests/states/javascript/MainMenu.js delete mode 100644 wip/TS Tests/states/javascript/index.html delete mode 100644 wip/TS Tests/states/typescript/FakeGame.ts delete mode 100644 wip/TS Tests/states/typescript/MainMenu.ts delete mode 100644 wip/TS Tests/states/typescript/index.html delete mode 100644 wip/TS Tests/template_breakout/Boot.js delete mode 100644 wip/TS Tests/template_breakout/Boot.ts delete mode 100644 wip/TS Tests/template_breakout/GameState.js delete mode 100644 wip/TS Tests/template_breakout/GameState.ts delete mode 100644 wip/TS Tests/template_breakout/Main.js delete mode 100644 wip/TS Tests/template_breakout/Main.ts delete mode 100644 wip/TS Tests/template_breakout/MainMenu.js delete mode 100644 wip/TS Tests/template_breakout/MainMenu.ts delete mode 100644 wip/TS Tests/template_breakout/Preloader.js delete mode 100644 wip/TS Tests/template_breakout/Preloader.ts delete mode 100644 wip/TS Tests/template_breakout/assets/breakout.json delete mode 100644 wip/TS Tests/template_breakout/assets/breakout.png delete mode 100644 wip/TS Tests/template_breakout/assets/main_menu.mp3 delete mode 100644 wip/TS Tests/template_breakout/assets/main_menu.ogg delete mode 100644 wip/TS Tests/template_breakout/assets/play_button.png delete mode 100644 wip/TS Tests/template_breakout/assets/preloader_background.gif delete mode 100644 wip/TS Tests/template_breakout/assets/preloadr_bar.png delete mode 100644 wip/TS Tests/template_breakout/assets/starfield.jpg delete mode 100644 wip/TS Tests/template_breakout/assets/title.gif delete mode 100644 wip/TS Tests/template_breakout/phaser.d.ts delete mode 100644 wip/TS Tests/template_breakout/phaser.js delete mode 100644 wip/TS Tests/textures/dynamic texture 1.ts delete mode 100644 wip/TS Tests/textures/dynamic texture 2.ts delete mode 100644 wip/TS Tests/textures/filter test.ts delete mode 100644 wip/TS Tests/textures/starling texture atlas.ts delete mode 100644 wip/TS Tests/textures/texture atlas 1.ts delete mode 100644 wip/TS Tests/textures/texture atlas 2.ts delete mode 100644 wip/TS Tests/textures/texture atlas 3.ts delete mode 100644 wip/TS Tests/textures/texture atlas 4.ts delete mode 100644 wip/TS Tests/tilemaps/csv tilemap.ts delete mode 100644 wip/TS Tests/tilemaps/map draw.ts delete mode 100644 wip/TS Tests/tilemaps/tiled layers.ts delete mode 100644 wip/TS Tests/tilemaps/tiled tilemap.ts delete mode 100644 wip/TS Tests/tweens/bounce.ts delete mode 100644 wip/TS Tests/tweens/easing example 1.ts delete mode 100644 wip/TS Tests/tweens/easing example 2.ts delete mode 100644 wip/TS Tests/tweens/easing example 3.ts delete mode 100644 wip/TS Tests/tweens/easing example 4.ts delete mode 100644 wip/TS Tests/tweens/easing example 5.ts delete mode 100644 wip/TS Tests/tweens/easing example 6.ts delete mode 100644 wip/TS Tests/tweens/pause test.ts delete mode 100644 wip/TS Tests/tweens/tween loop 1.ts delete mode 100644 wip/TS Tests/tweens/tween loop 2.ts delete mode 100644 wip/examples/consoleBanner.php delete mode 100644 wip/examples/consoleBanner2.php delete mode 100644 wip/examples/consoleBanner3.php delete mode 100644 wip/examples/flow.php delete mode 100644 wip/examples/flow2.php delete mode 100644 wip/examples/flow3.php delete mode 100644 wip/examples/flow4.php delete mode 100644 wip/examples/flow5.php delete mode 100644 wip/examples/flow6.php delete mode 100644 wip/examples/mariocombo/assets/mario1.json delete mode 100644 wip/examples/mariocombo/assets/mario1.png delete mode 100644 wip/examples/mariocombo/assets/phaser.png delete mode 100644 wip/examples/mariocombo/assets/smb_level1.json delete mode 100644 wip/examples/mariocombo/assets/smb_tiles.png delete mode 100644 wip/examples/mariocombo/index.php delete mode 100644 wip/examples/mariocombo/ohballs.php delete mode 100644 wip/examples/mariocombo/particles.php delete mode 100644 wip/examples/net.html delete mode 100644 wip/examples/outofbounds.php delete mode 100644 wip/examples/particles.php delete mode 100644 wip/examples/pixelpick.php delete mode 100644 wip/examples/pixelpick2.php delete mode 100644 wip/examples/pixelpick3.php delete mode 100644 wip/examples/plugin1.php delete mode 100644 wip/examples/state/Game.js delete mode 100644 wip/examples/state/MainMenu.js delete mode 100644 wip/examples/state/Preloader.js delete mode 100644 wip/examples/state/index.php delete mode 100644 wip/examples/state/js.php delete mode 100644 wip/examples/supermario.php delete mode 100644 wip/examples/supermario2.php delete mode 100644 wip/old_Sprite.js delete mode 100644 wip/phaser clean up/GeomSprite.ts delete mode 100644 wip/phaser clean up/N_tutorialAsrc.zip delete mode 100644 wip/phaser clean up/N_tutorialAsrc/tutA_demo05.fla delete mode 100644 wip/phaser clean up/N_tutorialAsrc/tutA_demo05.swf delete mode 100644 wip/phaser clean up/N_tutorialBsrc/tutB_demo04.fla delete mode 100644 wip/phaser clean up/N_tutorialBsrc/tutB_demo04.swf delete mode 100644 wip/phaser clean up/SAT.zip delete mode 100644 wip/phaser clean up/fitc/FITC_beyondHittest.txt delete mode 100644 wip/phaser clean up/fitc/FITC_beyondHittest07.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_boxbox_projection.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_boxcells.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_boxprojection.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_circlebox.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_frictionbounce.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_projdotprod.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_rawdotprod.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_unitdotprod.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_unitvector.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_vector.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_vectornormals.swf delete mode 100644 wip/phaser clean up/fitc/media/N_tutorial_diagrams05_vectorprojection.swf delete mode 100644 wip/phaser clean up/temp1.ts delete mode 100644 wip/phaser clean up/temp2.ts delete mode 100644 wip/phaser tests/camera fx/fade.js delete mode 100644 wip/phaser tests/camera fx/fade.ts delete mode 100644 wip/phaser tests/camera fx/flash.js delete mode 100644 wip/phaser tests/camera fx/flash.ts delete mode 100644 wip/phaser tests/camera fx/shake.js delete mode 100644 wip/phaser tests/camera fx/shake.ts delete mode 100644 wip/phaser tests/cameras/camera alpha.js delete mode 100644 wip/phaser tests/cameras/camera alpha.ts delete mode 100644 wip/phaser tests/cameras/camera bounds.js delete mode 100644 wip/phaser tests/cameras/camera bounds.ts delete mode 100644 wip/phaser tests/cameras/camera position.js delete mode 100644 wip/phaser tests/cameras/camera position.ts delete mode 100644 wip/phaser tests/cameras/camera rotation.js delete mode 100644 wip/phaser tests/cameras/camera rotation.ts delete mode 100644 wip/phaser tests/cameras/camera scale.js delete mode 100644 wip/phaser tests/cameras/camera scale.ts delete mode 100644 wip/phaser tests/cameras/camera shadow.js delete mode 100644 wip/phaser tests/cameras/camera shadow.ts delete mode 100644 wip/phaser tests/cameras/camera texture.js delete mode 100644 wip/phaser tests/cameras/camera texture.ts delete mode 100644 wip/phaser tests/cameras/focus on.js delete mode 100644 wip/phaser tests/cameras/focus on.ts delete mode 100644 wip/phaser tests/cameras/follow deadzone.js delete mode 100644 wip/phaser tests/cameras/follow deadzone.ts delete mode 100644 wip/phaser tests/cameras/follow sprite.js delete mode 100644 wip/phaser tests/cameras/follow sprite.ts delete mode 100644 wip/phaser tests/cameras/follow topdown.js delete mode 100644 wip/phaser tests/cameras/follow topdown.ts delete mode 100644 wip/phaser tests/cameras/multicam1.js delete mode 100644 wip/phaser tests/cameras/multicam1.ts delete mode 100644 wip/phaser tests/cameras/scroll factor.js delete mode 100644 wip/phaser tests/cameras/scroll factor.ts delete mode 100644 wip/phaser tests/collision/collide sprites.js delete mode 100644 wip/phaser tests/collision/collide sprites.ts delete mode 100644 wip/phaser tests/collision/falling balls.js delete mode 100644 wip/phaser tests/collision/falling balls.ts delete mode 100644 wip/phaser tests/collision/mask animation 1.js delete mode 100644 wip/phaser tests/collision/mask animation 1.ts delete mode 100644 wip/phaser tests/collision/mask test 1.js delete mode 100644 wip/phaser tests/collision/mask test 1.ts delete mode 100644 wip/phaser tests/collision/mask test 2.js delete mode 100644 wip/phaser tests/collision/mask test 2.ts delete mode 100644 wip/phaser tests/geometry/circle.js delete mode 100644 wip/phaser tests/geometry/circle.ts delete mode 100644 wip/phaser tests/geometry/line.js delete mode 100644 wip/phaser tests/geometry/line.ts delete mode 100644 wip/phaser tests/geometry/multi rotate.js delete mode 100644 wip/phaser tests/geometry/multi rotate.ts delete mode 100644 wip/phaser tests/geometry/point.js delete mode 100644 wip/phaser tests/geometry/point.ts delete mode 100644 wip/phaser tests/geometry/rect vs rect.js delete mode 100644 wip/phaser tests/geometry/rect vs rect.ts delete mode 100644 wip/phaser tests/geometry/rectangle.js delete mode 100644 wip/phaser tests/geometry/rectangle.ts delete mode 100644 wip/phaser tests/geometry/rope bridge.js delete mode 100644 wip/phaser tests/geometry/rope bridge.ts delete mode 100644 wip/phaser tests/geometry/rotate point 1.js delete mode 100644 wip/phaser tests/geometry/rotate point 1.ts delete mode 100644 wip/phaser tests/geometry/rotate point 2.js delete mode 100644 wip/phaser tests/geometry/rotate point 2.ts delete mode 100644 wip/phaser tests/geometry/rotate point 3.js delete mode 100644 wip/phaser tests/geometry/rotate point 3.ts delete mode 100644 wip/phaser tests/geometry/rotate point 4.js delete mode 100644 wip/phaser tests/geometry/rotate point 4.ts delete mode 100644 wip/phaser tests/geometry/verlet 1.js delete mode 100644 wip/phaser tests/geometry/verlet 1.ts delete mode 100644 wip/phaser tests/geometry/verlet sprites.js delete mode 100644 wip/phaser tests/geometry/verlet sprites.ts delete mode 100644 wip/phaser tests/mini games/formula 1.js delete mode 100644 wip/phaser tests/mini games/formula 1.ts delete mode 100644 wip/phaser tests/misc/multi game.js delete mode 100644 wip/phaser tests/misc/multi game.ts delete mode 100644 wip/phaser tests/misc/time.js delete mode 100644 wip/phaser tests/misc/time.ts delete mode 100644 wip/phaser tests/mobile/bunny mobile.js delete mode 100644 wip/phaser tests/mobile/bunny mobile.ts delete mode 100644 wip/phaser tests/mobile/fullscreen.html delete mode 100644 wip/phaser tests/mobile/sprite test 1.js delete mode 100644 wip/phaser tests/mobile/sprite test 1.ts delete mode 100644 wip/phaser tests/particles/basic emitter.js delete mode 100644 wip/phaser tests/particles/basic emitter.ts delete mode 100644 wip/phaser tests/particles/graphic emitter.js delete mode 100644 wip/phaser tests/particles/graphic emitter.ts delete mode 100644 wip/phaser tests/particles/mousetrail.js delete mode 100644 wip/phaser tests/particles/mousetrail.ts delete mode 100644 wip/phaser tests/particles/multiple streams.js delete mode 100644 wip/phaser tests/particles/multiple streams.ts delete mode 100644 wip/phaser tests/particles/sprite emitter.js delete mode 100644 wip/phaser tests/particles/sprite emitter.ts delete mode 100644 wip/phaser tests/particles/when particles collide.js delete mode 100644 wip/phaser tests/particles/when particles collide.ts delete mode 100644 wip/phaser tests/physics/temp1.js delete mode 100644 wip/phaser tests/physics/temp1.ts delete mode 100644 wip/phaser tests/physics/temp2.js delete mode 100644 wip/phaser tests/physics/temp2.ts delete mode 100644 wip/phaser tests/sprites/animation 1.js delete mode 100644 wip/phaser tests/sprites/animation 1.ts delete mode 100644 wip/phaser tests/sprites/dynamic texture 2.js delete mode 100644 wip/phaser tests/sprites/dynamic texture 2.ts delete mode 100644 wip/phaser tests/sprites/flipped.js delete mode 100644 wip/phaser tests/sprites/flipped.ts delete mode 100644 wip/phaser tests/sprites/mark of the bunny.js delete mode 100644 wip/phaser tests/sprites/mark of the bunny.ts delete mode 100644 wip/phaser tests/sprites/rotation.js delete mode 100644 wip/phaser tests/sprites/rotation.ts delete mode 100644 wip/phaser tests/sprites/velocity.js delete mode 100644 wip/phaser tests/sprites/velocity.ts delete mode 100644 wip/phaser tests/tilemap/basic tilemap.js delete mode 100644 wip/phaser tests/tilemap/basic tilemap.ts delete mode 100644 wip/phaser tests/tilemap/collide with tile.js delete mode 100644 wip/phaser tests/tilemap/collide with tile.ts delete mode 100644 wip/phaser tests/tilemap/collision.js delete mode 100644 wip/phaser tests/tilemap/collision.ts delete mode 100644 wip/phaser tests/tilemap/fill tiles.js delete mode 100644 wip/phaser tests/tilemap/fill tiles.ts delete mode 100644 wip/phaser tests/tilemap/get tile.js delete mode 100644 wip/phaser tests/tilemap/get tile.ts delete mode 100644 wip/phaser tests/tilemap/map draw.js delete mode 100644 wip/phaser tests/tilemap/map draw.ts delete mode 100644 wip/phaser tests/tilemap/put tile.js delete mode 100644 wip/phaser tests/tilemap/put tile.ts delete mode 100644 wip/phaser tests/tilemap/random tiles.js delete mode 100644 wip/phaser tests/tilemap/random tiles.ts delete mode 100644 wip/phaser tests/tilemap/replace tiles.js delete mode 100644 wip/phaser tests/tilemap/replace tiles.ts delete mode 100644 wip/phaser tests/tilemap/small map.js delete mode 100644 wip/phaser tests/tilemap/small map.ts delete mode 100644 wip/phaser tests/tilemap/sprite draw tiles.js delete mode 100644 wip/phaser tests/tilemap/sprite draw tiles.ts delete mode 100644 wip/phaser tests/tilemap/swap tiles.js delete mode 100644 wip/phaser tests/tilemap/swap tiles.ts delete mode 100644 wip/verlet/AngleConstraint.js delete mode 100644 wip/verlet/AngleConstraint.ts delete mode 100644 wip/verlet/Composite.js delete mode 100644 wip/verlet/Composite.ts delete mode 100644 wip/verlet/DistanceConstraint.js delete mode 100644 wip/verlet/DistanceConstraint.ts delete mode 100644 wip/verlet/Particle.js delete mode 100644 wip/verlet/Particle.ts delete mode 100644 wip/verlet/PinConstraint.js delete mode 100644 wip/verlet/PinConstraint.ts delete mode 100644 wip/verlet/VerletManager.js delete mode 100644 wip/verlet/VerletManager.ts diff --git a/docs/Animation.js.html b/docs/Animation.js.html index 87ceb7ce..543fb05f 100644 --- a/docs/Animation.js.html +++ b/docs/Animation.js.html @@ -1001,7 +1001,7 @@ Phaser.Animation.generateFrameNames = function (prefix, start, stop, suffix, zer Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/AnimationManager.js.html b/docs/AnimationManager.js.html index 00442b05..95b378da 100644 --- a/docs/AnimationManager.js.html +++ b/docs/AnimationManager.js.html @@ -959,7 +959,7 @@ Object.defineProperty(Phaser.AnimationManager.prototype, 'frameName', { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/AnimationParser.js.html b/docs/AnimationParser.js.html index a39ea9fa..99275bb3 100644 --- a/docs/AnimationParser.js.html +++ b/docs/AnimationParser.js.html @@ -825,7 +825,7 @@ Phaser.AnimationParser = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/ArcadePhysics.js.html b/docs/ArcadePhysics.js.html index 4c797faf..51027e4b 100644 --- a/docs/ArcadePhysics.js.html +++ b/docs/ArcadePhysics.js.html @@ -1927,7 +1927,7 @@ Phaser.Physics.Arcade.prototype.constructor = Phaser.Physics.Arcade; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/BitmapData.js.html b/docs/BitmapData.js.html index ca4ed830..1dfe0660 100644 --- a/docs/BitmapData.js.html +++ b/docs/BitmapData.js.html @@ -856,7 +856,7 @@ Phaser.BitmapData.prototype = { if (this._dirty) { // Only needed if running in WebGL, otherwise this array will never get cleared down - if (this.game.renderType == Phaser.WEBGL) + if (this.game.renderType === Phaser.WEBGL) { PIXI.texturesToUpdate.push(this.baseTexture); } @@ -890,7 +890,7 @@ Phaser.BitmapData.prototype.constructor = Phaser.BitmapData; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/BitmapFont.js.html b/docs/BitmapFont.js.html index 72b4be78..f0377188 100644 --- a/docs/BitmapFont.js.html +++ b/docs/BitmapFont.js.html @@ -1082,7 +1082,7 @@ Object.defineProperty(Phaser.BitmapFont.prototype, "text", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/BitmapText.js.html b/docs/BitmapText.js.html index d6b83f32..65a420ee 100644 --- a/docs/BitmapText.js.html +++ b/docs/BitmapText.js.html @@ -937,7 +937,7 @@ Object.defineProperty(Phaser.BitmapText.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Body.js.html b/docs/Body.js.html index 7ede3a26..50a6021f 100644 --- a/docs/Body.js.html +++ b/docs/Body.js.html @@ -1958,13 +1958,13 @@ Object.defineProperty(Phaser.Physics.Body.prototype, "x", { get: function () { - return this.p2px(this.data.position[0]); + return this.p2pxi(this.data.position[0]); }, set: function (value) { - this.data.position[0] = this.px2p(value); + this.data.position[0] = this.px2pi(value); } @@ -1978,13 +1978,13 @@ Object.defineProperty(Phaser.Physics.Body.prototype, "y", { get: function () { - return this.p2px(this.data.position[1]); + return this.p2pxi(this.data.position[1]); }, set: function (value) { - this.data.position[1] = this.px2p(value); + this.data.position[1] = this.px2pi(value); } @@ -2010,7 +2010,7 @@ Object.defineProperty(Phaser.Physics.Body.prototype, "y", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Button.js.html b/docs/Button.js.html index a44e621f..12655a41 100644 --- a/docs/Button.js.html +++ b/docs/Button.js.html @@ -1147,7 +1147,7 @@ Phaser.Button.prototype.setState = function (newState) { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Cache.js.html b/docs/Cache.js.html index 3abfe738..0e72d546 100644 --- a/docs/Cache.js.html +++ b/docs/Cache.js.html @@ -540,6 +540,12 @@ Phaser.Cache = function (game) { */ this._text = {}; + /** + * @property {object} _text - Text key-value container. + * @private + */ + this._json = {}; + /** * @property {object} _physics - Physics data key-value container. * @private @@ -640,6 +646,12 @@ Phaser.Cache.BITMAPDATA = 9; */ Phaser.Cache.BITMAPFONT = 10; +/** +* @constant +* @type {number} +*/ +Phaser.Cache.JSON = 11; + Phaser.Cache.prototype = { /** @@ -873,6 +885,20 @@ Phaser.Cache.prototype = { }, + /** + * Add a new json object into the cache. + * + * @method Phaser.Cache#addJSON + * @param {string} key - Asset key for the text data. + * @param {string} url - URL of this text data file. + * @param {object} data - Extra text data. + */ + addJSON: function (key, url, data) { + + this._json[key] = { url: url, data: data }; + + }, + /** * Add a new image. * @@ -1371,6 +1397,26 @@ Phaser.Cache.prototype = { }, + /** + * Get a JSON object by key from the cache. + * + * @method Phaser.Cache#getJSON + * @param {string} key - Asset key of the json object to retrieve from the Cache. + * @return {object} The JSON object. + */ + getJSON: function (key) { + + if (this._json[key]) + { + return this._json[key].data; + } + else + { + console.warn('Phaser.Cache.getJSON: Invalid key: "' + key + '"'); + } + + }, + /** * Get binary data by key. * @@ -1443,6 +1489,10 @@ Phaser.Cache.prototype = { case Phaser.Cache.BITMAPFONT: array = this._bitmapFont; break; + + case Phaser.Cache.JSON: + array = this._json; + break; } if (!array) @@ -1504,6 +1554,16 @@ Phaser.Cache.prototype = { delete this._text[key]; }, + /** + * Removes a json object from the cache. + * + * @method Phaser.Cache#removeJSON + * @param {string} key - Key of the asset you want to remove. + */ + removeJSON: function (key) { + delete this._json[key]; + }, + /** * Removes a physics data file from the cache. * @@ -1581,6 +1641,11 @@ Phaser.Cache.prototype = { delete this._text[item['key']]; } + for (var item in this._json) + { + delete this._json[item['key']]; + } + for (var item in this._textures) { delete this._textures[item['key']]; @@ -1637,7 +1702,7 @@ Phaser.Cache.prototype.constructor = Phaser.Cache; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Camera.js.html b/docs/Camera.js.html index abe7dd44..ca47bd83 100644 --- a/docs/Camera.js.html +++ b/docs/Camera.js.html @@ -940,7 +940,7 @@ Object.defineProperty(Phaser.Camera.prototype, "height", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Canvas.js.html b/docs/Canvas.js.html index 8ba8397b..c2141db7 100644 --- a/docs/Canvas.js.html +++ b/docs/Canvas.js.html @@ -797,7 +797,7 @@ Phaser.Canvas = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Circle.js.html b/docs/Circle.js.html index 6128949d..8072559d 100644 --- a/docs/Circle.js.html +++ b/docs/Circle.js.html @@ -1046,7 +1046,7 @@ PIXI.Circle = Phaser.Circle; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/CollisionGroup.js.html b/docs/CollisionGroup.js.html index 2ebefad1..c65f9550 100644 --- a/docs/CollisionGroup.js.html +++ b/docs/CollisionGroup.js.html @@ -531,7 +531,7 @@ Phaser.Physics.CollisionGroup = function (bitmask) { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Color.js.html b/docs/Color.js.html index c6740e77..ac73684c 100644 --- a/docs/Color.js.html +++ b/docs/Color.js.html @@ -861,7 +861,7 @@ Phaser.Color = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/ContactMaterial.js.html b/docs/ContactMaterial.js.html index 52828ca6..cd2375d7 100644 --- a/docs/ContactMaterial.js.html +++ b/docs/ContactMaterial.js.html @@ -574,7 +574,7 @@ Phaser.Physics.ContactMaterial.prototype.constructor = Phaser.Physics.ContactMat Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/DOMSprite.js.html b/docs/DOMSprite.js.html deleted file mode 100644 index ddbe9e15..00000000 --- a/docs/DOMSprite.js.html +++ /dev/null @@ -1,601 +0,0 @@ - - - - - - Phaser Source: gameobjects/DOMSprite.js - - - - - - - - - - -
- - -
- - -
- -
- - - -

Source: gameobjects/DOMSprite.js

- -
-
-
/**
-* @author       Richard Davey <rich@photonstorm.com>
-* @copyright    2014 Photon Storm Ltd.
-* @license      {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
-*/
-
-/**
-* Create a new DOMSprite.
-* @class Phaser.DOMSprite
-* @constructor
-* @param {Phaser.Game} game - Current game instance.
-* @param {string} id - DOM ID.
-* @param {number} x - X position of the new text object.
-* @param {number} y - Y position of the new text object.
-* @param {string} text - The actual text that will be written.
-* @param {object} style - The style object containing style attributes like font, font size ,
-*/
-Phaser.DOMSprite = function (game, element, x, y, style) {
-
-    x = x || 0;
-    y = y || 0;
-    style = style || '';
-
-    /**
-    * @property {Phaser.Game} game - A reference to the currently running Game.
-    */
-    this.game = game;
- 
-    /**
-    * @property {boolean} exists - If exists = false then the Text isn't updated by the core game loop.
-    * @default
-    */
-    this.exists = true;
-
-    /**
-    * @property {boolean} alive - This is a handy little var your game can use to determine if an object is alive or not, it doesn't effect rendering.
-    * @default
-    */
-    this.alive = true;
-
-    /**
-    * @property {Phaser.Group} group - The parent Group of this Text object.
-    */
-    this.group = null;
-
-    /**
-    * @property {string} name - The user defined name given to this object.
-    * @default
-    */
-    this.name = '';
-
-    /**
-    * @property {number} type - The const type of this object.
-    * @default
-    */
-    this.type = Phaser.DOMSPRITE;
-
-    /**
-    * @property {boolean} visible - Sets the visible state of this DOMSprite.
-    * @default
-    */
-    this.visible = true;
-
-    /*
-    if (parent)
-    {
-        if (typeof parent === 'string')
-        {
-            // hopefully an element ID
-            target = document.getElementById(parent);
-        }
-        else if (typeof parent === 'object' && parent.nodeType === 1)
-        {
-            // quick test for a HTMLelement
-            target = parent;
-        }
-
-        if (overflowHidden)
-        {
-            target.style.overflow = 'hidden';
-        }
-    }
-    */
-
-};
-
-// Phaser.DOMSprite.prototype = Object.create(PIXI.DOMSprite.prototype);
-// Phaser.DOMSprite.prototype.constructor = Phaser.DOMSprite;
-
-
-
- - - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Sat Feb 08 2014 07:19:40 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/docs/Debug.js.html b/docs/Debug.js.html index c8275034..4a452d40 100644 --- a/docs/Debug.js.html +++ b/docs/Debug.js.html @@ -879,26 +879,7 @@ Phaser.Utils.Debug.prototype = { this.line('x: ' + sprite.x.toFixed(1) + ' y: ' + sprite.y.toFixed(1)); this.line('angle: ' + sprite.angle.toFixed(1) + ' rotation: ' + sprite.rotation.toFixed(1)); this.line('visible: ' + sprite.visible + ' in camera: ' + sprite.inCamera); - this.line('body x: ' + sprite.body.x.toFixed(1) + ' y: ' + sprite.body.y.toFixed(1)); - // 0 = scaleX - // 1 = skewY - // 2 = translateX - // 3 = skewX - // 4 = scaleY - // 5 = translateY - - this.line('id: ' + sprite._id); - this.line('scale x: ' + sprite.worldTransform[0]); - this.line('scale y: ' + sprite.worldTransform[4]); - this.line('tx: ' + sprite.worldTransform[2]); - this.line('ty: ' + sprite.worldTransform[5]); - this.line('skew x: ' + sprite.worldTransform[3]); - this.line('skew y: ' + sprite.worldTransform[1]); - this.line('sdx: ' + sprite.deltaX); - this.line('sdy: ' + sprite.deltaY); - - // this.line('inCamera: ' + this.game.renderer.spriteRenderer.inCamera(this.game.camera, sprite)); this.stop(); }, @@ -1364,7 +1345,7 @@ Phaser.Utils.Debug.prototype.constructor = Phaser.Utils.Debug; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Device.js.html b/docs/Device.js.html index 0c9d8eec..01766458 100644 --- a/docs/Device.js.html +++ b/docs/Device.js.html @@ -1190,7 +1190,7 @@ Phaser.Device.prototype.constructor = Phaser.Device; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Easing.js.html b/docs/Easing.js.html index 97fddaba..f316751e 100644 --- a/docs/Easing.js.html +++ b/docs/Easing.js.html @@ -1073,7 +1073,7 @@ Phaser.Easing = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Ellipse.js.html b/docs/Ellipse.js.html index a00cc84c..52cb5b8a 100644 --- a/docs/Ellipse.js.html +++ b/docs/Ellipse.js.html @@ -806,7 +806,7 @@ PIXI.Ellipse = Phaser.Ellipse; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:33 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Emitter.js.html b/docs/Emitter.js.html index b439b724..70092927 100644 --- a/docs/Emitter.js.html +++ b/docs/Emitter.js.html @@ -1144,7 +1144,7 @@ Object.defineProperty(Phaser.Particles.Arcade.Emitter.prototype, "bottom", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Events.js.html b/docs/Events.js.html index 17dcf631..96ecf3b0 100644 --- a/docs/Events.js.html +++ b/docs/Events.js.html @@ -589,7 +589,7 @@ Phaser.Events.prototype.constructor = Phaser.Events; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Filter.js.html b/docs/Filter.js.html index 7aabecfd..faa5b71a 100644 --- a/docs/Filter.js.html +++ b/docs/Filter.js.html @@ -675,7 +675,7 @@ Object.defineProperty(Phaser.Filter.prototype, 'height', { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Frame.js.html b/docs/Frame.js.html index 89fd7663..92463a1f 100644 --- a/docs/Frame.js.html +++ b/docs/Frame.js.html @@ -694,7 +694,7 @@ Phaser.Frame.prototype.constructor = Phaser.Frame; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/FrameData.js.html b/docs/FrameData.js.html index 1d3f82e2..ffff6614 100644 --- a/docs/FrameData.js.html +++ b/docs/FrameData.js.html @@ -749,7 +749,7 @@ Object.defineProperty(Phaser.FrameData.prototype, "total", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Game.js.html b/docs/Game.js.html index ab063cb3..771235ff 100644 --- a/docs/Game.js.html +++ b/docs/Game.js.html @@ -568,7 +568,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant this.renderer = Phaser.AUTO; /** - * @property {number} renderType - The Renderer this Phaser.Game will use. Either Phaser.RENDERER_AUTO, Phaser.RENDERER_CANVAS or Phaser.RENDERER_WEBGL. + * @property {number} renderType - The Renderer this game will use. Either Phaser.AUTO, Phaser.CANVAS or Phaser.WEBGL. */ this.renderType = Phaser.AUTO; @@ -1031,6 +1031,13 @@ Phaser.Game.prototype = { */ setUpRenderer: function () { + if (this.device.trident) + { + // Pixi WebGL renderer on IE11 doesn't work correctly at the moment, the pre-multiplied alpha gets all washed out. + // So we're forcing canvas for now until this is fixed, sorry. It's got to be better than no game appearing at all, right? + this.renderType = Phaser.CANVAS; + } + if (this.renderType === Phaser.HEADLESS || this.renderType === Phaser.CANVAS || (this.renderType === Phaser.AUTO && this.device.webGL === false)) { if (this.device.canvas) @@ -1257,7 +1264,7 @@ Object.defineProperty(Phaser.Game.prototype, "paused", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/GameObjectCreator.js.html b/docs/GameObjectCreator.js.html index 9595f769..0313d971 100644 --- a/docs/GameObjectCreator.js.html +++ b/docs/GameObjectCreator.js.html @@ -870,7 +870,7 @@ Phaser.GameObjectCreator.prototype.constructor = Phaser.GameObjectCreator; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/GameObjectFactory.js.html b/docs/GameObjectFactory.js.html index 4be9f92a..4801f499 100644 --- a/docs/GameObjectFactory.js.html +++ b/docs/GameObjectFactory.js.html @@ -901,7 +901,7 @@ Phaser.GameObjectFactory.prototype.constructor = Phaser.GameObjectFactory; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Gamepad.js.html b/docs/Gamepad.js.html index f91ec741..500b3815 100644 --- a/docs/Gamepad.js.html +++ b/docs/Gamepad.js.html @@ -1088,7 +1088,7 @@ Phaser.Gamepad.XBOX360_STICK_RIGHT_Y = 3; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/GamepadButton.js.html b/docs/GamepadButton.js.html index 95ab2241..a6227c03 100644 --- a/docs/GamepadButton.js.html +++ b/docs/GamepadButton.js.html @@ -519,7 +519,7 @@ Phaser.GamepadButton = function (game, buttoncode) { * @property {boolean} isUp - The "up" state of the button. * @default */ - this.isUp = false; + this.isUp = true; /** * @property {number} timeDown - The timestamp when the button was last pressed down. @@ -685,7 +685,7 @@ Phaser.GamepadButton.prototype.constructor = Phaser.GamepadButton; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Graphics.js.html b/docs/Graphics.js.html index 5b335934..9f98156e 100644 --- a/docs/Graphics.js.html +++ b/docs/Graphics.js.html @@ -734,7 +734,7 @@ Object.defineProperty(Phaser.Graphics.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Group.js.html b/docs/Group.js.html index cb6dbd75..0ce417a3 100644 --- a/docs/Group.js.html +++ b/docs/Group.js.html @@ -1791,7 +1791,7 @@ Object.defineProperty(Phaser.Group.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Image.js.html b/docs/Image.js.html index 9a66294a..7603405f 100644 --- a/docs/Image.js.html +++ b/docs/Image.js.html @@ -1210,7 +1210,7 @@ Object.defineProperty(Phaser.Image.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Input.js.html b/docs/Input.js.html index ffb168cf..76aa0812 100644 --- a/docs/Input.js.html +++ b/docs/Input.js.html @@ -1221,6 +1221,22 @@ Phaser.Input.prototype = { return false; } + else if (displayObject instanceof Phaser.TileSprite) + { + var width = displayObject.width; + var height = displayObject.height; + var x1 = -width * displayObject.anchor.x; + + if (this._localPoint.x > x1 && this._localPoint.x < x1 + width) + { + var y1 = -height * displayObject.anchor.y; + + if (this._localPoint.y > y1 && this._localPoint.y < y1 + height) + { + return true; + } + } + } else if (displayObject instanceof PIXI.Sprite) { var width = displayObject.texture.frame.width; @@ -1386,7 +1402,7 @@ Object.defineProperty(Phaser.Input.prototype, "worldY", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/InputHandler.js.html b/docs/InputHandler.js.html index 89a7aab2..42746a56 100644 --- a/docs/InputHandler.js.html +++ b/docs/InputHandler.js.html @@ -1794,7 +1794,7 @@ Phaser.InputHandler.prototype.constructor = Phaser.InputHandler; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/IntroDocs.js.html b/docs/IntroDocs.js.html deleted file mode 100644 index 664fba12..00000000 --- a/docs/IntroDocs.js.html +++ /dev/null @@ -1,540 +0,0 @@ - - - - - - Phaser Source: IntroDocs.js - - - - - - - - - - -
- - -
- - -
- -
- - - -

Source: IntroDocs.js

- -
-
-
/**
-* @author       Richard Davey <rich@photonstorm.com>
-* @copyright    2014 Photon Storm Ltd.
-* @license      {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
-*/
-
-/**
-* @overview
-*
-* ![Phaser Logo](http://www.photonstorm.com/wp-content/uploads/2013/09/phaser_10_release.jpg)
-*
-* Phaser - http://www.phaser.io
-*
-* v1.1.4 - Released February 5th 2014.
-*
-* By Richard Davey http://www.photonstorm.com @photonstorm
-*
-* A feature-packed 2D HTML5 game framework born from the smouldering pits of Flixel and
-* constructed via plenty of blood, sweat, tears and coffee by Richard Davey (@photonstorm).
-*
-* Phaser uses Pixi.js for rendering, created by Mat Groves http://matgroves.com/ @Doormat23.
-*
-* View the [Official Website](http://phaser.io)<br />
-* Follow on [Twitter](https://twitter.com/photonstorm)<br />
-* Join the [Forum](http://www.html5gamedevs.com/forum/14-phaser/)<br />
-* Try out 210+ [Phaser Examples](http://examples.phaser.io)<br />
-* Read the [documentation online](http://docs.phaser.io)
-*
-* Many thanks to Adam Saltsman (@ADAMATOMIC) for releasing Flixel, from which both Phaser
-* and my love of game development originate.
-*
-* "If you want your children to be intelligent,  read them fairy tales."
-* "If you want them to be more intelligent, read them more fairy tales."
-*                                                     -- Albert Einstein
-*/
-
-
-
- - - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Wed Feb 05 2014 06:18:03 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/docs/InversePointProxy.js.html b/docs/InversePointProxy.js.html index 1d2676cb..8be99ca0 100644 --- a/docs/InversePointProxy.js.html +++ b/docs/InversePointProxy.js.html @@ -573,7 +573,7 @@ Object.defineProperty(Phaser.Physics.InversePointProxy.prototype, "y", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Key.js.html b/docs/Key.js.html index 228cda7a..5657050c 100644 --- a/docs/Key.js.html +++ b/docs/Key.js.html @@ -519,7 +519,7 @@ Phaser.Key = function (game, keycode) { * @property {boolean} isUp - The "up" state of the key. * @default */ - this.isUp = false; + this.isUp = true; /** * @property {boolean} altKey - The down state of the ALT key, if pressed at the same time as this key. @@ -683,7 +683,7 @@ Phaser.Key.prototype.constructor = Phaser.Key; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Keyboard.js.html b/docs/Keyboard.js.html index 672751ff..403fd0c1 100644 --- a/docs/Keyboard.js.html +++ b/docs/Keyboard.js.html @@ -1007,7 +1007,7 @@ Phaser.Keyboard.NUM_LOCK = 144; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Line.js.html b/docs/Line.js.html index 38f812aa..69bbc7f7 100644 --- a/docs/Line.js.html +++ b/docs/Line.js.html @@ -774,7 +774,7 @@ Phaser.Line.intersects = function (a, b, asSegment, result) { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/LinkedList.js.html b/docs/LinkedList.js.html index 09967842..2b992250 100644 --- a/docs/LinkedList.js.html +++ b/docs/LinkedList.js.html @@ -666,7 +666,7 @@ Phaser.LinkedList.prototype.constructor = Phaser.LinkedList; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Loader.js.html b/docs/Loader.js.html index 68302b3c..dcb2a2fb 100644 --- a/docs/Loader.js.html +++ b/docs/Loader.js.html @@ -635,10 +635,10 @@ Phaser.Loader.prototype = { /** * You can set a Sprite to be a "preload" sprite by passing it to this method. * A "preload" sprite will have its width or height crop adjusted based on the percentage of the loader in real-time. - * This allows you to easily make loading bars for games. + * This allows you to easily make loading bars for games. Note that Sprite.visible = true will be set when calling this. * * @method Phaser.Loader#setPreloadSprite - * @param {Phaser.Sprite} sprite - The sprite that will be cropped during the load. + * @param {Phaser.Sprite|Phaser.Image} sprite - The sprite that will be cropped during the load. * @param {number} [direction=0] - A value of zero means the sprite width will be cropped, a value of 1 means its height will be cropped. */ setPreloadSprite: function (sprite, direction) { @@ -660,6 +660,8 @@ Phaser.Loader.prototype = { sprite.crop(this.preloadSprite.crop); + sprite.visible = true; + }, /** @@ -850,6 +852,32 @@ Phaser.Loader.prototype = { }, + /** + * Add a json file to the Loader. + * + * @method Phaser.Loader#json + * @param {string} key - Unique asset key of the json file. + * @param {string} url - URL of the json file. + * @param {boolean} [overwrite=false] - If an unloaded file with a matching key already exists in the queue, this entry will overwrite it. + * @return {Phaser.Loader} This Loader instance. + */ + json: function (key, url, overwrite) { + + if (typeof overwrite === "undefined") { overwrite = false; } + + if (overwrite) + { + this.replaceInFileList('json', key, url); + } + else + { + this.addToFileList('json', key, url); + } + + return this; + + }, + /** * Add a JavaScript file to the Loader. Once loaded the JavaScript file will be automatically turned into a script tag (and executed), so be careful what you load! * @@ -1374,6 +1402,15 @@ Phaser.Loader.prototype = { break; + case 'json': + this._xhr.open("GET", this.baseURL + file.url, true); + this._xhr.responseType = "text"; + this._xhr.onload = function () { + return _this.jsonLoadComplete(_this._fileIndex); + }; + this._xhr.send(); + break; + case 'tilemap': this._xhr.open("GET", this.baseURL + file.url, true); this._xhr.responseType = "text"; @@ -1665,6 +1702,10 @@ Phaser.Loader.prototype = { { this.game.cache.addTilemap(file.key, file.url, data, file.format); } + else if (file.type === 'json') + { + this.game.cache.addJSON(file.key, file.url, data); + } else { this.game.cache.addTextureAtlas(file.key, file.url, file.data, data, file.format); @@ -1796,8 +1837,6 @@ Phaser.Loader.prototype = { { this.preloadSprite.crop.height = Math.floor((this.preloadSprite.height / 100) * this.progress); } - - // this.preloadSprite.sprite.crop = this.preloadSprite.crop; } this.onFileComplete.dispatch(this.progress, this._fileList[previousIndex].key, success, this.totalLoadedFiles(), this._fileList.length); @@ -1885,7 +1924,7 @@ Phaser.Loader.prototype.constructor = Phaser.Loader; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/LoaderParser.js.html b/docs/LoaderParser.js.html index e8f7a48d..b4b38369 100644 --- a/docs/LoaderParser.js.html +++ b/docs/LoaderParser.js.html @@ -594,7 +594,7 @@ Phaser.LoaderParser = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/MSPointer.js.html b/docs/MSPointer.js.html index a081c04d..a7ce4f6b 100644 --- a/docs/MSPointer.js.html +++ b/docs/MSPointer.js.html @@ -680,7 +680,7 @@ Phaser.MSPointer.prototype.constructor = Phaser.MSPointer; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Material.js.html b/docs/Material.js.html index 33160a2e..abf073ff 100644 --- a/docs/Material.js.html +++ b/docs/Material.js.html @@ -537,7 +537,7 @@ Phaser.Physics.Material.prototype.constructor = Phaser.Physics.Material; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Math.js.html b/docs/Math.js.html index 9103d3c2..9173ec3c 100644 --- a/docs/Math.js.html +++ b/docs/Math.js.html @@ -1891,7 +1891,7 @@ Phaser.Math = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Mouse.js.html b/docs/Mouse.js.html index f153fc58..13b4b324 100644 --- a/docs/Mouse.js.html +++ b/docs/Mouse.js.html @@ -656,7 +656,7 @@ Phaser.Mouse.prototype = { event.preventDefault(); } - this.button = event.which; + this.button = event.button; if (this.mouseDownCallback) { @@ -841,7 +841,7 @@ Phaser.Mouse.prototype.constructor = Phaser.Mouse; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Net.js.html b/docs/Net.js.html index f0e00fcb..fb3b9c39 100644 --- a/docs/Net.js.html +++ b/docs/Net.js.html @@ -676,7 +676,7 @@ Phaser.Net.prototype.constructor = Phaser.Net; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Particles.js.html b/docs/Particles.js.html index 51ef760a..0766fa49 100644 --- a/docs/Particles.js.html +++ b/docs/Particles.js.html @@ -591,7 +591,7 @@ Phaser.Particles.prototype.constructor = Phaser.Particles; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Animation.html b/docs/Phaser.Animation.html index f17dbc50..0390b15a 100644 --- a/docs/Phaser.Animation.html +++ b/docs/Phaser.Animation.html @@ -2986,7 +2986,7 @@ You could use this function to generate those by doing: Phaser.Animation.generat Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.AnimationManager.html b/docs/Phaser.AnimationManager.html index 4159d793..b5450799 100644 --- a/docs/Phaser.AnimationManager.html +++ b/docs/Phaser.AnimationManager.html @@ -3033,7 +3033,7 @@ The currentAnim property of the AnimationManager is automatically set to the ani Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.AnimationParser.html b/docs/Phaser.AnimationParser.html index 889c8af8..9fdaa163 100644 --- a/docs/Phaser.AnimationParser.html +++ b/docs/Phaser.AnimationParser.html @@ -1554,7 +1554,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.BitmapData.html b/docs/Phaser.BitmapData.html index fda23b64..db0f5fa3 100644 --- a/docs/Phaser.BitmapData.html +++ b/docs/Phaser.BitmapData.html @@ -3941,7 +3941,7 @@ This is called automatically if the BitmapData is being used by a Sprite, otherw Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.BitmapFont.html b/docs/Phaser.BitmapFont.html index 33300a0c..0a89a8b2 100644 --- a/docs/Phaser.BitmapFont.html +++ b/docs/Phaser.BitmapFont.html @@ -5142,7 +5142,7 @@ If text is wider than the width specified it will be cropped off.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.BitmapText.html b/docs/Phaser.BitmapText.html index 3201ebe8..b5dc388e 100644 --- a/docs/Phaser.BitmapText.html +++ b/docs/Phaser.BitmapText.html @@ -2908,7 +2908,7 @@ activated for this object and it will then start to process click/touch events a Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Button.html b/docs/Phaser.Button.html index 1ed147da..9a13f5b2 100644 --- a/docs/Phaser.Button.html +++ b/docs/Phaser.Button.html @@ -7838,7 +7838,7 @@ Call this function with no parameters at all to reset all sounds on this Button. Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:23 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:35 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Cache.html b/docs/Phaser.Cache.html index 5eb87d31..d8017b33 100644 --- a/docs/Phaser.Cache.html +++ b/docs/Phaser.Cache.html @@ -682,7 +682,7 @@
Source:
@@ -742,7 +742,7 @@
Source:
@@ -802,7 +802,7 @@
Source:
@@ -862,7 +862,7 @@
Source:
@@ -922,7 +922,67 @@
Source:
+ + + + + + + + + + + + + + + +
+

<static, constant> JSON :number

+ + +
+
+ + + +
Type:
+ + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -982,7 +1042,7 @@
Source:
@@ -1042,7 +1102,7 @@
Source:
@@ -1102,7 +1162,7 @@
Source:
@@ -1162,7 +1222,7 @@
Source:
@@ -1222,7 +1282,7 @@
Source:
@@ -1426,7 +1486,7 @@
Source:
@@ -1563,7 +1623,7 @@
Source:
@@ -1704,7 +1764,7 @@
Source:
@@ -1868,7 +1928,7 @@
Source:
@@ -2185,7 +2245,7 @@
Source:
@@ -2349,7 +2409,7 @@
Source:
@@ -2418,7 +2478,7 @@
Source:
@@ -2582,7 +2642,171 @@
Source:
+ + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+

addJSON(key, url, data)

+ + +
+
+ + +
+

Add a new json object into the cache.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +string + + + +

Asset key for the text data.

url + + +string + + + +

URL of this text data file.

data + + +object + + + +

Extra text data.

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -2651,7 +2875,7 @@
Source:
@@ -2792,7 +3016,7 @@
Source:
@@ -3002,7 +3226,7 @@
Source:
@@ -3393,7 +3617,7 @@
Source:
@@ -3557,7 +3781,7 @@
Source:
@@ -3767,7 +3991,7 @@
Source:
@@ -3954,7 +4178,7 @@
Source:
@@ -4141,7 +4365,7 @@
Source:
@@ -4259,7 +4483,7 @@
Source:
@@ -4423,7 +4647,7 @@
Source:
@@ -4492,7 +4716,7 @@
Source:
@@ -4610,7 +4834,7 @@
Source:
@@ -4751,7 +4975,7 @@
Source:
@@ -4892,7 +5116,7 @@
Source:
@@ -5033,7 +5257,7 @@
Source:
@@ -5174,7 +5398,7 @@
Source:
@@ -5315,7 +5539,7 @@
Source:
@@ -5456,7 +5680,7 @@
Source:
@@ -5597,7 +5821,7 @@
Source:
@@ -5738,7 +5962,7 @@
Source:
@@ -5784,6 +6008,147 @@ +
+ + + +
+

getJSON(key) → {object}

+ + +
+
+ + +
+

Get a JSON object by key from the cache.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +string + + + +

Asset key of the json object to retrieve from the Cache.

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + +
+

The JSON object.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + +
@@ -5899,7 +6264,7 @@
Source:
@@ -6095,7 +6460,7 @@
Source:
@@ -6236,7 +6601,7 @@
Source:
@@ -6377,7 +6742,7 @@
Source:
@@ -6518,7 +6883,7 @@
Source:
@@ -6659,7 +7024,7 @@
Source:
@@ -6800,7 +7165,7 @@
Source:
@@ -6941,7 +7306,7 @@
Source:
@@ -7082,7 +7447,7 @@
Source:
@@ -7223,7 +7588,7 @@
Source:
@@ -7364,7 +7729,7 @@
Source:
@@ -7505,7 +7870,7 @@
Source:
@@ -7623,7 +7988,7 @@
Source:
@@ -7741,7 +8106,7 @@
Source:
@@ -7859,7 +8224,7 @@
Source:
@@ -7977,7 +8342,7 @@
Source:
@@ -8095,7 +8460,7 @@
Source:
@@ -8213,7 +8578,125 @@
Source:
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+

removeJSON(key)

+ + +
+
+ + +
+

Removes a json object from the cache.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +string + + + +

Key of the asset you want to remove.

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -8331,7 +8814,7 @@
Source:
@@ -8449,7 +8932,7 @@
Source:
@@ -8567,7 +9050,7 @@
Source:
@@ -8685,7 +9168,7 @@
Source:
@@ -8826,7 +9309,7 @@
Source:
@@ -8944,7 +9427,7 @@
Source:
@@ -8995,7 +9478,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Camera.html b/docs/Phaser.Camera.html index f5f06e61..956a22ff 100644 --- a/docs/Phaser.Camera.html +++ b/docs/Phaser.Camera.html @@ -3572,7 +3572,7 @@ without having to use game.camera.x and game.camera.y.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Canvas.html b/docs/Phaser.Canvas.html index fa9f77b6..c16b141a 100644 --- a/docs/Phaser.Canvas.html +++ b/docs/Phaser.Canvas.html @@ -2698,7 +2698,7 @@ patchy on earlier browsers, especially on mobile.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Circle.html b/docs/Phaser.Circle.html index 606e11d1..c26af70c 100644 --- a/docs/Phaser.Circle.html +++ b/docs/Phaser.Circle.html @@ -4376,7 +4376,7 @@ This method checks the radius distances between the two Circle objects to see if Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Color.html b/docs/Phaser.Color.html index a4f0e04c..104fa4ec 100644 --- a/docs/Phaser.Color.html +++ b/docs/Phaser.Color.html @@ -3685,7 +3685,7 @@ Set the max value to restrict the maximum color used per channel.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.DOMSprite.html b/docs/Phaser.DOMSprite.html deleted file mode 100644 index a9785517..00000000 --- a/docs/Phaser.DOMSprite.html +++ /dev/null @@ -1,1510 +0,0 @@ - - - - - - Phaser Class: DOMSprite - - - - - - - - - - -
- - -
- - -
- -
- - - -

Class: DOMSprite

-
- -
-

- Phaser. - - DOMSprite -

- -

Phaser.DOMSprite

- -
- -
-
- - - - -
-

new DOMSprite(game, id, x, y, text, style)

- - -
-
- - -
-

Create a new DOMSprite.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
game - - -Phaser.Game - - - -

Current game instance.

id - - -string - - - -

DOM ID.

x - - -number - - - -

X position of the new text object.

y - - -number - - - -

Y position of the new text object.

text - - -string - - - -

The actual text that will be written.

style - - -object - - - -

The style object containing style attributes like font, font size ,

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - -

Members

- -
- -
-

alive

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
alive - - -boolean - - - -

This is a handy little var your game can use to determine if an object is alive or not, it doesn't effect rendering.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

exists

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
exists - - -boolean - - - -

If exists = false then the Text isn't updated by the core game loop.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

game

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
game - - -Phaser.Game - - - -

A reference to the currently running Game.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

group

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
group - - -Phaser.Group - - - -

The parent Group of this Text object.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

name

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - -

The user defined name given to this object.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

type

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -number - - - -

The const type of this object.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

visible

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
visible - - -boolean - - - -

Sets the visible state of this DOMSprite.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- -
- - - - - - - -
- -
- - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Sat Feb 08 2014 07:19:43 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/Phaser.Device.html b/docs/Phaser.Device.html index 40bf8638..915e4fed 100644 --- a/docs/Phaser.Device.html +++ b/docs/Phaser.Device.html @@ -6111,7 +6111,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:24 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:36 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Back.html b/docs/Phaser.Easing.Back.html index 62c31444..a19386a1 100644 --- a/docs/Phaser.Easing.Back.html +++ b/docs/Phaser.Easing.Back.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Bounce.html b/docs/Phaser.Easing.Bounce.html index 6e5d55bb..ea3a9bee 100644 --- a/docs/Phaser.Easing.Bounce.html +++ b/docs/Phaser.Easing.Bounce.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Circular.html b/docs/Phaser.Easing.Circular.html index 00ed68f4..dd512014 100644 --- a/docs/Phaser.Easing.Circular.html +++ b/docs/Phaser.Easing.Circular.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Cubic.html b/docs/Phaser.Easing.Cubic.html index de949020..cce0514e 100644 --- a/docs/Phaser.Easing.Cubic.html +++ b/docs/Phaser.Easing.Cubic.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Elastic.html b/docs/Phaser.Easing.Elastic.html index dd576741..09e907af 100644 --- a/docs/Phaser.Easing.Elastic.html +++ b/docs/Phaser.Easing.Elastic.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Exponential.html b/docs/Phaser.Easing.Exponential.html index 45c14e65..288e667a 100644 --- a/docs/Phaser.Easing.Exponential.html +++ b/docs/Phaser.Easing.Exponential.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Linear.html b/docs/Phaser.Easing.Linear.html index 4e57b3d0..d8cdde5b 100644 --- a/docs/Phaser.Easing.Linear.html +++ b/docs/Phaser.Easing.Linear.html @@ -755,7 +755,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Quadratic.html b/docs/Phaser.Easing.Quadratic.html index f78d7388..66e0124f 100644 --- a/docs/Phaser.Easing.Quadratic.html +++ b/docs/Phaser.Easing.Quadratic.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Quartic.html b/docs/Phaser.Easing.Quartic.html index 4a34dab2..a3230a0c 100644 --- a/docs/Phaser.Easing.Quartic.html +++ b/docs/Phaser.Easing.Quartic.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Quintic.html b/docs/Phaser.Easing.Quintic.html index a81af0e9..560d6eb7 100644 --- a/docs/Phaser.Easing.Quintic.html +++ b/docs/Phaser.Easing.Quintic.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.Sinusoidal.html b/docs/Phaser.Easing.Sinusoidal.html index ff000306..b3baf6c7 100644 --- a/docs/Phaser.Easing.Sinusoidal.html +++ b/docs/Phaser.Easing.Sinusoidal.html @@ -1037,7 +1037,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Easing.html b/docs/Phaser.Easing.html index cf176139..a919ad22 100644 --- a/docs/Phaser.Easing.html +++ b/docs/Phaser.Easing.html @@ -647,7 +647,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:25 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:37 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Ellipse.html b/docs/Phaser.Ellipse.html index cda99152..3337ffff 100644 --- a/docs/Phaser.Ellipse.html +++ b/docs/Phaser.Ellipse.html @@ -2792,7 +2792,7 @@ If set to true it will reset all of the Ellipse objects properties to 0. An Elli Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Events.html b/docs/Phaser.Events.html index 404b7863..4df74403 100644 --- a/docs/Phaser.Events.html +++ b/docs/Phaser.Events.html @@ -661,7 +661,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Filter.html b/docs/Phaser.Filter.html index f975ddf0..222b9b74 100644 --- a/docs/Phaser.Filter.html +++ b/docs/Phaser.Filter.html @@ -1946,7 +1946,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Frame.html b/docs/Phaser.Frame.html index 24f17f94..b6835adc 100644 --- a/docs/Phaser.Frame.html +++ b/docs/Phaser.Frame.html @@ -3175,7 +3175,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:26 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:38 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.FrameData.html b/docs/Phaser.FrameData.html index 7291c13f..04992b6b 100644 --- a/docs/Phaser.FrameData.html +++ b/docs/Phaser.FrameData.html @@ -1969,7 +1969,7 @@ The frames are returned in the output array, or if none is provided in a new Arr Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Game.html b/docs/Phaser.Game.html index 7dacceb9..e1449568 100644 --- a/docs/Phaser.Game.html +++ b/docs/Phaser.Game.html @@ -3090,7 +3090,7 @@ When a game is paused the onPause event is dispatched. When it is resumed the on
Source:
@@ -3676,7 +3676,7 @@ When a game is paused the onPause event is dispatched. When it is resumed the on -

The Renderer this Phaser.Game will use. Either Phaser.RENDERER_AUTO, Phaser.RENDERER_CANVAS or Phaser.RENDERER_WEBGL.

+

The Renderer this game will use. Either Phaser.AUTO, Phaser.CANVAS or Phaser.WEBGL.

@@ -5075,7 +5075,7 @@ When a game is paused the onPause event is dispatched. When it is resumed the on
Source:
@@ -5144,7 +5144,7 @@ When a game is paused the onPause event is dispatched. When it is resumed the on
Source:
@@ -5214,7 +5214,7 @@ Calling step will advance the game loop by one frame. This is extremely useful t
Source:
@@ -5283,7 +5283,7 @@ Calling step will advance the game loop by one frame. This is extremely useful t
Source:
@@ -5629,7 +5629,7 @@ This is extremely useful to hard to track down errors! Use the internal stepCoun
Source:
@@ -5747,7 +5747,7 @@ This is extremely useful to hard to track down errors! Use the internal stepCoun
Source:
@@ -5798,7 +5798,7 @@ This is extremely useful to hard to track down errors! Use the internal stepCoun Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.GameObjectCreator.html b/docs/Phaser.GameObjectCreator.html index 445486d7..940766a5 100644 --- a/docs/Phaser.GameObjectCreator.html +++ b/docs/Phaser.GameObjectCreator.html @@ -5530,7 +5530,7 @@ It can still rotate, scale, crop and receive input events. This makes it perfect Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.GameObjectFactory.html b/docs/Phaser.GameObjectFactory.html index 00e0947d..e4da5ccf 100644 --- a/docs/Phaser.GameObjectFactory.html +++ b/docs/Phaser.GameObjectFactory.html @@ -5952,7 +5952,7 @@ It can still rotate, scale, crop and receive input events. This makes it perfect Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Gamepad.html b/docs/Phaser.Gamepad.html index 7659cb05..3450467e 100644 --- a/docs/Phaser.Gamepad.html +++ b/docs/Phaser.Gamepad.html @@ -3294,7 +3294,7 @@ This MUST be called manually before Phaser will start polling the Gamepad API. Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.GamepadButton.html b/docs/Phaser.GamepadButton.html index 10cd7f77..4a017fcc 100644 --- a/docs/Phaser.GamepadButton.html +++ b/docs/Phaser.GamepadButton.html @@ -1159,7 +1159,7 @@ If the button is up it holds the duration of the previous down session.

Default Value:
-
  • false
+
  • true
@@ -2614,7 +2614,7 @@ If the button is up it holds the duration of the previous down session.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Graphics.html b/docs/Phaser.Graphics.html index 90dcf7dd..387c3c58 100644 --- a/docs/Phaser.Graphics.html +++ b/docs/Phaser.Graphics.html @@ -1892,7 +1892,7 @@ Draws a {Phaser.Polygon} or a {PIXI.Polygon} filled

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:39 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Group.html b/docs/Phaser.Group.html index 739cda62..a9ce977b 100644 --- a/docs/Phaser.Group.html +++ b/docs/Phaser.Group.html @@ -9216,7 +9216,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:27 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Image.html b/docs/Phaser.Image.html index 8d104257..25b662a1 100644 --- a/docs/Phaser.Image.html +++ b/docs/Phaser.Image.html @@ -3969,7 +3969,7 @@ It will dispatch the onRevived event, you can listen to Image.events.onRevived f Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Input.html b/docs/Phaser.Input.html index 5d60b167..ee062205 100644 --- a/docs/Phaser.Input.html +++ b/docs/Phaser.Input.html @@ -4521,7 +4521,7 @@ If you need to disable just one type of input; for example mouse; use Input.mous
Source:
@@ -5472,7 +5472,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -5578,7 +5578,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -5786,7 +5786,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -5892,7 +5892,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -5998,7 +5998,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -6104,7 +6104,7 @@ The history is updated at the rate specified in Input.pollRate

Source:
@@ -7725,7 +7725,7 @@ to only use if you've limited input to a single pointer (i.e. mouse or touch)

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.InputHandler.html b/docs/Phaser.InputHandler.html index 46d72ae1..0560a869 100644 --- a/docs/Phaser.InputHandler.html +++ b/docs/Phaser.InputHandler.html @@ -8038,7 +8038,7 @@ This value is only set when the pointer is over this Sprite.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Key.html b/docs/Phaser.Key.html index d2bcf38c..444aec37 100644 --- a/docs/Phaser.Key.html +++ b/docs/Phaser.Key.html @@ -1267,7 +1267,7 @@ If the key is up it holds the duration of the previous down session.

Default Value:
-
  • false
+
  • true
@@ -2604,7 +2604,7 @@ If the key is up it holds the duration of the previous down session.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Keyboard.html b/docs/Phaser.Keyboard.html index 01f67f65..2d074cb1 100644 --- a/docs/Phaser.Keyboard.html +++ b/docs/Phaser.Keyboard.html @@ -3031,7 +3031,7 @@ This is called automatically by Phaser.Input and should not normally be invoked Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:40 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Line.html b/docs/Phaser.Line.html index daeec541..3dffaf4a 100644 --- a/docs/Phaser.Line.html +++ b/docs/Phaser.Line.html @@ -3127,7 +3127,7 @@ Returns the intersection segment of AB and EF as a Point, or null if there is no Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:28 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.LinkedList.html b/docs/Phaser.LinkedList.html index 96159673..766fd96d 100644 --- a/docs/Phaser.LinkedList.html +++ b/docs/Phaser.LinkedList.html @@ -1523,7 +1523,7 @@ The function must exist on the member.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Loader.html b/docs/Phaser.Loader.html index 28c248c0..ced7c3a8 100644 --- a/docs/Phaser.Loader.html +++ b/docs/Phaser.Loader.html @@ -2307,7 +2307,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -2565,7 +2565,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -2813,7 +2813,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -3061,7 +3061,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -3309,7 +3309,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -3499,7 +3499,7 @@ If you do so the Sprites width or height will be cropped based on the percentage
Source:
@@ -3749,7 +3749,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4093,7 +4093,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4257,7 +4257,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4398,7 +4398,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4516,7 +4516,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4634,7 +4634,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4752,7 +4752,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -4893,7 +4893,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -5124,7 +5124,238 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
+ + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + +
+

This Loader instance.

+
+ + + +
+
+ Type +
+
+ +Phaser.Loader + + +
+
+ + + + + +
+ + + +
+

json(key, url, overwrite) → {Phaser.Loader}

+ + +
+
+ + +
+

Add a json file to the Loader.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeArgumentDefaultDescription
key + + +string + + + + + + + + + + + +

Unique asset key of the json file.

url + + +string + + + + + + + + + + + +

URL of the json file.

overwrite + + +boolean + + + + + + <optional>
+ + + + + +
+ + false + +

If an unloaded file with a matching key already exists in the queue, this entry will overwrite it.

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -5265,7 +5496,7 @@ WARNING: If you specify a callback, the file data will be set to whatever your c
Source:
@@ -5513,7 +5744,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -5605,7 +5836,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -5746,7 +5977,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -5933,7 +6164,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -6002,7 +6233,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -6143,7 +6374,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo
Source:
@@ -6204,7 +6435,7 @@ The data must be in Lime + Corona JSON format. Physics Editor by code'n'web expo

You can set a Sprite to be a "preload" sprite by passing it to this method. A "preload" sprite will have its width or height crop adjusted based on the percentage of the loader in real-time. -This allows you to easily make loading bars for games.

+This allows you to easily make loading bars for games. Note that Sprite.visible = true will be set when calling this.

@@ -6249,6 +6480,9 @@ This allows you to easily make loading bars for games.

Phaser.Sprite +| + +Phaser.Image @@ -6697,7 +6931,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -6789,7 +7023,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -6997,7 +7231,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -7267,7 +7501,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -7359,7 +7593,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -7451,7 +7685,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -7592,7 +7826,7 @@ This allows you to easily make loading bars for games.

Source:
@@ -7643,7 +7877,7 @@ This allows you to easily make loading bars for games.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.LoaderParser.html b/docs/Phaser.LoaderParser.html index 97e159ce..4ff486c9 100644 --- a/docs/Phaser.LoaderParser.html +++ b/docs/Phaser.LoaderParser.html @@ -778,7 +778,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.MSPointer.html b/docs/Phaser.MSPointer.html index e01070ed..f583663d 100644 --- a/docs/Phaser.MSPointer.html +++ b/docs/Phaser.MSPointer.html @@ -1473,7 +1473,7 @@ It will work only in Internet Explorer 10 and Windows Store or Windows Phone 8 a Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Math.html b/docs/Phaser.Math.html index 42e9587f..38f5852c 100644 --- a/docs/Phaser.Math.html +++ b/docs/Phaser.Math.html @@ -11975,7 +11975,7 @@ Should be called whenever the angle is updated on the Sprite to stop it from goi Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Mouse.html b/docs/Phaser.Mouse.html index 315fe8fb..1d60bce0 100644 --- a/docs/Phaser.Mouse.html +++ b/docs/Phaser.Mouse.html @@ -2790,7 +2790,7 @@ If the browser successfully enters a locked state the event Phaser.Mouse.pointer Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:41 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Net.html b/docs/Phaser.Net.html index 9aa65a27..4565129e 100644 --- a/docs/Phaser.Net.html +++ b/docs/Phaser.Net.html @@ -1417,7 +1417,7 @@ Optionally you can redirect to the new url, or just return it as a string.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:29 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Particles.Arcade.Emitter.html b/docs/Phaser.Particles.Arcade.Emitter.html index 6b69c8de..90b1ccb6 100644 --- a/docs/Phaser.Particles.Arcade.Emitter.html +++ b/docs/Phaser.Particles.Arcade.Emitter.html @@ -13351,7 +13351,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Particles.html b/docs/Phaser.Particles.html index 4514734a..9623435c 100644 --- a/docs/Phaser.Particles.html +++ b/docs/Phaser.Particles.html @@ -1306,7 +1306,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.Arcade.Body.html b/docs/Phaser.Physics.Arcade.Body.html deleted file mode 100644 index 9472bab6..00000000 --- a/docs/Phaser.Physics.Arcade.Body.html +++ /dev/null @@ -1,10195 +0,0 @@ - - - - - - Phaser Class: Body - - - - - - - - - - -
- - -
- - -
- -
- - - -

Class: Body

-
- -
-

- Phaser.Physics.Arcade. - - Body -

- -

Arcade Physics Body Constructor

- -
- -
-
- - - - -
-

new Body(sprite)

- - -
-
- - -
-

The Physics Body is linked to a single Sprite and defines properties that determine how the physics body is simulated. -These properties affect how the body reacts to forces, what forces it generates on itself (to simulate friction), and how it reacts to collisions in the scene. In most cases, the properties are used to simulate physical effects. -Each body also has its own property values that determine exactly how it reacts to forces and collisions in the scene.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
sprite - - -Phaser.Sprite - - - -

The Sprite object this physics body belongs to.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - -

Members

- -
- -
-

acceleration

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
acceleration - - -Phaser.Point - - - -

The acceleration in pixels per second sq. of the Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

allowGravity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
allowGravity - - -boolean - - - -

Allow this Body to be influenced by the global Gravity value? Note: It will always be influenced by the local gravity if set.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

allowRotation

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
allowRotation - - -boolean - - - -

Allow angular rotation? This will cause the Sprite to be rotated via angularVelocity, etc.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

angle

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
angle - - -number - - - -

The angle of the Body based on its velocity in radians.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

angularAcceleration

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
angularAcceleration - - -number - - - -

The angular acceleration of the Body.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 0
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

angularDrag

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
angularDrag - - -number - - - -

angularDrag is used to calculate friction on the body as it rotates.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 0
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

angularVelocity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
angularVelocity - - -number - - - -

The angular velocity of the Body.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 0
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

blocked

- - -
-
- -
-

This object is populated with boolean values when the Body collides with the World bounds or a Tile. -For example if blocked.up is true then the Body cannot move up.

-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blocked - - -object - - - -

An object containing on which faces this Body is blocked from moving, if any.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> bottom

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
bottom - - -number - - - -

The bottom-most point of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

bounce

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
bounce - - -Phaser.Point - - - -

The elasticitiy of the Body when colliding. This property determines how much energy a body maintains during a collision, i.e. its bounciness.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

checkCollision

- - -
-
- -
-

Set the checkCollision properties to control which directions collision is processed for this Body. -For example checkCollision.up = false means it won't collide when the collision happened while moving up.

-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
checkCollision - - -object - - - -

An object containing allowed collision.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

collideCallback

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
collideCallback - - -function - - - -

If set this callback will be fired whenever this Body is hit (on any face). It will send three parameters, the face it hit on, this Body and the Body that hit it.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • null
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

collideCallbackContext

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
collideCallbackContext - - -object - - - -

The context in which the collideCallback is called.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • null
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

collideWorldBounds

- - -
-
- -
-

A Body can be set to collide against the World bounds automatically and rebound back into the World if this is set to true. Otherwise it will leave the World.

-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
collideWorldBounds - - -boolean - - - -

Should the Body collide with the World bounds?

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<protected> contacts

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
contacts - - -array.<Phaser.Physics.Arcade.Body> - - - -

Used to store references to bodies this Body is in contact with.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

customSeparateCallback

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
customSeparateCallback - - -function - - - -

If set this callback will be used for Body separation instead of the built-in one. Callback should return true if separated, otherwise false.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • null
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

customSeparateContext

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
customSeparateContext - - -object - - - -

The context in which the customSeparateCallback is called.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • null
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

facing

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
facing - - -number - - - -

A const reference to the direction the Body is traveling or facing.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

game

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
game - - -Phaser.Game - - - -

Local reference to game.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

gravity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
gravity - - -Phaser.Point - - - -

The gravity applied to the motion of the Body. This works in addition to any gravity set on the world.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> height

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
height - - -number - - - -

The current height of the Body, taking into account the point rotation.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

immovable

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
immovable - - -boolean - - - -

An immovable Body will not receive any impacts or exchanges of velocity from other bodies.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • false
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> left

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
left - - -number - - - -

The left-most point of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

linearDamping

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
linearDamping - - -number - - - -

linearDamping is used to calculate friction on the body as it moves through the world. For example, this might be used to simulate air or water friction.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 0.0
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

mass

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
mass - - -number - - - -

The mass property determines how forces affect the body, as well as how much momentum the body has when it is involved in a collision.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 1
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

maxAngular

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
maxAngular - - -number - - - -

The maximum angular velocity that the Body can reach.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 1000
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

maxVelocity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
maxVelocity - - -Phaser.Point - - - -

The maximum velocity that the Body can reach.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

minVelocity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
minVelocity - - -Phaser.Point - - - -

When a body rebounds off another body or a wall the minVelocity is checked. If the new velocity is lower than minVelocity the body is stopped.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

moves

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
moves - - -boolean - - - -

Set to true to allow the Physics system (such as velocity) to move this Body, or false to move it manually.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

offset

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
offset - - -Phaser.Point - - - -

The offset of the Physics Body from the Sprite x/y position.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<protected> overlapX

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
overlapX - - -number - - - -

Mostly used internally to store the overlap values from Tile seperation.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<protected> overlapY

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
overlapY - - -number - - - -

Mostly used internally to store the overlap values from Tile seperation.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

polygon

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
polygon - - -SAT.Polygon - - - -

The SAT Polygons, as derived from the Shape.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> preRotation

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
preRotation - - -number - - - -

The previous rotation of the physics body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> preX

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
preX - - -number - - - -

The previous x position of the physics body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> preY

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
preY - - -number - - - -

The previous y position of the physics body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

rebound

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rebound - - -boolean - - - -

A Body set to rebound will exchange velocity with another Body during collision. Set to false to allow this body to be 'pushed' rather than exchange velocity.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • true
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
- - - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
right - - -number - - - -

The right-most point of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

rotation

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - -

The amount the parent Sprite is rotated.

-
- - - - - - - - - - - - - - - - - - -
Default Value:
-
  • 0
- - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

shape

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
shape - - -SAT.Box -| - -SAT.Circle -| - -SAT.Polygon - - - -

The SAT Collision shape.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

speed

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - -

The speed in pixels per second sq. of the Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

sprite

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
sprite - - -Phaser.Sprite - - - -

Reference to the parent Sprite.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> top

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
top - - -number - - - -

The top-most point of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

touching

- - -
-
- -
-

This object is populated with boolean values when the Body collides with another. -touching.up = true means the collision happened to the top of this Body for example.

-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
touching - - -object - - - -

An object containing touching results.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

type

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -Phaser.Physics.Arcade.RECT -| - -Phaser.Physics.Arcade.CIRCLE - - - -

The type of SAT Shape.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

velocity

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
velocity - - -Phaser.Point - - - -

The velocity of the Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

<readonly> width

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
width - - -number - - - -

The current width of the Body, taking into account the point rotation.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

x

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
x - - -number - - - -

The x coordinate of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- - - -
-

y

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
y - - -number - - - -

The y coordinate of this Body.

-
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-

<protected> add(v)

- - -
-
- - -
-

Adds the given Vector to this Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
v - - -SAT.Vector - - - -

The vector to add to this Body.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

addContact(body) → {boolean}

- - -
-
- - -
-

Adds the given Body to the contact list of this Body. Also adds this Body to the contact list of the given Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body to be added.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if the given Body was added to this contact list, false if already on it.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

<protected> applyDamping()

- - -
-
- - -
-

Internal method that checks the acceleration and applies damping if not set.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> checkBlocked()

- - -
-
- - -
-

Internal method that checks and potentially resets the blocked status flags.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

deltaX() → {number}

- - -
-
- - -
-

Returns the delta x value. The amount the Body has moved horizontally in the current step.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

The delta value. Positive if the motion was to the right, negative if to the left.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

deltaY() → {number}

- - -
-
- - -
-

Returns the delta y value. The amount the Body has moved vertically in the current step.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

The delta value. Positive if the motion was downwards, negative if upwards.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

deltaZ() → {number}

- - -
-
- - -
-

Returns the delta z value. The amount the Body has rotated in the current step.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

The delta value.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

destroy()

- - -
-
- - -
-

Destroys this Body and all references it holds to other objects.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> exchange(body)

- - -
-
- - -
-

Exchange velocity with the given Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

getDownwardForce() → {number}

- - -
-
- - -
-

Gets the total force being applied on the X axis, including gravity and velocity.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

The total force being applied on the Y axis.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

getUpwardForce() → {number}

- - -
-
- - -
-

Gets the total force being applied on the X axis, including gravity and velocity.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

The total force being applied on the X axis.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

<protected> give(body, response)

- - -
-
- - -
-

Separation response handler.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> hitBottom(body, response)

- - -
-
- - -
-

Process a collision with the bottom face of this Body. -Collision and separation can be further checked by setting a collideCallback. -This callback will be sent 4 parameters: The face of collision, this Body, the colliding Body and the SAT Response. -If the callback returns true then separation, rebounds and the touching flags will all be set. -If it returns false this will be skipped and must be handled manually.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> hitLeft(body, response)

- - -
-
- - -
-

Process a collision with the left face of this Body. -Collision and separation can be further checked by setting a collideCallback. -This callback will be sent 4 parameters: The face of collision, this Body, the colliding Body and the SAT Response. -If the callback returns true then separation, rebounds and the touching flags will all be set. -If it returns false this will be skipped and must be handled manually.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> hitRight(body, response)

- - -
-
- - -
-

Process a collision with the right face of this Body. -Collision and separation can be further checked by setting a collideCallback. -This callback will be sent 4 parameters: The face of collision, this Body, the colliding Body and the SAT Response. -If the callback returns true then separation, rebounds and the touching flags will all be set. -If it returns false this will be skipped and must be handled manually.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> hitTop(body, response)

- - -
-
- - -
-

Process a collision with the top face of this Body. -Collision and separation can be further checked by setting a collideCallback. -This callback will be sent 4 parameters: The face of collision, this Body, the colliding Body and the SAT Response. -If the callback returns true then separation, rebounds and the touching flags will all be set. -If it returns false this will be skipped and must be handled manually.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

inContact(body) → {boolean}

- - -
-
- - -
-

Checks if this Body is already in contact with the given Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body to be checked.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if the given Body is already in contact with this Body.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

<protected> integrateVelocity()

- - -
-
- - -
-

Internal method. Integrates velocity, global gravity and the delta timer.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

onFloor() → {boolean}

- - -
-
- - -
-

Determines if this Body is 'on the floor', which means in contact with a Tile or World bounds, or other object that has set 'down' as blocked.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if this Body is 'on the floor', which means in contact with a Tile or World bounds, or object that has set 'down' as blocked.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

onWall() → {boolean}

- - -
-
- - -
-

Determins if this Body is 'on a wall', which means horizontally in contact with a Tile or World bounds, or other object but not the ground.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if this Body is 'on a wall', which means horizontally in contact with a Tile or World bounds, or other object but not the ground.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

overlap(body, response) → {boolean}

- - -
-
- - -
-

Checks for an overlap between this Body and the given Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that is being checked against this Body.

response - - -SAT.Response - - - -

SAT Response handler.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if the two bodies overlap, otherwise false.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

<protected> postUpdate()

- - -
-
- - -
-

Internal method. This is called directly before the sprites are sent to the renderer and after the update function has finished.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> preUpdate()

- - -
-
- - -
-

Internal method that updates the Body position in relation to the parent Sprite.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> processRebound(body)

- - -
-
- - -
-

Rebound the velocity of this Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> reboundCheck(x, y, rebound)

- - -
-
- - -
-

Check if we're below minVelocity and gravity isn't trying to drag us in the opposite direction.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
x - - -boolean - - - -

Check the X axis?

y - - -boolean - - - -

Check the Y axis?

rebound - - -boolean - - - -

If true it will reverse the velocity on the given axis

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

removeContact(body) → {boolean}

- - -
-
- - -
-

Removes the given Body from the contact list of this Body. Also removes this Body from the contact list of the given Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body to be removed.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if the given Body was removed from this contact list, false if wasn't on it.

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

reset(full)

- - -
-
- - -
-

Resets the Body motion values: velocity, acceleration, angularVelocity and angularAcceleration. -Also resets the forces to defaults: gravity, bounce, minVelocity,maxVelocity, angularDrag, maxAngular, mass, friction and checkCollision if 'full' specified.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeArgumentDefaultDescription
full - - -boolean - - - - - - <optional>
- - - - - -
- - false - -

A full reset clears down settings you may have set, such as gravity, bounce and drag. A non-full reset just clears motion values.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> separate(body, response) → {boolean}

- - -
-
- - -
-

This separates this Body from the given Body unless a customSeparateCallback is set. -It assumes they have already been overlap checked and the resulting overlap is stored in the SAT response.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body to be separated from this one.

response - - -SAT.Response - - - -

SAT Response handler.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

True if the bodies were separated, false if not (for example checkCollide allows them to pass through)

-
- - - -
-
- Type -
-
- -boolean - - -
-
- - - - - -
- - - -
-

setCircle(radius, offsetX, offsetY)

- - -
-
- - -
-

Sets this Body to use a circle of the given radius for all collision. -The Circle will be centered on the center of the Sprite by default, but can be adjusted via the Body.offset property and the setCircle x/y parameters.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeArgumentDefaultDescription
radius - - -number - - - - - - - - - - - -

The radius of this circle (in pixels)

offsetX - - -number - - - - - - <optional>
- - - - - -
- - 0 - -

The x amount the circle will be offset from the Sprites center.

offsetY - - -number - - - - - - <optional>
- - - - - -
- - 0 - -

The y amount the circle will be offset from the Sprites center.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

setPolygon(points)

- - -
-
- - -
-

Sets this Body to use a convex polygon for collision. -The points are specified in a counter-clockwise direction and must create a convex polygon. -Use Body.translate and/or Body.offset to re-position the polygon from the Sprite origin.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
points - - -Array.<SAT.Vector> -| - -Array.<number> -| - -SAT.Vector -| - -number - - - -

This can be an array of Vectors that form the polygon, - a flat array of numbers that will be interpreted as [x,y, x,y, ...], or the arguments passed can be - all the points of the polygon e.g. setPolygon(new SAT.Vector(), new SAT.Vector(), ...), or the - arguments passed can be flat x,y values e.g. setPolygon(x,y, x,y, x,y, ...) where x and y are Numbers.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

setRectangle(width, height, translateX, translateY)

- - -
-
- - -
-

Sets this Body to use a rectangle for all collision. -If you don't specify any parameters it will be sized to match the parent Sprites current width and height (including scale factor) and centered on the sprite.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeArgumentDescription
width - - -number - - - - - - <optional>
- - - - - -

The width of the rectangle. If not specified it will default to the width of the parent Sprite.

height - - -number - - - - - - <optional>
- - - - - -

The height of the rectangle. If not specified it will default to the height of the parent Sprite.

translateX - - -number - - - - - - <optional>
- - - - - -

The x amount the rectangle will be translated from the Sprites center.

translateY - - -number - - - - - - <optional>
- - - - - -

The y amount the rectangle will be translated from the Sprites center.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> split(body, response)

- - -
-
- - -
-

Split the collision response evenly between the two bodies.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> sub(v)

- - -
-
- - -
-

Subtracts the given Vector from this Body.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
v - - -SAT.Vector - - - -

The vector to substract from this Body.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> take(body, response)

- - -
-
- - -
-

Separation response handler.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body - - - -

The Body that collided.

response - - -SAT.Response - - - -

The SAT Response object containing the collision data.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

translate(x, y)

- - -
-
- - -
-

Used for translating rectangle and polygon bodies from the Sprite parent. Doesn't apply to Circles. -See also the Body.offset property.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
x - - -number - - - -

The x amount the polygon or rectangle will be translated by from the Sprite.

y - - -number - - - -

The y amount the polygon or rectangle will be translated by from the Sprite.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> updateBounds()

- - -
-
- - -
-

Internal method that updates the left, right, top, bottom, width and height properties.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

<protected> updateScale()

- - -
-
- - -
-

Internal method that updates the Body scale in relation to the parent Sprite.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- -
- - - - - -
- -
- - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Sat Feb 08 2014 07:19:48 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/Phaser.Physics.Arcade.html b/docs/Phaser.Physics.Arcade.html index 423fc955..b4d9a961 100644 --- a/docs/Phaser.Physics.Arcade.html +++ b/docs/Phaser.Physics.Arcade.html @@ -8130,7 +8130,7 @@ One way to use this is: velocityFromRotation(rotation, 200, sprite.velocity) whi Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.Body.html b/docs/Phaser.Physics.Body.html index 8632030f..99830afe 100644 --- a/docs/Phaser.Physics.Body.html +++ b/docs/Phaser.Physics.Body.html @@ -11849,7 +11849,7 @@ The speed is represented in pixels per second. So a value of 100 would move 100 Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.CollisionGroup.html b/docs/Phaser.Physics.CollisionGroup.html index 658142af..f9d68a97 100644 --- a/docs/Phaser.Physics.CollisionGroup.html +++ b/docs/Phaser.Physics.CollisionGroup.html @@ -718,7 +718,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.ContactMaterial.html b/docs/Phaser.Physics.ContactMaterial.html index c7ed1202..9d8c9d37 100644 --- a/docs/Phaser.Physics.ContactMaterial.html +++ b/docs/Phaser.Physics.ContactMaterial.html @@ -735,7 +735,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.InversePointProxy.html b/docs/Phaser.Physics.InversePointProxy.html index b15fd958..6bccc24c 100644 --- a/docs/Phaser.Physics.InversePointProxy.html +++ b/docs/Phaser.Physics.InversePointProxy.html @@ -892,7 +892,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.Material.html b/docs/Phaser.Physics.Material.html index f1df5d18..f397e671 100644 --- a/docs/Phaser.Physics.Material.html +++ b/docs/Phaser.Physics.Material.html @@ -721,7 +721,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.PointProxy.html b/docs/Phaser.Physics.PointProxy.html index d02d81c5..13a99cd7 100644 --- a/docs/Phaser.Physics.PointProxy.html +++ b/docs/Phaser.Physics.PointProxy.html @@ -892,7 +892,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.Spring.html b/docs/Phaser.Physics.Spring.html index 9e49ed45..2dbb280d 100644 --- a/docs/Phaser.Physics.Spring.html +++ b/docs/Phaser.Physics.Spring.html @@ -1118,7 +1118,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.World.html b/docs/Phaser.Physics.World.html index 1d1c5eb9..ef6d1f9d 100644 --- a/docs/Phaser.Physics.World.html +++ b/docs/Phaser.Physics.World.html @@ -7455,7 +7455,7 @@ You can optionally set which 'walls' to create: left, right, top or bottom.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Physics.html b/docs/Phaser.Physics.html index b43c6356..79274a31 100644 --- a/docs/Phaser.Physics.html +++ b/docs/Phaser.Physics.html @@ -2083,7 +2083,7 @@ You can optionally set which 'walls' to create: left, right, top or bottom.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:30 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:42 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Plugin.html b/docs/Phaser.Plugin.html index 93e78c8a..d1451400 100644 --- a/docs/Phaser.Plugin.html +++ b/docs/Phaser.Plugin.html @@ -1980,7 +1980,7 @@ It is only called if active is set to true.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:43 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.PluginManager.html b/docs/Phaser.PluginManager.html index 9bcb5f32..cc5baf3b 100644 --- a/docs/Phaser.PluginManager.html +++ b/docs/Phaser.PluginManager.html @@ -1645,7 +1645,7 @@ It only calls plugins who have active=true.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Point.html b/docs/Phaser.Point.html index 8a39d141..24efa0e4 100644 --- a/docs/Phaser.Point.html +++ b/docs/Phaser.Point.html @@ -5505,7 +5505,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Pointer.html b/docs/Phaser.Pointer.html index 2bf4fc01..5858b5f5 100644 --- a/docs/Phaser.Pointer.html +++ b/docs/Phaser.Pointer.html @@ -4483,7 +4483,7 @@ If you wish to check if the Pointer was released just once then see the Sprite.e Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:31 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Polygon.html b/docs/Phaser.Polygon.html index bfba0ab3..33f4215d 100644 --- a/docs/Phaser.Polygon.html +++ b/docs/Phaser.Polygon.html @@ -1138,7 +1138,7 @@ arguments passed can be flat x,y values e.g. new Phaser.Polygon(x,y, x,y, Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.QuadTree.html b/docs/Phaser.QuadTree.html deleted file mode 100644 index 845733ae..00000000 --- a/docs/Phaser.QuadTree.html +++ /dev/null @@ -1,1709 +0,0 @@ - - - - - - Phaser Class: QuadTree - - - - - - - - - - -
- - -
- - -
- -
- - - -

Class: QuadTree

-
- -
-

- Phaser. - - QuadTree -

- -

A QuadTree implementation. The original code was a conversion of the Java code posted to GameDevTuts. -However I've tweaked it massively to add node indexing, removed lots of temp. var creation and significantly increased performance as a result. -Original version at https://github.com/timohausmann/quadtree-js/

- -
- -
-
- - - - -
-

new QuadTree(x, y, width, height, maxObjects, maxLevels, level)

- - -
-
- - -
-

QuadTree Constructor

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeArgumentDefaultDescription
x - - -number - - - - - - - - - - - -

The top left coordinate of the quadtree.

y - - -number - - - - - - - - - - - -

The top left coordinate of the quadtree.

width - - -number - - - - - - - - - - - -

The width of the quadtree in pixels.

height - - -number - - - - - - - - - - - -

The height of the quadtree in pixels.

maxObjects - - -number - - - - - - <optional>
- - - - - -
- - 10 - -

The maximum number of objects per node.

maxLevels - - -number - - - - - - <optional>
- - - - - -
- - 4 - -

The maximum number of levels to iterate to.

level - - -number - - - - - - <optional>
- - - - - -
- - 0 - -

Which level is this?

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - - - -

Methods

- -
- -
-

clear()

- - -
-
- - -
-

/* -Clear the quadtree.

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

getIndex(rect) → {number}

- - -
-
- - -
-

/* -Determine which node the object belongs to.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rect - - -Phaser.Rectangle -| - -object - - - -

The bounds in which to check.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-

index - Index of the subnode (0-3), or -1 if rect cannot completely fit within a subnode and is part of the parent node.

-
- - - -
-
- Type -
-
- -number - - -
-
- - - - - -
- - - -
-

insert(body)

- - -
-
- - -
-

/* -Insert the object into the node. If the node exceeds the capacity, it will split and add all objects to their corresponding subnodes.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
body - - -Phaser.Physics.Arcade.Body -| - -object - - - -

The Body object to insert into the quadtree.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

populate(group)

- - -
-
- - -
-

/* -Populates this quadtree with the members of the given Group.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
group - - -Phaser.Group - - - -

The Group to add to the quadtree.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

populateHandler(sprite)

- - -
-
- - -
-

/* -Handler for the populate method.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
sprite - - -Phaser.Sprite - - - -

The Sprite to check.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- - - -
-

retrieve(sprite) → {array}

- - -
-
- - -
-

/* -Return all objects that could collide with the given Sprite.

-
- - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
sprite - - -Phaser.Sprite - - - -

The sprite to check against.

- - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - -
Returns:
- - -
-
    -
  • Array with all detected objects.
  • -
-
- - - -
-
- Type -
-
- -array - - -
-
- - - - - -
- - - -
-

split()

- - -
-
- - -
-

/* -Split the node into 4 subnodes

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
- -
- - - - - -
- -
- - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Tue Feb 18 2014 03:01:25 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/Phaser.RandomDataGenerator.html b/docs/Phaser.RandomDataGenerator.html index 1abc018c..0920b7b0 100644 --- a/docs/Phaser.RandomDataGenerator.html +++ b/docs/Phaser.RandomDataGenerator.html @@ -2111,7 +2111,7 @@ Random number generator from Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Rectangle.html b/docs/Phaser.Rectangle.html index ec1300ea..ed4cd879 100644 --- a/docs/Phaser.Rectangle.html +++ b/docs/Phaser.Rectangle.html @@ -7708,7 +7708,7 @@ This method checks the x, y, width, and height properties of the Rectangles.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.RenderTexture.html b/docs/Phaser.RenderTexture.html index 95788e6d..b8abd193 100644 --- a/docs/Phaser.RenderTexture.html +++ b/docs/Phaser.RenderTexture.html @@ -1620,7 +1620,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.RequestAnimationFrame.html b/docs/Phaser.RequestAnimationFrame.html index f4611c86..d618ecdd 100644 --- a/docs/Phaser.RequestAnimationFrame.html +++ b/docs/Phaser.RequestAnimationFrame.html @@ -1534,7 +1534,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:44 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Signal.html b/docs/Phaser.Signal.html index 18afda0b..1075e446 100644 --- a/docs/Phaser.Signal.html +++ b/docs/Phaser.Signal.html @@ -2362,7 +2362,7 @@ IMPORTANT: should be called only during signal dispatch, calling it before/after Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.SinglePad.html b/docs/Phaser.SinglePad.html index 251dff3a..1b45fbb0 100644 --- a/docs/Phaser.SinglePad.html +++ b/docs/Phaser.SinglePad.html @@ -3991,7 +3991,7 @@ analog trigger buttons on the XBOX 360 controller

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Sound.html b/docs/Phaser.Sound.html index e5f9ed40..ee8690d4 100644 --- a/docs/Phaser.Sound.html +++ b/docs/Phaser.Sound.html @@ -5873,7 +5873,7 @@ This allows you to bundle multiple sounds together into a single audio file and Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:32 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.SoundManager.html b/docs/Phaser.SoundManager.html index 55cac110..b9a44303 100644 --- a/docs/Phaser.SoundManager.html +++ b/docs/Phaser.SoundManager.html @@ -1143,7 +1143,7 @@ Note: On Firefox 25+ on Linux if you have media.gstreamer disabled in about:conf
Source:
@@ -1761,7 +1761,7 @@ Note: On Firefox 25+ on Linux if you have media.gstreamer disabled in about:conf
Source:
@@ -2358,7 +2358,7 @@ Note: On Firefox 25+ on Linux if you have media.gstreamer disabled in about:conf
-

play(key, volume, loop, destroyOnComplete) → {Phaser.Sound}

+

play(key, volume, loop) → {Phaser.Sound}

@@ -2514,45 +2514,6 @@ Note: On Firefox 25+ on Linux if you have media.gstreamer disabled in about:conf - - - - destroyOnComplete - - - - - -boolean - - - - - - - - - <optional>
- - - - - - - - - - - - false - - - - -

If true the Sound will destroy itself once it has finished playing, or is stopped.

- - - @@ -2931,7 +2892,7 @@ Note: On Firefox 25+ on Linux if you have media.gstreamer disabled in about:conf Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Sprite.html b/docs/Phaser.Sprite.html index 8475e04b..55e15a09 100644 --- a/docs/Phaser.Sprite.html +++ b/docs/Phaser.Sprite.html @@ -5348,7 +5348,7 @@ It will dispatch the onRevived event, you can listen to Sprite.events.onRevived Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.SpriteBatch.html b/docs/Phaser.SpriteBatch.html index 35553d3d..29500248 100644 --- a/docs/Phaser.SpriteBatch.html +++ b/docs/Phaser.SpriteBatch.html @@ -9199,7 +9199,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Stage.html b/docs/Phaser.Stage.html index 3e0a12ad..729433cf 100644 --- a/docs/Phaser.Stage.html +++ b/docs/Phaser.Stage.html @@ -780,7 +780,7 @@ focus handling, game resizing, scaling and the pause, boot and orientation scree
Source:
@@ -1461,7 +1461,7 @@ focus handling, game resizing, scaling and the pause, boot and orientation scree
Source:
@@ -1484,6 +1484,75 @@ focus handling, game resizing, scaling and the pause, boot and orientation scree
+
+

checkVisibility()

+ + +
+
+ + +
+

Starts a page visibility event listener running, or window.blur/focus if not supported by the browser.

+
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
+ + +

<protected> parseConfig()

@@ -1526,7 +1595,7 @@ focus handling, game resizing, scaling and the pause, boot and orientation scree
Source:
@@ -1598,7 +1667,7 @@ The only exception to this is if the camera is following an object, in which cas
Source:
@@ -1668,7 +1737,7 @@ Most objects have preUpdate methods and it's where initial movement and position
Source:
@@ -1737,7 +1806,7 @@ Most objects have preUpdate methods and it's where initial movement and position
Source:
@@ -1806,7 +1875,7 @@ Most objects have preUpdate methods and it's where initial movement and position
Source:
@@ -1924,7 +1993,7 @@ Most objects have preUpdate methods and it's where initial movement and position
Source:
@@ -1975,7 +2044,7 @@ Most objects have preUpdate methods and it's where initial movement and position Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:45 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.StageScaleMode.html b/docs/Phaser.StageScaleMode.html index ef73be97..affdd587 100644 --- a/docs/Phaser.StageScaleMode.html +++ b/docs/Phaser.StageScaleMode.html @@ -5264,7 +5264,7 @@ Please note that this needs to be supported by the web browser and isn't the sam Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.State.html b/docs/Phaser.State.html index 2344d187..e2cf2223 100644 --- a/docs/Phaser.State.html +++ b/docs/Phaser.State.html @@ -2642,7 +2642,7 @@ If you need to use the loader, you may need to use them here.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:33 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.StateManager.html b/docs/Phaser.StateManager.html index 4cf5f866..fadbd1c5 100644 --- a/docs/Phaser.StateManager.html +++ b/docs/Phaser.StateManager.html @@ -1709,6 +1709,108 @@ +
+ + + +
+ + + +
+

onResumedCallback

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
onResumedCallback + + +function + + + +

This will be called when the state is resumed from a paused state.

+
+ + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + +
@@ -1802,7 +1904,7 @@
Source:
@@ -2166,7 +2268,7 @@
Source:
@@ -2285,7 +2387,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2377,7 +2479,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2446,7 +2548,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2575,7 +2677,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2640,7 +2742,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2705,7 +2807,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2770,7 +2872,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2888,7 +2990,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -2953,7 +3055,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -3018,7 +3120,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -3230,7 +3332,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -3295,7 +3397,7 @@ State must exist and have at least one callback function registered..

Source:
@@ -3346,7 +3448,7 @@ State must exist and have at least one callback function registered..

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Text.html b/docs/Phaser.Text.html index 584e5b3b..16e1cd43 100644 --- a/docs/Phaser.Text.html +++ b/docs/Phaser.Text.html @@ -4404,7 +4404,7 @@ activated for this object and it will then start to process click/touch events a Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Tile.html b/docs/Phaser.Tile.html index 4d1a6ec1..cc8fa8a3 100644 --- a/docs/Phaser.Tile.html +++ b/docs/Phaser.Tile.html @@ -4039,7 +4039,7 @@ The callback must true true for collision processing to take place.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.TileSprite.html b/docs/Phaser.TileSprite.html index a692a5d9..eacb38d2 100644 --- a/docs/Phaser.TileSprite.html +++ b/docs/Phaser.TileSprite.html @@ -881,7 +881,7 @@ If you wish to work in radians instead of degrees use the property Sprite.rotati
Source:
@@ -1085,7 +1085,7 @@ If you wish to work in radians instead of degrees use the property Sprite.rotati
Source:
@@ -1295,7 +1295,7 @@ So if this TileSprite was in a Group that has x: 200, then this will be added to
Source:
@@ -1397,7 +1397,7 @@ So if this TileSprite was in a Group that has x: 200, then this will be added to
Source:
@@ -1499,7 +1499,7 @@ So if this TileSprite was in a Group that has x: 200, then this will be added to
Source:
@@ -1610,6 +1610,218 @@ So if this TileSprite was in a Group that has x: 200, then this will be added to + + + + + + + + +
+

input

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
input + + +Phaser.InputHandler +| + +null + + + +

The Input Handler for this object. Needs to be enabled with image.inputEnabled = true before you can use it.

+
+ + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
+ + + +
+

inputEnabled

+ + +
+
+ +
+

By default a TileSprite won't process any input events at all. By setting inputEnabled to true the Phaser.InputHandler is +activated for this object and it will then start to process click/touch events and more.

+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
inputEnabled + + +boolean + + + +

Set to true to allow this object to receive input events.

+
+ + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + +
@@ -2018,7 +2230,7 @@ So if this TileSprite was in a Group that has x: 200, then this will be added to
Source:
@@ -2086,7 +2298,7 @@ A negative y value will scroll up. A positive y value will scroll down.

Source:
@@ -2156,7 +2368,7 @@ and nulls its reference to game, freeing it up for garbage collection.

Source:
@@ -2310,7 +2522,7 @@ This causes a WebGL texture update, so use sparingly or in low-intensity portion
Source:
@@ -2562,7 +2774,7 @@ If the requested animation is already playing this request will be ignored. If y
Source:
@@ -2654,7 +2866,7 @@ If the requested animation is already playing this request will be ignored. If y
Source:
@@ -2723,7 +2935,7 @@ If the requested animation is already playing this request will be ignored. If y
Source:
@@ -2792,7 +3004,7 @@ If the requested animation is already playing this request will be ignored. If y
Source:
@@ -2861,7 +3073,7 @@ If the requested animation is already playing this request will be ignored. If y
Source:
@@ -2912,7 +3124,7 @@ If the requested animation is already playing this request will be ignored. If y Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Tilemap.html b/docs/Phaser.Tilemap.html index 53b74e55..62195fad 100644 --- a/docs/Phaser.Tilemap.html +++ b/docs/Phaser.Tilemap.html @@ -10995,7 +10995,7 @@ If you want to set a callback for a tile at a specific location on the map then Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:46 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.TilemapLayer.html b/docs/Phaser.TilemapLayer.html index 3ee341c3..ba0185ec 100644 --- a/docs/Phaser.TilemapLayer.html +++ b/docs/Phaser.TilemapLayer.html @@ -4674,7 +4674,7 @@ half as quickly as the 'normal' camera-locked layers do)

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.TilemapParser.html b/docs/Phaser.TilemapParser.html index f6f5793d..409618c3 100644 --- a/docs/Phaser.TilemapParser.html +++ b/docs/Phaser.TilemapParser.html @@ -1609,7 +1609,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Tileset.html b/docs/Phaser.Tileset.html index 557a06a2..80b1e4a4 100644 --- a/docs/Phaser.Tileset.html +++ b/docs/Phaser.Tileset.html @@ -2676,7 +2676,7 @@ You should not normally instantiate this class directly.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:34 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Time.html b/docs/Phaser.Time.html index 543419d3..60996890 100644 --- a/docs/Phaser.Time.html +++ b/docs/Phaser.Time.html @@ -3156,7 +3156,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Timer.html b/docs/Phaser.Timer.html index 72e43077..edbe1c64 100644 --- a/docs/Phaser.Timer.html +++ b/docs/Phaser.Timer.html @@ -3820,7 +3820,7 @@ If the Timer is already running the delay will be calculated based on the timers Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.TimerEvent.html b/docs/Phaser.TimerEvent.html index 68696d96..71f6e8d5 100644 --- a/docs/Phaser.TimerEvent.html +++ b/docs/Phaser.TimerEvent.html @@ -1745,7 +1745,7 @@ It can call a specific callback, passing in optional parameters.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Touch.html b/docs/Phaser.Touch.html index 5f77cf04..c57d48e3 100644 --- a/docs/Phaser.Touch.html +++ b/docs/Phaser.Touch.html @@ -2715,7 +2715,7 @@ Doesn't appear to be supported by most browsers on a canvas element yet.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Tween.html b/docs/Phaser.Tween.html index 1c051b46..3428ebc5 100644 --- a/docs/Phaser.Tween.html +++ b/docs/Phaser.Tween.html @@ -3204,7 +3204,7 @@ Used in combination with repeat you can create endless loops.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.TweenManager.html b/docs/Phaser.TweenManager.html index 0a9df269..56b95513 100644 --- a/docs/Phaser.TweenManager.html +++ b/docs/Phaser.TweenManager.html @@ -1708,7 +1708,7 @@ Please see https://github.com/sole/tw Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Utils.Debug.html b/docs/Phaser.Utils.Debug.html index ecec4f96..44677928 100644 --- a/docs/Phaser.Utils.Debug.html +++ b/docs/Phaser.Utils.Debug.html @@ -1986,7 +1986,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -2390,7 +2390,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -2771,7 +2771,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -3014,7 +3014,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -3183,7 +3183,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -3375,7 +3375,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -3536,7 +3536,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -4069,7 +4069,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -4279,7 +4279,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -4512,7 +4512,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -4745,7 +4745,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -4978,7 +4978,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -5211,7 +5211,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -5907,7 +5907,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -6647,7 +6647,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL
Source:
@@ -7140,7 +7140,7 @@ your game set to use Phaser.AUTO then swap it for Phaser.CANVAS to ensure WebGL Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.Utils.html b/docs/Phaser.Utils.html index 7e61abb8..54cf0b2f 100644 --- a/docs/Phaser.Utils.html +++ b/docs/Phaser.Utils.html @@ -1333,7 +1333,7 @@ dir = 1 (left), 2 (right), 3 (both)

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:35 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.World.html b/docs/Phaser.World.html index 00366e5b..c0d0973d 100644 --- a/docs/Phaser.World.html +++ b/docs/Phaser.World.html @@ -10182,7 +10182,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:36 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.html b/docs/Phaser.html index 2dbbe412..1b8bd313 100644 --- a/docs/Phaser.html +++ b/docs/Phaser.html @@ -810,7 +810,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Phaser.js.html b/docs/Phaser.js.html index 4490ca6b..6d44c50f 100644 --- a/docs/Phaser.js.html +++ b/docs/Phaser.js.html @@ -590,7 +590,7 @@ PIXI.InteractionManager = function (dummy) { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Plugin.js.html b/docs/Plugin.js.html index f40ede86..ba57b9ab 100644 --- a/docs/Plugin.js.html +++ b/docs/Plugin.js.html @@ -633,7 +633,7 @@ Phaser.Plugin.prototype.constructor = Phaser.Plugin; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/PluginManager.js.html b/docs/PluginManager.js.html index f0d45c44..fb140a30 100644 --- a/docs/PluginManager.js.html +++ b/docs/PluginManager.js.html @@ -809,7 +809,7 @@ Phaser.PluginManager.prototype.constructor = Phaser.PluginManager; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Point.js.html b/docs/Point.js.html index 3eb655a9..35a20115 100644 --- a/docs/Point.js.html +++ b/docs/Point.js.html @@ -969,7 +969,7 @@ PIXI.Point = Phaser.Point; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/PointProxy.js.html b/docs/PointProxy.js.html index e5ba42ca..a04d40aa 100644 --- a/docs/PointProxy.js.html +++ b/docs/PointProxy.js.html @@ -573,7 +573,7 @@ Object.defineProperty(Phaser.Physics.PointProxy.prototype, "y", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Pointer.js.html b/docs/Pointer.js.html index fd02125f..6b6cacac 100644 --- a/docs/Pointer.js.html +++ b/docs/Pointer.js.html @@ -1156,7 +1156,7 @@ Object.defineProperty(Phaser.Pointer.prototype, "worldY", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Polygon.js.html b/docs/Polygon.js.html index 40673184..b1f61d60 100644 --- a/docs/Polygon.js.html +++ b/docs/Polygon.js.html @@ -620,7 +620,7 @@ PIXI.Polygon = Phaser.Polygon; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/QuadTree.js.html b/docs/QuadTree.js.html deleted file mode 100644 index 95f7c93a..00000000 --- a/docs/QuadTree.js.html +++ /dev/null @@ -1,808 +0,0 @@ - - - - - - Phaser Source: math/QuadTree.js - - - - - - - - - - -
- - -
- - -
- -
- - - -

Source: math/QuadTree.js

- -
-
-
/**
-* @author       Richard Davey <rich@photonstorm.com>
-* @copyright    2014 Photon Storm Ltd.
-* @license      {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
-*/
-
-/**
-* Javascript QuadTree 
-* @version 1.0
-* @author Timo Hausmann
-*
-* @version 1.2, September 4th 2013
-* @author Richard Davey
-* The original code was a conversion of the Java code posted to GameDevTuts. However I've tweaked
-* it massively to add node indexing, removed lots of temp. var creation and significantly
-* increased performance as a result.
-*
-* Original version at https://github.com/timohausmann/quadtree-js/
-*/
- 
-/**
-* @copyright © 2012 Timo Hausmann
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to
-* permit persons to whom the Software is furnished to do so, subject to
-* the following conditions:
-*
-* The above copyright notice and this permission notice shall be
-* included in all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-/**
-* QuadTree Constructor
-* 
-* @class Phaser.QuadTree
-* @classdesc A QuadTree implementation. The original code was a conversion of the Java code posted to GameDevTuts. 
-* However I've tweaked it massively to add node indexing, removed lots of temp. var creation and significantly increased performance as a result. 
-* Original version at https://github.com/timohausmann/quadtree-js/
-* @constructor
-* @param {number} x - The top left coordinate of the quadtree.
-* @param {number} y - The top left coordinate of the quadtree.
-* @param {number} width - The width of the quadtree in pixels.
-* @param {number} height - The height of the quadtree in pixels.
-* @param {number} [maxObjects=10] - The maximum number of objects per node.
-* @param {number} [maxLevels=4] - The maximum number of levels to iterate to.
-* @param {number} [level=0] - Which level is this?
-*/
-Phaser.QuadTree = function (x, y, width, height, maxObjects, maxLevels, level) {
-        
-    this.maxObjects = maxObjects || 10;
-    this.maxLevels = maxLevels || 4;
-    this.level = level || 0;
-
-    this.bounds = {
-        x: Math.round(x),
-        y: Math.round(y),
-        width: width,
-        height: height,
-        subWidth: Math.floor(width / 2),
-        subHeight: Math.floor(height / 2),
-        right: Math.round(x) + Math.floor(width / 2),
-        bottom: Math.round(y) + Math.floor(height / 2)
-    };
-    
-    this.objects = [];
-    this.nodes = [];
-
-};
-
-Phaser.QuadTree.prototype = {
-
-    /*
-    * Populates this quadtree with the members of the given Group.
-    * 
-    * @method Phaser.QuadTree#populate
-    * @param {Phaser.Group} group - The Group to add to the quadtree.
-    */
-    populate: function (group) {
-
-        group.forEach(this.populateHandler, this, true);
-
-    },
-
-    /*
-    * Handler for the populate method.
-    * 
-    * @method Phaser.QuadTree#populateHandler
-    * @param {Phaser.Sprite} sprite - The Sprite to check.
-    */
-    populateHandler: function (sprite) {
-
-        if (sprite.body && sprite.body.checkCollision.none === false && sprite.alive)
-        {
-            this.insert(sprite.body);
-        }
-
-    },
-
-    /*
-    * Split the node into 4 subnodes
-    * 
-    * @method Phaser.QuadTree#split
-    */
-    split: function () {
-
-        this.level++;
-        
-        //  top right node
-        this.nodes[0] = new Phaser.QuadTree(this.bounds.right, this.bounds.y, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level);
-        
-        //  top left node
-        this.nodes[1] = new Phaser.QuadTree(this.bounds.x, this.bounds.y, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level);
-        
-        //  bottom left node
-        this.nodes[2] = new Phaser.QuadTree(this.bounds.x, this.bounds.bottom, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level);
-        
-        //  bottom right node
-        this.nodes[3] = new Phaser.QuadTree(this.bounds.right, this.bounds.bottom, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level);
-
-    },
-
-    /*
-    * Insert the object into the node. If the node exceeds the capacity, it will split and add all objects to their corresponding subnodes.
-    * 
-    * @method Phaser.QuadTree#insert
-    * @param {Phaser.Physics.Arcade.Body|object} body - The Body object to insert into the quadtree.
-    */
-    insert: function (body) {
-        
-        var i = 0;
-        var index;
-        
-        //  if we have subnodes ...
-        if (this.nodes[0] != null)
-        {
-            index = this.getIndex(body);
-     
-            if (index !== -1)
-            {
-                this.nodes[index].insert(body);
-                return;
-            }
-        }
-     
-        this.objects.push(body);
-        
-        if (this.objects.length > this.maxObjects && this.level < this.maxLevels)
-        {
-            //  Split if we don't already have subnodes
-            if (this.nodes[0] == null)
-            {
-                this.split();
-            }
-            
-            //  Add objects to subnodes
-            while (i < this.objects.length)
-            {
-                index = this.getIndex(this.objects[i]);
-                
-                if (index !== -1)
-                {
-                    //  this is expensive - see what we can do about it
-                    this.nodes[index].insert(this.objects.splice(i, 1)[0]);
-                }
-                else
-                {
-                    i++;
-                }
-            }
-        }
-
-    },
-     
-    /*
-    * Determine which node the object belongs to.
-    * 
-    * @method Phaser.QuadTree#getIndex
-    * @param {Phaser.Rectangle|object} rect - The bounds in which to check.
-    * @return {number} index - Index of the subnode (0-3), or -1 if rect cannot completely fit within a subnode and is part of the parent node.
-    */
-    getIndex: function (rect) {
-        
-        //  default is that rect doesn't fit, i.e. it straddles the internal quadrants
-        var index = -1;
-
-        if (rect.x < this.bounds.right && rect.right < this.bounds.right)
-        {
-            if ((rect.y < this.bounds.bottom && rect.bottom < this.bounds.bottom))
-            {
-                //  rect fits within the top-left quadrant of this quadtree
-                index = 1;
-            }
-            else if ((rect.y > this.bounds.bottom))
-            {
-                //  rect fits within the bottom-left quadrant of this quadtree
-                index = 2;
-            }
-        }
-        else if (rect.x > this.bounds.right)
-        {
-            //  rect can completely fit within the right quadrants
-            if ((rect.y < this.bounds.bottom && rect.bottom < this.bounds.bottom))
-            {
-                //  rect fits within the top-right quadrant of this quadtree
-                index = 0;
-            }
-            else if ((rect.y > this.bounds.bottom))
-            {
-                //  rect fits within the bottom-right quadrant of this quadtree
-                index = 3;
-            }
-        }
-     
-        return index;
-
-    },
-
-    /*
-    * Return all objects that could collide with the given Sprite.
-    * 
-    * @method Phaser.QuadTree#retrieve
-    * @param {Phaser.Sprite} sprite - The sprite to check against.
-    * @return {array} - Array with all detected objects.
-    */
-    retrieve: function (sprite) {
-        
-        var returnObjects = this.objects;
-
-        sprite.body.quadTreeIndex = this.getIndex(sprite.body);
-
-        //  Temp store for the node IDs this sprite is in, we can use this for fast elimination later
-        // sprite.body.quadTreeIDs.push(this.ID);
-
-        if (this.nodes[0])
-        {
-            //  if rect fits into a subnode ..
-            if (sprite.body.quadTreeIndex !== -1)
-            {
-                returnObjects = returnObjects.concat(this.nodes[sprite.body.quadTreeIndex].retrieve(sprite));
-            }
-            else
-            {
-                //  if rect does not fit into a subnode, check it against all subnodes (unrolled for speed)
-                returnObjects = returnObjects.concat(this.nodes[0].retrieve(sprite));
-                returnObjects = returnObjects.concat(this.nodes[1].retrieve(sprite));
-                returnObjects = returnObjects.concat(this.nodes[2].retrieve(sprite));
-                returnObjects = returnObjects.concat(this.nodes[3].retrieve(sprite));
-            }
-        }
-     
-        return returnObjects;
-
-    },
-
-    /*
-    * Clear the quadtree.
-    * @method Phaser.QuadTree#clear
-    */
-    clear: function () {
-        
-        this.objects = [];
-     
-        for (var i = 0, len = this.nodes.length; i < len; i++)
-        {
-            if (this.nodes[i])
-            {
-                this.nodes[i].clear();
-                delete this.nodes[i];
-            }
-        }
-    }
-
-};
-
-Phaser.QuadTree.prototype.constructor = Phaser.QuadTree;
-
-
-
- - - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Tue Feb 18 2014 03:01:17 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/docs/RandomDataGenerator.js.html b/docs/RandomDataGenerator.js.html index 29fac511..28b05229 100644 --- a/docs/RandomDataGenerator.js.html +++ b/docs/RandomDataGenerator.js.html @@ -759,7 +759,7 @@ Phaser.RandomDataGenerator.prototype.constructor = Phaser.RandomDataGenerator; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Rectangle.js.html b/docs/Rectangle.js.html index 24ee51e5..632f03c5 100644 --- a/docs/Rectangle.js.html +++ b/docs/Rectangle.js.html @@ -1286,7 +1286,7 @@ PIXI.EmptyRectangle = new Phaser.Rectangle(0, 0, 0, 0); Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/RenderTexture.js.html b/docs/RenderTexture.js.html index 6f508850..44cf9555 100644 --- a/docs/RenderTexture.js.html +++ b/docs/RenderTexture.js.html @@ -590,7 +590,7 @@ Phaser.RenderTexture.prototype.renderXY = function (displayObject, x, y, clear) Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/RequestAnimationFrame.js.html b/docs/RequestAnimationFrame.js.html index 58b8152f..e59a577f 100644 --- a/docs/RequestAnimationFrame.js.html +++ b/docs/RequestAnimationFrame.js.html @@ -677,7 +677,7 @@ Phaser.RequestAnimationFrame.prototype.constructor = Phaser.RequestAnimationFram Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SAT.js.html b/docs/SAT.js.html deleted file mode 100644 index 36c69c9c..00000000 --- a/docs/SAT.js.html +++ /dev/null @@ -1,1374 +0,0 @@ - - - - - - Phaser Source: physics/arcade/SAT.js - - - - - - - - - - -
- - -
- - -
- -
- - - -

Source: physics/arcade/SAT.js

- -
-
-
// Version 0.2 - Copyright 2013 -  Jim Riecken <jimr@jimr.ca>
-//
-// Released under the MIT License - https://github.com/jriecken/sat-js
-//
-// A simple library for determining intersections of circles and
-// polygons using the Separating Axis Theorem.
-/** @preserve SAT.js - Version 0.2 - Copyright 2013 - Jim Riecken <jimr@jimr.ca> - released under the MIT License. https://github.com/jriecken/sat-js */
-
-/*global define: false, module: false*/
-/*jshint shadow:true, sub:true, forin:true, noarg:true, noempty:true, 
-  eqeqeq:true, bitwise:true, strict:true, undef:true, 
-  curly:true, browser:true */
-
-// Create a UMD wrapper for SAT. Works in:
-//
-//  - Plain browser via global SAT variable
-//  - AMD loader (like require.js)
-//  - Node.js
-//
-// The quoted properties all over the place are used so that the Closure Compiler
-// does not mangle the exposed API in advanced mode.
-/**
- * @param {*} root - The global scope
- * @param {Function} factory - Factory that creates SAT module
- */
-(function (root, factory) {
-  "use strict";
-  if (typeof define === 'function' && define['amd']) {
-    define(factory);
-  } else if (typeof exports === 'object') {
-    module['exports'] = factory();
-  } else {
-    root['SAT'] = factory();
-  }
-}(this, function () {
-  "use strict";
-
-  var SAT = {};
-
-  //
-  // ## Vector
-  //
-  // Represents a vector in two dimensions with `x` and `y` properties.
-
-
-  // Create a new Vector, optionally passing in the `x` and `y` coordinates. If
-  // a coordinate is not specified, it will be set to `0`
-  /** 
-   * @param {?number=} x The x position.
-   * @param {?number=} y The y position.
-   * @constructor
-   */
-  function Vector(x, y) {
-    this['x'] = x || 0;
-    this['y'] = y || 0;
-  }
-  SAT['Vector'] = Vector;
-  // Alias `Vector` as `V`
-  SAT['V'] = Vector;
-
-
-  // Copy the values of another Vector into this one.
-  /**
-   * @param {Vector} other The other Vector.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['copy'] = Vector.prototype.copy = function(other) {
-    this['x'] = other['x'];
-    this['y'] = other['y'];
-    return this;
-  };
-
-  // Change this vector to be perpendicular to what it was before. (Effectively
-  // roatates it 90 degrees in a clockwise direction)
-  /**
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['perp'] = Vector.prototype.perp = function() {
-    var x = this['x'];
-    this['x'] = this['y'];
-    this['y'] = -x;
-    return this;
-  };
-
-  // Rotate this vector (counter-clockwise) by the specified angle (in radians).
-  /**
-   * @param {number} angle The angle to rotate (in radians)
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['rotate'] = Vector.prototype.rotate = function (angle) {
-    var x = this['x'];
-    var y = this['y'];
-    this['x'] = x * Math.cos(angle) - y * Math.sin(angle);
-    this['y'] = x * Math.sin(angle) + y * Math.cos(angle);
-    return this;
-  };
-
-  // Rotate this vector (counter-clockwise) by the specified angle (in radians) which has already been calculated into sin and cos.
-  /**
-   * @param {number} sin - The Math.sin(angle)
-   * @param {number} cos - The Math.cos(angle)
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['rotatePrecalc'] = Vector.prototype.rotatePrecalc = function (sin, cos) {
-    var x = this['x'];
-    var y = this['y'];
-    this['x'] = x * cos - y * sin;
-    this['y'] = x * sin + y * cos;
-    return this;
-  };
-
-  // Reverse this vector.
-  /**
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['reverse'] = Vector.prototype.reverse = function() {
-    this['x'] = -this['x'];
-    this['y'] = -this['y'];
-    return this;
-  };
-  
-
-  // Normalize this vector.  (make it have length of `1`)
-  /**
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['normalize'] = Vector.prototype.normalize = function() {
-    var d = this.len();
-    if(d > 0) {
-      this['x'] = this['x'] / d;
-      this['y'] = this['y'] / d;
-    }
-    return this;
-  };
-  
-  // Add another vector to this one.
-  /**
-   * @param {Vector} other The other Vector.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['add'] = Vector.prototype.add = function(other) {
-    this['x'] += other['x'];
-    this['y'] += other['y'];
-    return this;
-  };
-  
-  // Subtract another vector from this one.
-  /**
-   * @param {Vector} other The other Vector.
-   * @return {Vector} This for chaiing.
-   */
-  Vector.prototype['sub'] = Vector.prototype.sub = function(other) {
-    this['x'] -= other['x'];
-    this['y'] -= other['y'];
-    return this;
-  };
-  
-  // Scale this vector. An independant scaling factor can be provided
-  // for each axis, or a single scaling factor that will scale both `x` and `y`.
-  /**
-   * @param {number} x The scaling factor in the x direction.
-   * @param {?number=} y The scaling factor in the y direction.  If this
-   *   is not specified, the x scaling factor will be used.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['scale'] = Vector.prototype.scale = function(x,y) {
-    this['x'] *= x;
-    this['y'] *= y || x;
-    return this; 
-  };
-  
-  // Project this vector on to another vector.
-  /**
-   * @param {Vector} other The vector to project onto.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['project'] = Vector.prototype.project = function(other) {
-    var amt = this.dot(other) / other.len2();
-    this['x'] = amt * other['x'];
-    this['y'] = amt * other['y'];
-    return this;
-  };
-  
-  // Project this vector onto a vector of unit length. This is slightly more efficient
-  // than `project` when dealing with unit vectors.
-  /**
-   * @param {Vector} other The unit vector to project onto.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['projectN'] = Vector.prototype.projectN = function(other) {
-    var amt = this.dot(other);
-    this['x'] = amt * other['x'];
-    this['y'] = amt * other['y'];
-    return this;
-  };
-  
-  // Reflect this vector on an arbitrary axis.
-  /**
-   * @param {Vector} axis The vector representing the axis.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['reflect'] = Vector.prototype.reflect = function(axis) {
-    var x = this['x'];
-    var y = this['y'];
-    this.project(axis).scale(2);
-    this['x'] -= x;
-    this['y'] -= y;
-    return this;
-  };
-  
-  // Reflect this vector on an arbitrary axis (represented by a unit vector). This is
-  // slightly more efficient than `reflect` when dealing with an axis that is a unit vector.
-  /**
-   * @param {Vector} axis The unit vector representing the axis.
-   * @return {Vector} This for chaining.
-   */
-  Vector.prototype['reflectN'] = Vector.prototype.reflectN = function(axis) {
-    var x = this['x'];
-    var y = this['y'];
-    this.projectN(axis).scale(2);
-    this['x'] -= x;
-    this['y'] -= y;
-    return this;
-  };
-  
-  // Get the dot product of this vector and another.
-  /**
-   * @param {Vector}  other The vector to dot this one against.
-   * @return {number} The dot product.
-   */
-  Vector.prototype['dot'] = Vector.prototype.dot = function(other) {
-    return this['x'] * other['x'] + this['y'] * other['y'];
-  };
-  
-  // Get the squared length of this vector.
-  /**
-   * @return {number} The length^2 of this vector.
-   */
-  Vector.prototype['len2'] = Vector.prototype.len2 = function() {
-    return this.dot(this);
-  };
-  
-  // Get the length of this vector.
-  /**
-   * @return {number} The length of this vector.
-   */
-  Vector.prototype['len'] = Vector.prototype.len = function() {
-    return Math.sqrt(this.len2());
-  };
-  
-  // ## Circle
-  //
-  // Represents a circle with a position and a radius.
-
-  // Create a new circle, optionally passing in a position and/or radius. If no position
-  // is given, the circle will be at `(0,0)`. If no radius is provided, the circle will
-  // have a radius of `0`.
-  /**
-   * @param {Vector=} pos A vector representing the position of the center of the circle
-   * @param {?number=} r The radius of the circle
-   * @constructor
-   */
-  function Circle(pos, r) {
-    this['pos'] = pos || new Vector();
-    this['r'] = r || 0;
-  }
-  SAT['Circle'] = Circle;
-
-  // ## Polygon
-  //
-  // Represents a *convex* polygon with any number of points (specified in counter-clockwise order)
-  //
-  // The edges/normals of the polygon will be calculated on creation and stored in the
-  // `edges` and `normals` properties. If you change the polygon's points, you will need
-  // to call `recalc` to recalculate the edges/normals.
-
-  // Create a new polygon, passing in a position vector, and an array of points (represented
-  // by vectors relative to the position vector). If no position is passed in, the position
-  // of the polygon will be `(0,0)`.
-  /**
-   * @param {Vector=} pos A vector representing the origin of the polygon. (all other
-   *   points are relative to this one)
-   * @param {Array.<Vector>=} points An array of vectors representing the points in the polygon,
-   *   in counter-clockwise order.
-   * @constructor
-   */
-  function Polygon(pos, points) {
-    this['pos'] = pos || new Vector();
-    this['points'] = points || [];
-    this.recalc();
-  }
-  SAT['Polygon'] = Polygon;
-  
-  // Recalculates the edges and normals of the polygon. This **must** be called
-  // if the `points` array is modified at all and the edges or normals are to be
-  // accessed.
-  /**
-   * @return {Polygon} This for chaining.
-   */
-  Polygon.prototype['recalc'] = Polygon.prototype.recalc = function() {
-    // The edges here are the direction of the `n`th edge of the polygon, relative to
-    // the `n`th point. If you want to draw a given edge from the edge value, you must
-    // first translate to the position of the starting point.
-    this['edges'] = [];
-    // The normals here are the direction of the normal for the `n`th edge of the polygon, relative
-    // to the position of the `n`th point. If you want to draw an edge normal, you must first
-    // translate to the position of the starting point.
-    this['normals'] = [];
-    var points = this['points'];
-    var len = points.length;
-    for (var i = 0; i < len; i++) {
-      var p1 = points[i]; 
-      var p2 = i < len - 1 ? points[i + 1] : points[0];
-      var e = new Vector().copy(p2).sub(p1);
-      var n = new Vector().copy(e).perp().normalize();
-      this['edges'].push(e);
-      this['normals'].push(n);
-    }
-    return this;
-  };
-
-  // Rotates this polygon counter-clockwise around the origin of *its local coordinate system* (i.e. `pos`).
-  //
-  // Note: You do **not** need to call `recalc` after rotation.
-  /**
-   * @param {number} angle The angle to rotate (in radians)
-   * @return {Polygon} This for chaining.
-   */
-  Polygon.prototype['rotate'] = Polygon.prototype.rotate = function(angle) {
-    var i;
-    var points = this['points'];
-    var edges = this['edges'];
-    var normals = this['normals'];
-    var len = points.length;
-
-    //  Calc it just the once, rather than 4 times per array element
-    var cos = Math.cos(angle);
-    var sin = Math.sin(angle);
-
-    for (i = 0; i < len; i++) {
-      points[i].rotatePrecalc(sin, cos);
-      edges[i].rotatePrecalc(sin, cos);
-      normals[i].rotatePrecalc(sin, cos);
-    }
-    return this;
-  };
-
-  // Rotates this polygon counter-clockwise around the origin of *its local coordinate system* (i.e. `pos`).
-  //
-  // Note: You do **not** need to call `recalc` after rotation.
-  /**
-   * @param {number} angle The angle to rotate (in radians)
-   * @return {Polygon} This for chaining.
-   */
-  Polygon.prototype['scale'] = Polygon.prototype.scale = function(x, y) {
-    var i;
-    var points = this['points'];
-    var edges = this['edges'];
-    var normals = this['normals'];
-    var len = points.length;
-    for (i = 0; i < len; i++) {
-      points[i].scale(x,y);
-      edges[i].scale(x,y);
-      normals[i].scale(x,y);
-    }
-    return this;
-  };
-
-  // Translates the points of this polygon by a specified amount relative to the origin of *its own coordinate
-  // system* (i.e. `pos`).
-  //
-  // This is most useful to change the "center point" of a polygon.
-  //
-  // Note: You do **not** need to call `recalc` after translation.
-  /**
-   * @param {number} x The horizontal amount to translate.
-   * @param {number} y The vertical amount to translate.
-   * @return {Polygon} This for chaining.
-   */
-  Polygon.prototype['translate'] = Polygon.prototype.translate = function (x, y) {
-    var i;
-    var points = this['points'];
-    var len = points.length;
-    for (i = 0; i < len; i++) {
-      points[i].x += x;
-      points[i].y += y;
-    }
-    return this;
-  };
-
-  // ## Box
-  //
-  // Represents an axis-aligned box, with a width and height.
-
-
-  // Create a new box, with the specified position, width, and height. If no position
-  // is given, the position will be `(0,0)`. If no width or height are given, they will
-  // be set to `0`.
-  /**
-   * @param {Vector=} pos A vector representing the top-left of the box.
-   * @param {?number=} w The width of the box.
-   * @param {?number=} h The height of the box.
-   * @constructor
-   */
-  function Box(pos, w, h) {
-    this['pos'] = pos || new Vector();
-    this['w'] = w || 0;
-    this['h'] = h || 0;
-  }
-  SAT['Box'] = Box;
-
-  // Returns a polygon whose edges are the same as this box.
-  /**
-   * @return {Polygon} A new Polygon that represents this box.
-   */
-  Box.prototype['toPolygon'] = Box.prototype.toPolygon = function() {
-    var pos = this['pos'];
-    var w = this['w'];
-    var h = this['h'];
-    return new Polygon(new Vector(pos['x'], pos['y']), [
-     new Vector(), new Vector(w, 0), 
-     new Vector(w,h), new Vector(0,h)
-    ]);
-  };
-  
-  // ## Response
-  //
-  // An object representing the result of an intersection. Contains:
-  //  - The two objects participating in the intersection
-  //  - The vector representing the minimum change necessary to extract the first object
-  //    from the second one (as well as a unit vector in that direction and the magnitude
-  //    of the overlap)
-  //  - Whether the first object is entirely inside the second, and vice versa.
-  /**
-   * @constructor
-   */  
-  function Response() {
-    this['a'] = null;
-    this['b'] = null;
-    this['overlapN'] = new Vector();
-    this['overlapV'] = new Vector();
-    this.clear();
-  }
-  SAT['Response'] = Response;
-
-  // Set some values of the response back to their defaults.  Call this between tests if
-  // you are going to reuse a single Response object for multiple intersection tests (recommented
-  // as it will avoid allcating extra memory)
-  /**
-   * @return {Response} This for chaining
-   */
-  Response.prototype['clear'] = Response.prototype.clear = function() {
-    this['aInB'] = true;
-    this['bInA'] = true;
-    this['overlap'] = Number.MAX_VALUE;
-    return this;
-  };
-
-  // ## Object Pools
-
-  // A pool of `Vector` objects that are used in calculations to avoid
-  // allocating memory.
-  /**
-   * @type {Array.<Vector>}
-   */
-  var T_VECTORS = [];
-  for (var i = 0; i < 10; i++) { T_VECTORS.push(new Vector()); }
-  
-  // A pool of arrays of numbers used in calculations to avoid allocating
-  // memory.
-  /**
-   * @type {Array.<Array.<number>>}
-   */
-  var T_ARRAYS = [];
-  for (var i = 0; i < 5; i++) { T_ARRAYS.push([]); }
-
-  // ## Helper Functions
-
-  // Flattens the specified array of points onto a unit vector axis,
-  // resulting in a one dimensional range of the minimum and
-  // maximum value on that axis.
-  /**
-   * @param {Array.<Vector>} points The points to flatten.
-   * @param {Vector} normal The unit vector axis to flatten on.
-   * @param {Array.<number>} result An array.  After calling this function,
-   *   result[0] will be the minimum value,
-   *   result[1] will be the maximum value.
-   */
-  function flattenPointsOn(points, normal, result) {
-    var min = Number.MAX_VALUE;
-    var max = -Number.MAX_VALUE;
-    var len = points.length;
-    for (var i = 0; i < len; i++ ) {
-      // The magnitude of the projection of the point onto the normal
-      var dot = points[i].dot(normal);
-      if (dot < min) { min = dot; }
-      if (dot > max) { max = dot; }
-    }
-    result[0] = min; result[1] = max;
-  }
-  
-  // Check whether two convex polygons are separated by the specified
-  // axis (must be a unit vector).
-  /**
-   * @param {Vector} aPos The position of the first polygon.
-   * @param {Vector} bPos The position of the second polygon.
-   * @param {Array.<Vector>} aPoints The points in the first polygon.
-   * @param {Array.<Vector>} bPoints The points in the second polygon.
-   * @param {Vector} axis The axis (unit sized) to test against.  The points of both polygons
-   *   will be projected onto this axis.
-   * @param {Response=} response A Response object (optional) which will be populated
-   *   if the axis is not a separating axis.
-   * @return {boolean} true if it is a separating axis, false otherwise.  If false,
-   *   and a response is passed in, information about how much overlap and
-   *   the direction of the overlap will be populated.
-   */
-  function isSeparatingAxis(aPos, bPos, aPoints, bPoints, axis, response) {
-    var rangeA = T_ARRAYS.pop();
-    var rangeB = T_ARRAYS.pop();
-    // The magnitude of the offset between the two polygons
-    var offsetV = T_VECTORS.pop().copy(bPos).sub(aPos);
-    var projectedOffset = offsetV.dot(axis);
-    // Project the polygons onto the axis.
-    flattenPointsOn(aPoints, axis, rangeA);
-    flattenPointsOn(bPoints, axis, rangeB);
-    // Move B's range to its position relative to A.
-    rangeB[0] += projectedOffset;
-    rangeB[1] += projectedOffset;
-    // Check if there is a gap. If there is, this is a separating axis and we can stop
-    if (rangeA[0] > rangeB[1] || rangeB[0] > rangeA[1]) {
-      T_VECTORS.push(offsetV); 
-      T_ARRAYS.push(rangeA); 
-      T_ARRAYS.push(rangeB);
-      return true;
-    }
-    // This is not a separating axis. If we're calculating a response, calculate the overlap.
-    if (response) {
-      var overlap = 0;
-      // A starts further left than B
-      if (rangeA[0] < rangeB[0]) {
-        response['aInB'] = false;
-        // A ends before B does. We have to pull A out of B
-        if (rangeA[1] < rangeB[1]) { 
-          overlap = rangeA[1] - rangeB[0];
-          response['bInA'] = false;
-        // B is fully inside A.  Pick the shortest way out.
-        } else {
-          var option1 = rangeA[1] - rangeB[0];
-          var option2 = rangeB[1] - rangeA[0];
-          overlap = option1 < option2 ? option1 : -option2;
-        }
-      // B starts further left than A
-      } else {
-        response['bInA'] = false;
-        // B ends before A ends. We have to push A out of B
-        if (rangeA[1] > rangeB[1]) { 
-          overlap = rangeA[0] - rangeB[1];
-          response['aInB'] = false;
-        // A is fully inside B.  Pick the shortest way out.
-        } else {
-          var option1 = rangeA[1] - rangeB[0];
-          var option2 = rangeB[1] - rangeA[0];
-          overlap = option1 < option2 ? option1 : -option2;
-        }
-      }
-      // If this is the smallest amount of overlap we've seen so far, set it as the minimum overlap.
-      var absOverlap = Math.abs(overlap);
-      if (absOverlap < response['overlap']) {
-        response['overlap'] = absOverlap;
-        response['overlapN'].copy(axis);
-        if (overlap < 0) {
-          response['overlapN'].reverse();
-        }
-      }      
-    }
-    T_VECTORS.push(offsetV); 
-    T_ARRAYS.push(rangeA); 
-    T_ARRAYS.push(rangeB);
-    return false;
-  }
-  
-  // Calculates which Vornoi region a point is on a line segment.
-  // It is assumed that both the line and the point are relative to `(0,0)`
-  //
-  //            |       (0)      |
-  //     (-1)  [S]--------------[E]  (1)
-  //            |       (0)      |
-  /**
-   * @param {Vector} line The line segment.
-   * @param {Vector} point The point.
-   * @return  {number} LEFT_VORNOI_REGION (-1) if it is the left region, 
-   *          MIDDLE_VORNOI_REGION (0) if it is the middle region, 
-   *          RIGHT_VORNOI_REGION (1) if it is the right region.
-   */
-  function vornoiRegion(line, point) {
-    var len2 = line.len2();
-    var dp = point.dot(line);
-    // If the point is beyond the start of the line, it is in the
-    // left vornoi region.
-    if (dp < 0) { return LEFT_VORNOI_REGION; }
-    // If the point is beyond the end of the line, it is in the
-    // right vornoi region.
-    else if (dp > len2) { return RIGHT_VORNOI_REGION; }
-    // Otherwise, it's in the middle one.
-    else { return MIDDLE_VORNOI_REGION; }
-  }
-  // Constants for Vornoi regions
-  /**
-   * @const
-   */
-  var LEFT_VORNOI_REGION = -1;
-  /**
-   * @const
-   */
-  var MIDDLE_VORNOI_REGION = 0;
-  /**
-   * @const
-   */
-  var RIGHT_VORNOI_REGION = 1;
-  
-  // ## Collision Tests
-
-  // Check if two circles collide.
-  /**
-   * @param {Circle} a The first circle.
-   * @param {Circle} b The second circle.
-   * @param {Response=} response Response object (optional) that will be populated if
-   *   the circles intersect.
-   * @return {boolean} true if the circles intersect, false if they don't. 
-   */
-  function testCircleCircle(a, b, response) {
-    // Check if the distance between the centers of the two
-    // circles is greater than their combined radius.
-    var differenceV = T_VECTORS.pop().copy(b['pos']).sub(a['pos']);
-    var totalRadius = a['r'] + b['r'];
-    var totalRadiusSq = totalRadius * totalRadius;
-    var distanceSq = differenceV.len2();
-    // If the distance is bigger than the combined radius, they don't intersect.
-    if (distanceSq > totalRadiusSq) {
-      T_VECTORS.push(differenceV);
-      return false;
-    }
-    // They intersect.  If we're calculating a response, calculate the overlap.
-    if (response) { 
-      var dist = Math.sqrt(distanceSq);
-      response['a'] = a;
-      response['b'] = b;
-      response['overlap'] = totalRadius - dist;
-      response['overlapN'].copy(differenceV.normalize());
-      response['overlapV'].copy(differenceV).scale(response['overlap']);
-      response['aInB']= a['r'] <= b['r'] && dist <= b['r'] - a['r'];
-      response['bInA'] = b['r'] <= a['r'] && dist <= a['r'] - b['r'];
-    }
-    T_VECTORS.push(differenceV);
-    return true;
-  }
-  SAT['testCircleCircle'] = testCircleCircle;
-  
-  // Check if a polygon and a circle collide.
-  /**
-   * @param {Polygon} polygon The polygon.
-   * @param {Circle} circle The circle.
-   * @param {Response=} response Response object (optional) that will be populated if
-   *   they interset.
-   * @return {boolean} true if they intersect, false if they don't.
-   */
-  function testPolygonCircle(polygon, circle, response) {
-    // Get the position of the circle relative to the polygon.
-    var circlePos = T_VECTORS.pop().copy(circle['pos']).sub(polygon['pos']);
-    var radius = circle['r'];
-    var radius2 = radius * radius;
-    var points = polygon['points'];
-    var len = points.length;
-    var edge = T_VECTORS.pop();
-    var point = T_VECTORS.pop();
-    
-    // For each edge in the polygon:
-    for (var i = 0; i < len; i++) {
-      var next = i === len - 1 ? 0 : i + 1;
-      var prev = i === 0 ? len - 1 : i - 1;
-      var overlap = 0;
-      var overlapN = null;
-      
-      // Get the edge.
-      edge.copy(polygon['edges'][i]);
-      // Calculate the center of the circle relative to the starting point of the edge.
-      point.copy(circlePos).sub(points[i]);
-      
-      // If the distance between the center of the circle and the point
-      // is bigger than the radius, the polygon is definitely not fully in
-      // the circle.
-      if (response && point.len2() > radius2) {
-        response['aInB'] = false;
-      }
-      
-      // Calculate which Vornoi region the center of the circle is in.
-      var region = vornoiRegion(edge, point);
-      // If it's the left region:
-      if (region === LEFT_VORNOI_REGION) { 
-        // We need to make sure we're in the RIGHT_VORNOI_REGION of the previous edge.
-        edge.copy(polygon['edges'][prev]);
-        // Calculate the center of the circle relative the starting point of the previous edge
-        var point2 = T_VECTORS.pop().copy(circlePos).sub(points[prev]);
-        region = vornoiRegion(edge, point2);
-        if (region === RIGHT_VORNOI_REGION) {
-          // It's in the region we want.  Check if the circle intersects the point.
-          var dist = point.len();
-          if (dist > radius) {
-            // No intersection
-            T_VECTORS.push(circlePos); 
-            T_VECTORS.push(edge);
-            T_VECTORS.push(point); 
-            T_VECTORS.push(point2);
-            return false;
-          } else if (response) {
-            // It intersects, calculate the overlap.
-            response['bInA'] = false;
-            overlapN = point.normalize();
-            overlap = radius - dist;
-          }
-        }
-        T_VECTORS.push(point2);
-      // If it's the right region:
-      } else if (region === RIGHT_VORNOI_REGION) {
-        // We need to make sure we're in the left region on the next edge
-        edge.copy(polygon['edges'][next]);
-        // Calculate the center of the circle relative to the starting point of the next edge.
-        point.copy(circlePos).sub(points[next]);
-        region = vornoiRegion(edge, point);
-        if (region === LEFT_VORNOI_REGION) {
-          // It's in the region we want.  Check if the circle intersects the point.
-          var dist = point.len();
-          if (dist > radius) {
-            // No intersection
-            T_VECTORS.push(circlePos); 
-            T_VECTORS.push(edge); 
-            T_VECTORS.push(point);
-            return false;              
-          } else if (response) {
-            // It intersects, calculate the overlap.
-            response['bInA'] = false;
-            overlapN = point.normalize();
-            overlap = radius - dist;
-          }
-        }
-      // Otherwise, it's the middle region:
-      } else {
-        // Need to check if the circle is intersecting the edge,
-        // Change the edge into its "edge normal".
-        var normal = edge.perp().normalize();
-        // Find the perpendicular distance between the center of the 
-        // circle and the edge.
-        var dist = point.dot(normal);
-        var distAbs = Math.abs(dist);
-        // If the circle is on the outside of the edge, there is no intersection.
-        if (dist > 0 && distAbs > radius) {
-          // No intersection
-          T_VECTORS.push(circlePos); 
-          T_VECTORS.push(normal); 
-          T_VECTORS.push(point);
-          return false;
-        } else if (response) {
-          // It intersects, calculate the overlap.
-          overlapN = normal;
-          overlap = radius - dist;
-          // If the center of the circle is on the outside of the edge, or part of the
-          // circle is on the outside, the circle is not fully inside the polygon.
-          if (dist >= 0 || overlap < 2 * radius) {
-            response['bInA'] = false;
-          }
-        }
-      }
-      
-      // If this is the smallest overlap we've seen, keep it. 
-      // (overlapN may be null if the circle was in the wrong Vornoi region).
-      if (overlapN && response && Math.abs(overlap) < Math.abs(response['overlap'])) {
-        response['overlap'] = overlap;
-        response['overlapN'].copy(overlapN);
-      }
-    }
-    
-    // Calculate the final overlap vector - based on the smallest overlap.
-    if (response) {
-      response['a'] = polygon;
-      response['b'] = circle;
-      response['overlapV'].copy(response['overlapN']).scale(response['overlap']);
-    }
-    T_VECTORS.push(circlePos); 
-    T_VECTORS.push(edge); 
-    T_VECTORS.push(point);
-    return true;
-  }
-  SAT['testPolygonCircle'] = testPolygonCircle;
-  
-  // Check if a circle and a polygon collide.
-  //
-  // **NOTE:** This is slightly less efficient than polygonCircle as it just
-  // runs polygonCircle and reverses everything at the end.
-  /**
-   * @param {Circle} circle The circle.
-   * @param {Polygon} polygon The polygon.
-   * @param {Response=} response Response object (optional) that will be populated if
-   *   they interset.
-   * @return {boolean} true if they intersect, false if they don't.
-   */
-  function testCirclePolygon(circle, polygon, response) {
-    // Test the polygon against the circle.
-    var result = testPolygonCircle(polygon, circle, response);
-    if (result && response) {
-      // Swap A and B in the response.
-      var a = response['a'];
-      var aInB = response['aInB'];
-      response['overlapN'].reverse();
-      response['overlapV'].reverse();
-      response['a'] = response['b'];
-      response['b'] = a;
-      response['aInB'] = response['bInA'];
-      response['bInA'] = aInB;
-    }
-    return result;
-  }
-  SAT['testCirclePolygon'] = testCirclePolygon;
-  
-  // Checks whether polygons collide.
-  /**
-   * @param {Polygon} a The first polygon.
-   * @param {Polygon} b The second polygon.
-   * @param {Response=} response Response object (optional) that will be populated if
-   *   they interset.
-   * @return {boolean} true if they intersect, false if they don't.
-   */
-  function testPolygonPolygon(a, b, response) {
-    var aPoints = a['points'];
-    var aLen = aPoints.length;
-    var bPoints = b['points'];
-    var bLen = bPoints.length;
-    // If any of the edge normals of A is a separating axis, no intersection.
-    for (var i = 0; i < aLen; i++) {
-      if (isSeparatingAxis(a['pos'], b['pos'], aPoints, bPoints, a['normals'][i], response)) {
-        return false;
-      }
-    }
-    // If any of the edge normals of B is a separating axis, no intersection.
-    for (var i = 0;i < bLen; i++) {
-      if (isSeparatingAxis(a['pos'], b['pos'], aPoints, bPoints, b['normals'][i], response)) {
-        return false;
-      }
-    }
-    // Since none of the edge normals of A or B are a separating axis, there is an intersection
-    // and we've already calculated the smallest overlap (in isSeparatingAxis).  Calculate the
-    // final overlap vector.
-    if (response) {
-      response['a'] = a;
-      response['b'] = b;
-      response['overlapV'].copy(response['overlapN']).scale(response['overlap']);
-    }
-    return true;
-  }
-  SAT['testPolygonPolygon'] = testPolygonPolygon;
-
-  return SAT;
-}));
-
-
- - - - - -
- -
-
- - - - Phaser Copyright © 2012-2014 Photon Storm Ltd. - -
- - - Documentation generated by JSDoc 3.3.0-dev - on Sat Feb 08 2014 07:19:40 GMT-0000 (GMT) using the DocStrap template. - -
-
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/docs/Signal.js.html b/docs/Signal.js.html index 5fe8f083..19ae8888 100644 --- a/docs/Signal.js.html +++ b/docs/Signal.js.html @@ -814,7 +814,7 @@ Phaser.Signal.prototype.constructor = Phaser.Signal; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SignalBinding.html b/docs/SignalBinding.html index 59511c17..cf65eb7a 100644 --- a/docs/SignalBinding.html +++ b/docs/SignalBinding.html @@ -807,7 +807,7 @@ Inspired by Joa Ebert AS3 SignalBinding and Robert Penner's Slot classes.

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:36 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:48 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SignalBinding.js.html b/docs/SignalBinding.js.html index 3172b2b5..fc678376 100644 --- a/docs/SignalBinding.js.html +++ b/docs/SignalBinding.js.html @@ -674,7 +674,7 @@ Phaser.SignalBinding.prototype.constructor = Phaser.SignalBinding; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SinglePad.js.html b/docs/SinglePad.js.html index 93e93c62..b7ad0cd0 100644 --- a/docs/SinglePad.js.html +++ b/docs/SinglePad.js.html @@ -1079,7 +1079,7 @@ Object.defineProperty(Phaser.SinglePad.prototype, "index", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Sound.js.html b/docs/Sound.js.html index 7d959b39..2118504e 100644 --- a/docs/Sound.js.html +++ b/docs/Sound.js.html @@ -832,7 +832,7 @@ Phaser.Sound.prototype = { if (this.currentTime >= this.durationMS) { - //console.log(this.currentMarker, 'has hit duration'); + console.log(this.currentMarker, 'has hit duration'); if (this.usingWebAudio) { if (this.loop) @@ -891,7 +891,7 @@ Phaser.Sound.prototype = { position = position || 0; if (typeof volume === 'undefined') { volume = this._volume; } - if (typeof loop === 'undefined') { loop = false; } + if (typeof loop === 'undefined') { loop = this.loop; } if (typeof forceRestart === 'undefined') { forceRestart = true; } // console.log(this.name + ' play ' + marker + ' position ' + position + ' volume ' + volume + ' loop ' + loop, 'force', forceRestart); @@ -1335,7 +1335,7 @@ Object.defineProperty(Phaser.Sound.prototype, "volume", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SoundManager.js.html b/docs/SoundManager.js.html index ac447ac6..42a93dd9 100644 --- a/docs/SoundManager.js.html +++ b/docs/SoundManager.js.html @@ -843,12 +843,9 @@ Phaser.SoundManager.prototype = { * @param {string} key - Asset key for the sound. * @param {number} [volume=1] - Default value for the volume. * @param {boolean} [loop=false] - Whether or not the sound will loop. - * @param {boolean} [destroyOnComplete=false] - If true the Sound will destroy itself once it has finished playing, or is stopped. * @return {Phaser.Sound} The new sound instance. */ - play: function (key, volume, loop, destroyOnComplete) { - - if (typeof destroyOnComplete == 'undefined') { destroyOnComplete = false; } + play: function (key, volume, loop) { var sound = this.add(key, volume, loop); @@ -992,7 +989,7 @@ Object.defineProperty(Phaser.SoundManager.prototype, "volume", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Spring.js.html b/docs/Spring.js.html index 512c37b7..61962b7c 100644 --- a/docs/Spring.js.html +++ b/docs/Spring.js.html @@ -576,7 +576,7 @@ Phaser.Physics.Spring.prototype.constructor = Phaser.Physics.Spring; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Sprite.js.html b/docs/Sprite.js.html index a720ae7d..5c9b89e7 100644 --- a/docs/Sprite.js.html +++ b/docs/Sprite.js.html @@ -1463,7 +1463,7 @@ Object.defineProperty(Phaser.Sprite.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/SpriteBatch.js.html b/docs/SpriteBatch.js.html index acaeb69c..e2890a6c 100644 --- a/docs/SpriteBatch.js.html +++ b/docs/SpriteBatch.js.html @@ -545,7 +545,7 @@ Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Stage.js.html b/docs/Stage.js.html index 26ff3886..9512df79 100644 --- a/docs/Stage.js.html +++ b/docs/Stage.js.html @@ -546,6 +546,12 @@ Phaser.Stage = function (game, width, height) { */ this.exists = true; + /** + * @property {string} hiddenVar - The page visibility API event name. + * @private + */ + this._hiddenVar = 'hidden'; + /** * @property {number} _nextOffsetCheck - The time to run the next offset check. * @private @@ -721,10 +727,38 @@ Phaser.Stage.prototype.boot = function () { Phaser.Canvas.setUserSelect(this.game.canvas, 'none'); Phaser.Canvas.setTouchAction(this.game.canvas, 'none'); - document.addEventListener('visibilitychange', this._onChange, false); - document.addEventListener('webkitvisibilitychange', this._onChange, false); - document.addEventListener('pagehide', this._onChange, false); - document.addEventListener('pageshow', this._onChange, false); + this.checkVisibility(); + +} + +/** +* Starts a page visibility event listener running, or window.blur/focus if not supported by the browser. +* @method Phaser.Stage#checkVisibility +*/ +Phaser.Stage.prototype.checkVisibility = function () { + + var supportsVisibilityApi = false; + var prefixes = [ "", "moz", "ms", "webkit" ]; + + while (prefixes.length) + { + prefix = prefixes.pop(); + this._hiddenVar = prefix ? prefix + "Hidden" : "hidden"; + + if (this._hiddenVar in document) + { + supportsVisibilityApi = true; + break; + } + } + + // Does browser support it? If not (like in IE9 or old Android) we need to fall back to blur/focus + if (supportsVisibilityApi) + { + document.addEventListener(this._hiddenVar, this._onChange, false); + document.addEventListener('pagehide', this._onChange, false); + document.addEventListener('pageshow', this._onChange, false); + } window.onblur = this._onChange; window.onfocus = this._onChange; @@ -761,7 +795,7 @@ Phaser.Stage.prototype.visibilityChange = function (event) { return; } - if (this.game.paused === false && (event.type == 'pagehide' || event.type == 'blur' || document['hidden'] === true || document['webkitHidden'] === true)) + if (this.game.paused === false && (event.type === 'pagehide' || event.type === 'blur' || document[this._hiddenVar] === true)) { this.game.paused = true; } @@ -835,7 +869,7 @@ Object.defineProperty(Phaser.Stage.prototype, "backgroundColor", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/StageScaleMode.js.html b/docs/StageScaleMode.js.html index c7c64c2b..864ee5f3 100644 --- a/docs/StageScaleMode.js.html +++ b/docs/StageScaleMode.js.html @@ -1293,7 +1293,7 @@ Object.defineProperty(Phaser.StageScaleMode.prototype, "isLandscape", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/State.js.html b/docs/State.js.html index 32e17c26..77d757da 100644 --- a/docs/State.js.html +++ b/docs/State.js.html @@ -681,7 +681,7 @@ Phaser.State.prototype.constructor = Phaser.State; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/StateManager.js.html b/docs/StateManager.js.html index bc2763df..c9df4a40 100644 --- a/docs/StateManager.js.html +++ b/docs/StateManager.js.html @@ -584,6 +584,11 @@ Phaser.StateManager = function (game, pendingState) { */ this.onPausedCallback = null; + /** + * @property {function} onResumedCallback - This will be called when the state is resumed from a paused state. + */ + this.onResumedCallback = null; + /** * @property {function} onShutDownCallback - This will be called when the state is shut down (i.e. swapped to another state). */ @@ -686,6 +691,7 @@ Phaser.StateManager.prototype = { this.onUpdateCallback = null; this.onRenderCallback = null; this.onPausedCallback = null; + this.onResumedCallback = null; this.onDestroyCallback = null; } @@ -861,6 +867,7 @@ Phaser.StateManager.prototype = { this.onPreRenderCallback = this.states[key]['preRender'] || null; this.onRenderCallback = this.states[key]['render'] || null; this.onPausedCallback = this.states[key]['paused'] || null; + this.onResumedCallback = this.states[key]['resumed'] || null; // Used when the state is no longer the current active state this.onShutDownCallback = this.states[key]['shutdown'] || this.dummy; @@ -909,7 +916,7 @@ Phaser.StateManager.prototype = { if (this._created && this.onPausedCallback) { - this.onPausedCallback.call(this.callbackContext, this.game, true); + this.onPausedCallback.call(this.callbackContext, this.game); } }, @@ -920,9 +927,9 @@ Phaser.StateManager.prototype = { */ resume: function () { - if (this._created && this.onre) + if (this._created && this.onResumedCallback) { - this.onPausedCallback.call(this.callbackContext, this.game, false); + this.onResumedCallback.call(this.callbackContext, this.game); } }, @@ -1009,6 +1016,7 @@ Phaser.StateManager.prototype = { this.onUpdateCallback = null; this.onRenderCallback = null; this.onPausedCallback = null; + this.onResumedCallback = null; this.onDestroyCallback = null; this.game = null; @@ -1041,7 +1049,7 @@ Phaser.StateManager.prototype.constructor = Phaser.StateManager; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Text.js.html b/docs/Text.js.html index 596c7146..0a741a9d 100644 --- a/docs/Text.js.html +++ b/docs/Text.js.html @@ -1328,7 +1328,7 @@ Object.defineProperty(Phaser.Text.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Tile.js.html b/docs/Tile.js.html index 15856305..70f71e48 100644 --- a/docs/Tile.js.html +++ b/docs/Tile.js.html @@ -803,7 +803,7 @@ Object.defineProperty(Phaser.Tile.prototype, "bottom", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/TileSprite.js.html b/docs/TileSprite.js.html index 1fb1e9cb..78b1b533 100644 --- a/docs/TileSprite.js.html +++ b/docs/TileSprite.js.html @@ -574,6 +574,11 @@ Phaser.TileSprite = function (game, x, y, width, height, key, frame) { this.position.set(x, y); + /** + * @property {Phaser.InputHandler|null} input - The Input Handler for this object. Needs to be enabled with image.inputEnabled = true before you can use it. + */ + this.input = null; + /** * @property {Phaser.Point} world - The world coordinates of this Sprite. This differs from the x/y coordinates which are relative to the Sprites container. */ @@ -908,6 +913,42 @@ Object.defineProperty(Phaser.TileSprite.prototype, "fixedToCamera", { } } +}); + +/** +* By default a TileSprite won't process any input events at all. By setting inputEnabled to true the Phaser.InputHandler is +* activated for this object and it will then start to process click/touch events and more. +* +* @name Phaser.TileSprite#inputEnabled +* @property {boolean} inputEnabled - Set to true to allow this object to receive input events. +*/ +Object.defineProperty(Phaser.TileSprite.prototype, "inputEnabled", { + + get: function () { + + return (this.input && this.input.enabled); + + }, + + set: function (value) { + + if (value) + { + if (this.input === null) + { + this.input = new Phaser.InputHandler(this); + this.input.start(); + } + } + else + { + if (this.input && this.input.enabled) + { + this.input.stop(); + } + } + } + }); @@ -930,7 +971,7 @@ Object.defineProperty(Phaser.TileSprite.prototype, "fixedToCamera", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Tilemap.js.html b/docs/Tilemap.js.html index f9e77132..5d3a238d 100644 --- a/docs/Tilemap.js.html +++ b/docs/Tilemap.js.html @@ -1925,7 +1925,7 @@ Phaser.Tilemap.prototype.constructor = Phaser.Tilemap; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/TilemapLayer.js.html b/docs/TilemapLayer.js.html index c057bf76..8504855f 100644 --- a/docs/TilemapLayer.js.html +++ b/docs/TilemapLayer.js.html @@ -1390,7 +1390,7 @@ Object.defineProperty(Phaser.TilemapLayer.prototype, "collisionHeight", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/TilemapParser.js.html b/docs/TilemapParser.js.html index 7ca86c26..6144d9a0 100644 --- a/docs/TilemapParser.js.html +++ b/docs/TilemapParser.js.html @@ -891,7 +891,14 @@ Phaser.TilemapParser = { newSet.columns = (set.imagewidth - set.margin) / (set.tilewidth + set.spacing); newSet.total = newSet.rows * newSet.columns; - tilesets.push(newSet); + if (newSet.rows % 1 !== 0 || newSet.columns % 1 !== 0) + { + console.warn('TileSet image dimensions do not match expected dimensions. Tileset width/height must be evenly divisible by Tilemap tile width/height.'); + } + else + { + tilesets.push(newSet); + } } map.tilesets = tilesets; @@ -969,7 +976,7 @@ Phaser.TilemapParser = { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Tileset.js.html b/docs/Tileset.js.html index 52ca0715..abd3864e 100644 --- a/docs/Tileset.js.html +++ b/docs/Tileset.js.html @@ -666,7 +666,7 @@ Phaser.Tileset.prototype.constructor = Phaser.Tileset; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Time.js.html b/docs/Time.js.html index cfb57c5b..7da3ac77 100644 --- a/docs/Time.js.html +++ b/docs/Time.js.html @@ -857,7 +857,7 @@ Phaser.Time.prototype.constructor = Phaser.Time; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Timer.js.html b/docs/Timer.js.html index cabba614..f52d35eb 100644 --- a/docs/Timer.js.html +++ b/docs/Timer.js.html @@ -1019,7 +1019,7 @@ Phaser.Timer.prototype.constructor = Phaser.Timer; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/TimerEvent.js.html b/docs/TimerEvent.js.html index b5b57d71..b9ac2980 100644 --- a/docs/TimerEvent.js.html +++ b/docs/TimerEvent.js.html @@ -583,7 +583,7 @@ Phaser.TimerEvent.prototype.constructor = Phaser.TimerEvent; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Touch.js.html b/docs/Touch.js.html index 8223f21a..87d106d2 100644 --- a/docs/Touch.js.html +++ b/docs/Touch.js.html @@ -881,7 +881,7 @@ Phaser.Touch.prototype.constructor = Phaser.Touch; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Tween.js.html b/docs/Tween.js.html index bbe88916..02820360 100644 --- a/docs/Tween.js.html +++ b/docs/Tween.js.html @@ -1089,7 +1089,7 @@ Phaser.Tween.prototype.constructor = Phaser.Tween; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/TweenManager.js.html b/docs/TweenManager.js.html index c08f1aa9..93dc2618 100644 --- a/docs/TweenManager.js.html +++ b/docs/TweenManager.js.html @@ -714,7 +714,7 @@ Phaser.TweenManager.prototype.constructor = Phaser.TweenManager; Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/Utils.js.html b/docs/Utils.js.html index a2ddcbee..c70406a4 100644 --- a/docs/Utils.js.html +++ b/docs/Utils.js.html @@ -815,7 +815,7 @@ if (!Array.isArray) { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:33 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/World.js.html b/docs/World.js.html index 2f50bc7a..793f0199 100644 --- a/docs/World.js.html +++ b/docs/World.js.html @@ -544,7 +544,7 @@ Phaser.Physics.World = function (game, config) { /** * @property {Phaser.InversePointProxy} gravity - The gravity applied to all bodies each step. */ - this.gravity = new Phaser.Physics.InversePointProxy(this.world.gravity); + this.gravity = new Phaser.Physics.InversePointProxy(game, this.world.gravity); /** * @property {p2.Body} bounds - The bounds body contains the 4 walls that border the World. Define or disable with setBounds. @@ -1574,7 +1574,7 @@ Object.defineProperty(Phaser.Physics.World.prototype, "enableBodySleeping", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/World.js_.html b/docs/World.js_.html index f2d024f1..7082bfd3 100644 --- a/docs/World.js_.html +++ b/docs/World.js_.html @@ -723,7 +723,7 @@ Object.defineProperty(Phaser.World.prototype, "randomY", { Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index 3860ac29..e9893460 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -881,7 +881,7 @@ Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/global.html b/docs/global.html index b5185e31..33e6a813 100644 --- a/docs/global.html +++ b/docs/global.html @@ -1257,7 +1257,7 @@ this function is taken from Starling Framework as its pretty neat ;)

Documentation generated by JSDoc 3.3.0-dev - on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the DocStrap template. + on Mon Feb 24 2014 12:11:34 GMT-0000 (GMT) using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 2c595f8a..eeb5af88 100644 --- a/docs/index.html +++ b/docs/index.html @@ -510,9 +510,9 @@

Phaser Logo

-

Phaser 1.2-dev

+

Phaser 2.0.0-dev

Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses Pixi.js internally for fast 2D Canvas and WebGL rendering.

-

Version: 1.2 "Shienar" - Released: -in development-

+

Version: 2.0.0 "Aes Sedai" - Released: -in development-

By Richard Davey, Photon Storm