You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed: Debug.renderSpriteTouching, Debug.renderLocalTransformInfo, Debug.renderWorldTransformInfo, Debug.renderSpriteCollision and Debug.dumpLinkedList.
Debug.renderPhysicsBody(body, color) is extremely useful for debugging the new physics bodies. Will draw the outline + points in the color given.
Debug.renderBodyInfo(sprite, x, y, color) will display lots of Sprite body data.
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ Significant API changes:
72
72
* Removed Body.deltaAbsX and deltaAbsY as they are no longer used internally.
73
73
* Body.screenX and screenY moved to getters, no longer calculated every frame.
74
74
* ArcadePhysics now has setBounds and setBoundsToWorld, and you can specify which walls are created or not (left, right, up, down)
75
+
* Removed: Debug.renderSpriteTouching, Debug.renderLocalTransformInfo, Debug.renderWorldTransformInfo, Debug.renderSpriteCollision and Debug.dumpLinkedList.
75
76
76
77
77
78
New features:
@@ -91,7 +92,7 @@ New features:
91
92
* Group.set will let you deep set a new propery on a single child of the Group.
92
93
* Stage.display property added. A direct reference to the root Pixi Stage object (very useful for RenderTexture manipulation)
93
94
* Added Ejecta detection to Device (thanks endel)
94
-
* Tweens can now work with relative + and - values. You can do: `tween(sprite).to( { x: '+400' })` and it will add 400 to the current sprite.x value, or '-400'.
95
+
* Tweens can now work with relative + and - values. You can do: `tween(sprite).to( { x: '+400' })` and it will add 400 to the current sprite.x value.
95
96
* Buttons now properly use their upFrame if set.
96
97
* InputHandler now has snapOffsetX and snapOffsetY properties so your snap grid doesn't have to be 0,0 aligned (thanks srmeier)
97
98
* Loader.progressFloat contains the actual non-rounded progress value, where-as Loader.progress contains a rounded value. Use progressFloat if you've > 100 files to load.
@@ -111,12 +112,15 @@ New features:
111
112
* Math.normalizeAngle - normalises an angle, now in radians only.
112
113
* Math.normalizeLatitude - Normalizes a latitude to the [-90,90] range.
113
114
* Math.normalizeLongitude - Normalizes a longitude to the [-180,180] range.
114
-
* Phaser.Line added to the group of geometry classes, with full point on line/segment and intersection tests (see new examples)
115
+
* Phaser.Line added to the geometry classes, with full point on line/segment and intersection tests (see new examples)
115
116
* Phaser.CANVAS_PX_ROUND is a boolean. If 'true' the Canvas renderer will Math.floor() all coordinates before drawImage, stopping pixel interpolation. Defaults to false.
116
117
* Phaser.CANVAS_CLEAR_RECT is a boolean. If 'true' (the default) it will context.clearRect() every frame. If false this is skipped (useful if you know you don't need it)
117
118
* Collision now works between Sprites positioned via sprite.x/y, sprite.body.x/y or sprite.body.velocity.
118
119
* If you are tweening a sprite and still want physics collision, set `sprite.body.moves = false` otherwise it will fight against the tween motion.
119
-
120
+
* Game.enableStep will enable core game loop stepping. When enabled you must call game.step() directly (perhaps via a DOM button?), very useful for debugging!
0 commit comments