Skip to content

Commit b91de47

Browse files
committed
Readme and JSDocs updates.
1 parent 3ee59f1 commit b91de47

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,12 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
273273
on a pointer prevents it from being able to trigger an over event.
274274
* Button.forceOut expanded to accept a PointerMode value such that it
275275
can be controlled per-input mode.
276+
* Phaser.KeyCode is a new pseudo-type used by the Keyboard class (and your code) to allow for separation of all the Keyboard constants to their own file. This stops the JSDocs from becoming 'polluted' and allows for easier future expansion (thanks @pnstickne #2118 #2031)
276277

277278
### Updates
278279

279280
* TypeScript definitions fixes and updates (thanks @clark-stevenson @milkey-mouse @timotei @qdrj @Garbanas @cloakedninjas)
280-
* Docs typo fixes (thanks @rwrountree @yeluoqiuzhi @pnstickne @fonsecas72 @JackMorganNZ)
281+
* Docs typo fixes (thanks @rwrountree @yeluoqiuzhi @pnstickne @fonsecas72 @JackMorganNZ @caryanne)
281282
* Math.average has been optimized (thanks @rwrountree #2025)
282283
* When calling GameObject.revive the `heal` method is called to apply the health value, allowing it to take into consideration a `maxHealth` value if set (thanks @bsparks #2027)
283284
* Change splice.call(arguments, ..) to use slice instead (thanks @pnstickne #2034 #2032)
@@ -304,6 +305,8 @@ can be controlled per-input mode.
304305
* New Create stub added for the custom build process. Cuts file size by 8KB.
305306
* You can now exclude the FlexGrid from custom builds, saving 15KB.
306307
* The ScaleManager no longer creates a Phaser.FlexGrid if the class isn't available (i.e. excluded via a custom build)
308+
* Time.suggestedFps is now defaulted to Time.desiredFps for the first few frames until things have settled down (previously it was `null`) (thanks @noidexe #2130)
309+
* Text with anchor 0.5 and word wrap would have an extra space added to its width calculations, this is now adjusted for (thanks @nickryall #2052 #1990)
307310

308311
### Bug Fixes
309312

@@ -318,6 +321,7 @@ can be controlled per-input mode.
318321
* Camera.setBoundsToWorld only adjusts the bounds if it exists (thanks @prudolfs #2099)
319322
* Keyboard.addCallbacks didn't check to see if the arguments were `null`, only if they were `undefined` making the jsdocs misleading.
320323
* ScaleManager.getParentBounds now takes any transforms into account to get the correct parent bounds (thanks @jdnichollsc #2111 #2098)
324+
* Cache.addBitmapFont now applies a default value for the x and y spacing if the arguments are omitted (thanks @nlotz #2128)
321325

322326
### Pixi Updates
323327

src/physics/ninja/AABB.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Phaser.Physics.Ninja.AABB.prototype = {
128128
/**
129129
* Process a collision partner-agnostic collision response and apply the resulting forces.
130130
*
131-
* @method Phaser.Phyiscs.Ninja.AABB#reportCollision
131+
* @method Phaser.Physics.Ninja.AABB#reportCollision
132132
* @param {number} px - The tangent velocity
133133
* @param {number} py - The tangent velocity
134134
* @param {number} dx - Collision normal
@@ -213,6 +213,9 @@ Phaser.Physics.Ninja.AABB.prototype = {
213213
this.reportCollision(px,py,dx,dy);
214214
},
215215

216+
/**
217+
* @method Phaser.Physics.Ninja.AABB#reverse
218+
*/
216219
reverse: function () {
217220

218221
var vx = this.pos.x - this.oldpos.x;

0 commit comments

Comments
 (0)