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
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,11 +273,12 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
273
273
on a pointer prevents it from being able to trigger an over event.
274
274
* Button.forceOut expanded to accept a PointerMode value such that it
275
275
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)
276
277
277
278
### Updates
278
279
279
280
* TypeScript definitions fixes and updates (thanks @clark-stevenson@milkey-mouse@timotei@qdrj@Garbanas@cloakedninjas)
* Math.average has been optimized (thanks @rwrountree#2025)
282
283
* 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)
283
284
* Change splice.call(arguments, ..) to use slice instead (thanks @pnstickne#2034#2032)
@@ -304,6 +305,8 @@ can be controlled per-input mode.
304
305
* New Create stub added for the custom build process. Cuts file size by 8KB.
305
306
* You can now exclude the FlexGrid from custom builds, saving 15KB.
306
307
* 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)
307
310
308
311
### Bug Fixes
309
312
@@ -318,6 +321,7 @@ can be controlled per-input mode.
318
321
* Camera.setBoundsToWorld only adjusts the bounds if it exists (thanks @prudolfs#2099)
319
322
* Keyboard.addCallbacks didn't check to see if the arguments were `null`, only if they were `undefined` making the jsdocs misleading.
320
323
* 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)
0 commit comments